]>
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 | } | |
c3eb6258 RD |
427 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
428 | #ifdef __WXMSW__ | |
429 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
430 | self->GetItem(item)->SetTextColour(c); | |
431 | #endif | |
432 | } | |
433 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
434 | #ifdef __WXMSW__ | |
435 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
436 | self->GetItem(item)->SetBackgroundColour(c); | |
437 | #endif | |
438 | } | |
439 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
440 | #ifdef __WXMSW__ | |
441 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
442 | self->GetItem(item)->SetFont(f); | |
443 | #endif | |
444 | } | |
cbd72d4f | 445 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 RD |
446 | |
447 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
448 | PyObject* o2; | |
449 | PyObject* o3; | |
450 | ||
451 | if (!target) { | |
452 | target = o; | |
453 | } else if (target == Py_None) { | |
454 | Py_DECREF(Py_None); | |
455 | target = o; | |
456 | } else { | |
457 | if (!PyTuple_Check(target)) { | |
458 | o2 = target; | |
459 | target = PyTuple_New(1); | |
460 | PyTuple_SetItem(target, 0, o2); | |
461 | } | |
462 | o3 = PyTuple_New(1); | |
463 | PyTuple_SetItem(o3, 0, o); | |
464 | ||
465 | o2 = target; | |
466 | target = PySequence_Concat(o2, o3); | |
467 | Py_DECREF(o2); | |
468 | Py_DECREF(o3); | |
469 | } | |
470 | return target; | |
471 | } | |
472 | ||
473 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
474 | self->AppendText(text); | |
475 | } | |
476 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
477 | return self->GetValue().Mid(from, to - from); | |
478 | } | |
cbd72d4f RD |
479 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
480 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
32958cea | 481 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
cbd72d4f RD |
482 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
483 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
484 | |
485 | #include <wx/slider.h> | |
486 | ||
d14a1e28 | 487 | |
cbd72d4f | 488 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
32958cea | 489 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 490 | |
d896a793 | 491 | #if defined(__WXMAC__) || defined(__WXX11__) |
d14a1e28 RD |
492 | // implement dummy classes and such for wxMac |
493 | ||
494 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
495 | ||
496 | class wxToggleButton : public wxControl | |
497 | { | |
498 | public: | |
499 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
500 | const wxPoint&, const wxSize&, long, | |
501 | const wxValidator&, const wxString&) | |
cbd72d4f | 502 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
503 | |
504 | wxToggleButton() | |
cbd72d4f | 505 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
506 | }; |
507 | #endif | |
508 | ||
cbd72d4f | 509 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); |
8edf1c75 RD |
510 | |
511 | SWIGSTATIC(PyObject* ) | |
512 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
513 | { | |
514 | return (value > (unsigned long)(LONG_MAX)) ? | |
515 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
516 | } | |
517 | ||
cbd72d4f | 518 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
d14a1e28 RD |
519 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
520 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
521 | if (udata) { | |
522 | Py_INCREF(udata->m_obj); | |
523 | return udata->m_obj; | |
524 | } else { | |
525 | Py_INCREF(Py_None); | |
526 | return Py_None; | |
527 | } | |
528 | } | |
529 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
530 | self->SetClientData(new wxPyUserData(clientData)); | |
531 | } | |
532 | 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){ | |
533 | wxPyUserData* udata = NULL; | |
534 | if (clientData && clientData != Py_None) | |
535 | udata = new wxPyUserData(clientData); | |
536 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
537 | shortHelp, longHelp, udata); | |
538 | } | |
539 | 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){ | |
540 | wxPyUserData* udata = NULL; | |
541 | if (clientData && clientData != Py_None) | |
542 | udata = new wxPyUserData(clientData); | |
543 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
544 | shortHelp, longHelp, udata); | |
545 | } | |
546 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
547 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
548 | if (udata) { | |
549 | Py_INCREF(udata->m_obj); | |
550 | return udata->m_obj; | |
551 | } else { | |
552 | Py_INCREF(Py_None); | |
553 | return Py_None; | |
554 | } | |
555 | } | |
556 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
557 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
558 | } | |
559 | ||
560 | #include <wx/listctrl.h> | |
561 | ||
d14a1e28 | 562 | |
32958cea | 563 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
d14a1e28 RD |
564 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
565 | // Python aware sorting function for wxPyListCtrl | |
566 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
567 | int retval = 0; | |
568 | PyObject* func = (PyObject*)funcPtr; | |
569 | wxPyBeginBlockThreads(); | |
570 | ||
571 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
572 | PyObject* result = PyEval_CallObject(func, args); | |
573 | Py_DECREF(args); | |
574 | if (result) { | |
575 | retval = PyInt_AsLong(result); | |
576 | Py_DECREF(result); | |
577 | } | |
578 | ||
579 | wxPyEndBlockThreads(); | |
580 | return retval; | |
581 | } | |
582 | ||
583 | // C++ Version of a Python aware class | |
584 | class wxPyListCtrl : public wxListCtrl { | |
585 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
586 | public: | |
587 | wxPyListCtrl() : wxListCtrl() {} | |
588 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
589 | const wxPoint& pos, | |
590 | const wxSize& size, | |
591 | long style, | |
592 | const wxValidator& validator, | |
593 | const wxString& name) : | |
594 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
595 | ||
596 | bool Create(wxWindow* parent, wxWindowID id, | |
597 | const wxPoint& pos, | |
598 | const wxSize& size, | |
599 | long style, | |
600 | const wxValidator& validator, | |
601 | const wxString& name) { | |
602 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
603 | } | |
604 | ||
605 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
606 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
607 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
608 | ||
609 | PYPRIVATE; | |
610 | }; | |
611 | ||
612 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
613 | ||
614 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
615 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
616 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
617 | ||
618 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
619 | wxListItem item; | |
620 | item.SetMask( wxLIST_MASK_STATE | | |
621 | wxLIST_MASK_TEXT | | |
622 | wxLIST_MASK_IMAGE | | |
623 | wxLIST_MASK_DATA | | |
624 | wxLIST_SET_ITEM | | |
625 | wxLIST_MASK_WIDTH | | |
626 | wxLIST_MASK_FORMAT | |
627 | ); | |
628 | if (self->GetColumn(col, item)) | |
629 | return new wxListItem(item); | |
630 | else | |
631 | return NULL; | |
632 | } | |
633 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
634 | wxListItem* info = new wxListItem; | |
635 | info->m_itemId = itemId; | |
636 | info->m_col = col; | |
637 | info->m_mask = 0xFFFF; | |
638 | self->GetItem(*info); | |
639 | return info; | |
640 | } | |
641 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
642 | wxPoint pos; | |
643 | self->GetItemPosition(item, pos); | |
644 | return pos; | |
645 | } | |
646 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
647 | wxRect rect; | |
648 | self->GetItemRect(item, rect, code); | |
649 | return rect; | |
650 | } | |
651 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
652 | if (!PyCallable_Check(func)) | |
423f194a | 653 | return False; |
d14a1e28 RD |
654 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
655 | } | |
656 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
657 | ||
658 | ||
659 | ||
660 | return (wxWindow*)self->m_mainWin; | |
661 | ||
662 | } | |
663 | ||
664 | #include <wx/treectrl.h> | |
665 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 666 | |
32958cea | 667 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
38f59159 RD |
668 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } |
669 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
670 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } |
671 | // C++ version of Python aware wxTreeCtrl | |
672 | class wxPyTreeCtrl : public wxTreeCtrl { | |
673 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
674 | public: | |
675 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
676 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
677 | const wxPoint& pos, | |
678 | const wxSize& size, | |
679 | long style, | |
680 | const wxValidator& validator, | |
681 | const wxString& name) : | |
682 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
683 | ||
684 | bool Create(wxWindow *parent, wxWindowID id, | |
685 | const wxPoint& pos, | |
686 | const wxSize& size, | |
687 | long style, | |
688 | const wxValidator& validator, | |
689 | const wxString& name) { | |
690 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
691 | } | |
692 | ||
693 | ||
694 | int OnCompareItems(const wxTreeItemId& item1, | |
695 | const wxTreeItemId& item2) { | |
696 | int rval = 0; | |
697 | bool found; | |
698 | wxPyBeginBlockThreads(); | |
699 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
423f194a RD |
700 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
701 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
702 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
703 | Py_DECREF(o1); | |
704 | Py_DECREF(o2); | |
705 | } | |
706 | wxPyEndBlockThreads(); | |
707 | if (! found) | |
708 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
709 | return rval; | |
710 | } | |
711 | PYPRIVATE; | |
712 | }; | |
713 | ||
714 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
715 | ||
716 | ||
8edf1c75 RD |
717 | |
718 | #define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong | |
719 | ||
720 | ||
721 | SWIGSTATIC(unsigned int) | |
722 | SWIG_PyObj_AsUnsignedInt(PyObject *obj) | |
723 | { | |
724 | return numeric_cast(unsigned int, | |
725 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX)); | |
726 | } | |
727 | ||
d14a1e28 RD |
728 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
729 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
730 | if (data == NULL) { | |
731 | data = new wxPyTreeItemData(); | |
732 | data->SetId(item); // set the id | |
733 | self->SetItemData(item, data); | |
734 | } | |
735 | return data; | |
736 | } | |
737 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
738 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
739 | if (data == NULL) { | |
740 | data = new wxPyTreeItemData(); | |
741 | data->SetId(item); // set the id | |
742 | self->SetItemData(item, data); | |
743 | } | |
744 | return data->GetData(); | |
745 | } | |
746 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
747 | data->SetId(item); // set the id | |
748 | self->SetItemData(item, data); | |
749 | } | |
750 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
751 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
752 | if (data == NULL) { | |
753 | data = new wxPyTreeItemData(obj); | |
754 | data->SetId(item); // set the id | |
755 | self->SetItemData(item, data); | |
756 | } else | |
757 | data->SetData(obj); | |
758 | } | |
759 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
760 | wxPyBeginBlockThreads(); | |
761 | PyObject* rval = PyList_New(0); | |
762 | wxArrayTreeItemIds array; | |
763 | size_t num, x; | |
764 | num = self->GetSelections(array); | |
765 | for (x=0; x < num; x++) { | |
766 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
423f194a | 767 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 RD |
768 | PyList_Append(rval, item); |
769 | } | |
770 | wxPyEndBlockThreads(); | |
771 | return rval; | |
772 | } | |
773 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
58203fa6 RD |
774 | void* cookie = 0; |
775 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
d14a1e28 RD |
776 | wxPyBeginBlockThreads(); |
777 | PyObject* tup = PyTuple_New(2); | |
58203fa6 RD |
778 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
779 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
d14a1e28 RD |
780 | wxPyEndBlockThreads(); |
781 | return tup; | |
782 | } | |
58203fa6 RD |
783 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
784 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
d14a1e28 RD |
785 | wxPyBeginBlockThreads(); |
786 | PyObject* tup = PyTuple_New(2); | |
58203fa6 RD |
787 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
788 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
d14a1e28 RD |
789 | wxPyEndBlockThreads(); |
790 | return tup; | |
791 | } | |
792 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
793 | wxRect rect; | |
794 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
795 | wxPyBeginBlockThreads(); | |
796 | wxRect* r = new wxRect(rect); | |
423f194a | 797 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
d14a1e28 RD |
798 | wxPyEndBlockThreads(); |
799 | return val; | |
800 | } | |
801 | else | |
802 | RETURN_NONE(); | |
803 | } | |
cbd72d4f | 804 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
d14a1e28 RD |
805 | // C++ version of Python aware wxControl |
806 | class wxPyControl : public wxControl | |
807 | { | |
808 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
809 | public: | |
810 | wxPyControl() : wxControl() {} | |
811 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
812 | const wxPoint& pos = wxDefaultPosition, | |
813 | const wxSize& size = wxDefaultSize, | |
814 | long style = 0, | |
815 | const wxValidator& validator=wxDefaultValidator, | |
816 | const wxString& name = wxPyControlNameStr) | |
817 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
818 | ||
819 | ||
820 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
821 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
822 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
823 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
824 | ||
825 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
826 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
827 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
828 | ||
829 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
830 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
831 | ||
832 | DEC_PYCALLBACK__(InitDialog); | |
833 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
834 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
835 | DEC_PYCALLBACK_BOOL_(Validate); | |
836 | ||
837 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
838 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
839 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
840 | ||
841 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
842 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
843 | ||
844 | PYPRIVATE; | |
845 | }; | |
846 | ||
847 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
848 | ||
849 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
850 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
851 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
852 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
853 | ||
854 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
855 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
856 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
857 | ||
858 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
859 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
860 | ||
861 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
862 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
863 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
864 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
865 | ||
866 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
867 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
868 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
869 | ||
870 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
871 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
872 | ||
873 | ||
874 | ||
875 | ||
876 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
423f194a RD |
877 | |
878 | #include <wx/generic/dragimgg.h> | |
879 | ||
d14a1e28 RD |
880 | #ifdef __cplusplus |
881 | extern "C" { | |
882 | #endif | |
8edf1c75 | 883 | static int _wrap_ButtonNameStr_set(PyObject *) { |
cbd72d4f RD |
884 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
885 | return 1; | |
886 | } | |
887 | ||
888 | ||
889 | static PyObject *_wrap_ButtonNameStr_get() { | |
890 | PyObject *pyobj; | |
891 | ||
892 | { | |
893 | #if wxUSE_UNICODE | |
894 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
895 | #else | |
896 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
897 | #endif | |
898 | } | |
899 | return pyobj; | |
900 | } | |
901 | ||
902 | ||
d14a1e28 RD |
903 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { |
904 | PyObject *resultobj; | |
905 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 906 | int arg2 ; |
d14a1e28 RD |
907 | wxString *arg3 = 0 ; |
908 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
909 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
910 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
911 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
912 | long arg6 = (long) 0 ; | |
913 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
914 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
915 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
916 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
917 | wxButton *result; | |
423f194a | 918 | bool temp3 = False ; |
d14a1e28 RD |
919 | wxPoint temp4 ; |
920 | wxSize temp5 ; | |
423f194a | 921 | bool temp8 = False ; |
d14a1e28 | 922 | PyObject * obj0 = 0 ; |
8edf1c75 | 923 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
924 | PyObject * obj2 = 0 ; |
925 | PyObject * obj3 = 0 ; | |
926 | PyObject * obj4 = 0 ; | |
8edf1c75 | 927 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
928 | PyObject * obj6 = 0 ; |
929 | PyObject * obj7 = 0 ; | |
930 | char *kwnames[] = { | |
931 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
932 | }; | |
933 | ||
8edf1c75 | 934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
936 | { |
937 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
938 | if (PyErr_Occurred()) SWIG_fail; | |
939 | } | |
d14a1e28 RD |
940 | { |
941 | arg3 = wxString_in_helper(obj2); | |
942 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 943 | temp3 = True; |
d14a1e28 RD |
944 | } |
945 | if (obj3) { | |
946 | { | |
947 | arg4 = &temp4; | |
948 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
949 | } | |
950 | } | |
951 | if (obj4) { | |
952 | { | |
953 | arg5 = &temp5; | |
954 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
955 | } | |
956 | } | |
8edf1c75 RD |
957 | if (obj5) { |
958 | { | |
959 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
960 | if (PyErr_Occurred()) SWIG_fail; | |
961 | } | |
962 | } | |
d14a1e28 RD |
963 | if (obj6) { |
964 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
965 | if (arg7 == NULL) { | |
966 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
967 | } | |
968 | } | |
969 | if (obj7) { | |
970 | { | |
971 | arg8 = wxString_in_helper(obj7); | |
972 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 973 | temp8 = True; |
d14a1e28 RD |
974 | } |
975 | } | |
976 | { | |
977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
978 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
979 | ||
980 | wxPyEndAllowThreads(__tstate); | |
981 | if (PyErr_Occurred()) SWIG_fail; | |
982 | } | |
983 | { | |
984 | resultobj = wxPyMake_wxObject(result); | |
985 | } | |
986 | { | |
987 | if (temp3) | |
988 | delete arg3; | |
989 | } | |
990 | { | |
991 | if (temp8) | |
992 | delete arg8; | |
993 | } | |
994 | return resultobj; | |
995 | fail: | |
996 | { | |
997 | if (temp3) | |
998 | delete arg3; | |
999 | } | |
1000 | { | |
1001 | if (temp8) | |
1002 | delete arg8; | |
1003 | } | |
1004 | return NULL; | |
1005 | } | |
1006 | ||
1007 | ||
1008 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1009 | PyObject *resultobj; | |
1010 | wxButton *result; | |
1011 | char *kwnames[] = { | |
1012 | NULL | |
1013 | }; | |
1014 | ||
1015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1016 | { | |
1017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1018 | result = (wxButton *)new wxButton(); | |
1019 | ||
1020 | wxPyEndAllowThreads(__tstate); | |
1021 | if (PyErr_Occurred()) SWIG_fail; | |
1022 | } | |
1023 | { | |
1024 | resultobj = wxPyMake_wxObject(result); | |
1025 | } | |
1026 | return resultobj; | |
1027 | fail: | |
1028 | return NULL; | |
1029 | } | |
1030 | ||
1031 | ||
1032 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1033 | PyObject *resultobj; | |
1034 | wxButton *arg1 = (wxButton *) 0 ; | |
1035 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1036 | int arg3 ; |
d14a1e28 RD |
1037 | wxString *arg4 = 0 ; |
1038 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1039 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1040 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1041 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1042 | long arg7 = (long) 0 ; | |
1043 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1044 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1045 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1046 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1047 | bool result; | |
423f194a | 1048 | bool temp4 = False ; |
d14a1e28 RD |
1049 | wxPoint temp5 ; |
1050 | wxSize temp6 ; | |
423f194a | 1051 | bool temp9 = False ; |
d14a1e28 RD |
1052 | PyObject * obj0 = 0 ; |
1053 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1054 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1055 | PyObject * obj3 = 0 ; |
1056 | PyObject * obj4 = 0 ; | |
1057 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1058 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1059 | PyObject * obj7 = 0 ; |
1060 | PyObject * obj8 = 0 ; | |
1061 | char *kwnames[] = { | |
1062 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1063 | }; | |
1064 | ||
8edf1c75 | 1065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1067 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
1068 | { |
1069 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1070 | if (PyErr_Occurred()) SWIG_fail; | |
1071 | } | |
d14a1e28 RD |
1072 | { |
1073 | arg4 = wxString_in_helper(obj3); | |
1074 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 1075 | temp4 = True; |
d14a1e28 RD |
1076 | } |
1077 | if (obj4) { | |
1078 | { | |
1079 | arg5 = &temp5; | |
1080 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1081 | } | |
1082 | } | |
1083 | if (obj5) { | |
1084 | { | |
1085 | arg6 = &temp6; | |
1086 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1087 | } | |
1088 | } | |
8edf1c75 RD |
1089 | if (obj6) { |
1090 | { | |
1091 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1092 | if (PyErr_Occurred()) SWIG_fail; | |
1093 | } | |
1094 | } | |
d14a1e28 RD |
1095 | if (obj7) { |
1096 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1097 | if (arg8 == NULL) { | |
1098 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1099 | } | |
1100 | } | |
1101 | if (obj8) { | |
1102 | { | |
1103 | arg9 = wxString_in_helper(obj8); | |
1104 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1105 | temp9 = True; |
d14a1e28 RD |
1106 | } |
1107 | } | |
1108 | { | |
1109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1110 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1111 | ||
1112 | wxPyEndAllowThreads(__tstate); | |
1113 | if (PyErr_Occurred()) SWIG_fail; | |
1114 | } | |
02a34c4c | 1115 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1116 | { |
1117 | if (temp4) | |
1118 | delete arg4; | |
1119 | } | |
1120 | { | |
1121 | if (temp9) | |
1122 | delete arg9; | |
1123 | } | |
1124 | return resultobj; | |
1125 | fail: | |
1126 | { | |
1127 | if (temp4) | |
1128 | delete arg4; | |
1129 | } | |
1130 | { | |
1131 | if (temp9) | |
1132 | delete arg9; | |
1133 | } | |
1134 | return NULL; | |
1135 | } | |
1136 | ||
1137 | ||
1138 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1139 | PyObject *resultobj; | |
1140 | wxButton *arg1 = (wxButton *) 0 ; | |
1141 | PyObject * obj0 = 0 ; | |
1142 | char *kwnames[] = { | |
1143 | (char *) "self", NULL | |
1144 | }; | |
1145 | ||
1146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1148 | { | |
1149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1150 | (arg1)->SetDefault(); | |
1151 | ||
1152 | wxPyEndAllowThreads(__tstate); | |
1153 | if (PyErr_Occurred()) SWIG_fail; | |
1154 | } | |
1155 | Py_INCREF(Py_None); resultobj = Py_None; | |
1156 | return resultobj; | |
1157 | fail: | |
1158 | return NULL; | |
1159 | } | |
1160 | ||
1161 | ||
1162 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1163 | PyObject *resultobj; | |
1164 | wxSize result; | |
1165 | char *kwnames[] = { | |
1166 | NULL | |
1167 | }; | |
1168 | ||
1169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1170 | { | |
1171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1172 | result = wxButton::GetDefaultSize(); | |
1173 | ||
1174 | wxPyEndAllowThreads(__tstate); | |
1175 | if (PyErr_Occurred()) SWIG_fail; | |
1176 | } | |
1177 | { | |
1178 | wxSize * resultptr; | |
1179 | resultptr = new wxSize((wxSize &) result); | |
1180 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1181 | } | |
1182 | return resultobj; | |
1183 | fail: | |
1184 | return NULL; | |
1185 | } | |
1186 | ||
1187 | ||
1188 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { | |
1189 | PyObject *obj; | |
1190 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1191 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1192 | Py_INCREF(obj); | |
1193 | return Py_BuildValue((char *)""); | |
1194 | } | |
1195 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1196 | PyObject *resultobj; | |
1197 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1198 | int arg2 ; |
d14a1e28 RD |
1199 | wxBitmap *arg3 = 0 ; |
1200 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1201 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1202 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1203 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1204 | long arg6 = (long) wxBU_AUTODRAW ; | |
1205 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1206 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1207 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1208 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1209 | wxBitmapButton *result; | |
1210 | wxPoint temp4 ; | |
1211 | wxSize temp5 ; | |
423f194a | 1212 | bool temp8 = False ; |
d14a1e28 | 1213 | PyObject * obj0 = 0 ; |
8edf1c75 | 1214 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1215 | PyObject * obj2 = 0 ; |
1216 | PyObject * obj3 = 0 ; | |
1217 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1218 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1219 | PyObject * obj6 = 0 ; |
1220 | PyObject * obj7 = 0 ; | |
1221 | char *kwnames[] = { | |
1222 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1223 | }; | |
1224 | ||
8edf1c75 | 1225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 1226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1227 | { |
1228 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1229 | if (PyErr_Occurred()) SWIG_fail; | |
1230 | } | |
d14a1e28 RD |
1231 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1232 | if (arg3 == NULL) { | |
1233 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1234 | } | |
1235 | if (obj3) { | |
1236 | { | |
1237 | arg4 = &temp4; | |
1238 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1239 | } | |
1240 | } | |
1241 | if (obj4) { | |
1242 | { | |
1243 | arg5 = &temp5; | |
1244 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1245 | } | |
1246 | } | |
8edf1c75 RD |
1247 | if (obj5) { |
1248 | { | |
1249 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1250 | if (PyErr_Occurred()) SWIG_fail; | |
1251 | } | |
1252 | } | |
d14a1e28 RD |
1253 | if (obj6) { |
1254 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1255 | if (arg7 == NULL) { | |
1256 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1257 | } | |
1258 | } | |
1259 | if (obj7) { | |
1260 | { | |
1261 | arg8 = wxString_in_helper(obj7); | |
1262 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1263 | temp8 = True; |
d14a1e28 RD |
1264 | } |
1265 | } | |
1266 | { | |
1267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1268 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1269 | ||
1270 | wxPyEndAllowThreads(__tstate); | |
1271 | if (PyErr_Occurred()) SWIG_fail; | |
1272 | } | |
1273 | { | |
1274 | resultobj = wxPyMake_wxObject(result); | |
1275 | } | |
1276 | { | |
1277 | if (temp8) | |
1278 | delete arg8; | |
1279 | } | |
1280 | return resultobj; | |
1281 | fail: | |
1282 | { | |
1283 | if (temp8) | |
1284 | delete arg8; | |
1285 | } | |
1286 | return NULL; | |
1287 | } | |
1288 | ||
1289 | ||
1290 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1291 | PyObject *resultobj; | |
1292 | wxBitmapButton *result; | |
1293 | char *kwnames[] = { | |
1294 | NULL | |
1295 | }; | |
1296 | ||
1297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1298 | { | |
1299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1300 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1301 | ||
1302 | wxPyEndAllowThreads(__tstate); | |
1303 | if (PyErr_Occurred()) SWIG_fail; | |
1304 | } | |
1305 | { | |
1306 | resultobj = wxPyMake_wxObject(result); | |
1307 | } | |
1308 | return resultobj; | |
1309 | fail: | |
1310 | return NULL; | |
1311 | } | |
1312 | ||
1313 | ||
1314 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1315 | PyObject *resultobj; | |
1316 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1317 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1318 | int arg3 ; |
d14a1e28 RD |
1319 | wxBitmap *arg4 = 0 ; |
1320 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1321 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1322 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1323 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1324 | long arg7 = (long) wxBU_AUTODRAW ; | |
1325 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1326 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1327 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1328 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1329 | bool result; | |
1330 | wxPoint temp5 ; | |
1331 | wxSize temp6 ; | |
423f194a | 1332 | bool temp9 = False ; |
d14a1e28 RD |
1333 | PyObject * obj0 = 0 ; |
1334 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1335 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1336 | PyObject * obj3 = 0 ; |
1337 | PyObject * obj4 = 0 ; | |
1338 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1339 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1340 | PyObject * obj7 = 0 ; |
1341 | PyObject * obj8 = 0 ; | |
1342 | char *kwnames[] = { | |
1343 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1344 | }; | |
1345 | ||
8edf1c75 | 1346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1348 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
1349 | { |
1350 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1351 | if (PyErr_Occurred()) SWIG_fail; | |
1352 | } | |
d14a1e28 RD |
1353 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1354 | if (arg4 == NULL) { | |
1355 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1356 | } | |
1357 | if (obj4) { | |
1358 | { | |
1359 | arg5 = &temp5; | |
1360 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1361 | } | |
1362 | } | |
1363 | if (obj5) { | |
1364 | { | |
1365 | arg6 = &temp6; | |
1366 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1367 | } | |
1368 | } | |
8edf1c75 RD |
1369 | if (obj6) { |
1370 | { | |
1371 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1372 | if (PyErr_Occurred()) SWIG_fail; | |
1373 | } | |
1374 | } | |
d14a1e28 RD |
1375 | if (obj7) { |
1376 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1377 | if (arg8 == NULL) { | |
1378 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1379 | } | |
1380 | } | |
1381 | if (obj8) { | |
1382 | { | |
1383 | arg9 = wxString_in_helper(obj8); | |
1384 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1385 | temp9 = True; |
d14a1e28 RD |
1386 | } |
1387 | } | |
1388 | { | |
1389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1390 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1391 | ||
1392 | wxPyEndAllowThreads(__tstate); | |
1393 | if (PyErr_Occurred()) SWIG_fail; | |
1394 | } | |
02a34c4c | 1395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1396 | { |
1397 | if (temp9) | |
1398 | delete arg9; | |
1399 | } | |
1400 | return resultobj; | |
1401 | fail: | |
1402 | { | |
1403 | if (temp9) | |
1404 | delete arg9; | |
1405 | } | |
1406 | return NULL; | |
1407 | } | |
1408 | ||
1409 | ||
1410 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1411 | PyObject *resultobj; | |
1412 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1413 | wxBitmap result; | |
1414 | PyObject * obj0 = 0 ; | |
1415 | char *kwnames[] = { | |
1416 | (char *) "self", NULL | |
1417 | }; | |
1418 | ||
1419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1421 | { | |
1422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1423 | result = (arg1)->GetBitmapLabel(); | |
1424 | ||
1425 | wxPyEndAllowThreads(__tstate); | |
1426 | if (PyErr_Occurred()) SWIG_fail; | |
1427 | } | |
1428 | { | |
1429 | wxBitmap * resultptr; | |
1430 | resultptr = new wxBitmap((wxBitmap &) result); | |
1431 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1432 | } | |
1433 | return resultobj; | |
1434 | fail: | |
1435 | return NULL; | |
1436 | } | |
1437 | ||
1438 | ||
1439 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1440 | PyObject *resultobj; | |
1441 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1442 | wxBitmap result; | |
1443 | PyObject * obj0 = 0 ; | |
1444 | char *kwnames[] = { | |
1445 | (char *) "self", NULL | |
1446 | }; | |
1447 | ||
1448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1450 | { | |
1451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1452 | result = (arg1)->GetBitmapDisabled(); | |
1453 | ||
1454 | wxPyEndAllowThreads(__tstate); | |
1455 | if (PyErr_Occurred()) SWIG_fail; | |
1456 | } | |
1457 | { | |
1458 | wxBitmap * resultptr; | |
1459 | resultptr = new wxBitmap((wxBitmap &) result); | |
1460 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1461 | } | |
1462 | return resultobj; | |
1463 | fail: | |
1464 | return NULL; | |
1465 | } | |
1466 | ||
1467 | ||
1468 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1469 | PyObject *resultobj; | |
1470 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1471 | wxBitmap result; | |
1472 | PyObject * obj0 = 0 ; | |
1473 | char *kwnames[] = { | |
1474 | (char *) "self", NULL | |
1475 | }; | |
1476 | ||
1477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1479 | { | |
1480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1481 | result = (arg1)->GetBitmapFocus(); | |
1482 | ||
1483 | wxPyEndAllowThreads(__tstate); | |
1484 | if (PyErr_Occurred()) SWIG_fail; | |
1485 | } | |
1486 | { | |
1487 | wxBitmap * resultptr; | |
1488 | resultptr = new wxBitmap((wxBitmap &) result); | |
1489 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1490 | } | |
1491 | return resultobj; | |
1492 | fail: | |
1493 | return NULL; | |
1494 | } | |
1495 | ||
1496 | ||
1497 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1498 | PyObject *resultobj; | |
1499 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1500 | wxBitmap result; | |
1501 | PyObject * obj0 = 0 ; | |
1502 | char *kwnames[] = { | |
1503 | (char *) "self", NULL | |
1504 | }; | |
1505 | ||
1506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1508 | { | |
1509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1510 | result = (arg1)->GetBitmapSelected(); | |
1511 | ||
1512 | wxPyEndAllowThreads(__tstate); | |
1513 | if (PyErr_Occurred()) SWIG_fail; | |
1514 | } | |
1515 | { | |
1516 | wxBitmap * resultptr; | |
1517 | resultptr = new wxBitmap((wxBitmap &) result); | |
1518 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1519 | } | |
1520 | return resultobj; | |
1521 | fail: | |
1522 | return NULL; | |
1523 | } | |
1524 | ||
1525 | ||
1526 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1527 | PyObject *resultobj; | |
1528 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1529 | wxBitmap *arg2 = 0 ; | |
1530 | PyObject * obj0 = 0 ; | |
1531 | PyObject * obj1 = 0 ; | |
1532 | char *kwnames[] = { | |
1533 | (char *) "self",(char *) "bitmap", NULL | |
1534 | }; | |
1535 | ||
1536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1538 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1539 | if (arg2 == NULL) { | |
1540 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1541 | } | |
1542 | { | |
1543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1544 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1545 | ||
1546 | wxPyEndAllowThreads(__tstate); | |
1547 | if (PyErr_Occurred()) SWIG_fail; | |
1548 | } | |
1549 | Py_INCREF(Py_None); resultobj = Py_None; | |
1550 | return resultobj; | |
1551 | fail: | |
1552 | return NULL; | |
1553 | } | |
1554 | ||
1555 | ||
1556 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1557 | PyObject *resultobj; | |
1558 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1559 | wxBitmap *arg2 = 0 ; | |
1560 | PyObject * obj0 = 0 ; | |
1561 | PyObject * obj1 = 0 ; | |
1562 | char *kwnames[] = { | |
1563 | (char *) "self",(char *) "bitmap", NULL | |
1564 | }; | |
1565 | ||
1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1568 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1569 | if (arg2 == NULL) { | |
1570 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1571 | } | |
1572 | { | |
1573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1574 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1575 | ||
1576 | wxPyEndAllowThreads(__tstate); | |
1577 | if (PyErr_Occurred()) SWIG_fail; | |
1578 | } | |
1579 | Py_INCREF(Py_None); resultobj = Py_None; | |
1580 | return resultobj; | |
1581 | fail: | |
1582 | return NULL; | |
1583 | } | |
1584 | ||
1585 | ||
1586 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1587 | PyObject *resultobj; | |
1588 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1589 | wxBitmap *arg2 = 0 ; | |
1590 | PyObject * obj0 = 0 ; | |
1591 | PyObject * obj1 = 0 ; | |
1592 | char *kwnames[] = { | |
1593 | (char *) "self",(char *) "bitmap", NULL | |
1594 | }; | |
1595 | ||
1596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1598 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1599 | if (arg2 == NULL) { | |
1600 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1601 | } | |
1602 | { | |
1603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1604 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1605 | ||
1606 | wxPyEndAllowThreads(__tstate); | |
1607 | if (PyErr_Occurred()) SWIG_fail; | |
1608 | } | |
1609 | Py_INCREF(Py_None); resultobj = Py_None; | |
1610 | return resultobj; | |
1611 | fail: | |
1612 | return NULL; | |
1613 | } | |
1614 | ||
1615 | ||
1616 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1617 | PyObject *resultobj; | |
1618 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1619 | wxBitmap *arg2 = 0 ; | |
1620 | PyObject * obj0 = 0 ; | |
1621 | PyObject * obj1 = 0 ; | |
1622 | char *kwnames[] = { | |
1623 | (char *) "self",(char *) "bitmap", NULL | |
1624 | }; | |
1625 | ||
1626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1628 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1629 | if (arg2 == NULL) { | |
1630 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1631 | } | |
1632 | { | |
1633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1634 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1635 | ||
1636 | wxPyEndAllowThreads(__tstate); | |
1637 | if (PyErr_Occurred()) SWIG_fail; | |
1638 | } | |
1639 | Py_INCREF(Py_None); resultobj = Py_None; | |
1640 | return resultobj; | |
1641 | fail: | |
1642 | return NULL; | |
1643 | } | |
1644 | ||
1645 | ||
1646 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1647 | PyObject *resultobj; | |
1648 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1649 | int arg2 ; | |
1650 | int arg3 ; | |
1651 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1652 | PyObject * obj1 = 0 ; |
1653 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1654 | char *kwnames[] = { |
1655 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1656 | }; | |
1657 | ||
8edf1c75 | 1658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1660 | { |
1661 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1662 | if (PyErr_Occurred()) SWIG_fail; | |
1663 | } | |
1664 | { | |
1665 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1666 | if (PyErr_Occurred()) SWIG_fail; | |
1667 | } | |
d14a1e28 RD |
1668 | { |
1669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1670 | (arg1)->SetMargins(arg2,arg3); | |
1671 | ||
1672 | wxPyEndAllowThreads(__tstate); | |
1673 | if (PyErr_Occurred()) SWIG_fail; | |
1674 | } | |
1675 | Py_INCREF(Py_None); resultobj = Py_None; | |
1676 | return resultobj; | |
1677 | fail: | |
1678 | return NULL; | |
1679 | } | |
1680 | ||
1681 | ||
1682 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1683 | PyObject *resultobj; | |
1684 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1685 | int result; | |
1686 | PyObject * obj0 = 0 ; | |
1687 | char *kwnames[] = { | |
1688 | (char *) "self", NULL | |
1689 | }; | |
1690 | ||
1691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
1692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1693 | { | |
1694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1695 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1696 | ||
1697 | wxPyEndAllowThreads(__tstate); | |
1698 | if (PyErr_Occurred()) SWIG_fail; | |
1699 | } | |
8edf1c75 | 1700 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1701 | return resultobj; |
1702 | fail: | |
1703 | return NULL; | |
1704 | } | |
1705 | ||
1706 | ||
1707 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1708 | PyObject *resultobj; | |
1709 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1710 | int result; | |
1711 | PyObject * obj0 = 0 ; | |
1712 | char *kwnames[] = { | |
1713 | (char *) "self", NULL | |
1714 | }; | |
1715 | ||
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
1717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1718 | { | |
1719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1720 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1721 | ||
1722 | wxPyEndAllowThreads(__tstate); | |
1723 | if (PyErr_Occurred()) SWIG_fail; | |
1724 | } | |
8edf1c75 | 1725 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1726 | return resultobj; |
1727 | fail: | |
1728 | return NULL; | |
1729 | } | |
1730 | ||
1731 | ||
1732 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1733 | PyObject *obj; | |
1734 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1735 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1736 | Py_INCREF(obj); | |
1737 | return Py_BuildValue((char *)""); | |
1738 | } | |
8edf1c75 | 1739 | static int _wrap_CheckBoxNameStr_set(PyObject *) { |
cbd72d4f RD |
1740 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
1741 | return 1; | |
1742 | } | |
1743 | ||
1744 | ||
1745 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1746 | PyObject *pyobj; | |
1747 | ||
1748 | { | |
1749 | #if wxUSE_UNICODE | |
1750 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1751 | #else | |
1752 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1753 | #endif | |
1754 | } | |
1755 | return pyobj; | |
1756 | } | |
1757 | ||
1758 | ||
d14a1e28 RD |
1759 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
1760 | PyObject *resultobj; | |
1761 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1762 | int arg2 ; |
d14a1e28 RD |
1763 | wxString *arg3 = 0 ; |
1764 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1765 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1766 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1767 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1768 | long arg6 = (long) 0 ; | |
1769 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1770 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1771 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1772 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1773 | wxCheckBox *result; | |
423f194a | 1774 | bool temp3 = False ; |
d14a1e28 RD |
1775 | wxPoint temp4 ; |
1776 | wxSize temp5 ; | |
423f194a | 1777 | bool temp8 = False ; |
d14a1e28 | 1778 | PyObject * obj0 = 0 ; |
8edf1c75 | 1779 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1780 | PyObject * obj2 = 0 ; |
1781 | PyObject * obj3 = 0 ; | |
1782 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1783 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1784 | PyObject * obj6 = 0 ; |
1785 | PyObject * obj7 = 0 ; | |
1786 | char *kwnames[] = { | |
1787 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1788 | }; | |
1789 | ||
8edf1c75 | 1790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 1791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1792 | { |
1793 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1794 | if (PyErr_Occurred()) SWIG_fail; | |
1795 | } | |
d14a1e28 RD |
1796 | { |
1797 | arg3 = wxString_in_helper(obj2); | |
1798 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 1799 | temp3 = True; |
d14a1e28 RD |
1800 | } |
1801 | if (obj3) { | |
1802 | { | |
1803 | arg4 = &temp4; | |
1804 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1805 | } | |
1806 | } | |
1807 | if (obj4) { | |
1808 | { | |
1809 | arg5 = &temp5; | |
1810 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1811 | } | |
1812 | } | |
8edf1c75 RD |
1813 | if (obj5) { |
1814 | { | |
1815 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1816 | if (PyErr_Occurred()) SWIG_fail; | |
1817 | } | |
1818 | } | |
d14a1e28 RD |
1819 | if (obj6) { |
1820 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1821 | if (arg7 == NULL) { | |
1822 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1823 | } | |
1824 | } | |
1825 | if (obj7) { | |
1826 | { | |
1827 | arg8 = wxString_in_helper(obj7); | |
1828 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1829 | temp8 = True; |
d14a1e28 RD |
1830 | } |
1831 | } | |
1832 | { | |
1833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1834 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1835 | ||
1836 | wxPyEndAllowThreads(__tstate); | |
1837 | if (PyErr_Occurred()) SWIG_fail; | |
1838 | } | |
1839 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1840 | { | |
1841 | if (temp3) | |
1842 | delete arg3; | |
1843 | } | |
1844 | { | |
1845 | if (temp8) | |
1846 | delete arg8; | |
1847 | } | |
1848 | return resultobj; | |
1849 | fail: | |
1850 | { | |
1851 | if (temp3) | |
1852 | delete arg3; | |
1853 | } | |
1854 | { | |
1855 | if (temp8) | |
1856 | delete arg8; | |
1857 | } | |
1858 | return NULL; | |
1859 | } | |
1860 | ||
1861 | ||
1862 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1863 | PyObject *resultobj; | |
1864 | wxCheckBox *result; | |
1865 | char *kwnames[] = { | |
1866 | NULL | |
1867 | }; | |
1868 | ||
1869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
1870 | { | |
1871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1872 | result = (wxCheckBox *)new wxCheckBox(); | |
1873 | ||
1874 | wxPyEndAllowThreads(__tstate); | |
1875 | if (PyErr_Occurred()) SWIG_fail; | |
1876 | } | |
1877 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1878 | return resultobj; | |
1879 | fail: | |
1880 | return NULL; | |
1881 | } | |
1882 | ||
1883 | ||
1884 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1885 | PyObject *resultobj; | |
1886 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1887 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1888 | int arg3 ; |
d14a1e28 RD |
1889 | wxString *arg4 = 0 ; |
1890 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1891 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1892 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1893 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1894 | long arg7 = (long) 0 ; | |
1895 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1896 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1897 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
1898 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1899 | bool result; | |
423f194a | 1900 | bool temp4 = False ; |
d14a1e28 RD |
1901 | wxPoint temp5 ; |
1902 | wxSize temp6 ; | |
423f194a | 1903 | bool temp9 = False ; |
d14a1e28 RD |
1904 | PyObject * obj0 = 0 ; |
1905 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1906 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1907 | PyObject * obj3 = 0 ; |
1908 | PyObject * obj4 = 0 ; | |
1909 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1910 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1911 | PyObject * obj7 = 0 ; |
1912 | PyObject * obj8 = 0 ; | |
1913 | char *kwnames[] = { | |
1914 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1915 | }; | |
1916 | ||
8edf1c75 | 1917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1919 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
1920 | { |
1921 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1922 | if (PyErr_Occurred()) SWIG_fail; | |
1923 | } | |
d14a1e28 RD |
1924 | { |
1925 | arg4 = wxString_in_helper(obj3); | |
1926 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 1927 | temp4 = True; |
d14a1e28 RD |
1928 | } |
1929 | if (obj4) { | |
1930 | { | |
1931 | arg5 = &temp5; | |
1932 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1933 | } | |
1934 | } | |
1935 | if (obj5) { | |
1936 | { | |
1937 | arg6 = &temp6; | |
1938 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1939 | } | |
1940 | } | |
8edf1c75 RD |
1941 | if (obj6) { |
1942 | { | |
1943 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1944 | if (PyErr_Occurred()) SWIG_fail; | |
1945 | } | |
1946 | } | |
d14a1e28 RD |
1947 | if (obj7) { |
1948 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1949 | if (arg8 == NULL) { | |
1950 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1951 | } | |
1952 | } | |
1953 | if (obj8) { | |
1954 | { | |
1955 | arg9 = wxString_in_helper(obj8); | |
1956 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1957 | temp9 = True; |
d14a1e28 RD |
1958 | } |
1959 | } | |
1960 | { | |
1961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1962 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1963 | ||
1964 | wxPyEndAllowThreads(__tstate); | |
1965 | if (PyErr_Occurred()) SWIG_fail; | |
1966 | } | |
02a34c4c | 1967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1968 | { |
1969 | if (temp4) | |
1970 | delete arg4; | |
1971 | } | |
1972 | { | |
1973 | if (temp9) | |
1974 | delete arg9; | |
1975 | } | |
1976 | return resultobj; | |
1977 | fail: | |
1978 | { | |
1979 | if (temp4) | |
1980 | delete arg4; | |
1981 | } | |
1982 | { | |
1983 | if (temp9) | |
1984 | delete arg9; | |
1985 | } | |
1986 | return NULL; | |
1987 | } | |
1988 | ||
1989 | ||
1990 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1991 | PyObject *resultobj; | |
1992 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1993 | bool result; | |
1994 | PyObject * obj0 = 0 ; | |
1995 | char *kwnames[] = { | |
1996 | (char *) "self", NULL | |
1997 | }; | |
1998 | ||
1999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
2000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2001 | { | |
2002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2003 | result = (bool)(arg1)->GetValue(); | |
2004 | ||
2005 | wxPyEndAllowThreads(__tstate); | |
2006 | if (PyErr_Occurred()) SWIG_fail; | |
2007 | } | |
02a34c4c | 2008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2009 | return resultobj; |
2010 | fail: | |
2011 | return NULL; | |
2012 | } | |
2013 | ||
2014 | ||
2015 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2016 | PyObject *resultobj; | |
2017 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2018 | bool result; | |
2019 | PyObject * obj0 = 0 ; | |
2020 | char *kwnames[] = { | |
2021 | (char *) "self", NULL | |
2022 | }; | |
2023 | ||
2024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2026 | { | |
2027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2028 | result = (bool)(arg1)->IsChecked(); | |
2029 | ||
2030 | wxPyEndAllowThreads(__tstate); | |
2031 | if (PyErr_Occurred()) SWIG_fail; | |
2032 | } | |
02a34c4c | 2033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2034 | return resultobj; |
2035 | fail: | |
2036 | return NULL; | |
2037 | } | |
2038 | ||
2039 | ||
2040 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2041 | PyObject *resultobj; | |
2042 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2043 | bool arg2 ; | |
2044 | PyObject * obj0 = 0 ; | |
2045 | PyObject * obj1 = 0 ; | |
2046 | char *kwnames[] = { | |
2047 | (char *) "self",(char *) "state", NULL | |
2048 | }; | |
2049 | ||
2050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 2052 | { |
8edf1c75 | 2053 | arg2 = (bool const) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
2054 | if (PyErr_Occurred()) SWIG_fail; |
2055 | } | |
d14a1e28 RD |
2056 | { |
2057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2058 | (arg1)->SetValue(arg2); | |
2059 | ||
2060 | wxPyEndAllowThreads(__tstate); | |
2061 | if (PyErr_Occurred()) SWIG_fail; | |
2062 | } | |
2063 | Py_INCREF(Py_None); resultobj = Py_None; | |
2064 | return resultobj; | |
2065 | fail: | |
2066 | return NULL; | |
2067 | } | |
2068 | ||
2069 | ||
2070 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2071 | PyObject *resultobj; | |
2072 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2073 | int result; | |
2074 | PyObject * obj0 = 0 ; | |
2075 | char *kwnames[] = { | |
2076 | (char *) "self", NULL | |
2077 | }; | |
2078 | ||
2079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2081 | { | |
2082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2083 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2084 | ||
2085 | wxPyEndAllowThreads(__tstate); | |
2086 | if (PyErr_Occurred()) SWIG_fail; | |
2087 | } | |
8edf1c75 | 2088 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2089 | return resultobj; |
2090 | fail: | |
2091 | return NULL; | |
2092 | } | |
2093 | ||
2094 | ||
2095 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2096 | PyObject *resultobj; | |
2097 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2098 | int arg2 ; | |
2099 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2100 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2101 | char *kwnames[] = { |
2102 | (char *) "self",(char *) "state", NULL | |
2103 | }; | |
2104 | ||
8edf1c75 | 2105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2107 | { |
2108 | arg2 = (wxCheckBoxState) SWIG_PyObj_AsInt(obj1); | |
2109 | if (PyErr_Occurred()) SWIG_fail; | |
2110 | } | |
d14a1e28 RD |
2111 | { |
2112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2113 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2114 | ||
2115 | wxPyEndAllowThreads(__tstate); | |
2116 | if (PyErr_Occurred()) SWIG_fail; | |
2117 | } | |
2118 | Py_INCREF(Py_None); resultobj = Py_None; | |
2119 | return resultobj; | |
2120 | fail: | |
2121 | return NULL; | |
2122 | } | |
2123 | ||
2124 | ||
2125 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2126 | PyObject *resultobj; | |
2127 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2128 | bool result; | |
2129 | PyObject * obj0 = 0 ; | |
2130 | char *kwnames[] = { | |
2131 | (char *) "self", NULL | |
2132 | }; | |
2133 | ||
2134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2136 | { | |
2137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2138 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2139 | ||
2140 | wxPyEndAllowThreads(__tstate); | |
2141 | if (PyErr_Occurred()) SWIG_fail; | |
2142 | } | |
02a34c4c | 2143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2144 | return resultobj; |
2145 | fail: | |
2146 | return NULL; | |
2147 | } | |
2148 | ||
2149 | ||
2150 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2151 | PyObject *resultobj; | |
2152 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2153 | bool result; | |
2154 | PyObject * obj0 = 0 ; | |
2155 | char *kwnames[] = { | |
2156 | (char *) "self", NULL | |
2157 | }; | |
2158 | ||
2159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2161 | { | |
2162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2163 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2164 | ||
2165 | wxPyEndAllowThreads(__tstate); | |
2166 | if (PyErr_Occurred()) SWIG_fail; | |
2167 | } | |
02a34c4c | 2168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2169 | return resultobj; |
2170 | fail: | |
2171 | return NULL; | |
2172 | } | |
2173 | ||
2174 | ||
2175 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { | |
2176 | PyObject *obj; | |
2177 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2178 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2179 | Py_INCREF(obj); | |
2180 | return Py_BuildValue((char *)""); | |
2181 | } | |
8edf1c75 | 2182 | static int _wrap_ChoiceNameStr_set(PyObject *) { |
cbd72d4f RD |
2183 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
2184 | return 1; | |
2185 | } | |
2186 | ||
2187 | ||
2188 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2189 | PyObject *pyobj; | |
2190 | ||
2191 | { | |
2192 | #if wxUSE_UNICODE | |
2193 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2194 | #else | |
2195 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2196 | #endif | |
2197 | } | |
2198 | return pyobj; | |
2199 | } | |
2200 | ||
2201 | ||
d14a1e28 RD |
2202 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { |
2203 | PyObject *resultobj; | |
2204 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2205 | int arg2 ; |
d14a1e28 RD |
2206 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2207 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2208 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2209 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
02a34c4c RD |
2210 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
2211 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2212 | long arg6 = (long) 0 ; | |
2213 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2214 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2215 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2216 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
2217 | wxChoice *result; |
2218 | wxPoint temp3 ; | |
2219 | wxSize temp4 ; | |
0ffb2aa6 | 2220 | bool temp5 = False ; |
423f194a | 2221 | bool temp8 = False ; |
d14a1e28 | 2222 | PyObject * obj0 = 0 ; |
8edf1c75 | 2223 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2224 | PyObject * obj2 = 0 ; |
2225 | PyObject * obj3 = 0 ; | |
2226 | PyObject * obj4 = 0 ; | |
8edf1c75 | 2227 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2228 | PyObject * obj6 = 0 ; |
2229 | PyObject * obj7 = 0 ; | |
2230 | char *kwnames[] = { | |
2231 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2232 | }; | |
2233 | ||
8edf1c75 | 2234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 2235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2236 | { |
2237 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2238 | if (PyErr_Occurred()) SWIG_fail; | |
2239 | } | |
d14a1e28 RD |
2240 | if (obj2) { |
2241 | { | |
2242 | arg3 = &temp3; | |
2243 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2244 | } | |
2245 | } | |
2246 | if (obj3) { | |
2247 | { | |
2248 | arg4 = &temp4; | |
2249 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2250 | } | |
2251 | } | |
2252 | if (obj4) { | |
2253 | { | |
02a34c4c RD |
2254 | if (! PySequence_Check(obj4)) { |
2255 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2256 | SWIG_fail; | |
2257 | } | |
2258 | arg5 = new wxArrayString; | |
0ffb2aa6 | 2259 | temp5 = True; |
02a34c4c RD |
2260 | int i, len=PySequence_Length(obj4); |
2261 | for (i=0; i<len; i++) { | |
2262 | PyObject* item = PySequence_GetItem(obj4, i); | |
2263 | #if wxUSE_UNICODE | |
2264 | PyObject* str = PyObject_Unicode(item); | |
2265 | #else | |
2266 | PyObject* str = PyObject_Str(item); | |
2267 | #endif | |
2268 | arg5->Add(Py2wxString(str)); | |
2269 | Py_DECREF(item); | |
2270 | Py_DECREF(str); | |
2271 | } | |
d14a1e28 RD |
2272 | } |
2273 | } | |
8edf1c75 RD |
2274 | if (obj5) { |
2275 | { | |
02a34c4c | 2276 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
2277 | if (PyErr_Occurred()) SWIG_fail; |
2278 | } | |
2279 | } | |
d14a1e28 | 2280 | if (obj6) { |
02a34c4c RD |
2281 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2282 | if (arg7 == NULL) { | |
d14a1e28 RD |
2283 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2284 | } | |
2285 | } | |
2286 | if (obj7) { | |
2287 | { | |
02a34c4c RD |
2288 | arg8 = wxString_in_helper(obj7); |
2289 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 2290 | temp8 = True; |
d14a1e28 RD |
2291 | } |
2292 | } | |
2293 | { | |
2294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 2295 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
2296 | |
2297 | wxPyEndAllowThreads(__tstate); | |
2298 | if (PyErr_Occurred()) SWIG_fail; | |
2299 | } | |
2300 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2301 | { | |
0ffb2aa6 | 2302 | if (temp5) delete arg5; |
d14a1e28 RD |
2303 | } |
2304 | { | |
2305 | if (temp8) | |
02a34c4c | 2306 | delete arg8; |
d14a1e28 RD |
2307 | } |
2308 | return resultobj; | |
2309 | fail: | |
2310 | { | |
0ffb2aa6 | 2311 | if (temp5) delete arg5; |
d14a1e28 RD |
2312 | } |
2313 | { | |
2314 | if (temp8) | |
02a34c4c | 2315 | delete arg8; |
d14a1e28 RD |
2316 | } |
2317 | return NULL; | |
2318 | } | |
2319 | ||
2320 | ||
2321 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2322 | PyObject *resultobj; | |
2323 | wxChoice *result; | |
2324 | char *kwnames[] = { | |
2325 | NULL | |
2326 | }; | |
2327 | ||
2328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2329 | { | |
2330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2331 | result = (wxChoice *)new wxChoice(); | |
2332 | ||
2333 | wxPyEndAllowThreads(__tstate); | |
2334 | if (PyErr_Occurred()) SWIG_fail; | |
2335 | } | |
2336 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2337 | return resultobj; | |
2338 | fail: | |
2339 | return NULL; | |
2340 | } | |
2341 | ||
2342 | ||
2343 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2344 | PyObject *resultobj; | |
2345 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2346 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2347 | int arg3 ; |
d14a1e28 RD |
2348 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2349 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2350 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2351 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
02a34c4c RD |
2352 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2353 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2354 | long arg7 = (long) 0 ; | |
2355 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2356 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2357 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2358 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
2359 | bool result; |
2360 | wxPoint temp4 ; | |
2361 | wxSize temp5 ; | |
0ffb2aa6 | 2362 | bool temp6 = False ; |
423f194a | 2363 | bool temp9 = False ; |
d14a1e28 RD |
2364 | PyObject * obj0 = 0 ; |
2365 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2366 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2367 | PyObject * obj3 = 0 ; |
2368 | PyObject * obj4 = 0 ; | |
2369 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2370 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2371 | PyObject * obj7 = 0 ; |
2372 | PyObject * obj8 = 0 ; | |
2373 | char *kwnames[] = { | |
2374 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2375 | }; | |
2376 | ||
8edf1c75 | 2377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
2378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2379 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
2380 | { |
2381 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2382 | if (PyErr_Occurred()) SWIG_fail; | |
2383 | } | |
d14a1e28 RD |
2384 | if (obj3) { |
2385 | { | |
2386 | arg4 = &temp4; | |
2387 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2388 | } | |
2389 | } | |
2390 | if (obj4) { | |
2391 | { | |
2392 | arg5 = &temp5; | |
2393 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2394 | } | |
2395 | } | |
2396 | if (obj5) { | |
2397 | { | |
02a34c4c RD |
2398 | if (! PySequence_Check(obj5)) { |
2399 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2400 | SWIG_fail; | |
2401 | } | |
2402 | arg6 = new wxArrayString; | |
0ffb2aa6 | 2403 | temp6 = True; |
02a34c4c RD |
2404 | int i, len=PySequence_Length(obj5); |
2405 | for (i=0; i<len; i++) { | |
2406 | PyObject* item = PySequence_GetItem(obj5, i); | |
2407 | #if wxUSE_UNICODE | |
2408 | PyObject* str = PyObject_Unicode(item); | |
2409 | #else | |
2410 | PyObject* str = PyObject_Str(item); | |
2411 | #endif | |
2412 | arg6->Add(Py2wxString(str)); | |
2413 | Py_DECREF(item); | |
2414 | Py_DECREF(str); | |
2415 | } | |
d14a1e28 RD |
2416 | } |
2417 | } | |
8edf1c75 RD |
2418 | if (obj6) { |
2419 | { | |
02a34c4c | 2420 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
2421 | if (PyErr_Occurred()) SWIG_fail; |
2422 | } | |
2423 | } | |
d14a1e28 | 2424 | if (obj7) { |
02a34c4c RD |
2425 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2426 | if (arg8 == NULL) { | |
d14a1e28 RD |
2427 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2428 | } | |
2429 | } | |
2430 | if (obj8) { | |
2431 | { | |
02a34c4c RD |
2432 | arg9 = wxString_in_helper(obj8); |
2433 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2434 | temp9 = True; |
d14a1e28 RD |
2435 | } |
2436 | } | |
2437 | { | |
2438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 2439 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
2440 | |
2441 | wxPyEndAllowThreads(__tstate); | |
2442 | if (PyErr_Occurred()) SWIG_fail; | |
2443 | } | |
02a34c4c | 2444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 2445 | { |
0ffb2aa6 | 2446 | if (temp6) delete arg6; |
d14a1e28 RD |
2447 | } |
2448 | { | |
2449 | if (temp9) | |
02a34c4c | 2450 | delete arg9; |
d14a1e28 RD |
2451 | } |
2452 | return resultobj; | |
2453 | fail: | |
2454 | { | |
0ffb2aa6 | 2455 | if (temp6) delete arg6; |
d14a1e28 RD |
2456 | } |
2457 | { | |
2458 | if (temp9) | |
02a34c4c | 2459 | delete arg9; |
d14a1e28 RD |
2460 | } |
2461 | return NULL; | |
2462 | } | |
2463 | ||
2464 | ||
d14a1e28 RD |
2465 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2466 | PyObject *resultobj; | |
2467 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2468 | int arg2 ; | |
2469 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2470 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2471 | char *kwnames[] = { |
2472 | (char *) "self",(char *) "n", NULL | |
2473 | }; | |
2474 | ||
8edf1c75 | 2475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2477 | { |
2478 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
2479 | if (PyErr_Occurred()) SWIG_fail; | |
2480 | } | |
d14a1e28 RD |
2481 | { |
2482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2483 | (arg1)->SetSelection(arg2); | |
2484 | ||
2485 | wxPyEndAllowThreads(__tstate); | |
2486 | if (PyErr_Occurred()) SWIG_fail; | |
2487 | } | |
2488 | Py_INCREF(Py_None); resultobj = Py_None; | |
2489 | return resultobj; | |
2490 | fail: | |
2491 | return NULL; | |
2492 | } | |
2493 | ||
2494 | ||
2495 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2496 | PyObject *resultobj; | |
2497 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2498 | wxString *arg2 = 0 ; | |
423f194a | 2499 | bool temp2 = False ; |
d14a1e28 RD |
2500 | PyObject * obj0 = 0 ; |
2501 | PyObject * obj1 = 0 ; | |
2502 | char *kwnames[] = { | |
2503 | (char *) "self",(char *) "string", NULL | |
2504 | }; | |
2505 | ||
2506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2508 | { | |
2509 | arg2 = wxString_in_helper(obj1); | |
2510 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2511 | temp2 = True; |
d14a1e28 RD |
2512 | } |
2513 | { | |
2514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2515 | (arg1)->SetStringSelection((wxString const &)*arg2); | |
2516 | ||
2517 | wxPyEndAllowThreads(__tstate); | |
2518 | if (PyErr_Occurred()) SWIG_fail; | |
2519 | } | |
2520 | Py_INCREF(Py_None); resultobj = Py_None; | |
2521 | { | |
2522 | if (temp2) | |
2523 | delete arg2; | |
2524 | } | |
2525 | return resultobj; | |
2526 | fail: | |
2527 | { | |
2528 | if (temp2) | |
2529 | delete arg2; | |
2530 | } | |
2531 | return NULL; | |
2532 | } | |
2533 | ||
2534 | ||
2535 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2536 | PyObject *resultobj; | |
2537 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2538 | int arg2 ; | |
2539 | wxString *arg3 = 0 ; | |
423f194a | 2540 | bool temp3 = False ; |
d14a1e28 | 2541 | PyObject * obj0 = 0 ; |
8edf1c75 | 2542 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2543 | PyObject * obj2 = 0 ; |
2544 | char *kwnames[] = { | |
1f05e33b | 2545 | (char *) "self",(char *) "n",(char *) "string", NULL |
d14a1e28 RD |
2546 | }; |
2547 | ||
8edf1c75 | 2548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2550 | { |
2551 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2552 | if (PyErr_Occurred()) SWIG_fail; | |
2553 | } | |
d14a1e28 RD |
2554 | { |
2555 | arg3 = wxString_in_helper(obj2); | |
2556 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2557 | temp3 = True; |
d14a1e28 RD |
2558 | } |
2559 | { | |
2560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2561 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2562 | ||
2563 | wxPyEndAllowThreads(__tstate); | |
2564 | if (PyErr_Occurred()) SWIG_fail; | |
2565 | } | |
2566 | Py_INCREF(Py_None); resultobj = Py_None; | |
2567 | { | |
2568 | if (temp3) | |
2569 | delete arg3; | |
2570 | } | |
2571 | return resultobj; | |
2572 | fail: | |
2573 | { | |
2574 | if (temp3) | |
2575 | delete arg3; | |
2576 | } | |
2577 | return NULL; | |
2578 | } | |
2579 | ||
2580 | ||
2581 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2582 | PyObject *obj; | |
2583 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2584 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2585 | Py_INCREF(obj); | |
2586 | return Py_BuildValue((char *)""); | |
2587 | } | |
8edf1c75 | 2588 | static int _wrap_ComboBoxNameStr_set(PyObject *) { |
cbd72d4f RD |
2589 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
2590 | return 1; | |
2591 | } | |
2592 | ||
2593 | ||
2594 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2595 | PyObject *pyobj; | |
2596 | ||
2597 | { | |
2598 | #if wxUSE_UNICODE | |
2599 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2600 | #else | |
2601 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2602 | #endif | |
2603 | } | |
2604 | return pyobj; | |
2605 | } | |
2606 | ||
2607 | ||
d14a1e28 RD |
2608 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2609 | PyObject *resultobj; | |
2610 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2611 | int arg2 ; |
d14a1e28 RD |
2612 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2613 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2614 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2615 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2616 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2617 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
02a34c4c RD |
2618 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2619 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2620 | long arg7 = (long) 0 ; | |
2621 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2622 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2623 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2624 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 2625 | wxComboBox *result; |
423f194a | 2626 | bool temp3 = False ; |
d14a1e28 RD |
2627 | wxPoint temp4 ; |
2628 | wxSize temp5 ; | |
0ffb2aa6 | 2629 | bool temp6 = False ; |
423f194a | 2630 | bool temp9 = False ; |
d14a1e28 | 2631 | PyObject * obj0 = 0 ; |
8edf1c75 | 2632 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2633 | PyObject * obj2 = 0 ; |
2634 | PyObject * obj3 = 0 ; | |
2635 | PyObject * obj4 = 0 ; | |
2636 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2637 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2638 | PyObject * obj7 = 0 ; |
2639 | PyObject * obj8 = 0 ; | |
2640 | char *kwnames[] = { | |
2641 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2642 | }; | |
2643 | ||
8edf1c75 | 2644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 2645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2646 | { |
2647 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2648 | if (PyErr_Occurred()) SWIG_fail; | |
2649 | } | |
d14a1e28 RD |
2650 | if (obj2) { |
2651 | { | |
2652 | arg3 = wxString_in_helper(obj2); | |
2653 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2654 | temp3 = True; |
d14a1e28 RD |
2655 | } |
2656 | } | |
2657 | if (obj3) { | |
2658 | { | |
2659 | arg4 = &temp4; | |
2660 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2661 | } | |
2662 | } | |
2663 | if (obj4) { | |
2664 | { | |
2665 | arg5 = &temp5; | |
2666 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2667 | } | |
2668 | } | |
2669 | if (obj5) { | |
2670 | { | |
02a34c4c RD |
2671 | if (! PySequence_Check(obj5)) { |
2672 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2673 | SWIG_fail; | |
2674 | } | |
2675 | arg6 = new wxArrayString; | |
0ffb2aa6 | 2676 | temp6 = True; |
02a34c4c RD |
2677 | int i, len=PySequence_Length(obj5); |
2678 | for (i=0; i<len; i++) { | |
2679 | PyObject* item = PySequence_GetItem(obj5, i); | |
2680 | #if wxUSE_UNICODE | |
2681 | PyObject* str = PyObject_Unicode(item); | |
2682 | #else | |
2683 | PyObject* str = PyObject_Str(item); | |
2684 | #endif | |
2685 | arg6->Add(Py2wxString(str)); | |
2686 | Py_DECREF(item); | |
2687 | Py_DECREF(str); | |
2688 | } | |
d14a1e28 RD |
2689 | } |
2690 | } | |
8edf1c75 RD |
2691 | if (obj6) { |
2692 | { | |
02a34c4c | 2693 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
2694 | if (PyErr_Occurred()) SWIG_fail; |
2695 | } | |
2696 | } | |
d14a1e28 | 2697 | if (obj7) { |
02a34c4c RD |
2698 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2699 | if (arg8 == NULL) { | |
d14a1e28 RD |
2700 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2701 | } | |
2702 | } | |
2703 | if (obj8) { | |
2704 | { | |
02a34c4c RD |
2705 | arg9 = wxString_in_helper(obj8); |
2706 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2707 | temp9 = True; |
d14a1e28 RD |
2708 | } |
2709 | } | |
2710 | { | |
2711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 2712 | 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 |
2713 | |
2714 | wxPyEndAllowThreads(__tstate); | |
2715 | if (PyErr_Occurred()) SWIG_fail; | |
2716 | } | |
2717 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2718 | { | |
2719 | if (temp3) | |
2720 | delete arg3; | |
2721 | } | |
2722 | { | |
0ffb2aa6 | 2723 | if (temp6) delete arg6; |
d14a1e28 RD |
2724 | } |
2725 | { | |
2726 | if (temp9) | |
02a34c4c | 2727 | delete arg9; |
d14a1e28 RD |
2728 | } |
2729 | return resultobj; | |
2730 | fail: | |
2731 | { | |
2732 | if (temp3) | |
2733 | delete arg3; | |
2734 | } | |
2735 | { | |
0ffb2aa6 | 2736 | if (temp6) delete arg6; |
d14a1e28 RD |
2737 | } |
2738 | { | |
2739 | if (temp9) | |
02a34c4c | 2740 | delete arg9; |
d14a1e28 RD |
2741 | } |
2742 | return NULL; | |
2743 | } | |
2744 | ||
2745 | ||
2746 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2747 | PyObject *resultobj; | |
2748 | wxComboBox *result; | |
2749 | char *kwnames[] = { | |
2750 | NULL | |
2751 | }; | |
2752 | ||
2753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2754 | { | |
2755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2756 | result = (wxComboBox *)new wxComboBox(); | |
2757 | ||
2758 | wxPyEndAllowThreads(__tstate); | |
2759 | if (PyErr_Occurred()) SWIG_fail; | |
2760 | } | |
2761 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2762 | return resultobj; | |
2763 | fail: | |
2764 | return NULL; | |
2765 | } | |
2766 | ||
2767 | ||
2768 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2769 | PyObject *resultobj; | |
2770 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2771 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2772 | int arg3 ; |
d14a1e28 RD |
2773 | wxString const &arg4_defvalue = wxPyEmptyString ; |
2774 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2775 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2776 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2777 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2778 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
02a34c4c RD |
2779 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
2780 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
2781 | long arg8 = (long) 0 ; | |
2782 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2783 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
38f59159 | 2784 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
02a34c4c | 2785 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 2786 | bool result; |
423f194a | 2787 | bool temp4 = False ; |
d14a1e28 RD |
2788 | wxPoint temp5 ; |
2789 | wxSize temp6 ; | |
0ffb2aa6 | 2790 | bool temp7 = False ; |
423f194a | 2791 | bool temp10 = False ; |
d14a1e28 RD |
2792 | PyObject * obj0 = 0 ; |
2793 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2794 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2795 | PyObject * obj3 = 0 ; |
2796 | PyObject * obj4 = 0 ; | |
2797 | PyObject * obj5 = 0 ; | |
2798 | PyObject * obj6 = 0 ; | |
8edf1c75 | 2799 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
2800 | PyObject * obj8 = 0 ; |
2801 | PyObject * obj9 = 0 ; | |
2802 | char *kwnames[] = { | |
2803 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2804 | }; | |
2805 | ||
8edf1c75 | 2806 | 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 |
2807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2808 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
2809 | { |
2810 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2811 | if (PyErr_Occurred()) SWIG_fail; | |
2812 | } | |
d14a1e28 RD |
2813 | if (obj3) { |
2814 | { | |
2815 | arg4 = wxString_in_helper(obj3); | |
2816 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2817 | temp4 = True; |
d14a1e28 RD |
2818 | } |
2819 | } | |
2820 | if (obj4) { | |
2821 | { | |
2822 | arg5 = &temp5; | |
2823 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2824 | } | |
2825 | } | |
2826 | if (obj5) { | |
2827 | { | |
2828 | arg6 = &temp6; | |
2829 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2830 | } | |
2831 | } | |
2832 | if (obj6) { | |
2833 | { | |
02a34c4c RD |
2834 | if (! PySequence_Check(obj6)) { |
2835 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2836 | SWIG_fail; | |
2837 | } | |
2838 | arg7 = new wxArrayString; | |
0ffb2aa6 | 2839 | temp7 = True; |
02a34c4c RD |
2840 | int i, len=PySequence_Length(obj6); |
2841 | for (i=0; i<len; i++) { | |
2842 | PyObject* item = PySequence_GetItem(obj6, i); | |
2843 | #if wxUSE_UNICODE | |
2844 | PyObject* str = PyObject_Unicode(item); | |
2845 | #else | |
2846 | PyObject* str = PyObject_Str(item); | |
2847 | #endif | |
2848 | arg7->Add(Py2wxString(str)); | |
2849 | Py_DECREF(item); | |
2850 | Py_DECREF(str); | |
2851 | } | |
d14a1e28 RD |
2852 | } |
2853 | } | |
8edf1c75 RD |
2854 | if (obj7) { |
2855 | { | |
02a34c4c | 2856 | arg8 = (long) SWIG_PyObj_AsLong(obj7); |
8edf1c75 RD |
2857 | if (PyErr_Occurred()) SWIG_fail; |
2858 | } | |
2859 | } | |
d14a1e28 | 2860 | if (obj8) { |
02a34c4c RD |
2861 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2862 | if (arg9 == NULL) { | |
d14a1e28 RD |
2863 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2864 | } | |
2865 | } | |
2866 | if (obj9) { | |
2867 | { | |
02a34c4c RD |
2868 | arg10 = wxString_in_helper(obj9); |
2869 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 2870 | temp10 = True; |
d14a1e28 RD |
2871 | } |
2872 | } | |
2873 | { | |
2874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 2875 | 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 |
2876 | |
2877 | wxPyEndAllowThreads(__tstate); | |
2878 | if (PyErr_Occurred()) SWIG_fail; | |
2879 | } | |
02a34c4c | 2880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2881 | { |
2882 | if (temp4) | |
2883 | delete arg4; | |
2884 | } | |
2885 | { | |
0ffb2aa6 | 2886 | if (temp7) delete arg7; |
d14a1e28 RD |
2887 | } |
2888 | { | |
2889 | if (temp10) | |
02a34c4c | 2890 | delete arg10; |
d14a1e28 RD |
2891 | } |
2892 | return resultobj; | |
2893 | fail: | |
2894 | { | |
2895 | if (temp4) | |
2896 | delete arg4; | |
2897 | } | |
2898 | { | |
0ffb2aa6 | 2899 | if (temp7) delete arg7; |
d14a1e28 RD |
2900 | } |
2901 | { | |
2902 | if (temp10) | |
02a34c4c | 2903 | delete arg10; |
d14a1e28 RD |
2904 | } |
2905 | return NULL; | |
2906 | } | |
2907 | ||
2908 | ||
2909 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2910 | PyObject *resultobj; | |
2911 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2912 | wxString result; | |
2913 | PyObject * obj0 = 0 ; | |
2914 | char *kwnames[] = { | |
2915 | (char *) "self", NULL | |
2916 | }; | |
2917 | ||
2918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
2919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2920 | { | |
2921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2922 | result = ((wxComboBox const *)arg1)->GetValue(); | |
2923 | ||
2924 | wxPyEndAllowThreads(__tstate); | |
2925 | if (PyErr_Occurred()) SWIG_fail; | |
2926 | } | |
2927 | { | |
2928 | #if wxUSE_UNICODE | |
2929 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2930 | #else | |
2931 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2932 | #endif | |
2933 | } | |
2934 | return resultobj; | |
2935 | fail: | |
2936 | return NULL; | |
2937 | } | |
2938 | ||
2939 | ||
2940 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2941 | PyObject *resultobj; | |
2942 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2943 | wxString *arg2 = 0 ; | |
423f194a | 2944 | bool temp2 = False ; |
d14a1e28 RD |
2945 | PyObject * obj0 = 0 ; |
2946 | PyObject * obj1 = 0 ; | |
2947 | char *kwnames[] = { | |
2948 | (char *) "self",(char *) "value", NULL | |
2949 | }; | |
2950 | ||
2951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2953 | { | |
2954 | arg2 = wxString_in_helper(obj1); | |
2955 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2956 | temp2 = True; |
d14a1e28 RD |
2957 | } |
2958 | { | |
2959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2960 | (arg1)->SetValue((wxString const &)*arg2); | |
2961 | ||
2962 | wxPyEndAllowThreads(__tstate); | |
2963 | if (PyErr_Occurred()) SWIG_fail; | |
2964 | } | |
2965 | Py_INCREF(Py_None); resultobj = Py_None; | |
2966 | { | |
2967 | if (temp2) | |
2968 | delete arg2; | |
2969 | } | |
2970 | return resultobj; | |
2971 | fail: | |
2972 | { | |
2973 | if (temp2) | |
2974 | delete arg2; | |
2975 | } | |
2976 | return NULL; | |
2977 | } | |
2978 | ||
2979 | ||
2980 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2981 | PyObject *resultobj; | |
2982 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2983 | PyObject * obj0 = 0 ; | |
2984 | char *kwnames[] = { | |
2985 | (char *) "self", NULL | |
2986 | }; | |
2987 | ||
2988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
2989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2990 | { | |
2991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2992 | (arg1)->Copy(); | |
2993 | ||
2994 | wxPyEndAllowThreads(__tstate); | |
2995 | if (PyErr_Occurred()) SWIG_fail; | |
2996 | } | |
2997 | Py_INCREF(Py_None); resultobj = Py_None; | |
2998 | return resultobj; | |
2999 | fail: | |
3000 | return NULL; | |
3001 | } | |
3002 | ||
3003 | ||
3004 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3005 | PyObject *resultobj; | |
3006 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3007 | PyObject * obj0 = 0 ; | |
3008 | char *kwnames[] = { | |
3009 | (char *) "self", NULL | |
3010 | }; | |
3011 | ||
3012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
3013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3014 | { | |
3015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3016 | (arg1)->Cut(); | |
3017 | ||
3018 | wxPyEndAllowThreads(__tstate); | |
3019 | if (PyErr_Occurred()) SWIG_fail; | |
3020 | } | |
3021 | Py_INCREF(Py_None); resultobj = Py_None; | |
3022 | return resultobj; | |
3023 | fail: | |
3024 | return NULL; | |
3025 | } | |
3026 | ||
3027 | ||
3028 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3029 | PyObject *resultobj; | |
3030 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3031 | PyObject * obj0 = 0 ; | |
3032 | char *kwnames[] = { | |
3033 | (char *) "self", NULL | |
3034 | }; | |
3035 | ||
3036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
3037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3038 | { | |
3039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3040 | (arg1)->Paste(); | |
3041 | ||
3042 | wxPyEndAllowThreads(__tstate); | |
3043 | if (PyErr_Occurred()) SWIG_fail; | |
3044 | } | |
3045 | Py_INCREF(Py_None); resultobj = Py_None; | |
3046 | return resultobj; | |
3047 | fail: | |
3048 | return NULL; | |
3049 | } | |
3050 | ||
3051 | ||
3052 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3053 | PyObject *resultobj; | |
3054 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3055 | long arg2 ; | |
3056 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3057 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3058 | char *kwnames[] = { |
3059 | (char *) "self",(char *) "pos", NULL | |
3060 | }; | |
3061 | ||
8edf1c75 | 3062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3064 | { |
3065 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3066 | if (PyErr_Occurred()) SWIG_fail; | |
3067 | } | |
d14a1e28 RD |
3068 | { |
3069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3070 | (arg1)->SetInsertionPoint(arg2); | |
3071 | ||
3072 | wxPyEndAllowThreads(__tstate); | |
3073 | if (PyErr_Occurred()) SWIG_fail; | |
3074 | } | |
3075 | Py_INCREF(Py_None); resultobj = Py_None; | |
3076 | return resultobj; | |
3077 | fail: | |
3078 | return NULL; | |
3079 | } | |
3080 | ||
3081 | ||
3082 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3083 | PyObject *resultobj; | |
3084 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3085 | long result; | |
3086 | PyObject * obj0 = 0 ; | |
3087 | char *kwnames[] = { | |
3088 | (char *) "self", NULL | |
3089 | }; | |
3090 | ||
3091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
3092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3093 | { | |
3094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3095 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3096 | ||
3097 | wxPyEndAllowThreads(__tstate); | |
3098 | if (PyErr_Occurred()) SWIG_fail; | |
3099 | } | |
8edf1c75 | 3100 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
3101 | return resultobj; |
3102 | fail: | |
3103 | return NULL; | |
3104 | } | |
3105 | ||
3106 | ||
3107 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3108 | PyObject *resultobj; | |
3109 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3110 | long result; | |
3111 | PyObject * obj0 = 0 ; | |
3112 | char *kwnames[] = { | |
3113 | (char *) "self", NULL | |
3114 | }; | |
3115 | ||
3116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
3117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3118 | { | |
3119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3120 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3121 | ||
3122 | wxPyEndAllowThreads(__tstate); | |
3123 | if (PyErr_Occurred()) SWIG_fail; | |
3124 | } | |
8edf1c75 | 3125 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
3126 | return resultobj; |
3127 | fail: | |
3128 | return NULL; | |
3129 | } | |
3130 | ||
3131 | ||
3132 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3133 | PyObject *resultobj; | |
3134 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3135 | long arg2 ; | |
3136 | long arg3 ; | |
3137 | wxString *arg4 = 0 ; | |
423f194a | 3138 | bool temp4 = False ; |
d14a1e28 | 3139 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3140 | PyObject * obj1 = 0 ; |
3141 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3142 | PyObject * obj3 = 0 ; |
3143 | char *kwnames[] = { | |
3144 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3145 | }; | |
3146 | ||
8edf1c75 | 3147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 3148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3149 | { |
3150 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3151 | if (PyErr_Occurred()) SWIG_fail; | |
3152 | } | |
3153 | { | |
3154 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3155 | if (PyErr_Occurred()) SWIG_fail; | |
3156 | } | |
d14a1e28 RD |
3157 | { |
3158 | arg4 = wxString_in_helper(obj3); | |
3159 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 3160 | temp4 = True; |
d14a1e28 RD |
3161 | } |
3162 | { | |
3163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3164 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3165 | ||
3166 | wxPyEndAllowThreads(__tstate); | |
3167 | if (PyErr_Occurred()) SWIG_fail; | |
3168 | } | |
3169 | Py_INCREF(Py_None); resultobj = Py_None; | |
3170 | { | |
3171 | if (temp4) | |
3172 | delete arg4; | |
3173 | } | |
3174 | return resultobj; | |
3175 | fail: | |
3176 | { | |
3177 | if (temp4) | |
3178 | delete arg4; | |
3179 | } | |
3180 | return NULL; | |
3181 | } | |
3182 | ||
3183 | ||
100c4552 RD |
3184 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3185 | PyObject *resultobj; | |
3186 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3187 | int arg2 ; | |
3188 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3189 | PyObject * obj1 = 0 ; |
100c4552 RD |
3190 | char *kwnames[] = { |
3191 | (char *) "self",(char *) "n", NULL | |
3192 | }; | |
3193 | ||
8edf1c75 | 3194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
100c4552 | 3195 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3196 | { |
3197 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3198 | if (PyErr_Occurred()) SWIG_fail; | |
3199 | } | |
100c4552 RD |
3200 | { |
3201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3202 | (arg1)->SetSelection(arg2); | |
3203 | ||
3204 | wxPyEndAllowThreads(__tstate); | |
3205 | if (PyErr_Occurred()) SWIG_fail; | |
3206 | } | |
3207 | Py_INCREF(Py_None); resultobj = Py_None; | |
3208 | return resultobj; | |
3209 | fail: | |
3210 | return NULL; | |
3211 | } | |
3212 | ||
3213 | ||
d14a1e28 RD |
3214 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
3215 | PyObject *resultobj; | |
3216 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3217 | long arg2 ; | |
3218 | long arg3 ; | |
3219 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3220 | PyObject * obj1 = 0 ; |
3221 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3222 | char *kwnames[] = { |
3223 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3224 | }; | |
3225 | ||
8edf1c75 | 3226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3228 | { |
3229 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3230 | if (PyErr_Occurred()) SWIG_fail; | |
3231 | } | |
3232 | { | |
3233 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3234 | if (PyErr_Occurred()) SWIG_fail; | |
3235 | } | |
d14a1e28 RD |
3236 | { |
3237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3238 | (arg1)->SetSelection(arg2,arg3); | |
3239 | ||
3240 | wxPyEndAllowThreads(__tstate); | |
3241 | if (PyErr_Occurred()) SWIG_fail; | |
3242 | } | |
3243 | Py_INCREF(Py_None); resultobj = Py_None; | |
3244 | return resultobj; | |
3245 | fail: | |
3246 | return NULL; | |
3247 | } | |
3248 | ||
3249 | ||
3250 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3251 | PyObject *resultobj; | |
3252 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3253 | bool arg2 ; | |
3254 | PyObject * obj0 = 0 ; | |
3255 | PyObject * obj1 = 0 ; | |
3256 | char *kwnames[] = { | |
3257 | (char *) "self",(char *) "editable", NULL | |
3258 | }; | |
3259 | ||
3260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
3261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 3262 | { |
8edf1c75 | 3263 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
3264 | if (PyErr_Occurred()) SWIG_fail; |
3265 | } | |
d14a1e28 RD |
3266 | { |
3267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3268 | (arg1)->SetEditable(arg2); | |
3269 | ||
3270 | wxPyEndAllowThreads(__tstate); | |
3271 | if (PyErr_Occurred()) SWIG_fail; | |
3272 | } | |
3273 | Py_INCREF(Py_None); resultobj = Py_None; | |
3274 | return resultobj; | |
3275 | fail: | |
3276 | return NULL; | |
3277 | } | |
3278 | ||
3279 | ||
3280 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3281 | PyObject *resultobj; | |
3282 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3283 | PyObject * obj0 = 0 ; | |
3284 | char *kwnames[] = { | |
3285 | (char *) "self", NULL | |
3286 | }; | |
3287 | ||
3288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
3289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3290 | { | |
3291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3292 | (arg1)->SetInsertionPointEnd(); | |
3293 | ||
3294 | wxPyEndAllowThreads(__tstate); | |
3295 | if (PyErr_Occurred()) SWIG_fail; | |
3296 | } | |
3297 | Py_INCREF(Py_None); resultobj = Py_None; | |
3298 | return resultobj; | |
3299 | fail: | |
3300 | return NULL; | |
3301 | } | |
3302 | ||
3303 | ||
3304 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3305 | PyObject *resultobj; | |
3306 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3307 | long arg2 ; | |
3308 | long arg3 ; | |
3309 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3310 | PyObject * obj1 = 0 ; |
3311 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3312 | char *kwnames[] = { |
3313 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3314 | }; | |
3315 | ||
8edf1c75 | 3316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3318 | { |
3319 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3320 | if (PyErr_Occurred()) SWIG_fail; | |
3321 | } | |
3322 | { | |
3323 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3324 | if (PyErr_Occurred()) SWIG_fail; | |
3325 | } | |
d14a1e28 RD |
3326 | { |
3327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3328 | (arg1)->Remove(arg2,arg3); | |
3329 | ||
3330 | wxPyEndAllowThreads(__tstate); | |
3331 | if (PyErr_Occurred()) SWIG_fail; | |
3332 | } | |
3333 | Py_INCREF(Py_None); resultobj = Py_None; | |
3334 | return resultobj; | |
3335 | fail: | |
3336 | return NULL; | |
3337 | } | |
3338 | ||
3339 | ||
3340 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
3341 | PyObject *obj; | |
3342 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3343 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3344 | Py_INCREF(obj); | |
3345 | return Py_BuildValue((char *)""); | |
3346 | } | |
8edf1c75 | 3347 | static int _wrap_GaugeNameStr_set(PyObject *) { |
cbd72d4f RD |
3348 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
3349 | return 1; | |
3350 | } | |
3351 | ||
3352 | ||
3353 | static PyObject *_wrap_GaugeNameStr_get() { | |
3354 | PyObject *pyobj; | |
3355 | ||
3356 | { | |
3357 | #if wxUSE_UNICODE | |
3358 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3359 | #else | |
3360 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3361 | #endif | |
3362 | } | |
3363 | return pyobj; | |
3364 | } | |
3365 | ||
3366 | ||
d14a1e28 RD |
3367 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3368 | PyObject *resultobj; | |
3369 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3370 | int arg2 ; |
d14a1e28 RD |
3371 | int arg3 ; |
3372 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3373 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3374 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3375 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3376 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3377 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3378 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3379 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3380 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3381 | wxGauge *result; | |
3382 | wxPoint temp4 ; | |
3383 | wxSize temp5 ; | |
423f194a | 3384 | bool temp8 = False ; |
d14a1e28 | 3385 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3386 | PyObject * obj1 = 0 ; |
3387 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3388 | PyObject * obj3 = 0 ; |
3389 | PyObject * obj4 = 0 ; | |
8edf1c75 | 3390 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3391 | PyObject * obj6 = 0 ; |
3392 | PyObject * obj7 = 0 ; | |
3393 | char *kwnames[] = { | |
3394 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3395 | }; | |
3396 | ||
8edf1c75 | 3397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 3398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3399 | { |
3400 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3401 | if (PyErr_Occurred()) SWIG_fail; | |
3402 | } | |
3403 | { | |
3404 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3405 | if (PyErr_Occurred()) SWIG_fail; | |
3406 | } | |
d14a1e28 RD |
3407 | if (obj3) { |
3408 | { | |
3409 | arg4 = &temp4; | |
3410 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3411 | } | |
3412 | } | |
3413 | if (obj4) { | |
3414 | { | |
3415 | arg5 = &temp5; | |
3416 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3417 | } | |
3418 | } | |
8edf1c75 RD |
3419 | if (obj5) { |
3420 | { | |
3421 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3422 | if (PyErr_Occurred()) SWIG_fail; | |
3423 | } | |
3424 | } | |
d14a1e28 RD |
3425 | if (obj6) { |
3426 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3427 | if (arg7 == NULL) { | |
3428 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3429 | } | |
3430 | } | |
3431 | if (obj7) { | |
3432 | { | |
3433 | arg8 = wxString_in_helper(obj7); | |
3434 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 3435 | temp8 = True; |
d14a1e28 RD |
3436 | } |
3437 | } | |
3438 | { | |
3439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3440 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3441 | ||
3442 | wxPyEndAllowThreads(__tstate); | |
3443 | if (PyErr_Occurred()) SWIG_fail; | |
3444 | } | |
3445 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3446 | { | |
3447 | if (temp8) | |
3448 | delete arg8; | |
3449 | } | |
3450 | return resultobj; | |
3451 | fail: | |
3452 | { | |
3453 | if (temp8) | |
3454 | delete arg8; | |
3455 | } | |
3456 | return NULL; | |
3457 | } | |
3458 | ||
3459 | ||
3460 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3461 | PyObject *resultobj; | |
3462 | wxGauge *result; | |
3463 | char *kwnames[] = { | |
3464 | NULL | |
3465 | }; | |
3466 | ||
3467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3468 | { | |
3469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3470 | result = (wxGauge *)new wxGauge(); | |
3471 | ||
3472 | wxPyEndAllowThreads(__tstate); | |
3473 | if (PyErr_Occurred()) SWIG_fail; | |
3474 | } | |
3475 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3476 | return resultobj; | |
3477 | fail: | |
3478 | return NULL; | |
3479 | } | |
3480 | ||
3481 | ||
3482 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3483 | PyObject *resultobj; | |
3484 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3485 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 3486 | int arg3 ; |
d14a1e28 RD |
3487 | int arg4 ; |
3488 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3489 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3490 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3491 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3492 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3493 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3494 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3495 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3496 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3497 | bool result; | |
3498 | wxPoint temp5 ; | |
3499 | wxSize temp6 ; | |
423f194a | 3500 | bool temp9 = False ; |
d14a1e28 RD |
3501 | PyObject * obj0 = 0 ; |
3502 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
3503 | PyObject * obj2 = 0 ; |
3504 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3505 | PyObject * obj4 = 0 ; |
3506 | PyObject * obj5 = 0 ; | |
8edf1c75 | 3507 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3508 | PyObject * obj7 = 0 ; |
3509 | PyObject * obj8 = 0 ; | |
3510 | char *kwnames[] = { | |
3511 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3512 | }; | |
3513 | ||
8edf1c75 | 3514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3516 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
3517 | { |
3518 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3519 | if (PyErr_Occurred()) SWIG_fail; | |
3520 | } | |
3521 | { | |
3522 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
3523 | if (PyErr_Occurred()) SWIG_fail; | |
3524 | } | |
d14a1e28 RD |
3525 | if (obj4) { |
3526 | { | |
3527 | arg5 = &temp5; | |
3528 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3529 | } | |
3530 | } | |
3531 | if (obj5) { | |
3532 | { | |
3533 | arg6 = &temp6; | |
3534 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3535 | } | |
3536 | } | |
8edf1c75 RD |
3537 | if (obj6) { |
3538 | { | |
3539 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
3540 | if (PyErr_Occurred()) SWIG_fail; | |
3541 | } | |
3542 | } | |
d14a1e28 RD |
3543 | if (obj7) { |
3544 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3545 | if (arg8 == NULL) { | |
3546 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3547 | } | |
3548 | } | |
3549 | if (obj8) { | |
3550 | { | |
3551 | arg9 = wxString_in_helper(obj8); | |
3552 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 3553 | temp9 = True; |
d14a1e28 RD |
3554 | } |
3555 | } | |
3556 | { | |
3557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3558 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3559 | ||
3560 | wxPyEndAllowThreads(__tstate); | |
3561 | if (PyErr_Occurred()) SWIG_fail; | |
3562 | } | |
02a34c4c | 3563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3564 | { |
3565 | if (temp9) | |
3566 | delete arg9; | |
3567 | } | |
3568 | return resultobj; | |
3569 | fail: | |
3570 | { | |
3571 | if (temp9) | |
3572 | delete arg9; | |
3573 | } | |
3574 | return NULL; | |
3575 | } | |
3576 | ||
3577 | ||
3578 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3579 | PyObject *resultobj; | |
3580 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3581 | int arg2 ; | |
3582 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3583 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3584 | char *kwnames[] = { |
3585 | (char *) "self",(char *) "range", NULL | |
3586 | }; | |
3587 | ||
8edf1c75 | 3588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3590 | { |
3591 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3592 | if (PyErr_Occurred()) SWIG_fail; | |
3593 | } | |
d14a1e28 RD |
3594 | { |
3595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3596 | (arg1)->SetRange(arg2); | |
3597 | ||
3598 | wxPyEndAllowThreads(__tstate); | |
3599 | if (PyErr_Occurred()) SWIG_fail; | |
3600 | } | |
3601 | Py_INCREF(Py_None); resultobj = Py_None; | |
3602 | return resultobj; | |
3603 | fail: | |
3604 | return NULL; | |
3605 | } | |
3606 | ||
3607 | ||
3608 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3609 | PyObject *resultobj; | |
3610 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3611 | int result; | |
3612 | PyObject * obj0 = 0 ; | |
3613 | char *kwnames[] = { | |
3614 | (char *) "self", NULL | |
3615 | }; | |
3616 | ||
3617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
3618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3619 | { | |
3620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3621 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3622 | ||
3623 | wxPyEndAllowThreads(__tstate); | |
3624 | if (PyErr_Occurred()) SWIG_fail; | |
3625 | } | |
8edf1c75 | 3626 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3627 | return resultobj; |
3628 | fail: | |
3629 | return NULL; | |
3630 | } | |
3631 | ||
3632 | ||
3633 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3634 | PyObject *resultobj; | |
3635 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3636 | int arg2 ; | |
3637 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3638 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3639 | char *kwnames[] = { |
3640 | (char *) "self",(char *) "pos", NULL | |
3641 | }; | |
3642 | ||
8edf1c75 | 3643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3645 | { |
3646 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3647 | if (PyErr_Occurred()) SWIG_fail; | |
3648 | } | |
d14a1e28 RD |
3649 | { |
3650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3651 | (arg1)->SetValue(arg2); | |
3652 | ||
3653 | wxPyEndAllowThreads(__tstate); | |
3654 | if (PyErr_Occurred()) SWIG_fail; | |
3655 | } | |
3656 | Py_INCREF(Py_None); resultobj = Py_None; | |
3657 | return resultobj; | |
3658 | fail: | |
3659 | return NULL; | |
3660 | } | |
3661 | ||
3662 | ||
3663 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3664 | PyObject *resultobj; | |
3665 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3666 | int result; | |
3667 | PyObject * obj0 = 0 ; | |
3668 | char *kwnames[] = { | |
3669 | (char *) "self", NULL | |
3670 | }; | |
3671 | ||
3672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
3673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3674 | { | |
3675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3676 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3677 | ||
3678 | wxPyEndAllowThreads(__tstate); | |
3679 | if (PyErr_Occurred()) SWIG_fail; | |
3680 | } | |
8edf1c75 | 3681 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3682 | return resultobj; |
3683 | fail: | |
3684 | return NULL; | |
3685 | } | |
3686 | ||
3687 | ||
3688 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3689 | PyObject *resultobj; | |
3690 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3691 | bool result; | |
3692 | PyObject * obj0 = 0 ; | |
3693 | char *kwnames[] = { | |
3694 | (char *) "self", NULL | |
3695 | }; | |
3696 | ||
3697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
3698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3699 | { | |
3700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3701 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3702 | ||
3703 | wxPyEndAllowThreads(__tstate); | |
3704 | if (PyErr_Occurred()) SWIG_fail; | |
3705 | } | |
02a34c4c | 3706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3707 | return resultobj; |
3708 | fail: | |
3709 | return NULL; | |
3710 | } | |
3711 | ||
3712 | ||
3713 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3714 | PyObject *resultobj; | |
3715 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3716 | int arg2 ; | |
3717 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3718 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3719 | char *kwnames[] = { |
3720 | (char *) "self",(char *) "w", NULL | |
3721 | }; | |
3722 | ||
8edf1c75 | 3723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3725 | { |
3726 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3727 | if (PyErr_Occurred()) SWIG_fail; | |
3728 | } | |
d14a1e28 RD |
3729 | { |
3730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3731 | (arg1)->SetShadowWidth(arg2); | |
3732 | ||
3733 | wxPyEndAllowThreads(__tstate); | |
3734 | if (PyErr_Occurred()) SWIG_fail; | |
3735 | } | |
3736 | Py_INCREF(Py_None); resultobj = Py_None; | |
3737 | return resultobj; | |
3738 | fail: | |
3739 | return NULL; | |
3740 | } | |
3741 | ||
3742 | ||
3743 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3744 | PyObject *resultobj; | |
3745 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3746 | int result; | |
3747 | PyObject * obj0 = 0 ; | |
3748 | char *kwnames[] = { | |
3749 | (char *) "self", NULL | |
3750 | }; | |
3751 | ||
3752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
3753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3754 | { | |
3755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3756 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3757 | ||
3758 | wxPyEndAllowThreads(__tstate); | |
3759 | if (PyErr_Occurred()) SWIG_fail; | |
3760 | } | |
8edf1c75 | 3761 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3762 | return resultobj; |
3763 | fail: | |
3764 | return NULL; | |
3765 | } | |
3766 | ||
3767 | ||
3768 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3769 | PyObject *resultobj; | |
3770 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3771 | int arg2 ; | |
3772 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3773 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3774 | char *kwnames[] = { |
3775 | (char *) "self",(char *) "w", NULL | |
3776 | }; | |
3777 | ||
8edf1c75 | 3778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3780 | { |
3781 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3782 | if (PyErr_Occurred()) SWIG_fail; | |
3783 | } | |
d14a1e28 RD |
3784 | { |
3785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3786 | (arg1)->SetBezelFace(arg2); | |
3787 | ||
3788 | wxPyEndAllowThreads(__tstate); | |
3789 | if (PyErr_Occurred()) SWIG_fail; | |
3790 | } | |
3791 | Py_INCREF(Py_None); resultobj = Py_None; | |
3792 | return resultobj; | |
3793 | fail: | |
3794 | return NULL; | |
3795 | } | |
3796 | ||
3797 | ||
3798 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3799 | PyObject *resultobj; | |
3800 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3801 | int result; | |
3802 | PyObject * obj0 = 0 ; | |
3803 | char *kwnames[] = { | |
3804 | (char *) "self", NULL | |
3805 | }; | |
3806 | ||
3807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
3808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3809 | { | |
3810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3811 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3812 | ||
3813 | wxPyEndAllowThreads(__tstate); | |
3814 | if (PyErr_Occurred()) SWIG_fail; | |
3815 | } | |
8edf1c75 | 3816 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3817 | return resultobj; |
3818 | fail: | |
3819 | return NULL; | |
3820 | } | |
3821 | ||
3822 | ||
3823 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
3824 | PyObject *obj; | |
3825 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3826 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
3827 | Py_INCREF(obj); | |
3828 | return Py_BuildValue((char *)""); | |
3829 | } | |
8edf1c75 | 3830 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
cbd72d4f RD |
3831 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
3832 | return 1; | |
3833 | } | |
3834 | ||
3835 | ||
3836 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
3837 | PyObject *pyobj; | |
3838 | ||
3839 | { | |
3840 | #if wxUSE_UNICODE | |
3841 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3842 | #else | |
3843 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3844 | #endif | |
3845 | } | |
3846 | return pyobj; | |
3847 | } | |
3848 | ||
3849 | ||
8edf1c75 | 3850 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
cbd72d4f RD |
3851 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
3852 | return 1; | |
3853 | } | |
3854 | ||
3855 | ||
3856 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
3857 | PyObject *pyobj; | |
3858 | ||
3859 | { | |
3860 | #if wxUSE_UNICODE | |
3861 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3862 | #else | |
3863 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3864 | #endif | |
3865 | } | |
3866 | return pyobj; | |
3867 | } | |
3868 | ||
3869 | ||
8edf1c75 | 3870 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
cbd72d4f RD |
3871 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
3872 | return 1; | |
3873 | } | |
3874 | ||
3875 | ||
3876 | static PyObject *_wrap_StaticTextNameStr_get() { | |
3877 | PyObject *pyobj; | |
3878 | ||
3879 | { | |
3880 | #if wxUSE_UNICODE | |
3881 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3882 | #else | |
3883 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3884 | #endif | |
3885 | } | |
3886 | return pyobj; | |
3887 | } | |
3888 | ||
3889 | ||
d14a1e28 RD |
3890 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
3891 | PyObject *resultobj; | |
3892 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3893 | int arg2 ; |
d14a1e28 RD |
3894 | wxString *arg3 = 0 ; |
3895 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3896 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3897 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3898 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3899 | long arg6 = (long) 0 ; | |
3900 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
3901 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3902 | wxStaticBox *result; | |
423f194a | 3903 | bool temp3 = False ; |
d14a1e28 RD |
3904 | wxPoint temp4 ; |
3905 | wxSize temp5 ; | |
423f194a | 3906 | bool temp7 = False ; |
d14a1e28 | 3907 | PyObject * obj0 = 0 ; |
8edf1c75 | 3908 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3909 | PyObject * obj2 = 0 ; |
3910 | PyObject * obj3 = 0 ; | |
3911 | PyObject * obj4 = 0 ; | |
8edf1c75 | 3912 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3913 | PyObject * obj6 = 0 ; |
3914 | char *kwnames[] = { | |
3915 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3916 | }; | |
3917 | ||
8edf1c75 | 3918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 3919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3920 | { |
3921 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3922 | if (PyErr_Occurred()) SWIG_fail; | |
3923 | } | |
d14a1e28 RD |
3924 | { |
3925 | arg3 = wxString_in_helper(obj2); | |
3926 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3927 | temp3 = True; |
d14a1e28 RD |
3928 | } |
3929 | if (obj3) { | |
3930 | { | |
3931 | arg4 = &temp4; | |
3932 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3933 | } | |
3934 | } | |
3935 | if (obj4) { | |
3936 | { | |
3937 | arg5 = &temp5; | |
3938 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3939 | } | |
3940 | } | |
8edf1c75 RD |
3941 | if (obj5) { |
3942 | { | |
3943 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3944 | if (PyErr_Occurred()) SWIG_fail; | |
3945 | } | |
3946 | } | |
d14a1e28 RD |
3947 | if (obj6) { |
3948 | { | |
3949 | arg7 = wxString_in_helper(obj6); | |
3950 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 3951 | temp7 = True; |
d14a1e28 RD |
3952 | } |
3953 | } | |
3954 | { | |
3955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3956 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3957 | ||
3958 | wxPyEndAllowThreads(__tstate); | |
3959 | if (PyErr_Occurred()) SWIG_fail; | |
3960 | } | |
3961 | { | |
3962 | resultobj = wxPyMake_wxObject(result); | |
3963 | } | |
3964 | { | |
3965 | if (temp3) | |
3966 | delete arg3; | |
3967 | } | |
3968 | { | |
3969 | if (temp7) | |
3970 | delete arg7; | |
3971 | } | |
3972 | return resultobj; | |
3973 | fail: | |
3974 | { | |
3975 | if (temp3) | |
3976 | delete arg3; | |
3977 | } | |
3978 | { | |
3979 | if (temp7) | |
3980 | delete arg7; | |
3981 | } | |
3982 | return NULL; | |
3983 | } | |
3984 | ||
3985 | ||
3986 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3987 | PyObject *resultobj; | |
3988 | wxStaticBox *result; | |
3989 | char *kwnames[] = { | |
3990 | NULL | |
3991 | }; | |
3992 | ||
3993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
3994 | { | |
3995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3996 | result = (wxStaticBox *)new wxStaticBox(); | |
3997 | ||
3998 | wxPyEndAllowThreads(__tstate); | |
3999 | if (PyErr_Occurred()) SWIG_fail; | |
4000 | } | |
4001 | { | |
4002 | resultobj = wxPyMake_wxObject(result); | |
4003 | } | |
4004 | return resultobj; | |
4005 | fail: | |
4006 | return NULL; | |
4007 | } | |
4008 | ||
4009 | ||
4010 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4011 | PyObject *resultobj; | |
4012 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4013 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4014 | int arg3 ; |
d14a1e28 RD |
4015 | wxString *arg4 = 0 ; |
4016 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4017 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4018 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4019 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4020 | long arg7 = (long) 0 ; | |
4021 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4022 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4023 | bool result; | |
423f194a | 4024 | bool temp4 = False ; |
d14a1e28 RD |
4025 | wxPoint temp5 ; |
4026 | wxSize temp6 ; | |
423f194a | 4027 | bool temp8 = False ; |
d14a1e28 RD |
4028 | PyObject * obj0 = 0 ; |
4029 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4030 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4031 | PyObject * obj3 = 0 ; |
4032 | PyObject * obj4 = 0 ; | |
4033 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4034 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4035 | PyObject * obj7 = 0 ; |
4036 | char *kwnames[] = { | |
4037 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4038 | }; | |
4039 | ||
8edf1c75 | 4040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4042 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4043 | { |
4044 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4045 | if (PyErr_Occurred()) SWIG_fail; | |
4046 | } | |
d14a1e28 RD |
4047 | { |
4048 | arg4 = wxString_in_helper(obj3); | |
4049 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4050 | temp4 = True; |
d14a1e28 RD |
4051 | } |
4052 | if (obj4) { | |
4053 | { | |
4054 | arg5 = &temp5; | |
4055 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4056 | } | |
4057 | } | |
4058 | if (obj5) { | |
4059 | { | |
4060 | arg6 = &temp6; | |
4061 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4062 | } | |
4063 | } | |
8edf1c75 RD |
4064 | if (obj6) { |
4065 | { | |
4066 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4067 | if (PyErr_Occurred()) SWIG_fail; | |
4068 | } | |
4069 | } | |
d14a1e28 RD |
4070 | if (obj7) { |
4071 | { | |
4072 | arg8 = wxString_in_helper(obj7); | |
4073 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4074 | temp8 = True; |
d14a1e28 RD |
4075 | } |
4076 | } | |
4077 | { | |
4078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4079 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4080 | ||
4081 | wxPyEndAllowThreads(__tstate); | |
4082 | if (PyErr_Occurred()) SWIG_fail; | |
4083 | } | |
02a34c4c | 4084 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4085 | { |
4086 | if (temp4) | |
4087 | delete arg4; | |
4088 | } | |
4089 | { | |
4090 | if (temp8) | |
4091 | delete arg8; | |
4092 | } | |
4093 | return resultobj; | |
4094 | fail: | |
4095 | { | |
4096 | if (temp4) | |
4097 | delete arg4; | |
4098 | } | |
4099 | { | |
4100 | if (temp8) | |
4101 | delete arg8; | |
4102 | } | |
4103 | return NULL; | |
4104 | } | |
4105 | ||
4106 | ||
4107 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
4108 | PyObject *obj; | |
4109 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4110 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4111 | Py_INCREF(obj); | |
4112 | return Py_BuildValue((char *)""); | |
4113 | } | |
4114 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4115 | PyObject *resultobj; | |
4116 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4117 | int arg2 ; |
d14a1e28 RD |
4118 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4119 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4120 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4121 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4122 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4123 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4124 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4125 | wxStaticLine *result; | |
4126 | wxPoint temp3 ; | |
4127 | wxSize temp4 ; | |
423f194a | 4128 | bool temp6 = False ; |
d14a1e28 | 4129 | PyObject * obj0 = 0 ; |
8edf1c75 | 4130 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4131 | PyObject * obj2 = 0 ; |
4132 | PyObject * obj3 = 0 ; | |
8edf1c75 | 4133 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4134 | PyObject * obj5 = 0 ; |
4135 | char *kwnames[] = { | |
4136 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4137 | }; | |
4138 | ||
8edf1c75 | 4139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 4140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4141 | { |
4142 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4143 | if (PyErr_Occurred()) SWIG_fail; | |
4144 | } | |
d14a1e28 RD |
4145 | if (obj2) { |
4146 | { | |
4147 | arg3 = &temp3; | |
4148 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4149 | } | |
4150 | } | |
4151 | if (obj3) { | |
4152 | { | |
4153 | arg4 = &temp4; | |
4154 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4155 | } | |
4156 | } | |
8edf1c75 RD |
4157 | if (obj4) { |
4158 | { | |
4159 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
4160 | if (PyErr_Occurred()) SWIG_fail; | |
4161 | } | |
4162 | } | |
d14a1e28 RD |
4163 | if (obj5) { |
4164 | { | |
4165 | arg6 = wxString_in_helper(obj5); | |
4166 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 4167 | temp6 = True; |
d14a1e28 RD |
4168 | } |
4169 | } | |
4170 | { | |
4171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4172 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4173 | ||
4174 | wxPyEndAllowThreads(__tstate); | |
4175 | if (PyErr_Occurred()) SWIG_fail; | |
4176 | } | |
4177 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
4178 | { | |
4179 | if (temp6) | |
4180 | delete arg6; | |
4181 | } | |
4182 | return resultobj; | |
4183 | fail: | |
4184 | { | |
4185 | if (temp6) | |
4186 | delete arg6; | |
4187 | } | |
4188 | return NULL; | |
4189 | } | |
4190 | ||
4191 | ||
4192 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4193 | PyObject *resultobj; | |
4194 | wxStaticLine *result; | |
4195 | char *kwnames[] = { | |
4196 | NULL | |
4197 | }; | |
4198 | ||
4199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4200 | { | |
4201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4202 | result = (wxStaticLine *)new wxStaticLine(); | |
4203 | ||
4204 | wxPyEndAllowThreads(__tstate); | |
4205 | if (PyErr_Occurred()) SWIG_fail; | |
4206 | } | |
4207 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
4208 | return resultobj; | |
4209 | fail: | |
4210 | return NULL; | |
4211 | } | |
4212 | ||
4213 | ||
4214 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4215 | PyObject *resultobj; | |
4216 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4217 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4218 | int arg3 ; |
d14a1e28 RD |
4219 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4220 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4221 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4222 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4223 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4224 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4225 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4226 | bool result; | |
4227 | wxPoint temp4 ; | |
4228 | wxSize temp5 ; | |
423f194a | 4229 | bool temp7 = False ; |
d14a1e28 RD |
4230 | PyObject * obj0 = 0 ; |
4231 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4232 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4233 | PyObject * obj3 = 0 ; |
4234 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4235 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4236 | PyObject * obj6 = 0 ; |
4237 | char *kwnames[] = { | |
4238 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4239 | }; | |
4240 | ||
8edf1c75 | 4241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
4242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4243 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4244 | { |
4245 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4246 | if (PyErr_Occurred()) SWIG_fail; | |
4247 | } | |
d14a1e28 RD |
4248 | if (obj3) { |
4249 | { | |
4250 | arg4 = &temp4; | |
4251 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4252 | } | |
4253 | } | |
4254 | if (obj4) { | |
4255 | { | |
4256 | arg5 = &temp5; | |
4257 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4258 | } | |
4259 | } | |
8edf1c75 RD |
4260 | if (obj5) { |
4261 | { | |
4262 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4263 | if (PyErr_Occurred()) SWIG_fail; | |
4264 | } | |
4265 | } | |
d14a1e28 RD |
4266 | if (obj6) { |
4267 | { | |
4268 | arg7 = wxString_in_helper(obj6); | |
4269 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4270 | temp7 = True; |
d14a1e28 RD |
4271 | } |
4272 | } | |
4273 | { | |
4274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4275 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4276 | ||
4277 | wxPyEndAllowThreads(__tstate); | |
4278 | if (PyErr_Occurred()) SWIG_fail; | |
4279 | } | |
02a34c4c | 4280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4281 | { |
4282 | if (temp7) | |
4283 | delete arg7; | |
4284 | } | |
4285 | return resultobj; | |
4286 | fail: | |
4287 | { | |
4288 | if (temp7) | |
4289 | delete arg7; | |
4290 | } | |
4291 | return NULL; | |
4292 | } | |
4293 | ||
4294 | ||
4295 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4296 | PyObject *resultobj; | |
4297 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4298 | bool result; | |
4299 | PyObject * obj0 = 0 ; | |
4300 | char *kwnames[] = { | |
4301 | (char *) "self", NULL | |
4302 | }; | |
4303 | ||
4304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
4305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4306 | { | |
4307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4308 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4309 | ||
4310 | wxPyEndAllowThreads(__tstate); | |
4311 | if (PyErr_Occurred()) SWIG_fail; | |
4312 | } | |
02a34c4c | 4313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4314 | return resultobj; |
4315 | fail: | |
4316 | return NULL; | |
4317 | } | |
4318 | ||
4319 | ||
4320 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4321 | PyObject *resultobj; | |
4322 | int result; | |
4323 | char *kwnames[] = { | |
4324 | NULL | |
4325 | }; | |
4326 | ||
4327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4328 | { | |
4329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4330 | result = (int)wxStaticLine::GetDefaultSize(); | |
4331 | ||
4332 | wxPyEndAllowThreads(__tstate); | |
4333 | if (PyErr_Occurred()) SWIG_fail; | |
4334 | } | |
8edf1c75 | 4335 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4336 | return resultobj; |
4337 | fail: | |
4338 | return NULL; | |
4339 | } | |
4340 | ||
4341 | ||
4342 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
4343 | PyObject *obj; | |
4344 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4345 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4346 | Py_INCREF(obj); | |
4347 | return Py_BuildValue((char *)""); | |
4348 | } | |
4349 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4350 | PyObject *resultobj; | |
4351 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4352 | int arg2 ; |
d14a1e28 RD |
4353 | wxString *arg3 = 0 ; |
4354 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4355 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4356 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4357 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4358 | long arg6 = (long) 0 ; | |
4359 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4360 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4361 | wxStaticText *result; | |
423f194a | 4362 | bool temp3 = False ; |
d14a1e28 RD |
4363 | wxPoint temp4 ; |
4364 | wxSize temp5 ; | |
423f194a | 4365 | bool temp7 = False ; |
d14a1e28 | 4366 | PyObject * obj0 = 0 ; |
8edf1c75 | 4367 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4368 | PyObject * obj2 = 0 ; |
4369 | PyObject * obj3 = 0 ; | |
4370 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4371 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4372 | PyObject * obj6 = 0 ; |
4373 | char *kwnames[] = { | |
4374 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4375 | }; | |
4376 | ||
8edf1c75 | 4377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 4378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4379 | { |
4380 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4381 | if (PyErr_Occurred()) SWIG_fail; | |
4382 | } | |
d14a1e28 RD |
4383 | { |
4384 | arg3 = wxString_in_helper(obj2); | |
4385 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 4386 | temp3 = True; |
d14a1e28 RD |
4387 | } |
4388 | if (obj3) { | |
4389 | { | |
4390 | arg4 = &temp4; | |
4391 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4392 | } | |
4393 | } | |
4394 | if (obj4) { | |
4395 | { | |
4396 | arg5 = &temp5; | |
4397 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4398 | } | |
4399 | } | |
8edf1c75 RD |
4400 | if (obj5) { |
4401 | { | |
4402 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4403 | if (PyErr_Occurred()) SWIG_fail; | |
4404 | } | |
4405 | } | |
d14a1e28 RD |
4406 | if (obj6) { |
4407 | { | |
4408 | arg7 = wxString_in_helper(obj6); | |
4409 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4410 | temp7 = True; |
d14a1e28 RD |
4411 | } |
4412 | } | |
4413 | { | |
4414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4415 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4416 | ||
4417 | wxPyEndAllowThreads(__tstate); | |
4418 | if (PyErr_Occurred()) SWIG_fail; | |
4419 | } | |
4420 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4421 | { | |
4422 | if (temp3) | |
4423 | delete arg3; | |
4424 | } | |
4425 | { | |
4426 | if (temp7) | |
4427 | delete arg7; | |
4428 | } | |
4429 | return resultobj; | |
4430 | fail: | |
4431 | { | |
4432 | if (temp3) | |
4433 | delete arg3; | |
4434 | } | |
4435 | { | |
4436 | if (temp7) | |
4437 | delete arg7; | |
4438 | } | |
4439 | return NULL; | |
4440 | } | |
4441 | ||
4442 | ||
4443 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4444 | PyObject *resultobj; | |
4445 | wxStaticText *result; | |
4446 | char *kwnames[] = { | |
4447 | NULL | |
4448 | }; | |
4449 | ||
4450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4451 | { | |
4452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4453 | result = (wxStaticText *)new wxStaticText(); | |
4454 | ||
4455 | wxPyEndAllowThreads(__tstate); | |
4456 | if (PyErr_Occurred()) SWIG_fail; | |
4457 | } | |
4458 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4459 | return resultobj; | |
4460 | fail: | |
4461 | return NULL; | |
4462 | } | |
4463 | ||
4464 | ||
4465 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4466 | PyObject *resultobj; | |
4467 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4468 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4469 | int arg3 ; |
d14a1e28 RD |
4470 | wxString *arg4 = 0 ; |
4471 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4472 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4473 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4474 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4475 | long arg7 = (long) 0 ; | |
4476 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4477 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4478 | bool result; | |
423f194a | 4479 | bool temp4 = False ; |
d14a1e28 RD |
4480 | wxPoint temp5 ; |
4481 | wxSize temp6 ; | |
423f194a | 4482 | bool temp8 = False ; |
d14a1e28 RD |
4483 | PyObject * obj0 = 0 ; |
4484 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4485 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4486 | PyObject * obj3 = 0 ; |
4487 | PyObject * obj4 = 0 ; | |
4488 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4489 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4490 | PyObject * obj7 = 0 ; |
4491 | char *kwnames[] = { | |
4492 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4493 | }; | |
4494 | ||
8edf1c75 | 4495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticText,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4497 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4498 | { |
4499 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4500 | if (PyErr_Occurred()) SWIG_fail; | |
4501 | } | |
d14a1e28 RD |
4502 | { |
4503 | arg4 = wxString_in_helper(obj3); | |
4504 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4505 | temp4 = True; |
d14a1e28 RD |
4506 | } |
4507 | if (obj4) { | |
4508 | { | |
4509 | arg5 = &temp5; | |
4510 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4511 | } | |
4512 | } | |
4513 | if (obj5) { | |
4514 | { | |
4515 | arg6 = &temp6; | |
4516 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4517 | } | |
4518 | } | |
8edf1c75 RD |
4519 | if (obj6) { |
4520 | { | |
4521 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4522 | if (PyErr_Occurred()) SWIG_fail; | |
4523 | } | |
4524 | } | |
d14a1e28 RD |
4525 | if (obj7) { |
4526 | { | |
4527 | arg8 = wxString_in_helper(obj7); | |
4528 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4529 | temp8 = True; |
d14a1e28 RD |
4530 | } |
4531 | } | |
4532 | { | |
4533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4534 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4535 | ||
4536 | wxPyEndAllowThreads(__tstate); | |
4537 | if (PyErr_Occurred()) SWIG_fail; | |
4538 | } | |
02a34c4c | 4539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4540 | { |
4541 | if (temp4) | |
4542 | delete arg4; | |
4543 | } | |
4544 | { | |
4545 | if (temp8) | |
4546 | delete arg8; | |
4547 | } | |
4548 | return resultobj; | |
4549 | fail: | |
4550 | { | |
4551 | if (temp4) | |
4552 | delete arg4; | |
4553 | } | |
4554 | { | |
4555 | if (temp8) | |
4556 | delete arg8; | |
4557 | } | |
4558 | return NULL; | |
4559 | } | |
4560 | ||
4561 | ||
4562 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4563 | PyObject *obj; | |
4564 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4565 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4566 | Py_INCREF(obj); | |
4567 | return Py_BuildValue((char *)""); | |
4568 | } | |
4569 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4570 | PyObject *resultobj; | |
4571 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4572 | int arg2 ; |
d14a1e28 RD |
4573 | wxBitmap *arg3 = 0 ; |
4574 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4575 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4576 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4577 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4578 | long arg6 = (long) 0 ; | |
4579 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4580 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4581 | wxStaticBitmap *result; | |
4582 | wxPoint temp4 ; | |
4583 | wxSize temp5 ; | |
423f194a | 4584 | bool temp7 = False ; |
d14a1e28 | 4585 | PyObject * obj0 = 0 ; |
8edf1c75 | 4586 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4587 | PyObject * obj2 = 0 ; |
4588 | PyObject * obj3 = 0 ; | |
4589 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4590 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4591 | PyObject * obj6 = 0 ; |
4592 | char *kwnames[] = { | |
4593 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4594 | }; | |
4595 | ||
8edf1c75 | 4596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 4597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4598 | { |
4599 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4600 | if (PyErr_Occurred()) SWIG_fail; | |
4601 | } | |
d14a1e28 RD |
4602 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4603 | if (arg3 == NULL) { | |
4604 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4605 | } | |
4606 | if (obj3) { | |
4607 | { | |
4608 | arg4 = &temp4; | |
4609 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4610 | } | |
4611 | } | |
4612 | if (obj4) { | |
4613 | { | |
4614 | arg5 = &temp5; | |
4615 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4616 | } | |
4617 | } | |
8edf1c75 RD |
4618 | if (obj5) { |
4619 | { | |
4620 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4621 | if (PyErr_Occurred()) SWIG_fail; | |
4622 | } | |
4623 | } | |
d14a1e28 RD |
4624 | if (obj6) { |
4625 | { | |
4626 | arg7 = wxString_in_helper(obj6); | |
4627 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4628 | temp7 = True; |
d14a1e28 RD |
4629 | } |
4630 | } | |
4631 | { | |
4632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4633 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4634 | ||
4635 | wxPyEndAllowThreads(__tstate); | |
4636 | if (PyErr_Occurred()) SWIG_fail; | |
4637 | } | |
4638 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4639 | { | |
4640 | if (temp7) | |
4641 | delete arg7; | |
4642 | } | |
4643 | return resultobj; | |
4644 | fail: | |
4645 | { | |
4646 | if (temp7) | |
4647 | delete arg7; | |
4648 | } | |
4649 | return NULL; | |
4650 | } | |
4651 | ||
4652 | ||
4653 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4654 | PyObject *resultobj; | |
4655 | wxStaticBitmap *result; | |
4656 | char *kwnames[] = { | |
4657 | NULL | |
4658 | }; | |
4659 | ||
4660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4661 | { | |
4662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4663 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4664 | ||
4665 | wxPyEndAllowThreads(__tstate); | |
4666 | if (PyErr_Occurred()) SWIG_fail; | |
4667 | } | |
4668 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4669 | return resultobj; | |
4670 | fail: | |
4671 | return NULL; | |
4672 | } | |
4673 | ||
4674 | ||
4675 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4676 | PyObject *resultobj; | |
4677 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4678 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4679 | int arg3 ; |
d14a1e28 RD |
4680 | wxBitmap *arg4 = 0 ; |
4681 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4682 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4683 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4684 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4685 | long arg7 = (long) 0 ; | |
4686 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4687 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4688 | bool result; | |
4689 | wxPoint temp5 ; | |
4690 | wxSize temp6 ; | |
423f194a | 4691 | bool temp8 = False ; |
d14a1e28 RD |
4692 | PyObject * obj0 = 0 ; |
4693 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4694 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4695 | PyObject * obj3 = 0 ; |
4696 | PyObject * obj4 = 0 ; | |
4697 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4698 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4699 | PyObject * obj7 = 0 ; |
4700 | char *kwnames[] = { | |
4701 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4702 | }; | |
4703 | ||
8edf1c75 | 4704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4706 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4707 | { |
4708 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4709 | if (PyErr_Occurred()) SWIG_fail; | |
4710 | } | |
d14a1e28 RD |
4711 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4712 | if (arg4 == NULL) { | |
4713 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4714 | } | |
4715 | if (obj4) { | |
4716 | { | |
4717 | arg5 = &temp5; | |
4718 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4719 | } | |
4720 | } | |
4721 | if (obj5) { | |
4722 | { | |
4723 | arg6 = &temp6; | |
4724 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4725 | } | |
4726 | } | |
8edf1c75 RD |
4727 | if (obj6) { |
4728 | { | |
4729 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4730 | if (PyErr_Occurred()) SWIG_fail; | |
4731 | } | |
4732 | } | |
d14a1e28 RD |
4733 | if (obj7) { |
4734 | { | |
4735 | arg8 = wxString_in_helper(obj7); | |
4736 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4737 | temp8 = True; |
d14a1e28 RD |
4738 | } |
4739 | } | |
4740 | { | |
4741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4742 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4743 | ||
4744 | wxPyEndAllowThreads(__tstate); | |
4745 | if (PyErr_Occurred()) SWIG_fail; | |
4746 | } | |
02a34c4c | 4747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4748 | { |
4749 | if (temp8) | |
4750 | delete arg8; | |
4751 | } | |
4752 | return resultobj; | |
4753 | fail: | |
4754 | { | |
4755 | if (temp8) | |
4756 | delete arg8; | |
4757 | } | |
4758 | return NULL; | |
4759 | } | |
4760 | ||
4761 | ||
4762 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4763 | PyObject *resultobj; | |
4764 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4765 | wxBitmap result; | |
4766 | PyObject * obj0 = 0 ; | |
4767 | char *kwnames[] = { | |
4768 | (char *) "self", NULL | |
4769 | }; | |
4770 | ||
4771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
4772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4773 | { | |
4774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4775 | result = (arg1)->GetBitmap(); | |
4776 | ||
4777 | wxPyEndAllowThreads(__tstate); | |
4778 | if (PyErr_Occurred()) SWIG_fail; | |
4779 | } | |
4780 | { | |
4781 | wxBitmap * resultptr; | |
4782 | resultptr = new wxBitmap((wxBitmap &) result); | |
4783 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
4784 | } | |
4785 | return resultobj; | |
4786 | fail: | |
4787 | return NULL; | |
4788 | } | |
4789 | ||
4790 | ||
4791 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4792 | PyObject *resultobj; | |
4793 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4794 | wxBitmap *arg2 = 0 ; | |
4795 | PyObject * obj0 = 0 ; | |
4796 | PyObject * obj1 = 0 ; | |
4797 | char *kwnames[] = { | |
4798 | (char *) "self",(char *) "bitmap", NULL | |
4799 | }; | |
4800 | ||
4801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4803 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4804 | if (arg2 == NULL) { | |
4805 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4806 | } | |
4807 | { | |
4808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4809 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4810 | ||
4811 | wxPyEndAllowThreads(__tstate); | |
4812 | if (PyErr_Occurred()) SWIG_fail; | |
4813 | } | |
4814 | Py_INCREF(Py_None); resultobj = Py_None; | |
4815 | return resultobj; | |
4816 | fail: | |
4817 | return NULL; | |
4818 | } | |
4819 | ||
4820 | ||
4821 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4822 | PyObject *resultobj; | |
4823 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4824 | wxIcon *arg2 = 0 ; | |
4825 | PyObject * obj0 = 0 ; | |
4826 | PyObject * obj1 = 0 ; | |
4827 | char *kwnames[] = { | |
4828 | (char *) "self",(char *) "icon", NULL | |
4829 | }; | |
4830 | ||
4831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4833 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4834 | if (arg2 == NULL) { | |
4835 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4836 | } | |
4837 | { | |
4838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4839 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
4840 | ||
4841 | wxPyEndAllowThreads(__tstate); | |
4842 | if (PyErr_Occurred()) SWIG_fail; | |
4843 | } | |
4844 | Py_INCREF(Py_None); resultobj = Py_None; | |
4845 | return resultobj; | |
4846 | fail: | |
4847 | return NULL; | |
4848 | } | |
4849 | ||
4850 | ||
4851 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
4852 | PyObject *obj; | |
4853 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4854 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
4855 | Py_INCREF(obj); | |
4856 | return Py_BuildValue((char *)""); | |
4857 | } | |
8edf1c75 | 4858 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
cbd72d4f RD |
4859 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
4860 | return 1; | |
4861 | } | |
4862 | ||
4863 | ||
4864 | static PyObject *_wrap_ListBoxNameStr_get() { | |
4865 | PyObject *pyobj; | |
4866 | ||
4867 | { | |
4868 | #if wxUSE_UNICODE | |
4869 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4870 | #else | |
4871 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4872 | #endif | |
4873 | } | |
4874 | return pyobj; | |
4875 | } | |
4876 | ||
4877 | ||
d14a1e28 RD |
4878 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4879 | PyObject *resultobj; | |
4880 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4881 | int arg2 ; |
d14a1e28 RD |
4882 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4883 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4884 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4885 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
02a34c4c RD |
4886 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
4887 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
4888 | long arg6 = (long) 0 ; | |
4889 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
4890 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
4891 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
4892 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
4893 | wxListBox *result; |
4894 | wxPoint temp3 ; | |
4895 | wxSize temp4 ; | |
0ffb2aa6 | 4896 | bool temp5 = False ; |
423f194a | 4897 | bool temp8 = False ; |
d14a1e28 | 4898 | PyObject * obj0 = 0 ; |
8edf1c75 | 4899 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4900 | PyObject * obj2 = 0 ; |
4901 | PyObject * obj3 = 0 ; | |
4902 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4903 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4904 | PyObject * obj6 = 0 ; |
4905 | PyObject * obj7 = 0 ; | |
4906 | char *kwnames[] = { | |
4907 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4908 | }; | |
4909 | ||
8edf1c75 | 4910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 4911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4912 | { |
4913 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4914 | if (PyErr_Occurred()) SWIG_fail; | |
4915 | } | |
d14a1e28 RD |
4916 | if (obj2) { |
4917 | { | |
4918 | arg3 = &temp3; | |
4919 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4920 | } | |
4921 | } | |
4922 | if (obj3) { | |
4923 | { | |
4924 | arg4 = &temp4; | |
4925 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4926 | } | |
4927 | } | |
4928 | if (obj4) { | |
4929 | { | |
02a34c4c RD |
4930 | if (! PySequence_Check(obj4)) { |
4931 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4932 | SWIG_fail; | |
4933 | } | |
4934 | arg5 = new wxArrayString; | |
0ffb2aa6 | 4935 | temp5 = True; |
02a34c4c RD |
4936 | int i, len=PySequence_Length(obj4); |
4937 | for (i=0; i<len; i++) { | |
4938 | PyObject* item = PySequence_GetItem(obj4, i); | |
4939 | #if wxUSE_UNICODE | |
4940 | PyObject* str = PyObject_Unicode(item); | |
4941 | #else | |
4942 | PyObject* str = PyObject_Str(item); | |
4943 | #endif | |
4944 | arg5->Add(Py2wxString(str)); | |
4945 | Py_DECREF(item); | |
4946 | Py_DECREF(str); | |
4947 | } | |
d14a1e28 RD |
4948 | } |
4949 | } | |
8edf1c75 RD |
4950 | if (obj5) { |
4951 | { | |
02a34c4c | 4952 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
4953 | if (PyErr_Occurred()) SWIG_fail; |
4954 | } | |
4955 | } | |
d14a1e28 | 4956 | if (obj6) { |
02a34c4c RD |
4957 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4958 | if (arg7 == NULL) { | |
d14a1e28 RD |
4959 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
4960 | } | |
4961 | } | |
4962 | if (obj7) { | |
4963 | { | |
02a34c4c RD |
4964 | arg8 = wxString_in_helper(obj7); |
4965 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4966 | temp8 = True; |
d14a1e28 RD |
4967 | } |
4968 | } | |
4969 | { | |
4970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 4971 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
4972 | |
4973 | wxPyEndAllowThreads(__tstate); | |
4974 | if (PyErr_Occurred()) SWIG_fail; | |
4975 | } | |
4976 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
4977 | { | |
0ffb2aa6 | 4978 | if (temp5) delete arg5; |
d14a1e28 RD |
4979 | } |
4980 | { | |
4981 | if (temp8) | |
02a34c4c | 4982 | delete arg8; |
d14a1e28 RD |
4983 | } |
4984 | return resultobj; | |
4985 | fail: | |
4986 | { | |
0ffb2aa6 | 4987 | if (temp5) delete arg5; |
d14a1e28 RD |
4988 | } |
4989 | { | |
4990 | if (temp8) | |
02a34c4c | 4991 | delete arg8; |
d14a1e28 RD |
4992 | } |
4993 | return NULL; | |
4994 | } | |
4995 | ||
4996 | ||
4997 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4998 | PyObject *resultobj; | |
4999 | wxListBox *result; | |
5000 | char *kwnames[] = { | |
5001 | NULL | |
5002 | }; | |
5003 | ||
5004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5005 | { | |
5006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5007 | result = (wxListBox *)new wxListBox(); | |
5008 | ||
5009 | wxPyEndAllowThreads(__tstate); | |
5010 | if (PyErr_Occurred()) SWIG_fail; | |
5011 | } | |
5012 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
5013 | return resultobj; | |
5014 | fail: | |
5015 | return NULL; | |
5016 | } | |
5017 | ||
5018 | ||
5019 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5020 | PyObject *resultobj; | |
5021 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5022 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 5023 | int arg3 ; |
d14a1e28 RD |
5024 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5025 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5026 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5027 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
02a34c4c RD |
5028 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5029 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5030 | long arg7 = (long) 0 ; | |
5031 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5032 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5033 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5034 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5035 | bool result; |
5036 | wxPoint temp4 ; | |
5037 | wxSize temp5 ; | |
0ffb2aa6 | 5038 | bool temp6 = False ; |
423f194a | 5039 | bool temp9 = False ; |
d14a1e28 RD |
5040 | PyObject * obj0 = 0 ; |
5041 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5042 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5043 | PyObject * obj3 = 0 ; |
5044 | PyObject * obj4 = 0 ; | |
5045 | PyObject * obj5 = 0 ; | |
8edf1c75 | 5046 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5047 | PyObject * obj7 = 0 ; |
5048 | PyObject * obj8 = 0 ; | |
5049 | char *kwnames[] = { | |
5050 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5051 | }; | |
5052 | ||
8edf1c75 | 5053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
5054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5055 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
5056 | { |
5057 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5058 | if (PyErr_Occurred()) SWIG_fail; | |
5059 | } | |
d14a1e28 RD |
5060 | if (obj3) { |
5061 | { | |
5062 | arg4 = &temp4; | |
5063 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5064 | } | |
5065 | } | |
5066 | if (obj4) { | |
5067 | { | |
5068 | arg5 = &temp5; | |
5069 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5070 | } | |
5071 | } | |
5072 | if (obj5) { | |
5073 | { | |
02a34c4c RD |
5074 | if (! PySequence_Check(obj5)) { |
5075 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5076 | SWIG_fail; | |
5077 | } | |
5078 | arg6 = new wxArrayString; | |
0ffb2aa6 | 5079 | temp6 = True; |
02a34c4c RD |
5080 | int i, len=PySequence_Length(obj5); |
5081 | for (i=0; i<len; i++) { | |
5082 | PyObject* item = PySequence_GetItem(obj5, i); | |
5083 | #if wxUSE_UNICODE | |
5084 | PyObject* str = PyObject_Unicode(item); | |
5085 | #else | |
5086 | PyObject* str = PyObject_Str(item); | |
5087 | #endif | |
5088 | arg6->Add(Py2wxString(str)); | |
5089 | Py_DECREF(item); | |
5090 | Py_DECREF(str); | |
5091 | } | |
d14a1e28 RD |
5092 | } |
5093 | } | |
8edf1c75 RD |
5094 | if (obj6) { |
5095 | { | |
02a34c4c | 5096 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
5097 | if (PyErr_Occurred()) SWIG_fail; |
5098 | } | |
5099 | } | |
d14a1e28 | 5100 | if (obj7) { |
02a34c4c RD |
5101 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5102 | if (arg8 == NULL) { | |
d14a1e28 RD |
5103 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5104 | } | |
5105 | } | |
5106 | if (obj8) { | |
5107 | { | |
02a34c4c RD |
5108 | arg9 = wxString_in_helper(obj8); |
5109 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 5110 | temp9 = True; |
d14a1e28 RD |
5111 | } |
5112 | } | |
5113 | { | |
5114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 5115 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5116 | |
5117 | wxPyEndAllowThreads(__tstate); | |
5118 | if (PyErr_Occurred()) SWIG_fail; | |
5119 | } | |
02a34c4c | 5120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 5121 | { |
0ffb2aa6 | 5122 | if (temp6) delete arg6; |
d14a1e28 RD |
5123 | } |
5124 | { | |
5125 | if (temp9) | |
02a34c4c | 5126 | delete arg9; |
d14a1e28 RD |
5127 | } |
5128 | return resultobj; | |
5129 | fail: | |
5130 | { | |
0ffb2aa6 | 5131 | if (temp6) delete arg6; |
d14a1e28 RD |
5132 | } |
5133 | { | |
5134 | if (temp9) | |
02a34c4c | 5135 | delete arg9; |
d14a1e28 RD |
5136 | } |
5137 | return NULL; | |
5138 | } | |
5139 | ||
5140 | ||
5141 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5142 | PyObject *resultobj; | |
5143 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5144 | wxString *arg2 = 0 ; | |
5145 | int arg3 ; | |
5146 | PyObject *arg4 = (PyObject *) NULL ; | |
423f194a | 5147 | bool temp2 = False ; |
d14a1e28 RD |
5148 | PyObject * obj0 = 0 ; |
5149 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5150 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5151 | PyObject * obj3 = 0 ; |
5152 | char *kwnames[] = { | |
5153 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5154 | }; | |
5155 | ||
8edf1c75 | 5156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5158 | { | |
5159 | arg2 = wxString_in_helper(obj1); | |
5160 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5161 | temp2 = True; |
d14a1e28 | 5162 | } |
8edf1c75 RD |
5163 | { |
5164 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5165 | if (PyErr_Occurred()) SWIG_fail; | |
5166 | } | |
d14a1e28 RD |
5167 | if (obj3) { |
5168 | arg4 = obj3; | |
5169 | } | |
5170 | { | |
5171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5172 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5173 | ||
5174 | wxPyEndAllowThreads(__tstate); | |
5175 | if (PyErr_Occurred()) SWIG_fail; | |
5176 | } | |
5177 | Py_INCREF(Py_None); resultobj = Py_None; | |
5178 | { | |
5179 | if (temp2) | |
5180 | delete arg2; | |
5181 | } | |
5182 | return resultobj; | |
5183 | fail: | |
5184 | { | |
5185 | if (temp2) | |
5186 | delete arg2; | |
5187 | } | |
5188 | return NULL; | |
5189 | } | |
5190 | ||
5191 | ||
5192 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5193 | PyObject *resultobj; | |
5194 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5195 | wxArrayString *arg2 = 0 ; | |
5196 | int arg3 ; | |
0ffb2aa6 | 5197 | bool temp2 = False ; |
d14a1e28 RD |
5198 | PyObject * obj0 = 0 ; |
5199 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5200 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5201 | char *kwnames[] = { |
5202 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5203 | }; | |
5204 | ||
8edf1c75 | 5205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
5206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5207 | { | |
5208 | if (! PySequence_Check(obj1)) { | |
5209 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5210 | SWIG_fail; | |
5211 | } | |
5212 | arg2 = new wxArrayString; | |
0ffb2aa6 | 5213 | temp2 = True; |
d14a1e28 RD |
5214 | int i, len=PySequence_Length(obj1); |
5215 | for (i=0; i<len; i++) { | |
5216 | PyObject* item = PySequence_GetItem(obj1, i); | |
5217 | #if wxUSE_UNICODE | |
5218 | PyObject* str = PyObject_Unicode(item); | |
5219 | #else | |
5220 | PyObject* str = PyObject_Str(item); | |
5221 | #endif | |
5222 | arg2->Add(Py2wxString(str)); | |
5223 | Py_DECREF(item); | |
5224 | Py_DECREF(str); | |
5225 | } | |
5226 | } | |
8edf1c75 RD |
5227 | { |
5228 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5229 | if (PyErr_Occurred()) SWIG_fail; | |
5230 | } | |
d14a1e28 RD |
5231 | { |
5232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5233 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5234 | ||
5235 | wxPyEndAllowThreads(__tstate); | |
5236 | if (PyErr_Occurred()) SWIG_fail; | |
5237 | } | |
5238 | Py_INCREF(Py_None); resultobj = Py_None; | |
5239 | { | |
0ffb2aa6 | 5240 | if (temp2) delete arg2; |
d14a1e28 RD |
5241 | } |
5242 | return resultobj; | |
5243 | fail: | |
5244 | { | |
0ffb2aa6 | 5245 | if (temp2) delete arg2; |
d14a1e28 RD |
5246 | } |
5247 | return NULL; | |
5248 | } | |
5249 | ||
5250 | ||
5251 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5252 | PyObject *resultobj; | |
5253 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5254 | wxArrayString *arg2 = 0 ; | |
0ffb2aa6 | 5255 | bool temp2 = False ; |
d14a1e28 RD |
5256 | PyObject * obj0 = 0 ; |
5257 | PyObject * obj1 = 0 ; | |
5258 | char *kwnames[] = { | |
5259 | (char *) "self",(char *) "items", NULL | |
5260 | }; | |
5261 | ||
5262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
5263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5264 | { | |
5265 | if (! PySequence_Check(obj1)) { | |
5266 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5267 | SWIG_fail; | |
5268 | } | |
5269 | arg2 = new wxArrayString; | |
0ffb2aa6 | 5270 | temp2 = True; |
d14a1e28 RD |
5271 | int i, len=PySequence_Length(obj1); |
5272 | for (i=0; i<len; i++) { | |
5273 | PyObject* item = PySequence_GetItem(obj1, i); | |
5274 | #if wxUSE_UNICODE | |
5275 | PyObject* str = PyObject_Unicode(item); | |
5276 | #else | |
5277 | PyObject* str = PyObject_Str(item); | |
5278 | #endif | |
5279 | arg2->Add(Py2wxString(str)); | |
5280 | Py_DECREF(item); | |
5281 | Py_DECREF(str); | |
5282 | } | |
5283 | } | |
5284 | { | |
5285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5286 | (arg1)->Set((wxArrayString const &)*arg2); | |
5287 | ||
5288 | wxPyEndAllowThreads(__tstate); | |
5289 | if (PyErr_Occurred()) SWIG_fail; | |
5290 | } | |
5291 | Py_INCREF(Py_None); resultobj = Py_None; | |
5292 | { | |
0ffb2aa6 | 5293 | if (temp2) delete arg2; |
d14a1e28 RD |
5294 | } |
5295 | return resultobj; | |
5296 | fail: | |
5297 | { | |
0ffb2aa6 | 5298 | if (temp2) delete arg2; |
d14a1e28 RD |
5299 | } |
5300 | return NULL; | |
5301 | } | |
5302 | ||
5303 | ||
5304 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5305 | PyObject *resultobj; | |
5306 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5307 | int arg2 ; | |
5308 | bool result; | |
5309 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5310 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5311 | char *kwnames[] = { |
5312 | (char *) "self",(char *) "n", NULL | |
5313 | }; | |
5314 | ||
8edf1c75 | 5315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5317 | { |
5318 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5319 | if (PyErr_Occurred()) SWIG_fail; | |
5320 | } | |
d14a1e28 RD |
5321 | { |
5322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5323 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
5324 | ||
5325 | wxPyEndAllowThreads(__tstate); | |
5326 | if (PyErr_Occurred()) SWIG_fail; | |
5327 | } | |
02a34c4c | 5328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5329 | return resultobj; |
5330 | fail: | |
5331 | return NULL; | |
5332 | } | |
5333 | ||
5334 | ||
5335 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5336 | PyObject *resultobj; | |
5337 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5338 | int arg2 ; | |
423f194a | 5339 | bool arg3 = (bool) True ; |
d14a1e28 | 5340 | PyObject * obj0 = 0 ; |
8edf1c75 | 5341 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5342 | PyObject * obj2 = 0 ; |
5343 | char *kwnames[] = { | |
5344 | (char *) "self",(char *) "n",(char *) "select", NULL | |
5345 | }; | |
5346 | ||
8edf1c75 | 5347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5349 | { |
5350 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5351 | if (PyErr_Occurred()) SWIG_fail; | |
5352 | } | |
d14a1e28 | 5353 | if (obj2) { |
2dbef272 | 5354 | { |
8edf1c75 | 5355 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
5356 | if (PyErr_Occurred()) SWIG_fail; |
5357 | } | |
d14a1e28 RD |
5358 | } |
5359 | { | |
5360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5361 | (arg1)->SetSelection(arg2,arg3); | |
5362 | ||
5363 | wxPyEndAllowThreads(__tstate); | |
5364 | if (PyErr_Occurred()) SWIG_fail; | |
5365 | } | |
5366 | Py_INCREF(Py_None); resultobj = Py_None; | |
5367 | return resultobj; | |
5368 | fail: | |
5369 | return NULL; | |
5370 | } | |
5371 | ||
5372 | ||
5373 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5374 | PyObject *resultobj; | |
5375 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5376 | int arg2 ; | |
5377 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5378 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5379 | char *kwnames[] = { |
5380 | (char *) "self",(char *) "n", NULL | |
5381 | }; | |
5382 | ||
8edf1c75 | 5383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5385 | { |
5386 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5387 | if (PyErr_Occurred()) SWIG_fail; | |
5388 | } | |
d14a1e28 RD |
5389 | { |
5390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5391 | (arg1)->Select(arg2); | |
5392 | ||
5393 | wxPyEndAllowThreads(__tstate); | |
5394 | if (PyErr_Occurred()) SWIG_fail; | |
5395 | } | |
5396 | Py_INCREF(Py_None); resultobj = Py_None; | |
5397 | return resultobj; | |
5398 | fail: | |
5399 | return NULL; | |
5400 | } | |
5401 | ||
5402 | ||
5403 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5404 | PyObject *resultobj; | |
5405 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5406 | int arg2 ; | |
5407 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5408 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5409 | char *kwnames[] = { |
5410 | (char *) "self",(char *) "n", NULL | |
5411 | }; | |
5412 | ||
8edf1c75 | 5413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5415 | { |
5416 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5417 | if (PyErr_Occurred()) SWIG_fail; | |
5418 | } | |
d14a1e28 RD |
5419 | { |
5420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5421 | (arg1)->Deselect(arg2); | |
5422 | ||
5423 | wxPyEndAllowThreads(__tstate); | |
5424 | if (PyErr_Occurred()) SWIG_fail; | |
5425 | } | |
5426 | Py_INCREF(Py_None); resultobj = Py_None; | |
5427 | return resultobj; | |
5428 | fail: | |
5429 | return NULL; | |
5430 | } | |
5431 | ||
5432 | ||
5433 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5434 | PyObject *resultobj; | |
5435 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5436 | int arg2 = (int) -1 ; | |
5437 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5438 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5439 | char *kwnames[] = { |
5440 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
5441 | }; | |
5442 | ||
8edf1c75 | 5443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5445 | if (obj1) { |
5446 | { | |
5447 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5448 | if (PyErr_Occurred()) SWIG_fail; | |
5449 | } | |
5450 | } | |
d14a1e28 RD |
5451 | { |
5452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5453 | (arg1)->DeselectAll(arg2); | |
5454 | ||
5455 | wxPyEndAllowThreads(__tstate); | |
5456 | if (PyErr_Occurred()) SWIG_fail; | |
5457 | } | |
5458 | Py_INCREF(Py_None); resultobj = Py_None; | |
5459 | return resultobj; | |
5460 | fail: | |
5461 | return NULL; | |
5462 | } | |
5463 | ||
5464 | ||
5465 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5466 | PyObject *resultobj; | |
5467 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5468 | wxString *arg2 = 0 ; | |
423f194a | 5469 | bool arg3 = (bool) True ; |
d14a1e28 | 5470 | bool result; |
423f194a | 5471 | bool temp2 = False ; |
d14a1e28 RD |
5472 | PyObject * obj0 = 0 ; |
5473 | PyObject * obj1 = 0 ; | |
5474 | PyObject * obj2 = 0 ; | |
5475 | char *kwnames[] = { | |
5476 | (char *) "self",(char *) "s",(char *) "select", NULL | |
5477 | }; | |
5478 | ||
5479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5481 | { | |
5482 | arg2 = wxString_in_helper(obj1); | |
5483 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5484 | temp2 = True; |
d14a1e28 RD |
5485 | } |
5486 | if (obj2) { | |
2dbef272 | 5487 | { |
8edf1c75 | 5488 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
5489 | if (PyErr_Occurred()) SWIG_fail; |
5490 | } | |
d14a1e28 RD |
5491 | } |
5492 | { | |
5493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5494 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
5495 | ||
5496 | wxPyEndAllowThreads(__tstate); | |
5497 | if (PyErr_Occurred()) SWIG_fail; | |
5498 | } | |
02a34c4c | 5499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5500 | { |
5501 | if (temp2) | |
5502 | delete arg2; | |
5503 | } | |
5504 | return resultobj; | |
5505 | fail: | |
5506 | { | |
5507 | if (temp2) | |
5508 | delete arg2; | |
5509 | } | |
5510 | return NULL; | |
5511 | } | |
5512 | ||
5513 | ||
5514 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5515 | PyObject *resultobj; | |
5516 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5517 | PyObject *result; | |
5518 | PyObject * obj0 = 0 ; | |
5519 | char *kwnames[] = { | |
5520 | (char *) "self", NULL | |
5521 | }; | |
5522 | ||
5523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
5524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5525 | { | |
5526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5527 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
5528 | ||
5529 | wxPyEndAllowThreads(__tstate); | |
5530 | if (PyErr_Occurred()) SWIG_fail; | |
5531 | } | |
5532 | resultobj = result; | |
5533 | return resultobj; | |
5534 | fail: | |
5535 | return NULL; | |
5536 | } | |
5537 | ||
5538 | ||
5539 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5540 | PyObject *resultobj; | |
5541 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5542 | int arg2 ; | |
5543 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5544 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5545 | char *kwnames[] = { |
5546 | (char *) "self",(char *) "n", NULL | |
5547 | }; | |
5548 | ||
8edf1c75 | 5549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5551 | { |
5552 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5553 | if (PyErr_Occurred()) SWIG_fail; | |
5554 | } | |
d14a1e28 RD |
5555 | { |
5556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5557 | (arg1)->SetFirstItem(arg2); | |
5558 | ||
5559 | wxPyEndAllowThreads(__tstate); | |
5560 | if (PyErr_Occurred()) SWIG_fail; | |
5561 | } | |
5562 | Py_INCREF(Py_None); resultobj = Py_None; | |
5563 | return resultobj; | |
5564 | fail: | |
5565 | return NULL; | |
5566 | } | |
5567 | ||
5568 | ||
5569 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5570 | PyObject *resultobj; | |
5571 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5572 | wxString *arg2 = 0 ; | |
423f194a | 5573 | bool temp2 = False ; |
d14a1e28 RD |
5574 | PyObject * obj0 = 0 ; |
5575 | PyObject * obj1 = 0 ; | |
5576 | char *kwnames[] = { | |
5577 | (char *) "self",(char *) "s", NULL | |
5578 | }; | |
5579 | ||
5580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
5581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5582 | { | |
5583 | arg2 = wxString_in_helper(obj1); | |
5584 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5585 | temp2 = True; |
d14a1e28 RD |
5586 | } |
5587 | { | |
5588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5589 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
5590 | ||
5591 | wxPyEndAllowThreads(__tstate); | |
5592 | if (PyErr_Occurred()) SWIG_fail; | |
5593 | } | |
5594 | Py_INCREF(Py_None); resultobj = Py_None; | |
5595 | { | |
5596 | if (temp2) | |
5597 | delete arg2; | |
5598 | } | |
5599 | return resultobj; | |
5600 | fail: | |
5601 | { | |
5602 | if (temp2) | |
5603 | delete arg2; | |
5604 | } | |
5605 | return NULL; | |
5606 | } | |
5607 | ||
5608 | ||
5609 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5610 | PyObject *resultobj; | |
5611 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5612 | int arg2 ; | |
5613 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5614 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5615 | char *kwnames[] = { |
5616 | (char *) "self",(char *) "n", NULL | |
5617 | }; | |
5618 | ||
8edf1c75 | 5619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5621 | { |
5622 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5623 | if (PyErr_Occurred()) SWIG_fail; | |
5624 | } | |
d14a1e28 RD |
5625 | { |
5626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5627 | (arg1)->EnsureVisible(arg2); | |
5628 | ||
5629 | wxPyEndAllowThreads(__tstate); | |
5630 | if (PyErr_Occurred()) SWIG_fail; | |
5631 | } | |
5632 | Py_INCREF(Py_None); resultobj = Py_None; | |
5633 | return resultobj; | |
5634 | fail: | |
5635 | return NULL; | |
5636 | } | |
5637 | ||
5638 | ||
5639 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5640 | PyObject *resultobj; | |
5641 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5642 | wxString *arg2 = 0 ; | |
423f194a | 5643 | bool temp2 = False ; |
d14a1e28 RD |
5644 | PyObject * obj0 = 0 ; |
5645 | PyObject * obj1 = 0 ; | |
5646 | char *kwnames[] = { | |
5647 | (char *) "self",(char *) "s", NULL | |
5648 | }; | |
5649 | ||
5650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
5651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5652 | { | |
5653 | arg2 = wxString_in_helper(obj1); | |
5654 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5655 | temp2 = True; |
d14a1e28 RD |
5656 | } |
5657 | { | |
5658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5659 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
5660 | ||
5661 | wxPyEndAllowThreads(__tstate); | |
5662 | if (PyErr_Occurred()) SWIG_fail; | |
5663 | } | |
5664 | Py_INCREF(Py_None); resultobj = Py_None; | |
5665 | { | |
5666 | if (temp2) | |
5667 | delete arg2; | |
5668 | } | |
5669 | return resultobj; | |
5670 | fail: | |
5671 | { | |
5672 | if (temp2) | |
5673 | delete arg2; | |
5674 | } | |
5675 | return NULL; | |
5676 | } | |
5677 | ||
5678 | ||
5679 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5680 | PyObject *resultobj; | |
5681 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5682 | bool result; | |
5683 | PyObject * obj0 = 0 ; | |
5684 | char *kwnames[] = { | |
5685 | (char *) "self", NULL | |
5686 | }; | |
5687 | ||
5688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
5689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5690 | { | |
5691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5692 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
5693 | ||
5694 | wxPyEndAllowThreads(__tstate); | |
5695 | if (PyErr_Occurred()) SWIG_fail; | |
5696 | } | |
02a34c4c | 5697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5698 | return resultobj; |
5699 | fail: | |
5700 | return NULL; | |
5701 | } | |
5702 | ||
5703 | ||
c3eb6258 RD |
5704 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
5705 | PyObject *resultobj; | |
5706 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5707 | int arg2 ; | |
5708 | wxColour *arg3 = 0 ; | |
5709 | wxColour temp3 ; | |
5710 | PyObject * obj0 = 0 ; | |
5711 | PyObject * obj1 = 0 ; | |
5712 | PyObject * obj2 = 0 ; | |
5713 | char *kwnames[] = { | |
5714 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5715 | }; | |
5716 | ||
5717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5719 | { | |
5720 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5721 | if (PyErr_Occurred()) SWIG_fail; | |
5722 | } | |
5723 | { | |
5724 | arg3 = &temp3; | |
5725 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5726 | } | |
5727 | { | |
5728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5729 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5730 | ||
5731 | wxPyEndAllowThreads(__tstate); | |
5732 | if (PyErr_Occurred()) SWIG_fail; | |
5733 | } | |
5734 | Py_INCREF(Py_None); resultobj = Py_None; | |
5735 | return resultobj; | |
5736 | fail: | |
5737 | return NULL; | |
5738 | } | |
5739 | ||
5740 | ||
5741 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5742 | PyObject *resultobj; | |
5743 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5744 | int arg2 ; | |
5745 | wxColour *arg3 = 0 ; | |
5746 | wxColour temp3 ; | |
5747 | PyObject * obj0 = 0 ; | |
5748 | PyObject * obj1 = 0 ; | |
5749 | PyObject * obj2 = 0 ; | |
5750 | char *kwnames[] = { | |
5751 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5752 | }; | |
5753 | ||
5754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5756 | { | |
5757 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5758 | if (PyErr_Occurred()) SWIG_fail; | |
5759 | } | |
5760 | { | |
5761 | arg3 = &temp3; | |
5762 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5763 | } | |
5764 | { | |
5765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5766 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5767 | ||
5768 | wxPyEndAllowThreads(__tstate); | |
5769 | if (PyErr_Occurred()) SWIG_fail; | |
5770 | } | |
5771 | Py_INCREF(Py_None); resultobj = Py_None; | |
5772 | return resultobj; | |
5773 | fail: | |
5774 | return NULL; | |
5775 | } | |
5776 | ||
5777 | ||
5778 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5779 | PyObject *resultobj; | |
5780 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5781 | int arg2 ; | |
5782 | wxFont *arg3 = 0 ; | |
5783 | PyObject * obj0 = 0 ; | |
5784 | PyObject * obj1 = 0 ; | |
5785 | PyObject * obj2 = 0 ; | |
5786 | char *kwnames[] = { | |
5787 | (char *) "self",(char *) "item",(char *) "f", NULL | |
5788 | }; | |
5789 | ||
5790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5792 | { | |
5793 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5794 | if (PyErr_Occurred()) SWIG_fail; | |
5795 | } | |
5796 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5797 | if (arg3 == NULL) { | |
5798 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5799 | } | |
5800 | { | |
5801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5802 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
5803 | ||
5804 | wxPyEndAllowThreads(__tstate); | |
5805 | if (PyErr_Occurred()) SWIG_fail; | |
5806 | } | |
5807 | Py_INCREF(Py_None); resultobj = Py_None; | |
5808 | return resultobj; | |
5809 | fail: | |
5810 | return NULL; | |
5811 | } | |
5812 | ||
5813 | ||
d14a1e28 RD |
5814 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { |
5815 | PyObject *obj; | |
5816 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5817 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
5818 | Py_INCREF(obj); | |
5819 | return Py_BuildValue((char *)""); | |
5820 | } | |
5821 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5822 | PyObject *resultobj; | |
5823 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 5824 | int arg2 ; |
d14a1e28 RD |
5825 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5826 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5827 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5828 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
02a34c4c RD |
5829 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5830 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5831 | long arg6 = (long) 0 ; | |
5832 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5833 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5834 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5835 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5836 | wxCheckListBox *result; |
5837 | wxPoint temp3 ; | |
5838 | wxSize temp4 ; | |
0ffb2aa6 | 5839 | bool temp5 = False ; |
423f194a | 5840 | bool temp8 = False ; |
d14a1e28 | 5841 | PyObject * obj0 = 0 ; |
8edf1c75 | 5842 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5843 | PyObject * obj2 = 0 ; |
5844 | PyObject * obj3 = 0 ; | |
5845 | PyObject * obj4 = 0 ; | |
8edf1c75 | 5846 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5847 | PyObject * obj6 = 0 ; |
5848 | PyObject * obj7 = 0 ; | |
5849 | char *kwnames[] = { | |
5850 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5851 | }; | |
5852 | ||
8edf1c75 | 5853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 5854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5855 | { |
5856 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5857 | if (PyErr_Occurred()) SWIG_fail; | |
5858 | } | |
d14a1e28 RD |
5859 | if (obj2) { |
5860 | { | |
5861 | arg3 = &temp3; | |
5862 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5863 | } | |
5864 | } | |
5865 | if (obj3) { | |
5866 | { | |
5867 | arg4 = &temp4; | |
5868 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5869 | } | |
5870 | } | |
5871 | if (obj4) { | |
5872 | { | |
02a34c4c RD |
5873 | if (! PySequence_Check(obj4)) { |
5874 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5875 | SWIG_fail; | |
5876 | } | |
5877 | arg5 = new wxArrayString; | |
0ffb2aa6 | 5878 | temp5 = True; |
02a34c4c RD |
5879 | int i, len=PySequence_Length(obj4); |
5880 | for (i=0; i<len; i++) { | |
5881 | PyObject* item = PySequence_GetItem(obj4, i); | |
5882 | #if wxUSE_UNICODE | |
5883 | PyObject* str = PyObject_Unicode(item); | |
5884 | #else | |
5885 | PyObject* str = PyObject_Str(item); | |
5886 | #endif | |
5887 | arg5->Add(Py2wxString(str)); | |
5888 | Py_DECREF(item); | |
5889 | Py_DECREF(str); | |
5890 | } | |
d14a1e28 RD |
5891 | } |
5892 | } | |
8edf1c75 RD |
5893 | if (obj5) { |
5894 | { | |
02a34c4c | 5895 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
5896 | if (PyErr_Occurred()) SWIG_fail; |
5897 | } | |
5898 | } | |
d14a1e28 | 5899 | if (obj6) { |
02a34c4c RD |
5900 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5901 | if (arg7 == NULL) { | |
d14a1e28 RD |
5902 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5903 | } | |
5904 | } | |
5905 | if (obj7) { | |
5906 | { | |
02a34c4c RD |
5907 | arg8 = wxString_in_helper(obj7); |
5908 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 5909 | temp8 = True; |
d14a1e28 RD |
5910 | } |
5911 | } | |
5912 | { | |
5913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 5914 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5915 | |
5916 | wxPyEndAllowThreads(__tstate); | |
5917 | if (PyErr_Occurred()) SWIG_fail; | |
5918 | } | |
5919 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5920 | { | |
0ffb2aa6 | 5921 | if (temp5) delete arg5; |
d14a1e28 RD |
5922 | } |
5923 | { | |
5924 | if (temp8) | |
02a34c4c | 5925 | delete arg8; |
d14a1e28 RD |
5926 | } |
5927 | return resultobj; | |
5928 | fail: | |
5929 | { | |
0ffb2aa6 | 5930 | if (temp5) delete arg5; |
d14a1e28 RD |
5931 | } |
5932 | { | |
5933 | if (temp8) | |
02a34c4c | 5934 | delete arg8; |
d14a1e28 RD |
5935 | } |
5936 | return NULL; | |
5937 | } | |
5938 | ||
5939 | ||
5940 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5941 | PyObject *resultobj; | |
5942 | wxCheckListBox *result; | |
5943 | char *kwnames[] = { | |
5944 | NULL | |
5945 | }; | |
5946 | ||
5947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
5948 | { | |
5949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5950 | result = (wxCheckListBox *)new wxCheckListBox(); | |
5951 | ||
5952 | wxPyEndAllowThreads(__tstate); | |
5953 | if (PyErr_Occurred()) SWIG_fail; | |
5954 | } | |
5955 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5956 | return resultobj; | |
5957 | fail: | |
5958 | return NULL; | |
5959 | } | |
5960 | ||
5961 | ||
5962 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5963 | PyObject *resultobj; | |
5964 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5965 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 5966 | int arg3 ; |
d14a1e28 RD |
5967 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5968 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5969 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5970 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
02a34c4c RD |
5971 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5972 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5973 | long arg7 = (long) 0 ; | |
5974 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5975 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5976 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5977 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5978 | bool result; |
5979 | wxPoint temp4 ; | |
5980 | wxSize temp5 ; | |
0ffb2aa6 | 5981 | bool temp6 = False ; |
423f194a | 5982 | bool temp9 = False ; |
d14a1e28 RD |
5983 | PyObject * obj0 = 0 ; |
5984 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5985 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5986 | PyObject * obj3 = 0 ; |
5987 | PyObject * obj4 = 0 ; | |
5988 | PyObject * obj5 = 0 ; | |
8edf1c75 | 5989 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5990 | PyObject * obj7 = 0 ; |
5991 | PyObject * obj8 = 0 ; | |
5992 | char *kwnames[] = { | |
5993 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5994 | }; | |
5995 | ||
8edf1c75 | 5996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
5997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5998 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
5999 | { |
6000 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6001 | if (PyErr_Occurred()) SWIG_fail; | |
6002 | } | |
d14a1e28 RD |
6003 | if (obj3) { |
6004 | { | |
6005 | arg4 = &temp4; | |
6006 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6007 | } | |
6008 | } | |
6009 | if (obj4) { | |
6010 | { | |
6011 | arg5 = &temp5; | |
6012 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6013 | } | |
6014 | } | |
6015 | if (obj5) { | |
6016 | { | |
02a34c4c RD |
6017 | if (! PySequence_Check(obj5)) { |
6018 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6019 | SWIG_fail; | |
6020 | } | |
6021 | arg6 = new wxArrayString; | |
0ffb2aa6 | 6022 | temp6 = True; |
02a34c4c RD |
6023 | int i, len=PySequence_Length(obj5); |
6024 | for (i=0; i<len; i++) { | |
6025 | PyObject* item = PySequence_GetItem(obj5, i); | |
6026 | #if wxUSE_UNICODE | |
6027 | PyObject* str = PyObject_Unicode(item); | |
6028 | #else | |
6029 | PyObject* str = PyObject_Str(item); | |
6030 | #endif | |
6031 | arg6->Add(Py2wxString(str)); | |
6032 | Py_DECREF(item); | |
6033 | Py_DECREF(str); | |
6034 | } | |
d14a1e28 RD |
6035 | } |
6036 | } | |
8edf1c75 RD |
6037 | if (obj6) { |
6038 | { | |
02a34c4c | 6039 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
6040 | if (PyErr_Occurred()) SWIG_fail; |
6041 | } | |
6042 | } | |
d14a1e28 | 6043 | if (obj7) { |
02a34c4c RD |
6044 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6045 | if (arg8 == NULL) { | |
d14a1e28 RD |
6046 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
6047 | } | |
6048 | } | |
6049 | if (obj8) { | |
6050 | { | |
02a34c4c RD |
6051 | arg9 = wxString_in_helper(obj8); |
6052 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 6053 | temp9 = True; |
d14a1e28 RD |
6054 | } |
6055 | } | |
6056 | { | |
6057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 6058 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
6059 | |
6060 | wxPyEndAllowThreads(__tstate); | |
6061 | if (PyErr_Occurred()) SWIG_fail; | |
6062 | } | |
02a34c4c | 6063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 6064 | { |
0ffb2aa6 | 6065 | if (temp6) delete arg6; |
d14a1e28 RD |
6066 | } |
6067 | { | |
6068 | if (temp9) | |
02a34c4c | 6069 | delete arg9; |
d14a1e28 RD |
6070 | } |
6071 | return resultobj; | |
6072 | fail: | |
6073 | { | |
0ffb2aa6 | 6074 | if (temp6) delete arg6; |
d14a1e28 RD |
6075 | } |
6076 | { | |
6077 | if (temp9) | |
02a34c4c | 6078 | delete arg9; |
d14a1e28 RD |
6079 | } |
6080 | return NULL; | |
6081 | } | |
6082 | ||
6083 | ||
6084 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6085 | PyObject *resultobj; | |
6086 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6087 | int arg2 ; | |
6088 | bool result; | |
6089 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6090 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6091 | char *kwnames[] = { |
6092 | (char *) "self",(char *) "index", NULL | |
6093 | }; | |
6094 | ||
8edf1c75 | 6095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6097 | { |
6098 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6099 | if (PyErr_Occurred()) SWIG_fail; | |
6100 | } | |
d14a1e28 RD |
6101 | { |
6102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6103 | result = (bool)(arg1)->IsChecked(arg2); | |
6104 | ||
6105 | wxPyEndAllowThreads(__tstate); | |
6106 | if (PyErr_Occurred()) SWIG_fail; | |
6107 | } | |
02a34c4c | 6108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6109 | return resultobj; |
6110 | fail: | |
6111 | return NULL; | |
6112 | } | |
6113 | ||
6114 | ||
6115 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6116 | PyObject *resultobj; | |
6117 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6118 | int arg2 ; | |
423f194a | 6119 | int arg3 = (int) True ; |
d14a1e28 | 6120 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
6121 | PyObject * obj1 = 0 ; |
6122 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6123 | char *kwnames[] = { |
6124 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6125 | }; | |
6126 | ||
8edf1c75 | 6127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6129 | { |
6130 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6131 | if (PyErr_Occurred()) SWIG_fail; | |
6132 | } | |
6133 | if (obj2) { | |
6134 | { | |
6135 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6136 | if (PyErr_Occurred()) SWIG_fail; | |
6137 | } | |
6138 | } | |
d14a1e28 RD |
6139 | { |
6140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6141 | (arg1)->Check(arg2,arg3); | |
6142 | ||
6143 | wxPyEndAllowThreads(__tstate); | |
6144 | if (PyErr_Occurred()) SWIG_fail; | |
6145 | } | |
6146 | Py_INCREF(Py_None); resultobj = Py_None; | |
6147 | return resultobj; | |
6148 | fail: | |
6149 | return NULL; | |
6150 | } | |
6151 | ||
6152 | ||
6153 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6154 | PyObject *resultobj; | |
6155 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6156 | wxPoint *arg2 = 0 ; | |
6157 | int result; | |
6158 | wxPoint temp2 ; | |
6159 | PyObject * obj0 = 0 ; | |
6160 | PyObject * obj1 = 0 ; | |
6161 | char *kwnames[] = { | |
6162 | (char *) "self",(char *) "pt", NULL | |
6163 | }; | |
6164 | ||
6165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
6166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6167 | { | |
6168 | arg2 = &temp2; | |
6169 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6170 | } | |
6171 | { | |
6172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6173 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6174 | ||
6175 | wxPyEndAllowThreads(__tstate); | |
6176 | if (PyErr_Occurred()) SWIG_fail; | |
6177 | } | |
8edf1c75 | 6178 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6179 | return resultobj; |
6180 | fail: | |
6181 | return NULL; | |
6182 | } | |
6183 | ||
6184 | ||
6185 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6186 | PyObject *resultobj; | |
6187 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
423f194a RD |
6188 | int arg2 ; |
6189 | int arg3 ; | |
d14a1e28 RD |
6190 | int result; |
6191 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6192 | PyObject * obj1 = 0 ; |
6193 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6194 | char *kwnames[] = { |
6195 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6196 | }; | |
6197 | ||
8edf1c75 | 6198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6200 | { |
6201 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6202 | if (PyErr_Occurred()) SWIG_fail; | |
6203 | } | |
6204 | { | |
6205 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6206 | if (PyErr_Occurred()) SWIG_fail; | |
6207 | } | |
d14a1e28 RD |
6208 | { |
6209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6210 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6211 | ||
6212 | wxPyEndAllowThreads(__tstate); | |
6213 | if (PyErr_Occurred()) SWIG_fail; | |
6214 | } | |
8edf1c75 | 6215 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6216 | return resultobj; |
6217 | fail: | |
6218 | return NULL; | |
6219 | } | |
6220 | ||
6221 | ||
6222 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6223 | PyObject *obj; | |
6224 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6225 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6226 | Py_INCREF(obj); | |
6227 | return Py_BuildValue((char *)""); | |
6228 | } | |
8edf1c75 | 6229 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
cbd72d4f RD |
6230 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
6231 | return 1; | |
6232 | } | |
6233 | ||
6234 | ||
6235 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6236 | PyObject *pyobj; | |
6237 | ||
6238 | { | |
6239 | #if wxUSE_UNICODE | |
6240 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6241 | #else | |
6242 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6243 | #endif | |
6244 | } | |
6245 | return pyobj; | |
6246 | } | |
6247 | ||
6248 | ||
d14a1e28 RD |
6249 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { |
6250 | PyObject *resultobj; | |
6251 | wxTextAttr *result; | |
6252 | ||
6253 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
6254 | { | |
6255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6256 | result = (wxTextAttr *)new wxTextAttr(); | |
6257 | ||
6258 | wxPyEndAllowThreads(__tstate); | |
6259 | if (PyErr_Occurred()) SWIG_fail; | |
6260 | } | |
6261 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6262 | return resultobj; | |
6263 | fail: | |
6264 | return NULL; | |
6265 | } | |
6266 | ||
6267 | ||
6268 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
6269 | PyObject *resultobj; | |
6270 | wxColour *arg1 = 0 ; | |
6271 | wxColour const &arg2_defvalue = wxNullColour ; | |
6272 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6273 | wxFont const &arg3_defvalue = wxNullFont ; | |
6274 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6275 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6276 | wxTextAttr *result; | |
6277 | wxColour temp1 ; | |
6278 | wxColour temp2 ; | |
6279 | PyObject * obj0 = 0 ; | |
6280 | PyObject * obj1 = 0 ; | |
6281 | PyObject * obj2 = 0 ; | |
8edf1c75 | 6282 | PyObject * obj3 = 0 ; |
d14a1e28 | 6283 | |
8edf1c75 | 6284 | if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
6285 | { |
6286 | arg1 = &temp1; | |
6287 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
6288 | } | |
6289 | if (obj1) { | |
6290 | { | |
6291 | arg2 = &temp2; | |
6292 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6293 | } | |
6294 | } | |
6295 | if (obj2) { | |
6296 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6297 | if (arg3 == NULL) { | |
6298 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6299 | } | |
6300 | } | |
8edf1c75 RD |
6301 | if (obj3) { |
6302 | { | |
6303 | arg4 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj3); | |
6304 | if (PyErr_Occurred()) SWIG_fail; | |
6305 | } | |
6306 | } | |
d14a1e28 RD |
6307 | { |
6308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6309 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
6310 | ||
6311 | wxPyEndAllowThreads(__tstate); | |
6312 | if (PyErr_Occurred()) SWIG_fail; | |
6313 | } | |
6314 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6315 | return resultobj; | |
6316 | fail: | |
6317 | return NULL; | |
6318 | } | |
6319 | ||
6320 | ||
6321 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
6322 | int argc; | |
6323 | PyObject *argv[5]; | |
6324 | int ii; | |
6325 | ||
6326 | argc = PyObject_Length(args); | |
6327 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
6328 | argv[ii] = PyTuple_GetItem(args,ii); | |
6329 | } | |
6330 | if (argc == 0) { | |
6331 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
6332 | } | |
6333 | if ((argc >= 1) && (argc <= 4)) { | |
6334 | int _v; | |
6335 | { | |
6336 | _v = wxColour_typecheck(argv[0]); | |
6337 | } | |
6338 | if (_v) { | |
6339 | if (argc <= 1) { | |
6340 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6341 | } | |
6342 | { | |
6343 | _v = wxColour_typecheck(argv[1]); | |
6344 | } | |
6345 | if (_v) { | |
6346 | if (argc <= 2) { | |
6347 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6348 | } | |
6349 | { | |
6350 | void *ptr; | |
6351 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxFont, 0) == -1) { | |
6352 | _v = 0; | |
6353 | PyErr_Clear(); | |
6354 | } else { | |
6355 | _v = 1; | |
6356 | } | |
6357 | } | |
6358 | if (_v) { | |
6359 | if (argc <= 3) { | |
6360 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6361 | } | |
8edf1c75 RD |
6362 | { |
6363 | SWIG_PyObj_AsInt(argv[3]); | |
6364 | if (PyErr_Occurred()) { | |
6365 | _v = 0; | |
6366 | PyErr_Clear(); | |
6367 | } else { | |
6368 | _v = 1; | |
6369 | } | |
6370 | } | |
6371 | if (_v) { | |
6372 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6373 | } | |
d14a1e28 RD |
6374 | } |
6375 | } | |
6376 | } | |
6377 | } | |
6378 | ||
6379 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
6380 | return NULL; | |
6381 | } | |
6382 | ||
6383 | ||
8edf1c75 | 6384 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6385 | PyObject *resultobj; |
6386 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6387 | PyObject * obj0 = 0 ; | |
6388 | char *kwnames[] = { | |
6389 | (char *) "self", NULL | |
6390 | }; | |
6391 | ||
8edf1c75 | 6392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
6393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6394 | { | |
6395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8edf1c75 | 6396 | delete arg1; |
d14a1e28 RD |
6397 | |
6398 | wxPyEndAllowThreads(__tstate); | |
6399 | if (PyErr_Occurred()) SWIG_fail; | |
6400 | } | |
6401 | Py_INCREF(Py_None); resultobj = Py_None; | |
6402 | return resultobj; | |
6403 | fail: | |
6404 | return NULL; | |
6405 | } | |
6406 | ||
6407 | ||
8edf1c75 RD |
6408 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { |
6409 | PyObject *resultobj; | |
6410 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6411 | PyObject * obj0 = 0 ; | |
6412 | char *kwnames[] = { | |
6413 | (char *) "self", NULL | |
6414 | }; | |
6415 | ||
6416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
6417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6418 | { | |
6419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6420 | (arg1)->Init(); | |
6421 | ||
6422 | wxPyEndAllowThreads(__tstate); | |
6423 | if (PyErr_Occurred()) SWIG_fail; | |
6424 | } | |
6425 | Py_INCREF(Py_None); resultobj = Py_None; | |
6426 | return resultobj; | |
6427 | fail: | |
6428 | return NULL; | |
6429 | } | |
6430 | ||
6431 | ||
6432 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
6433 | PyObject *resultobj; |
6434 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6435 | wxColour *arg2 = 0 ; | |
6436 | wxColour temp2 ; | |
6437 | PyObject * obj0 = 0 ; | |
6438 | PyObject * obj1 = 0 ; | |
6439 | char *kwnames[] = { | |
6440 | (char *) "self",(char *) "colText", NULL | |
6441 | }; | |
6442 | ||
6443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
6444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6445 | { | |
6446 | arg2 = &temp2; | |
6447 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6448 | } | |
6449 | { | |
6450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6451 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
6452 | ||
6453 | wxPyEndAllowThreads(__tstate); | |
6454 | if (PyErr_Occurred()) SWIG_fail; | |
6455 | } | |
6456 | Py_INCREF(Py_None); resultobj = Py_None; | |
6457 | return resultobj; | |
6458 | fail: | |
6459 | return NULL; | |
6460 | } | |
6461 | ||
6462 | ||
6463 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6464 | PyObject *resultobj; | |
6465 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6466 | wxColour *arg2 = 0 ; | |
6467 | wxColour temp2 ; | |
6468 | PyObject * obj0 = 0 ; | |
6469 | PyObject * obj1 = 0 ; | |
6470 | char *kwnames[] = { | |
6471 | (char *) "self",(char *) "colBack", NULL | |
6472 | }; | |
6473 | ||
6474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
6475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6476 | { | |
6477 | arg2 = &temp2; | |
6478 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6479 | } | |
6480 | { | |
6481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6482 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
6483 | ||
6484 | wxPyEndAllowThreads(__tstate); | |
6485 | if (PyErr_Occurred()) SWIG_fail; | |
6486 | } | |
6487 | Py_INCREF(Py_None); resultobj = Py_None; | |
6488 | return resultobj; | |
6489 | fail: | |
6490 | return NULL; | |
6491 | } | |
6492 | ||
6493 | ||
6494 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6495 | PyObject *resultobj; | |
6496 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6497 | wxFont *arg2 = 0 ; | |
6498 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
6499 | PyObject * obj0 = 0 ; | |
6500 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6501 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6502 | char *kwnames[] = { |
6503 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
6504 | }; | |
6505 | ||
8edf1c75 | 6506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6508 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6509 | if (arg2 == NULL) { | |
6510 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6511 | } | |
8edf1c75 RD |
6512 | if (obj2) { |
6513 | { | |
6514 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
6515 | if (PyErr_Occurred()) SWIG_fail; | |
6516 | } | |
6517 | } | |
d14a1e28 RD |
6518 | { |
6519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6520 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
6521 | ||
6522 | wxPyEndAllowThreads(__tstate); | |
6523 | if (PyErr_Occurred()) SWIG_fail; | |
6524 | } | |
6525 | Py_INCREF(Py_None); resultobj = Py_None; | |
6526 | return resultobj; | |
6527 | fail: | |
6528 | return NULL; | |
6529 | } | |
6530 | ||
6531 | ||
6532 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6533 | PyObject *resultobj; | |
6534 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6535 | int arg2 ; | |
6536 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6537 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6538 | char *kwnames[] = { |
6539 | (char *) "self",(char *) "alignment", NULL | |
6540 | }; | |
6541 | ||
8edf1c75 | 6542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6544 | { |
6545 | arg2 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj1); | |
6546 | if (PyErr_Occurred()) SWIG_fail; | |
6547 | } | |
d14a1e28 RD |
6548 | { |
6549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6550 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
6551 | ||
6552 | wxPyEndAllowThreads(__tstate); | |
6553 | if (PyErr_Occurred()) SWIG_fail; | |
6554 | } | |
6555 | Py_INCREF(Py_None); resultobj = Py_None; | |
6556 | return resultobj; | |
6557 | fail: | |
6558 | return NULL; | |
6559 | } | |
6560 | ||
6561 | ||
6562 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6563 | PyObject *resultobj; | |
6564 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6565 | wxArrayInt *arg2 = 0 ; | |
0ffb2aa6 | 6566 | bool temp2 = False ; |
d14a1e28 RD |
6567 | PyObject * obj0 = 0 ; |
6568 | PyObject * obj1 = 0 ; | |
6569 | char *kwnames[] = { | |
6570 | (char *) "self",(char *) "tabs", NULL | |
6571 | }; | |
6572 | ||
6573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
6574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6575 | { | |
6576 | if (! PySequence_Check(obj1)) { | |
6577 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
6578 | SWIG_fail; | |
6579 | } | |
6580 | arg2 = new wxArrayInt; | |
0ffb2aa6 | 6581 | temp2 = True; |
d14a1e28 RD |
6582 | int i, len=PySequence_Length(obj1); |
6583 | for (i=0; i<len; i++) { | |
6584 | PyObject* item = PySequence_GetItem(obj1, i); | |
6585 | PyObject* number = PyNumber_Int(item); | |
6586 | arg2->Add(PyInt_AS_LONG(number)); | |
6587 | Py_DECREF(item); | |
6588 | Py_DECREF(number); | |
6589 | } | |
6590 | } | |
6591 | { | |
6592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6593 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
6594 | ||
6595 | wxPyEndAllowThreads(__tstate); | |
6596 | if (PyErr_Occurred()) SWIG_fail; | |
6597 | } | |
6598 | Py_INCREF(Py_None); resultobj = Py_None; | |
6599 | { | |
0ffb2aa6 | 6600 | if (temp2) delete arg2; |
d14a1e28 RD |
6601 | } |
6602 | return resultobj; | |
6603 | fail: | |
6604 | { | |
0ffb2aa6 | 6605 | if (temp2) delete arg2; |
d14a1e28 RD |
6606 | } |
6607 | return NULL; | |
6608 | } | |
6609 | ||
6610 | ||
6611 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6612 | PyObject *resultobj; | |
6613 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6614 | int arg2 ; | |
6615 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6616 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6617 | char *kwnames[] = { |
6618 | (char *) "self",(char *) "indent", NULL | |
6619 | }; | |
6620 | ||
8edf1c75 | 6621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6623 | { |
6624 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6625 | if (PyErr_Occurred()) SWIG_fail; | |
6626 | } | |
d14a1e28 RD |
6627 | { |
6628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6629 | (arg1)->SetLeftIndent(arg2); | |
6630 | ||
6631 | wxPyEndAllowThreads(__tstate); | |
6632 | if (PyErr_Occurred()) SWIG_fail; | |
6633 | } | |
6634 | Py_INCREF(Py_None); resultobj = Py_None; | |
6635 | return resultobj; | |
6636 | fail: | |
6637 | return NULL; | |
6638 | } | |
6639 | ||
6640 | ||
6641 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6642 | PyObject *resultobj; | |
6643 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6644 | int arg2 ; | |
6645 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6646 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6647 | char *kwnames[] = { |
6648 | (char *) "self",(char *) "indent", NULL | |
6649 | }; | |
6650 | ||
8edf1c75 | 6651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6653 | { |
6654 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6655 | if (PyErr_Occurred()) SWIG_fail; | |
6656 | } | |
d14a1e28 RD |
6657 | { |
6658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6659 | (arg1)->SetRightIndent(arg2); | |
6660 | ||
6661 | wxPyEndAllowThreads(__tstate); | |
6662 | if (PyErr_Occurred()) SWIG_fail; | |
6663 | } | |
6664 | Py_INCREF(Py_None); resultobj = Py_None; | |
6665 | return resultobj; | |
6666 | fail: | |
6667 | return NULL; | |
6668 | } | |
6669 | ||
6670 | ||
6671 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6672 | PyObject *resultobj; | |
6673 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6674 | long arg2 ; | |
6675 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6676 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6677 | char *kwnames[] = { |
6678 | (char *) "self",(char *) "flags", NULL | |
6679 | }; | |
6680 | ||
8edf1c75 | 6681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6683 | { |
6684 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
6685 | if (PyErr_Occurred()) SWIG_fail; | |
6686 | } | |
d14a1e28 RD |
6687 | { |
6688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6689 | (arg1)->SetFlags(arg2); | |
6690 | ||
6691 | wxPyEndAllowThreads(__tstate); | |
6692 | if (PyErr_Occurred()) SWIG_fail; | |
6693 | } | |
6694 | Py_INCREF(Py_None); resultobj = Py_None; | |
6695 | return resultobj; | |
6696 | fail: | |
6697 | return NULL; | |
6698 | } | |
6699 | ||
6700 | ||
6701 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6702 | PyObject *resultobj; | |
6703 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6704 | bool result; | |
6705 | PyObject * obj0 = 0 ; | |
6706 | char *kwnames[] = { | |
6707 | (char *) "self", NULL | |
6708 | }; | |
6709 | ||
6710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
6711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6712 | { | |
6713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6714 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
6715 | ||
6716 | wxPyEndAllowThreads(__tstate); | |
6717 | if (PyErr_Occurred()) SWIG_fail; | |
6718 | } | |
02a34c4c | 6719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6720 | return resultobj; |
6721 | fail: | |
6722 | return NULL; | |
6723 | } | |
6724 | ||
6725 | ||
6726 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6727 | PyObject *resultobj; | |
6728 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6729 | bool result; | |
6730 | PyObject * obj0 = 0 ; | |
6731 | char *kwnames[] = { | |
6732 | (char *) "self", NULL | |
6733 | }; | |
6734 | ||
6735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
6736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6737 | { | |
6738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6739 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
6740 | ||
6741 | wxPyEndAllowThreads(__tstate); | |
6742 | if (PyErr_Occurred()) SWIG_fail; | |
6743 | } | |
02a34c4c | 6744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6745 | return resultobj; |
6746 | fail: | |
6747 | return NULL; | |
6748 | } | |
6749 | ||
6750 | ||
6751 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6752 | PyObject *resultobj; | |
6753 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6754 | bool result; | |
6755 | PyObject * obj0 = 0 ; | |
6756 | char *kwnames[] = { | |
6757 | (char *) "self", NULL | |
6758 | }; | |
6759 | ||
6760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
6761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6762 | { | |
6763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6764 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
6765 | ||
6766 | wxPyEndAllowThreads(__tstate); | |
6767 | if (PyErr_Occurred()) SWIG_fail; | |
6768 | } | |
02a34c4c | 6769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6770 | return resultobj; |
6771 | fail: | |
6772 | return NULL; | |
6773 | } | |
6774 | ||
6775 | ||
6776 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6777 | PyObject *resultobj; | |
6778 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6779 | bool result; | |
6780 | PyObject * obj0 = 0 ; | |
6781 | char *kwnames[] = { | |
6782 | (char *) "self", NULL | |
6783 | }; | |
6784 | ||
6785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
6786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6787 | { | |
6788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6789 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
6790 | ||
6791 | wxPyEndAllowThreads(__tstate); | |
6792 | if (PyErr_Occurred()) SWIG_fail; | |
6793 | } | |
02a34c4c | 6794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6795 | return resultobj; |
6796 | fail: | |
6797 | return NULL; | |
6798 | } | |
6799 | ||
6800 | ||
6801 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6802 | PyObject *resultobj; | |
6803 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6804 | bool result; | |
6805 | PyObject * obj0 = 0 ; | |
6806 | char *kwnames[] = { | |
6807 | (char *) "self", NULL | |
6808 | }; | |
6809 | ||
6810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
6811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6812 | { | |
6813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6814 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
6815 | ||
6816 | wxPyEndAllowThreads(__tstate); | |
6817 | if (PyErr_Occurred()) SWIG_fail; | |
6818 | } | |
02a34c4c | 6819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6820 | return resultobj; |
6821 | fail: | |
6822 | return NULL; | |
6823 | } | |
6824 | ||
6825 | ||
6826 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6827 | PyObject *resultobj; | |
6828 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6829 | bool result; | |
6830 | PyObject * obj0 = 0 ; | |
6831 | char *kwnames[] = { | |
6832 | (char *) "self", NULL | |
6833 | }; | |
6834 | ||
6835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
6836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6837 | { | |
6838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6839 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
6840 | ||
6841 | wxPyEndAllowThreads(__tstate); | |
6842 | if (PyErr_Occurred()) SWIG_fail; | |
6843 | } | |
02a34c4c | 6844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6845 | return resultobj; |
6846 | fail: | |
6847 | return NULL; | |
6848 | } | |
6849 | ||
6850 | ||
6851 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6852 | PyObject *resultobj; | |
6853 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6854 | bool result; | |
6855 | PyObject * obj0 = 0 ; | |
6856 | char *kwnames[] = { | |
6857 | (char *) "self", NULL | |
6858 | }; | |
6859 | ||
6860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
6861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6862 | { | |
6863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6864 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
6865 | ||
6866 | wxPyEndAllowThreads(__tstate); | |
6867 | if (PyErr_Occurred()) SWIG_fail; | |
6868 | } | |
02a34c4c | 6869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6870 | return resultobj; |
6871 | fail: | |
6872 | return NULL; | |
6873 | } | |
6874 | ||
6875 | ||
6876 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6877 | PyObject *resultobj; | |
6878 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6879 | long arg2 ; | |
6880 | bool result; | |
6881 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6882 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6883 | char *kwnames[] = { |
6884 | (char *) "self",(char *) "flag", NULL | |
6885 | }; | |
6886 | ||
8edf1c75 | 6887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6889 | { |
6890 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
6891 | if (PyErr_Occurred()) SWIG_fail; | |
6892 | } | |
d14a1e28 RD |
6893 | { |
6894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6895 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
6896 | ||
6897 | wxPyEndAllowThreads(__tstate); | |
6898 | if (PyErr_Occurred()) SWIG_fail; | |
6899 | } | |
02a34c4c | 6900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6901 | return resultobj; |
6902 | fail: | |
6903 | return NULL; | |
6904 | } | |
6905 | ||
6906 | ||
6907 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6908 | PyObject *resultobj; | |
6909 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6910 | wxColour *result; | |
6911 | PyObject * obj0 = 0 ; | |
6912 | char *kwnames[] = { | |
6913 | (char *) "self", NULL | |
6914 | }; | |
6915 | ||
6916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
6917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6918 | { | |
6919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6920 | { | |
6921 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
6922 | result = (wxColour *) &_result_ref; | |
6923 | } | |
6924 | ||
6925 | wxPyEndAllowThreads(__tstate); | |
6926 | if (PyErr_Occurred()) SWIG_fail; | |
6927 | } | |
6928 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6929 | return resultobj; | |
6930 | fail: | |
6931 | return NULL; | |
6932 | } | |
6933 | ||
6934 | ||
6935 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6936 | PyObject *resultobj; | |
6937 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6938 | wxColour *result; | |
6939 | PyObject * obj0 = 0 ; | |
6940 | char *kwnames[] = { | |
6941 | (char *) "self", NULL | |
6942 | }; | |
6943 | ||
6944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
6945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6946 | { | |
6947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6948 | { | |
6949 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
6950 | result = (wxColour *) &_result_ref; | |
6951 | } | |
6952 | ||
6953 | wxPyEndAllowThreads(__tstate); | |
6954 | if (PyErr_Occurred()) SWIG_fail; | |
6955 | } | |
6956 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6957 | return resultobj; | |
6958 | fail: | |
6959 | return NULL; | |
6960 | } | |
6961 | ||
6962 | ||
6963 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6964 | PyObject *resultobj; | |
6965 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6966 | wxFont *result; | |
6967 | PyObject * obj0 = 0 ; | |
6968 | char *kwnames[] = { | |
6969 | (char *) "self", NULL | |
6970 | }; | |
6971 | ||
6972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
6973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6974 | { | |
6975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6976 | { | |
6977 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
6978 | result = (wxFont *) &_result_ref; | |
6979 | } | |
6980 | ||
6981 | wxPyEndAllowThreads(__tstate); | |
6982 | if (PyErr_Occurred()) SWIG_fail; | |
6983 | } | |
6984 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
6985 | return resultobj; | |
6986 | fail: | |
6987 | return NULL; | |
6988 | } | |
6989 | ||
6990 | ||
6991 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6992 | PyObject *resultobj; | |
6993 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6994 | int result; | |
6995 | PyObject * obj0 = 0 ; | |
6996 | char *kwnames[] = { | |
6997 | (char *) "self", NULL | |
6998 | }; | |
6999 | ||
7000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
7001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7002 | { | |
7003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7004 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7005 | ||
7006 | wxPyEndAllowThreads(__tstate); | |
7007 | if (PyErr_Occurred()) SWIG_fail; | |
7008 | } | |
8edf1c75 | 7009 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7010 | return resultobj; |
7011 | fail: | |
7012 | return NULL; | |
7013 | } | |
7014 | ||
7015 | ||
7016 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7017 | PyObject *resultobj; | |
7018 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7019 | wxArrayInt *result; | |
7020 | PyObject * obj0 = 0 ; | |
7021 | char *kwnames[] = { | |
7022 | (char *) "self", NULL | |
7023 | }; | |
7024 | ||
7025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
7026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7027 | { | |
7028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7029 | { | |
7030 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7031 | result = (wxArrayInt *) &_result_ref; | |
7032 | } | |
7033 | ||
7034 | wxPyEndAllowThreads(__tstate); | |
7035 | if (PyErr_Occurred()) SWIG_fail; | |
7036 | } | |
7037 | { | |
7038 | resultobj = PyList_New(0); | |
7039 | size_t idx; | |
7040 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7041 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7042 | PyList_Append(resultobj, val); | |
7043 | Py_DECREF(val); | |
7044 | } | |
7045 | } | |
7046 | return resultobj; | |
7047 | fail: | |
7048 | return NULL; | |
7049 | } | |
7050 | ||
7051 | ||
7052 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7053 | PyObject *resultobj; | |
7054 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7055 | long result; | |
7056 | PyObject * obj0 = 0 ; | |
7057 | char *kwnames[] = { | |
7058 | (char *) "self", NULL | |
7059 | }; | |
7060 | ||
7061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
7062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7063 | { | |
7064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7065 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7066 | ||
7067 | wxPyEndAllowThreads(__tstate); | |
7068 | if (PyErr_Occurred()) SWIG_fail; | |
7069 | } | |
8edf1c75 | 7070 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7071 | return resultobj; |
7072 | fail: | |
7073 | return NULL; | |
7074 | } | |
7075 | ||
7076 | ||
7077 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7078 | PyObject *resultobj; | |
7079 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7080 | long result; | |
7081 | PyObject * obj0 = 0 ; | |
7082 | char *kwnames[] = { | |
7083 | (char *) "self", NULL | |
7084 | }; | |
7085 | ||
7086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
7087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7088 | { | |
7089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7090 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7091 | ||
7092 | wxPyEndAllowThreads(__tstate); | |
7093 | if (PyErr_Occurred()) SWIG_fail; | |
7094 | } | |
8edf1c75 | 7095 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7096 | return resultobj; |
7097 | fail: | |
7098 | return NULL; | |
7099 | } | |
7100 | ||
7101 | ||
7102 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7103 | PyObject *resultobj; | |
7104 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7105 | long result; | |
7106 | PyObject * obj0 = 0 ; | |
7107 | char *kwnames[] = { | |
7108 | (char *) "self", NULL | |
7109 | }; | |
7110 | ||
7111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
7112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7113 | { | |
7114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7115 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7116 | ||
7117 | wxPyEndAllowThreads(__tstate); | |
7118 | if (PyErr_Occurred()) SWIG_fail; | |
7119 | } | |
8edf1c75 | 7120 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7121 | return resultobj; |
7122 | fail: | |
7123 | return NULL; | |
7124 | } | |
7125 | ||
7126 | ||
7127 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7128 | PyObject *resultobj; | |
7129 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7130 | bool result; | |
7131 | PyObject * obj0 = 0 ; | |
7132 | char *kwnames[] = { | |
7133 | (char *) "self", NULL | |
7134 | }; | |
7135 | ||
7136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
7137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7138 | { | |
7139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7140 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7141 | ||
7142 | wxPyEndAllowThreads(__tstate); | |
7143 | if (PyErr_Occurred()) SWIG_fail; | |
7144 | } | |
02a34c4c | 7145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7146 | return resultobj; |
7147 | fail: | |
7148 | return NULL; | |
7149 | } | |
7150 | ||
7151 | ||
7152 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7153 | PyObject *resultobj; | |
7154 | wxTextAttr *arg1 = 0 ; | |
7155 | wxTextAttr *arg2 = 0 ; | |
7156 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7157 | wxTextAttr result; | |
7158 | PyObject * obj0 = 0 ; | |
7159 | PyObject * obj1 = 0 ; | |
7160 | PyObject * obj2 = 0 ; | |
7161 | char *kwnames[] = { | |
7162 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7163 | }; | |
7164 | ||
7165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7167 | if (arg1 == NULL) { | |
7168 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7169 | } | |
7170 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7171 | if (arg2 == NULL) { | |
7172 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7173 | } | |
7174 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7175 | { | |
7176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7177 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7178 | ||
7179 | wxPyEndAllowThreads(__tstate); | |
7180 | if (PyErr_Occurred()) SWIG_fail; | |
7181 | } | |
7182 | { | |
7183 | wxTextAttr * resultptr; | |
7184 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
7185 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTextAttr, 1); | |
7186 | } | |
7187 | return resultobj; | |
7188 | fail: | |
7189 | return NULL; | |
7190 | } | |
7191 | ||
7192 | ||
7193 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7194 | PyObject *obj; | |
7195 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7196 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7197 | Py_INCREF(obj); | |
7198 | return Py_BuildValue((char *)""); | |
7199 | } | |
7200 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7201 | PyObject *resultobj; | |
7202 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 7203 | int arg2 ; |
d14a1e28 RD |
7204 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7205 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7206 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7207 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7208 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7209 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7210 | long arg6 = (long) 0 ; | |
7211 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7212 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7213 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7214 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7215 | wxTextCtrl *result; | |
423f194a | 7216 | bool temp3 = False ; |
d14a1e28 RD |
7217 | wxPoint temp4 ; |
7218 | wxSize temp5 ; | |
423f194a | 7219 | bool temp8 = False ; |
d14a1e28 | 7220 | PyObject * obj0 = 0 ; |
8edf1c75 | 7221 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7222 | PyObject * obj2 = 0 ; |
7223 | PyObject * obj3 = 0 ; | |
7224 | PyObject * obj4 = 0 ; | |
8edf1c75 | 7225 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7226 | PyObject * obj6 = 0 ; |
7227 | PyObject * obj7 = 0 ; | |
7228 | char *kwnames[] = { | |
7229 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7230 | }; | |
7231 | ||
8edf1c75 | 7232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 7233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7234 | { |
7235 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7236 | if (PyErr_Occurred()) SWIG_fail; | |
7237 | } | |
d14a1e28 RD |
7238 | if (obj2) { |
7239 | { | |
7240 | arg3 = wxString_in_helper(obj2); | |
7241 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7242 | temp3 = True; |
d14a1e28 RD |
7243 | } |
7244 | } | |
7245 | if (obj3) { | |
7246 | { | |
7247 | arg4 = &temp4; | |
7248 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7249 | } | |
7250 | } | |
7251 | if (obj4) { | |
7252 | { | |
7253 | arg5 = &temp5; | |
7254 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7255 | } | |
7256 | } | |
8edf1c75 RD |
7257 | if (obj5) { |
7258 | { | |
7259 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
7260 | if (PyErr_Occurred()) SWIG_fail; | |
7261 | } | |
7262 | } | |
d14a1e28 RD |
7263 | if (obj6) { |
7264 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7265 | if (arg7 == NULL) { | |
7266 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7267 | } | |
7268 | } | |
7269 | if (obj7) { | |
7270 | { | |
7271 | arg8 = wxString_in_helper(obj7); | |
7272 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 7273 | temp8 = True; |
d14a1e28 RD |
7274 | } |
7275 | } | |
7276 | { | |
7277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7278 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7279 | ||
7280 | wxPyEndAllowThreads(__tstate); | |
7281 | if (PyErr_Occurred()) SWIG_fail; | |
7282 | } | |
7283 | { | |
7284 | resultobj = wxPyMake_wxObject(result); | |
7285 | } | |
7286 | { | |
7287 | if (temp3) | |
7288 | delete arg3; | |
7289 | } | |
7290 | { | |
7291 | if (temp8) | |
7292 | delete arg8; | |
7293 | } | |
7294 | return resultobj; | |
7295 | fail: | |
7296 | { | |
7297 | if (temp3) | |
7298 | delete arg3; | |
7299 | } | |
7300 | { | |
7301 | if (temp8) | |
7302 | delete arg8; | |
7303 | } | |
7304 | return NULL; | |
7305 | } | |
7306 | ||
7307 | ||
7308 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7309 | PyObject *resultobj; | |
7310 | wxTextCtrl *result; | |
7311 | char *kwnames[] = { | |
7312 | NULL | |
7313 | }; | |
7314 | ||
7315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
7316 | { | |
7317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7318 | result = (wxTextCtrl *)new wxTextCtrl(); | |
7319 | ||
7320 | wxPyEndAllowThreads(__tstate); | |
7321 | if (PyErr_Occurred()) SWIG_fail; | |
7322 | } | |
7323 | { | |
7324 | resultobj = wxPyMake_wxObject(result); | |
7325 | } | |
7326 | return resultobj; | |
7327 | fail: | |
7328 | return NULL; | |
7329 | } | |
7330 | ||
7331 | ||
7332 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7333 | PyObject *resultobj; | |
7334 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7335 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 7336 | int arg3 ; |
d14a1e28 RD |
7337 | wxString const &arg4_defvalue = wxPyEmptyString ; |
7338 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7339 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7340 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7341 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7342 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7343 | long arg7 = (long) 0 ; | |
7344 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7345 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7346 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
7347 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7348 | bool result; | |
423f194a | 7349 | bool temp4 = False ; |
d14a1e28 RD |
7350 | wxPoint temp5 ; |
7351 | wxSize temp6 ; | |
423f194a | 7352 | bool temp9 = False ; |
d14a1e28 RD |
7353 | PyObject * obj0 = 0 ; |
7354 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7355 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7356 | PyObject * obj3 = 0 ; |
7357 | PyObject * obj4 = 0 ; | |
7358 | PyObject * obj5 = 0 ; | |
8edf1c75 | 7359 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7360 | PyObject * obj7 = 0 ; |
7361 | PyObject * obj8 = 0 ; | |
7362 | char *kwnames[] = { | |
7363 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7364 | }; | |
7365 | ||
8edf1c75 | 7366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
7367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7368 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
7369 | { |
7370 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7371 | if (PyErr_Occurred()) SWIG_fail; | |
7372 | } | |
d14a1e28 RD |
7373 | if (obj3) { |
7374 | { | |
7375 | arg4 = wxString_in_helper(obj3); | |
7376 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7377 | temp4 = True; |
d14a1e28 RD |
7378 | } |
7379 | } | |
7380 | if (obj4) { | |
7381 | { | |
7382 | arg5 = &temp5; | |
7383 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
7384 | } | |
7385 | } | |
7386 | if (obj5) { | |
7387 | { | |
7388 | arg6 = &temp6; | |
7389 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7390 | } | |
7391 | } | |
8edf1c75 RD |
7392 | if (obj6) { |
7393 | { | |
7394 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
7395 | if (PyErr_Occurred()) SWIG_fail; | |
7396 | } | |
7397 | } | |
d14a1e28 RD |
7398 | if (obj7) { |
7399 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7400 | if (arg8 == NULL) { | |
7401 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7402 | } | |
7403 | } | |
7404 | if (obj8) { | |
7405 | { | |
7406 | arg9 = wxString_in_helper(obj8); | |
7407 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 7408 | temp9 = True; |
d14a1e28 RD |
7409 | } |
7410 | } | |
7411 | { | |
7412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7413 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7414 | ||
7415 | wxPyEndAllowThreads(__tstate); | |
7416 | if (PyErr_Occurred()) SWIG_fail; | |
7417 | } | |
02a34c4c | 7418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7419 | { |
7420 | if (temp4) | |
7421 | delete arg4; | |
7422 | } | |
7423 | { | |
7424 | if (temp9) | |
7425 | delete arg9; | |
7426 | } | |
7427 | return resultobj; | |
7428 | fail: | |
7429 | { | |
7430 | if (temp4) | |
7431 | delete arg4; | |
7432 | } | |
7433 | { | |
7434 | if (temp9) | |
7435 | delete arg9; | |
7436 | } | |
7437 | return NULL; | |
7438 | } | |
7439 | ||
7440 | ||
7441 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7442 | PyObject *resultobj; | |
7443 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7444 | wxString result; | |
7445 | PyObject * obj0 = 0 ; | |
7446 | char *kwnames[] = { | |
7447 | (char *) "self", NULL | |
7448 | }; | |
7449 | ||
7450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
7451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7452 | { | |
7453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7454 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
7455 | ||
7456 | wxPyEndAllowThreads(__tstate); | |
7457 | if (PyErr_Occurred()) SWIG_fail; | |
7458 | } | |
7459 | { | |
7460 | #if wxUSE_UNICODE | |
7461 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7462 | #else | |
7463 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7464 | #endif | |
7465 | } | |
7466 | return resultobj; | |
7467 | fail: | |
7468 | return NULL; | |
7469 | } | |
7470 | ||
7471 | ||
7472 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7473 | PyObject *resultobj; | |
7474 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7475 | wxString *arg2 = 0 ; | |
423f194a | 7476 | bool temp2 = False ; |
d14a1e28 RD |
7477 | PyObject * obj0 = 0 ; |
7478 | PyObject * obj1 = 0 ; | |
7479 | char *kwnames[] = { | |
7480 | (char *) "self",(char *) "value", NULL | |
7481 | }; | |
7482 | ||
7483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
7484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7485 | { | |
7486 | arg2 = wxString_in_helper(obj1); | |
7487 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7488 | temp2 = True; |
d14a1e28 RD |
7489 | } |
7490 | { | |
7491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7492 | (arg1)->SetValue((wxString const &)*arg2); | |
7493 | ||
7494 | wxPyEndAllowThreads(__tstate); | |
7495 | if (PyErr_Occurred()) SWIG_fail; | |
7496 | } | |
7497 | Py_INCREF(Py_None); resultobj = Py_None; | |
7498 | { | |
7499 | if (temp2) | |
7500 | delete arg2; | |
7501 | } | |
7502 | return resultobj; | |
7503 | fail: | |
7504 | { | |
7505 | if (temp2) | |
7506 | delete arg2; | |
7507 | } | |
7508 | return NULL; | |
7509 | } | |
7510 | ||
7511 | ||
7512 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7513 | PyObject *resultobj; | |
7514 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7515 | long arg2 ; | |
7516 | long arg3 ; | |
7517 | wxString result; | |
7518 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7519 | PyObject * obj1 = 0 ; |
7520 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7521 | char *kwnames[] = { |
7522 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7523 | }; | |
7524 | ||
8edf1c75 | 7525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7527 | { |
7528 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7529 | if (PyErr_Occurred()) SWIG_fail; | |
7530 | } | |
7531 | { | |
7532 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7533 | if (PyErr_Occurred()) SWIG_fail; | |
7534 | } | |
d14a1e28 RD |
7535 | { |
7536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7537 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
7538 | ||
7539 | wxPyEndAllowThreads(__tstate); | |
7540 | if (PyErr_Occurred()) SWIG_fail; | |
7541 | } | |
7542 | { | |
7543 | #if wxUSE_UNICODE | |
7544 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7545 | #else | |
7546 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7547 | #endif | |
7548 | } | |
7549 | return resultobj; | |
7550 | fail: | |
7551 | return NULL; | |
7552 | } | |
7553 | ||
7554 | ||
7555 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7556 | PyObject *resultobj; | |
7557 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7558 | long arg2 ; | |
7559 | int result; | |
7560 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7561 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7562 | char *kwnames[] = { |
7563 | (char *) "self",(char *) "lineNo", NULL | |
7564 | }; | |
7565 | ||
8edf1c75 | 7566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7568 | { |
7569 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7570 | if (PyErr_Occurred()) SWIG_fail; | |
7571 | } | |
d14a1e28 RD |
7572 | { |
7573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7574 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
7575 | ||
7576 | wxPyEndAllowThreads(__tstate); | |
7577 | if (PyErr_Occurred()) SWIG_fail; | |
7578 | } | |
8edf1c75 | 7579 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7580 | return resultobj; |
7581 | fail: | |
7582 | return NULL; | |
7583 | } | |
7584 | ||
7585 | ||
7586 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7587 | PyObject *resultobj; | |
7588 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7589 | long arg2 ; | |
7590 | wxString result; | |
7591 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7592 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7593 | char *kwnames[] = { |
7594 | (char *) "self",(char *) "lineNo", NULL | |
7595 | }; | |
7596 | ||
8edf1c75 | 7597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7599 | { |
7600 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7601 | if (PyErr_Occurred()) SWIG_fail; | |
7602 | } | |
d14a1e28 RD |
7603 | { |
7604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7605 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
7606 | ||
7607 | wxPyEndAllowThreads(__tstate); | |
7608 | if (PyErr_Occurred()) SWIG_fail; | |
7609 | } | |
7610 | { | |
7611 | #if wxUSE_UNICODE | |
7612 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7613 | #else | |
7614 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7615 | #endif | |
7616 | } | |
7617 | return resultobj; | |
7618 | fail: | |
7619 | return NULL; | |
7620 | } | |
7621 | ||
7622 | ||
7623 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7624 | PyObject *resultobj; | |
7625 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7626 | int result; | |
7627 | PyObject * obj0 = 0 ; | |
7628 | char *kwnames[] = { | |
7629 | (char *) "self", NULL | |
7630 | }; | |
7631 | ||
7632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
7633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7634 | { | |
7635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7636 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
7637 | ||
7638 | wxPyEndAllowThreads(__tstate); | |
7639 | if (PyErr_Occurred()) SWIG_fail; | |
7640 | } | |
8edf1c75 | 7641 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7642 | return resultobj; |
7643 | fail: | |
7644 | return NULL; | |
7645 | } | |
7646 | ||
7647 | ||
7648 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7649 | PyObject *resultobj; | |
7650 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7651 | bool result; | |
7652 | PyObject * obj0 = 0 ; | |
7653 | char *kwnames[] = { | |
7654 | (char *) "self", NULL | |
7655 | }; | |
7656 | ||
7657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
7658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7659 | { | |
7660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7661 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
7662 | ||
7663 | wxPyEndAllowThreads(__tstate); | |
7664 | if (PyErr_Occurred()) SWIG_fail; | |
7665 | } | |
02a34c4c | 7666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7667 | return resultobj; |
7668 | fail: | |
7669 | return NULL; | |
7670 | } | |
7671 | ||
7672 | ||
7673 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7674 | PyObject *resultobj; | |
7675 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7676 | bool result; | |
7677 | PyObject * obj0 = 0 ; | |
7678 | char *kwnames[] = { | |
7679 | (char *) "self", NULL | |
7680 | }; | |
7681 | ||
7682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
7683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7684 | { | |
7685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7686 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
7687 | ||
7688 | wxPyEndAllowThreads(__tstate); | |
7689 | if (PyErr_Occurred()) SWIG_fail; | |
7690 | } | |
02a34c4c | 7691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7692 | return resultobj; |
7693 | fail: | |
7694 | return NULL; | |
7695 | } | |
7696 | ||
7697 | ||
7698 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7699 | PyObject *resultobj; | |
7700 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7701 | bool result; | |
7702 | PyObject * obj0 = 0 ; | |
7703 | char *kwnames[] = { | |
7704 | (char *) "self", NULL | |
7705 | }; | |
7706 | ||
7707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
7708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7709 | { | |
7710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7711 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
7712 | ||
7713 | wxPyEndAllowThreads(__tstate); | |
7714 | if (PyErr_Occurred()) SWIG_fail; | |
7715 | } | |
02a34c4c | 7716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7717 | return resultobj; |
7718 | fail: | |
7719 | return NULL; | |
7720 | } | |
7721 | ||
7722 | ||
7723 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7724 | PyObject *resultobj; | |
7725 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7726 | bool result; | |
7727 | PyObject * obj0 = 0 ; | |
7728 | char *kwnames[] = { | |
7729 | (char *) "self", NULL | |
7730 | }; | |
7731 | ||
7732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
7733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7734 | { | |
7735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7736 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
7737 | ||
7738 | wxPyEndAllowThreads(__tstate); | |
7739 | if (PyErr_Occurred()) SWIG_fail; | |
7740 | } | |
02a34c4c | 7741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7742 | return resultobj; |
7743 | fail: | |
7744 | return NULL; | |
7745 | } | |
7746 | ||
7747 | ||
7748 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7749 | PyObject *resultobj; | |
7750 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7751 | long *arg2 = (long *) 0 ; | |
7752 | long *arg3 = (long *) 0 ; | |
7753 | long temp2 ; | |
7754 | long temp3 ; | |
7755 | PyObject * obj0 = 0 ; | |
7756 | char *kwnames[] = { | |
7757 | (char *) "self", NULL | |
7758 | }; | |
7759 | ||
7760 | arg2 = &temp2; | |
7761 | arg3 = &temp3; | |
7762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
7763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7764 | { | |
7765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7766 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
7767 | ||
7768 | wxPyEndAllowThreads(__tstate); | |
7769 | if (PyErr_Occurred()) SWIG_fail; | |
7770 | } | |
7771 | Py_INCREF(Py_None); resultobj = Py_None; | |
7772 | { | |
7773 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
7774 | resultobj = t_output_helper(resultobj,o); | |
7775 | } | |
7776 | { | |
7777 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7778 | resultobj = t_output_helper(resultobj,o); | |
7779 | } | |
7780 | return resultobj; | |
7781 | fail: | |
7782 | return NULL; | |
7783 | } | |
7784 | ||
7785 | ||
7786 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7787 | PyObject *resultobj; | |
7788 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7789 | wxString result; | |
7790 | PyObject * obj0 = 0 ; | |
7791 | char *kwnames[] = { | |
7792 | (char *) "self", NULL | |
7793 | }; | |
7794 | ||
7795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
7796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7797 | { | |
7798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7799 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
7800 | ||
7801 | wxPyEndAllowThreads(__tstate); | |
7802 | if (PyErr_Occurred()) SWIG_fail; | |
7803 | } | |
7804 | { | |
7805 | #if wxUSE_UNICODE | |
7806 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7807 | #else | |
7808 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7809 | #endif | |
7810 | } | |
7811 | return resultobj; | |
7812 | fail: | |
7813 | return NULL; | |
7814 | } | |
7815 | ||
7816 | ||
7817 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7818 | PyObject *resultobj; | |
7819 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7820 | PyObject * obj0 = 0 ; | |
7821 | char *kwnames[] = { | |
7822 | (char *) "self", NULL | |
7823 | }; | |
7824 | ||
7825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
7826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7827 | { | |
7828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7829 | (arg1)->Clear(); | |
7830 | ||
7831 | wxPyEndAllowThreads(__tstate); | |
7832 | if (PyErr_Occurred()) SWIG_fail; | |
7833 | } | |
7834 | Py_INCREF(Py_None); resultobj = Py_None; | |
7835 | return resultobj; | |
7836 | fail: | |
7837 | return NULL; | |
7838 | } | |
7839 | ||
7840 | ||
7841 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7842 | PyObject *resultobj; | |
7843 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7844 | long arg2 ; | |
7845 | long arg3 ; | |
7846 | wxString *arg4 = 0 ; | |
423f194a | 7847 | bool temp4 = False ; |
d14a1e28 | 7848 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
7849 | PyObject * obj1 = 0 ; |
7850 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7851 | PyObject * obj3 = 0 ; |
7852 | char *kwnames[] = { | |
7853 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
7854 | }; | |
7855 | ||
8edf1c75 | 7856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 7857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7858 | { |
7859 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7860 | if (PyErr_Occurred()) SWIG_fail; | |
7861 | } | |
7862 | { | |
7863 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7864 | if (PyErr_Occurred()) SWIG_fail; | |
7865 | } | |
d14a1e28 RD |
7866 | { |
7867 | arg4 = wxString_in_helper(obj3); | |
7868 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7869 | temp4 = True; |
d14a1e28 RD |
7870 | } |
7871 | { | |
7872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7873 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
7874 | ||
7875 | wxPyEndAllowThreads(__tstate); | |
7876 | if (PyErr_Occurred()) SWIG_fail; | |
7877 | } | |
7878 | Py_INCREF(Py_None); resultobj = Py_None; | |
7879 | { | |
7880 | if (temp4) | |
7881 | delete arg4; | |
7882 | } | |
7883 | return resultobj; | |
7884 | fail: | |
7885 | { | |
7886 | if (temp4) | |
7887 | delete arg4; | |
7888 | } | |
7889 | return NULL; | |
7890 | } | |
7891 | ||
7892 | ||
7893 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7894 | PyObject *resultobj; | |
7895 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7896 | long arg2 ; | |
7897 | long arg3 ; | |
7898 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7899 | PyObject * obj1 = 0 ; |
7900 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7901 | char *kwnames[] = { |
7902 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7903 | }; | |
7904 | ||
8edf1c75 | 7905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7907 | { |
7908 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7909 | if (PyErr_Occurred()) SWIG_fail; | |
7910 | } | |
7911 | { | |
7912 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7913 | if (PyErr_Occurred()) SWIG_fail; | |
7914 | } | |
d14a1e28 RD |
7915 | { |
7916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7917 | (arg1)->Remove(arg2,arg3); | |
7918 | ||
7919 | wxPyEndAllowThreads(__tstate); | |
7920 | if (PyErr_Occurred()) SWIG_fail; | |
7921 | } | |
7922 | Py_INCREF(Py_None); resultobj = Py_None; | |
7923 | return resultobj; | |
7924 | fail: | |
7925 | return NULL; | |
7926 | } | |
7927 | ||
7928 | ||
7929 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7930 | PyObject *resultobj; | |
7931 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7932 | wxString *arg2 = 0 ; | |
7933 | bool result; | |
423f194a | 7934 | bool temp2 = False ; |
d14a1e28 RD |
7935 | PyObject * obj0 = 0 ; |
7936 | PyObject * obj1 = 0 ; | |
7937 | char *kwnames[] = { | |
7938 | (char *) "self",(char *) "file", NULL | |
7939 | }; | |
7940 | ||
7941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
7942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7943 | { | |
7944 | arg2 = wxString_in_helper(obj1); | |
7945 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7946 | temp2 = True; |
d14a1e28 RD |
7947 | } |
7948 | { | |
7949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7950 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
7951 | ||
7952 | wxPyEndAllowThreads(__tstate); | |
7953 | if (PyErr_Occurred()) SWIG_fail; | |
7954 | } | |
02a34c4c | 7955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7956 | { |
7957 | if (temp2) | |
7958 | delete arg2; | |
7959 | } | |
7960 | return resultobj; | |
7961 | fail: | |
7962 | { | |
7963 | if (temp2) | |
7964 | delete arg2; | |
7965 | } | |
7966 | return NULL; | |
7967 | } | |
7968 | ||
7969 | ||
7970 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7971 | PyObject *resultobj; | |
7972 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7973 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
7974 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7975 | bool result; | |
423f194a | 7976 | bool temp2 = False ; |
d14a1e28 RD |
7977 | PyObject * obj0 = 0 ; |
7978 | PyObject * obj1 = 0 ; | |
7979 | char *kwnames[] = { | |
7980 | (char *) "self",(char *) "file", NULL | |
7981 | }; | |
7982 | ||
7983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
7984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7985 | if (obj1) { | |
7986 | { | |
7987 | arg2 = wxString_in_helper(obj1); | |
7988 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7989 | temp2 = True; |
d14a1e28 RD |
7990 | } |
7991 | } | |
7992 | { | |
7993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7994 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
7995 | ||
7996 | wxPyEndAllowThreads(__tstate); | |
7997 | if (PyErr_Occurred()) SWIG_fail; | |
7998 | } | |
02a34c4c | 7999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8000 | { |
8001 | if (temp2) | |
8002 | delete arg2; | |
8003 | } | |
8004 | return resultobj; | |
8005 | fail: | |
8006 | { | |
8007 | if (temp2) | |
8008 | delete arg2; | |
8009 | } | |
8010 | return NULL; | |
8011 | } | |
8012 | ||
8013 | ||
8014 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8015 | PyObject *resultobj; | |
8016 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8017 | PyObject * obj0 = 0 ; | |
8018 | char *kwnames[] = { | |
8019 | (char *) "self", NULL | |
8020 | }; | |
8021 | ||
8022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
8023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8024 | { | |
8025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8026 | (arg1)->MarkDirty(); | |
8027 | ||
8028 | wxPyEndAllowThreads(__tstate); | |
8029 | if (PyErr_Occurred()) SWIG_fail; | |
8030 | } | |
8031 | Py_INCREF(Py_None); resultobj = Py_None; | |
8032 | return resultobj; | |
8033 | fail: | |
8034 | return NULL; | |
8035 | } | |
8036 | ||
8037 | ||
8038 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8039 | PyObject *resultobj; | |
8040 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8041 | PyObject * obj0 = 0 ; | |
8042 | char *kwnames[] = { | |
8043 | (char *) "self", NULL | |
8044 | }; | |
8045 | ||
8046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
8047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8048 | { | |
8049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8050 | (arg1)->DiscardEdits(); | |
8051 | ||
8052 | wxPyEndAllowThreads(__tstate); | |
8053 | if (PyErr_Occurred()) SWIG_fail; | |
8054 | } | |
8055 | Py_INCREF(Py_None); resultobj = Py_None; | |
8056 | return resultobj; | |
8057 | fail: | |
8058 | return NULL; | |
8059 | } | |
8060 | ||
8061 | ||
8062 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8063 | PyObject *resultobj; | |
8064 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8065 | unsigned long arg2 ; | |
8066 | PyObject * obj0 = 0 ; | |
8067 | PyObject * obj1 = 0 ; | |
8068 | char *kwnames[] = { | |
8069 | (char *) "self",(char *) "len", NULL | |
8070 | }; | |
8071 | ||
8072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
8073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 8074 | { |
8edf1c75 | 8075 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
8076 | if (PyErr_Occurred()) SWIG_fail; |
8077 | } | |
d14a1e28 RD |
8078 | { |
8079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8080 | (arg1)->SetMaxLength(arg2); | |
8081 | ||
8082 | wxPyEndAllowThreads(__tstate); | |
8083 | if (PyErr_Occurred()) SWIG_fail; | |
8084 | } | |
8085 | Py_INCREF(Py_None); resultobj = Py_None; | |
8086 | return resultobj; | |
8087 | fail: | |
8088 | return NULL; | |
8089 | } | |
8090 | ||
8091 | ||
8092 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8093 | PyObject *resultobj; | |
8094 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8095 | wxString *arg2 = 0 ; | |
423f194a | 8096 | bool temp2 = False ; |
d14a1e28 RD |
8097 | PyObject * obj0 = 0 ; |
8098 | PyObject * obj1 = 0 ; | |
8099 | char *kwnames[] = { | |
8100 | (char *) "self",(char *) "text", NULL | |
8101 | }; | |
8102 | ||
8103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
8104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8105 | { | |
8106 | arg2 = wxString_in_helper(obj1); | |
8107 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8108 | temp2 = True; |
d14a1e28 RD |
8109 | } |
8110 | { | |
8111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8112 | (arg1)->WriteText((wxString const &)*arg2); | |
8113 | ||
8114 | wxPyEndAllowThreads(__tstate); | |
8115 | if (PyErr_Occurred()) SWIG_fail; | |
8116 | } | |
8117 | Py_INCREF(Py_None); resultobj = Py_None; | |
8118 | { | |
8119 | if (temp2) | |
8120 | delete arg2; | |
8121 | } | |
8122 | return resultobj; | |
8123 | fail: | |
8124 | { | |
8125 | if (temp2) | |
8126 | delete arg2; | |
8127 | } | |
8128 | return NULL; | |
8129 | } | |
8130 | ||
8131 | ||
8132 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8133 | PyObject *resultobj; | |
8134 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8135 | wxString *arg2 = 0 ; | |
423f194a | 8136 | bool temp2 = False ; |
d14a1e28 RD |
8137 | PyObject * obj0 = 0 ; |
8138 | PyObject * obj1 = 0 ; | |
8139 | char *kwnames[] = { | |
8140 | (char *) "self",(char *) "text", NULL | |
8141 | }; | |
8142 | ||
8143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
8144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8145 | { | |
8146 | arg2 = wxString_in_helper(obj1); | |
8147 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8148 | temp2 = True; |
d14a1e28 RD |
8149 | } |
8150 | { | |
8151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8152 | (arg1)->AppendText((wxString const &)*arg2); | |
8153 | ||
8154 | wxPyEndAllowThreads(__tstate); | |
8155 | if (PyErr_Occurred()) SWIG_fail; | |
8156 | } | |
8157 | Py_INCREF(Py_None); resultobj = Py_None; | |
8158 | { | |
8159 | if (temp2) | |
8160 | delete arg2; | |
8161 | } | |
8162 | return resultobj; | |
8163 | fail: | |
8164 | { | |
8165 | if (temp2) | |
8166 | delete arg2; | |
8167 | } | |
8168 | return NULL; | |
8169 | } | |
8170 | ||
8171 | ||
8172 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8173 | PyObject *resultobj; | |
8174 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8175 | wxKeyEvent *arg2 = 0 ; | |
8176 | bool result; | |
8177 | PyObject * obj0 = 0 ; | |
8178 | PyObject * obj1 = 0 ; | |
8179 | char *kwnames[] = { | |
8180 | (char *) "self",(char *) "event", NULL | |
8181 | }; | |
8182 | ||
8183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
8184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8185 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8186 | if (arg2 == NULL) { | |
8187 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8188 | } | |
8189 | { | |
8190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8191 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8192 | ||
8193 | wxPyEndAllowThreads(__tstate); | |
8194 | if (PyErr_Occurred()) SWIG_fail; | |
8195 | } | |
02a34c4c | 8196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8197 | return resultobj; |
8198 | fail: | |
8199 | return NULL; | |
8200 | } | |
8201 | ||
8202 | ||
8203 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8204 | PyObject *resultobj; | |
8205 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8206 | long arg2 ; | |
8207 | long arg3 ; | |
8208 | wxTextAttr *arg4 = 0 ; | |
8209 | bool result; | |
8210 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8211 | PyObject * obj1 = 0 ; |
8212 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8213 | PyObject * obj3 = 0 ; |
8214 | char *kwnames[] = { | |
8215 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8216 | }; | |
8217 | ||
8edf1c75 | 8218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8220 | { |
8221 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8222 | if (PyErr_Occurred()) SWIG_fail; | |
8223 | } | |
8224 | { | |
8225 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8226 | if (PyErr_Occurred()) SWIG_fail; | |
8227 | } | |
d14a1e28 RD |
8228 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8229 | if (arg4 == NULL) { | |
8230 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8231 | } | |
8232 | { | |
8233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8234 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
8235 | ||
8236 | wxPyEndAllowThreads(__tstate); | |
8237 | if (PyErr_Occurred()) SWIG_fail; | |
8238 | } | |
02a34c4c | 8239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8240 | return resultobj; |
8241 | fail: | |
8242 | return NULL; | |
8243 | } | |
8244 | ||
8245 | ||
8246 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8247 | PyObject *resultobj; | |
8248 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8249 | long arg2 ; | |
8250 | wxTextAttr *arg3 = 0 ; | |
8251 | bool result; | |
8252 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8253 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8254 | PyObject * obj2 = 0 ; |
8255 | char *kwnames[] = { | |
8256 | (char *) "self",(char *) "position",(char *) "style", NULL | |
8257 | }; | |
8258 | ||
8edf1c75 | 8259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8261 | { |
8262 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8263 | if (PyErr_Occurred()) SWIG_fail; | |
8264 | } | |
d14a1e28 RD |
8265 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8266 | if (arg3 == NULL) { | |
8267 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8268 | } | |
8269 | { | |
8270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8271 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
8272 | ||
8273 | wxPyEndAllowThreads(__tstate); | |
8274 | if (PyErr_Occurred()) SWIG_fail; | |
8275 | } | |
02a34c4c | 8276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8277 | return resultobj; |
8278 | fail: | |
8279 | return NULL; | |
8280 | } | |
8281 | ||
8282 | ||
8283 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8284 | PyObject *resultobj; | |
8285 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8286 | wxTextAttr *arg2 = 0 ; | |
8287 | bool result; | |
8288 | PyObject * obj0 = 0 ; | |
8289 | PyObject * obj1 = 0 ; | |
8290 | char *kwnames[] = { | |
8291 | (char *) "self",(char *) "style", NULL | |
8292 | }; | |
8293 | ||
8294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
8295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8296 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8297 | if (arg2 == NULL) { | |
8298 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8299 | } | |
8300 | { | |
8301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8302 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
8303 | ||
8304 | wxPyEndAllowThreads(__tstate); | |
8305 | if (PyErr_Occurred()) SWIG_fail; | |
8306 | } | |
02a34c4c | 8307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8308 | return resultobj; |
8309 | fail: | |
8310 | return NULL; | |
8311 | } | |
8312 | ||
8313 | ||
8314 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8315 | PyObject *resultobj; | |
8316 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8317 | wxTextAttr *result; | |
8318 | PyObject * obj0 = 0 ; | |
8319 | char *kwnames[] = { | |
8320 | (char *) "self", NULL | |
8321 | }; | |
8322 | ||
8323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
8324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8325 | { | |
8326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8327 | { | |
8328 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
8329 | result = (wxTextAttr *) &_result_ref; | |
8330 | } | |
8331 | ||
8332 | wxPyEndAllowThreads(__tstate); | |
8333 | if (PyErr_Occurred()) SWIG_fail; | |
8334 | } | |
8335 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 0); | |
8336 | return resultobj; | |
8337 | fail: | |
8338 | return NULL; | |
8339 | } | |
8340 | ||
8341 | ||
8342 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8343 | PyObject *resultobj; | |
8344 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8345 | long arg2 ; | |
8346 | long arg3 ; | |
8347 | long result; | |
8348 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8349 | PyObject * obj1 = 0 ; |
8350 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8351 | char *kwnames[] = { |
8352 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8353 | }; | |
8354 | ||
8edf1c75 | 8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8357 | { |
8358 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8359 | if (PyErr_Occurred()) SWIG_fail; | |
8360 | } | |
8361 | { | |
8362 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8363 | if (PyErr_Occurred()) SWIG_fail; | |
8364 | } | |
d14a1e28 RD |
8365 | { |
8366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8367 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
8368 | ||
8369 | wxPyEndAllowThreads(__tstate); | |
8370 | if (PyErr_Occurred()) SWIG_fail; | |
8371 | } | |
8edf1c75 | 8372 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8373 | return resultobj; |
8374 | fail: | |
8375 | return NULL; | |
8376 | } | |
8377 | ||
8378 | ||
8379 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8380 | PyObject *resultobj; | |
8381 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8382 | long arg2 ; | |
8383 | long *arg3 = (long *) 0 ; | |
8384 | long *arg4 = (long *) 0 ; | |
8385 | long temp3 ; | |
8386 | long temp4 ; | |
8387 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8388 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8389 | char *kwnames[] = { |
8390 | (char *) "self",(char *) "pos", NULL | |
8391 | }; | |
8392 | ||
8393 | arg3 = &temp3; | |
8394 | arg4 = &temp4; | |
8edf1c75 | 8395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8397 | { |
8398 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8399 | if (PyErr_Occurred()) SWIG_fail; | |
8400 | } | |
d14a1e28 RD |
8401 | { |
8402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8403 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
8404 | ||
8405 | wxPyEndAllowThreads(__tstate); | |
8406 | if (PyErr_Occurred()) SWIG_fail; | |
8407 | } | |
8408 | Py_INCREF(Py_None); resultobj = Py_None; | |
8409 | { | |
8410 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8411 | resultobj = t_output_helper(resultobj,o); | |
8412 | } | |
8413 | { | |
8414 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8415 | resultobj = t_output_helper(resultobj,o); | |
8416 | } | |
8417 | return resultobj; | |
8418 | fail: | |
8419 | return NULL; | |
8420 | } | |
8421 | ||
8422 | ||
8423 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8424 | PyObject *resultobj; | |
8425 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8426 | long arg2 ; | |
8427 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8428 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8429 | char *kwnames[] = { |
8430 | (char *) "self",(char *) "pos", NULL | |
8431 | }; | |
8432 | ||
8edf1c75 | 8433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8435 | { |
8436 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8437 | if (PyErr_Occurred()) SWIG_fail; | |
8438 | } | |
d14a1e28 RD |
8439 | { |
8440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8441 | (arg1)->ShowPosition(arg2); | |
8442 | ||
8443 | wxPyEndAllowThreads(__tstate); | |
8444 | if (PyErr_Occurred()) SWIG_fail; | |
8445 | } | |
8446 | Py_INCREF(Py_None); resultobj = Py_None; | |
8447 | return resultobj; | |
8448 | fail: | |
8449 | return NULL; | |
8450 | } | |
8451 | ||
8452 | ||
02a34c4c RD |
8453 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8454 | PyObject *resultobj; | |
8455 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8456 | wxPoint *arg2 = 0 ; | |
8457 | long *arg3 = (long *) 0 ; | |
8458 | long *arg4 = (long *) 0 ; | |
8459 | int result; | |
8460 | wxPoint temp2 ; | |
8461 | long temp3 ; | |
8462 | long temp4 ; | |
8463 | PyObject * obj0 = 0 ; | |
8464 | PyObject * obj1 = 0 ; | |
8465 | char *kwnames[] = { | |
8466 | (char *) "self",(char *) "pt", NULL | |
8467 | }; | |
8468 | ||
8469 | arg3 = &temp3; | |
8470 | arg4 = &temp4; | |
8471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
8472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8473 | { | |
8474 | arg2 = &temp2; | |
8475 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8476 | } | |
8477 | { | |
8478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8479 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
8480 | ||
8481 | wxPyEndAllowThreads(__tstate); | |
8482 | if (PyErr_Occurred()) SWIG_fail; | |
8483 | } | |
8484 | resultobj = SWIG_PyObj_FromInt((int)result); | |
8485 | { | |
8486 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8487 | resultobj = t_output_helper(resultobj,o); | |
8488 | } | |
8489 | { | |
8490 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8491 | resultobj = t_output_helper(resultobj,o); | |
8492 | } | |
8493 | return resultobj; | |
8494 | fail: | |
8495 | return NULL; | |
8496 | } | |
8497 | ||
8498 | ||
d14a1e28 RD |
8499 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8500 | PyObject *resultobj; | |
8501 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8502 | PyObject * obj0 = 0 ; | |
8503 | char *kwnames[] = { | |
8504 | (char *) "self", NULL | |
8505 | }; | |
8506 | ||
8507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
8508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8509 | { | |
8510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8511 | (arg1)->Copy(); | |
8512 | ||
8513 | wxPyEndAllowThreads(__tstate); | |
8514 | if (PyErr_Occurred()) SWIG_fail; | |
8515 | } | |
8516 | Py_INCREF(Py_None); resultobj = Py_None; | |
8517 | return resultobj; | |
8518 | fail: | |
8519 | return NULL; | |
8520 | } | |
8521 | ||
8522 | ||
8523 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8524 | PyObject *resultobj; | |
8525 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8526 | PyObject * obj0 = 0 ; | |
8527 | char *kwnames[] = { | |
8528 | (char *) "self", NULL | |
8529 | }; | |
8530 | ||
8531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
8532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8533 | { | |
8534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8535 | (arg1)->Cut(); | |
8536 | ||
8537 | wxPyEndAllowThreads(__tstate); | |
8538 | if (PyErr_Occurred()) SWIG_fail; | |
8539 | } | |
8540 | Py_INCREF(Py_None); resultobj = Py_None; | |
8541 | return resultobj; | |
8542 | fail: | |
8543 | return NULL; | |
8544 | } | |
8545 | ||
8546 | ||
8547 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8548 | PyObject *resultobj; | |
8549 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8550 | PyObject * obj0 = 0 ; | |
8551 | char *kwnames[] = { | |
8552 | (char *) "self", NULL | |
8553 | }; | |
8554 | ||
8555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
8556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8557 | { | |
8558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8559 | (arg1)->Paste(); | |
8560 | ||
8561 | wxPyEndAllowThreads(__tstate); | |
8562 | if (PyErr_Occurred()) SWIG_fail; | |
8563 | } | |
8564 | Py_INCREF(Py_None); resultobj = Py_None; | |
8565 | return resultobj; | |
8566 | fail: | |
8567 | return NULL; | |
8568 | } | |
8569 | ||
8570 | ||
8571 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8572 | PyObject *resultobj; | |
8573 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8574 | bool result; | |
8575 | PyObject * obj0 = 0 ; | |
8576 | char *kwnames[] = { | |
8577 | (char *) "self", NULL | |
8578 | }; | |
8579 | ||
8580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
8581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8582 | { | |
8583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8584 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
8585 | ||
8586 | wxPyEndAllowThreads(__tstate); | |
8587 | if (PyErr_Occurred()) SWIG_fail; | |
8588 | } | |
02a34c4c | 8589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8590 | return resultobj; |
8591 | fail: | |
8592 | return NULL; | |
8593 | } | |
8594 | ||
8595 | ||
8596 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8597 | PyObject *resultobj; | |
8598 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8599 | bool result; | |
8600 | PyObject * obj0 = 0 ; | |
8601 | char *kwnames[] = { | |
8602 | (char *) "self", NULL | |
8603 | }; | |
8604 | ||
8605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
8606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8607 | { | |
8608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8609 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
8610 | ||
8611 | wxPyEndAllowThreads(__tstate); | |
8612 | if (PyErr_Occurred()) SWIG_fail; | |
8613 | } | |
02a34c4c | 8614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8615 | return resultobj; |
8616 | fail: | |
8617 | return NULL; | |
8618 | } | |
8619 | ||
8620 | ||
8621 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8622 | PyObject *resultobj; | |
8623 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8624 | bool result; | |
8625 | PyObject * obj0 = 0 ; | |
8626 | char *kwnames[] = { | |
8627 | (char *) "self", NULL | |
8628 | }; | |
8629 | ||
8630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
8631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8632 | { | |
8633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8634 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
8635 | ||
8636 | wxPyEndAllowThreads(__tstate); | |
8637 | if (PyErr_Occurred()) SWIG_fail; | |
8638 | } | |
02a34c4c | 8639 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8640 | return resultobj; |
8641 | fail: | |
8642 | return NULL; | |
8643 | } | |
8644 | ||
8645 | ||
8646 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8647 | PyObject *resultobj; | |
8648 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8649 | PyObject * obj0 = 0 ; | |
8650 | char *kwnames[] = { | |
8651 | (char *) "self", NULL | |
8652 | }; | |
8653 | ||
8654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
8655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8656 | { | |
8657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8658 | (arg1)->Undo(); | |
8659 | ||
8660 | wxPyEndAllowThreads(__tstate); | |
8661 | if (PyErr_Occurred()) SWIG_fail; | |
8662 | } | |
8663 | Py_INCREF(Py_None); resultobj = Py_None; | |
8664 | return resultobj; | |
8665 | fail: | |
8666 | return NULL; | |
8667 | } | |
8668 | ||
8669 | ||
8670 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8671 | PyObject *resultobj; | |
8672 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8673 | PyObject * obj0 = 0 ; | |
8674 | char *kwnames[] = { | |
8675 | (char *) "self", NULL | |
8676 | }; | |
8677 | ||
8678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
8679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8680 | { | |
8681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8682 | (arg1)->Redo(); | |
8683 | ||
8684 | wxPyEndAllowThreads(__tstate); | |
8685 | if (PyErr_Occurred()) SWIG_fail; | |
8686 | } | |
8687 | Py_INCREF(Py_None); resultobj = Py_None; | |
8688 | return resultobj; | |
8689 | fail: | |
8690 | return NULL; | |
8691 | } | |
8692 | ||
8693 | ||
8694 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8695 | PyObject *resultobj; | |
8696 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8697 | bool result; | |
8698 | PyObject * obj0 = 0 ; | |
8699 | char *kwnames[] = { | |
8700 | (char *) "self", NULL | |
8701 | }; | |
8702 | ||
8703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
8704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8705 | { | |
8706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8707 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
8708 | ||
8709 | wxPyEndAllowThreads(__tstate); | |
8710 | if (PyErr_Occurred()) SWIG_fail; | |
8711 | } | |
02a34c4c | 8712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8713 | return resultobj; |
8714 | fail: | |
8715 | return NULL; | |
8716 | } | |
8717 | ||
8718 | ||
8719 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8720 | PyObject *resultobj; | |
8721 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8722 | bool result; | |
8723 | PyObject * obj0 = 0 ; | |
8724 | char *kwnames[] = { | |
8725 | (char *) "self", NULL | |
8726 | }; | |
8727 | ||
8728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
8729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8730 | { | |
8731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8732 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
8733 | ||
8734 | wxPyEndAllowThreads(__tstate); | |
8735 | if (PyErr_Occurred()) SWIG_fail; | |
8736 | } | |
02a34c4c | 8737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8738 | return resultobj; |
8739 | fail: | |
8740 | return NULL; | |
8741 | } | |
8742 | ||
8743 | ||
8744 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8745 | PyObject *resultobj; | |
8746 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8747 | long arg2 ; | |
8748 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8749 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8750 | char *kwnames[] = { |
8751 | (char *) "self",(char *) "pos", NULL | |
8752 | }; | |
8753 | ||
8edf1c75 | 8754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8756 | { |
8757 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8758 | if (PyErr_Occurred()) SWIG_fail; | |
8759 | } | |
d14a1e28 RD |
8760 | { |
8761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8762 | (arg1)->SetInsertionPoint(arg2); | |
8763 | ||
8764 | wxPyEndAllowThreads(__tstate); | |
8765 | if (PyErr_Occurred()) SWIG_fail; | |
8766 | } | |
8767 | Py_INCREF(Py_None); resultobj = Py_None; | |
8768 | return resultobj; | |
8769 | fail: | |
8770 | return NULL; | |
8771 | } | |
8772 | ||
8773 | ||
8774 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8775 | PyObject *resultobj; | |
8776 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8777 | PyObject * obj0 = 0 ; | |
8778 | char *kwnames[] = { | |
8779 | (char *) "self", NULL | |
8780 | }; | |
8781 | ||
8782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
8783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8784 | { | |
8785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8786 | (arg1)->SetInsertionPointEnd(); | |
8787 | ||
8788 | wxPyEndAllowThreads(__tstate); | |
8789 | if (PyErr_Occurred()) SWIG_fail; | |
8790 | } | |
8791 | Py_INCREF(Py_None); resultobj = Py_None; | |
8792 | return resultobj; | |
8793 | fail: | |
8794 | return NULL; | |
8795 | } | |
8796 | ||
8797 | ||
8798 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8799 | PyObject *resultobj; | |
8800 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8801 | long result; | |
8802 | PyObject * obj0 = 0 ; | |
8803 | char *kwnames[] = { | |
8804 | (char *) "self", NULL | |
8805 | }; | |
8806 | ||
8807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
8808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8809 | { | |
8810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8811 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
8812 | ||
8813 | wxPyEndAllowThreads(__tstate); | |
8814 | if (PyErr_Occurred()) SWIG_fail; | |
8815 | } | |
8edf1c75 | 8816 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8817 | return resultobj; |
8818 | fail: | |
8819 | return NULL; | |
8820 | } | |
8821 | ||
8822 | ||
8823 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8824 | PyObject *resultobj; | |
8825 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8826 | long result; | |
8827 | PyObject * obj0 = 0 ; | |
8828 | char *kwnames[] = { | |
8829 | (char *) "self", NULL | |
8830 | }; | |
8831 | ||
8832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
8833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8834 | { | |
8835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8836 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
8837 | ||
8838 | wxPyEndAllowThreads(__tstate); | |
8839 | if (PyErr_Occurred()) SWIG_fail; | |
8840 | } | |
8edf1c75 | 8841 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8842 | return resultobj; |
8843 | fail: | |
8844 | return NULL; | |
8845 | } | |
8846 | ||
8847 | ||
8848 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8849 | PyObject *resultobj; | |
8850 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8851 | long arg2 ; | |
8852 | long arg3 ; | |
8853 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8854 | PyObject * obj1 = 0 ; |
8855 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8856 | char *kwnames[] = { |
8857 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8858 | }; | |
8859 | ||
8edf1c75 | 8860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8862 | { |
8863 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8864 | if (PyErr_Occurred()) SWIG_fail; | |
8865 | } | |
8866 | { | |
8867 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8868 | if (PyErr_Occurred()) SWIG_fail; | |
8869 | } | |
d14a1e28 RD |
8870 | { |
8871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8872 | (arg1)->SetSelection(arg2,arg3); | |
8873 | ||
8874 | wxPyEndAllowThreads(__tstate); | |
8875 | if (PyErr_Occurred()) SWIG_fail; | |
8876 | } | |
8877 | Py_INCREF(Py_None); resultobj = Py_None; | |
8878 | return resultobj; | |
8879 | fail: | |
8880 | return NULL; | |
8881 | } | |
8882 | ||
8883 | ||
8884 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8885 | PyObject *resultobj; | |
8886 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8887 | PyObject * obj0 = 0 ; | |
8888 | char *kwnames[] = { | |
8889 | (char *) "self", NULL | |
8890 | }; | |
8891 | ||
8892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
8893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8894 | { | |
8895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8896 | (arg1)->SelectAll(); | |
8897 | ||
8898 | wxPyEndAllowThreads(__tstate); | |
8899 | if (PyErr_Occurred()) SWIG_fail; | |
8900 | } | |
8901 | Py_INCREF(Py_None); resultobj = Py_None; | |
8902 | return resultobj; | |
8903 | fail: | |
8904 | return NULL; | |
8905 | } | |
8906 | ||
8907 | ||
8908 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8909 | PyObject *resultobj; | |
8910 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8911 | bool arg2 ; | |
8912 | PyObject * obj0 = 0 ; | |
8913 | PyObject * obj1 = 0 ; | |
8914 | char *kwnames[] = { | |
8915 | (char *) "self",(char *) "editable", NULL | |
8916 | }; | |
8917 | ||
8918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
8919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 8920 | { |
8edf1c75 | 8921 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
8922 | if (PyErr_Occurred()) SWIG_fail; |
8923 | } | |
d14a1e28 RD |
8924 | { |
8925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8926 | (arg1)->SetEditable(arg2); | |
8927 | ||
8928 | wxPyEndAllowThreads(__tstate); | |
8929 | if (PyErr_Occurred()) SWIG_fail; | |
8930 | } | |
8931 | Py_INCREF(Py_None); resultobj = Py_None; | |
8932 | return resultobj; | |
8933 | fail: | |
8934 | return NULL; | |
8935 | } | |
8936 | ||
8937 | ||
8938 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8939 | PyObject *resultobj; | |
8940 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8941 | wxString *arg2 = 0 ; | |
423f194a | 8942 | bool temp2 = False ; |
d14a1e28 RD |
8943 | PyObject * obj0 = 0 ; |
8944 | PyObject * obj1 = 0 ; | |
8945 | char *kwnames[] = { | |
8946 | (char *) "self",(char *) "text", NULL | |
8947 | }; | |
8948 | ||
8949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
8950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8951 | { | |
8952 | arg2 = wxString_in_helper(obj1); | |
8953 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8954 | temp2 = True; |
d14a1e28 RD |
8955 | } |
8956 | { | |
8957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8958 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
8959 | ||
8960 | wxPyEndAllowThreads(__tstate); | |
8961 | if (PyErr_Occurred()) SWIG_fail; | |
8962 | } | |
8963 | Py_INCREF(Py_None); resultobj = Py_None; | |
8964 | { | |
8965 | if (temp2) | |
8966 | delete arg2; | |
8967 | } | |
8968 | return resultobj; | |
8969 | fail: | |
8970 | { | |
8971 | if (temp2) | |
8972 | delete arg2; | |
8973 | } | |
8974 | return NULL; | |
8975 | } | |
8976 | ||
8977 | ||
8978 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8979 | PyObject *resultobj; | |
8980 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8981 | long arg2 ; | |
8982 | long arg3 ; | |
8983 | wxString result; | |
8984 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8985 | PyObject * obj1 = 0 ; |
8986 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8987 | char *kwnames[] = { |
8988 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8989 | }; | |
8990 | ||
8edf1c75 | 8991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8993 | { |
8994 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8995 | if (PyErr_Occurred()) SWIG_fail; | |
8996 | } | |
8997 | { | |
8998 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8999 | if (PyErr_Occurred()) SWIG_fail; | |
9000 | } | |
d14a1e28 RD |
9001 | { |
9002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9003 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9004 | ||
9005 | wxPyEndAllowThreads(__tstate); | |
9006 | if (PyErr_Occurred()) SWIG_fail; | |
9007 | } | |
9008 | { | |
9009 | #if wxUSE_UNICODE | |
9010 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9011 | #else | |
9012 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9013 | #endif | |
9014 | } | |
9015 | return resultobj; | |
9016 | fail: | |
9017 | return NULL; | |
9018 | } | |
9019 | ||
9020 | ||
9021 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
9022 | PyObject *obj; | |
9023 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9024 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9025 | Py_INCREF(obj); | |
9026 | return Py_BuildValue((char *)""); | |
9027 | } | |
9028 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9029 | PyObject *resultobj; | |
9030 | int arg1 ; | |
9031 | wxMouseEvent *arg2 = 0 ; | |
9032 | long arg3 ; | |
9033 | long arg4 ; | |
9034 | wxTextUrlEvent *result; | |
8edf1c75 | 9035 | PyObject * obj0 = 0 ; |
d14a1e28 | 9036 | PyObject * obj1 = 0 ; |
8edf1c75 RD |
9037 | PyObject * obj2 = 0 ; |
9038 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9039 | char *kwnames[] = { |
9040 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9041 | }; | |
9042 | ||
8edf1c75 RD |
9043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
9044 | { | |
9045 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9046 | if (PyErr_Occurred()) SWIG_fail; | |
9047 | } | |
d14a1e28 RD |
9048 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9049 | if (arg2 == NULL) { | |
9050 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9051 | } | |
8edf1c75 RD |
9052 | { |
9053 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9054 | if (PyErr_Occurred()) SWIG_fail; | |
9055 | } | |
9056 | { | |
9057 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
9058 | if (PyErr_Occurred()) SWIG_fail; | |
9059 | } | |
d14a1e28 RD |
9060 | { |
9061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9062 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9063 | ||
9064 | wxPyEndAllowThreads(__tstate); | |
9065 | if (PyErr_Occurred()) SWIG_fail; | |
9066 | } | |
9067 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextUrlEvent, 1); | |
9068 | return resultobj; | |
9069 | fail: | |
9070 | return NULL; | |
9071 | } | |
9072 | ||
9073 | ||
9074 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9075 | PyObject *resultobj; | |
9076 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9077 | wxMouseEvent *result; | |
9078 | PyObject * obj0 = 0 ; | |
9079 | char *kwnames[] = { | |
9080 | (char *) "self", NULL | |
9081 | }; | |
9082 | ||
9083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
9084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9085 | { | |
9086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9087 | { | |
9088 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9089 | result = (wxMouseEvent *) &_result_ref; | |
9090 | } | |
9091 | ||
9092 | wxPyEndAllowThreads(__tstate); | |
9093 | if (PyErr_Occurred()) SWIG_fail; | |
9094 | } | |
9095 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseEvent, 0); | |
9096 | return resultobj; | |
9097 | fail: | |
9098 | return NULL; | |
9099 | } | |
9100 | ||
9101 | ||
9102 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9103 | PyObject *resultobj; | |
9104 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9105 | long result; | |
9106 | PyObject * obj0 = 0 ; | |
9107 | char *kwnames[] = { | |
9108 | (char *) "self", NULL | |
9109 | }; | |
9110 | ||
9111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
9112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9113 | { | |
9114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9115 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9116 | ||
9117 | wxPyEndAllowThreads(__tstate); | |
9118 | if (PyErr_Occurred()) SWIG_fail; | |
9119 | } | |
8edf1c75 | 9120 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9121 | return resultobj; |
9122 | fail: | |
9123 | return NULL; | |
9124 | } | |
9125 | ||
9126 | ||
9127 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9128 | PyObject *resultobj; | |
9129 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9130 | long result; | |
9131 | PyObject * obj0 = 0 ; | |
9132 | char *kwnames[] = { | |
9133 | (char *) "self", NULL | |
9134 | }; | |
9135 | ||
9136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
9137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9138 | { | |
9139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9140 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
9141 | ||
9142 | wxPyEndAllowThreads(__tstate); | |
9143 | if (PyErr_Occurred()) SWIG_fail; | |
9144 | } | |
8edf1c75 | 9145 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9146 | return resultobj; |
9147 | fail: | |
9148 | return NULL; | |
9149 | } | |
9150 | ||
9151 | ||
9152 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
9153 | PyObject *obj; | |
9154 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9155 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
9156 | Py_INCREF(obj); | |
9157 | return Py_BuildValue((char *)""); | |
9158 | } | |
8edf1c75 | 9159 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
cbd72d4f RD |
9160 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
9161 | return 1; | |
9162 | } | |
9163 | ||
9164 | ||
9165 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
9166 | PyObject *pyobj; | |
9167 | ||
9168 | { | |
9169 | #if wxUSE_UNICODE | |
9170 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9171 | #else | |
9172 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9173 | #endif | |
9174 | } | |
9175 | return pyobj; | |
9176 | } | |
9177 | ||
9178 | ||
d14a1e28 RD |
9179 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9180 | PyObject *resultobj; | |
9181 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9182 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9183 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9184 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9185 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9186 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9187 | long arg5 = (long) wxSB_HORIZONTAL ; | |
9188 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
9189 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
9190 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
9191 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9192 | wxScrollBar *result; | |
9193 | wxPoint temp3 ; | |
9194 | wxSize temp4 ; | |
423f194a | 9195 | bool temp7 = False ; |
d14a1e28 | 9196 | PyObject * obj0 = 0 ; |
8edf1c75 | 9197 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9198 | PyObject * obj2 = 0 ; |
9199 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9200 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9201 | PyObject * obj5 = 0 ; |
9202 | PyObject * obj6 = 0 ; | |
9203 | char *kwnames[] = { | |
9204 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9205 | }; | |
9206 | ||
8edf1c75 | 9207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 9208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9209 | if (obj1) { |
9210 | { | |
9211 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9212 | if (PyErr_Occurred()) SWIG_fail; | |
9213 | } | |
9214 | } | |
d14a1e28 RD |
9215 | if (obj2) { |
9216 | { | |
9217 | arg3 = &temp3; | |
9218 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9219 | } | |
9220 | } | |
9221 | if (obj3) { | |
9222 | { | |
9223 | arg4 = &temp4; | |
9224 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9225 | } | |
9226 | } | |
8edf1c75 RD |
9227 | if (obj4) { |
9228 | { | |
9229 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9230 | if (PyErr_Occurred()) SWIG_fail; | |
9231 | } | |
9232 | } | |
d14a1e28 RD |
9233 | if (obj5) { |
9234 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9235 | if (arg6 == NULL) { | |
9236 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9237 | } | |
9238 | } | |
9239 | if (obj6) { | |
9240 | { | |
9241 | arg7 = wxString_in_helper(obj6); | |
9242 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 9243 | temp7 = True; |
d14a1e28 RD |
9244 | } |
9245 | } | |
9246 | { | |
9247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9248 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
9249 | ||
9250 | wxPyEndAllowThreads(__tstate); | |
9251 | if (PyErr_Occurred()) SWIG_fail; | |
9252 | } | |
9253 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9254 | { | |
9255 | if (temp7) | |
9256 | delete arg7; | |
9257 | } | |
9258 | return resultobj; | |
9259 | fail: | |
9260 | { | |
9261 | if (temp7) | |
9262 | delete arg7; | |
9263 | } | |
9264 | return NULL; | |
9265 | } | |
9266 | ||
9267 | ||
9268 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9269 | PyObject *resultobj; | |
9270 | wxScrollBar *result; | |
9271 | char *kwnames[] = { | |
9272 | NULL | |
9273 | }; | |
9274 | ||
9275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
9276 | { | |
9277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9278 | result = (wxScrollBar *)new wxScrollBar(); | |
9279 | ||
9280 | wxPyEndAllowThreads(__tstate); | |
9281 | if (PyErr_Occurred()) SWIG_fail; | |
9282 | } | |
9283 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9284 | return resultobj; | |
9285 | fail: | |
9286 | return NULL; | |
9287 | } | |
9288 | ||
9289 | ||
9290 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9291 | PyObject *resultobj; | |
9292 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9293 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9294 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9295 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9296 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9297 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9298 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9299 | long arg6 = (long) wxSB_HORIZONTAL ; | |
9300 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9301 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9302 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
9303 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9304 | bool result; | |
9305 | wxPoint temp4 ; | |
9306 | wxSize temp5 ; | |
423f194a | 9307 | bool temp8 = False ; |
d14a1e28 RD |
9308 | PyObject * obj0 = 0 ; |
9309 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9310 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9311 | PyObject * obj3 = 0 ; |
9312 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9313 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9314 | PyObject * obj6 = 0 ; |
9315 | PyObject * obj7 = 0 ; | |
9316 | char *kwnames[] = { | |
9317 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9318 | }; | |
9319 | ||
8edf1c75 | 9320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
9321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9322 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
9323 | if (obj2) { |
9324 | { | |
9325 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9326 | if (PyErr_Occurred()) SWIG_fail; | |
9327 | } | |
9328 | } | |
d14a1e28 RD |
9329 | if (obj3) { |
9330 | { | |
9331 | arg4 = &temp4; | |
9332 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9333 | } | |
9334 | } | |
9335 | if (obj4) { | |
9336 | { | |
9337 | arg5 = &temp5; | |
9338 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9339 | } | |
9340 | } | |
8edf1c75 RD |
9341 | if (obj5) { |
9342 | { | |
9343 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9344 | if (PyErr_Occurred()) SWIG_fail; | |
9345 | } | |
9346 | } | |
d14a1e28 RD |
9347 | if (obj6) { |
9348 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9349 | if (arg7 == NULL) { | |
9350 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9351 | } | |
9352 | } | |
9353 | if (obj7) { | |
9354 | { | |
9355 | arg8 = wxString_in_helper(obj7); | |
9356 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 9357 | temp8 = True; |
d14a1e28 RD |
9358 | } |
9359 | } | |
9360 | { | |
9361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9362 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9363 | ||
9364 | wxPyEndAllowThreads(__tstate); | |
9365 | if (PyErr_Occurred()) SWIG_fail; | |
9366 | } | |
02a34c4c | 9367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9368 | { |
9369 | if (temp8) | |
9370 | delete arg8; | |
9371 | } | |
9372 | return resultobj; | |
9373 | fail: | |
9374 | { | |
9375 | if (temp8) | |
9376 | delete arg8; | |
9377 | } | |
9378 | return NULL; | |
9379 | } | |
9380 | ||
9381 | ||
9382 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9383 | PyObject *resultobj; | |
9384 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9385 | int result; | |
9386 | PyObject * obj0 = 0 ; | |
9387 | char *kwnames[] = { | |
9388 | (char *) "self", NULL | |
9389 | }; | |
9390 | ||
9391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
9392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9393 | { | |
9394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9395 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
9396 | ||
9397 | wxPyEndAllowThreads(__tstate); | |
9398 | if (PyErr_Occurred()) SWIG_fail; | |
9399 | } | |
8edf1c75 | 9400 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9401 | return resultobj; |
9402 | fail: | |
9403 | return NULL; | |
9404 | } | |
9405 | ||
9406 | ||
9407 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9408 | PyObject *resultobj; | |
9409 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9410 | int result; | |
9411 | PyObject * obj0 = 0 ; | |
9412 | char *kwnames[] = { | |
9413 | (char *) "self", NULL | |
9414 | }; | |
9415 | ||
9416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
9417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9418 | { | |
9419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9420 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
9421 | ||
9422 | wxPyEndAllowThreads(__tstate); | |
9423 | if (PyErr_Occurred()) SWIG_fail; | |
9424 | } | |
8edf1c75 | 9425 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9426 | return resultobj; |
9427 | fail: | |
9428 | return NULL; | |
9429 | } | |
9430 | ||
9431 | ||
9432 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9433 | PyObject *resultobj; | |
9434 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9435 | int result; | |
9436 | PyObject * obj0 = 0 ; | |
9437 | char *kwnames[] = { | |
9438 | (char *) "self", NULL | |
9439 | }; | |
9440 | ||
9441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
9442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9443 | { | |
9444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9445 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
9446 | ||
9447 | wxPyEndAllowThreads(__tstate); | |
9448 | if (PyErr_Occurred()) SWIG_fail; | |
9449 | } | |
8edf1c75 | 9450 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9451 | return resultobj; |
9452 | fail: | |
9453 | return NULL; | |
9454 | } | |
9455 | ||
9456 | ||
9457 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9458 | PyObject *resultobj; | |
9459 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9460 | int result; | |
9461 | PyObject * obj0 = 0 ; | |
9462 | char *kwnames[] = { | |
9463 | (char *) "self", NULL | |
9464 | }; | |
9465 | ||
9466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
9467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9468 | { | |
9469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9470 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
9471 | ||
9472 | wxPyEndAllowThreads(__tstate); | |
9473 | if (PyErr_Occurred()) SWIG_fail; | |
9474 | } | |
8edf1c75 | 9475 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9476 | return resultobj; |
9477 | fail: | |
9478 | return NULL; | |
9479 | } | |
9480 | ||
9481 | ||
9482 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9483 | PyObject *resultobj; | |
9484 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9485 | bool result; | |
9486 | PyObject * obj0 = 0 ; | |
9487 | char *kwnames[] = { | |
9488 | (char *) "self", NULL | |
9489 | }; | |
9490 | ||
9491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
9492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9493 | { | |
9494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9495 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
9496 | ||
9497 | wxPyEndAllowThreads(__tstate); | |
9498 | if (PyErr_Occurred()) SWIG_fail; | |
9499 | } | |
02a34c4c | 9500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9501 | return resultobj; |
9502 | fail: | |
9503 | return NULL; | |
9504 | } | |
9505 | ||
9506 | ||
9507 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9508 | PyObject *resultobj; | |
9509 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9510 | int arg2 ; | |
9511 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9512 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9513 | char *kwnames[] = { |
9514 | (char *) "self",(char *) "viewStart", NULL | |
9515 | }; | |
9516 | ||
8edf1c75 | 9517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9519 | { |
9520 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9521 | if (PyErr_Occurred()) SWIG_fail; | |
9522 | } | |
d14a1e28 RD |
9523 | { |
9524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9525 | (arg1)->SetThumbPosition(arg2); | |
9526 | ||
9527 | wxPyEndAllowThreads(__tstate); | |
9528 | if (PyErr_Occurred()) SWIG_fail; | |
9529 | } | |
9530 | Py_INCREF(Py_None); resultobj = Py_None; | |
9531 | return resultobj; | |
9532 | fail: | |
9533 | return NULL; | |
9534 | } | |
9535 | ||
9536 | ||
9537 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9538 | PyObject *resultobj; | |
9539 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9540 | int arg2 ; | |
9541 | int arg3 ; | |
9542 | int arg4 ; | |
9543 | int arg5 ; | |
423f194a | 9544 | bool arg6 = (bool) True ; |
d14a1e28 | 9545 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
9546 | PyObject * obj1 = 0 ; |
9547 | PyObject * obj2 = 0 ; | |
9548 | PyObject * obj3 = 0 ; | |
9549 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
9550 | PyObject * obj5 = 0 ; |
9551 | char *kwnames[] = { | |
9552 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
9553 | }; | |
9554 | ||
8edf1c75 | 9555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9557 | { |
9558 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9559 | if (PyErr_Occurred()) SWIG_fail; | |
9560 | } | |
9561 | { | |
9562 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9563 | if (PyErr_Occurred()) SWIG_fail; | |
9564 | } | |
9565 | { | |
9566 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9567 | if (PyErr_Occurred()) SWIG_fail; | |
9568 | } | |
9569 | { | |
9570 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
9571 | if (PyErr_Occurred()) SWIG_fail; | |
9572 | } | |
d14a1e28 | 9573 | if (obj5) { |
2dbef272 | 9574 | { |
8edf1c75 | 9575 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
2dbef272 RD |
9576 | if (PyErr_Occurred()) SWIG_fail; |
9577 | } | |
d14a1e28 RD |
9578 | } |
9579 | { | |
9580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9581 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
9582 | ||
9583 | wxPyEndAllowThreads(__tstate); | |
9584 | if (PyErr_Occurred()) SWIG_fail; | |
9585 | } | |
9586 | Py_INCREF(Py_None); resultobj = Py_None; | |
9587 | return resultobj; | |
9588 | fail: | |
9589 | return NULL; | |
9590 | } | |
9591 | ||
9592 | ||
9593 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
9594 | PyObject *obj; | |
9595 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9596 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
9597 | Py_INCREF(obj); | |
9598 | return Py_BuildValue((char *)""); | |
9599 | } | |
8edf1c75 | 9600 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
cbd72d4f RD |
9601 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
9602 | return 1; | |
9603 | } | |
9604 | ||
9605 | ||
9606 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
9607 | PyObject *pyobj; | |
9608 | ||
9609 | { | |
9610 | #if wxUSE_UNICODE | |
9611 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9612 | #else | |
9613 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9614 | #endif | |
9615 | } | |
9616 | return pyobj; | |
9617 | } | |
9618 | ||
9619 | ||
8edf1c75 | 9620 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
cbd72d4f RD |
9621 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
9622 | return 1; | |
9623 | } | |
9624 | ||
9625 | ||
9626 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
9627 | PyObject *pyobj; | |
9628 | ||
9629 | { | |
9630 | #if wxUSE_UNICODE | |
9631 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9632 | #else | |
9633 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9634 | #endif | |
9635 | } | |
9636 | return pyobj; | |
9637 | } | |
9638 | ||
9639 | ||
d14a1e28 RD |
9640 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
9641 | PyObject *resultobj; | |
9642 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9643 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9644 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9645 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9646 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9647 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9648 | long arg5 = (long) wxSP_HORIZONTAL ; | |
9649 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
9650 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9651 | wxSpinButton *result; | |
9652 | wxPoint temp3 ; | |
9653 | wxSize temp4 ; | |
423f194a | 9654 | bool temp6 = False ; |
d14a1e28 | 9655 | PyObject * obj0 = 0 ; |
8edf1c75 | 9656 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9657 | PyObject * obj2 = 0 ; |
9658 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9659 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9660 | PyObject * obj5 = 0 ; |
9661 | char *kwnames[] = { | |
9662 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9663 | }; | |
9664 | ||
8edf1c75 | 9665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9667 | if (obj1) { |
9668 | { | |
9669 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9670 | if (PyErr_Occurred()) SWIG_fail; | |
9671 | } | |
9672 | } | |
d14a1e28 RD |
9673 | if (obj2) { |
9674 | { | |
9675 | arg3 = &temp3; | |
9676 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9677 | } | |
9678 | } | |
9679 | if (obj3) { | |
9680 | { | |
9681 | arg4 = &temp4; | |
9682 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9683 | } | |
9684 | } | |
8edf1c75 RD |
9685 | if (obj4) { |
9686 | { | |
9687 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9688 | if (PyErr_Occurred()) SWIG_fail; | |
9689 | } | |
9690 | } | |
d14a1e28 RD |
9691 | if (obj5) { |
9692 | { | |
9693 | arg6 = wxString_in_helper(obj5); | |
9694 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 9695 | temp6 = True; |
d14a1e28 RD |
9696 | } |
9697 | } | |
9698 | { | |
9699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9700 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9701 | ||
9702 | wxPyEndAllowThreads(__tstate); | |
9703 | if (PyErr_Occurred()) SWIG_fail; | |
9704 | } | |
9705 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9706 | { | |
9707 | if (temp6) | |
9708 | delete arg6; | |
9709 | } | |
9710 | return resultobj; | |
9711 | fail: | |
9712 | { | |
9713 | if (temp6) | |
9714 | delete arg6; | |
9715 | } | |
9716 | return NULL; | |
9717 | } | |
9718 | ||
9719 | ||
9720 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9721 | PyObject *resultobj; | |
9722 | wxSpinButton *result; | |
9723 | char *kwnames[] = { | |
9724 | NULL | |
9725 | }; | |
9726 | ||
9727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
9728 | { | |
9729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9730 | result = (wxSpinButton *)new wxSpinButton(); | |
9731 | ||
9732 | wxPyEndAllowThreads(__tstate); | |
9733 | if (PyErr_Occurred()) SWIG_fail; | |
9734 | } | |
9735 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9736 | return resultobj; | |
9737 | fail: | |
9738 | return NULL; | |
9739 | } | |
9740 | ||
9741 | ||
9742 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9743 | PyObject *resultobj; | |
9744 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9745 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9746 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9747 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9748 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9749 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9750 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9751 | long arg6 = (long) wxSP_HORIZONTAL ; | |
9752 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
9753 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9754 | bool result; | |
9755 | wxPoint temp4 ; | |
9756 | wxSize temp5 ; | |
423f194a | 9757 | bool temp7 = False ; |
d14a1e28 RD |
9758 | PyObject * obj0 = 0 ; |
9759 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9760 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9761 | PyObject * obj3 = 0 ; |
9762 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9763 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9764 | PyObject * obj6 = 0 ; |
9765 | char *kwnames[] = { | |
9766 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9767 | }; | |
9768 | ||
8edf1c75 | 9769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
9770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9771 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
9772 | if (obj2) { |
9773 | { | |
9774 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9775 | if (PyErr_Occurred()) SWIG_fail; | |
9776 | } | |
9777 | } | |
d14a1e28 RD |
9778 | if (obj3) { |
9779 | { | |
9780 | arg4 = &temp4; | |
9781 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9782 | } | |
9783 | } | |
9784 | if (obj4) { | |
9785 | { | |
9786 | arg5 = &temp5; | |
9787 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9788 | } | |
9789 | } | |
8edf1c75 RD |
9790 | if (obj5) { |
9791 | { | |
9792 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9793 | if (PyErr_Occurred()) SWIG_fail; | |
9794 | } | |
9795 | } | |
d14a1e28 RD |
9796 | if (obj6) { |
9797 | { | |
9798 | arg7 = wxString_in_helper(obj6); | |
9799 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 9800 | temp7 = True; |
d14a1e28 RD |
9801 | } |
9802 | } | |
9803 | { | |
9804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9805 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9806 | ||
9807 | wxPyEndAllowThreads(__tstate); | |
9808 | if (PyErr_Occurred()) SWIG_fail; | |
9809 | } | |
02a34c4c | 9810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9811 | { |
9812 | if (temp7) | |
9813 | delete arg7; | |
9814 | } | |
9815 | return resultobj; | |
9816 | fail: | |
9817 | { | |
9818 | if (temp7) | |
9819 | delete arg7; | |
9820 | } | |
9821 | return NULL; | |
9822 | } | |
9823 | ||
9824 | ||
9825 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9826 | PyObject *resultobj; | |
9827 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9828 | int result; | |
9829 | PyObject * obj0 = 0 ; | |
9830 | char *kwnames[] = { | |
9831 | (char *) "self", NULL | |
9832 | }; | |
9833 | ||
9834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
9835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9836 | { | |
9837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9838 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
9839 | ||
9840 | wxPyEndAllowThreads(__tstate); | |
9841 | if (PyErr_Occurred()) SWIG_fail; | |
9842 | } | |
8edf1c75 | 9843 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9844 | return resultobj; |
9845 | fail: | |
9846 | return NULL; | |
9847 | } | |
9848 | ||
9849 | ||
9850 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9851 | PyObject *resultobj; | |
9852 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9853 | int result; | |
9854 | PyObject * obj0 = 0 ; | |
9855 | char *kwnames[] = { | |
9856 | (char *) "self", NULL | |
9857 | }; | |
9858 | ||
9859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
9860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9861 | { | |
9862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9863 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
9864 | ||
9865 | wxPyEndAllowThreads(__tstate); | |
9866 | if (PyErr_Occurred()) SWIG_fail; | |
9867 | } | |
8edf1c75 | 9868 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9869 | return resultobj; |
9870 | fail: | |
9871 | return NULL; | |
9872 | } | |
9873 | ||
9874 | ||
9875 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9876 | PyObject *resultobj; | |
9877 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9878 | int result; | |
9879 | PyObject * obj0 = 0 ; | |
9880 | char *kwnames[] = { | |
9881 | (char *) "self", NULL | |
9882 | }; | |
9883 | ||
9884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
9885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9886 | { | |
9887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9888 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
9889 | ||
9890 | wxPyEndAllowThreads(__tstate); | |
9891 | if (PyErr_Occurred()) SWIG_fail; | |
9892 | } | |
8edf1c75 | 9893 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9894 | return resultobj; |
9895 | fail: | |
9896 | return NULL; | |
9897 | } | |
9898 | ||
9899 | ||
9900 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9901 | PyObject *resultobj; | |
9902 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9903 | int arg2 ; | |
9904 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9905 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9906 | char *kwnames[] = { |
9907 | (char *) "self",(char *) "val", NULL | |
9908 | }; | |
9909 | ||
8edf1c75 | 9910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9912 | { |
9913 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9914 | if (PyErr_Occurred()) SWIG_fail; | |
9915 | } | |
d14a1e28 RD |
9916 | { |
9917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9918 | (arg1)->SetValue(arg2); | |
9919 | ||
9920 | wxPyEndAllowThreads(__tstate); | |
9921 | if (PyErr_Occurred()) SWIG_fail; | |
9922 | } | |
9923 | Py_INCREF(Py_None); resultobj = Py_None; | |
9924 | return resultobj; | |
9925 | fail: | |
9926 | return NULL; | |
9927 | } | |
9928 | ||
9929 | ||
9930 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9931 | PyObject *resultobj; | |
9932 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9933 | int arg2 ; | |
9934 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9935 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9936 | char *kwnames[] = { |
9937 | (char *) "self",(char *) "minVal", NULL | |
9938 | }; | |
9939 | ||
8edf1c75 | 9940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9942 | { |
9943 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9944 | if (PyErr_Occurred()) SWIG_fail; | |
9945 | } | |
d14a1e28 RD |
9946 | { |
9947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9948 | (arg1)->SetMin(arg2); | |
9949 | ||
9950 | wxPyEndAllowThreads(__tstate); | |
9951 | if (PyErr_Occurred()) SWIG_fail; | |
9952 | } | |
9953 | Py_INCREF(Py_None); resultobj = Py_None; | |
9954 | return resultobj; | |
9955 | fail: | |
9956 | return NULL; | |
9957 | } | |
9958 | ||
9959 | ||
9960 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9961 | PyObject *resultobj; | |
9962 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9963 | int arg2 ; | |
9964 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9965 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9966 | char *kwnames[] = { |
9967 | (char *) "self",(char *) "maxVal", NULL | |
9968 | }; | |
9969 | ||
8edf1c75 | 9970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9972 | { |
9973 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9974 | if (PyErr_Occurred()) SWIG_fail; | |
9975 | } | |
d14a1e28 RD |
9976 | { |
9977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9978 | (arg1)->SetMax(arg2); | |
9979 | ||
9980 | wxPyEndAllowThreads(__tstate); | |
9981 | if (PyErr_Occurred()) SWIG_fail; | |
9982 | } | |
9983 | Py_INCREF(Py_None); resultobj = Py_None; | |
9984 | return resultobj; | |
9985 | fail: | |
9986 | return NULL; | |
9987 | } | |
9988 | ||
9989 | ||
9990 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9991 | PyObject *resultobj; | |
9992 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9993 | int arg2 ; | |
9994 | int arg3 ; | |
9995 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9996 | PyObject * obj1 = 0 ; |
9997 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9998 | char *kwnames[] = { |
9999 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10000 | }; | |
10001 | ||
8edf1c75 | 10002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10004 | { |
10005 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10006 | if (PyErr_Occurred()) SWIG_fail; | |
10007 | } | |
10008 | { | |
10009 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10010 | if (PyErr_Occurred()) SWIG_fail; | |
10011 | } | |
d14a1e28 RD |
10012 | { |
10013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10014 | (arg1)->SetRange(arg2,arg3); | |
10015 | ||
10016 | wxPyEndAllowThreads(__tstate); | |
10017 | if (PyErr_Occurred()) SWIG_fail; | |
10018 | } | |
10019 | Py_INCREF(Py_None); resultobj = Py_None; | |
10020 | return resultobj; | |
10021 | fail: | |
10022 | return NULL; | |
10023 | } | |
10024 | ||
10025 | ||
10026 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10027 | PyObject *resultobj; | |
10028 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10029 | bool result; | |
10030 | PyObject * obj0 = 0 ; | |
10031 | char *kwnames[] = { | |
10032 | (char *) "self", NULL | |
10033 | }; | |
10034 | ||
10035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
10036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10037 | { | |
10038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10039 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10040 | ||
10041 | wxPyEndAllowThreads(__tstate); | |
10042 | if (PyErr_Occurred()) SWIG_fail; | |
10043 | } | |
02a34c4c | 10044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10045 | return resultobj; |
10046 | fail: | |
10047 | return NULL; | |
10048 | } | |
10049 | ||
10050 | ||
10051 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
10052 | PyObject *obj; | |
10053 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10054 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
10055 | Py_INCREF(obj); | |
10056 | return Py_BuildValue((char *)""); | |
10057 | } | |
10058 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10059 | PyObject *resultobj; | |
10060 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10061 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10062 | wxString const &arg3_defvalue = wxPyEmptyString ; |
10063 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10064 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10065 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10066 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10067 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10068 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
10069 | int arg7 = (int) 0 ; | |
10070 | int arg8 = (int) 100 ; | |
10071 | int arg9 = (int) 0 ; | |
10072 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
10073 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10074 | wxSpinCtrl *result; | |
423f194a | 10075 | bool temp3 = False ; |
d14a1e28 RD |
10076 | wxPoint temp4 ; |
10077 | wxSize temp5 ; | |
423f194a | 10078 | bool temp10 = False ; |
d14a1e28 | 10079 | PyObject * obj0 = 0 ; |
8edf1c75 | 10080 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10081 | PyObject * obj2 = 0 ; |
10082 | PyObject * obj3 = 0 ; | |
10083 | PyObject * obj4 = 0 ; | |
8edf1c75 RD |
10084 | PyObject * obj5 = 0 ; |
10085 | PyObject * obj6 = 0 ; | |
10086 | PyObject * obj7 = 0 ; | |
10087 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10088 | PyObject * obj9 = 0 ; |
10089 | char *kwnames[] = { | |
10090 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10091 | }; | |
10092 | ||
8edf1c75 | 10093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 10094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10095 | if (obj1) { |
10096 | { | |
10097 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10098 | if (PyErr_Occurred()) SWIG_fail; | |
10099 | } | |
10100 | } | |
10101 | if (obj2) { | |
d14a1e28 RD |
10102 | { |
10103 | arg3 = wxString_in_helper(obj2); | |
10104 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10105 | temp3 = True; |
d14a1e28 RD |
10106 | } |
10107 | } | |
10108 | if (obj3) { | |
10109 | { | |
10110 | arg4 = &temp4; | |
10111 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10112 | } | |
10113 | } | |
10114 | if (obj4) { | |
10115 | { | |
10116 | arg5 = &temp5; | |
10117 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10118 | } | |
10119 | } | |
8edf1c75 RD |
10120 | if (obj5) { |
10121 | { | |
10122 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
10123 | if (PyErr_Occurred()) SWIG_fail; | |
10124 | } | |
10125 | } | |
10126 | if (obj6) { | |
10127 | { | |
10128 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
10129 | if (PyErr_Occurred()) SWIG_fail; | |
10130 | } | |
10131 | } | |
10132 | if (obj7) { | |
10133 | { | |
10134 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
10135 | if (PyErr_Occurred()) SWIG_fail; | |
10136 | } | |
10137 | } | |
10138 | if (obj8) { | |
10139 | { | |
10140 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
10141 | if (PyErr_Occurred()) SWIG_fail; | |
10142 | } | |
10143 | } | |
d14a1e28 RD |
10144 | if (obj9) { |
10145 | { | |
10146 | arg10 = wxString_in_helper(obj9); | |
10147 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10148 | temp10 = True; |
d14a1e28 RD |
10149 | } |
10150 | } | |
10151 | { | |
10152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10153 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
10154 | ||
10155 | wxPyEndAllowThreads(__tstate); | |
10156 | if (PyErr_Occurred()) SWIG_fail; | |
10157 | } | |
10158 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
10159 | { | |
10160 | if (temp3) | |
10161 | delete arg3; | |
10162 | } | |
10163 | { | |
10164 | if (temp10) | |
10165 | delete arg10; | |
10166 | } | |
10167 | return resultobj; | |
10168 | fail: | |
10169 | { | |
10170 | if (temp3) | |
10171 | delete arg3; | |
10172 | } | |
10173 | { | |
10174 | if (temp10) | |
10175 | delete arg10; | |
10176 | } | |
10177 | return NULL; | |
10178 | } | |
10179 | ||
10180 | ||
10181 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10182 | PyObject *resultobj; | |
10183 | wxSpinCtrl *result; | |
10184 | char *kwnames[] = { | |
10185 | NULL | |
10186 | }; | |
10187 | ||
10188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
10189 | { | |
10190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10191 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
10192 | ||
10193 | wxPyEndAllowThreads(__tstate); | |
10194 | if (PyErr_Occurred()) SWIG_fail; | |
10195 | } | |
10196 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
10197 | return resultobj; | |
10198 | fail: | |
10199 | return NULL; | |
10200 | } | |
10201 | ||
10202 | ||
10203 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10204 | PyObject *resultobj; | |
10205 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10206 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10207 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10208 | wxString const &arg4_defvalue = wxPyEmptyString ; |
10209 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
10210 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10211 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10212 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10213 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10214 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
10215 | int arg8 = (int) 0 ; | |
10216 | int arg9 = (int) 100 ; | |
10217 | int arg10 = (int) 0 ; | |
10218 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
10219 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10220 | bool result; | |
423f194a | 10221 | bool temp4 = False ; |
d14a1e28 RD |
10222 | wxPoint temp5 ; |
10223 | wxSize temp6 ; | |
423f194a | 10224 | bool temp11 = False ; |
d14a1e28 RD |
10225 | PyObject * obj0 = 0 ; |
10226 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10227 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10228 | PyObject * obj3 = 0 ; |
10229 | PyObject * obj4 = 0 ; | |
10230 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
10231 | PyObject * obj6 = 0 ; |
10232 | PyObject * obj7 = 0 ; | |
10233 | PyObject * obj8 = 0 ; | |
10234 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
10235 | PyObject * obj10 = 0 ; |
10236 | char *kwnames[] = { | |
10237 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10238 | }; | |
10239 | ||
8edf1c75 | 10240 | 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 |
10241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10242 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
10243 | if (obj2) { |
10244 | { | |
10245 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10246 | if (PyErr_Occurred()) SWIG_fail; | |
10247 | } | |
10248 | } | |
d14a1e28 RD |
10249 | if (obj3) { |
10250 | { | |
10251 | arg4 = wxString_in_helper(obj3); | |
10252 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10253 | temp4 = True; |
d14a1e28 RD |
10254 | } |
10255 | } | |
10256 | if (obj4) { | |
10257 | { | |
10258 | arg5 = &temp5; | |
10259 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10260 | } | |
10261 | } | |
10262 | if (obj5) { | |
10263 | { | |
10264 | arg6 = &temp6; | |
10265 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10266 | } | |
10267 | } | |
8edf1c75 RD |
10268 | if (obj6) { |
10269 | { | |
10270 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
10271 | if (PyErr_Occurred()) SWIG_fail; | |
10272 | } | |
10273 | } | |
10274 | if (obj7) { | |
10275 | { | |
10276 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
10277 | if (PyErr_Occurred()) SWIG_fail; | |
10278 | } | |
10279 | } | |
10280 | if (obj8) { | |
10281 | { | |
10282 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
10283 | if (PyErr_Occurred()) SWIG_fail; | |
10284 | } | |
10285 | } | |
10286 | if (obj9) { | |
10287 | { | |
10288 | arg10 = (int) SWIG_PyObj_AsInt(obj9); | |
10289 | if (PyErr_Occurred()) SWIG_fail; | |
10290 | } | |
10291 | } | |
d14a1e28 RD |
10292 | if (obj10) { |
10293 | { | |
10294 | arg11 = wxString_in_helper(obj10); | |
10295 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 10296 | temp11 = True; |
d14a1e28 RD |
10297 | } |
10298 | } | |
10299 | { | |
10300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10301 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
10302 | ||
10303 | wxPyEndAllowThreads(__tstate); | |
10304 | if (PyErr_Occurred()) SWIG_fail; | |
10305 | } | |
02a34c4c | 10306 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10307 | { |
10308 | if (temp4) | |
10309 | delete arg4; | |
10310 | } | |
10311 | { | |
10312 | if (temp11) | |
10313 | delete arg11; | |
10314 | } | |
10315 | return resultobj; | |
10316 | fail: | |
10317 | { | |
10318 | if (temp4) | |
10319 | delete arg4; | |
10320 | } | |
10321 | { | |
10322 | if (temp11) | |
10323 | delete arg11; | |
10324 | } | |
10325 | return NULL; | |
10326 | } | |
10327 | ||
10328 | ||
10329 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10330 | PyObject *resultobj; | |
10331 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10332 | int result; | |
10333 | PyObject * obj0 = 0 ; | |
10334 | char *kwnames[] = { | |
10335 | (char *) "self", NULL | |
10336 | }; | |
10337 | ||
10338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
10339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10340 | { | |
10341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10342 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
10343 | ||
10344 | wxPyEndAllowThreads(__tstate); | |
10345 | if (PyErr_Occurred()) SWIG_fail; | |
10346 | } | |
8edf1c75 | 10347 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10348 | return resultobj; |
10349 | fail: | |
10350 | return NULL; | |
10351 | } | |
10352 | ||
10353 | ||
10354 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10355 | PyObject *resultobj; | |
10356 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10357 | int arg2 ; | |
10358 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10359 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10360 | char *kwnames[] = { |
10361 | (char *) "self",(char *) "value", NULL | |
10362 | }; | |
10363 | ||
8edf1c75 | 10364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10366 | { |
10367 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10368 | if (PyErr_Occurred()) SWIG_fail; | |
10369 | } | |
d14a1e28 RD |
10370 | { |
10371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10372 | (arg1)->SetValue(arg2); | |
10373 | ||
10374 | wxPyEndAllowThreads(__tstate); | |
10375 | if (PyErr_Occurred()) SWIG_fail; | |
10376 | } | |
10377 | Py_INCREF(Py_None); resultobj = Py_None; | |
10378 | return resultobj; | |
10379 | fail: | |
10380 | return NULL; | |
10381 | } | |
10382 | ||
10383 | ||
10384 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10385 | PyObject *resultobj; | |
10386 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10387 | wxString *arg2 = 0 ; | |
423f194a | 10388 | bool temp2 = False ; |
d14a1e28 RD |
10389 | PyObject * obj0 = 0 ; |
10390 | PyObject * obj1 = 0 ; | |
10391 | char *kwnames[] = { | |
10392 | (char *) "self",(char *) "text", NULL | |
10393 | }; | |
10394 | ||
10395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
10396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10397 | { | |
10398 | arg2 = wxString_in_helper(obj1); | |
10399 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10400 | temp2 = True; |
d14a1e28 RD |
10401 | } |
10402 | { | |
10403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10404 | (arg1)->SetValue((wxString const &)*arg2); | |
10405 | ||
10406 | wxPyEndAllowThreads(__tstate); | |
10407 | if (PyErr_Occurred()) SWIG_fail; | |
10408 | } | |
10409 | Py_INCREF(Py_None); resultobj = Py_None; | |
10410 | { | |
10411 | if (temp2) | |
10412 | delete arg2; | |
10413 | } | |
10414 | return resultobj; | |
10415 | fail: | |
10416 | { | |
10417 | if (temp2) | |
10418 | delete arg2; | |
10419 | } | |
10420 | return NULL; | |
10421 | } | |
10422 | ||
10423 | ||
10424 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10425 | PyObject *resultobj; | |
10426 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10427 | int arg2 ; | |
10428 | int arg3 ; | |
10429 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10430 | PyObject * obj1 = 0 ; |
10431 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10432 | char *kwnames[] = { |
10433 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10434 | }; | |
10435 | ||
8edf1c75 | 10436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10438 | { |
10439 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10440 | if (PyErr_Occurred()) SWIG_fail; | |
10441 | } | |
10442 | { | |
10443 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10444 | if (PyErr_Occurred()) SWIG_fail; | |
10445 | } | |
d14a1e28 RD |
10446 | { |
10447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10448 | (arg1)->SetRange(arg2,arg3); | |
10449 | ||
10450 | wxPyEndAllowThreads(__tstate); | |
10451 | if (PyErr_Occurred()) SWIG_fail; | |
10452 | } | |
10453 | Py_INCREF(Py_None); resultobj = Py_None; | |
10454 | return resultobj; | |
10455 | fail: | |
10456 | return NULL; | |
10457 | } | |
10458 | ||
10459 | ||
10460 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10461 | PyObject *resultobj; | |
10462 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10463 | int result; | |
10464 | PyObject * obj0 = 0 ; | |
10465 | char *kwnames[] = { | |
10466 | (char *) "self", NULL | |
10467 | }; | |
10468 | ||
10469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
10470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10471 | { | |
10472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10473 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
10474 | ||
10475 | wxPyEndAllowThreads(__tstate); | |
10476 | if (PyErr_Occurred()) SWIG_fail; | |
10477 | } | |
8edf1c75 | 10478 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10479 | return resultobj; |
10480 | fail: | |
10481 | return NULL; | |
10482 | } | |
10483 | ||
10484 | ||
10485 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10486 | PyObject *resultobj; | |
10487 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10488 | int result; | |
10489 | PyObject * obj0 = 0 ; | |
10490 | char *kwnames[] = { | |
10491 | (char *) "self", NULL | |
10492 | }; | |
10493 | ||
10494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
10495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10496 | { | |
10497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10498 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
10499 | ||
10500 | wxPyEndAllowThreads(__tstate); | |
10501 | if (PyErr_Occurred()) SWIG_fail; | |
10502 | } | |
8edf1c75 | 10503 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10504 | return resultobj; |
10505 | fail: | |
10506 | return NULL; | |
10507 | } | |
10508 | ||
10509 | ||
10510 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10511 | PyObject *resultobj; | |
10512 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10513 | long arg2 ; | |
10514 | long arg3 ; | |
10515 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10516 | PyObject * obj1 = 0 ; |
10517 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10518 | char *kwnames[] = { |
10519 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10520 | }; | |
10521 | ||
8edf1c75 | 10522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10524 | { |
10525 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
10526 | if (PyErr_Occurred()) SWIG_fail; | |
10527 | } | |
10528 | { | |
10529 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
10530 | if (PyErr_Occurred()) SWIG_fail; | |
10531 | } | |
d14a1e28 RD |
10532 | { |
10533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10534 | (arg1)->SetSelection(arg2,arg3); | |
10535 | ||
10536 | wxPyEndAllowThreads(__tstate); | |
10537 | if (PyErr_Occurred()) SWIG_fail; | |
10538 | } | |
10539 | Py_INCREF(Py_None); resultobj = Py_None; | |
10540 | return resultobj; | |
10541 | fail: | |
10542 | return NULL; | |
10543 | } | |
10544 | ||
10545 | ||
10546 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
10547 | PyObject *obj; | |
10548 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10549 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
10550 | Py_INCREF(obj); | |
10551 | return Py_BuildValue((char *)""); | |
10552 | } | |
d896a793 RD |
10553 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
10554 | PyObject *resultobj; | |
10555 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10556 | int arg2 = (int) 0 ; | |
10557 | wxSpinEvent *result; | |
8edf1c75 RD |
10558 | PyObject * obj0 = 0 ; |
10559 | PyObject * obj1 = 0 ; | |
d896a793 RD |
10560 | char *kwnames[] = { |
10561 | (char *) "commandType",(char *) "winid", NULL | |
10562 | }; | |
10563 | ||
8edf1c75 RD |
10564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
10565 | if (obj0) { | |
10566 | { | |
10567 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
10568 | if (PyErr_Occurred()) SWIG_fail; | |
10569 | } | |
10570 | } | |
10571 | if (obj1) { | |
10572 | { | |
10573 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10574 | if (PyErr_Occurred()) SWIG_fail; | |
10575 | } | |
10576 | } | |
d896a793 RD |
10577 | { |
10578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10579 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
10580 | ||
10581 | wxPyEndAllowThreads(__tstate); | |
10582 | if (PyErr_Occurred()) SWIG_fail; | |
10583 | } | |
10584 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinEvent, 1); | |
10585 | return resultobj; | |
10586 | fail: | |
10587 | return NULL; | |
10588 | } | |
10589 | ||
10590 | ||
10591 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10592 | PyObject *resultobj; | |
10593 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10594 | int result; | |
10595 | PyObject * obj0 = 0 ; | |
10596 | char *kwnames[] = { | |
10597 | (char *) "self", NULL | |
10598 | }; | |
10599 | ||
10600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10602 | { | |
10603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10604 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
10605 | ||
10606 | wxPyEndAllowThreads(__tstate); | |
10607 | if (PyErr_Occurred()) SWIG_fail; | |
10608 | } | |
8edf1c75 | 10609 | resultobj = SWIG_PyObj_FromInt((int)result); |
d896a793 RD |
10610 | return resultobj; |
10611 | fail: | |
10612 | return NULL; | |
10613 | } | |
10614 | ||
10615 | ||
10616 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10617 | PyObject *resultobj; | |
10618 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10619 | int arg2 ; | |
10620 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10621 | PyObject * obj1 = 0 ; |
d896a793 RD |
10622 | char *kwnames[] = { |
10623 | (char *) "self",(char *) "pos", NULL | |
10624 | }; | |
10625 | ||
8edf1c75 | 10626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
d896a793 | 10627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10628 | { |
10629 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10630 | if (PyErr_Occurred()) SWIG_fail; | |
10631 | } | |
d896a793 RD |
10632 | { |
10633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10634 | (arg1)->SetPosition(arg2); | |
10635 | ||
10636 | wxPyEndAllowThreads(__tstate); | |
10637 | if (PyErr_Occurred()) SWIG_fail; | |
10638 | } | |
10639 | Py_INCREF(Py_None); resultobj = Py_None; | |
10640 | return resultobj; | |
10641 | fail: | |
10642 | return NULL; | |
10643 | } | |
10644 | ||
10645 | ||
10646 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
10647 | PyObject *obj; | |
10648 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10649 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
10650 | Py_INCREF(obj); | |
10651 | return Py_BuildValue((char *)""); | |
10652 | } | |
8edf1c75 | 10653 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
cbd72d4f RD |
10654 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
10655 | return 1; | |
10656 | } | |
10657 | ||
10658 | ||
10659 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
10660 | PyObject *pyobj; | |
10661 | ||
10662 | { | |
10663 | #if wxUSE_UNICODE | |
10664 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10665 | #else | |
10666 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10667 | #endif | |
10668 | } | |
10669 | return pyobj; | |
10670 | } | |
10671 | ||
10672 | ||
8edf1c75 | 10673 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
cbd72d4f RD |
10674 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
10675 | return 1; | |
10676 | } | |
10677 | ||
10678 | ||
10679 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
10680 | PyObject *pyobj; | |
10681 | ||
10682 | { | |
10683 | #if wxUSE_UNICODE | |
10684 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10685 | #else | |
10686 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10687 | #endif | |
10688 | } | |
10689 | return pyobj; | |
10690 | } | |
10691 | ||
10692 | ||
d14a1e28 RD |
10693 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
10694 | PyObject *resultobj; | |
10695 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10696 | int arg2 ; |
d14a1e28 RD |
10697 | wxString *arg3 = 0 ; |
10698 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10699 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10700 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10701 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
02a34c4c RD |
10702 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
10703 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
10704 | int arg7 = (int) 0 ; | |
10705 | long arg8 = (long) wxRA_HORIZONTAL ; | |
10706 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
10707 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
10708 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
10709 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 10710 | wxRadioBox *result; |
423f194a | 10711 | bool temp3 = False ; |
d14a1e28 RD |
10712 | wxPoint temp4 ; |
10713 | wxSize temp5 ; | |
0ffb2aa6 | 10714 | bool temp6 = False ; |
423f194a | 10715 | bool temp10 = False ; |
d14a1e28 | 10716 | PyObject * obj0 = 0 ; |
8edf1c75 | 10717 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10718 | PyObject * obj2 = 0 ; |
10719 | PyObject * obj3 = 0 ; | |
10720 | PyObject * obj4 = 0 ; | |
10721 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
10722 | PyObject * obj6 = 0 ; |
10723 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
10724 | PyObject * obj8 = 0 ; |
10725 | PyObject * obj9 = 0 ; | |
10726 | char *kwnames[] = { | |
8edf1c75 | 10727 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
10728 | }; |
10729 | ||
8edf1c75 | 10730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 10731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10732 | { |
10733 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10734 | if (PyErr_Occurred()) SWIG_fail; | |
10735 | } | |
d14a1e28 RD |
10736 | { |
10737 | arg3 = wxString_in_helper(obj2); | |
10738 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10739 | temp3 = True; |
d14a1e28 RD |
10740 | } |
10741 | if (obj3) { | |
10742 | { | |
10743 | arg4 = &temp4; | |
10744 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10745 | } | |
10746 | } | |
10747 | if (obj4) { | |
10748 | { | |
10749 | arg5 = &temp5; | |
10750 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10751 | } | |
10752 | } | |
10753 | if (obj5) { | |
10754 | { | |
02a34c4c RD |
10755 | if (! PySequence_Check(obj5)) { |
10756 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10757 | SWIG_fail; | |
10758 | } | |
10759 | arg6 = new wxArrayString; | |
0ffb2aa6 | 10760 | temp6 = True; |
02a34c4c RD |
10761 | int i, len=PySequence_Length(obj5); |
10762 | for (i=0; i<len; i++) { | |
10763 | PyObject* item = PySequence_GetItem(obj5, i); | |
10764 | #if wxUSE_UNICODE | |
10765 | PyObject* str = PyObject_Unicode(item); | |
10766 | #else | |
10767 | PyObject* str = PyObject_Str(item); | |
10768 | #endif | |
10769 | arg6->Add(Py2wxString(str)); | |
10770 | Py_DECREF(item); | |
10771 | Py_DECREF(str); | |
10772 | } | |
d14a1e28 RD |
10773 | } |
10774 | } | |
8edf1c75 RD |
10775 | if (obj6) { |
10776 | { | |
02a34c4c | 10777 | arg7 = (int) SWIG_PyObj_AsInt(obj6); |
8edf1c75 RD |
10778 | if (PyErr_Occurred()) SWIG_fail; |
10779 | } | |
10780 | } | |
10781 | if (obj7) { | |
10782 | { | |
02a34c4c | 10783 | arg8 = (long) SWIG_PyObj_AsLong(obj7); |
8edf1c75 RD |
10784 | if (PyErr_Occurred()) SWIG_fail; |
10785 | } | |
10786 | } | |
d14a1e28 | 10787 | if (obj8) { |
02a34c4c RD |
10788 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10789 | if (arg9 == NULL) { | |
d14a1e28 RD |
10790 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
10791 | } | |
10792 | } | |
10793 | if (obj9) { | |
10794 | { | |
02a34c4c RD |
10795 | arg10 = wxString_in_helper(obj9); |
10796 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10797 | temp10 = True; |
d14a1e28 RD |
10798 | } |
10799 | } | |
10800 | { | |
10801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 10802 | 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 |
10803 | |
10804 | wxPyEndAllowThreads(__tstate); | |
10805 | if (PyErr_Occurred()) SWIG_fail; | |
10806 | } | |
10807 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
10808 | { | |
10809 | if (temp3) | |
10810 | delete arg3; | |
10811 | } | |
10812 | { | |
0ffb2aa6 | 10813 | if (temp6) delete arg6; |
d14a1e28 RD |
10814 | } |
10815 | { | |
10816 | if (temp10) | |
02a34c4c | 10817 | delete arg10; |
d14a1e28 RD |
10818 | } |
10819 | return resultobj; | |
10820 | fail: | |
10821 | { | |
10822 | if (temp3) | |
10823 | delete arg3; | |
10824 | } | |
10825 | { | |
0ffb2aa6 | 10826 | if (temp6) delete arg6; |
d14a1e28 RD |
10827 | } |
10828 | { | |
10829 | if (temp10) | |
02a34c4c | 10830 | delete arg10; |
d14a1e28 RD |
10831 | } |
10832 | return NULL; | |
10833 | } | |
10834 | ||
10835 | ||
10836 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10837 | PyObject *resultobj; | |
10838 | wxRadioBox *result; | |
10839 | char *kwnames[] = { | |
10840 | NULL | |
10841 | }; | |
10842 | ||
10843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
10844 | { | |
10845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10846 | result = (wxRadioBox *)new wxRadioBox(); | |
10847 | ||
10848 | wxPyEndAllowThreads(__tstate); | |
10849 | if (PyErr_Occurred()) SWIG_fail; | |
10850 | } | |
10851 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
10852 | return resultobj; | |
10853 | fail: | |
10854 | return NULL; | |
10855 | } | |
10856 | ||
10857 | ||
10858 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10859 | PyObject *resultobj; | |
10860 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10861 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10862 | int arg3 ; |
d14a1e28 RD |
10863 | wxString *arg4 = 0 ; |
10864 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10865 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10866 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10867 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
02a34c4c RD |
10868 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
10869 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
10870 | int arg8 = (int) 0 ; | |
10871 | long arg9 = (long) wxRA_HORIZONTAL ; | |
10872 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
10873 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
10874 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
10875 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 10876 | bool result; |
423f194a | 10877 | bool temp4 = False ; |
d14a1e28 RD |
10878 | wxPoint temp5 ; |
10879 | wxSize temp6 ; | |
0ffb2aa6 | 10880 | bool temp7 = False ; |
423f194a | 10881 | bool temp11 = False ; |
d14a1e28 RD |
10882 | PyObject * obj0 = 0 ; |
10883 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10884 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10885 | PyObject * obj3 = 0 ; |
10886 | PyObject * obj4 = 0 ; | |
10887 | PyObject * obj5 = 0 ; | |
10888 | PyObject * obj6 = 0 ; | |
8edf1c75 RD |
10889 | PyObject * obj7 = 0 ; |
10890 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10891 | PyObject * obj9 = 0 ; |
10892 | PyObject * obj10 = 0 ; | |
10893 | char *kwnames[] = { | |
8edf1c75 | 10894 | (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 |
10895 | }; |
10896 | ||
8edf1c75 | 10897 | 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 |
10898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10899 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
10900 | { |
10901 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10902 | if (PyErr_Occurred()) SWIG_fail; | |
10903 | } | |
d14a1e28 RD |
10904 | { |
10905 | arg4 = wxString_in_helper(obj3); | |
10906 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10907 | temp4 = True; |
d14a1e28 RD |
10908 | } |
10909 | if (obj4) { | |
10910 | { | |
10911 | arg5 = &temp5; | |
10912 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10913 | } | |
10914 | } | |
10915 | if (obj5) { | |
10916 | { | |
10917 | arg6 = &temp6; | |
10918 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10919 | } | |
10920 | } | |
10921 | if (obj6) { | |
10922 | { | |
02a34c4c RD |
10923 | if (! PySequence_Check(obj6)) { |
10924 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10925 | SWIG_fail; | |
10926 | } | |
10927 | arg7 = new wxArrayString; | |
0ffb2aa6 | 10928 | temp7 = True; |
02a34c4c RD |
10929 | int i, len=PySequence_Length(obj6); |
10930 | for (i=0; i<len; i++) { | |
10931 | PyObject* item = PySequence_GetItem(obj6, i); | |
10932 | #if wxUSE_UNICODE | |
10933 | PyObject* str = PyObject_Unicode(item); | |
10934 | #else | |
10935 | PyObject* str = PyObject_Str(item); | |
10936 | #endif | |
10937 | arg7->Add(Py2wxString(str)); | |
10938 | Py_DECREF(item); | |
10939 | Py_DECREF(str); | |
10940 | } | |
d14a1e28 RD |
10941 | } |
10942 | } | |
8edf1c75 RD |
10943 | if (obj7) { |
10944 | { | |
02a34c4c | 10945 | arg8 = (int) SWIG_PyObj_AsInt(obj7); |
8edf1c75 RD |
10946 | if (PyErr_Occurred()) SWIG_fail; |
10947 | } | |
10948 | } | |
10949 | if (obj8) { | |
10950 | { | |
02a34c4c | 10951 | arg9 = (long) SWIG_PyObj_AsLong(obj8); |
8edf1c75 RD |
10952 | if (PyErr_Occurred()) SWIG_fail; |
10953 | } | |
10954 | } | |
d14a1e28 | 10955 | if (obj9) { |
02a34c4c RD |
10956 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10957 | if (arg10 == NULL) { | |
d14a1e28 RD |
10958 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
10959 | } | |
10960 | } | |
10961 | if (obj10) { | |
10962 | { | |
02a34c4c RD |
10963 | arg11 = wxString_in_helper(obj10); |
10964 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 10965 | temp11 = True; |
d14a1e28 RD |
10966 | } |
10967 | } | |
10968 | { | |
10969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 10970 | 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 |
10971 | |
10972 | wxPyEndAllowThreads(__tstate); | |
10973 | if (PyErr_Occurred()) SWIG_fail; | |
10974 | } | |
02a34c4c | 10975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10976 | { |
10977 | if (temp4) | |
10978 | delete arg4; | |
10979 | } | |
10980 | { | |
0ffb2aa6 | 10981 | if (temp7) delete arg7; |
d14a1e28 RD |
10982 | } |
10983 | { | |
10984 | if (temp11) | |
02a34c4c | 10985 | delete arg11; |
d14a1e28 RD |
10986 | } |
10987 | return resultobj; | |
10988 | fail: | |
10989 | { | |
10990 | if (temp4) | |
10991 | delete arg4; | |
10992 | } | |
10993 | { | |
0ffb2aa6 | 10994 | if (temp7) delete arg7; |
d14a1e28 RD |
10995 | } |
10996 | { | |
10997 | if (temp11) | |
02a34c4c | 10998 | delete arg11; |
d14a1e28 RD |
10999 | } |
11000 | return NULL; | |
11001 | } | |
11002 | ||
11003 | ||
11004 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11005 | PyObject *resultobj; | |
11006 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11007 | int arg2 ; | |
11008 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11009 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11010 | char *kwnames[] = { |
11011 | (char *) "self",(char *) "n", NULL | |
11012 | }; | |
11013 | ||
8edf1c75 | 11014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11016 | { |
11017 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11018 | if (PyErr_Occurred()) SWIG_fail; | |
11019 | } | |
d14a1e28 RD |
11020 | { |
11021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11022 | (arg1)->SetSelection(arg2); | |
11023 | ||
11024 | wxPyEndAllowThreads(__tstate); | |
11025 | if (PyErr_Occurred()) SWIG_fail; | |
11026 | } | |
11027 | Py_INCREF(Py_None); resultobj = Py_None; | |
11028 | return resultobj; | |
11029 | fail: | |
11030 | return NULL; | |
11031 | } | |
11032 | ||
11033 | ||
11034 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11035 | PyObject *resultobj; | |
11036 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11037 | int result; | |
11038 | PyObject * obj0 = 0 ; | |
11039 | char *kwnames[] = { | |
11040 | (char *) "self", NULL | |
11041 | }; | |
11042 | ||
11043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
11044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11045 | { | |
11046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11047 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
11048 | ||
11049 | wxPyEndAllowThreads(__tstate); | |
11050 | if (PyErr_Occurred()) SWIG_fail; | |
11051 | } | |
8edf1c75 | 11052 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11053 | return resultobj; |
11054 | fail: | |
11055 | return NULL; | |
11056 | } | |
11057 | ||
11058 | ||
11059 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11060 | PyObject *resultobj; | |
11061 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11062 | wxString result; | |
11063 | PyObject * obj0 = 0 ; | |
11064 | char *kwnames[] = { | |
11065 | (char *) "self", NULL | |
11066 | }; | |
11067 | ||
11068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
11069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11070 | { | |
11071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11072 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
11073 | ||
11074 | wxPyEndAllowThreads(__tstate); | |
11075 | if (PyErr_Occurred()) SWIG_fail; | |
11076 | } | |
11077 | { | |
11078 | #if wxUSE_UNICODE | |
11079 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11080 | #else | |
11081 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11082 | #endif | |
11083 | } | |
11084 | return resultobj; | |
11085 | fail: | |
11086 | return NULL; | |
11087 | } | |
11088 | ||
11089 | ||
11090 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11091 | PyObject *resultobj; | |
11092 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11093 | wxString *arg2 = 0 ; | |
11094 | bool result; | |
423f194a | 11095 | bool temp2 = False ; |
d14a1e28 RD |
11096 | PyObject * obj0 = 0 ; |
11097 | PyObject * obj1 = 0 ; | |
11098 | char *kwnames[] = { | |
11099 | (char *) "self",(char *) "s", NULL | |
11100 | }; | |
11101 | ||
11102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
11103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11104 | { | |
11105 | arg2 = wxString_in_helper(obj1); | |
11106 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11107 | temp2 = True; |
d14a1e28 RD |
11108 | } |
11109 | { | |
11110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11111 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
11112 | ||
11113 | wxPyEndAllowThreads(__tstate); | |
11114 | if (PyErr_Occurred()) SWIG_fail; | |
11115 | } | |
02a34c4c | 11116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11117 | { |
11118 | if (temp2) | |
11119 | delete arg2; | |
11120 | } | |
11121 | return resultobj; | |
11122 | fail: | |
11123 | { | |
11124 | if (temp2) | |
11125 | delete arg2; | |
11126 | } | |
11127 | return NULL; | |
11128 | } | |
11129 | ||
11130 | ||
11131 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11132 | PyObject *resultobj; | |
11133 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11134 | int result; | |
11135 | PyObject * obj0 = 0 ; | |
11136 | char *kwnames[] = { | |
11137 | (char *) "self", NULL | |
11138 | }; | |
11139 | ||
11140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
11141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11142 | { | |
11143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11144 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
11145 | ||
11146 | wxPyEndAllowThreads(__tstate); | |
11147 | if (PyErr_Occurred()) SWIG_fail; | |
11148 | } | |
8edf1c75 | 11149 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11150 | return resultobj; |
11151 | fail: | |
11152 | return NULL; | |
11153 | } | |
11154 | ||
11155 | ||
11156 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11157 | PyObject *resultobj; | |
11158 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11159 | wxString *arg2 = 0 ; | |
11160 | int result; | |
423f194a | 11161 | bool temp2 = False ; |
d14a1e28 RD |
11162 | PyObject * obj0 = 0 ; |
11163 | PyObject * obj1 = 0 ; | |
11164 | char *kwnames[] = { | |
11165 | (char *) "self",(char *) "s", NULL | |
11166 | }; | |
11167 | ||
11168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
11169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11170 | { | |
11171 | arg2 = wxString_in_helper(obj1); | |
11172 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11173 | temp2 = True; |
d14a1e28 RD |
11174 | } |
11175 | { | |
11176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11177 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
11178 | ||
11179 | wxPyEndAllowThreads(__tstate); | |
11180 | if (PyErr_Occurred()) SWIG_fail; | |
11181 | } | |
8edf1c75 | 11182 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11183 | { |
11184 | if (temp2) | |
11185 | delete arg2; | |
11186 | } | |
11187 | return resultobj; | |
11188 | fail: | |
11189 | { | |
11190 | if (temp2) | |
11191 | delete arg2; | |
11192 | } | |
11193 | return NULL; | |
11194 | } | |
11195 | ||
11196 | ||
11197 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11198 | PyObject *resultobj; | |
11199 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11200 | int arg2 ; | |
11201 | wxString result; | |
11202 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11203 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11204 | char *kwnames[] = { |
11205 | (char *) "self",(char *) "n", NULL | |
11206 | }; | |
11207 | ||
8edf1c75 | 11208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11210 | { |
11211 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11212 | if (PyErr_Occurred()) SWIG_fail; | |
11213 | } | |
d14a1e28 RD |
11214 | { |
11215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11216 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
11217 | ||
11218 | wxPyEndAllowThreads(__tstate); | |
11219 | if (PyErr_Occurred()) SWIG_fail; | |
11220 | } | |
11221 | { | |
11222 | #if wxUSE_UNICODE | |
11223 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11224 | #else | |
11225 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11226 | #endif | |
11227 | } | |
11228 | return resultobj; | |
11229 | fail: | |
11230 | return NULL; | |
11231 | } | |
11232 | ||
11233 | ||
11234 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11235 | PyObject *resultobj; | |
11236 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11237 | int arg2 ; | |
11238 | wxString *arg3 = 0 ; | |
423f194a | 11239 | bool temp3 = False ; |
d14a1e28 | 11240 | PyObject * obj0 = 0 ; |
8edf1c75 | 11241 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11242 | PyObject * obj2 = 0 ; |
11243 | char *kwnames[] = { | |
11244 | (char *) "self",(char *) "n",(char *) "label", NULL | |
11245 | }; | |
11246 | ||
8edf1c75 | 11247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11249 | { |
11250 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11251 | if (PyErr_Occurred()) SWIG_fail; | |
11252 | } | |
d14a1e28 RD |
11253 | { |
11254 | arg3 = wxString_in_helper(obj2); | |
11255 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11256 | temp3 = True; |
d14a1e28 RD |
11257 | } |
11258 | { | |
11259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11260 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
11261 | ||
11262 | wxPyEndAllowThreads(__tstate); | |
11263 | if (PyErr_Occurred()) SWIG_fail; | |
11264 | } | |
11265 | Py_INCREF(Py_None); resultobj = Py_None; | |
11266 | { | |
11267 | if (temp3) | |
11268 | delete arg3; | |
11269 | } | |
11270 | return resultobj; | |
11271 | fail: | |
11272 | { | |
11273 | if (temp3) | |
11274 | delete arg3; | |
11275 | } | |
11276 | return NULL; | |
11277 | } | |
11278 | ||
11279 | ||
11280 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11281 | PyObject *resultobj; | |
11282 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11283 | int arg2 ; | |
423f194a | 11284 | bool arg3 = (bool) True ; |
d14a1e28 | 11285 | PyObject * obj0 = 0 ; |
8edf1c75 | 11286 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11287 | PyObject * obj2 = 0 ; |
11288 | char *kwnames[] = { | |
11289 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
11290 | }; | |
11291 | ||
8edf1c75 | 11292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11294 | { |
11295 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11296 | if (PyErr_Occurred()) SWIG_fail; | |
11297 | } | |
d14a1e28 | 11298 | if (obj2) { |
2dbef272 | 11299 | { |
8edf1c75 | 11300 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
11301 | if (PyErr_Occurred()) SWIG_fail; |
11302 | } | |
d14a1e28 RD |
11303 | } |
11304 | { | |
11305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11306 | (arg1)->Enable(arg2,arg3); | |
11307 | ||
11308 | wxPyEndAllowThreads(__tstate); | |
11309 | if (PyErr_Occurred()) SWIG_fail; | |
11310 | } | |
11311 | Py_INCREF(Py_None); resultobj = Py_None; | |
11312 | return resultobj; | |
11313 | fail: | |
11314 | return NULL; | |
11315 | } | |
11316 | ||
11317 | ||
11318 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11319 | PyObject *resultobj; | |
11320 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11321 | int arg2 ; | |
423f194a | 11322 | bool arg3 = (bool) True ; |
d14a1e28 | 11323 | PyObject * obj0 = 0 ; |
8edf1c75 | 11324 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11325 | PyObject * obj2 = 0 ; |
11326 | char *kwnames[] = { | |
11327 | (char *) "self",(char *) "n",(char *) "show", NULL | |
11328 | }; | |
11329 | ||
8edf1c75 | 11330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) 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 | } | |
d14a1e28 | 11336 | if (obj2) { |
2dbef272 | 11337 | { |
8edf1c75 | 11338 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
11339 | if (PyErr_Occurred()) SWIG_fail; |
11340 | } | |
d14a1e28 RD |
11341 | } |
11342 | { | |
11343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11344 | (arg1)->Show(arg2,arg3); | |
11345 | ||
11346 | wxPyEndAllowThreads(__tstate); | |
11347 | if (PyErr_Occurred()) SWIG_fail; | |
11348 | } | |
11349 | Py_INCREF(Py_None); resultobj = Py_None; | |
11350 | return resultobj; | |
11351 | fail: | |
11352 | return NULL; | |
11353 | } | |
11354 | ||
11355 | ||
11356 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11357 | PyObject *resultobj; | |
11358 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11359 | int result; | |
11360 | PyObject * obj0 = 0 ; | |
11361 | char *kwnames[] = { | |
11362 | (char *) "self", NULL | |
11363 | }; | |
11364 | ||
11365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
11366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11367 | { | |
11368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11369 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
11370 | ||
11371 | wxPyEndAllowThreads(__tstate); | |
11372 | if (PyErr_Occurred()) SWIG_fail; | |
11373 | } | |
8edf1c75 | 11374 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11375 | return resultobj; |
11376 | fail: | |
11377 | return NULL; | |
11378 | } | |
11379 | ||
11380 | ||
11381 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11382 | PyObject *resultobj; | |
11383 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11384 | int result; | |
11385 | PyObject * obj0 = 0 ; | |
11386 | char *kwnames[] = { | |
11387 | (char *) "self", NULL | |
11388 | }; | |
11389 | ||
11390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
11391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11392 | { | |
11393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11394 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
11395 | ||
11396 | wxPyEndAllowThreads(__tstate); | |
11397 | if (PyErr_Occurred()) SWIG_fail; | |
11398 | } | |
8edf1c75 | 11399 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11400 | return resultobj; |
11401 | fail: | |
11402 | return NULL; | |
11403 | } | |
11404 | ||
11405 | ||
11406 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11407 | PyObject *resultobj; | |
11408 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11409 | int arg2 ; | |
11410 | int arg3 ; | |
11411 | long arg4 ; | |
11412 | int result; | |
11413 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11414 | PyObject * obj1 = 0 ; |
11415 | PyObject * obj2 = 0 ; | |
11416 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11417 | char *kwnames[] = { |
11418 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
11419 | }; | |
11420 | ||
8edf1c75 | 11421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 11422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11423 | { |
11424 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11425 | if (PyErr_Occurred()) SWIG_fail; | |
11426 | } | |
11427 | { | |
11428 | arg3 = (wxDirection) SWIG_PyObj_AsInt(obj2); | |
11429 | if (PyErr_Occurred()) SWIG_fail; | |
11430 | } | |
11431 | { | |
11432 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
11433 | if (PyErr_Occurred()) SWIG_fail; | |
11434 | } | |
d14a1e28 RD |
11435 | { |
11436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11437 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
11438 | ||
11439 | wxPyEndAllowThreads(__tstate); | |
11440 | if (PyErr_Occurred()) SWIG_fail; | |
11441 | } | |
8edf1c75 | 11442 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11443 | return resultobj; |
11444 | fail: | |
11445 | return NULL; | |
11446 | } | |
11447 | ||
11448 | ||
11449 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
11450 | PyObject *obj; | |
11451 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11452 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
11453 | Py_INCREF(obj); | |
11454 | return Py_BuildValue((char *)""); | |
11455 | } | |
11456 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11457 | PyObject *resultobj; | |
11458 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11459 | int arg2 ; |
d14a1e28 RD |
11460 | wxString *arg3 = 0 ; |
11461 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11462 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11463 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11464 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11465 | long arg6 = (long) 0 ; | |
11466 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11467 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11468 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
11469 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11470 | wxRadioButton *result; | |
423f194a | 11471 | bool temp3 = False ; |
d14a1e28 RD |
11472 | wxPoint temp4 ; |
11473 | wxSize temp5 ; | |
423f194a | 11474 | bool temp8 = False ; |
d14a1e28 | 11475 | PyObject * obj0 = 0 ; |
8edf1c75 | 11476 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11477 | PyObject * obj2 = 0 ; |
11478 | PyObject * obj3 = 0 ; | |
11479 | PyObject * obj4 = 0 ; | |
8edf1c75 | 11480 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11481 | PyObject * obj6 = 0 ; |
11482 | PyObject * obj7 = 0 ; | |
11483 | char *kwnames[] = { | |
11484 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11485 | }; | |
11486 | ||
8edf1c75 | 11487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 11488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11489 | { |
11490 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11491 | if (PyErr_Occurred()) SWIG_fail; | |
11492 | } | |
d14a1e28 RD |
11493 | { |
11494 | arg3 = wxString_in_helper(obj2); | |
11495 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11496 | temp3 = True; |
d14a1e28 RD |
11497 | } |
11498 | if (obj3) { | |
11499 | { | |
11500 | arg4 = &temp4; | |
11501 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11502 | } | |
11503 | } | |
11504 | if (obj4) { | |
11505 | { | |
11506 | arg5 = &temp5; | |
11507 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11508 | } | |
11509 | } | |
8edf1c75 RD |
11510 | if (obj5) { |
11511 | { | |
11512 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
11513 | if (PyErr_Occurred()) SWIG_fail; | |
11514 | } | |
11515 | } | |
d14a1e28 RD |
11516 | if (obj6) { |
11517 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11518 | if (arg7 == NULL) { | |
11519 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11520 | } | |
11521 | } | |
11522 | if (obj7) { | |
11523 | { | |
11524 | arg8 = wxString_in_helper(obj7); | |
11525 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 11526 | temp8 = True; |
d14a1e28 RD |
11527 | } |
11528 | } | |
11529 | { | |
11530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11531 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11532 | ||
11533 | wxPyEndAllowThreads(__tstate); | |
11534 | if (PyErr_Occurred()) SWIG_fail; | |
11535 | } | |
11536 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11537 | { | |
11538 | if (temp3) | |
11539 | delete arg3; | |
11540 | } | |
11541 | { | |
11542 | if (temp8) | |
11543 | delete arg8; | |
11544 | } | |
11545 | return resultobj; | |
11546 | fail: | |
11547 | { | |
11548 | if (temp3) | |
11549 | delete arg3; | |
11550 | } | |
11551 | { | |
11552 | if (temp8) | |
11553 | delete arg8; | |
11554 | } | |
11555 | return NULL; | |
11556 | } | |
11557 | ||
11558 | ||
11559 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11560 | PyObject *resultobj; | |
11561 | wxRadioButton *result; | |
11562 | char *kwnames[] = { | |
11563 | NULL | |
11564 | }; | |
11565 | ||
11566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
11567 | { | |
11568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11569 | result = (wxRadioButton *)new wxRadioButton(); | |
11570 | ||
11571 | wxPyEndAllowThreads(__tstate); | |
11572 | if (PyErr_Occurred()) SWIG_fail; | |
11573 | } | |
11574 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11575 | return resultobj; | |
11576 | fail: | |
11577 | return NULL; | |
11578 | } | |
11579 | ||
11580 | ||
11581 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11582 | PyObject *resultobj; | |
11583 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11584 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11585 | int arg3 ; |
d14a1e28 RD |
11586 | wxString *arg4 = 0 ; |
11587 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11588 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11589 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11590 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11591 | long arg7 = (long) 0 ; | |
11592 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11593 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11594 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
11595 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11596 | bool result; | |
423f194a | 11597 | bool temp4 = False ; |
d14a1e28 RD |
11598 | wxPoint temp5 ; |
11599 | wxSize temp6 ; | |
423f194a | 11600 | bool temp9 = False ; |
d14a1e28 RD |
11601 | PyObject * obj0 = 0 ; |
11602 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11603 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11604 | PyObject * obj3 = 0 ; |
11605 | PyObject * obj4 = 0 ; | |
11606 | PyObject * obj5 = 0 ; | |
8edf1c75 | 11607 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
11608 | PyObject * obj7 = 0 ; |
11609 | PyObject * obj8 = 0 ; | |
11610 | char *kwnames[] = { | |
11611 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11612 | }; | |
11613 | ||
8edf1c75 | 11614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
11615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11616 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
11617 | { |
11618 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11619 | if (PyErr_Occurred()) SWIG_fail; | |
11620 | } | |
d14a1e28 RD |
11621 | { |
11622 | arg4 = wxString_in_helper(obj3); | |
11623 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11624 | temp4 = True; |
d14a1e28 RD |
11625 | } |
11626 | if (obj4) { | |
11627 | { | |
11628 | arg5 = &temp5; | |
11629 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11630 | } | |
11631 | } | |
11632 | if (obj5) { | |
11633 | { | |
11634 | arg6 = &temp6; | |
11635 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11636 | } | |
11637 | } | |
8edf1c75 RD |
11638 | if (obj6) { |
11639 | { | |
11640 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
11641 | if (PyErr_Occurred()) SWIG_fail; | |
11642 | } | |
11643 | } | |
d14a1e28 RD |
11644 | if (obj7) { |
11645 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11646 | if (arg8 == NULL) { | |
11647 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11648 | } | |
11649 | } | |
11650 | if (obj8) { | |
11651 | { | |
11652 | arg9 = wxString_in_helper(obj8); | |
11653 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 11654 | temp9 = True; |
d14a1e28 RD |
11655 | } |
11656 | } | |
11657 | { | |
11658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11659 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11660 | ||
11661 | wxPyEndAllowThreads(__tstate); | |
11662 | if (PyErr_Occurred()) SWIG_fail; | |
11663 | } | |
02a34c4c | 11664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11665 | { |
11666 | if (temp4) | |
11667 | delete arg4; | |
11668 | } | |
11669 | { | |
11670 | if (temp9) | |
11671 | delete arg9; | |
11672 | } | |
11673 | return resultobj; | |
11674 | fail: | |
11675 | { | |
11676 | if (temp4) | |
11677 | delete arg4; | |
11678 | } | |
11679 | { | |
11680 | if (temp9) | |
11681 | delete arg9; | |
11682 | } | |
11683 | return NULL; | |
11684 | } | |
11685 | ||
11686 | ||
11687 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11688 | PyObject *resultobj; | |
11689 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11690 | bool result; | |
11691 | PyObject * obj0 = 0 ; | |
11692 | char *kwnames[] = { | |
11693 | (char *) "self", NULL | |
11694 | }; | |
11695 | ||
11696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
11697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11698 | { | |
11699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11700 | result = (bool)(arg1)->GetValue(); | |
11701 | ||
11702 | wxPyEndAllowThreads(__tstate); | |
11703 | if (PyErr_Occurred()) SWIG_fail; | |
11704 | } | |
02a34c4c | 11705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11706 | return resultobj; |
11707 | fail: | |
11708 | return NULL; | |
11709 | } | |
11710 | ||
11711 | ||
11712 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11713 | PyObject *resultobj; | |
11714 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11715 | bool arg2 ; | |
11716 | PyObject * obj0 = 0 ; | |
11717 | PyObject * obj1 = 0 ; | |
11718 | char *kwnames[] = { | |
11719 | (char *) "self",(char *) "value", NULL | |
11720 | }; | |
11721 | ||
11722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 11724 | { |
8edf1c75 | 11725 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
11726 | if (PyErr_Occurred()) SWIG_fail; |
11727 | } | |
d14a1e28 RD |
11728 | { |
11729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11730 | (arg1)->SetValue(arg2); | |
11731 | ||
11732 | wxPyEndAllowThreads(__tstate); | |
11733 | if (PyErr_Occurred()) SWIG_fail; | |
11734 | } | |
11735 | Py_INCREF(Py_None); resultobj = Py_None; | |
11736 | return resultobj; | |
11737 | fail: | |
11738 | return NULL; | |
11739 | } | |
11740 | ||
11741 | ||
11742 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
11743 | PyObject *obj; | |
11744 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11745 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
11746 | Py_INCREF(obj); | |
11747 | return Py_BuildValue((char *)""); | |
11748 | } | |
8edf1c75 | 11749 | static int _wrap_SliderNameStr_set(PyObject *) { |
cbd72d4f RD |
11750 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
11751 | return 1; | |
11752 | } | |
11753 | ||
11754 | ||
11755 | static PyObject *_wrap_SliderNameStr_get() { | |
11756 | PyObject *pyobj; | |
11757 | ||
11758 | { | |
11759 | #if wxUSE_UNICODE | |
11760 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11761 | #else | |
11762 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11763 | #endif | |
11764 | } | |
11765 | return pyobj; | |
11766 | } | |
11767 | ||
11768 | ||
d14a1e28 RD |
11769 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
11770 | PyObject *resultobj; | |
11771 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11772 | int arg2 ; |
d14a1e28 RD |
11773 | int arg3 ; |
11774 | int arg4 ; | |
11775 | int arg5 ; | |
11776 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
11777 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
11778 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
11779 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
11780 | long arg8 = (long) wxSL_HORIZONTAL ; | |
11781 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11782 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11783 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
11784 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11785 | wxSlider *result; | |
11786 | wxPoint temp6 ; | |
11787 | wxSize temp7 ; | |
423f194a | 11788 | bool temp10 = False ; |
d14a1e28 | 11789 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11790 | PyObject * obj1 = 0 ; |
11791 | PyObject * obj2 = 0 ; | |
11792 | PyObject * obj3 = 0 ; | |
11793 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11794 | PyObject * obj5 = 0 ; |
11795 | PyObject * obj6 = 0 ; | |
8edf1c75 | 11796 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
11797 | PyObject * obj8 = 0 ; |
11798 | PyObject * obj9 = 0 ; | |
11799 | char *kwnames[] = { | |
8edf1c75 | 11800 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11801 | }; |
11802 | ||
8edf1c75 | 11803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 11804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11805 | { |
11806 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11807 | if (PyErr_Occurred()) SWIG_fail; | |
11808 | } | |
11809 | { | |
11810 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11811 | if (PyErr_Occurred()) SWIG_fail; | |
11812 | } | |
11813 | { | |
11814 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11815 | if (PyErr_Occurred()) SWIG_fail; | |
11816 | } | |
11817 | { | |
11818 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11819 | if (PyErr_Occurred()) SWIG_fail; | |
11820 | } | |
d14a1e28 RD |
11821 | if (obj5) { |
11822 | { | |
11823 | arg6 = &temp6; | |
11824 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
11825 | } | |
11826 | } | |
11827 | if (obj6) { | |
11828 | { | |
11829 | arg7 = &temp7; | |
11830 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
11831 | } | |
11832 | } | |
8edf1c75 RD |
11833 | if (obj7) { |
11834 | { | |
11835 | arg8 = (long) SWIG_PyObj_AsLong(obj7); | |
11836 | if (PyErr_Occurred()) SWIG_fail; | |
11837 | } | |
11838 | } | |
d14a1e28 RD |
11839 | if (obj8) { |
11840 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11841 | if (arg9 == NULL) { | |
11842 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11843 | } | |
11844 | } | |
11845 | if (obj9) { | |
11846 | { | |
11847 | arg10 = wxString_in_helper(obj9); | |
11848 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 11849 | temp10 = True; |
d14a1e28 RD |
11850 | } |
11851 | } | |
11852 | { | |
11853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11854 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
11855 | ||
11856 | wxPyEndAllowThreads(__tstate); | |
11857 | if (PyErr_Occurred()) SWIG_fail; | |
11858 | } | |
11859 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
11860 | { | |
11861 | if (temp10) | |
11862 | delete arg10; | |
11863 | } | |
11864 | return resultobj; | |
11865 | fail: | |
11866 | { | |
11867 | if (temp10) | |
11868 | delete arg10; | |
11869 | } | |
11870 | return NULL; | |
11871 | } | |
11872 | ||
11873 | ||
11874 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11875 | PyObject *resultobj; | |
11876 | wxSlider *result; | |
11877 | char *kwnames[] = { | |
11878 | NULL | |
11879 | }; | |
11880 | ||
11881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
11882 | { | |
11883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11884 | result = (wxSlider *)new wxSlider(); | |
11885 | ||
11886 | wxPyEndAllowThreads(__tstate); | |
11887 | if (PyErr_Occurred()) SWIG_fail; | |
11888 | } | |
11889 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
11890 | return resultobj; | |
11891 | fail: | |
11892 | return NULL; | |
11893 | } | |
11894 | ||
11895 | ||
11896 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11897 | PyObject *resultobj; | |
11898 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11899 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11900 | int arg3 ; |
d14a1e28 RD |
11901 | int arg4 ; |
11902 | int arg5 ; | |
11903 | int arg6 ; | |
11904 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11905 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11906 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
11907 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
11908 | long arg9 = (long) wxSL_HORIZONTAL ; | |
11909 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11910 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11911 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
11912 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11913 | bool result; | |
11914 | wxPoint temp7 ; | |
11915 | wxSize temp8 ; | |
423f194a | 11916 | bool temp11 = False ; |
d14a1e28 RD |
11917 | PyObject * obj0 = 0 ; |
11918 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11919 | PyObject * obj2 = 0 ; |
11920 | PyObject * obj3 = 0 ; | |
11921 | PyObject * obj4 = 0 ; | |
11922 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11923 | PyObject * obj6 = 0 ; |
11924 | PyObject * obj7 = 0 ; | |
8edf1c75 | 11925 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
11926 | PyObject * obj9 = 0 ; |
11927 | PyObject * obj10 = 0 ; | |
11928 | char *kwnames[] = { | |
8edf1c75 | 11929 | (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 |
11930 | }; |
11931 | ||
8edf1c75 | 11932 | 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 |
11933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11934 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
11935 | { |
11936 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11937 | if (PyErr_Occurred()) SWIG_fail; | |
11938 | } | |
11939 | { | |
11940 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11941 | if (PyErr_Occurred()) SWIG_fail; | |
11942 | } | |
11943 | { | |
11944 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11945 | if (PyErr_Occurred()) SWIG_fail; | |
11946 | } | |
11947 | { | |
11948 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
11949 | if (PyErr_Occurred()) SWIG_fail; | |
11950 | } | |
d14a1e28 RD |
11951 | if (obj6) { |
11952 | { | |
11953 | arg7 = &temp7; | |
11954 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
11955 | } | |
11956 | } | |
11957 | if (obj7) { | |
11958 | { | |
11959 | arg8 = &temp8; | |
11960 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
11961 | } | |
11962 | } | |
8edf1c75 RD |
11963 | if (obj8) { |
11964 | { | |
11965 | arg9 = (long) SWIG_PyObj_AsLong(obj8); | |
11966 | if (PyErr_Occurred()) SWIG_fail; | |
11967 | } | |
11968 | } | |
d14a1e28 RD |
11969 | if (obj9) { |
11970 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11971 | if (arg10 == NULL) { | |
11972 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11973 | } | |
11974 | } | |
11975 | if (obj10) { | |
11976 | { | |
11977 | arg11 = wxString_in_helper(obj10); | |
11978 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 11979 | temp11 = True; |
d14a1e28 RD |
11980 | } |
11981 | } | |
11982 | { | |
11983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11984 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
11985 | ||
11986 | wxPyEndAllowThreads(__tstate); | |
11987 | if (PyErr_Occurred()) SWIG_fail; | |
11988 | } | |
02a34c4c | 11989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11990 | { |
11991 | if (temp11) | |
11992 | delete arg11; | |
11993 | } | |
11994 | return resultobj; | |
11995 | fail: | |
11996 | { | |
11997 | if (temp11) | |
11998 | delete arg11; | |
11999 | } | |
12000 | return NULL; | |
12001 | } | |
12002 | ||
12003 | ||
12004 | static PyObject *_wrap_Slider_GetValue(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_GetValue",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)->GetValue(); | |
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_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12030 | PyObject *resultobj; | |
12031 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12032 | int arg2 ; | |
12033 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12034 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12035 | char *kwnames[] = { |
12036 | (char *) "self",(char *) "value", NULL | |
12037 | }; | |
12038 | ||
8edf1c75 | 12039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12041 | { |
12042 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12043 | if (PyErr_Occurred()) SWIG_fail; | |
12044 | } | |
d14a1e28 RD |
12045 | { |
12046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12047 | (arg1)->SetValue(arg2); | |
12048 | ||
12049 | wxPyEndAllowThreads(__tstate); | |
12050 | if (PyErr_Occurred()) SWIG_fail; | |
12051 | } | |
12052 | Py_INCREF(Py_None); resultobj = Py_None; | |
12053 | return resultobj; | |
12054 | fail: | |
12055 | return NULL; | |
12056 | } | |
12057 | ||
12058 | ||
12059 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12060 | PyObject *resultobj; | |
12061 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12062 | int arg2 ; | |
12063 | int arg3 ; | |
12064 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12065 | PyObject * obj1 = 0 ; |
12066 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12067 | char *kwnames[] = { |
12068 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
12069 | }; | |
12070 | ||
8edf1c75 | 12071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12073 | { |
12074 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12075 | if (PyErr_Occurred()) SWIG_fail; | |
12076 | } | |
12077 | { | |
12078 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12079 | if (PyErr_Occurred()) SWIG_fail; | |
12080 | } | |
d14a1e28 RD |
12081 | { |
12082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12083 | (arg1)->SetRange(arg2,arg3); | |
12084 | ||
12085 | wxPyEndAllowThreads(__tstate); | |
12086 | if (PyErr_Occurred()) SWIG_fail; | |
12087 | } | |
12088 | Py_INCREF(Py_None); resultobj = Py_None; | |
12089 | return resultobj; | |
12090 | fail: | |
12091 | return NULL; | |
12092 | } | |
12093 | ||
12094 | ||
12095 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12096 | PyObject *resultobj; | |
12097 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12098 | int result; | |
12099 | PyObject * obj0 = 0 ; | |
12100 | char *kwnames[] = { | |
12101 | (char *) "self", NULL | |
12102 | }; | |
12103 | ||
12104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
12105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12106 | { | |
12107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12108 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
12109 | ||
12110 | wxPyEndAllowThreads(__tstate); | |
12111 | if (PyErr_Occurred()) SWIG_fail; | |
12112 | } | |
8edf1c75 | 12113 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12114 | return resultobj; |
12115 | fail: | |
12116 | return NULL; | |
12117 | } | |
12118 | ||
12119 | ||
12120 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12121 | PyObject *resultobj; | |
12122 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12123 | int result; | |
12124 | PyObject * obj0 = 0 ; | |
12125 | char *kwnames[] = { | |
12126 | (char *) "self", NULL | |
12127 | }; | |
12128 | ||
12129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
12130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12131 | { | |
12132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12133 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
12134 | ||
12135 | wxPyEndAllowThreads(__tstate); | |
12136 | if (PyErr_Occurred()) SWIG_fail; | |
12137 | } | |
8edf1c75 | 12138 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12139 | return resultobj; |
12140 | fail: | |
12141 | return NULL; | |
12142 | } | |
12143 | ||
12144 | ||
12145 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12146 | PyObject *resultobj; | |
12147 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12148 | int arg2 ; | |
12149 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12150 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12151 | char *kwnames[] = { |
12152 | (char *) "self",(char *) "minValue", NULL | |
12153 | }; | |
12154 | ||
8edf1c75 | 12155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12157 | { |
12158 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12159 | if (PyErr_Occurred()) SWIG_fail; | |
12160 | } | |
d14a1e28 RD |
12161 | { |
12162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12163 | (arg1)->SetMin(arg2); | |
12164 | ||
12165 | wxPyEndAllowThreads(__tstate); | |
12166 | if (PyErr_Occurred()) SWIG_fail; | |
12167 | } | |
12168 | Py_INCREF(Py_None); resultobj = Py_None; | |
12169 | return resultobj; | |
12170 | fail: | |
12171 | return NULL; | |
12172 | } | |
12173 | ||
12174 | ||
12175 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12176 | PyObject *resultobj; | |
12177 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12178 | int arg2 ; | |
12179 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12180 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12181 | char *kwnames[] = { |
12182 | (char *) "self",(char *) "maxValue", NULL | |
12183 | }; | |
12184 | ||
8edf1c75 | 12185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12187 | { |
12188 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12189 | if (PyErr_Occurred()) SWIG_fail; | |
12190 | } | |
d14a1e28 RD |
12191 | { |
12192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12193 | (arg1)->SetMax(arg2); | |
12194 | ||
12195 | wxPyEndAllowThreads(__tstate); | |
12196 | if (PyErr_Occurred()) SWIG_fail; | |
12197 | } | |
12198 | Py_INCREF(Py_None); resultobj = Py_None; | |
12199 | return resultobj; | |
12200 | fail: | |
12201 | return NULL; | |
12202 | } | |
12203 | ||
12204 | ||
12205 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12206 | PyObject *resultobj; | |
12207 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12208 | int arg2 ; | |
12209 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12210 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12211 | char *kwnames[] = { |
12212 | (char *) "self",(char *) "lineSize", NULL | |
12213 | }; | |
12214 | ||
8edf1c75 | 12215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12217 | { |
12218 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12219 | if (PyErr_Occurred()) SWIG_fail; | |
12220 | } | |
d14a1e28 RD |
12221 | { |
12222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12223 | (arg1)->SetLineSize(arg2); | |
12224 | ||
12225 | wxPyEndAllowThreads(__tstate); | |
12226 | if (PyErr_Occurred()) SWIG_fail; | |
12227 | } | |
12228 | Py_INCREF(Py_None); resultobj = Py_None; | |
12229 | return resultobj; | |
12230 | fail: | |
12231 | return NULL; | |
12232 | } | |
12233 | ||
12234 | ||
12235 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12236 | PyObject *resultobj; | |
12237 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12238 | int arg2 ; | |
12239 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12240 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12241 | char *kwnames[] = { |
12242 | (char *) "self",(char *) "pageSize", NULL | |
12243 | }; | |
12244 | ||
8edf1c75 | 12245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12247 | { |
12248 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12249 | if (PyErr_Occurred()) SWIG_fail; | |
12250 | } | |
d14a1e28 RD |
12251 | { |
12252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12253 | (arg1)->SetPageSize(arg2); | |
12254 | ||
12255 | wxPyEndAllowThreads(__tstate); | |
12256 | if (PyErr_Occurred()) SWIG_fail; | |
12257 | } | |
12258 | Py_INCREF(Py_None); resultobj = Py_None; | |
12259 | return resultobj; | |
12260 | fail: | |
12261 | return NULL; | |
12262 | } | |
12263 | ||
12264 | ||
12265 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12266 | PyObject *resultobj; | |
12267 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12268 | int result; | |
12269 | PyObject * obj0 = 0 ; | |
12270 | char *kwnames[] = { | |
12271 | (char *) "self", NULL | |
12272 | }; | |
12273 | ||
12274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
12275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12276 | { | |
12277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12278 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
12279 | ||
12280 | wxPyEndAllowThreads(__tstate); | |
12281 | if (PyErr_Occurred()) SWIG_fail; | |
12282 | } | |
8edf1c75 | 12283 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12284 | return resultobj; |
12285 | fail: | |
12286 | return NULL; | |
12287 | } | |
12288 | ||
12289 | ||
12290 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12291 | PyObject *resultobj; | |
12292 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12293 | int result; | |
12294 | PyObject * obj0 = 0 ; | |
12295 | char *kwnames[] = { | |
12296 | (char *) "self", NULL | |
12297 | }; | |
12298 | ||
12299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
12300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12301 | { | |
12302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12303 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
12304 | ||
12305 | wxPyEndAllowThreads(__tstate); | |
12306 | if (PyErr_Occurred()) SWIG_fail; | |
12307 | } | |
8edf1c75 | 12308 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12309 | return resultobj; |
12310 | fail: | |
12311 | return NULL; | |
12312 | } | |
12313 | ||
12314 | ||
12315 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12316 | PyObject *resultobj; | |
12317 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12318 | int arg2 ; | |
12319 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12320 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12321 | char *kwnames[] = { |
12322 | (char *) "self",(char *) "lenPixels", NULL | |
12323 | }; | |
12324 | ||
8edf1c75 | 12325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12327 | { |
12328 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12329 | if (PyErr_Occurred()) SWIG_fail; | |
12330 | } | |
d14a1e28 RD |
12331 | { |
12332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12333 | (arg1)->SetThumbLength(arg2); | |
12334 | ||
12335 | wxPyEndAllowThreads(__tstate); | |
12336 | if (PyErr_Occurred()) SWIG_fail; | |
12337 | } | |
12338 | Py_INCREF(Py_None); resultobj = Py_None; | |
12339 | return resultobj; | |
12340 | fail: | |
12341 | return NULL; | |
12342 | } | |
12343 | ||
12344 | ||
12345 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12346 | PyObject *resultobj; | |
12347 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12348 | int result; | |
12349 | PyObject * obj0 = 0 ; | |
12350 | char *kwnames[] = { | |
12351 | (char *) "self", NULL | |
12352 | }; | |
12353 | ||
12354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
12355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12356 | { | |
12357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12358 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
12359 | ||
12360 | wxPyEndAllowThreads(__tstate); | |
12361 | if (PyErr_Occurred()) SWIG_fail; | |
12362 | } | |
8edf1c75 | 12363 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12364 | return resultobj; |
12365 | fail: | |
12366 | return NULL; | |
12367 | } | |
12368 | ||
12369 | ||
12370 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12371 | PyObject *resultobj; | |
12372 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12373 | int arg2 ; | |
8edf1c75 | 12374 | int arg3 = (int) 1 ; |
d14a1e28 | 12375 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12376 | PyObject * obj1 = 0 ; |
12377 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12378 | char *kwnames[] = { |
12379 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
12380 | }; | |
12381 | ||
8edf1c75 | 12382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12384 | { |
12385 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12386 | if (PyErr_Occurred()) SWIG_fail; | |
12387 | } | |
12388 | if (obj2) { | |
12389 | { | |
12390 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12391 | if (PyErr_Occurred()) SWIG_fail; | |
12392 | } | |
12393 | } | |
d14a1e28 RD |
12394 | { |
12395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12396 | (arg1)->SetTickFreq(arg2,arg3); | |
12397 | ||
12398 | wxPyEndAllowThreads(__tstate); | |
12399 | if (PyErr_Occurred()) SWIG_fail; | |
12400 | } | |
12401 | Py_INCREF(Py_None); resultobj = Py_None; | |
12402 | return resultobj; | |
12403 | fail: | |
12404 | return NULL; | |
12405 | } | |
12406 | ||
12407 | ||
12408 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12409 | PyObject *resultobj; | |
12410 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12411 | int result; | |
12412 | PyObject * obj0 = 0 ; | |
12413 | char *kwnames[] = { | |
12414 | (char *) "self", NULL | |
12415 | }; | |
12416 | ||
12417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
12418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12419 | { | |
12420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12421 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
12422 | ||
12423 | wxPyEndAllowThreads(__tstate); | |
12424 | if (PyErr_Occurred()) SWIG_fail; | |
12425 | } | |
8edf1c75 | 12426 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12427 | return resultobj; |
12428 | fail: | |
12429 | return NULL; | |
12430 | } | |
12431 | ||
12432 | ||
12433 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12434 | PyObject *resultobj; | |
12435 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12436 | PyObject * obj0 = 0 ; | |
12437 | char *kwnames[] = { | |
12438 | (char *) "self", NULL | |
12439 | }; | |
12440 | ||
12441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
12442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12443 | { | |
12444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12445 | (arg1)->ClearTicks(); | |
12446 | ||
12447 | wxPyEndAllowThreads(__tstate); | |
12448 | if (PyErr_Occurred()) SWIG_fail; | |
12449 | } | |
12450 | Py_INCREF(Py_None); resultobj = Py_None; | |
12451 | return resultobj; | |
12452 | fail: | |
12453 | return NULL; | |
12454 | } | |
12455 | ||
12456 | ||
12457 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12458 | PyObject *resultobj; | |
12459 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12460 | int arg2 ; | |
12461 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12462 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12463 | char *kwnames[] = { |
12464 | (char *) "self",(char *) "tickPos", NULL | |
12465 | }; | |
12466 | ||
8edf1c75 | 12467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12469 | { |
12470 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12471 | if (PyErr_Occurred()) SWIG_fail; | |
12472 | } | |
d14a1e28 RD |
12473 | { |
12474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12475 | (arg1)->SetTick(arg2); | |
12476 | ||
12477 | wxPyEndAllowThreads(__tstate); | |
12478 | if (PyErr_Occurred()) SWIG_fail; | |
12479 | } | |
12480 | Py_INCREF(Py_None); resultobj = Py_None; | |
12481 | return resultobj; | |
12482 | fail: | |
12483 | return NULL; | |
12484 | } | |
12485 | ||
12486 | ||
12487 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12488 | PyObject *resultobj; | |
12489 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12490 | PyObject * obj0 = 0 ; | |
12491 | char *kwnames[] = { | |
12492 | (char *) "self", NULL | |
12493 | }; | |
12494 | ||
12495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
12496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12497 | { | |
12498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12499 | (arg1)->ClearSel(); | |
12500 | ||
12501 | wxPyEndAllowThreads(__tstate); | |
12502 | if (PyErr_Occurred()) SWIG_fail; | |
12503 | } | |
12504 | Py_INCREF(Py_None); resultobj = Py_None; | |
12505 | return resultobj; | |
12506 | fail: | |
12507 | return NULL; | |
12508 | } | |
12509 | ||
12510 | ||
12511 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12512 | PyObject *resultobj; | |
12513 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12514 | int result; | |
12515 | PyObject * obj0 = 0 ; | |
12516 | char *kwnames[] = { | |
12517 | (char *) "self", NULL | |
12518 | }; | |
12519 | ||
12520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
12521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12522 | { | |
12523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12524 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
12525 | ||
12526 | wxPyEndAllowThreads(__tstate); | |
12527 | if (PyErr_Occurred()) SWIG_fail; | |
12528 | } | |
8edf1c75 | 12529 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12530 | return resultobj; |
12531 | fail: | |
12532 | return NULL; | |
12533 | } | |
12534 | ||
12535 | ||
12536 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12537 | PyObject *resultobj; | |
12538 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12539 | int result; | |
12540 | PyObject * obj0 = 0 ; | |
12541 | char *kwnames[] = { | |
12542 | (char *) "self", NULL | |
12543 | }; | |
12544 | ||
12545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
12546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12547 | { | |
12548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12549 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
12550 | ||
12551 | wxPyEndAllowThreads(__tstate); | |
12552 | if (PyErr_Occurred()) SWIG_fail; | |
12553 | } | |
8edf1c75 | 12554 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12555 | return resultobj; |
12556 | fail: | |
12557 | return NULL; | |
12558 | } | |
12559 | ||
12560 | ||
12561 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12562 | PyObject *resultobj; | |
12563 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12564 | int arg2 ; | |
12565 | int arg3 ; | |
12566 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12567 | PyObject * obj1 = 0 ; |
12568 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12569 | char *kwnames[] = { |
12570 | (char *) "self",(char *) "min",(char *) "max", NULL | |
12571 | }; | |
12572 | ||
8edf1c75 | 12573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12575 | { |
12576 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12577 | if (PyErr_Occurred()) SWIG_fail; | |
12578 | } | |
12579 | { | |
12580 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12581 | if (PyErr_Occurred()) SWIG_fail; | |
12582 | } | |
d14a1e28 RD |
12583 | { |
12584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12585 | (arg1)->SetSelection(arg2,arg3); | |
12586 | ||
12587 | wxPyEndAllowThreads(__tstate); | |
12588 | if (PyErr_Occurred()) SWIG_fail; | |
12589 | } | |
12590 | Py_INCREF(Py_None); resultobj = Py_None; | |
12591 | return resultobj; | |
12592 | fail: | |
12593 | return NULL; | |
12594 | } | |
12595 | ||
12596 | ||
12597 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
12598 | PyObject *obj; | |
12599 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12600 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
12601 | Py_INCREF(obj); | |
12602 | return Py_BuildValue((char *)""); | |
12603 | } | |
8edf1c75 | 12604 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
cbd72d4f RD |
12605 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
12606 | return 1; | |
12607 | } | |
12608 | ||
12609 | ||
12610 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
12611 | PyObject *pyobj; | |
12612 | ||
12613 | { | |
12614 | #if wxUSE_UNICODE | |
12615 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12616 | #else | |
12617 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12618 | #endif | |
12619 | } | |
12620 | return pyobj; | |
12621 | } | |
12622 | ||
12623 | ||
d14a1e28 RD |
12624 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
12625 | PyObject *resultobj; | |
12626 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 12627 | int arg2 ; |
d14a1e28 RD |
12628 | wxString *arg3 = 0 ; |
12629 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12630 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12631 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12632 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12633 | long arg6 = (long) 0 ; | |
12634 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12635 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12636 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
12637 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12638 | wxToggleButton *result; | |
423f194a | 12639 | bool temp3 = False ; |
d14a1e28 RD |
12640 | wxPoint temp4 ; |
12641 | wxSize temp5 ; | |
423f194a | 12642 | bool temp8 = False ; |
d14a1e28 | 12643 | PyObject * obj0 = 0 ; |
8edf1c75 | 12644 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12645 | PyObject * obj2 = 0 ; |
12646 | PyObject * obj3 = 0 ; | |
12647 | PyObject * obj4 = 0 ; | |
8edf1c75 | 12648 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12649 | PyObject * obj6 = 0 ; |
12650 | PyObject * obj7 = 0 ; | |
12651 | char *kwnames[] = { | |
12652 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12653 | }; | |
12654 | ||
8edf1c75 | 12655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 12656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12657 | { |
12658 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12659 | if (PyErr_Occurred()) SWIG_fail; | |
12660 | } | |
d14a1e28 RD |
12661 | { |
12662 | arg3 = wxString_in_helper(obj2); | |
12663 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12664 | temp3 = True; |
d14a1e28 RD |
12665 | } |
12666 | if (obj3) { | |
12667 | { | |
12668 | arg4 = &temp4; | |
12669 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12670 | } | |
12671 | } | |
12672 | if (obj4) { | |
12673 | { | |
12674 | arg5 = &temp5; | |
12675 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12676 | } | |
12677 | } | |
8edf1c75 RD |
12678 | if (obj5) { |
12679 | { | |
12680 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
12681 | if (PyErr_Occurred()) SWIG_fail; | |
12682 | } | |
12683 | } | |
d14a1e28 RD |
12684 | if (obj6) { |
12685 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12686 | if (arg7 == NULL) { | |
12687 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12688 | } | |
12689 | } | |
12690 | if (obj7) { | |
12691 | { | |
12692 | arg8 = wxString_in_helper(obj7); | |
12693 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 12694 | temp8 = True; |
d14a1e28 RD |
12695 | } |
12696 | } | |
12697 | { | |
12698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12699 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12700 | ||
12701 | wxPyEndAllowThreads(__tstate); | |
12702 | if (PyErr_Occurred()) SWIG_fail; | |
12703 | } | |
12704 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12705 | { | |
12706 | if (temp3) | |
12707 | delete arg3; | |
12708 | } | |
12709 | { | |
12710 | if (temp8) | |
12711 | delete arg8; | |
12712 | } | |
12713 | return resultobj; | |
12714 | fail: | |
12715 | { | |
12716 | if (temp3) | |
12717 | delete arg3; | |
12718 | } | |
12719 | { | |
12720 | if (temp8) | |
12721 | delete arg8; | |
12722 | } | |
12723 | return NULL; | |
12724 | } | |
12725 | ||
12726 | ||
12727 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12728 | PyObject *resultobj; | |
12729 | wxToggleButton *result; | |
12730 | char *kwnames[] = { | |
12731 | NULL | |
12732 | }; | |
12733 | ||
12734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
12735 | { | |
12736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12737 | result = (wxToggleButton *)new wxToggleButton(); | |
12738 | ||
12739 | wxPyEndAllowThreads(__tstate); | |
12740 | if (PyErr_Occurred()) SWIG_fail; | |
12741 | } | |
12742 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12743 | return resultobj; | |
12744 | fail: | |
12745 | return NULL; | |
12746 | } | |
12747 | ||
12748 | ||
12749 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
12750 | PyObject *obj; | |
12751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12752 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
12753 | Py_INCREF(obj); | |
12754 | return Py_BuildValue((char *)""); | |
12755 | } | |
8edf1c75 | 12756 | static int _wrap_NOTEBOOK_NAME_set(PyObject *) { |
cbd72d4f RD |
12757 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); |
12758 | return 1; | |
12759 | } | |
12760 | ||
12761 | ||
12762 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
12763 | PyObject *pyobj; | |
12764 | ||
12765 | { | |
12766 | #if wxUSE_UNICODE | |
12767 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
12768 | #else | |
12769 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
12770 | #endif | |
12771 | } | |
12772 | return pyobj; | |
12773 | } | |
12774 | ||
12775 | ||
d14a1e28 RD |
12776 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
12777 | PyObject *resultobj; | |
12778 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12779 | size_t result; | |
12780 | PyObject * obj0 = 0 ; | |
12781 | char *kwnames[] = { | |
12782 | (char *) "self", NULL | |
12783 | }; | |
12784 | ||
12785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
12786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12787 | { | |
12788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12789 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
12790 | ||
12791 | wxPyEndAllowThreads(__tstate); | |
12792 | if (PyErr_Occurred()) SWIG_fail; | |
12793 | } | |
8edf1c75 | 12794 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
12795 | return resultobj; |
12796 | fail: | |
12797 | return NULL; | |
12798 | } | |
12799 | ||
12800 | ||
12801 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12802 | PyObject *resultobj; | |
12803 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12804 | size_t arg2 ; | |
12805 | wxWindow *result; | |
12806 | PyObject * obj0 = 0 ; | |
12807 | PyObject * obj1 = 0 ; | |
12808 | char *kwnames[] = { | |
12809 | (char *) "self",(char *) "n", NULL | |
12810 | }; | |
12811 | ||
12812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
12813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 12814 | { |
8edf1c75 | 12815 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
12816 | if (PyErr_Occurred()) SWIG_fail; |
12817 | } | |
d14a1e28 RD |
12818 | { |
12819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12820 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
12821 | ||
12822 | wxPyEndAllowThreads(__tstate); | |
12823 | if (PyErr_Occurred()) SWIG_fail; | |
12824 | } | |
12825 | { | |
12826 | resultobj = wxPyMake_wxObject(result); | |
12827 | } | |
12828 | return resultobj; | |
12829 | fail: | |
12830 | return NULL; | |
12831 | } | |
12832 | ||
12833 | ||
12834 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12835 | PyObject *resultobj; | |
12836 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12837 | int result; | |
12838 | PyObject * obj0 = 0 ; | |
12839 | char *kwnames[] = { | |
12840 | (char *) "self", NULL | |
12841 | }; | |
12842 | ||
12843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
12844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12845 | { | |
12846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12847 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
12848 | ||
12849 | wxPyEndAllowThreads(__tstate); | |
12850 | if (PyErr_Occurred()) SWIG_fail; | |
12851 | } | |
8edf1c75 | 12852 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12853 | return resultobj; |
12854 | fail: | |
12855 | return NULL; | |
12856 | } | |
12857 | ||
12858 | ||
12859 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12860 | PyObject *resultobj; | |
12861 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12862 | size_t arg2 ; | |
12863 | wxString *arg3 = 0 ; | |
12864 | bool result; | |
423f194a | 12865 | bool temp3 = False ; |
d14a1e28 RD |
12866 | PyObject * obj0 = 0 ; |
12867 | PyObject * obj1 = 0 ; | |
12868 | PyObject * obj2 = 0 ; | |
12869 | char *kwnames[] = { | |
12870 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
12871 | }; | |
12872 | ||
12873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 12875 | { |
8edf1c75 | 12876 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
12877 | if (PyErr_Occurred()) SWIG_fail; |
12878 | } | |
d14a1e28 RD |
12879 | { |
12880 | arg3 = wxString_in_helper(obj2); | |
12881 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12882 | temp3 = True; |
d14a1e28 RD |
12883 | } |
12884 | { | |
12885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12886 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
12887 | ||
12888 | wxPyEndAllowThreads(__tstate); | |
12889 | if (PyErr_Occurred()) SWIG_fail; | |
12890 | } | |
02a34c4c | 12891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12892 | { |
12893 | if (temp3) | |
12894 | delete arg3; | |
12895 | } | |
12896 | return resultobj; | |
12897 | fail: | |
12898 | { | |
12899 | if (temp3) | |
12900 | delete arg3; | |
12901 | } | |
12902 | return NULL; | |
12903 | } | |
12904 | ||
12905 | ||
12906 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12907 | PyObject *resultobj; | |
12908 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12909 | size_t arg2 ; | |
12910 | wxString result; | |
12911 | PyObject * obj0 = 0 ; | |
12912 | PyObject * obj1 = 0 ; | |
12913 | char *kwnames[] = { | |
12914 | (char *) "self",(char *) "n", NULL | |
12915 | }; | |
12916 | ||
12917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
12918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 12919 | { |
8edf1c75 | 12920 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
12921 | if (PyErr_Occurred()) SWIG_fail; |
12922 | } | |
d14a1e28 RD |
12923 | { |
12924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12925 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
12926 | ||
12927 | wxPyEndAllowThreads(__tstate); | |
12928 | if (PyErr_Occurred()) SWIG_fail; | |
12929 | } | |
12930 | { | |
12931 | #if wxUSE_UNICODE | |
12932 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12933 | #else | |
12934 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12935 | #endif | |
12936 | } | |
12937 | return resultobj; | |
12938 | fail: | |
12939 | return NULL; | |
12940 | } | |
12941 | ||
12942 | ||
12943 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12944 | PyObject *resultobj; | |
12945 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12946 | wxImageList *arg2 = (wxImageList *) 0 ; | |
12947 | PyObject * obj0 = 0 ; | |
12948 | PyObject * obj1 = 0 ; | |
12949 | char *kwnames[] = { | |
12950 | (char *) "self",(char *) "imageList", NULL | |
12951 | }; | |
12952 | ||
12953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
12954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12955 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12956 | { | |
12957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12958 | (arg1)->SetImageList(arg2); | |
12959 | ||
12960 | wxPyEndAllowThreads(__tstate); | |
12961 | if (PyErr_Occurred()) SWIG_fail; | |
12962 | } | |
12963 | Py_INCREF(Py_None); resultobj = Py_None; | |
12964 | return resultobj; | |
12965 | fail: | |
12966 | return NULL; | |
12967 | } | |
12968 | ||
12969 | ||
12970 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12971 | PyObject *resultobj; | |
12972 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12973 | wxImageList *arg2 = (wxImageList *) 0 ; | |
12974 | PyObject * obj0 = 0 ; | |
12975 | PyObject * obj1 = 0 ; | |
12976 | char *kwnames[] = { | |
12977 | (char *) "self",(char *) "imageList", NULL | |
12978 | }; | |
12979 | ||
12980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
12981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 12982 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
12983 | { |
12984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12985 | (arg1)->AssignImageList(arg2); | |
12986 | ||
12987 | wxPyEndAllowThreads(__tstate); | |
12988 | if (PyErr_Occurred()) SWIG_fail; | |
12989 | } | |
12990 | Py_INCREF(Py_None); resultobj = Py_None; | |
12991 | return resultobj; | |
12992 | fail: | |
12993 | return NULL; | |
12994 | } | |
12995 | ||
12996 | ||
12997 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12998 | PyObject *resultobj; | |
12999 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13000 | wxImageList *result; | |
13001 | PyObject * obj0 = 0 ; | |
13002 | char *kwnames[] = { | |
13003 | (char *) "self", NULL | |
13004 | }; | |
13005 | ||
13006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
13007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13008 | { | |
13009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13010 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
13011 | ||
13012 | wxPyEndAllowThreads(__tstate); | |
13013 | if (PyErr_Occurred()) SWIG_fail; | |
13014 | } | |
13015 | { | |
13016 | resultobj = wxPyMake_wxObject(result); | |
13017 | } | |
13018 | return resultobj; | |
13019 | fail: | |
13020 | return NULL; | |
13021 | } | |
13022 | ||
13023 | ||
13024 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13025 | PyObject *resultobj; | |
13026 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13027 | size_t arg2 ; | |
13028 | int result; | |
13029 | PyObject * obj0 = 0 ; | |
13030 | PyObject * obj1 = 0 ; | |
13031 | char *kwnames[] = { | |
13032 | (char *) "self",(char *) "n", NULL | |
13033 | }; | |
13034 | ||
13035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
13036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 13037 | { |
8edf1c75 | 13038 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
13039 | if (PyErr_Occurred()) SWIG_fail; |
13040 | } | |
d14a1e28 RD |
13041 | { |
13042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13043 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
13044 | ||
13045 | wxPyEndAllowThreads(__tstate); | |
13046 | if (PyErr_Occurred()) SWIG_fail; | |
13047 | } | |
8edf1c75 | 13048 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13049 | return resultobj; |
13050 | fail: | |
13051 | return NULL; | |
13052 | } | |
13053 | ||
13054 | ||
13055 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13056 | PyObject *resultobj; | |
13057 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13058 | size_t arg2 ; | |
13059 | int arg3 ; | |
13060 | bool result; | |
13061 | PyObject * obj0 = 0 ; | |
13062 | PyObject * obj1 = 0 ; | |
8edf1c75 | 13063 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13064 | char *kwnames[] = { |
13065 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
13066 | }; | |
13067 | ||
8edf1c75 | 13068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 13070 | { |
8edf1c75 RD |
13071 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
13072 | if (PyErr_Occurred()) SWIG_fail; | |
13073 | } | |
13074 | { | |
13075 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2dbef272 RD |
13076 | if (PyErr_Occurred()) SWIG_fail; |
13077 | } | |
d14a1e28 RD |
13078 | { |
13079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13080 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
13081 | ||
13082 | wxPyEndAllowThreads(__tstate); | |
13083 | if (PyErr_Occurred()) SWIG_fail; | |
13084 | } | |
02a34c4c | 13085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13086 | return resultobj; |
13087 | fail: | |
13088 | return NULL; | |
13089 | } | |
13090 | ||
13091 | ||
13092 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13093 | PyObject *resultobj; | |
13094 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13095 | wxSize *arg2 = 0 ; | |
13096 | wxSize temp2 ; | |
13097 | PyObject * obj0 = 0 ; | |
13098 | PyObject * obj1 = 0 ; | |
13099 | char *kwnames[] = { | |
13100 | (char *) "self",(char *) "size", NULL | |
13101 | }; | |
13102 | ||
13103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
13104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13105 | { | |
13106 | arg2 = &temp2; | |
13107 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13108 | } | |
13109 | { | |
13110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13111 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
13112 | ||
13113 | wxPyEndAllowThreads(__tstate); | |
13114 | if (PyErr_Occurred()) SWIG_fail; | |
13115 | } | |
13116 | Py_INCREF(Py_None); resultobj = Py_None; | |
13117 | return resultobj; | |
13118 | fail: | |
13119 | return NULL; | |
13120 | } | |
13121 | ||
13122 | ||
13123 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13124 | PyObject *resultobj; | |
13125 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13126 | wxSize *arg2 = 0 ; | |
13127 | wxSize result; | |
13128 | wxSize temp2 ; | |
13129 | PyObject * obj0 = 0 ; | |
13130 | PyObject * obj1 = 0 ; | |
13131 | char *kwnames[] = { | |
13132 | (char *) "self",(char *) "sizePage", NULL | |
13133 | }; | |
13134 | ||
13135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
13136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13137 | { | |
13138 | arg2 = &temp2; | |
13139 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13140 | } | |
13141 | { | |
13142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13143 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13144 | ||
13145 | wxPyEndAllowThreads(__tstate); | |
13146 | if (PyErr_Occurred()) SWIG_fail; | |
13147 | } | |
13148 | { | |
13149 | wxSize * resultptr; | |
13150 | resultptr = new wxSize((wxSize &) result); | |
13151 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13152 | } | |
13153 | return resultobj; | |
13154 | fail: | |
13155 | return NULL; | |
13156 | } | |
13157 | ||
13158 | ||
13159 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13160 | PyObject *resultobj; | |
13161 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13162 | size_t arg2 ; | |
13163 | bool result; | |
13164 | PyObject * obj0 = 0 ; | |
13165 | PyObject * obj1 = 0 ; | |
13166 | char *kwnames[] = { | |
13167 | (char *) "self",(char *) "n", NULL | |
13168 | }; | |
13169 | ||
13170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
13171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 13172 | { |
8edf1c75 | 13173 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
13174 | if (PyErr_Occurred()) SWIG_fail; |
13175 | } | |
d14a1e28 RD |
13176 | { |
13177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13178 | result = (bool)(arg1)->DeletePage(arg2); | |
13179 | ||
13180 | wxPyEndAllowThreads(__tstate); | |
13181 | if (PyErr_Occurred()) SWIG_fail; | |
13182 | } | |
02a34c4c | 13183 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13184 | return resultobj; |
13185 | fail: | |
13186 | return NULL; | |
13187 | } | |
13188 | ||
13189 | ||
13190 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13191 | PyObject *resultobj; | |
13192 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13193 | size_t arg2 ; | |
13194 | bool result; | |
13195 | PyObject * obj0 = 0 ; | |
13196 | PyObject * obj1 = 0 ; | |
13197 | char *kwnames[] = { | |
13198 | (char *) "self",(char *) "n", NULL | |
13199 | }; | |
13200 | ||
13201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
13202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 13203 | { |
8edf1c75 | 13204 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
13205 | if (PyErr_Occurred()) SWIG_fail; |
13206 | } | |
d14a1e28 RD |
13207 | { |
13208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13209 | result = (bool)(arg1)->RemovePage(arg2); | |
13210 | ||
13211 | wxPyEndAllowThreads(__tstate); | |
13212 | if (PyErr_Occurred()) SWIG_fail; | |
13213 | } | |
02a34c4c | 13214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13215 | return resultobj; |
13216 | fail: | |
13217 | return NULL; | |
13218 | } | |
13219 | ||
13220 | ||
13221 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13222 | PyObject *resultobj; | |
13223 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13224 | bool result; | |
13225 | PyObject * obj0 = 0 ; | |
13226 | char *kwnames[] = { | |
13227 | (char *) "self", NULL | |
13228 | }; | |
13229 | ||
13230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
13231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13232 | { | |
13233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13234 | result = (bool)(arg1)->DeleteAllPages(); | |
13235 | ||
13236 | wxPyEndAllowThreads(__tstate); | |
13237 | if (PyErr_Occurred()) SWIG_fail; | |
13238 | } | |
02a34c4c | 13239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13240 | return resultobj; |
13241 | fail: | |
13242 | return NULL; | |
13243 | } | |
13244 | ||
13245 | ||
13246 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13247 | PyObject *resultobj; | |
13248 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13249 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13250 | wxString *arg3 = 0 ; | |
423f194a | 13251 | bool arg4 = (bool) False ; |
d14a1e28 RD |
13252 | int arg5 = (int) -1 ; |
13253 | bool result; | |
423f194a | 13254 | bool temp3 = False ; |
d14a1e28 RD |
13255 | PyObject * obj0 = 0 ; |
13256 | PyObject * obj1 = 0 ; | |
13257 | PyObject * obj2 = 0 ; | |
13258 | PyObject * obj3 = 0 ; | |
8edf1c75 | 13259 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13260 | char *kwnames[] = { |
13261 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13262 | }; | |
13263 | ||
8edf1c75 | 13264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
13265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13266 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13267 | { | |
13268 | arg3 = wxString_in_helper(obj2); | |
13269 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13270 | temp3 = True; |
d14a1e28 RD |
13271 | } |
13272 | if (obj3) { | |
2dbef272 | 13273 | { |
8edf1c75 RD |
13274 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
13275 | if (PyErr_Occurred()) SWIG_fail; | |
13276 | } | |
13277 | } | |
13278 | if (obj4) { | |
13279 | { | |
13280 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
2dbef272 RD |
13281 | if (PyErr_Occurred()) SWIG_fail; |
13282 | } | |
d14a1e28 RD |
13283 | } |
13284 | { | |
13285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13286 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
13287 | ||
13288 | wxPyEndAllowThreads(__tstate); | |
13289 | if (PyErr_Occurred()) SWIG_fail; | |
13290 | } | |
02a34c4c | 13291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13292 | { |
13293 | if (temp3) | |
13294 | delete arg3; | |
13295 | } | |
13296 | return resultobj; | |
13297 | fail: | |
13298 | { | |
13299 | if (temp3) | |
13300 | delete arg3; | |
13301 | } | |
13302 | return NULL; | |
13303 | } | |
13304 | ||
13305 | ||
13306 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13307 | PyObject *resultobj; | |
13308 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13309 | size_t arg2 ; | |
13310 | wxWindow *arg3 = (wxWindow *) 0 ; | |
13311 | wxString *arg4 = 0 ; | |
423f194a | 13312 | bool arg5 = (bool) False ; |
d14a1e28 RD |
13313 | int arg6 = (int) -1 ; |
13314 | bool result; | |
423f194a | 13315 | bool temp4 = False ; |
d14a1e28 RD |
13316 | PyObject * obj0 = 0 ; |
13317 | PyObject * obj1 = 0 ; | |
13318 | PyObject * obj2 = 0 ; | |
13319 | PyObject * obj3 = 0 ; | |
13320 | PyObject * obj4 = 0 ; | |
8edf1c75 | 13321 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13322 | char *kwnames[] = { |
13323 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13324 | }; | |
13325 | ||
8edf1c75 | 13326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 13327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 13328 | { |
8edf1c75 | 13329 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
13330 | if (PyErr_Occurred()) SWIG_fail; |
13331 | } | |
d14a1e28 RD |
13332 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13333 | { | |
13334 | arg4 = wxString_in_helper(obj3); | |
13335 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13336 | temp4 = True; |
d14a1e28 RD |
13337 | } |
13338 | if (obj4) { | |
2dbef272 | 13339 | { |
8edf1c75 RD |
13340 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
13341 | if (PyErr_Occurred()) SWIG_fail; | |
13342 | } | |
13343 | } | |
13344 | if (obj5) { | |
13345 | { | |
13346 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
2dbef272 RD |
13347 | if (PyErr_Occurred()) SWIG_fail; |
13348 | } | |
d14a1e28 RD |
13349 | } |
13350 | { | |
13351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13352 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
13353 | ||
13354 | wxPyEndAllowThreads(__tstate); | |
13355 | if (PyErr_Occurred()) SWIG_fail; | |
13356 | } | |
02a34c4c | 13357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13358 | { |
13359 | if (temp4) | |
13360 | delete arg4; | |
13361 | } | |
13362 | return resultobj; | |
13363 | fail: | |
13364 | { | |
13365 | if (temp4) | |
13366 | delete arg4; | |
13367 | } | |
13368 | return NULL; | |
13369 | } | |
13370 | ||
13371 | ||
13372 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13373 | PyObject *resultobj; | |
13374 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13375 | size_t arg2 ; | |
13376 | int result; | |
13377 | PyObject * obj0 = 0 ; | |
13378 | PyObject * obj1 = 0 ; | |
13379 | char *kwnames[] = { | |
13380 | (char *) "self",(char *) "n", NULL | |
13381 | }; | |
13382 | ||
13383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
13384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 13385 | { |
8edf1c75 | 13386 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
13387 | if (PyErr_Occurred()) SWIG_fail; |
13388 | } | |
d14a1e28 RD |
13389 | { |
13390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13391 | result = (int)(arg1)->SetSelection(arg2); | |
13392 | ||
13393 | wxPyEndAllowThreads(__tstate); | |
13394 | if (PyErr_Occurred()) SWIG_fail; | |
13395 | } | |
8edf1c75 | 13396 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13397 | return resultobj; |
13398 | fail: | |
13399 | return NULL; | |
13400 | } | |
13401 | ||
13402 | ||
13403 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13404 | PyObject *resultobj; | |
13405 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
423f194a | 13406 | bool arg2 = (bool) True ; |
d14a1e28 RD |
13407 | PyObject * obj0 = 0 ; |
13408 | PyObject * obj1 = 0 ; | |
13409 | char *kwnames[] = { | |
13410 | (char *) "self",(char *) "forward", NULL | |
13411 | }; | |
13412 | ||
13413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
13414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13415 | if (obj1) { | |
2dbef272 | 13416 | { |
8edf1c75 | 13417 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
13418 | if (PyErr_Occurred()) SWIG_fail; |
13419 | } | |
d14a1e28 RD |
13420 | } |
13421 | { | |
13422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13423 | (arg1)->AdvanceSelection(arg2); | |
13424 | ||
13425 | wxPyEndAllowThreads(__tstate); | |
13426 | if (PyErr_Occurred()) SWIG_fail; | |
13427 | } | |
13428 | Py_INCREF(Py_None); resultobj = Py_None; | |
13429 | return resultobj; | |
13430 | fail: | |
13431 | return NULL; | |
13432 | } | |
13433 | ||
13434 | ||
13435 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
13436 | PyObject *obj; | |
13437 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13438 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
13439 | Py_INCREF(obj); | |
13440 | return Py_BuildValue((char *)""); | |
13441 | } | |
13442 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13443 | PyObject *resultobj; | |
13444 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13445 | int arg2 = (int) 0 ; | |
13446 | int arg3 = (int) -1 ; | |
13447 | int arg4 = (int) -1 ; | |
13448 | wxBookCtrlEvent *result; | |
8edf1c75 RD |
13449 | PyObject * obj0 = 0 ; |
13450 | PyObject * obj1 = 0 ; | |
13451 | PyObject * obj2 = 0 ; | |
13452 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13453 | char *kwnames[] = { |
13454 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13455 | }; | |
13456 | ||
8edf1c75 RD |
13457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13458 | if (obj0) { | |
13459 | { | |
13460 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13461 | if (PyErr_Occurred()) SWIG_fail; | |
13462 | } | |
13463 | } | |
13464 | if (obj1) { | |
13465 | { | |
13466 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13467 | if (PyErr_Occurred()) SWIG_fail; | |
13468 | } | |
13469 | } | |
13470 | if (obj2) { | |
13471 | { | |
13472 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13473 | if (PyErr_Occurred()) SWIG_fail; | |
13474 | } | |
13475 | } | |
13476 | if (obj3) { | |
13477 | { | |
13478 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
13479 | if (PyErr_Occurred()) SWIG_fail; | |
13480 | } | |
13481 | } | |
d14a1e28 RD |
13482 | { |
13483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13484 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
13485 | ||
13486 | wxPyEndAllowThreads(__tstate); | |
13487 | if (PyErr_Occurred()) SWIG_fail; | |
13488 | } | |
13489 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlEvent, 1); | |
13490 | return resultobj; | |
13491 | fail: | |
13492 | return NULL; | |
13493 | } | |
13494 | ||
13495 | ||
13496 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13497 | PyObject *resultobj; | |
13498 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13499 | int result; | |
13500 | PyObject * obj0 = 0 ; | |
13501 | char *kwnames[] = { | |
13502 | (char *) "self", NULL | |
13503 | }; | |
13504 | ||
13505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
13506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13507 | { | |
13508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13509 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
13510 | ||
13511 | wxPyEndAllowThreads(__tstate); | |
13512 | if (PyErr_Occurred()) SWIG_fail; | |
13513 | } | |
8edf1c75 | 13514 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13515 | return resultobj; |
13516 | fail: | |
13517 | return NULL; | |
13518 | } | |
13519 | ||
13520 | ||
13521 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13522 | PyObject *resultobj; | |
13523 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13524 | int arg2 ; | |
13525 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13526 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13527 | char *kwnames[] = { |
13528 | (char *) "self",(char *) "nSel", NULL | |
13529 | }; | |
13530 | ||
8edf1c75 | 13531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13533 | { |
13534 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13535 | if (PyErr_Occurred()) SWIG_fail; | |
13536 | } | |
d14a1e28 RD |
13537 | { |
13538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13539 | (arg1)->SetSelection(arg2); | |
13540 | ||
13541 | wxPyEndAllowThreads(__tstate); | |
13542 | if (PyErr_Occurred()) SWIG_fail; | |
13543 | } | |
13544 | Py_INCREF(Py_None); resultobj = Py_None; | |
13545 | return resultobj; | |
13546 | fail: | |
13547 | return NULL; | |
13548 | } | |
13549 | ||
13550 | ||
13551 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13552 | PyObject *resultobj; | |
13553 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13554 | int result; | |
13555 | PyObject * obj0 = 0 ; | |
13556 | char *kwnames[] = { | |
13557 | (char *) "self", NULL | |
13558 | }; | |
13559 | ||
13560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
13561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13562 | { | |
13563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13564 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
13565 | ||
13566 | wxPyEndAllowThreads(__tstate); | |
13567 | if (PyErr_Occurred()) SWIG_fail; | |
13568 | } | |
8edf1c75 | 13569 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13570 | return resultobj; |
13571 | fail: | |
13572 | return NULL; | |
13573 | } | |
13574 | ||
13575 | ||
13576 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13577 | PyObject *resultobj; | |
13578 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13579 | int arg2 ; | |
13580 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13581 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13582 | char *kwnames[] = { |
13583 | (char *) "self",(char *) "nOldSel", NULL | |
13584 | }; | |
13585 | ||
8edf1c75 | 13586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13588 | { |
13589 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13590 | if (PyErr_Occurred()) SWIG_fail; | |
13591 | } | |
d14a1e28 RD |
13592 | { |
13593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13594 | (arg1)->SetOldSelection(arg2); | |
13595 | ||
13596 | wxPyEndAllowThreads(__tstate); | |
13597 | if (PyErr_Occurred()) SWIG_fail; | |
13598 | } | |
13599 | Py_INCREF(Py_None); resultobj = Py_None; | |
13600 | return resultobj; | |
13601 | fail: | |
13602 | return NULL; | |
13603 | } | |
13604 | ||
13605 | ||
13606 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
13607 | PyObject *obj; | |
13608 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13609 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
13610 | Py_INCREF(obj); | |
13611 | return Py_BuildValue((char *)""); | |
13612 | } | |
13613 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13614 | PyObject *resultobj; | |
13615 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 13616 | int arg2 ; |
d14a1e28 RD |
13617 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
13618 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13619 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13620 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13621 | long arg5 = (long) 0 ; | |
13622 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
13623 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13624 | wxNotebook *result; | |
13625 | wxPoint temp3 ; | |
13626 | wxSize temp4 ; | |
423f194a | 13627 | bool temp6 = False ; |
d14a1e28 | 13628 | PyObject * obj0 = 0 ; |
8edf1c75 | 13629 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13630 | PyObject * obj2 = 0 ; |
13631 | PyObject * obj3 = 0 ; | |
8edf1c75 | 13632 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13633 | PyObject * obj5 = 0 ; |
13634 | char *kwnames[] = { | |
13635 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13636 | }; | |
13637 | ||
8edf1c75 | 13638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 13639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13640 | { |
13641 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13642 | if (PyErr_Occurred()) SWIG_fail; | |
13643 | } | |
d14a1e28 RD |
13644 | if (obj2) { |
13645 | { | |
13646 | arg3 = &temp3; | |
13647 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13648 | } | |
13649 | } | |
13650 | if (obj3) { | |
13651 | { | |
13652 | arg4 = &temp4; | |
13653 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
13654 | } | |
13655 | } | |
8edf1c75 RD |
13656 | if (obj4) { |
13657 | { | |
13658 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
13659 | if (PyErr_Occurred()) SWIG_fail; | |
13660 | } | |
13661 | } | |
d14a1e28 RD |
13662 | if (obj5) { |
13663 | { | |
13664 | arg6 = wxString_in_helper(obj5); | |
13665 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 13666 | temp6 = True; |
d14a1e28 RD |
13667 | } |
13668 | } | |
13669 | { | |
13670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13671 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
13672 | ||
13673 | wxPyEndAllowThreads(__tstate); | |
13674 | if (PyErr_Occurred()) SWIG_fail; | |
13675 | } | |
13676 | { | |
13677 | resultobj = wxPyMake_wxObject(result); | |
13678 | } | |
13679 | { | |
13680 | if (temp6) | |
13681 | delete arg6; | |
13682 | } | |
13683 | return resultobj; | |
13684 | fail: | |
13685 | { | |
13686 | if (temp6) | |
13687 | delete arg6; | |
13688 | } | |
13689 | return NULL; | |
13690 | } | |
13691 | ||
13692 | ||
13693 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13694 | PyObject *resultobj; | |
13695 | wxNotebook *result; | |
13696 | char *kwnames[] = { | |
13697 | NULL | |
13698 | }; | |
13699 | ||
13700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
13701 | { | |
13702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13703 | result = (wxNotebook *)new wxNotebook(); | |
13704 | ||
13705 | wxPyEndAllowThreads(__tstate); | |
13706 | if (PyErr_Occurred()) SWIG_fail; | |
13707 | } | |
13708 | { | |
13709 | resultobj = wxPyMake_wxObject(result); | |
13710 | } | |
13711 | return resultobj; | |
13712 | fail: | |
13713 | return NULL; | |
13714 | } | |
13715 | ||
13716 | ||
13717 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13718 | PyObject *resultobj; | |
13719 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13720 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 13721 | int arg3 ; |
d14a1e28 RD |
13722 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13723 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13724 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13725 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13726 | long arg6 = (long) 0 ; | |
13727 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
13728 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13729 | bool result; | |
13730 | wxPoint temp4 ; | |
13731 | wxSize temp5 ; | |
423f194a | 13732 | bool temp7 = False ; |
d14a1e28 RD |
13733 | PyObject * obj0 = 0 ; |
13734 | PyObject * obj1 = 0 ; | |
8edf1c75 | 13735 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13736 | PyObject * obj3 = 0 ; |
13737 | PyObject * obj4 = 0 ; | |
8edf1c75 | 13738 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13739 | PyObject * obj6 = 0 ; |
13740 | char *kwnames[] = { | |
13741 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13742 | }; | |
13743 | ||
8edf1c75 | 13744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
13745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13746 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
13747 | { |
13748 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13749 | if (PyErr_Occurred()) SWIG_fail; | |
13750 | } | |
d14a1e28 RD |
13751 | if (obj3) { |
13752 | { | |
13753 | arg4 = &temp4; | |
13754 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13755 | } | |
13756 | } | |
13757 | if (obj4) { | |
13758 | { | |
13759 | arg5 = &temp5; | |
13760 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13761 | } | |
13762 | } | |
8edf1c75 RD |
13763 | if (obj5) { |
13764 | { | |
13765 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
13766 | if (PyErr_Occurred()) SWIG_fail; | |
13767 | } | |
13768 | } | |
d14a1e28 RD |
13769 | if (obj6) { |
13770 | { | |
13771 | arg7 = wxString_in_helper(obj6); | |
13772 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 13773 | temp7 = True; |
d14a1e28 RD |
13774 | } |
13775 | } | |
13776 | { | |
13777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13778 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
13779 | ||
13780 | wxPyEndAllowThreads(__tstate); | |
13781 | if (PyErr_Occurred()) SWIG_fail; | |
13782 | } | |
02a34c4c | 13783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13784 | { |
13785 | if (temp7) | |
13786 | delete arg7; | |
13787 | } | |
13788 | return resultobj; | |
13789 | fail: | |
13790 | { | |
13791 | if (temp7) | |
13792 | delete arg7; | |
13793 | } | |
13794 | return NULL; | |
13795 | } | |
13796 | ||
13797 | ||
13798 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13799 | PyObject *resultobj; | |
13800 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13801 | int result; | |
13802 | PyObject * obj0 = 0 ; | |
13803 | char *kwnames[] = { | |
13804 | (char *) "self", NULL | |
13805 | }; | |
13806 | ||
13807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
13808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13809 | { | |
13810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13811 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
13812 | ||
13813 | wxPyEndAllowThreads(__tstate); | |
13814 | if (PyErr_Occurred()) SWIG_fail; | |
13815 | } | |
8edf1c75 | 13816 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13817 | return resultobj; |
13818 | fail: | |
13819 | return NULL; | |
13820 | } | |
13821 | ||
13822 | ||
13823 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13824 | PyObject *resultobj; | |
13825 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13826 | wxSize *arg2 = 0 ; | |
13827 | wxSize temp2 ; | |
13828 | PyObject * obj0 = 0 ; | |
13829 | PyObject * obj1 = 0 ; | |
13830 | char *kwnames[] = { | |
13831 | (char *) "self",(char *) "padding", NULL | |
13832 | }; | |
13833 | ||
13834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
13835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13836 | { | |
13837 | arg2 = &temp2; | |
13838 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13839 | } | |
13840 | { | |
13841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13842 | (arg1)->SetPadding((wxSize const &)*arg2); | |
13843 | ||
13844 | wxPyEndAllowThreads(__tstate); | |
13845 | if (PyErr_Occurred()) SWIG_fail; | |
13846 | } | |
13847 | Py_INCREF(Py_None); resultobj = Py_None; | |
13848 | return resultobj; | |
13849 | fail: | |
13850 | return NULL; | |
13851 | } | |
13852 | ||
13853 | ||
13854 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13855 | PyObject *resultobj; | |
13856 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13857 | wxSize *arg2 = 0 ; | |
13858 | wxSize temp2 ; | |
13859 | PyObject * obj0 = 0 ; | |
13860 | PyObject * obj1 = 0 ; | |
13861 | char *kwnames[] = { | |
13862 | (char *) "self",(char *) "sz", NULL | |
13863 | }; | |
13864 | ||
13865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
13866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13867 | { | |
13868 | arg2 = &temp2; | |
13869 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13870 | } | |
13871 | { | |
13872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13873 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
13874 | ||
13875 | wxPyEndAllowThreads(__tstate); | |
13876 | if (PyErr_Occurred()) SWIG_fail; | |
13877 | } | |
13878 | Py_INCREF(Py_None); resultobj = Py_None; | |
13879 | return resultobj; | |
13880 | fail: | |
13881 | return NULL; | |
13882 | } | |
13883 | ||
13884 | ||
13885 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13886 | PyObject *resultobj; | |
13887 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13888 | wxPoint *arg2 = 0 ; | |
13889 | long *arg3 = (long *) 0 ; | |
13890 | int result; | |
13891 | wxPoint temp2 ; | |
13892 | long temp3 ; | |
13893 | PyObject * obj0 = 0 ; | |
13894 | PyObject * obj1 = 0 ; | |
13895 | char *kwnames[] = { | |
13896 | (char *) "self",(char *) "pt", NULL | |
13897 | }; | |
13898 | ||
13899 | arg3 = &temp3; | |
13900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
13901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13902 | { | |
13903 | arg2 = &temp2; | |
13904 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13905 | } | |
13906 | { | |
13907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13908 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
13909 | ||
13910 | wxPyEndAllowThreads(__tstate); | |
13911 | if (PyErr_Occurred()) SWIG_fail; | |
13912 | } | |
8edf1c75 | 13913 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13914 | { |
13915 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13916 | resultobj = t_output_helper(resultobj,o); | |
13917 | } | |
13918 | return resultobj; | |
13919 | fail: | |
13920 | return NULL; | |
13921 | } | |
13922 | ||
13923 | ||
13924 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13925 | PyObject *resultobj; | |
13926 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13927 | wxSize *arg2 = 0 ; | |
13928 | wxSize result; | |
13929 | wxSize temp2 ; | |
13930 | PyObject * obj0 = 0 ; | |
13931 | PyObject * obj1 = 0 ; | |
13932 | char *kwnames[] = { | |
13933 | (char *) "self",(char *) "sizePage", NULL | |
13934 | }; | |
13935 | ||
13936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
13937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13938 | { | |
13939 | arg2 = &temp2; | |
13940 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13941 | } | |
13942 | { | |
13943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13944 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13945 | ||
13946 | wxPyEndAllowThreads(__tstate); | |
13947 | if (PyErr_Occurred()) SWIG_fail; | |
13948 | } | |
13949 | { | |
13950 | wxSize * resultptr; | |
13951 | resultptr = new wxSize((wxSize &) result); | |
13952 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13953 | } | |
13954 | return resultobj; | |
13955 | fail: | |
13956 | return NULL; | |
13957 | } | |
13958 | ||
13959 | ||
13960 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
13961 | PyObject *obj; | |
13962 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13963 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
13964 | Py_INCREF(obj); | |
13965 | return Py_BuildValue((char *)""); | |
13966 | } | |
13967 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13968 | PyObject *resultobj; | |
13969 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13970 | int arg2 = (int) 0 ; | |
13971 | int arg3 = (int) -1 ; | |
13972 | int arg4 = (int) -1 ; | |
13973 | wxNotebookEvent *result; | |
8edf1c75 RD |
13974 | PyObject * obj0 = 0 ; |
13975 | PyObject * obj1 = 0 ; | |
13976 | PyObject * obj2 = 0 ; | |
13977 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13978 | char *kwnames[] = { |
13979 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13980 | }; | |
13981 | ||
8edf1c75 RD |
13982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13983 | if (obj0) { | |
13984 | { | |
13985 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13986 | if (PyErr_Occurred()) SWIG_fail; | |
13987 | } | |
13988 | } | |
13989 | if (obj1) { | |
13990 | { | |
13991 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13992 | if (PyErr_Occurred()) SWIG_fail; | |
13993 | } | |
13994 | } | |
13995 | if (obj2) { | |
13996 | { | |
13997 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13998 | if (PyErr_Occurred()) SWIG_fail; | |
13999 | } | |
14000 | } | |
14001 | if (obj3) { | |
14002 | { | |
14003 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14004 | if (PyErr_Occurred()) SWIG_fail; | |
14005 | } | |
14006 | } | |
d14a1e28 RD |
14007 | { |
14008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14009 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
14010 | ||
14011 | wxPyEndAllowThreads(__tstate); | |
14012 | if (PyErr_Occurred()) SWIG_fail; | |
14013 | } | |
14014 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookEvent, 1); | |
14015 | return resultobj; | |
14016 | fail: | |
14017 | return NULL; | |
14018 | } | |
14019 | ||
14020 | ||
14021 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
14022 | PyObject *obj; | |
14023 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14024 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
14025 | Py_INCREF(obj); | |
14026 | return Py_BuildValue((char *)""); | |
14027 | } | |
14028 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14029 | PyObject *resultobj; | |
14030 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 14031 | int arg2 ; |
d14a1e28 RD |
14032 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14033 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14034 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14035 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14036 | long arg5 = (long) 0 ; | |
14037 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
14038 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14039 | wxListbook *result; | |
14040 | wxPoint temp3 ; | |
14041 | wxSize temp4 ; | |
423f194a | 14042 | bool temp6 = False ; |
d14a1e28 | 14043 | PyObject * obj0 = 0 ; |
8edf1c75 | 14044 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14045 | PyObject * obj2 = 0 ; |
14046 | PyObject * obj3 = 0 ; | |
8edf1c75 | 14047 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14048 | PyObject * obj5 = 0 ; |
14049 | char *kwnames[] = { | |
14050 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14051 | }; | |
14052 | ||
8edf1c75 | 14053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 14054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14055 | { |
14056 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14057 | if (PyErr_Occurred()) SWIG_fail; | |
14058 | } | |
d14a1e28 RD |
14059 | if (obj2) { |
14060 | { | |
14061 | arg3 = &temp3; | |
14062 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14063 | } | |
14064 | } | |
14065 | if (obj3) { | |
14066 | { | |
14067 | arg4 = &temp4; | |
14068 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14069 | } | |
14070 | } | |
8edf1c75 RD |
14071 | if (obj4) { |
14072 | { | |
14073 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
14074 | if (PyErr_Occurred()) SWIG_fail; | |
14075 | } | |
14076 | } | |
d14a1e28 RD |
14077 | if (obj5) { |
14078 | { | |
14079 | arg6 = wxString_in_helper(obj5); | |
14080 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 14081 | temp6 = True; |
d14a1e28 RD |
14082 | } |
14083 | } | |
14084 | { | |
14085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14086 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14087 | ||
14088 | wxPyEndAllowThreads(__tstate); | |
14089 | if (PyErr_Occurred()) SWIG_fail; | |
14090 | } | |
14091 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
14092 | { | |
14093 | if (temp6) | |
14094 | delete arg6; | |
14095 | } | |
14096 | return resultobj; | |
14097 | fail: | |
14098 | { | |
14099 | if (temp6) | |
14100 | delete arg6; | |
14101 | } | |
14102 | return NULL; | |
14103 | } | |
14104 | ||
14105 | ||
14106 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14107 | PyObject *resultobj; | |
14108 | wxListbook *result; | |
14109 | char *kwnames[] = { | |
14110 | NULL | |
14111 | }; | |
14112 | ||
14113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
14114 | { | |
14115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14116 | result = (wxListbook *)new wxListbook(); | |
14117 | ||
14118 | wxPyEndAllowThreads(__tstate); | |
14119 | if (PyErr_Occurred()) SWIG_fail; | |
14120 | } | |
14121 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
14122 | return resultobj; | |
14123 | fail: | |
14124 | return NULL; | |
14125 | } | |
14126 | ||
14127 | ||
14128 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14129 | PyObject *resultobj; | |
14130 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14131 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14132 | int arg3 ; |
d14a1e28 RD |
14133 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14134 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14135 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14136 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14137 | long arg6 = (long) 0 ; | |
14138 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
14139 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14140 | bool result; | |
14141 | wxPoint temp4 ; | |
14142 | wxSize temp5 ; | |
423f194a | 14143 | bool temp7 = False ; |
d14a1e28 RD |
14144 | PyObject * obj0 = 0 ; |
14145 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14146 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14147 | PyObject * obj3 = 0 ; |
14148 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14149 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14150 | PyObject * obj6 = 0 ; |
14151 | char *kwnames[] = { | |
14152 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14153 | }; | |
14154 | ||
8edf1c75 | 14155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
14156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14157 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
14158 | { |
14159 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14160 | if (PyErr_Occurred()) SWIG_fail; | |
14161 | } | |
d14a1e28 RD |
14162 | if (obj3) { |
14163 | { | |
14164 | arg4 = &temp4; | |
14165 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14166 | } | |
14167 | } | |
14168 | if (obj4) { | |
14169 | { | |
14170 | arg5 = &temp5; | |
14171 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14172 | } | |
14173 | } | |
8edf1c75 RD |
14174 | if (obj5) { |
14175 | { | |
14176 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
14177 | if (PyErr_Occurred()) SWIG_fail; | |
14178 | } | |
14179 | } | |
d14a1e28 RD |
14180 | if (obj6) { |
14181 | { | |
14182 | arg7 = wxString_in_helper(obj6); | |
14183 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14184 | temp7 = True; |
d14a1e28 RD |
14185 | } |
14186 | } | |
14187 | { | |
14188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14189 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14190 | ||
14191 | wxPyEndAllowThreads(__tstate); | |
14192 | if (PyErr_Occurred()) SWIG_fail; | |
14193 | } | |
02a34c4c | 14194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14195 | { |
14196 | if (temp7) | |
14197 | delete arg7; | |
14198 | } | |
14199 | return resultobj; | |
14200 | fail: | |
14201 | { | |
14202 | if (temp7) | |
14203 | delete arg7; | |
14204 | } | |
14205 | return NULL; | |
14206 | } | |
14207 | ||
14208 | ||
14209 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14210 | PyObject *resultobj; | |
14211 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14212 | bool result; | |
14213 | PyObject * obj0 = 0 ; | |
14214 | char *kwnames[] = { | |
14215 | (char *) "self", NULL | |
14216 | }; | |
14217 | ||
14218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
14219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14220 | { | |
14221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14222 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
14223 | ||
14224 | wxPyEndAllowThreads(__tstate); | |
14225 | if (PyErr_Occurred()) SWIG_fail; | |
14226 | } | |
02a34c4c | 14227 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14228 | return resultobj; |
14229 | fail: | |
14230 | return NULL; | |
14231 | } | |
14232 | ||
14233 | ||
14234 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
14235 | PyObject *obj; | |
14236 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14237 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
14238 | Py_INCREF(obj); | |
14239 | return Py_BuildValue((char *)""); | |
14240 | } | |
14241 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14242 | PyObject *resultobj; | |
14243 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14244 | int arg2 = (int) 0 ; | |
14245 | int arg3 = (int) -1 ; | |
14246 | int arg4 = (int) -1 ; | |
14247 | wxListbookEvent *result; | |
8edf1c75 RD |
14248 | PyObject * obj0 = 0 ; |
14249 | PyObject * obj1 = 0 ; | |
14250 | PyObject * obj2 = 0 ; | |
14251 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14252 | char *kwnames[] = { |
14253 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14254 | }; | |
14255 | ||
8edf1c75 RD |
14256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14257 | if (obj0) { | |
14258 | { | |
14259 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
14260 | if (PyErr_Occurred()) SWIG_fail; | |
14261 | } | |
14262 | } | |
14263 | if (obj1) { | |
14264 | { | |
14265 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14266 | if (PyErr_Occurred()) SWIG_fail; | |
14267 | } | |
14268 | } | |
14269 | if (obj2) { | |
14270 | { | |
14271 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14272 | if (PyErr_Occurred()) SWIG_fail; | |
14273 | } | |
14274 | } | |
14275 | if (obj3) { | |
14276 | { | |
14277 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14278 | if (PyErr_Occurred()) SWIG_fail; | |
14279 | } | |
14280 | } | |
d14a1e28 RD |
14281 | { |
14282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14283 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
14284 | ||
14285 | wxPyEndAllowThreads(__tstate); | |
14286 | if (PyErr_Occurred()) SWIG_fail; | |
14287 | } | |
14288 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbookEvent, 1); | |
14289 | return resultobj; | |
14290 | fail: | |
14291 | return NULL; | |
14292 | } | |
14293 | ||
14294 | ||
14295 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
14296 | PyObject *obj; | |
14297 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14298 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
14299 | Py_INCREF(obj); | |
14300 | return Py_BuildValue((char *)""); | |
14301 | } | |
14302 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14303 | PyObject *resultobj; | |
14304 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14305 | wxBookCtrlSizer *result; | |
14306 | PyObject * obj0 = 0 ; | |
14307 | char *kwnames[] = { | |
14308 | (char *) "nb", NULL | |
14309 | }; | |
14310 | ||
14311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
14312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14313 | { | |
14314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14315 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
14316 | ||
14317 | wxPyEndAllowThreads(__tstate); | |
14318 | if (PyErr_Occurred()) SWIG_fail; | |
14319 | } | |
14320 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlSizer, 1); | |
14321 | return resultobj; | |
14322 | fail: | |
14323 | return NULL; | |
14324 | } | |
14325 | ||
14326 | ||
14327 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14328 | PyObject *resultobj; | |
14329 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14330 | PyObject * obj0 = 0 ; | |
14331 | char *kwnames[] = { | |
14332 | (char *) "self", NULL | |
14333 | }; | |
14334 | ||
14335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14337 | { | |
14338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14339 | (arg1)->RecalcSizes(); | |
14340 | ||
14341 | wxPyEndAllowThreads(__tstate); | |
14342 | if (PyErr_Occurred()) SWIG_fail; | |
14343 | } | |
14344 | Py_INCREF(Py_None); resultobj = Py_None; | |
14345 | return resultobj; | |
14346 | fail: | |
14347 | return NULL; | |
14348 | } | |
14349 | ||
14350 | ||
14351 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14352 | PyObject *resultobj; | |
14353 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14354 | wxSize result; | |
14355 | PyObject * obj0 = 0 ; | |
14356 | char *kwnames[] = { | |
14357 | (char *) "self", NULL | |
14358 | }; | |
14359 | ||
14360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14362 | { | |
14363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14364 | result = (arg1)->CalcMin(); | |
14365 | ||
14366 | wxPyEndAllowThreads(__tstate); | |
14367 | if (PyErr_Occurred()) SWIG_fail; | |
14368 | } | |
14369 | { | |
14370 | wxSize * resultptr; | |
14371 | resultptr = new wxSize((wxSize &) result); | |
14372 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14373 | } | |
14374 | return resultobj; | |
14375 | fail: | |
14376 | return NULL; | |
14377 | } | |
14378 | ||
14379 | ||
14380 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14381 | PyObject *resultobj; | |
14382 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14383 | wxBookCtrl *result; | |
14384 | PyObject * obj0 = 0 ; | |
14385 | char *kwnames[] = { | |
14386 | (char *) "self", NULL | |
14387 | }; | |
14388 | ||
14389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
14390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14391 | { | |
14392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14393 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
14394 | ||
14395 | wxPyEndAllowThreads(__tstate); | |
14396 | if (PyErr_Occurred()) SWIG_fail; | |
14397 | } | |
14398 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrl, 0); | |
14399 | return resultobj; | |
14400 | fail: | |
14401 | return NULL; | |
14402 | } | |
14403 | ||
14404 | ||
14405 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
14406 | PyObject *obj; | |
14407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14408 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
14409 | Py_INCREF(obj); | |
14410 | return Py_BuildValue((char *)""); | |
14411 | } | |
14412 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14413 | PyObject *resultobj; | |
14414 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14415 | wxNotebookSizer *result; | |
14416 | PyObject * obj0 = 0 ; | |
14417 | char *kwnames[] = { | |
14418 | (char *) "nb", NULL | |
14419 | }; | |
14420 | ||
14421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
14422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14423 | { | |
14424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14425 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
14426 | ||
14427 | wxPyEndAllowThreads(__tstate); | |
14428 | if (PyErr_Occurred()) SWIG_fail; | |
14429 | } | |
14430 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookSizer, 1); | |
14431 | return resultobj; | |
14432 | fail: | |
14433 | return NULL; | |
14434 | } | |
14435 | ||
14436 | ||
14437 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14438 | PyObject *resultobj; | |
14439 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14440 | PyObject * obj0 = 0 ; | |
14441 | char *kwnames[] = { | |
14442 | (char *) "self", NULL | |
14443 | }; | |
14444 | ||
14445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14447 | { | |
14448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14449 | (arg1)->RecalcSizes(); | |
14450 | ||
14451 | wxPyEndAllowThreads(__tstate); | |
14452 | if (PyErr_Occurred()) SWIG_fail; | |
14453 | } | |
14454 | Py_INCREF(Py_None); resultobj = Py_None; | |
14455 | return resultobj; | |
14456 | fail: | |
14457 | return NULL; | |
14458 | } | |
14459 | ||
14460 | ||
14461 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14462 | PyObject *resultobj; | |
14463 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14464 | wxSize result; | |
14465 | PyObject * obj0 = 0 ; | |
14466 | char *kwnames[] = { | |
14467 | (char *) "self", NULL | |
14468 | }; | |
14469 | ||
14470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14472 | { | |
14473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14474 | result = (arg1)->CalcMin(); | |
14475 | ||
14476 | wxPyEndAllowThreads(__tstate); | |
14477 | if (PyErr_Occurred()) SWIG_fail; | |
14478 | } | |
14479 | { | |
14480 | wxSize * resultptr; | |
14481 | resultptr = new wxSize((wxSize &) result); | |
14482 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14483 | } | |
14484 | return resultobj; | |
14485 | fail: | |
14486 | return NULL; | |
14487 | } | |
14488 | ||
14489 | ||
14490 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14491 | PyObject *resultobj; | |
14492 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14493 | wxNotebook *result; | |
14494 | PyObject * obj0 = 0 ; | |
14495 | char *kwnames[] = { | |
14496 | (char *) "self", NULL | |
14497 | }; | |
14498 | ||
14499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
14500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14501 | { | |
14502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14503 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
14504 | ||
14505 | wxPyEndAllowThreads(__tstate); | |
14506 | if (PyErr_Occurred()) SWIG_fail; | |
14507 | } | |
14508 | { | |
14509 | resultobj = wxPyMake_wxObject(result); | |
14510 | } | |
14511 | return resultobj; | |
14512 | fail: | |
14513 | return NULL; | |
14514 | } | |
14515 | ||
14516 | ||
14517 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
14518 | PyObject *obj; | |
14519 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14520 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
14521 | Py_INCREF(obj); | |
14522 | return Py_BuildValue((char *)""); | |
14523 | } | |
14524 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14525 | PyObject *resultobj; | |
14526 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14527 | int result; | |
14528 | PyObject * obj0 = 0 ; | |
14529 | char *kwnames[] = { | |
14530 | (char *) "self", NULL | |
14531 | }; | |
14532 | ||
14533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
14534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14535 | { | |
14536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14537 | result = (int)(arg1)->GetId(); | |
14538 | ||
14539 | wxPyEndAllowThreads(__tstate); | |
14540 | if (PyErr_Occurred()) SWIG_fail; | |
14541 | } | |
8edf1c75 | 14542 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14543 | return resultobj; |
14544 | fail: | |
14545 | return NULL; | |
14546 | } | |
14547 | ||
14548 | ||
14549 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14550 | PyObject *resultobj; | |
14551 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14552 | wxControl *result; | |
14553 | PyObject * obj0 = 0 ; | |
14554 | char *kwnames[] = { | |
14555 | (char *) "self", NULL | |
14556 | }; | |
14557 | ||
14558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
14559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14560 | { | |
14561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14562 | result = (wxControl *)(arg1)->GetControl(); | |
14563 | ||
14564 | wxPyEndAllowThreads(__tstate); | |
14565 | if (PyErr_Occurred()) SWIG_fail; | |
14566 | } | |
14567 | { | |
14568 | resultobj = wxPyMake_wxObject(result); | |
14569 | } | |
14570 | return resultobj; | |
14571 | fail: | |
14572 | return NULL; | |
14573 | } | |
14574 | ||
14575 | ||
14576 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14577 | PyObject *resultobj; | |
14578 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14579 | wxToolBarBase *result; | |
14580 | PyObject * obj0 = 0 ; | |
14581 | char *kwnames[] = { | |
14582 | (char *) "self", NULL | |
14583 | }; | |
14584 | ||
14585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
14586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14587 | { | |
14588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14589 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
14590 | ||
14591 | wxPyEndAllowThreads(__tstate); | |
14592 | if (PyErr_Occurred()) SWIG_fail; | |
14593 | } | |
14594 | { | |
14595 | resultobj = wxPyMake_wxObject(result); | |
14596 | } | |
14597 | return resultobj; | |
14598 | fail: | |
14599 | return NULL; | |
14600 | } | |
14601 | ||
14602 | ||
14603 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14604 | PyObject *resultobj; | |
14605 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14606 | int result; | |
14607 | PyObject * obj0 = 0 ; | |
14608 | char *kwnames[] = { | |
14609 | (char *) "self", NULL | |
14610 | }; | |
14611 | ||
14612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
14613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14614 | { | |
14615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14616 | result = (int)(arg1)->IsButton(); | |
14617 | ||
14618 | wxPyEndAllowThreads(__tstate); | |
14619 | if (PyErr_Occurred()) SWIG_fail; | |
14620 | } | |
8edf1c75 | 14621 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14622 | return resultobj; |
14623 | fail: | |
14624 | return NULL; | |
14625 | } | |
14626 | ||
14627 | ||
14628 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14629 | PyObject *resultobj; | |
14630 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14631 | int result; | |
14632 | PyObject * obj0 = 0 ; | |
14633 | char *kwnames[] = { | |
14634 | (char *) "self", NULL | |
14635 | }; | |
14636 | ||
14637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
14638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14639 | { | |
14640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14641 | result = (int)(arg1)->IsControl(); | |
14642 | ||
14643 | wxPyEndAllowThreads(__tstate); | |
14644 | if (PyErr_Occurred()) SWIG_fail; | |
14645 | } | |
8edf1c75 | 14646 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14647 | return resultobj; |
14648 | fail: | |
14649 | return NULL; | |
14650 | } | |
14651 | ||
14652 | ||
14653 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14654 | PyObject *resultobj; | |
14655 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14656 | int result; | |
14657 | PyObject * obj0 = 0 ; | |
14658 | char *kwnames[] = { | |
14659 | (char *) "self", NULL | |
14660 | }; | |
14661 | ||
14662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
14663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14664 | { | |
14665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14666 | result = (int)(arg1)->IsSeparator(); | |
14667 | ||
14668 | wxPyEndAllowThreads(__tstate); | |
14669 | if (PyErr_Occurred()) SWIG_fail; | |
14670 | } | |
8edf1c75 | 14671 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14672 | return resultobj; |
14673 | fail: | |
14674 | return NULL; | |
14675 | } | |
14676 | ||
14677 | ||
14678 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14679 | PyObject *resultobj; | |
14680 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14681 | int result; | |
14682 | PyObject * obj0 = 0 ; | |
14683 | char *kwnames[] = { | |
14684 | (char *) "self", NULL | |
14685 | }; | |
14686 | ||
14687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
14688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14689 | { | |
14690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14691 | result = (int)(arg1)->GetStyle(); | |
14692 | ||
14693 | wxPyEndAllowThreads(__tstate); | |
14694 | if (PyErr_Occurred()) SWIG_fail; | |
14695 | } | |
8edf1c75 | 14696 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14697 | return resultobj; |
14698 | fail: | |
14699 | return NULL; | |
14700 | } | |
14701 | ||
14702 | ||
14703 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14704 | PyObject *resultobj; | |
14705 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14706 | int result; | |
14707 | PyObject * obj0 = 0 ; | |
14708 | char *kwnames[] = { | |
14709 | (char *) "self", NULL | |
14710 | }; | |
14711 | ||
14712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
14713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14714 | { | |
14715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14716 | result = (int)(arg1)->GetKind(); | |
14717 | ||
14718 | wxPyEndAllowThreads(__tstate); | |
14719 | if (PyErr_Occurred()) SWIG_fail; | |
14720 | } | |
8edf1c75 | 14721 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14722 | return resultobj; |
14723 | fail: | |
14724 | return NULL; | |
14725 | } | |
14726 | ||
14727 | ||
14728 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14729 | PyObject *resultobj; | |
14730 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14731 | bool result; | |
14732 | PyObject * obj0 = 0 ; | |
14733 | char *kwnames[] = { | |
14734 | (char *) "self", NULL | |
14735 | }; | |
14736 | ||
14737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
14738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14739 | { | |
14740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14741 | result = (bool)(arg1)->IsEnabled(); | |
14742 | ||
14743 | wxPyEndAllowThreads(__tstate); | |
14744 | if (PyErr_Occurred()) SWIG_fail; | |
14745 | } | |
02a34c4c | 14746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14747 | return resultobj; |
14748 | fail: | |
14749 | return NULL; | |
14750 | } | |
14751 | ||
14752 | ||
14753 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14754 | PyObject *resultobj; | |
14755 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14756 | bool result; | |
14757 | PyObject * obj0 = 0 ; | |
14758 | char *kwnames[] = { | |
14759 | (char *) "self", NULL | |
14760 | }; | |
14761 | ||
14762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
14763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14764 | { | |
14765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14766 | result = (bool)(arg1)->IsToggled(); | |
14767 | ||
14768 | wxPyEndAllowThreads(__tstate); | |
14769 | if (PyErr_Occurred()) SWIG_fail; | |
14770 | } | |
02a34c4c | 14771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14772 | return resultobj; |
14773 | fail: | |
14774 | return NULL; | |
14775 | } | |
14776 | ||
14777 | ||
14778 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14779 | PyObject *resultobj; | |
14780 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14781 | bool result; | |
14782 | PyObject * obj0 = 0 ; | |
14783 | char *kwnames[] = { | |
14784 | (char *) "self", NULL | |
14785 | }; | |
14786 | ||
14787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
14788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14789 | { | |
14790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14791 | result = (bool)(arg1)->CanBeToggled(); | |
14792 | ||
14793 | wxPyEndAllowThreads(__tstate); | |
14794 | if (PyErr_Occurred()) SWIG_fail; | |
14795 | } | |
02a34c4c | 14796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14797 | return resultobj; |
14798 | fail: | |
14799 | return NULL; | |
14800 | } | |
14801 | ||
14802 | ||
14803 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14804 | PyObject *resultobj; | |
14805 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14806 | wxBitmap *result; | |
14807 | PyObject * obj0 = 0 ; | |
14808 | char *kwnames[] = { | |
14809 | (char *) "self", NULL | |
14810 | }; | |
14811 | ||
14812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
14813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14814 | { | |
14815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14816 | { | |
14817 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
14818 | result = (wxBitmap *) &_result_ref; | |
14819 | } | |
14820 | ||
14821 | wxPyEndAllowThreads(__tstate); | |
14822 | if (PyErr_Occurred()) SWIG_fail; | |
14823 | } | |
14824 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
14825 | return resultobj; | |
14826 | fail: | |
14827 | return NULL; | |
14828 | } | |
14829 | ||
14830 | ||
14831 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14832 | PyObject *resultobj; | |
14833 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14834 | wxBitmap *result; | |
14835 | PyObject * obj0 = 0 ; | |
14836 | char *kwnames[] = { | |
14837 | (char *) "self", NULL | |
14838 | }; | |
14839 | ||
14840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
14841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14842 | { | |
14843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14844 | { | |
14845 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
14846 | result = (wxBitmap *) &_result_ref; | |
14847 | } | |
14848 | ||
14849 | wxPyEndAllowThreads(__tstate); | |
14850 | if (PyErr_Occurred()) SWIG_fail; | |
14851 | } | |
14852 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
14853 | return resultobj; | |
14854 | fail: | |
14855 | return NULL; | |
14856 | } | |
14857 | ||
14858 | ||
14859 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14860 | PyObject *resultobj; | |
14861 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14862 | wxBitmap result; | |
14863 | PyObject * obj0 = 0 ; | |
14864 | char *kwnames[] = { | |
14865 | (char *) "self", NULL | |
14866 | }; | |
14867 | ||
14868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",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)->GetBitmap(); | |
14873 | ||
14874 | wxPyEndAllowThreads(__tstate); | |
14875 | if (PyErr_Occurred()) SWIG_fail; | |
14876 | } | |
14877 | { | |
14878 | wxBitmap * resultptr; | |
14879 | resultptr = new wxBitmap((wxBitmap &) result); | |
14880 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
14881 | } | |
14882 | return resultobj; | |
14883 | fail: | |
14884 | return NULL; | |
14885 | } | |
14886 | ||
14887 | ||
14888 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14889 | PyObject *resultobj; | |
14890 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14891 | wxString result; | |
14892 | PyObject * obj0 = 0 ; | |
14893 | char *kwnames[] = { | |
14894 | (char *) "self", NULL | |
14895 | }; | |
14896 | ||
14897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
14898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14899 | { | |
14900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14901 | result = (arg1)->GetLabel(); | |
14902 | ||
14903 | wxPyEndAllowThreads(__tstate); | |
14904 | if (PyErr_Occurred()) SWIG_fail; | |
14905 | } | |
14906 | { | |
14907 | #if wxUSE_UNICODE | |
14908 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14909 | #else | |
14910 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14911 | #endif | |
14912 | } | |
14913 | return resultobj; | |
14914 | fail: | |
14915 | return NULL; | |
14916 | } | |
14917 | ||
14918 | ||
14919 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14920 | PyObject *resultobj; | |
14921 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14922 | wxString result; | |
14923 | PyObject * obj0 = 0 ; | |
14924 | char *kwnames[] = { | |
14925 | (char *) "self", NULL | |
14926 | }; | |
14927 | ||
14928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
14929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14930 | { | |
14931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14932 | result = (arg1)->GetShortHelp(); | |
14933 | ||
14934 | wxPyEndAllowThreads(__tstate); | |
14935 | if (PyErr_Occurred()) SWIG_fail; | |
14936 | } | |
14937 | { | |
14938 | #if wxUSE_UNICODE | |
14939 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14940 | #else | |
14941 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14942 | #endif | |
14943 | } | |
14944 | return resultobj; | |
14945 | fail: | |
14946 | return NULL; | |
14947 | } | |
14948 | ||
14949 | ||
14950 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14951 | PyObject *resultobj; | |
14952 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14953 | wxString result; | |
14954 | PyObject * obj0 = 0 ; | |
14955 | char *kwnames[] = { | |
14956 | (char *) "self", NULL | |
14957 | }; | |
14958 | ||
14959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
14960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14961 | { | |
14962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14963 | result = (arg1)->GetLongHelp(); | |
14964 | ||
14965 | wxPyEndAllowThreads(__tstate); | |
14966 | if (PyErr_Occurred()) SWIG_fail; | |
14967 | } | |
14968 | { | |
14969 | #if wxUSE_UNICODE | |
14970 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14971 | #else | |
14972 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14973 | #endif | |
14974 | } | |
14975 | return resultobj; | |
14976 | fail: | |
14977 | return NULL; | |
14978 | } | |
14979 | ||
14980 | ||
14981 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14982 | PyObject *resultobj; | |
14983 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14984 | bool arg2 ; | |
14985 | bool result; | |
14986 | PyObject * obj0 = 0 ; | |
14987 | PyObject * obj1 = 0 ; | |
14988 | char *kwnames[] = { | |
14989 | (char *) "self",(char *) "enable", NULL | |
14990 | }; | |
14991 | ||
14992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
14993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 14994 | { |
8edf1c75 | 14995 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
14996 | if (PyErr_Occurred()) SWIG_fail; |
14997 | } | |
d14a1e28 RD |
14998 | { |
14999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15000 | result = (bool)(arg1)->Enable(arg2); | |
15001 | ||
15002 | wxPyEndAllowThreads(__tstate); | |
15003 | if (PyErr_Occurred()) SWIG_fail; | |
15004 | } | |
02a34c4c | 15005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15006 | return resultobj; |
15007 | fail: | |
15008 | return NULL; | |
15009 | } | |
15010 | ||
15011 | ||
15012 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15013 | PyObject *resultobj; | |
15014 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15015 | PyObject * obj0 = 0 ; | |
15016 | char *kwnames[] = { | |
15017 | (char *) "self", NULL | |
15018 | }; | |
15019 | ||
15020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
15021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15022 | { | |
15023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15024 | (arg1)->Toggle(); | |
15025 | ||
15026 | wxPyEndAllowThreads(__tstate); | |
15027 | if (PyErr_Occurred()) SWIG_fail; | |
15028 | } | |
15029 | Py_INCREF(Py_None); resultobj = Py_None; | |
15030 | return resultobj; | |
15031 | fail: | |
15032 | return NULL; | |
15033 | } | |
15034 | ||
15035 | ||
15036 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15037 | PyObject *resultobj; | |
15038 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15039 | bool arg2 ; | |
15040 | bool result; | |
15041 | PyObject * obj0 = 0 ; | |
15042 | PyObject * obj1 = 0 ; | |
15043 | char *kwnames[] = { | |
15044 | (char *) "self",(char *) "toggle", NULL | |
15045 | }; | |
15046 | ||
15047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
15048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 15049 | { |
8edf1c75 | 15050 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
15051 | if (PyErr_Occurred()) SWIG_fail; |
15052 | } | |
d14a1e28 RD |
15053 | { |
15054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15055 | result = (bool)(arg1)->SetToggle(arg2); | |
15056 | ||
15057 | wxPyEndAllowThreads(__tstate); | |
15058 | if (PyErr_Occurred()) SWIG_fail; | |
15059 | } | |
02a34c4c | 15060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15061 | return resultobj; |
15062 | fail: | |
15063 | return NULL; | |
15064 | } | |
15065 | ||
15066 | ||
15067 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15068 | PyObject *resultobj; | |
15069 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15070 | wxString *arg2 = 0 ; | |
15071 | bool result; | |
423f194a | 15072 | bool temp2 = False ; |
d14a1e28 RD |
15073 | PyObject * obj0 = 0 ; |
15074 | PyObject * obj1 = 0 ; | |
15075 | char *kwnames[] = { | |
15076 | (char *) "self",(char *) "help", NULL | |
15077 | }; | |
15078 | ||
15079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
15080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15081 | { | |
15082 | arg2 = wxString_in_helper(obj1); | |
15083 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15084 | temp2 = True; |
d14a1e28 RD |
15085 | } |
15086 | { | |
15087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15088 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
15089 | ||
15090 | wxPyEndAllowThreads(__tstate); | |
15091 | if (PyErr_Occurred()) SWIG_fail; | |
15092 | } | |
02a34c4c | 15093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15094 | { |
15095 | if (temp2) | |
15096 | delete arg2; | |
15097 | } | |
15098 | return resultobj; | |
15099 | fail: | |
15100 | { | |
15101 | if (temp2) | |
15102 | delete arg2; | |
15103 | } | |
15104 | return NULL; | |
15105 | } | |
15106 | ||
15107 | ||
15108 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15109 | PyObject *resultobj; | |
15110 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15111 | wxString *arg2 = 0 ; | |
15112 | bool result; | |
423f194a | 15113 | bool temp2 = False ; |
d14a1e28 RD |
15114 | PyObject * obj0 = 0 ; |
15115 | PyObject * obj1 = 0 ; | |
15116 | char *kwnames[] = { | |
15117 | (char *) "self",(char *) "help", NULL | |
15118 | }; | |
15119 | ||
15120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15122 | { | |
15123 | arg2 = wxString_in_helper(obj1); | |
15124 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15125 | temp2 = True; |
d14a1e28 RD |
15126 | } |
15127 | { | |
15128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15129 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
15130 | ||
15131 | wxPyEndAllowThreads(__tstate); | |
15132 | if (PyErr_Occurred()) SWIG_fail; | |
15133 | } | |
02a34c4c | 15134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15135 | { |
15136 | if (temp2) | |
15137 | delete arg2; | |
15138 | } | |
15139 | return resultobj; | |
15140 | fail: | |
15141 | { | |
15142 | if (temp2) | |
15143 | delete arg2; | |
15144 | } | |
15145 | return NULL; | |
15146 | } | |
15147 | ||
15148 | ||
15149 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15150 | PyObject *resultobj; | |
15151 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15152 | wxBitmap *arg2 = 0 ; | |
15153 | PyObject * obj0 = 0 ; | |
15154 | PyObject * obj1 = 0 ; | |
15155 | char *kwnames[] = { | |
15156 | (char *) "self",(char *) "bmp", NULL | |
15157 | }; | |
15158 | ||
15159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15161 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15162 | if (arg2 == NULL) { | |
15163 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15164 | } | |
15165 | { | |
15166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15167 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
15168 | ||
15169 | wxPyEndAllowThreads(__tstate); | |
15170 | if (PyErr_Occurred()) SWIG_fail; | |
15171 | } | |
15172 | Py_INCREF(Py_None); resultobj = Py_None; | |
15173 | return resultobj; | |
15174 | fail: | |
15175 | return NULL; | |
15176 | } | |
15177 | ||
15178 | ||
15179 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15180 | PyObject *resultobj; | |
15181 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15182 | wxBitmap *arg2 = 0 ; | |
15183 | PyObject * obj0 = 0 ; | |
15184 | PyObject * obj1 = 0 ; | |
15185 | char *kwnames[] = { | |
15186 | (char *) "self",(char *) "bmp", NULL | |
15187 | }; | |
15188 | ||
15189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15191 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15192 | if (arg2 == NULL) { | |
15193 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15194 | } | |
15195 | { | |
15196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15197 | (arg1)->SetDisabledBitmap((wxBitmap const &)*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_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15210 | PyObject *resultobj; | |
15211 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15212 | wxString *arg2 = 0 ; | |
423f194a | 15213 | bool temp2 = False ; |
d14a1e28 RD |
15214 | PyObject * obj0 = 0 ; |
15215 | PyObject * obj1 = 0 ; | |
15216 | char *kwnames[] = { | |
15217 | (char *) "self",(char *) "label", NULL | |
15218 | }; | |
15219 | ||
15220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15222 | { | |
15223 | arg2 = wxString_in_helper(obj1); | |
15224 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15225 | temp2 = True; |
d14a1e28 RD |
15226 | } |
15227 | { | |
15228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15229 | (arg1)->SetLabel((wxString const &)*arg2); | |
15230 | ||
15231 | wxPyEndAllowThreads(__tstate); | |
15232 | if (PyErr_Occurred()) SWIG_fail; | |
15233 | } | |
15234 | Py_INCREF(Py_None); resultobj = Py_None; | |
15235 | { | |
15236 | if (temp2) | |
15237 | delete arg2; | |
15238 | } | |
15239 | return resultobj; | |
15240 | fail: | |
15241 | { | |
15242 | if (temp2) | |
15243 | delete arg2; | |
15244 | } | |
15245 | return NULL; | |
15246 | } | |
15247 | ||
15248 | ||
15249 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15250 | PyObject *resultobj; | |
15251 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15252 | PyObject * obj0 = 0 ; | |
15253 | char *kwnames[] = { | |
15254 | (char *) "self", NULL | |
15255 | }; | |
15256 | ||
15257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
15258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15259 | { | |
15260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15261 | (arg1)->Detach(); | |
15262 | ||
15263 | wxPyEndAllowThreads(__tstate); | |
15264 | if (PyErr_Occurred()) SWIG_fail; | |
15265 | } | |
15266 | Py_INCREF(Py_None); resultobj = Py_None; | |
15267 | return resultobj; | |
15268 | fail: | |
15269 | return NULL; | |
15270 | } | |
15271 | ||
15272 | ||
15273 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15274 | PyObject *resultobj; | |
15275 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15276 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
15277 | PyObject * obj0 = 0 ; | |
15278 | PyObject * obj1 = 0 ; | |
15279 | char *kwnames[] = { | |
15280 | (char *) "self",(char *) "tbar", NULL | |
15281 | }; | |
15282 | ||
15283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15285 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15286 | { | |
15287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15288 | (arg1)->Attach(arg2); | |
15289 | ||
15290 | wxPyEndAllowThreads(__tstate); | |
15291 | if (PyErr_Occurred()) SWIG_fail; | |
15292 | } | |
15293 | Py_INCREF(Py_None); resultobj = Py_None; | |
15294 | return resultobj; | |
15295 | fail: | |
15296 | return NULL; | |
15297 | } | |
15298 | ||
15299 | ||
15300 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15301 | PyObject *resultobj; | |
15302 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15303 | PyObject *result; | |
15304 | PyObject * obj0 = 0 ; | |
15305 | char *kwnames[] = { | |
15306 | (char *) "self", NULL | |
15307 | }; | |
15308 | ||
15309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15311 | { | |
15312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15313 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
15314 | ||
15315 | wxPyEndAllowThreads(__tstate); | |
15316 | if (PyErr_Occurred()) SWIG_fail; | |
15317 | } | |
15318 | resultobj = result; | |
15319 | return resultobj; | |
15320 | fail: | |
15321 | return NULL; | |
15322 | } | |
15323 | ||
15324 | ||
15325 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15326 | PyObject *resultobj; | |
15327 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15328 | PyObject *arg2 = (PyObject *) 0 ; | |
15329 | PyObject * obj0 = 0 ; | |
15330 | PyObject * obj1 = 0 ; | |
15331 | char *kwnames[] = { | |
15332 | (char *) "self",(char *) "clientData", NULL | |
15333 | }; | |
15334 | ||
15335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15337 | arg2 = obj1; | |
15338 | { | |
15339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15340 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
15341 | ||
15342 | wxPyEndAllowThreads(__tstate); | |
15343 | if (PyErr_Occurred()) SWIG_fail; | |
15344 | } | |
15345 | Py_INCREF(Py_None); resultobj = Py_None; | |
15346 | return resultobj; | |
15347 | fail: | |
15348 | return NULL; | |
15349 | } | |
15350 | ||
15351 | ||
15352 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
15353 | PyObject *obj; | |
15354 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15355 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
15356 | Py_INCREF(obj); | |
15357 | return Py_BuildValue((char *)""); | |
15358 | } | |
15359 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15360 | PyObject *resultobj; | |
15361 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15362 | int arg2 ; | |
15363 | wxString *arg3 = 0 ; | |
15364 | wxBitmap *arg4 = 0 ; | |
15365 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
15366 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
15367 | int arg6 = (int) wxITEM_NORMAL ; | |
15368 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15369 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15370 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15371 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15372 | PyObject *arg9 = (PyObject *) NULL ; | |
15373 | wxToolBarToolBase *result; | |
423f194a RD |
15374 | bool temp3 = False ; |
15375 | bool temp7 = False ; | |
15376 | bool temp8 = False ; | |
d14a1e28 | 15377 | PyObject * obj0 = 0 ; |
8edf1c75 | 15378 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15379 | PyObject * obj2 = 0 ; |
15380 | PyObject * obj3 = 0 ; | |
15381 | PyObject * obj4 = 0 ; | |
8edf1c75 | 15382 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15383 | PyObject * obj6 = 0 ; |
15384 | PyObject * obj7 = 0 ; | |
15385 | PyObject * obj8 = 0 ; | |
15386 | char *kwnames[] = { | |
15387 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15388 | }; | |
15389 | ||
8edf1c75 | 15390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 15391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15392 | { |
15393 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15394 | if (PyErr_Occurred()) SWIG_fail; | |
15395 | } | |
d14a1e28 RD |
15396 | { |
15397 | arg3 = wxString_in_helper(obj2); | |
15398 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 15399 | temp3 = True; |
d14a1e28 RD |
15400 | } |
15401 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15402 | if (arg4 == NULL) { | |
15403 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15404 | } | |
15405 | if (obj4) { | |
15406 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15407 | if (arg5 == NULL) { | |
15408 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15409 | } | |
15410 | } | |
8edf1c75 RD |
15411 | if (obj5) { |
15412 | { | |
15413 | arg6 = (wxItemKind) SWIG_PyObj_AsInt(obj5); | |
15414 | if (PyErr_Occurred()) SWIG_fail; | |
15415 | } | |
15416 | } | |
d14a1e28 RD |
15417 | if (obj6) { |
15418 | { | |
15419 | arg7 = wxString_in_helper(obj6); | |
15420 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 15421 | temp7 = True; |
d14a1e28 RD |
15422 | } |
15423 | } | |
15424 | if (obj7) { | |
15425 | { | |
15426 | arg8 = wxString_in_helper(obj7); | |
15427 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 15428 | temp8 = True; |
d14a1e28 RD |
15429 | } |
15430 | } | |
15431 | if (obj8) { | |
15432 | arg9 = obj8; | |
15433 | } | |
15434 | { | |
15435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15436 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
15437 | ||
15438 | wxPyEndAllowThreads(__tstate); | |
15439 | if (PyErr_Occurred()) SWIG_fail; | |
15440 | } | |
15441 | { | |
15442 | resultobj = wxPyMake_wxObject(result); | |
15443 | } | |
15444 | { | |
15445 | if (temp3) | |
15446 | delete arg3; | |
15447 | } | |
15448 | { | |
15449 | if (temp7) | |
15450 | delete arg7; | |
15451 | } | |
15452 | { | |
15453 | if (temp8) | |
15454 | delete arg8; | |
15455 | } | |
15456 | return resultobj; | |
15457 | fail: | |
15458 | { | |
15459 | if (temp3) | |
15460 | delete arg3; | |
15461 | } | |
15462 | { | |
15463 | if (temp7) | |
15464 | delete arg7; | |
15465 | } | |
15466 | { | |
15467 | if (temp8) | |
15468 | delete arg8; | |
15469 | } | |
15470 | return NULL; | |
15471 | } | |
15472 | ||
15473 | ||
15474 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15475 | PyObject *resultobj; | |
15476 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15477 | size_t arg2 ; | |
15478 | int arg3 ; | |
15479 | wxString *arg4 = 0 ; | |
15480 | wxBitmap *arg5 = 0 ; | |
15481 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
15482 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
15483 | int arg7 = (int) wxITEM_NORMAL ; | |
15484 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15485 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15486 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
15487 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
15488 | PyObject *arg10 = (PyObject *) NULL ; | |
15489 | wxToolBarToolBase *result; | |
423f194a RD |
15490 | bool temp4 = False ; |
15491 | bool temp8 = False ; | |
15492 | bool temp9 = False ; | |
d14a1e28 RD |
15493 | PyObject * obj0 = 0 ; |
15494 | PyObject * obj1 = 0 ; | |
8edf1c75 | 15495 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15496 | PyObject * obj3 = 0 ; |
15497 | PyObject * obj4 = 0 ; | |
15498 | PyObject * obj5 = 0 ; | |
8edf1c75 | 15499 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
15500 | PyObject * obj7 = 0 ; |
15501 | PyObject * obj8 = 0 ; | |
15502 | PyObject * obj9 = 0 ; | |
15503 | char *kwnames[] = { | |
15504 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15505 | }; | |
15506 | ||
8edf1c75 | 15507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 15508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 15509 | { |
8edf1c75 RD |
15510 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
15511 | if (PyErr_Occurred()) SWIG_fail; | |
15512 | } | |
15513 | { | |
15514 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2dbef272 RD |
15515 | if (PyErr_Occurred()) SWIG_fail; |
15516 | } | |
d14a1e28 RD |
15517 | { |
15518 | arg4 = wxString_in_helper(obj3); | |
15519 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 15520 | temp4 = True; |
d14a1e28 RD |
15521 | } |
15522 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15523 | if (arg5 == NULL) { | |
15524 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15525 | } | |
15526 | if (obj5) { | |
15527 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15528 | if (arg6 == NULL) { | |
15529 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15530 | } | |
15531 | } | |
8edf1c75 RD |
15532 | if (obj6) { |
15533 | { | |
15534 | arg7 = (wxItemKind) SWIG_PyObj_AsInt(obj6); | |
15535 | if (PyErr_Occurred()) SWIG_fail; | |
15536 | } | |
15537 | } | |
d14a1e28 RD |
15538 | if (obj7) { |
15539 | { | |
15540 | arg8 = wxString_in_helper(obj7); | |
15541 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 15542 | temp8 = True; |
d14a1e28 RD |
15543 | } |
15544 | } | |
15545 | if (obj8) { | |
15546 | { | |
15547 | arg9 = wxString_in_helper(obj8); | |
15548 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 15549 | temp9 = True; |
d14a1e28 RD |
15550 | } |
15551 | } | |
15552 | if (obj9) { | |
15553 | arg10 = obj9; | |
15554 | } | |
15555 | { | |
15556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15557 | 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); | |
15558 | ||
15559 | wxPyEndAllowThreads(__tstate); | |
15560 | if (PyErr_Occurred()) SWIG_fail; | |
15561 | } | |
15562 | { | |
15563 | resultobj = wxPyMake_wxObject(result); | |
15564 | } | |
15565 | { | |
15566 | if (temp4) | |
15567 | delete arg4; | |
15568 | } | |
15569 | { | |
15570 | if (temp8) | |
15571 | delete arg8; | |
15572 | } | |
15573 | { | |
15574 | if (temp9) | |
15575 | delete arg9; | |
15576 | } | |
15577 | return resultobj; | |
15578 | fail: | |
15579 | { | |
15580 | if (temp4) | |
15581 | delete arg4; | |
15582 | } | |
15583 | { | |
15584 | if (temp8) | |
15585 | delete arg8; | |
15586 | } | |
15587 | { | |
15588 | if (temp9) | |
15589 | delete arg9; | |
15590 | } | |
15591 | return NULL; | |
15592 | } | |
15593 | ||
15594 | ||
cbd72d4f RD |
15595 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
15596 | PyObject *resultobj; | |
15597 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15598 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
15599 | wxToolBarToolBase *result; | |
15600 | PyObject * obj0 = 0 ; | |
15601 | PyObject * obj1 = 0 ; | |
15602 | char *kwnames[] = { | |
15603 | (char *) "self",(char *) "tool", NULL | |
15604 | }; | |
15605 | ||
15606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
15607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15608 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15609 | { | |
15610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15611 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
15612 | ||
15613 | wxPyEndAllowThreads(__tstate); | |
15614 | if (PyErr_Occurred()) SWIG_fail; | |
15615 | } | |
15616 | { | |
15617 | resultobj = wxPyMake_wxObject(result); | |
15618 | } | |
15619 | return resultobj; | |
15620 | fail: | |
15621 | return NULL; | |
15622 | } | |
15623 | ||
15624 | ||
15625 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15626 | PyObject *resultobj; | |
15627 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15628 | size_t arg2 ; | |
15629 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
15630 | wxToolBarToolBase *result; | |
15631 | PyObject * obj0 = 0 ; | |
15632 | PyObject * obj1 = 0 ; | |
15633 | PyObject * obj2 = 0 ; | |
15634 | char *kwnames[] = { | |
15635 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
15636 | }; | |
15637 | ||
15638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 15640 | { |
8edf1c75 | 15641 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
15642 | if (PyErr_Occurred()) SWIG_fail; |
15643 | } | |
cbd72d4f RD |
15644 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15645 | { | |
15646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15647 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
15648 | ||
15649 | wxPyEndAllowThreads(__tstate); | |
15650 | if (PyErr_Occurred()) SWIG_fail; | |
15651 | } | |
15652 | { | |
15653 | resultobj = wxPyMake_wxObject(result); | |
15654 | } | |
15655 | return resultobj; | |
15656 | fail: | |
15657 | return NULL; | |
15658 | } | |
15659 | ||
15660 | ||
d14a1e28 RD |
15661 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
15662 | PyObject *resultobj; | |
15663 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15664 | wxControl *arg2 = (wxControl *) 0 ; | |
15665 | wxToolBarToolBase *result; | |
15666 | PyObject * obj0 = 0 ; | |
15667 | PyObject * obj1 = 0 ; | |
15668 | char *kwnames[] = { | |
15669 | (char *) "self",(char *) "control", NULL | |
15670 | }; | |
15671 | ||
15672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
15673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15674 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15675 | { | |
15676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15677 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
15678 | ||
15679 | wxPyEndAllowThreads(__tstate); | |
15680 | if (PyErr_Occurred()) SWIG_fail; | |
15681 | } | |
15682 | { | |
15683 | resultobj = wxPyMake_wxObject(result); | |
15684 | } | |
15685 | return resultobj; | |
15686 | fail: | |
15687 | return NULL; | |
15688 | } | |
15689 | ||
15690 | ||
15691 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15692 | PyObject *resultobj; | |
15693 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15694 | size_t arg2 ; | |
15695 | wxControl *arg3 = (wxControl *) 0 ; | |
15696 | wxToolBarToolBase *result; | |
15697 | PyObject * obj0 = 0 ; | |
15698 | PyObject * obj1 = 0 ; | |
15699 | PyObject * obj2 = 0 ; | |
15700 | char *kwnames[] = { | |
15701 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
15702 | }; | |
15703 | ||
15704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 15706 | { |
8edf1c75 | 15707 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
15708 | if (PyErr_Occurred()) SWIG_fail; |
15709 | } | |
d14a1e28 RD |
15710 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15711 | { | |
15712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15713 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
15714 | ||
15715 | wxPyEndAllowThreads(__tstate); | |
15716 | if (PyErr_Occurred()) SWIG_fail; | |
15717 | } | |
15718 | { | |
15719 | resultobj = wxPyMake_wxObject(result); | |
15720 | } | |
15721 | return resultobj; | |
15722 | fail: | |
15723 | return NULL; | |
15724 | } | |
15725 | ||
15726 | ||
15727 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15728 | PyObject *resultobj; | |
15729 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15730 | int arg2 ; | |
15731 | wxControl *result; | |
15732 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15733 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15734 | char *kwnames[] = { |
15735 | (char *) "self",(char *) "id", NULL | |
15736 | }; | |
15737 | ||
8edf1c75 | 15738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15740 | { |
15741 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15742 | if (PyErr_Occurred()) SWIG_fail; | |
15743 | } | |
d14a1e28 RD |
15744 | { |
15745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15746 | result = (wxControl *)(arg1)->FindControl(arg2); | |
15747 | ||
15748 | wxPyEndAllowThreads(__tstate); | |
15749 | if (PyErr_Occurred()) SWIG_fail; | |
15750 | } | |
15751 | { | |
15752 | resultobj = wxPyMake_wxObject(result); | |
15753 | } | |
15754 | return resultobj; | |
15755 | fail: | |
15756 | return NULL; | |
15757 | } | |
15758 | ||
15759 | ||
15760 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15761 | PyObject *resultobj; | |
15762 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15763 | wxToolBarToolBase *result; | |
15764 | PyObject * obj0 = 0 ; | |
15765 | char *kwnames[] = { | |
15766 | (char *) "self", NULL | |
15767 | }; | |
15768 | ||
15769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
15770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15771 | { | |
15772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15773 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
15774 | ||
15775 | wxPyEndAllowThreads(__tstate); | |
15776 | if (PyErr_Occurred()) SWIG_fail; | |
15777 | } | |
15778 | { | |
15779 | resultobj = wxPyMake_wxObject(result); | |
15780 | } | |
15781 | return resultobj; | |
15782 | fail: | |
15783 | return NULL; | |
15784 | } | |
15785 | ||
15786 | ||
15787 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15788 | PyObject *resultobj; | |
15789 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15790 | size_t arg2 ; | |
15791 | wxToolBarToolBase *result; | |
15792 | PyObject * obj0 = 0 ; | |
15793 | PyObject * obj1 = 0 ; | |
15794 | char *kwnames[] = { | |
15795 | (char *) "self",(char *) "pos", NULL | |
15796 | }; | |
15797 | ||
15798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 15800 | { |
8edf1c75 | 15801 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
15802 | if (PyErr_Occurred()) SWIG_fail; |
15803 | } | |
d14a1e28 RD |
15804 | { |
15805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15806 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
15807 | ||
15808 | wxPyEndAllowThreads(__tstate); | |
15809 | if (PyErr_Occurred()) SWIG_fail; | |
15810 | } | |
15811 | { | |
15812 | resultobj = wxPyMake_wxObject(result); | |
15813 | } | |
15814 | return resultobj; | |
15815 | fail: | |
15816 | return NULL; | |
15817 | } | |
15818 | ||
15819 | ||
15820 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15821 | PyObject *resultobj; | |
15822 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15823 | int arg2 ; | |
15824 | wxToolBarToolBase *result; | |
15825 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15826 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15827 | char *kwnames[] = { |
15828 | (char *) "self",(char *) "id", NULL | |
15829 | }; | |
15830 | ||
8edf1c75 | 15831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15833 | { |
15834 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15835 | if (PyErr_Occurred()) SWIG_fail; | |
15836 | } | |
d14a1e28 RD |
15837 | { |
15838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15839 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
15840 | ||
15841 | wxPyEndAllowThreads(__tstate); | |
15842 | if (PyErr_Occurred()) SWIG_fail; | |
15843 | } | |
15844 | { | |
15845 | resultobj = wxPyMake_wxObject(result); | |
15846 | } | |
15847 | return resultobj; | |
15848 | fail: | |
15849 | return NULL; | |
15850 | } | |
15851 | ||
15852 | ||
15853 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15854 | PyObject *resultobj; | |
15855 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15856 | size_t arg2 ; | |
15857 | bool result; | |
15858 | PyObject * obj0 = 0 ; | |
15859 | PyObject * obj1 = 0 ; | |
15860 | char *kwnames[] = { | |
15861 | (char *) "self",(char *) "pos", NULL | |
15862 | }; | |
15863 | ||
15864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
15865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 15866 | { |
8edf1c75 | 15867 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
15868 | if (PyErr_Occurred()) SWIG_fail; |
15869 | } | |
d14a1e28 RD |
15870 | { |
15871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15872 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
15873 | ||
15874 | wxPyEndAllowThreads(__tstate); | |
15875 | if (PyErr_Occurred()) SWIG_fail; | |
15876 | } | |
02a34c4c | 15877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15878 | return resultobj; |
15879 | fail: | |
15880 | return NULL; | |
15881 | } | |
15882 | ||
15883 | ||
15884 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15885 | PyObject *resultobj; | |
15886 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15887 | int arg2 ; | |
15888 | bool result; | |
15889 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15890 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15891 | char *kwnames[] = { |
15892 | (char *) "self",(char *) "id", NULL | |
15893 | }; | |
15894 | ||
8edf1c75 | 15895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15897 | { |
15898 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15899 | if (PyErr_Occurred()) SWIG_fail; | |
15900 | } | |
d14a1e28 RD |
15901 | { |
15902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15903 | result = (bool)(arg1)->DeleteTool(arg2); | |
15904 | ||
15905 | wxPyEndAllowThreads(__tstate); | |
15906 | if (PyErr_Occurred()) SWIG_fail; | |
15907 | } | |
02a34c4c | 15908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15909 | return resultobj; |
15910 | fail: | |
15911 | return NULL; | |
15912 | } | |
15913 | ||
15914 | ||
15915 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15916 | PyObject *resultobj; | |
15917 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15918 | PyObject * obj0 = 0 ; | |
15919 | char *kwnames[] = { | |
15920 | (char *) "self", NULL | |
15921 | }; | |
15922 | ||
15923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
15924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15925 | { | |
15926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15927 | (arg1)->ClearTools(); | |
15928 | ||
15929 | wxPyEndAllowThreads(__tstate); | |
15930 | if (PyErr_Occurred()) SWIG_fail; | |
15931 | } | |
15932 | Py_INCREF(Py_None); resultobj = Py_None; | |
15933 | return resultobj; | |
15934 | fail: | |
15935 | return NULL; | |
15936 | } | |
15937 | ||
15938 | ||
15939 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15940 | PyObject *resultobj; | |
15941 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15942 | bool result; | |
15943 | PyObject * obj0 = 0 ; | |
15944 | char *kwnames[] = { | |
15945 | (char *) "self", NULL | |
15946 | }; | |
15947 | ||
15948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
15949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15950 | { | |
15951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15952 | result = (bool)(arg1)->Realize(); | |
15953 | ||
15954 | wxPyEndAllowThreads(__tstate); | |
15955 | if (PyErr_Occurred()) SWIG_fail; | |
15956 | } | |
02a34c4c | 15957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15958 | return resultobj; |
15959 | fail: | |
15960 | return NULL; | |
15961 | } | |
15962 | ||
15963 | ||
15964 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15965 | PyObject *resultobj; | |
15966 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15967 | int arg2 ; | |
15968 | bool arg3 ; | |
15969 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15970 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15971 | PyObject * obj2 = 0 ; |
15972 | char *kwnames[] = { | |
15973 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
15974 | }; | |
15975 | ||
8edf1c75 | 15976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 15978 | { |
8edf1c75 RD |
15979 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
15980 | if (PyErr_Occurred()) SWIG_fail; | |
15981 | } | |
15982 | { | |
15983 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
2dbef272 RD |
15984 | if (PyErr_Occurred()) SWIG_fail; |
15985 | } | |
d14a1e28 RD |
15986 | { |
15987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15988 | (arg1)->EnableTool(arg2,arg3); | |
15989 | ||
15990 | wxPyEndAllowThreads(__tstate); | |
15991 | if (PyErr_Occurred()) SWIG_fail; | |
15992 | } | |
15993 | Py_INCREF(Py_None); resultobj = Py_None; | |
15994 | return resultobj; | |
15995 | fail: | |
15996 | return NULL; | |
15997 | } | |
15998 | ||
15999 | ||
16000 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16001 | PyObject *resultobj; | |
16002 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16003 | int arg2 ; | |
16004 | bool arg3 ; | |
16005 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16006 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16007 | PyObject * obj2 = 0 ; |
16008 | char *kwnames[] = { | |
16009 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16010 | }; | |
16011 | ||
8edf1c75 | 16012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 16014 | { |
8edf1c75 RD |
16015 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16016 | if (PyErr_Occurred()) SWIG_fail; | |
16017 | } | |
16018 | { | |
16019 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
2dbef272 RD |
16020 | if (PyErr_Occurred()) SWIG_fail; |
16021 | } | |
d14a1e28 RD |
16022 | { |
16023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16024 | (arg1)->ToggleTool(arg2,arg3); | |
16025 | ||
16026 | wxPyEndAllowThreads(__tstate); | |
16027 | if (PyErr_Occurred()) SWIG_fail; | |
16028 | } | |
16029 | Py_INCREF(Py_None); resultobj = Py_None; | |
16030 | return resultobj; | |
16031 | fail: | |
16032 | return NULL; | |
16033 | } | |
16034 | ||
16035 | ||
16036 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16037 | PyObject *resultobj; | |
16038 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16039 | int arg2 ; | |
16040 | bool arg3 ; | |
16041 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16042 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16043 | PyObject * obj2 = 0 ; |
16044 | char *kwnames[] = { | |
16045 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16046 | }; | |
16047 | ||
8edf1c75 | 16048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 16050 | { |
8edf1c75 RD |
16051 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16052 | if (PyErr_Occurred()) SWIG_fail; | |
16053 | } | |
16054 | { | |
16055 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
2dbef272 RD |
16056 | if (PyErr_Occurred()) SWIG_fail; |
16057 | } | |
d14a1e28 RD |
16058 | { |
16059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16060 | (arg1)->SetToggle(arg2,arg3); | |
16061 | ||
16062 | wxPyEndAllowThreads(__tstate); | |
16063 | if (PyErr_Occurred()) SWIG_fail; | |
16064 | } | |
16065 | Py_INCREF(Py_None); resultobj = Py_None; | |
16066 | return resultobj; | |
16067 | fail: | |
16068 | return NULL; | |
16069 | } | |
16070 | ||
16071 | ||
16072 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16073 | PyObject *resultobj; | |
16074 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16075 | int arg2 ; | |
16076 | PyObject *result; | |
16077 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16078 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16079 | char *kwnames[] = { |
16080 | (char *) "self",(char *) "id", NULL | |
16081 | }; | |
16082 | ||
8edf1c75 | 16083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16085 | { |
16086 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16087 | if (PyErr_Occurred()) SWIG_fail; | |
16088 | } | |
d14a1e28 RD |
16089 | { |
16090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16091 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
16092 | ||
16093 | wxPyEndAllowThreads(__tstate); | |
16094 | if (PyErr_Occurred()) SWIG_fail; | |
16095 | } | |
16096 | resultobj = result; | |
16097 | return resultobj; | |
16098 | fail: | |
16099 | return NULL; | |
16100 | } | |
16101 | ||
16102 | ||
16103 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16104 | PyObject *resultobj; | |
16105 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16106 | int arg2 ; | |
16107 | PyObject *arg3 = (PyObject *) 0 ; | |
16108 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16109 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16110 | PyObject * obj2 = 0 ; |
16111 | char *kwnames[] = { | |
16112 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
16113 | }; | |
16114 | ||
8edf1c75 | 16115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16117 | { |
16118 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16119 | if (PyErr_Occurred()) SWIG_fail; | |
16120 | } | |
d14a1e28 RD |
16121 | arg3 = obj2; |
16122 | { | |
16123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16124 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
16125 | ||
16126 | wxPyEndAllowThreads(__tstate); | |
16127 | if (PyErr_Occurred()) SWIG_fail; | |
16128 | } | |
16129 | Py_INCREF(Py_None); resultobj = Py_None; | |
16130 | return resultobj; | |
16131 | fail: | |
16132 | return NULL; | |
16133 | } | |
16134 | ||
16135 | ||
16136 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16137 | PyObject *resultobj; | |
16138 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16139 | int arg2 ; | |
16140 | int result; | |
16141 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16142 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16143 | char *kwnames[] = { |
16144 | (char *) "self",(char *) "id", NULL | |
16145 | }; | |
16146 | ||
8edf1c75 | 16147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16149 | { |
16150 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16151 | if (PyErr_Occurred()) SWIG_fail; | |
16152 | } | |
d14a1e28 RD |
16153 | { |
16154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16155 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
16156 | ||
16157 | wxPyEndAllowThreads(__tstate); | |
16158 | if (PyErr_Occurred()) SWIG_fail; | |
16159 | } | |
8edf1c75 | 16160 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16161 | return resultobj; |
16162 | fail: | |
16163 | return NULL; | |
16164 | } | |
16165 | ||
16166 | ||
16167 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16168 | PyObject *resultobj; | |
16169 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16170 | int arg2 ; | |
16171 | bool result; | |
16172 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16173 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16174 | char *kwnames[] = { |
16175 | (char *) "self",(char *) "id", NULL | |
16176 | }; | |
16177 | ||
8edf1c75 | 16178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16180 | { |
16181 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16182 | if (PyErr_Occurred()) SWIG_fail; | |
16183 | } | |
d14a1e28 RD |
16184 | { |
16185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16186 | result = (bool)(arg1)->GetToolState(arg2); | |
16187 | ||
16188 | wxPyEndAllowThreads(__tstate); | |
16189 | if (PyErr_Occurred()) SWIG_fail; | |
16190 | } | |
02a34c4c | 16191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16192 | return resultobj; |
16193 | fail: | |
16194 | return NULL; | |
16195 | } | |
16196 | ||
16197 | ||
16198 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16199 | PyObject *resultobj; | |
16200 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16201 | int arg2 ; | |
16202 | bool result; | |
16203 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16204 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16205 | char *kwnames[] = { |
16206 | (char *) "self",(char *) "id", NULL | |
16207 | }; | |
16208 | ||
8edf1c75 | 16209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16211 | { |
16212 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16213 | if (PyErr_Occurred()) SWIG_fail; | |
16214 | } | |
d14a1e28 RD |
16215 | { |
16216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16217 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
16218 | ||
16219 | wxPyEndAllowThreads(__tstate); | |
16220 | if (PyErr_Occurred()) SWIG_fail; | |
16221 | } | |
02a34c4c | 16222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16223 | return resultobj; |
16224 | fail: | |
16225 | return NULL; | |
16226 | } | |
16227 | ||
16228 | ||
16229 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16230 | PyObject *resultobj; | |
16231 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16232 | int arg2 ; | |
16233 | wxString *arg3 = 0 ; | |
423f194a | 16234 | bool temp3 = False ; |
d14a1e28 | 16235 | PyObject * obj0 = 0 ; |
8edf1c75 | 16236 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16237 | PyObject * obj2 = 0 ; |
16238 | char *kwnames[] = { | |
16239 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16240 | }; | |
16241 | ||
8edf1c75 | 16242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16244 | { |
16245 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16246 | if (PyErr_Occurred()) SWIG_fail; | |
16247 | } | |
d14a1e28 RD |
16248 | { |
16249 | arg3 = wxString_in_helper(obj2); | |
16250 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16251 | temp3 = True; |
d14a1e28 RD |
16252 | } |
16253 | { | |
16254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16255 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
16256 | ||
16257 | wxPyEndAllowThreads(__tstate); | |
16258 | if (PyErr_Occurred()) SWIG_fail; | |
16259 | } | |
16260 | Py_INCREF(Py_None); resultobj = Py_None; | |
16261 | { | |
16262 | if (temp3) | |
16263 | delete arg3; | |
16264 | } | |
16265 | return resultobj; | |
16266 | fail: | |
16267 | { | |
16268 | if (temp3) | |
16269 | delete arg3; | |
16270 | } | |
16271 | return NULL; | |
16272 | } | |
16273 | ||
16274 | ||
16275 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16276 | PyObject *resultobj; | |
16277 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16278 | int arg2 ; | |
16279 | wxString result; | |
16280 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16281 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16282 | char *kwnames[] = { |
16283 | (char *) "self",(char *) "id", NULL | |
16284 | }; | |
16285 | ||
8edf1c75 | 16286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16288 | { |
16289 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16290 | if (PyErr_Occurred()) SWIG_fail; | |
16291 | } | |
d14a1e28 RD |
16292 | { |
16293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16294 | result = (arg1)->GetToolShortHelp(arg2); | |
16295 | ||
16296 | wxPyEndAllowThreads(__tstate); | |
16297 | if (PyErr_Occurred()) SWIG_fail; | |
16298 | } | |
16299 | { | |
16300 | #if wxUSE_UNICODE | |
16301 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16302 | #else | |
16303 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16304 | #endif | |
16305 | } | |
16306 | return resultobj; | |
16307 | fail: | |
16308 | return NULL; | |
16309 | } | |
16310 | ||
16311 | ||
16312 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16313 | PyObject *resultobj; | |
16314 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16315 | int arg2 ; | |
16316 | wxString *arg3 = 0 ; | |
423f194a | 16317 | bool temp3 = False ; |
d14a1e28 | 16318 | PyObject * obj0 = 0 ; |
8edf1c75 | 16319 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16320 | PyObject * obj2 = 0 ; |
16321 | char *kwnames[] = { | |
16322 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16323 | }; | |
16324 | ||
8edf1c75 | 16325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16327 | { |
16328 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16329 | if (PyErr_Occurred()) SWIG_fail; | |
16330 | } | |
d14a1e28 RD |
16331 | { |
16332 | arg3 = wxString_in_helper(obj2); | |
16333 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16334 | temp3 = True; |
d14a1e28 RD |
16335 | } |
16336 | { | |
16337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16338 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
16339 | ||
16340 | wxPyEndAllowThreads(__tstate); | |
16341 | if (PyErr_Occurred()) SWIG_fail; | |
16342 | } | |
16343 | Py_INCREF(Py_None); resultobj = Py_None; | |
16344 | { | |
16345 | if (temp3) | |
16346 | delete arg3; | |
16347 | } | |
16348 | return resultobj; | |
16349 | fail: | |
16350 | { | |
16351 | if (temp3) | |
16352 | delete arg3; | |
16353 | } | |
16354 | return NULL; | |
16355 | } | |
16356 | ||
16357 | ||
16358 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16359 | PyObject *resultobj; | |
16360 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16361 | int arg2 ; | |
16362 | wxString result; | |
16363 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16364 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16365 | char *kwnames[] = { |
16366 | (char *) "self",(char *) "id", NULL | |
16367 | }; | |
16368 | ||
8edf1c75 | 16369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16371 | { |
16372 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16373 | if (PyErr_Occurred()) SWIG_fail; | |
16374 | } | |
d14a1e28 RD |
16375 | { |
16376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16377 | result = (arg1)->GetToolLongHelp(arg2); | |
16378 | ||
16379 | wxPyEndAllowThreads(__tstate); | |
16380 | if (PyErr_Occurred()) SWIG_fail; | |
16381 | } | |
16382 | { | |
16383 | #if wxUSE_UNICODE | |
16384 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16385 | #else | |
16386 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16387 | #endif | |
16388 | } | |
16389 | return resultobj; | |
16390 | fail: | |
16391 | return NULL; | |
16392 | } | |
16393 | ||
16394 | ||
16395 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16396 | PyObject *resultobj; | |
16397 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16398 | int arg2 ; | |
16399 | int arg3 ; | |
16400 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16401 | PyObject * obj1 = 0 ; |
16402 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16403 | char *kwnames[] = { |
16404 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16405 | }; | |
16406 | ||
8edf1c75 | 16407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16409 | { |
16410 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16411 | if (PyErr_Occurred()) SWIG_fail; | |
16412 | } | |
16413 | { | |
16414 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16415 | if (PyErr_Occurred()) SWIG_fail; | |
16416 | } | |
d14a1e28 RD |
16417 | { |
16418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16419 | (arg1)->SetMargins(arg2,arg3); | |
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_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16432 | PyObject *resultobj; | |
16433 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16434 | wxSize *arg2 = 0 ; | |
16435 | wxSize temp2 ; | |
16436 | PyObject * obj0 = 0 ; | |
16437 | PyObject * obj1 = 0 ; | |
16438 | char *kwnames[] = { | |
16439 | (char *) "self",(char *) "size", NULL | |
16440 | }; | |
16441 | ||
16442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
16443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16444 | { | |
16445 | arg2 = &temp2; | |
16446 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16447 | } | |
16448 | { | |
16449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16450 | (arg1)->SetMargins((wxSize const &)*arg2); | |
16451 | ||
16452 | wxPyEndAllowThreads(__tstate); | |
16453 | if (PyErr_Occurred()) SWIG_fail; | |
16454 | } | |
16455 | Py_INCREF(Py_None); resultobj = Py_None; | |
16456 | return resultobj; | |
16457 | fail: | |
16458 | return NULL; | |
16459 | } | |
16460 | ||
16461 | ||
16462 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16463 | PyObject *resultobj; | |
16464 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16465 | int arg2 ; | |
16466 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16467 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16468 | char *kwnames[] = { |
16469 | (char *) "self",(char *) "packing", NULL | |
16470 | }; | |
16471 | ||
8edf1c75 | 16472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16474 | { |
16475 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16476 | if (PyErr_Occurred()) SWIG_fail; | |
16477 | } | |
d14a1e28 RD |
16478 | { |
16479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16480 | (arg1)->SetToolPacking(arg2); | |
16481 | ||
16482 | wxPyEndAllowThreads(__tstate); | |
16483 | if (PyErr_Occurred()) SWIG_fail; | |
16484 | } | |
16485 | Py_INCREF(Py_None); resultobj = Py_None; | |
16486 | return resultobj; | |
16487 | fail: | |
16488 | return NULL; | |
16489 | } | |
16490 | ||
16491 | ||
16492 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16493 | PyObject *resultobj; | |
16494 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16495 | int arg2 ; | |
16496 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16497 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16498 | char *kwnames[] = { |
16499 | (char *) "self",(char *) "separation", NULL | |
16500 | }; | |
16501 | ||
8edf1c75 | 16502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16504 | { |
16505 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16506 | if (PyErr_Occurred()) SWIG_fail; | |
16507 | } | |
d14a1e28 RD |
16508 | { |
16509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16510 | (arg1)->SetToolSeparation(arg2); | |
16511 | ||
16512 | wxPyEndAllowThreads(__tstate); | |
16513 | if (PyErr_Occurred()) SWIG_fail; | |
16514 | } | |
16515 | Py_INCREF(Py_None); resultobj = Py_None; | |
16516 | return resultobj; | |
16517 | fail: | |
16518 | return NULL; | |
16519 | } | |
16520 | ||
16521 | ||
16522 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16523 | PyObject *resultobj; | |
16524 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16525 | wxSize result; | |
16526 | PyObject * obj0 = 0 ; | |
16527 | char *kwnames[] = { | |
16528 | (char *) "self", NULL | |
16529 | }; | |
16530 | ||
16531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
16532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16533 | { | |
16534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16535 | result = (arg1)->GetToolMargins(); | |
16536 | ||
16537 | wxPyEndAllowThreads(__tstate); | |
16538 | if (PyErr_Occurred()) SWIG_fail; | |
16539 | } | |
16540 | { | |
16541 | wxSize * resultptr; | |
16542 | resultptr = new wxSize((wxSize &) result); | |
16543 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16544 | } | |
16545 | return resultobj; | |
16546 | fail: | |
16547 | return NULL; | |
16548 | } | |
16549 | ||
16550 | ||
16551 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16552 | PyObject *resultobj; | |
16553 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16554 | wxSize result; | |
16555 | PyObject * obj0 = 0 ; | |
16556 | char *kwnames[] = { | |
16557 | (char *) "self", NULL | |
16558 | }; | |
16559 | ||
16560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
16561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16562 | { | |
16563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16564 | result = (arg1)->GetMargins(); | |
16565 | ||
16566 | wxPyEndAllowThreads(__tstate); | |
16567 | if (PyErr_Occurred()) SWIG_fail; | |
16568 | } | |
16569 | { | |
16570 | wxSize * resultptr; | |
16571 | resultptr = new wxSize((wxSize &) result); | |
16572 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16573 | } | |
16574 | return resultobj; | |
16575 | fail: | |
16576 | return NULL; | |
16577 | } | |
16578 | ||
16579 | ||
16580 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16581 | PyObject *resultobj; | |
16582 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16583 | int result; | |
16584 | PyObject * obj0 = 0 ; | |
16585 | char *kwnames[] = { | |
16586 | (char *) "self", NULL | |
16587 | }; | |
16588 | ||
16589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
16590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16591 | { | |
16592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16593 | result = (int)(arg1)->GetToolPacking(); | |
16594 | ||
16595 | wxPyEndAllowThreads(__tstate); | |
16596 | if (PyErr_Occurred()) SWIG_fail; | |
16597 | } | |
8edf1c75 | 16598 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16599 | return resultobj; |
16600 | fail: | |
16601 | return NULL; | |
16602 | } | |
16603 | ||
16604 | ||
16605 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(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_GetToolSeparation",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)->GetToolSeparation(); | |
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_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16631 | PyObject *resultobj; | |
16632 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16633 | int arg2 ; | |
16634 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16635 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16636 | char *kwnames[] = { |
16637 | (char *) "self",(char *) "nRows", NULL | |
16638 | }; | |
16639 | ||
8edf1c75 | 16640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16642 | { |
16643 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16644 | if (PyErr_Occurred()) SWIG_fail; | |
16645 | } | |
d14a1e28 RD |
16646 | { |
16647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16648 | (arg1)->SetRows(arg2); | |
16649 | ||
16650 | wxPyEndAllowThreads(__tstate); | |
16651 | if (PyErr_Occurred()) SWIG_fail; | |
16652 | } | |
16653 | Py_INCREF(Py_None); resultobj = Py_None; | |
16654 | return resultobj; | |
16655 | fail: | |
16656 | return NULL; | |
16657 | } | |
16658 | ||
16659 | ||
16660 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16661 | PyObject *resultobj; | |
16662 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16663 | int arg2 ; | |
16664 | int arg3 ; | |
16665 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16666 | PyObject * obj1 = 0 ; |
16667 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16668 | char *kwnames[] = { |
16669 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
16670 | }; | |
16671 | ||
8edf1c75 | 16672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16674 | { |
16675 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16676 | if (PyErr_Occurred()) SWIG_fail; | |
16677 | } | |
16678 | { | |
16679 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16680 | if (PyErr_Occurred()) SWIG_fail; | |
16681 | } | |
d14a1e28 RD |
16682 | { |
16683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16684 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
16685 | ||
16686 | wxPyEndAllowThreads(__tstate); | |
16687 | if (PyErr_Occurred()) SWIG_fail; | |
16688 | } | |
16689 | Py_INCREF(Py_None); resultobj = Py_None; | |
16690 | return resultobj; | |
16691 | fail: | |
16692 | return NULL; | |
16693 | } | |
16694 | ||
16695 | ||
16696 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16697 | PyObject *resultobj; | |
16698 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16699 | int result; | |
16700 | PyObject * obj0 = 0 ; | |
16701 | char *kwnames[] = { | |
16702 | (char *) "self", NULL | |
16703 | }; | |
16704 | ||
16705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
16706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16707 | { | |
16708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16709 | result = (int)(arg1)->GetMaxRows(); | |
16710 | ||
16711 | wxPyEndAllowThreads(__tstate); | |
16712 | if (PyErr_Occurred()) SWIG_fail; | |
16713 | } | |
8edf1c75 | 16714 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16715 | return resultobj; |
16716 | fail: | |
16717 | return NULL; | |
16718 | } | |
16719 | ||
16720 | ||
16721 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16722 | PyObject *resultobj; | |
16723 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16724 | int result; | |
16725 | PyObject * obj0 = 0 ; | |
16726 | char *kwnames[] = { | |
16727 | (char *) "self", NULL | |
16728 | }; | |
16729 | ||
16730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
16731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16732 | { | |
16733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16734 | result = (int)(arg1)->GetMaxCols(); | |
16735 | ||
16736 | wxPyEndAllowThreads(__tstate); | |
16737 | if (PyErr_Occurred()) SWIG_fail; | |
16738 | } | |
8edf1c75 | 16739 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16740 | return resultobj; |
16741 | fail: | |
16742 | return NULL; | |
16743 | } | |
16744 | ||
16745 | ||
16746 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16747 | PyObject *resultobj; | |
16748 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16749 | wxSize *arg2 = 0 ; | |
16750 | wxSize temp2 ; | |
16751 | PyObject * obj0 = 0 ; | |
16752 | PyObject * obj1 = 0 ; | |
16753 | char *kwnames[] = { | |
16754 | (char *) "self",(char *) "size", NULL | |
16755 | }; | |
16756 | ||
16757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
16758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16759 | { | |
16760 | arg2 = &temp2; | |
16761 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16762 | } | |
16763 | { | |
16764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16765 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
16766 | ||
16767 | wxPyEndAllowThreads(__tstate); | |
16768 | if (PyErr_Occurred()) SWIG_fail; | |
16769 | } | |
16770 | Py_INCREF(Py_None); resultobj = Py_None; | |
16771 | return resultobj; | |
16772 | fail: | |
16773 | return NULL; | |
16774 | } | |
16775 | ||
16776 | ||
16777 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16778 | PyObject *resultobj; | |
16779 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16780 | wxSize result; | |
16781 | PyObject * obj0 = 0 ; | |
16782 | char *kwnames[] = { | |
16783 | (char *) "self", NULL | |
16784 | }; | |
16785 | ||
16786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
16787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16788 | { | |
16789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16790 | result = (arg1)->GetToolBitmapSize(); | |
16791 | ||
16792 | wxPyEndAllowThreads(__tstate); | |
16793 | if (PyErr_Occurred()) SWIG_fail; | |
16794 | } | |
16795 | { | |
16796 | wxSize * resultptr; | |
16797 | resultptr = new wxSize((wxSize &) result); | |
16798 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16799 | } | |
16800 | return resultobj; | |
16801 | fail: | |
16802 | return NULL; | |
16803 | } | |
16804 | ||
16805 | ||
16806 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16807 | PyObject *resultobj; | |
16808 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16809 | wxSize result; | |
16810 | PyObject * obj0 = 0 ; | |
16811 | char *kwnames[] = { | |
16812 | (char *) "self", NULL | |
16813 | }; | |
16814 | ||
16815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
16816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16817 | { | |
16818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16819 | result = (arg1)->GetToolSize(); | |
16820 | ||
16821 | wxPyEndAllowThreads(__tstate); | |
16822 | if (PyErr_Occurred()) SWIG_fail; | |
16823 | } | |
16824 | { | |
16825 | wxSize * resultptr; | |
16826 | resultptr = new wxSize((wxSize &) result); | |
16827 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16828 | } | |
16829 | return resultobj; | |
16830 | fail: | |
16831 | return NULL; | |
16832 | } | |
16833 | ||
16834 | ||
16835 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16836 | PyObject *resultobj; | |
16837 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
423f194a RD |
16838 | int arg2 ; |
16839 | int arg3 ; | |
d14a1e28 RD |
16840 | wxToolBarToolBase *result; |
16841 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16842 | PyObject * obj1 = 0 ; |
16843 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16844 | char *kwnames[] = { |
16845 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16846 | }; | |
16847 | ||
8edf1c75 | 16848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16850 | { |
16851 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16852 | if (PyErr_Occurred()) SWIG_fail; | |
16853 | } | |
16854 | { | |
16855 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16856 | if (PyErr_Occurred()) SWIG_fail; | |
16857 | } | |
d14a1e28 RD |
16858 | { |
16859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16860 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
16861 | ||
16862 | wxPyEndAllowThreads(__tstate); | |
16863 | if (PyErr_Occurred()) SWIG_fail; | |
16864 | } | |
16865 | { | |
16866 | resultobj = wxPyMake_wxObject(result); | |
16867 | } | |
16868 | return resultobj; | |
16869 | fail: | |
16870 | return NULL; | |
16871 | } | |
16872 | ||
16873 | ||
cbd72d4f RD |
16874 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
16875 | PyObject *resultobj; | |
16876 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16877 | int arg2 ; | |
16878 | wxToolBarToolBase *result; | |
16879 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16880 | PyObject * obj1 = 0 ; |
cbd72d4f RD |
16881 | char *kwnames[] = { |
16882 | (char *) "self",(char *) "toolid", NULL | |
16883 | }; | |
16884 | ||
8edf1c75 | 16885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
cbd72d4f | 16886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16887 | { |
16888 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16889 | if (PyErr_Occurred()) SWIG_fail; | |
16890 | } | |
cbd72d4f RD |
16891 | { |
16892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16893 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
16894 | ||
16895 | wxPyEndAllowThreads(__tstate); | |
16896 | if (PyErr_Occurred()) SWIG_fail; | |
16897 | } | |
16898 | { | |
16899 | resultobj = wxPyMake_wxObject(result); | |
16900 | } | |
16901 | return resultobj; | |
16902 | fail: | |
16903 | return NULL; | |
16904 | } | |
16905 | ||
16906 | ||
d14a1e28 RD |
16907 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
16908 | PyObject *resultobj; | |
16909 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16910 | bool result; | |
16911 | PyObject * obj0 = 0 ; | |
16912 | char *kwnames[] = { | |
16913 | (char *) "self", NULL | |
16914 | }; | |
16915 | ||
16916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
16917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16918 | { | |
16919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16920 | result = (bool)(arg1)->IsVertical(); | |
16921 | ||
16922 | wxPyEndAllowThreads(__tstate); | |
16923 | if (PyErr_Occurred()) SWIG_fail; | |
16924 | } | |
02a34c4c | 16925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16926 | return resultobj; |
16927 | fail: | |
16928 | return NULL; | |
16929 | } | |
16930 | ||
16931 | ||
16932 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
16933 | PyObject *obj; | |
16934 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16935 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
16936 | Py_INCREF(obj); | |
16937 | return Py_BuildValue((char *)""); | |
16938 | } | |
16939 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16940 | PyObject *resultobj; | |
16941 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 16942 | int arg2 ; |
d14a1e28 RD |
16943 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
16944 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16945 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
16946 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
16947 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
16948 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
16949 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
16950 | wxToolBar *result; | |
16951 | wxPoint temp3 ; | |
16952 | wxSize temp4 ; | |
423f194a | 16953 | bool temp6 = False ; |
d14a1e28 | 16954 | PyObject * obj0 = 0 ; |
8edf1c75 | 16955 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16956 | PyObject * obj2 = 0 ; |
16957 | PyObject * obj3 = 0 ; | |
8edf1c75 | 16958 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16959 | PyObject * obj5 = 0 ; |
16960 | char *kwnames[] = { | |
16961 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16962 | }; | |
16963 | ||
8edf1c75 | 16964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 16965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16966 | { |
16967 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16968 | if (PyErr_Occurred()) SWIG_fail; | |
16969 | } | |
d14a1e28 RD |
16970 | if (obj2) { |
16971 | { | |
16972 | arg3 = &temp3; | |
16973 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16974 | } | |
16975 | } | |
16976 | if (obj3) { | |
16977 | { | |
16978 | arg4 = &temp4; | |
16979 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
16980 | } | |
16981 | } | |
8edf1c75 RD |
16982 | if (obj4) { |
16983 | { | |
16984 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
16985 | if (PyErr_Occurred()) SWIG_fail; | |
16986 | } | |
16987 | } | |
d14a1e28 RD |
16988 | if (obj5) { |
16989 | { | |
16990 | arg6 = wxString_in_helper(obj5); | |
16991 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 16992 | temp6 = True; |
d14a1e28 RD |
16993 | } |
16994 | } | |
16995 | { | |
16996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16997 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
16998 | ||
16999 | wxPyEndAllowThreads(__tstate); | |
17000 | if (PyErr_Occurred()) SWIG_fail; | |
17001 | } | |
17002 | { | |
17003 | resultobj = wxPyMake_wxObject(result); | |
17004 | } | |
17005 | { | |
17006 | if (temp6) | |
17007 | delete arg6; | |
17008 | } | |
17009 | return resultobj; | |
17010 | fail: | |
17011 | { | |
17012 | if (temp6) | |
17013 | delete arg6; | |
17014 | } | |
17015 | return NULL; | |
17016 | } | |
17017 | ||
17018 | ||
17019 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17020 | PyObject *resultobj; | |
17021 | wxToolBar *result; | |
17022 | char *kwnames[] = { | |
17023 | NULL | |
17024 | }; | |
17025 | ||
17026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
17027 | { | |
17028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17029 | result = (wxToolBar *)new wxToolBar(); | |
17030 | ||
17031 | wxPyEndAllowThreads(__tstate); | |
17032 | if (PyErr_Occurred()) SWIG_fail; | |
17033 | } | |
17034 | { | |
17035 | resultobj = wxPyMake_wxObject(result); | |
17036 | } | |
17037 | return resultobj; | |
17038 | fail: | |
17039 | return NULL; | |
17040 | } | |
17041 | ||
17042 | ||
17043 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17044 | PyObject *resultobj; | |
17045 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
17046 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 17047 | int arg3 ; |
d14a1e28 RD |
17048 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17049 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17050 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17051 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17052 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17053 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
17054 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17055 | bool result; | |
17056 | wxPoint temp4 ; | |
17057 | wxSize temp5 ; | |
423f194a | 17058 | bool temp7 = False ; |
d14a1e28 RD |
17059 | PyObject * obj0 = 0 ; |
17060 | PyObject * obj1 = 0 ; | |
8edf1c75 | 17061 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17062 | PyObject * obj3 = 0 ; |
17063 | PyObject * obj4 = 0 ; | |
8edf1c75 | 17064 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17065 | PyObject * obj6 = 0 ; |
17066 | char *kwnames[] = { | |
17067 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17068 | }; | |
17069 | ||
8edf1c75 | 17070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
17071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
17072 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
17073 | { |
17074 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17075 | if (PyErr_Occurred()) SWIG_fail; | |
17076 | } | |
d14a1e28 RD |
17077 | if (obj3) { |
17078 | { | |
17079 | arg4 = &temp4; | |
17080 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17081 | } | |
17082 | } | |
17083 | if (obj4) { | |
17084 | { | |
17085 | arg5 = &temp5; | |
17086 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17087 | } | |
17088 | } | |
8edf1c75 RD |
17089 | if (obj5) { |
17090 | { | |
17091 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
17092 | if (PyErr_Occurred()) SWIG_fail; | |
17093 | } | |
17094 | } | |
d14a1e28 RD |
17095 | if (obj6) { |
17096 | { | |
17097 | arg7 = wxString_in_helper(obj6); | |
17098 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 17099 | temp7 = True; |
d14a1e28 RD |
17100 | } |
17101 | } | |
17102 | { | |
17103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17104 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17105 | ||
17106 | wxPyEndAllowThreads(__tstate); | |
17107 | if (PyErr_Occurred()) SWIG_fail; | |
17108 | } | |
02a34c4c | 17109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17110 | { |
17111 | if (temp7) | |
17112 | delete arg7; | |
17113 | } | |
17114 | return resultobj; | |
17115 | fail: | |
17116 | { | |
17117 | if (temp7) | |
17118 | delete arg7; | |
17119 | } | |
17120 | return NULL; | |
17121 | } | |
17122 | ||
17123 | ||
17124 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17125 | PyObject *resultobj; | |
17126 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
423f194a RD |
17127 | int arg2 ; |
17128 | int arg3 ; | |
d14a1e28 RD |
17129 | wxToolBarToolBase *result; |
17130 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17131 | PyObject * obj1 = 0 ; |
17132 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17133 | char *kwnames[] = { |
17134 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17135 | }; | |
17136 | ||
8edf1c75 | 17137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17139 | { |
17140 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17141 | if (PyErr_Occurred()) SWIG_fail; | |
17142 | } | |
17143 | { | |
17144 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17145 | if (PyErr_Occurred()) SWIG_fail; | |
17146 | } | |
d14a1e28 RD |
17147 | { |
17148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17149 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17150 | ||
17151 | wxPyEndAllowThreads(__tstate); | |
17152 | if (PyErr_Occurred()) SWIG_fail; | |
17153 | } | |
17154 | { | |
17155 | resultobj = wxPyMake_wxObject(result); | |
17156 | } | |
17157 | return resultobj; | |
17158 | fail: | |
17159 | return NULL; | |
17160 | } | |
17161 | ||
17162 | ||
17163 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
17164 | PyObject *obj; | |
17165 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17166 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
17167 | Py_INCREF(obj); | |
17168 | return Py_BuildValue((char *)""); | |
17169 | } | |
8edf1c75 | 17170 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
cbd72d4f RD |
17171 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
17172 | return 1; | |
17173 | } | |
17174 | ||
17175 | ||
17176 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
17177 | PyObject *pyobj; | |
17178 | ||
17179 | { | |
17180 | #if wxUSE_UNICODE | |
17181 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17182 | #else | |
17183 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17184 | #endif | |
17185 | } | |
17186 | return pyobj; | |
17187 | } | |
17188 | ||
17189 | ||
d14a1e28 RD |
17190 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
17191 | PyObject *resultobj; | |
17192 | wxColour const &arg1_defvalue = wxNullColour ; | |
17193 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
17194 | wxColour const &arg2_defvalue = wxNullColour ; | |
17195 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
17196 | wxFont const &arg3_defvalue = wxNullFont ; | |
17197 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
17198 | wxListItemAttr *result; | |
17199 | wxColour temp1 ; | |
17200 | wxColour temp2 ; | |
17201 | PyObject * obj0 = 0 ; | |
17202 | PyObject * obj1 = 0 ; | |
17203 | PyObject * obj2 = 0 ; | |
17204 | char *kwnames[] = { | |
17205 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
17206 | }; | |
17207 | ||
17208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17209 | if (obj0) { | |
17210 | { | |
17211 | arg1 = &temp1; | |
17212 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
17213 | } | |
17214 | } | |
17215 | if (obj1) { | |
17216 | { | |
17217 | arg2 = &temp2; | |
17218 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17219 | } | |
17220 | } | |
17221 | if (obj2) { | |
17222 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17223 | if (arg3 == NULL) { | |
17224 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17225 | } | |
17226 | } | |
17227 | { | |
17228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17229 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
17230 | ||
17231 | wxPyEndAllowThreads(__tstate); | |
17232 | if (PyErr_Occurred()) SWIG_fail; | |
17233 | } | |
17234 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 1); | |
17235 | return resultobj; | |
17236 | fail: | |
17237 | return NULL; | |
17238 | } | |
17239 | ||
17240 | ||
17241 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17242 | PyObject *resultobj; | |
17243 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17244 | wxColour *arg2 = 0 ; | |
17245 | wxColour temp2 ; | |
17246 | PyObject * obj0 = 0 ; | |
17247 | PyObject * obj1 = 0 ; | |
17248 | char *kwnames[] = { | |
17249 | (char *) "self",(char *) "colText", NULL | |
17250 | }; | |
17251 | ||
17252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
17253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17254 | { | |
17255 | arg2 = &temp2; | |
17256 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17257 | } | |
17258 | { | |
17259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17260 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
17261 | ||
17262 | wxPyEndAllowThreads(__tstate); | |
17263 | if (PyErr_Occurred()) SWIG_fail; | |
17264 | } | |
17265 | Py_INCREF(Py_None); resultobj = Py_None; | |
17266 | return resultobj; | |
17267 | fail: | |
17268 | return NULL; | |
17269 | } | |
17270 | ||
17271 | ||
17272 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17273 | PyObject *resultobj; | |
17274 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17275 | wxColour *arg2 = 0 ; | |
17276 | wxColour temp2 ; | |
17277 | PyObject * obj0 = 0 ; | |
17278 | PyObject * obj1 = 0 ; | |
17279 | char *kwnames[] = { | |
17280 | (char *) "self",(char *) "colBack", NULL | |
17281 | }; | |
17282 | ||
17283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17285 | { | |
17286 | arg2 = &temp2; | |
17287 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17288 | } | |
17289 | { | |
17290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17291 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17292 | ||
17293 | wxPyEndAllowThreads(__tstate); | |
17294 | if (PyErr_Occurred()) SWIG_fail; | |
17295 | } | |
17296 | Py_INCREF(Py_None); resultobj = Py_None; | |
17297 | return resultobj; | |
17298 | fail: | |
17299 | return NULL; | |
17300 | } | |
17301 | ||
17302 | ||
17303 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17304 | PyObject *resultobj; | |
17305 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17306 | wxFont *arg2 = 0 ; | |
17307 | PyObject * obj0 = 0 ; | |
17308 | PyObject * obj1 = 0 ; | |
17309 | char *kwnames[] = { | |
17310 | (char *) "self",(char *) "font", NULL | |
17311 | }; | |
17312 | ||
17313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
17314 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17315 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17316 | if (arg2 == NULL) { | |
17317 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17318 | } | |
17319 | { | |
17320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17321 | (arg1)->SetFont((wxFont const &)*arg2); | |
17322 | ||
17323 | wxPyEndAllowThreads(__tstate); | |
17324 | if (PyErr_Occurred()) SWIG_fail; | |
17325 | } | |
17326 | Py_INCREF(Py_None); resultobj = Py_None; | |
17327 | return resultobj; | |
17328 | fail: | |
17329 | return NULL; | |
17330 | } | |
17331 | ||
17332 | ||
17333 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17334 | PyObject *resultobj; | |
17335 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17336 | bool result; | |
17337 | PyObject * obj0 = 0 ; | |
17338 | char *kwnames[] = { | |
17339 | (char *) "self", NULL | |
17340 | }; | |
17341 | ||
17342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
17343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17344 | { | |
17345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17346 | result = (bool)(arg1)->HasTextColour(); | |
17347 | ||
17348 | wxPyEndAllowThreads(__tstate); | |
17349 | if (PyErr_Occurred()) SWIG_fail; | |
17350 | } | |
02a34c4c | 17351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17352 | return resultobj; |
17353 | fail: | |
17354 | return NULL; | |
17355 | } | |
17356 | ||
17357 | ||
17358 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17359 | PyObject *resultobj; | |
17360 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17361 | bool result; | |
17362 | PyObject * obj0 = 0 ; | |
17363 | char *kwnames[] = { | |
17364 | (char *) "self", NULL | |
17365 | }; | |
17366 | ||
17367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
17368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17369 | { | |
17370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17371 | result = (bool)(arg1)->HasBackgroundColour(); | |
17372 | ||
17373 | wxPyEndAllowThreads(__tstate); | |
17374 | if (PyErr_Occurred()) SWIG_fail; | |
17375 | } | |
02a34c4c | 17376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17377 | return resultobj; |
17378 | fail: | |
17379 | return NULL; | |
17380 | } | |
17381 | ||
17382 | ||
17383 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17384 | PyObject *resultobj; | |
17385 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17386 | bool result; | |
17387 | PyObject * obj0 = 0 ; | |
17388 | char *kwnames[] = { | |
17389 | (char *) "self", NULL | |
17390 | }; | |
17391 | ||
17392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
17393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17394 | { | |
17395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17396 | result = (bool)(arg1)->HasFont(); | |
17397 | ||
17398 | wxPyEndAllowThreads(__tstate); | |
17399 | if (PyErr_Occurred()) SWIG_fail; | |
17400 | } | |
02a34c4c | 17401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17402 | return resultobj; |
17403 | fail: | |
17404 | return NULL; | |
17405 | } | |
17406 | ||
17407 | ||
17408 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17409 | PyObject *resultobj; | |
17410 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17411 | wxColour result; | |
17412 | PyObject * obj0 = 0 ; | |
17413 | char *kwnames[] = { | |
17414 | (char *) "self", NULL | |
17415 | }; | |
17416 | ||
17417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
17418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17419 | { | |
17420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17421 | result = (arg1)->GetTextColour(); | |
17422 | ||
17423 | wxPyEndAllowThreads(__tstate); | |
17424 | if (PyErr_Occurred()) SWIG_fail; | |
17425 | } | |
17426 | { | |
17427 | wxColour * resultptr; | |
17428 | resultptr = new wxColour((wxColour &) result); | |
17429 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17430 | } | |
17431 | return resultobj; | |
17432 | fail: | |
17433 | return NULL; | |
17434 | } | |
17435 | ||
17436 | ||
17437 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17438 | PyObject *resultobj; | |
17439 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17440 | wxColour result; | |
17441 | PyObject * obj0 = 0 ; | |
17442 | char *kwnames[] = { | |
17443 | (char *) "self", NULL | |
17444 | }; | |
17445 | ||
17446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
17447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17448 | { | |
17449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17450 | result = (arg1)->GetBackgroundColour(); | |
17451 | ||
17452 | wxPyEndAllowThreads(__tstate); | |
17453 | if (PyErr_Occurred()) SWIG_fail; | |
17454 | } | |
17455 | { | |
17456 | wxColour * resultptr; | |
17457 | resultptr = new wxColour((wxColour &) result); | |
17458 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17459 | } | |
17460 | return resultobj; | |
17461 | fail: | |
17462 | return NULL; | |
17463 | } | |
17464 | ||
17465 | ||
17466 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17467 | PyObject *resultobj; | |
17468 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17469 | wxFont result; | |
17470 | PyObject * obj0 = 0 ; | |
17471 | char *kwnames[] = { | |
17472 | (char *) "self", NULL | |
17473 | }; | |
17474 | ||
17475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
17476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17477 | { | |
17478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17479 | result = (arg1)->GetFont(); | |
17480 | ||
17481 | wxPyEndAllowThreads(__tstate); | |
17482 | if (PyErr_Occurred()) SWIG_fail; | |
17483 | } | |
17484 | { | |
17485 | wxFont * resultptr; | |
17486 | resultptr = new wxFont((wxFont &) result); | |
17487 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
17488 | } | |
17489 | return resultobj; | |
17490 | fail: | |
17491 | return NULL; | |
17492 | } | |
17493 | ||
17494 | ||
17495 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17496 | PyObject *resultobj; | |
17497 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17498 | PyObject * obj0 = 0 ; | |
17499 | char *kwnames[] = { | |
17500 | (char *) "self", NULL | |
17501 | }; | |
17502 | ||
17503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
17504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17505 | { | |
17506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17507 | wxListItemAttr_Destroy(arg1); | |
17508 | ||
17509 | wxPyEndAllowThreads(__tstate); | |
17510 | if (PyErr_Occurred()) SWIG_fail; | |
17511 | } | |
17512 | Py_INCREF(Py_None); resultobj = Py_None; | |
17513 | return resultobj; | |
17514 | fail: | |
17515 | return NULL; | |
17516 | } | |
17517 | ||
17518 | ||
17519 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
17520 | PyObject *obj; | |
17521 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17522 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
17523 | Py_INCREF(obj); | |
17524 | return Py_BuildValue((char *)""); | |
17525 | } | |
17526 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17527 | PyObject *resultobj; | |
17528 | wxListItem *result; | |
17529 | char *kwnames[] = { | |
17530 | NULL | |
17531 | }; | |
17532 | ||
17533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
17534 | { | |
17535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17536 | result = (wxListItem *)new wxListItem(); | |
17537 | ||
17538 | wxPyEndAllowThreads(__tstate); | |
17539 | if (PyErr_Occurred()) SWIG_fail; | |
17540 | } | |
17541 | { | |
17542 | resultobj = wxPyMake_wxObject(result); | |
17543 | } | |
17544 | return resultobj; | |
17545 | fail: | |
17546 | return NULL; | |
17547 | } | |
17548 | ||
17549 | ||
17550 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17551 | PyObject *resultobj; | |
17552 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17553 | PyObject * obj0 = 0 ; | |
17554 | char *kwnames[] = { | |
17555 | (char *) "self", NULL | |
17556 | }; | |
17557 | ||
17558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
17559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17560 | { | |
17561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17562 | delete arg1; | |
17563 | ||
17564 | wxPyEndAllowThreads(__tstate); | |
17565 | if (PyErr_Occurred()) SWIG_fail; | |
17566 | } | |
17567 | Py_INCREF(Py_None); resultobj = Py_None; | |
17568 | return resultobj; | |
17569 | fail: | |
17570 | return NULL; | |
17571 | } | |
17572 | ||
17573 | ||
17574 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17575 | PyObject *resultobj; | |
17576 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17577 | PyObject * obj0 = 0 ; | |
17578 | char *kwnames[] = { | |
17579 | (char *) "self", NULL | |
17580 | }; | |
17581 | ||
17582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
17583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17584 | { | |
17585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17586 | (arg1)->Clear(); | |
17587 | ||
17588 | wxPyEndAllowThreads(__tstate); | |
17589 | if (PyErr_Occurred()) SWIG_fail; | |
17590 | } | |
17591 | Py_INCREF(Py_None); resultobj = Py_None; | |
17592 | return resultobj; | |
17593 | fail: | |
17594 | return NULL; | |
17595 | } | |
17596 | ||
17597 | ||
17598 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17599 | PyObject *resultobj; | |
17600 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17601 | PyObject * obj0 = 0 ; | |
17602 | char *kwnames[] = { | |
17603 | (char *) "self", NULL | |
17604 | }; | |
17605 | ||
17606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
17607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17608 | { | |
17609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17610 | (arg1)->ClearAttributes(); | |
17611 | ||
17612 | wxPyEndAllowThreads(__tstate); | |
17613 | if (PyErr_Occurred()) SWIG_fail; | |
17614 | } | |
17615 | Py_INCREF(Py_None); resultobj = Py_None; | |
17616 | return resultobj; | |
17617 | fail: | |
17618 | return NULL; | |
17619 | } | |
17620 | ||
17621 | ||
17622 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17623 | PyObject *resultobj; | |
17624 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17625 | long arg2 ; | |
17626 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17627 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17628 | char *kwnames[] = { |
17629 | (char *) "self",(char *) "mask", NULL | |
17630 | }; | |
17631 | ||
8edf1c75 | 17632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17634 | { |
17635 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17636 | if (PyErr_Occurred()) SWIG_fail; | |
17637 | } | |
d14a1e28 RD |
17638 | { |
17639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17640 | (arg1)->SetMask(arg2); | |
17641 | ||
17642 | wxPyEndAllowThreads(__tstate); | |
17643 | if (PyErr_Occurred()) SWIG_fail; | |
17644 | } | |
17645 | Py_INCREF(Py_None); resultobj = Py_None; | |
17646 | return resultobj; | |
17647 | fail: | |
17648 | return NULL; | |
17649 | } | |
17650 | ||
17651 | ||
17652 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17653 | PyObject *resultobj; | |
17654 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17655 | long arg2 ; | |
17656 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17657 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17658 | char *kwnames[] = { |
17659 | (char *) "self",(char *) "id", NULL | |
17660 | }; | |
17661 | ||
8edf1c75 | 17662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17664 | { |
17665 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17666 | if (PyErr_Occurred()) SWIG_fail; | |
17667 | } | |
d14a1e28 RD |
17668 | { |
17669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17670 | (arg1)->SetId(arg2); | |
17671 | ||
17672 | wxPyEndAllowThreads(__tstate); | |
17673 | if (PyErr_Occurred()) SWIG_fail; | |
17674 | } | |
17675 | Py_INCREF(Py_None); resultobj = Py_None; | |
17676 | return resultobj; | |
17677 | fail: | |
17678 | return NULL; | |
17679 | } | |
17680 | ||
17681 | ||
17682 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17683 | PyObject *resultobj; | |
17684 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17685 | int arg2 ; | |
17686 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17687 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17688 | char *kwnames[] = { |
17689 | (char *) "self",(char *) "col", NULL | |
17690 | }; | |
17691 | ||
8edf1c75 | 17692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17694 | { |
17695 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17696 | if (PyErr_Occurred()) SWIG_fail; | |
17697 | } | |
d14a1e28 RD |
17698 | { |
17699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17700 | (arg1)->SetColumn(arg2); | |
17701 | ||
17702 | wxPyEndAllowThreads(__tstate); | |
17703 | if (PyErr_Occurred()) SWIG_fail; | |
17704 | } | |
17705 | Py_INCREF(Py_None); resultobj = Py_None; | |
17706 | return resultobj; | |
17707 | fail: | |
17708 | return NULL; | |
17709 | } | |
17710 | ||
17711 | ||
17712 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17713 | PyObject *resultobj; | |
17714 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17715 | long arg2 ; | |
17716 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17717 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17718 | char *kwnames[] = { |
17719 | (char *) "self",(char *) "state", NULL | |
17720 | }; | |
17721 | ||
8edf1c75 | 17722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17724 | { |
17725 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17726 | if (PyErr_Occurred()) SWIG_fail; | |
17727 | } | |
d14a1e28 RD |
17728 | { |
17729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17730 | (arg1)->SetState(arg2); | |
17731 | ||
17732 | wxPyEndAllowThreads(__tstate); | |
17733 | if (PyErr_Occurred()) SWIG_fail; | |
17734 | } | |
17735 | Py_INCREF(Py_None); resultobj = Py_None; | |
17736 | return resultobj; | |
17737 | fail: | |
17738 | return NULL; | |
17739 | } | |
17740 | ||
17741 | ||
17742 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17743 | PyObject *resultobj; | |
17744 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17745 | long arg2 ; | |
17746 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17747 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17748 | char *kwnames[] = { |
17749 | (char *) "self",(char *) "stateMask", NULL | |
17750 | }; | |
17751 | ||
8edf1c75 | 17752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17754 | { |
17755 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17756 | if (PyErr_Occurred()) SWIG_fail; | |
17757 | } | |
d14a1e28 RD |
17758 | { |
17759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17760 | (arg1)->SetStateMask(arg2); | |
17761 | ||
17762 | wxPyEndAllowThreads(__tstate); | |
17763 | if (PyErr_Occurred()) SWIG_fail; | |
17764 | } | |
17765 | Py_INCREF(Py_None); resultobj = Py_None; | |
17766 | return resultobj; | |
17767 | fail: | |
17768 | return NULL; | |
17769 | } | |
17770 | ||
17771 | ||
17772 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17773 | PyObject *resultobj; | |
17774 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17775 | wxString *arg2 = 0 ; | |
423f194a | 17776 | bool temp2 = False ; |
d14a1e28 RD |
17777 | PyObject * obj0 = 0 ; |
17778 | PyObject * obj1 = 0 ; | |
17779 | char *kwnames[] = { | |
17780 | (char *) "self",(char *) "text", NULL | |
17781 | }; | |
17782 | ||
17783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
17784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17785 | { | |
17786 | arg2 = wxString_in_helper(obj1); | |
17787 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17788 | temp2 = True; |
d14a1e28 RD |
17789 | } |
17790 | { | |
17791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17792 | (arg1)->SetText((wxString const &)*arg2); | |
17793 | ||
17794 | wxPyEndAllowThreads(__tstate); | |
17795 | if (PyErr_Occurred()) SWIG_fail; | |
17796 | } | |
17797 | Py_INCREF(Py_None); resultobj = Py_None; | |
17798 | { | |
17799 | if (temp2) | |
17800 | delete arg2; | |
17801 | } | |
17802 | return resultobj; | |
17803 | fail: | |
17804 | { | |
17805 | if (temp2) | |
17806 | delete arg2; | |
17807 | } | |
17808 | return NULL; | |
17809 | } | |
17810 | ||
17811 | ||
17812 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17813 | PyObject *resultobj; | |
17814 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17815 | int arg2 ; | |
17816 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17817 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17818 | char *kwnames[] = { |
17819 | (char *) "self",(char *) "image", NULL | |
17820 | }; | |
17821 | ||
8edf1c75 | 17822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17824 | { |
17825 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17826 | if (PyErr_Occurred()) SWIG_fail; | |
17827 | } | |
d14a1e28 RD |
17828 | { |
17829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17830 | (arg1)->SetImage(arg2); | |
17831 | ||
17832 | wxPyEndAllowThreads(__tstate); | |
17833 | if (PyErr_Occurred()) SWIG_fail; | |
17834 | } | |
17835 | Py_INCREF(Py_None); resultobj = Py_None; | |
17836 | return resultobj; | |
17837 | fail: | |
17838 | return NULL; | |
17839 | } | |
17840 | ||
17841 | ||
17842 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17843 | PyObject *resultobj; | |
17844 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17845 | long arg2 ; | |
17846 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17847 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17848 | char *kwnames[] = { |
17849 | (char *) "self",(char *) "data", NULL | |
17850 | }; | |
17851 | ||
8edf1c75 | 17852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17854 | { |
17855 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17856 | if (PyErr_Occurred()) SWIG_fail; | |
17857 | } | |
d14a1e28 RD |
17858 | { |
17859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17860 | (arg1)->SetData(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_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17873 | PyObject *resultobj; | |
17874 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17875 | int arg2 ; | |
17876 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17877 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17878 | char *kwnames[] = { |
17879 | (char *) "self",(char *) "width", NULL | |
17880 | }; | |
17881 | ||
8edf1c75 | 17882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17884 | { |
17885 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17886 | if (PyErr_Occurred()) SWIG_fail; | |
17887 | } | |
d14a1e28 RD |
17888 | { |
17889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17890 | (arg1)->SetWidth(arg2); | |
17891 | ||
17892 | wxPyEndAllowThreads(__tstate); | |
17893 | if (PyErr_Occurred()) SWIG_fail; | |
17894 | } | |
17895 | Py_INCREF(Py_None); resultobj = Py_None; | |
17896 | return resultobj; | |
17897 | fail: | |
17898 | return NULL; | |
17899 | } | |
17900 | ||
17901 | ||
17902 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17903 | PyObject *resultobj; | |
17904 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17905 | int arg2 ; | |
17906 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17907 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17908 | char *kwnames[] = { |
17909 | (char *) "self",(char *) "align", NULL | |
17910 | }; | |
17911 | ||
8edf1c75 | 17912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17914 | { |
17915 | arg2 = (wxListColumnFormat) SWIG_PyObj_AsInt(obj1); | |
17916 | if (PyErr_Occurred()) SWIG_fail; | |
17917 | } | |
d14a1e28 RD |
17918 | { |
17919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17920 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
17921 | ||
17922 | wxPyEndAllowThreads(__tstate); | |
17923 | if (PyErr_Occurred()) SWIG_fail; | |
17924 | } | |
17925 | Py_INCREF(Py_None); resultobj = Py_None; | |
17926 | return resultobj; | |
17927 | fail: | |
17928 | return NULL; | |
17929 | } | |
17930 | ||
17931 | ||
17932 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17933 | PyObject *resultobj; | |
17934 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17935 | wxColour *arg2 = 0 ; | |
17936 | wxColour temp2 ; | |
17937 | PyObject * obj0 = 0 ; | |
17938 | PyObject * obj1 = 0 ; | |
17939 | char *kwnames[] = { | |
17940 | (char *) "self",(char *) "colText", NULL | |
17941 | }; | |
17942 | ||
17943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
17944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17945 | { | |
17946 | arg2 = &temp2; | |
17947 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17948 | } | |
17949 | { | |
17950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17951 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
17952 | ||
17953 | wxPyEndAllowThreads(__tstate); | |
17954 | if (PyErr_Occurred()) SWIG_fail; | |
17955 | } | |
17956 | Py_INCREF(Py_None); resultobj = Py_None; | |
17957 | return resultobj; | |
17958 | fail: | |
17959 | return NULL; | |
17960 | } | |
17961 | ||
17962 | ||
17963 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17964 | PyObject *resultobj; | |
17965 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17966 | wxColour *arg2 = 0 ; | |
17967 | wxColour temp2 ; | |
17968 | PyObject * obj0 = 0 ; | |
17969 | PyObject * obj1 = 0 ; | |
17970 | char *kwnames[] = { | |
17971 | (char *) "self",(char *) "colBack", NULL | |
17972 | }; | |
17973 | ||
17974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17976 | { | |
17977 | arg2 = &temp2; | |
17978 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17979 | } | |
17980 | { | |
17981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17982 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17983 | ||
17984 | wxPyEndAllowThreads(__tstate); | |
17985 | if (PyErr_Occurred()) SWIG_fail; | |
17986 | } | |
17987 | Py_INCREF(Py_None); resultobj = Py_None; | |
17988 | return resultobj; | |
17989 | fail: | |
17990 | return NULL; | |
17991 | } | |
17992 | ||
17993 | ||
17994 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17995 | PyObject *resultobj; | |
17996 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17997 | wxFont *arg2 = 0 ; | |
17998 | PyObject * obj0 = 0 ; | |
17999 | PyObject * obj1 = 0 ; | |
18000 | char *kwnames[] = { | |
18001 | (char *) "self",(char *) "font", NULL | |
18002 | }; | |
18003 | ||
18004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
18005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18006 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18007 | if (arg2 == NULL) { | |
18008 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18009 | } | |
18010 | { | |
18011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18012 | (arg1)->SetFont((wxFont const &)*arg2); | |
18013 | ||
18014 | wxPyEndAllowThreads(__tstate); | |
18015 | if (PyErr_Occurred()) SWIG_fail; | |
18016 | } | |
18017 | Py_INCREF(Py_None); resultobj = Py_None; | |
18018 | return resultobj; | |
18019 | fail: | |
18020 | return NULL; | |
18021 | } | |
18022 | ||
18023 | ||
18024 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18025 | PyObject *resultobj; | |
18026 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18027 | long result; | |
18028 | PyObject * obj0 = 0 ; | |
18029 | char *kwnames[] = { | |
18030 | (char *) "self", NULL | |
18031 | }; | |
18032 | ||
18033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
18034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18035 | { | |
18036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18037 | result = (long)(arg1)->GetMask(); | |
18038 | ||
18039 | wxPyEndAllowThreads(__tstate); | |
18040 | if (PyErr_Occurred()) SWIG_fail; | |
18041 | } | |
8edf1c75 | 18042 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18043 | return resultobj; |
18044 | fail: | |
18045 | return NULL; | |
18046 | } | |
18047 | ||
18048 | ||
18049 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18050 | PyObject *resultobj; | |
18051 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18052 | long result; | |
18053 | PyObject * obj0 = 0 ; | |
18054 | char *kwnames[] = { | |
18055 | (char *) "self", NULL | |
18056 | }; | |
18057 | ||
18058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
18059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18060 | { | |
18061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18062 | result = (long)(arg1)->GetId(); | |
18063 | ||
18064 | wxPyEndAllowThreads(__tstate); | |
18065 | if (PyErr_Occurred()) SWIG_fail; | |
18066 | } | |
8edf1c75 | 18067 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18068 | return resultobj; |
18069 | fail: | |
18070 | return NULL; | |
18071 | } | |
18072 | ||
18073 | ||
18074 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18075 | PyObject *resultobj; | |
18076 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18077 | int result; | |
18078 | PyObject * obj0 = 0 ; | |
18079 | char *kwnames[] = { | |
18080 | (char *) "self", NULL | |
18081 | }; | |
18082 | ||
18083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
18084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18085 | { | |
18086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18087 | result = (int)(arg1)->GetColumn(); | |
18088 | ||
18089 | wxPyEndAllowThreads(__tstate); | |
18090 | if (PyErr_Occurred()) SWIG_fail; | |
18091 | } | |
8edf1c75 | 18092 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18093 | return resultobj; |
18094 | fail: | |
18095 | return NULL; | |
18096 | } | |
18097 | ||
18098 | ||
18099 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18100 | PyObject *resultobj; | |
18101 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18102 | long result; | |
18103 | PyObject * obj0 = 0 ; | |
18104 | char *kwnames[] = { | |
18105 | (char *) "self", NULL | |
18106 | }; | |
18107 | ||
18108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
18109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18110 | { | |
18111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18112 | result = (long)(arg1)->GetState(); | |
18113 | ||
18114 | wxPyEndAllowThreads(__tstate); | |
18115 | if (PyErr_Occurred()) SWIG_fail; | |
18116 | } | |
8edf1c75 | 18117 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18118 | return resultobj; |
18119 | fail: | |
18120 | return NULL; | |
18121 | } | |
18122 | ||
18123 | ||
18124 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18125 | PyObject *resultobj; | |
18126 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18127 | wxString *result; | |
18128 | PyObject * obj0 = 0 ; | |
18129 | char *kwnames[] = { | |
18130 | (char *) "self", NULL | |
18131 | }; | |
18132 | ||
18133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
18134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18135 | { | |
18136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18137 | { | |
18138 | wxString const &_result_ref = (arg1)->GetText(); | |
18139 | result = (wxString *) &_result_ref; | |
18140 | } | |
18141 | ||
18142 | wxPyEndAllowThreads(__tstate); | |
18143 | if (PyErr_Occurred()) SWIG_fail; | |
18144 | } | |
0f774bef RD |
18145 | { |
18146 | #if wxUSE_UNICODE | |
18147 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18148 | #else | |
18149 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18150 | #endif | |
18151 | } | |
d14a1e28 RD |
18152 | return resultobj; |
18153 | fail: | |
18154 | return NULL; | |
18155 | } | |
18156 | ||
18157 | ||
18158 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18159 | PyObject *resultobj; | |
18160 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18161 | int result; | |
18162 | PyObject * obj0 = 0 ; | |
18163 | char *kwnames[] = { | |
18164 | (char *) "self", NULL | |
18165 | }; | |
18166 | ||
18167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
18168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18169 | { | |
18170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18171 | result = (int)(arg1)->GetImage(); | |
18172 | ||
18173 | wxPyEndAllowThreads(__tstate); | |
18174 | if (PyErr_Occurred()) SWIG_fail; | |
18175 | } | |
8edf1c75 | 18176 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18177 | return resultobj; |
18178 | fail: | |
18179 | return NULL; | |
18180 | } | |
18181 | ||
18182 | ||
18183 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18184 | PyObject *resultobj; | |
18185 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18186 | long result; | |
18187 | PyObject * obj0 = 0 ; | |
18188 | char *kwnames[] = { | |
18189 | (char *) "self", NULL | |
18190 | }; | |
18191 | ||
18192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
18193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18194 | { | |
18195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18196 | result = (long)(arg1)->GetData(); | |
18197 | ||
18198 | wxPyEndAllowThreads(__tstate); | |
18199 | if (PyErr_Occurred()) SWIG_fail; | |
18200 | } | |
8edf1c75 | 18201 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18202 | return resultobj; |
18203 | fail: | |
18204 | return NULL; | |
18205 | } | |
18206 | ||
18207 | ||
18208 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18209 | PyObject *resultobj; | |
18210 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18211 | int result; | |
18212 | PyObject * obj0 = 0 ; | |
18213 | char *kwnames[] = { | |
18214 | (char *) "self", NULL | |
18215 | }; | |
18216 | ||
18217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
18218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18219 | { | |
18220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18221 | result = (int)(arg1)->GetWidth(); | |
18222 | ||
18223 | wxPyEndAllowThreads(__tstate); | |
18224 | if (PyErr_Occurred()) SWIG_fail; | |
18225 | } | |
8edf1c75 | 18226 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18227 | return resultobj; |
18228 | fail: | |
18229 | return NULL; | |
18230 | } | |
18231 | ||
18232 | ||
18233 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18234 | PyObject *resultobj; | |
18235 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18236 | int result; | |
18237 | PyObject * obj0 = 0 ; | |
18238 | char *kwnames[] = { | |
18239 | (char *) "self", NULL | |
18240 | }; | |
18241 | ||
18242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
18243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18244 | { | |
18245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18246 | result = (int)(arg1)->GetAlign(); | |
18247 | ||
18248 | wxPyEndAllowThreads(__tstate); | |
18249 | if (PyErr_Occurred()) SWIG_fail; | |
18250 | } | |
8edf1c75 | 18251 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18252 | return resultobj; |
18253 | fail: | |
18254 | return NULL; | |
18255 | } | |
18256 | ||
18257 | ||
18258 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18259 | PyObject *resultobj; | |
18260 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18261 | wxListItemAttr *result; | |
18262 | PyObject * obj0 = 0 ; | |
18263 | char *kwnames[] = { | |
18264 | (char *) "self", NULL | |
18265 | }; | |
18266 | ||
18267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
18268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18269 | { | |
18270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18271 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
18272 | ||
18273 | wxPyEndAllowThreads(__tstate); | |
18274 | if (PyErr_Occurred()) SWIG_fail; | |
18275 | } | |
18276 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 0); | |
18277 | return resultobj; | |
18278 | fail: | |
18279 | return NULL; | |
18280 | } | |
18281 | ||
18282 | ||
18283 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18284 | PyObject *resultobj; | |
18285 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18286 | bool result; | |
18287 | PyObject * obj0 = 0 ; | |
18288 | char *kwnames[] = { | |
18289 | (char *) "self", NULL | |
18290 | }; | |
18291 | ||
18292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
18293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18294 | { | |
18295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18296 | result = (bool)(arg1)->HasAttributes(); | |
18297 | ||
18298 | wxPyEndAllowThreads(__tstate); | |
18299 | if (PyErr_Occurred()) SWIG_fail; | |
18300 | } | |
02a34c4c | 18301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18302 | return resultobj; |
18303 | fail: | |
18304 | return NULL; | |
18305 | } | |
18306 | ||
18307 | ||
18308 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18309 | PyObject *resultobj; | |
18310 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18311 | wxColour result; | |
18312 | PyObject * obj0 = 0 ; | |
18313 | char *kwnames[] = { | |
18314 | (char *) "self", NULL | |
18315 | }; | |
18316 | ||
18317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
18318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18319 | { | |
18320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18321 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
18322 | ||
18323 | wxPyEndAllowThreads(__tstate); | |
18324 | if (PyErr_Occurred()) SWIG_fail; | |
18325 | } | |
18326 | { | |
18327 | wxColour * resultptr; | |
18328 | resultptr = new wxColour((wxColour &) result); | |
18329 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18330 | } | |
18331 | return resultobj; | |
18332 | fail: | |
18333 | return NULL; | |
18334 | } | |
18335 | ||
18336 | ||
18337 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18338 | PyObject *resultobj; | |
18339 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18340 | wxColour result; | |
18341 | PyObject * obj0 = 0 ; | |
18342 | char *kwnames[] = { | |
18343 | (char *) "self", NULL | |
18344 | }; | |
18345 | ||
18346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
18347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18348 | { | |
18349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18350 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
18351 | ||
18352 | wxPyEndAllowThreads(__tstate); | |
18353 | if (PyErr_Occurred()) SWIG_fail; | |
18354 | } | |
18355 | { | |
18356 | wxColour * resultptr; | |
18357 | resultptr = new wxColour((wxColour &) result); | |
18358 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18359 | } | |
18360 | return resultobj; | |
18361 | fail: | |
18362 | return NULL; | |
18363 | } | |
18364 | ||
18365 | ||
18366 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18367 | PyObject *resultobj; | |
18368 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18369 | wxFont result; | |
18370 | PyObject * obj0 = 0 ; | |
18371 | char *kwnames[] = { | |
18372 | (char *) "self", NULL | |
18373 | }; | |
18374 | ||
18375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
18376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18377 | { | |
18378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18379 | result = ((wxListItem const *)arg1)->GetFont(); | |
18380 | ||
18381 | wxPyEndAllowThreads(__tstate); | |
18382 | if (PyErr_Occurred()) SWIG_fail; | |
18383 | } | |
18384 | { | |
18385 | wxFont * resultptr; | |
18386 | resultptr = new wxFont((wxFont &) result); | |
18387 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
18388 | } | |
18389 | return resultobj; | |
18390 | fail: | |
18391 | return NULL; | |
18392 | } | |
18393 | ||
18394 | ||
18395 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18396 | PyObject *resultobj; | |
18397 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18398 | long arg2 ; | |
18399 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18400 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18401 | char *kwnames[] = { |
18402 | (char *) "self",(char *) "m_mask", NULL | |
18403 | }; | |
18404 | ||
8edf1c75 | 18405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18407 | { |
18408 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18409 | if (PyErr_Occurred()) SWIG_fail; | |
18410 | } | |
d14a1e28 RD |
18411 | if (arg1) (arg1)->m_mask = arg2; |
18412 | ||
18413 | Py_INCREF(Py_None); resultobj = Py_None; | |
18414 | return resultobj; | |
18415 | fail: | |
18416 | return NULL; | |
18417 | } | |
18418 | ||
18419 | ||
18420 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18421 | PyObject *resultobj; | |
18422 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18423 | long result; | |
18424 | PyObject * obj0 = 0 ; | |
18425 | char *kwnames[] = { | |
18426 | (char *) "self", NULL | |
18427 | }; | |
18428 | ||
18429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
18430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18431 | result = (long) ((arg1)->m_mask); | |
18432 | ||
8edf1c75 | 18433 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18434 | return resultobj; |
18435 | fail: | |
18436 | return NULL; | |
18437 | } | |
18438 | ||
18439 | ||
18440 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18441 | PyObject *resultobj; | |
18442 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18443 | long arg2 ; | |
18444 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18445 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18446 | char *kwnames[] = { |
18447 | (char *) "self",(char *) "m_itemId", NULL | |
18448 | }; | |
18449 | ||
8edf1c75 | 18450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18452 | { |
18453 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18454 | if (PyErr_Occurred()) SWIG_fail; | |
18455 | } | |
d14a1e28 RD |
18456 | if (arg1) (arg1)->m_itemId = arg2; |
18457 | ||
18458 | Py_INCREF(Py_None); resultobj = Py_None; | |
18459 | return resultobj; | |
18460 | fail: | |
18461 | return NULL; | |
18462 | } | |
18463 | ||
18464 | ||
18465 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18466 | PyObject *resultobj; | |
18467 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18468 | long result; | |
18469 | PyObject * obj0 = 0 ; | |
18470 | char *kwnames[] = { | |
18471 | (char *) "self", NULL | |
18472 | }; | |
18473 | ||
18474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
18475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18476 | result = (long) ((arg1)->m_itemId); | |
18477 | ||
8edf1c75 | 18478 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18479 | return resultobj; |
18480 | fail: | |
18481 | return NULL; | |
18482 | } | |
18483 | ||
18484 | ||
18485 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18486 | PyObject *resultobj; | |
18487 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18488 | int arg2 ; | |
18489 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18490 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18491 | char *kwnames[] = { |
18492 | (char *) "self",(char *) "m_col", NULL | |
18493 | }; | |
18494 | ||
8edf1c75 | 18495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18497 | { |
18498 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18499 | if (PyErr_Occurred()) SWIG_fail; | |
18500 | } | |
d14a1e28 RD |
18501 | if (arg1) (arg1)->m_col = arg2; |
18502 | ||
18503 | Py_INCREF(Py_None); resultobj = Py_None; | |
18504 | return resultobj; | |
18505 | fail: | |
18506 | return NULL; | |
18507 | } | |
18508 | ||
18509 | ||
18510 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18511 | PyObject *resultobj; | |
18512 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18513 | int result; | |
18514 | PyObject * obj0 = 0 ; | |
18515 | char *kwnames[] = { | |
18516 | (char *) "self", NULL | |
18517 | }; | |
18518 | ||
18519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
18520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18521 | result = (int) ((arg1)->m_col); | |
18522 | ||
8edf1c75 | 18523 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18524 | return resultobj; |
18525 | fail: | |
18526 | return NULL; | |
18527 | } | |
18528 | ||
18529 | ||
18530 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18531 | PyObject *resultobj; | |
18532 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18533 | long arg2 ; | |
18534 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18535 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18536 | char *kwnames[] = { |
18537 | (char *) "self",(char *) "m_state", NULL | |
18538 | }; | |
18539 | ||
8edf1c75 | 18540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18542 | { |
18543 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18544 | if (PyErr_Occurred()) SWIG_fail; | |
18545 | } | |
d14a1e28 RD |
18546 | if (arg1) (arg1)->m_state = arg2; |
18547 | ||
18548 | Py_INCREF(Py_None); resultobj = Py_None; | |
18549 | return resultobj; | |
18550 | fail: | |
18551 | return NULL; | |
18552 | } | |
18553 | ||
18554 | ||
18555 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18556 | PyObject *resultobj; | |
18557 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18558 | long result; | |
18559 | PyObject * obj0 = 0 ; | |
18560 | char *kwnames[] = { | |
18561 | (char *) "self", NULL | |
18562 | }; | |
18563 | ||
18564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
18565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18566 | result = (long) ((arg1)->m_state); | |
18567 | ||
8edf1c75 | 18568 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18569 | return resultobj; |
18570 | fail: | |
18571 | return NULL; | |
18572 | } | |
18573 | ||
18574 | ||
18575 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18576 | PyObject *resultobj; | |
18577 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18578 | long arg2 ; | |
18579 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18580 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18581 | char *kwnames[] = { |
18582 | (char *) "self",(char *) "m_stateMask", NULL | |
18583 | }; | |
18584 | ||
8edf1c75 | 18585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18587 | { |
18588 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18589 | if (PyErr_Occurred()) SWIG_fail; | |
18590 | } | |
d14a1e28 RD |
18591 | if (arg1) (arg1)->m_stateMask = arg2; |
18592 | ||
18593 | Py_INCREF(Py_None); resultobj = Py_None; | |
18594 | return resultobj; | |
18595 | fail: | |
18596 | return NULL; | |
18597 | } | |
18598 | ||
18599 | ||
18600 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18601 | PyObject *resultobj; | |
18602 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18603 | long result; | |
18604 | PyObject * obj0 = 0 ; | |
18605 | char *kwnames[] = { | |
18606 | (char *) "self", NULL | |
18607 | }; | |
18608 | ||
18609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
18610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18611 | result = (long) ((arg1)->m_stateMask); | |
18612 | ||
8edf1c75 | 18613 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18614 | return resultobj; |
18615 | fail: | |
18616 | return NULL; | |
18617 | } | |
18618 | ||
18619 | ||
18620 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18621 | PyObject *resultobj; | |
18622 | wxListItem *arg1 = (wxListItem *) 0 ; | |
cbd72d4f | 18623 | wxString *arg2 = (wxString *) 0 ; |
dae0faa6 | 18624 | bool temp2 = False ; |
d14a1e28 RD |
18625 | PyObject * obj0 = 0 ; |
18626 | PyObject * obj1 = 0 ; | |
18627 | char *kwnames[] = { | |
18628 | (char *) "self",(char *) "m_text", NULL | |
18629 | }; | |
18630 | ||
18631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
18632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
dae0faa6 RD |
18633 | { |
18634 | arg2 = wxString_in_helper(obj1); | |
18635 | if (arg2 == NULL) SWIG_fail; | |
18636 | temp2 = True; | |
18637 | } | |
cbd72d4f | 18638 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
18639 | |
18640 | Py_INCREF(Py_None); resultobj = Py_None; | |
dae0faa6 RD |
18641 | { |
18642 | if (temp2) | |
18643 | delete arg2; | |
18644 | } | |
d14a1e28 RD |
18645 | return resultobj; |
18646 | fail: | |
dae0faa6 RD |
18647 | { |
18648 | if (temp2) | |
18649 | delete arg2; | |
18650 | } | |
d14a1e28 RD |
18651 | return NULL; |
18652 | } | |
18653 | ||
18654 | ||
18655 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18656 | PyObject *resultobj; | |
18657 | wxListItem *arg1 = (wxListItem *) 0 ; | |
cbd72d4f | 18658 | wxString *result; |
d14a1e28 RD |
18659 | PyObject * obj0 = 0 ; |
18660 | char *kwnames[] = { | |
18661 | (char *) "self", NULL | |
18662 | }; | |
18663 | ||
18664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
18665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
cbd72d4f | 18666 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
18667 | |
18668 | { | |
18669 | #if wxUSE_UNICODE | |
cbd72d4f | 18670 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 18671 | #else |
cbd72d4f | 18672 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
18673 | #endif |
18674 | } | |
18675 | return resultobj; | |
18676 | fail: | |
18677 | return NULL; | |
18678 | } | |
18679 | ||
18680 | ||
18681 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18682 | PyObject *resultobj; | |
18683 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18684 | int arg2 ; | |
18685 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18686 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18687 | char *kwnames[] = { |
18688 | (char *) "self",(char *) "m_image", NULL | |
18689 | }; | |
18690 | ||
8edf1c75 | 18691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18693 | { |
18694 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18695 | if (PyErr_Occurred()) SWIG_fail; | |
18696 | } | |
d14a1e28 RD |
18697 | if (arg1) (arg1)->m_image = arg2; |
18698 | ||
18699 | Py_INCREF(Py_None); resultobj = Py_None; | |
18700 | return resultobj; | |
18701 | fail: | |
18702 | return NULL; | |
18703 | } | |
18704 | ||
18705 | ||
18706 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18707 | PyObject *resultobj; | |
18708 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18709 | int result; | |
18710 | PyObject * obj0 = 0 ; | |
18711 | char *kwnames[] = { | |
18712 | (char *) "self", NULL | |
18713 | }; | |
18714 | ||
18715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
18716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18717 | result = (int) ((arg1)->m_image); | |
18718 | ||
8edf1c75 | 18719 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18720 | return resultobj; |
18721 | fail: | |
18722 | return NULL; | |
18723 | } | |
18724 | ||
18725 | ||
18726 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18727 | PyObject *resultobj; | |
18728 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18729 | long arg2 ; | |
18730 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18731 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18732 | char *kwnames[] = { |
18733 | (char *) "self",(char *) "m_data", NULL | |
18734 | }; | |
18735 | ||
8edf1c75 | 18736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18738 | { |
18739 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18740 | if (PyErr_Occurred()) SWIG_fail; | |
18741 | } | |
d14a1e28 RD |
18742 | if (arg1) (arg1)->m_data = arg2; |
18743 | ||
18744 | Py_INCREF(Py_None); resultobj = Py_None; | |
18745 | return resultobj; | |
18746 | fail: | |
18747 | return NULL; | |
18748 | } | |
18749 | ||
18750 | ||
18751 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18752 | PyObject *resultobj; | |
18753 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18754 | long result; | |
18755 | PyObject * obj0 = 0 ; | |
18756 | char *kwnames[] = { | |
18757 | (char *) "self", NULL | |
18758 | }; | |
18759 | ||
18760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
18761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18762 | result = (long) ((arg1)->m_data); | |
18763 | ||
8edf1c75 | 18764 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18765 | return resultobj; |
18766 | fail: | |
18767 | return NULL; | |
18768 | } | |
18769 | ||
18770 | ||
18771 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18772 | PyObject *resultobj; | |
18773 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18774 | int arg2 ; | |
18775 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18776 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18777 | char *kwnames[] = { |
18778 | (char *) "self",(char *) "m_format", NULL | |
18779 | }; | |
18780 | ||
8edf1c75 | 18781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18783 | { |
18784 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18785 | if (PyErr_Occurred()) SWIG_fail; | |
18786 | } | |
d14a1e28 RD |
18787 | if (arg1) (arg1)->m_format = arg2; |
18788 | ||
18789 | Py_INCREF(Py_None); resultobj = Py_None; | |
18790 | return resultobj; | |
18791 | fail: | |
18792 | return NULL; | |
18793 | } | |
18794 | ||
18795 | ||
18796 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18797 | PyObject *resultobj; | |
18798 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18799 | int result; | |
18800 | PyObject * obj0 = 0 ; | |
18801 | char *kwnames[] = { | |
18802 | (char *) "self", NULL | |
18803 | }; | |
18804 | ||
18805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
18806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18807 | result = (int) ((arg1)->m_format); | |
18808 | ||
8edf1c75 | 18809 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18810 | return resultobj; |
18811 | fail: | |
18812 | return NULL; | |
18813 | } | |
18814 | ||
18815 | ||
18816 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18817 | PyObject *resultobj; | |
18818 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18819 | int arg2 ; | |
18820 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18821 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18822 | char *kwnames[] = { |
18823 | (char *) "self",(char *) "m_width", NULL | |
18824 | }; | |
18825 | ||
8edf1c75 | 18826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18828 | { |
18829 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18830 | if (PyErr_Occurred()) SWIG_fail; | |
18831 | } | |
d14a1e28 RD |
18832 | if (arg1) (arg1)->m_width = arg2; |
18833 | ||
18834 | Py_INCREF(Py_None); resultobj = Py_None; | |
18835 | return resultobj; | |
18836 | fail: | |
18837 | return NULL; | |
18838 | } | |
18839 | ||
18840 | ||
18841 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18842 | PyObject *resultobj; | |
18843 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18844 | int result; | |
18845 | PyObject * obj0 = 0 ; | |
18846 | char *kwnames[] = { | |
18847 | (char *) "self", NULL | |
18848 | }; | |
18849 | ||
18850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
18851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18852 | result = (int) ((arg1)->m_width); | |
18853 | ||
8edf1c75 | 18854 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18855 | return resultobj; |
18856 | fail: | |
18857 | return NULL; | |
18858 | } | |
18859 | ||
18860 | ||
18861 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
18862 | PyObject *obj; | |
18863 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18864 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
18865 | Py_INCREF(obj); | |
18866 | return Py_BuildValue((char *)""); | |
18867 | } | |
18868 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18869 | PyObject *resultobj; | |
18870 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18871 | int arg2 = (int) 0 ; | |
18872 | wxListEvent *result; | |
8edf1c75 RD |
18873 | PyObject * obj0 = 0 ; |
18874 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18875 | char *kwnames[] = { |
18876 | (char *) "commandType",(char *) "id", NULL | |
18877 | }; | |
18878 | ||
8edf1c75 RD |
18879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
18880 | if (obj0) { | |
18881 | { | |
18882 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
18883 | if (PyErr_Occurred()) SWIG_fail; | |
18884 | } | |
18885 | } | |
18886 | if (obj1) { | |
18887 | { | |
18888 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18889 | if (PyErr_Occurred()) SWIG_fail; | |
18890 | } | |
18891 | } | |
d14a1e28 RD |
18892 | { |
18893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18894 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
18895 | ||
18896 | wxPyEndAllowThreads(__tstate); | |
18897 | if (PyErr_Occurred()) SWIG_fail; | |
18898 | } | |
18899 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListEvent, 1); | |
18900 | return resultobj; | |
18901 | fail: | |
18902 | return NULL; | |
18903 | } | |
18904 | ||
18905 | ||
18906 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18907 | PyObject *resultobj; | |
18908 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18909 | int arg2 ; | |
18910 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18911 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18912 | char *kwnames[] = { |
18913 | (char *) "self",(char *) "m_code", NULL | |
18914 | }; | |
18915 | ||
8edf1c75 | 18916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18918 | { |
18919 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18920 | if (PyErr_Occurred()) SWIG_fail; | |
18921 | } | |
d14a1e28 RD |
18922 | if (arg1) (arg1)->m_code = arg2; |
18923 | ||
18924 | Py_INCREF(Py_None); resultobj = Py_None; | |
18925 | return resultobj; | |
18926 | fail: | |
18927 | return NULL; | |
18928 | } | |
18929 | ||
18930 | ||
18931 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18932 | PyObject *resultobj; | |
18933 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18934 | int result; | |
18935 | PyObject * obj0 = 0 ; | |
18936 | char *kwnames[] = { | |
18937 | (char *) "self", NULL | |
18938 | }; | |
18939 | ||
18940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
18941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18942 | result = (int) ((arg1)->m_code); | |
18943 | ||
8edf1c75 | 18944 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18945 | return resultobj; |
18946 | fail: | |
18947 | return NULL; | |
18948 | } | |
18949 | ||
18950 | ||
18951 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18952 | PyObject *resultobj; | |
18953 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18954 | long arg2 ; | |
18955 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18956 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18957 | char *kwnames[] = { |
18958 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
18959 | }; | |
18960 | ||
8edf1c75 | 18961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18963 | { |
18964 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18965 | if (PyErr_Occurred()) SWIG_fail; | |
18966 | } | |
d14a1e28 RD |
18967 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
18968 | ||
18969 | Py_INCREF(Py_None); resultobj = Py_None; | |
18970 | return resultobj; | |
18971 | fail: | |
18972 | return NULL; | |
18973 | } | |
18974 | ||
18975 | ||
18976 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18977 | PyObject *resultobj; | |
18978 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18979 | long result; | |
18980 | PyObject * obj0 = 0 ; | |
18981 | char *kwnames[] = { | |
18982 | (char *) "self", NULL | |
18983 | }; | |
18984 | ||
18985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
18986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18987 | result = (long) ((arg1)->m_oldItemIndex); | |
18988 | ||
8edf1c75 | 18989 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18990 | return resultobj; |
18991 | fail: | |
18992 | return NULL; | |
18993 | } | |
18994 | ||
18995 | ||
18996 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18997 | PyObject *resultobj; | |
18998 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18999 | long arg2 ; | |
19000 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19001 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19002 | char *kwnames[] = { |
19003 | (char *) "self",(char *) "m_itemIndex", NULL | |
19004 | }; | |
19005 | ||
8edf1c75 | 19006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19008 | { |
19009 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19010 | if (PyErr_Occurred()) SWIG_fail; | |
19011 | } | |
d14a1e28 RD |
19012 | if (arg1) (arg1)->m_itemIndex = arg2; |
19013 | ||
19014 | Py_INCREF(Py_None); resultobj = Py_None; | |
19015 | return resultobj; | |
19016 | fail: | |
19017 | return NULL; | |
19018 | } | |
19019 | ||
19020 | ||
19021 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19022 | PyObject *resultobj; | |
19023 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19024 | long result; | |
19025 | PyObject * obj0 = 0 ; | |
19026 | char *kwnames[] = { | |
19027 | (char *) "self", NULL | |
19028 | }; | |
19029 | ||
19030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
19031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19032 | result = (long) ((arg1)->m_itemIndex); | |
19033 | ||
8edf1c75 | 19034 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19035 | return resultobj; |
19036 | fail: | |
19037 | return NULL; | |
19038 | } | |
19039 | ||
19040 | ||
19041 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19042 | PyObject *resultobj; | |
19043 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19044 | int arg2 ; | |
19045 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19046 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19047 | char *kwnames[] = { |
19048 | (char *) "self",(char *) "m_col", NULL | |
19049 | }; | |
19050 | ||
8edf1c75 | 19051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19053 | { |
19054 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19055 | if (PyErr_Occurred()) SWIG_fail; | |
19056 | } | |
d14a1e28 RD |
19057 | if (arg1) (arg1)->m_col = arg2; |
19058 | ||
19059 | Py_INCREF(Py_None); resultobj = Py_None; | |
19060 | return resultobj; | |
19061 | fail: | |
19062 | return NULL; | |
19063 | } | |
19064 | ||
19065 | ||
19066 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19067 | PyObject *resultobj; | |
19068 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19069 | int result; | |
19070 | PyObject * obj0 = 0 ; | |
19071 | char *kwnames[] = { | |
19072 | (char *) "self", NULL | |
19073 | }; | |
19074 | ||
19075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
19076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19077 | result = (int) ((arg1)->m_col); | |
19078 | ||
8edf1c75 | 19079 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19080 | return resultobj; |
19081 | fail: | |
19082 | return NULL; | |
19083 | } | |
19084 | ||
19085 | ||
19086 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19087 | PyObject *resultobj; | |
19088 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19089 | wxPoint *arg2 = (wxPoint *) 0 ; | |
19090 | PyObject * obj0 = 0 ; | |
19091 | PyObject * obj1 = 0 ; | |
19092 | char *kwnames[] = { | |
19093 | (char *) "self",(char *) "m_pointDrag", NULL | |
19094 | }; | |
19095 | ||
19096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
19097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19098 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19099 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
19100 | ||
19101 | Py_INCREF(Py_None); resultobj = Py_None; | |
19102 | return resultobj; | |
19103 | fail: | |
19104 | return NULL; | |
19105 | } | |
19106 | ||
19107 | ||
19108 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19109 | PyObject *resultobj; | |
19110 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19111 | wxPoint *result; | |
19112 | PyObject * obj0 = 0 ; | |
19113 | char *kwnames[] = { | |
19114 | (char *) "self", NULL | |
19115 | }; | |
19116 | ||
19117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
19118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19119 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
19120 | ||
19121 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
19122 | return resultobj; | |
19123 | fail: | |
19124 | return NULL; | |
19125 | } | |
19126 | ||
19127 | ||
19128 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19129 | PyObject *resultobj; | |
19130 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19131 | wxListItem *result; | |
19132 | PyObject * obj0 = 0 ; | |
19133 | char *kwnames[] = { | |
19134 | (char *) "self", NULL | |
19135 | }; | |
19136 | ||
19137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
19138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19139 | result = (wxListItem *)& ((arg1)->m_item); | |
19140 | ||
19141 | { | |
19142 | resultobj = wxPyMake_wxObject(result); | |
19143 | } | |
19144 | return resultobj; | |
19145 | fail: | |
19146 | return NULL; | |
19147 | } | |
19148 | ||
19149 | ||
19150 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19151 | PyObject *resultobj; | |
19152 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19153 | int result; | |
19154 | PyObject * obj0 = 0 ; | |
19155 | char *kwnames[] = { | |
19156 | (char *) "self", NULL | |
19157 | }; | |
19158 | ||
19159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
19160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19161 | { | |
19162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19163 | result = (int)(arg1)->GetKeyCode(); | |
19164 | ||
19165 | wxPyEndAllowThreads(__tstate); | |
19166 | if (PyErr_Occurred()) SWIG_fail; | |
19167 | } | |
8edf1c75 | 19168 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19169 | return resultobj; |
19170 | fail: | |
19171 | return NULL; | |
19172 | } | |
19173 | ||
19174 | ||
19175 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19176 | PyObject *resultobj; | |
19177 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19178 | long result; | |
19179 | PyObject * obj0 = 0 ; | |
19180 | char *kwnames[] = { | |
19181 | (char *) "self", NULL | |
19182 | }; | |
19183 | ||
19184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
19185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19186 | { | |
19187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19188 | result = (long)(arg1)->GetIndex(); | |
19189 | ||
19190 | wxPyEndAllowThreads(__tstate); | |
19191 | if (PyErr_Occurred()) SWIG_fail; | |
19192 | } | |
8edf1c75 | 19193 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19194 | return resultobj; |
19195 | fail: | |
19196 | return NULL; | |
19197 | } | |
19198 | ||
19199 | ||
19200 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19201 | PyObject *resultobj; | |
19202 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19203 | int result; | |
19204 | PyObject * obj0 = 0 ; | |
19205 | char *kwnames[] = { | |
19206 | (char *) "self", NULL | |
19207 | }; | |
19208 | ||
19209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
19210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19211 | { | |
19212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19213 | result = (int)(arg1)->GetColumn(); | |
19214 | ||
19215 | wxPyEndAllowThreads(__tstate); | |
19216 | if (PyErr_Occurred()) SWIG_fail; | |
19217 | } | |
8edf1c75 | 19218 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19219 | return resultobj; |
19220 | fail: | |
19221 | return NULL; | |
19222 | } | |
19223 | ||
19224 | ||
19225 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19226 | PyObject *resultobj; | |
19227 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19228 | wxPoint result; | |
19229 | PyObject * obj0 = 0 ; | |
19230 | char *kwnames[] = { | |
19231 | (char *) "self", NULL | |
19232 | }; | |
19233 | ||
19234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
19235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19236 | { | |
19237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19238 | result = (arg1)->GetPoint(); | |
19239 | ||
19240 | wxPyEndAllowThreads(__tstate); | |
19241 | if (PyErr_Occurred()) SWIG_fail; | |
19242 | } | |
19243 | { | |
19244 | wxPoint * resultptr; | |
19245 | resultptr = new wxPoint((wxPoint &) result); | |
19246 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
19247 | } | |
19248 | return resultobj; | |
19249 | fail: | |
19250 | return NULL; | |
19251 | } | |
19252 | ||
19253 | ||
19254 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19255 | PyObject *resultobj; | |
19256 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19257 | wxString *result; | |
19258 | PyObject * obj0 = 0 ; | |
19259 | char *kwnames[] = { | |
19260 | (char *) "self", NULL | |
19261 | }; | |
19262 | ||
19263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
19264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19265 | { | |
19266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19267 | { | |
19268 | wxString const &_result_ref = (arg1)->GetLabel(); | |
19269 | result = (wxString *) &_result_ref; | |
19270 | } | |
19271 | ||
19272 | wxPyEndAllowThreads(__tstate); | |
19273 | if (PyErr_Occurred()) SWIG_fail; | |
19274 | } | |
0f774bef RD |
19275 | { |
19276 | #if wxUSE_UNICODE | |
19277 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19278 | #else | |
19279 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19280 | #endif | |
19281 | } | |
d14a1e28 RD |
19282 | return resultobj; |
19283 | fail: | |
19284 | return NULL; | |
19285 | } | |
19286 | ||
19287 | ||
19288 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19289 | PyObject *resultobj; | |
19290 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19291 | wxString *result; | |
19292 | PyObject * obj0 = 0 ; | |
19293 | char *kwnames[] = { | |
19294 | (char *) "self", NULL | |
19295 | }; | |
19296 | ||
19297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
19298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19299 | { | |
19300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19301 | { | |
19302 | wxString const &_result_ref = (arg1)->GetText(); | |
19303 | result = (wxString *) &_result_ref; | |
19304 | } | |
19305 | ||
19306 | wxPyEndAllowThreads(__tstate); | |
19307 | if (PyErr_Occurred()) SWIG_fail; | |
19308 | } | |
0f774bef RD |
19309 | { |
19310 | #if wxUSE_UNICODE | |
19311 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19312 | #else | |
19313 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19314 | #endif | |
19315 | } | |
d14a1e28 RD |
19316 | return resultobj; |
19317 | fail: | |
19318 | return NULL; | |
19319 | } | |
19320 | ||
19321 | ||
19322 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19323 | PyObject *resultobj; | |
19324 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19325 | int result; | |
19326 | PyObject * obj0 = 0 ; | |
19327 | char *kwnames[] = { | |
19328 | (char *) "self", NULL | |
19329 | }; | |
19330 | ||
19331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
19332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19333 | { | |
19334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19335 | result = (int)(arg1)->GetImage(); | |
19336 | ||
19337 | wxPyEndAllowThreads(__tstate); | |
19338 | if (PyErr_Occurred()) SWIG_fail; | |
19339 | } | |
8edf1c75 | 19340 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19341 | return resultobj; |
19342 | fail: | |
19343 | return NULL; | |
19344 | } | |
19345 | ||
19346 | ||
19347 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19348 | PyObject *resultobj; | |
19349 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19350 | long result; | |
19351 | PyObject * obj0 = 0 ; | |
19352 | char *kwnames[] = { | |
19353 | (char *) "self", NULL | |
19354 | }; | |
19355 | ||
19356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
19357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19358 | { | |
19359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19360 | result = (long)(arg1)->GetData(); | |
19361 | ||
19362 | wxPyEndAllowThreads(__tstate); | |
19363 | if (PyErr_Occurred()) SWIG_fail; | |
19364 | } | |
8edf1c75 | 19365 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19366 | return resultobj; |
19367 | fail: | |
19368 | return NULL; | |
19369 | } | |
19370 | ||
19371 | ||
19372 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19373 | PyObject *resultobj; | |
19374 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19375 | long result; | |
19376 | PyObject * obj0 = 0 ; | |
19377 | char *kwnames[] = { | |
19378 | (char *) "self", NULL | |
19379 | }; | |
19380 | ||
19381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
19382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19383 | { | |
19384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19385 | result = (long)(arg1)->GetMask(); | |
19386 | ||
19387 | wxPyEndAllowThreads(__tstate); | |
19388 | if (PyErr_Occurred()) SWIG_fail; | |
19389 | } | |
8edf1c75 | 19390 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19391 | return resultobj; |
19392 | fail: | |
19393 | return NULL; | |
19394 | } | |
19395 | ||
19396 | ||
19397 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19398 | PyObject *resultobj; | |
19399 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19400 | wxListItem *result; | |
19401 | PyObject * obj0 = 0 ; | |
19402 | char *kwnames[] = { | |
19403 | (char *) "self", NULL | |
19404 | }; | |
19405 | ||
19406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
19407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19408 | { | |
19409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19410 | { | |
19411 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
19412 | result = (wxListItem *) &_result_ref; | |
19413 | } | |
19414 | ||
19415 | wxPyEndAllowThreads(__tstate); | |
19416 | if (PyErr_Occurred()) SWIG_fail; | |
19417 | } | |
19418 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItem, 0); | |
19419 | return resultobj; | |
19420 | fail: | |
19421 | return NULL; | |
19422 | } | |
19423 | ||
19424 | ||
19425 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19426 | PyObject *resultobj; | |
19427 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19428 | long result; | |
19429 | PyObject * obj0 = 0 ; | |
19430 | char *kwnames[] = { | |
19431 | (char *) "self", NULL | |
19432 | }; | |
19433 | ||
19434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
19435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19436 | { | |
19437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19438 | result = (long)(arg1)->GetCacheFrom(); | |
19439 | ||
19440 | wxPyEndAllowThreads(__tstate); | |
19441 | if (PyErr_Occurred()) SWIG_fail; | |
19442 | } | |
8edf1c75 | 19443 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19444 | return resultobj; |
19445 | fail: | |
19446 | return NULL; | |
19447 | } | |
19448 | ||
19449 | ||
19450 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19451 | PyObject *resultobj; | |
19452 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19453 | long result; | |
19454 | PyObject * obj0 = 0 ; | |
19455 | char *kwnames[] = { | |
19456 | (char *) "self", NULL | |
19457 | }; | |
19458 | ||
19459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
19460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19461 | { | |
19462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19463 | result = (long)(arg1)->GetCacheTo(); | |
19464 | ||
19465 | wxPyEndAllowThreads(__tstate); | |
19466 | if (PyErr_Occurred()) SWIG_fail; | |
19467 | } | |
8edf1c75 | 19468 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19469 | return resultobj; |
19470 | fail: | |
19471 | return NULL; | |
19472 | } | |
19473 | ||
19474 | ||
19475 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19476 | PyObject *resultobj; | |
19477 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19478 | bool result; | |
19479 | PyObject * obj0 = 0 ; | |
19480 | char *kwnames[] = { | |
19481 | (char *) "self", NULL | |
19482 | }; | |
19483 | ||
19484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
19485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19486 | { | |
19487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19488 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
19489 | ||
19490 | wxPyEndAllowThreads(__tstate); | |
19491 | if (PyErr_Occurred()) SWIG_fail; | |
19492 | } | |
02a34c4c | 19493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19494 | return resultobj; |
19495 | fail: | |
19496 | return NULL; | |
19497 | } | |
19498 | ||
19499 | ||
19500 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19501 | PyObject *resultobj; | |
19502 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19503 | bool arg2 ; | |
19504 | PyObject * obj0 = 0 ; | |
19505 | PyObject * obj1 = 0 ; | |
19506 | char *kwnames[] = { | |
19507 | (char *) "self",(char *) "editCancelled", NULL | |
19508 | }; | |
19509 | ||
19510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
19511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 19512 | { |
8edf1c75 | 19513 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
19514 | if (PyErr_Occurred()) SWIG_fail; |
19515 | } | |
d14a1e28 RD |
19516 | { |
19517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19518 | (arg1)->SetEditCanceled(arg2); | |
19519 | ||
19520 | wxPyEndAllowThreads(__tstate); | |
19521 | if (PyErr_Occurred()) SWIG_fail; | |
19522 | } | |
19523 | Py_INCREF(Py_None); resultobj = Py_None; | |
19524 | return resultobj; | |
19525 | fail: | |
19526 | return NULL; | |
19527 | } | |
19528 | ||
19529 | ||
19530 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
19531 | PyObject *obj; | |
19532 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19533 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
19534 | Py_INCREF(obj); | |
19535 | return Py_BuildValue((char *)""); | |
19536 | } | |
19537 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19538 | PyObject *resultobj; | |
19539 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19540 | int arg2 = (int) -1 ; |
d14a1e28 RD |
19541 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19542 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19543 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19544 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19545 | long arg5 = (long) wxLC_ICON ; | |
19546 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
19547 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
19548 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
19549 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19550 | wxPyListCtrl *result; | |
19551 | wxPoint temp3 ; | |
19552 | wxSize temp4 ; | |
423f194a | 19553 | bool temp7 = False ; |
d14a1e28 | 19554 | PyObject * obj0 = 0 ; |
8edf1c75 | 19555 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19556 | PyObject * obj2 = 0 ; |
19557 | PyObject * obj3 = 0 ; | |
8edf1c75 | 19558 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
19559 | PyObject * obj5 = 0 ; |
19560 | PyObject * obj6 = 0 ; | |
19561 | char *kwnames[] = { | |
19562 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19563 | }; | |
19564 | ||
8edf1c75 | 19565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 19566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19567 | if (obj1) { |
19568 | { | |
19569 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19570 | if (PyErr_Occurred()) SWIG_fail; | |
19571 | } | |
19572 | } | |
d14a1e28 RD |
19573 | if (obj2) { |
19574 | { | |
19575 | arg3 = &temp3; | |
19576 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19577 | } | |
19578 | } | |
19579 | if (obj3) { | |
19580 | { | |
19581 | arg4 = &temp4; | |
19582 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19583 | } | |
19584 | } | |
8edf1c75 RD |
19585 | if (obj4) { |
19586 | { | |
19587 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
19588 | if (PyErr_Occurred()) SWIG_fail; | |
19589 | } | |
19590 | } | |
d14a1e28 RD |
19591 | if (obj5) { |
19592 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19593 | if (arg6 == NULL) { | |
19594 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19595 | } | |
19596 | } | |
19597 | if (obj6) { | |
19598 | { | |
19599 | arg7 = wxString_in_helper(obj6); | |
19600 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 19601 | temp7 = True; |
d14a1e28 RD |
19602 | } |
19603 | } | |
19604 | { | |
19605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19606 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
19607 | ||
19608 | wxPyEndAllowThreads(__tstate); | |
19609 | if (PyErr_Occurred()) SWIG_fail; | |
19610 | } | |
19611 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
19612 | { | |
19613 | if (temp7) | |
19614 | delete arg7; | |
19615 | } | |
19616 | return resultobj; | |
19617 | fail: | |
19618 | { | |
19619 | if (temp7) | |
19620 | delete arg7; | |
19621 | } | |
19622 | return NULL; | |
19623 | } | |
19624 | ||
19625 | ||
19626 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19627 | PyObject *resultobj; | |
19628 | wxPyListCtrl *result; | |
19629 | char *kwnames[] = { | |
19630 | NULL | |
19631 | }; | |
19632 | ||
19633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
19634 | { | |
19635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19636 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
19637 | ||
19638 | wxPyEndAllowThreads(__tstate); | |
19639 | if (PyErr_Occurred()) SWIG_fail; | |
19640 | } | |
19641 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
19642 | return resultobj; | |
19643 | fail: | |
19644 | return NULL; | |
19645 | } | |
19646 | ||
19647 | ||
19648 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19649 | PyObject *resultobj; | |
19650 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19651 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 19652 | int arg3 = (int) -1 ; |
d14a1e28 RD |
19653 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
19654 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19655 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19656 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19657 | long arg6 = (long) wxLC_ICON ; | |
19658 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
19659 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
19660 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
19661 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19662 | bool result; | |
19663 | wxPoint temp4 ; | |
19664 | wxSize temp5 ; | |
423f194a | 19665 | bool temp8 = False ; |
d14a1e28 RD |
19666 | PyObject * obj0 = 0 ; |
19667 | PyObject * obj1 = 0 ; | |
8edf1c75 | 19668 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
19669 | PyObject * obj3 = 0 ; |
19670 | PyObject * obj4 = 0 ; | |
8edf1c75 | 19671 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
19672 | PyObject * obj6 = 0 ; |
19673 | PyObject * obj7 = 0 ; | |
19674 | char *kwnames[] = { | |
19675 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19676 | }; | |
19677 | ||
8edf1c75 | 19678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
19679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
19680 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
19681 | if (obj2) { |
19682 | { | |
19683 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
19684 | if (PyErr_Occurred()) SWIG_fail; | |
19685 | } | |
19686 | } | |
d14a1e28 RD |
19687 | if (obj3) { |
19688 | { | |
19689 | arg4 = &temp4; | |
19690 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
19691 | } | |
19692 | } | |
19693 | if (obj4) { | |
19694 | { | |
19695 | arg5 = &temp5; | |
19696 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
19697 | } | |
19698 | } | |
8edf1c75 RD |
19699 | if (obj5) { |
19700 | { | |
19701 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
19702 | if (PyErr_Occurred()) SWIG_fail; | |
19703 | } | |
19704 | } | |
d14a1e28 RD |
19705 | if (obj6) { |
19706 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19707 | if (arg7 == NULL) { | |
19708 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19709 | } | |
19710 | } | |
19711 | if (obj7) { | |
19712 | { | |
19713 | arg8 = wxString_in_helper(obj7); | |
19714 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 19715 | temp8 = True; |
d14a1e28 RD |
19716 | } |
19717 | } | |
19718 | { | |
19719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19720 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
19721 | ||
19722 | wxPyEndAllowThreads(__tstate); | |
19723 | if (PyErr_Occurred()) SWIG_fail; | |
19724 | } | |
02a34c4c | 19725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19726 | { |
19727 | if (temp8) | |
19728 | delete arg8; | |
19729 | } | |
19730 | return resultobj; | |
19731 | fail: | |
19732 | { | |
19733 | if (temp8) | |
19734 | delete arg8; | |
19735 | } | |
19736 | return NULL; | |
19737 | } | |
19738 | ||
19739 | ||
19740 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19741 | PyObject *resultobj; | |
19742 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19743 | PyObject *arg2 = (PyObject *) 0 ; | |
19744 | PyObject *arg3 = (PyObject *) 0 ; | |
19745 | PyObject * obj0 = 0 ; | |
19746 | PyObject * obj1 = 0 ; | |
19747 | PyObject * obj2 = 0 ; | |
19748 | char *kwnames[] = { | |
19749 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19750 | }; | |
19751 | ||
19752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19754 | arg2 = obj1; | |
19755 | arg3 = obj2; | |
19756 | { | |
19757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19758 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19759 | ||
19760 | wxPyEndAllowThreads(__tstate); | |
19761 | if (PyErr_Occurred()) SWIG_fail; | |
19762 | } | |
19763 | Py_INCREF(Py_None); resultobj = Py_None; | |
19764 | return resultobj; | |
19765 | fail: | |
19766 | return NULL; | |
19767 | } | |
19768 | ||
19769 | ||
19770 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19771 | PyObject *resultobj; | |
19772 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19773 | wxColour *arg2 = 0 ; | |
19774 | bool result; | |
19775 | wxColour temp2 ; | |
19776 | PyObject * obj0 = 0 ; | |
19777 | PyObject * obj1 = 0 ; | |
19778 | char *kwnames[] = { | |
19779 | (char *) "self",(char *) "col", NULL | |
19780 | }; | |
19781 | ||
19782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
19783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19784 | { | |
19785 | arg2 = &temp2; | |
19786 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19787 | } | |
19788 | { | |
19789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19790 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
19791 | ||
19792 | wxPyEndAllowThreads(__tstate); | |
19793 | if (PyErr_Occurred()) SWIG_fail; | |
19794 | } | |
02a34c4c | 19795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19796 | return resultobj; |
19797 | fail: | |
19798 | return NULL; | |
19799 | } | |
19800 | ||
19801 | ||
19802 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19803 | PyObject *resultobj; | |
19804 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19805 | wxColour *arg2 = 0 ; | |
19806 | bool result; | |
19807 | wxColour temp2 ; | |
19808 | PyObject * obj0 = 0 ; | |
19809 | PyObject * obj1 = 0 ; | |
19810 | char *kwnames[] = { | |
19811 | (char *) "self",(char *) "col", NULL | |
19812 | }; | |
19813 | ||
19814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
19815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19816 | { | |
19817 | arg2 = &temp2; | |
19818 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19819 | } | |
19820 | { | |
19821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19822 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19823 | ||
19824 | wxPyEndAllowThreads(__tstate); | |
19825 | if (PyErr_Occurred()) SWIG_fail; | |
19826 | } | |
02a34c4c | 19827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19828 | return resultobj; |
19829 | fail: | |
19830 | return NULL; | |
19831 | } | |
19832 | ||
19833 | ||
19834 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19835 | PyObject *resultobj; | |
19836 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19837 | int arg2 ; | |
19838 | wxListItem *result; | |
19839 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19840 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19841 | char *kwnames[] = { |
19842 | (char *) "self",(char *) "col", NULL | |
19843 | }; | |
19844 | ||
8edf1c75 | 19845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19847 | { |
19848 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19849 | if (PyErr_Occurred()) SWIG_fail; | |
19850 | } | |
d14a1e28 RD |
19851 | { |
19852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19853 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
19854 | ||
19855 | wxPyEndAllowThreads(__tstate); | |
19856 | if (PyErr_Occurred()) SWIG_fail; | |
19857 | } | |
19858 | { | |
19859 | resultobj = wxPyMake_wxObject(result); | |
19860 | } | |
19861 | return resultobj; | |
19862 | fail: | |
19863 | return NULL; | |
19864 | } | |
19865 | ||
19866 | ||
19867 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19868 | PyObject *resultobj; | |
19869 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19870 | int arg2 ; | |
19871 | wxListItem *arg3 = 0 ; | |
19872 | bool result; | |
19873 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19874 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19875 | PyObject * obj2 = 0 ; |
19876 | char *kwnames[] = { | |
19877 | (char *) "self",(char *) "col",(char *) "item", NULL | |
19878 | }; | |
19879 | ||
8edf1c75 | 19880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 19881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19882 | { |
19883 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19884 | if (PyErr_Occurred()) SWIG_fail; | |
19885 | } | |
d14a1e28 RD |
19886 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
19887 | if (arg3 == NULL) { | |
19888 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19889 | } | |
19890 | { | |
19891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19892 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
19893 | ||
19894 | wxPyEndAllowThreads(__tstate); | |
19895 | if (PyErr_Occurred()) SWIG_fail; | |
19896 | } | |
02a34c4c | 19897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19898 | return resultobj; |
19899 | fail: | |
19900 | return NULL; | |
19901 | } | |
19902 | ||
19903 | ||
19904 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19905 | PyObject *resultobj; | |
19906 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19907 | int arg2 ; | |
19908 | int result; | |
19909 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19910 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19911 | char *kwnames[] = { |
19912 | (char *) "self",(char *) "col", NULL | |
19913 | }; | |
19914 | ||
8edf1c75 | 19915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19917 | { |
19918 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19919 | if (PyErr_Occurred()) SWIG_fail; | |
19920 | } | |
d14a1e28 RD |
19921 | { |
19922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19923 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
19924 | ||
19925 | wxPyEndAllowThreads(__tstate); | |
19926 | if (PyErr_Occurred()) SWIG_fail; | |
19927 | } | |
8edf1c75 | 19928 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19929 | return resultobj; |
19930 | fail: | |
19931 | return NULL; | |
19932 | } | |
19933 | ||
19934 | ||
19935 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19936 | PyObject *resultobj; | |
19937 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19938 | int arg2 ; | |
19939 | int arg3 ; | |
19940 | bool result; | |
19941 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
19942 | PyObject * obj1 = 0 ; |
19943 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
19944 | char *kwnames[] = { |
19945 | (char *) "self",(char *) "col",(char *) "width", NULL | |
19946 | }; | |
19947 | ||
8edf1c75 | 19948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",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 = (int) SWIG_PyObj_AsInt(obj1); | |
19952 | if (PyErr_Occurred()) SWIG_fail; | |
19953 | } | |
19954 | { | |
19955 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
19956 | if (PyErr_Occurred()) SWIG_fail; | |
19957 | } | |
d14a1e28 RD |
19958 | { |
19959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19960 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
19961 | ||
19962 | wxPyEndAllowThreads(__tstate); | |
19963 | if (PyErr_Occurred()) SWIG_fail; | |
19964 | } | |
02a34c4c | 19965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19966 | return resultobj; |
19967 | fail: | |
19968 | return NULL; | |
19969 | } | |
19970 | ||
19971 | ||
19972 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19973 | PyObject *resultobj; | |
19974 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19975 | int result; | |
19976 | PyObject * obj0 = 0 ; | |
19977 | char *kwnames[] = { | |
19978 | (char *) "self", NULL | |
19979 | }; | |
19980 | ||
19981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
19982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19983 | { | |
19984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19985 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
19986 | ||
19987 | wxPyEndAllowThreads(__tstate); | |
19988 | if (PyErr_Occurred()) SWIG_fail; | |
19989 | } | |
8edf1c75 | 19990 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19991 | return resultobj; |
19992 | fail: | |
19993 | return NULL; | |
19994 | } | |
19995 | ||
19996 | ||
19997 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19998 | PyObject *resultobj; | |
19999 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20000 | wxRect result; | |
20001 | PyObject * obj0 = 0 ; | |
20002 | char *kwnames[] = { | |
20003 | (char *) "self", NULL | |
20004 | }; | |
20005 | ||
20006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
20007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20008 | { | |
20009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20010 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
20011 | ||
20012 | wxPyEndAllowThreads(__tstate); | |
20013 | if (PyErr_Occurred()) SWIG_fail; | |
20014 | } | |
20015 | { | |
20016 | wxRect * resultptr; | |
20017 | resultptr = new wxRect((wxRect &) result); | |
20018 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20019 | } | |
20020 | return resultobj; | |
20021 | fail: | |
20022 | return NULL; | |
20023 | } | |
20024 | ||
20025 | ||
20026 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20027 | PyObject *resultobj; | |
20028 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20029 | long arg2 ; | |
20030 | int arg3 = (int) 0 ; | |
20031 | wxListItem *result; | |
20032 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20033 | PyObject * obj1 = 0 ; |
20034 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20035 | char *kwnames[] = { |
20036 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
20037 | }; | |
20038 | ||
8edf1c75 | 20039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20041 | { |
20042 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20043 | if (PyErr_Occurred()) SWIG_fail; | |
20044 | } | |
20045 | if (obj2) { | |
20046 | { | |
20047 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20048 | if (PyErr_Occurred()) SWIG_fail; | |
20049 | } | |
20050 | } | |
d14a1e28 RD |
20051 | { |
20052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20053 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
20054 | ||
20055 | wxPyEndAllowThreads(__tstate); | |
20056 | if (PyErr_Occurred()) SWIG_fail; | |
20057 | } | |
20058 | { | |
20059 | resultobj = wxPyMake_wxObject(result); | |
20060 | } | |
20061 | return resultobj; | |
20062 | fail: | |
20063 | return NULL; | |
20064 | } | |
20065 | ||
20066 | ||
20067 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20068 | PyObject *resultobj; | |
20069 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20070 | wxListItem *arg2 = 0 ; | |
20071 | bool result; | |
20072 | PyObject * obj0 = 0 ; | |
20073 | PyObject * obj1 = 0 ; | |
20074 | char *kwnames[] = { | |
20075 | (char *) "self",(char *) "info", NULL | |
20076 | }; | |
20077 | ||
20078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
20079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20080 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20081 | if (arg2 == NULL) { | |
20082 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20083 | } | |
20084 | { | |
20085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20086 | result = (bool)(arg1)->SetItem(*arg2); | |
20087 | ||
20088 | wxPyEndAllowThreads(__tstate); | |
20089 | if (PyErr_Occurred()) SWIG_fail; | |
20090 | } | |
02a34c4c | 20091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20092 | return resultobj; |
20093 | fail: | |
20094 | return NULL; | |
20095 | } | |
20096 | ||
20097 | ||
20098 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20099 | PyObject *resultobj; | |
20100 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20101 | long arg2 ; | |
20102 | int arg3 ; | |
20103 | wxString *arg4 = 0 ; | |
20104 | int arg5 = (int) -1 ; | |
20105 | long result; | |
423f194a | 20106 | bool temp4 = False ; |
d14a1e28 | 20107 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
20108 | PyObject * obj1 = 0 ; |
20109 | PyObject * obj2 = 0 ; | |
d14a1e28 | 20110 | PyObject * obj3 = 0 ; |
8edf1c75 | 20111 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20112 | char *kwnames[] = { |
20113 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
20114 | }; | |
20115 | ||
8edf1c75 | 20116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 20117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20118 | { |
20119 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20120 | if (PyErr_Occurred()) SWIG_fail; | |
20121 | } | |
20122 | { | |
20123 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20124 | if (PyErr_Occurred()) SWIG_fail; | |
20125 | } | |
d14a1e28 RD |
20126 | { |
20127 | arg4 = wxString_in_helper(obj3); | |
20128 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 20129 | temp4 = True; |
d14a1e28 | 20130 | } |
8edf1c75 RD |
20131 | if (obj4) { |
20132 | { | |
20133 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
20134 | if (PyErr_Occurred()) SWIG_fail; | |
20135 | } | |
20136 | } | |
d14a1e28 RD |
20137 | { |
20138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20139 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
20140 | ||
20141 | wxPyEndAllowThreads(__tstate); | |
20142 | if (PyErr_Occurred()) SWIG_fail; | |
20143 | } | |
8edf1c75 | 20144 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20145 | { |
20146 | if (temp4) | |
20147 | delete arg4; | |
20148 | } | |
20149 | return resultobj; | |
20150 | fail: | |
20151 | { | |
20152 | if (temp4) | |
20153 | delete arg4; | |
20154 | } | |
20155 | return NULL; | |
20156 | } | |
20157 | ||
20158 | ||
20159 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20160 | PyObject *resultobj; | |
20161 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20162 | long arg2 ; | |
20163 | long arg3 ; | |
20164 | int result; | |
20165 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20166 | PyObject * obj1 = 0 ; |
20167 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20168 | char *kwnames[] = { |
20169 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
20170 | }; | |
20171 | ||
8edf1c75 | 20172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20174 | { |
20175 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20176 | if (PyErr_Occurred()) SWIG_fail; | |
20177 | } | |
20178 | { | |
20179 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20180 | if (PyErr_Occurred()) SWIG_fail; | |
20181 | } | |
d14a1e28 RD |
20182 | { |
20183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20184 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
20185 | ||
20186 | wxPyEndAllowThreads(__tstate); | |
20187 | if (PyErr_Occurred()) SWIG_fail; | |
20188 | } | |
8edf1c75 | 20189 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20190 | return resultobj; |
20191 | fail: | |
20192 | return NULL; | |
20193 | } | |
20194 | ||
20195 | ||
20196 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20197 | PyObject *resultobj; | |
20198 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20199 | long arg2 ; | |
20200 | long arg3 ; | |
20201 | long arg4 ; | |
20202 | bool result; | |
20203 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20204 | PyObject * obj1 = 0 ; |
20205 | PyObject * obj2 = 0 ; | |
20206 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20207 | char *kwnames[] = { |
20208 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
20209 | }; | |
20210 | ||
8edf1c75 | 20211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20213 | { |
20214 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20215 | if (PyErr_Occurred()) SWIG_fail; | |
20216 | } | |
20217 | { | |
20218 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20219 | if (PyErr_Occurred()) SWIG_fail; | |
20220 | } | |
20221 | { | |
20222 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
20223 | if (PyErr_Occurred()) SWIG_fail; | |
20224 | } | |
d14a1e28 RD |
20225 | { |
20226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20227 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
20228 | ||
20229 | wxPyEndAllowThreads(__tstate); | |
20230 | if (PyErr_Occurred()) SWIG_fail; | |
20231 | } | |
02a34c4c | 20232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20233 | return resultobj; |
20234 | fail: | |
20235 | return NULL; | |
20236 | } | |
20237 | ||
20238 | ||
20239 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20240 | PyObject *resultobj; | |
20241 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20242 | long arg2 ; | |
20243 | int arg3 ; | |
20244 | int arg4 ; | |
20245 | bool result; | |
20246 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20247 | PyObject * obj1 = 0 ; |
20248 | PyObject * obj2 = 0 ; | |
20249 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20250 | char *kwnames[] = { |
20251 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
20252 | }; | |
20253 | ||
8edf1c75 | 20254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20256 | { |
20257 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20258 | if (PyErr_Occurred()) SWIG_fail; | |
20259 | } | |
20260 | { | |
20261 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20262 | if (PyErr_Occurred()) SWIG_fail; | |
20263 | } | |
20264 | { | |
20265 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
20266 | if (PyErr_Occurred()) SWIG_fail; | |
20267 | } | |
d14a1e28 RD |
20268 | { |
20269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20270 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
20271 | ||
20272 | wxPyEndAllowThreads(__tstate); | |
20273 | if (PyErr_Occurred()) SWIG_fail; | |
20274 | } | |
02a34c4c | 20275 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20276 | return resultobj; |
20277 | fail: | |
20278 | return NULL; | |
20279 | } | |
20280 | ||
20281 | ||
20282 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20283 | PyObject *resultobj; | |
20284 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20285 | long arg2 ; | |
20286 | wxString result; | |
20287 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20288 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20289 | char *kwnames[] = { |
20290 | (char *) "self",(char *) "item", NULL | |
20291 | }; | |
20292 | ||
8edf1c75 | 20293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20295 | { |
20296 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20297 | if (PyErr_Occurred()) SWIG_fail; | |
20298 | } | |
d14a1e28 RD |
20299 | { |
20300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20301 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
20302 | ||
20303 | wxPyEndAllowThreads(__tstate); | |
20304 | if (PyErr_Occurred()) SWIG_fail; | |
20305 | } | |
20306 | { | |
20307 | #if wxUSE_UNICODE | |
20308 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20309 | #else | |
20310 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20311 | #endif | |
20312 | } | |
20313 | return resultobj; | |
20314 | fail: | |
20315 | return NULL; | |
20316 | } | |
20317 | ||
20318 | ||
20319 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20320 | PyObject *resultobj; | |
20321 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20322 | long arg2 ; | |
20323 | wxString *arg3 = 0 ; | |
423f194a | 20324 | bool temp3 = False ; |
d14a1e28 | 20325 | PyObject * obj0 = 0 ; |
8edf1c75 | 20326 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20327 | PyObject * obj2 = 0 ; |
20328 | char *kwnames[] = { | |
20329 | (char *) "self",(char *) "item",(char *) "str", NULL | |
20330 | }; | |
20331 | ||
8edf1c75 | 20332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20334 | { |
20335 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20336 | if (PyErr_Occurred()) SWIG_fail; | |
20337 | } | |
d14a1e28 RD |
20338 | { |
20339 | arg3 = wxString_in_helper(obj2); | |
20340 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 20341 | temp3 = True; |
d14a1e28 RD |
20342 | } |
20343 | { | |
20344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20345 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
20346 | ||
20347 | wxPyEndAllowThreads(__tstate); | |
20348 | if (PyErr_Occurred()) SWIG_fail; | |
20349 | } | |
20350 | Py_INCREF(Py_None); resultobj = Py_None; | |
20351 | { | |
20352 | if (temp3) | |
20353 | delete arg3; | |
20354 | } | |
20355 | return resultobj; | |
20356 | fail: | |
20357 | { | |
20358 | if (temp3) | |
20359 | delete arg3; | |
20360 | } | |
20361 | return NULL; | |
20362 | } | |
20363 | ||
20364 | ||
20365 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20366 | PyObject *resultobj; | |
20367 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20368 | long arg2 ; | |
20369 | long result; | |
20370 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20371 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20372 | char *kwnames[] = { |
20373 | (char *) "self",(char *) "item", NULL | |
20374 | }; | |
20375 | ||
8edf1c75 | 20376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20378 | { |
20379 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20380 | if (PyErr_Occurred()) SWIG_fail; | |
20381 | } | |
d14a1e28 RD |
20382 | { |
20383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20384 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
20385 | ||
20386 | wxPyEndAllowThreads(__tstate); | |
20387 | if (PyErr_Occurred()) SWIG_fail; | |
20388 | } | |
8edf1c75 | 20389 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20390 | return resultobj; |
20391 | fail: | |
20392 | return NULL; | |
20393 | } | |
20394 | ||
20395 | ||
20396 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20397 | PyObject *resultobj; | |
20398 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20399 | long arg2 ; | |
20400 | long arg3 ; | |
20401 | bool result; | |
20402 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20403 | PyObject * obj1 = 0 ; |
20404 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20405 | char *kwnames[] = { |
20406 | (char *) "self",(char *) "item",(char *) "data", NULL | |
20407 | }; | |
20408 | ||
8edf1c75 | 20409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20411 | { |
20412 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20413 | if (PyErr_Occurred()) SWIG_fail; | |
20414 | } | |
20415 | { | |
20416 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20417 | if (PyErr_Occurred()) SWIG_fail; | |
20418 | } | |
d14a1e28 RD |
20419 | { |
20420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20421 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
20422 | ||
20423 | wxPyEndAllowThreads(__tstate); | |
20424 | if (PyErr_Occurred()) SWIG_fail; | |
20425 | } | |
02a34c4c | 20426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20427 | return resultobj; |
20428 | fail: | |
20429 | return NULL; | |
20430 | } | |
20431 | ||
20432 | ||
20433 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20434 | PyObject *resultobj; | |
20435 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20436 | long arg2 ; | |
20437 | wxPoint result; | |
20438 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20439 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20440 | char *kwnames[] = { |
20441 | (char *) "self",(char *) "item", NULL | |
20442 | }; | |
20443 | ||
8edf1c75 | 20444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20446 | { |
20447 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20448 | if (PyErr_Occurred()) SWIG_fail; | |
20449 | } | |
d14a1e28 RD |
20450 | { |
20451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20452 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
20453 | ||
20454 | wxPyEndAllowThreads(__tstate); | |
20455 | if (PyErr_Occurred()) SWIG_fail; | |
20456 | } | |
20457 | { | |
20458 | wxPoint * resultptr; | |
20459 | resultptr = new wxPoint((wxPoint &) result); | |
20460 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20461 | } | |
20462 | return resultobj; | |
20463 | fail: | |
20464 | return NULL; | |
20465 | } | |
20466 | ||
20467 | ||
20468 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20469 | PyObject *resultobj; | |
20470 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20471 | long arg2 ; | |
20472 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
20473 | wxRect result; | |
20474 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20475 | PyObject * obj1 = 0 ; |
20476 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20477 | char *kwnames[] = { |
20478 | (char *) "self",(char *) "item",(char *) "code", NULL | |
20479 | }; | |
20480 | ||
8edf1c75 | 20481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20483 | { |
20484 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20485 | if (PyErr_Occurred()) SWIG_fail; | |
20486 | } | |
20487 | if (obj2) { | |
20488 | { | |
20489 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20490 | if (PyErr_Occurred()) SWIG_fail; | |
20491 | } | |
20492 | } | |
d14a1e28 RD |
20493 | { |
20494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20495 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
20496 | ||
20497 | wxPyEndAllowThreads(__tstate); | |
20498 | if (PyErr_Occurred()) SWIG_fail; | |
20499 | } | |
20500 | { | |
20501 | wxRect * resultptr; | |
20502 | resultptr = new wxRect((wxRect &) result); | |
20503 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20504 | } | |
20505 | return resultobj; | |
20506 | fail: | |
20507 | return NULL; | |
20508 | } | |
20509 | ||
20510 | ||
20511 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20512 | PyObject *resultobj; | |
20513 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20514 | long arg2 ; | |
20515 | wxPoint *arg3 = 0 ; | |
20516 | bool result; | |
20517 | wxPoint temp3 ; | |
20518 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20519 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20520 | PyObject * obj2 = 0 ; |
20521 | char *kwnames[] = { | |
20522 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
20523 | }; | |
20524 | ||
8edf1c75 | 20525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20527 | { |
20528 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20529 | if (PyErr_Occurred()) SWIG_fail; | |
20530 | } | |
d14a1e28 RD |
20531 | { |
20532 | arg3 = &temp3; | |
20533 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20534 | } | |
20535 | { | |
20536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20537 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
20538 | ||
20539 | wxPyEndAllowThreads(__tstate); | |
20540 | if (PyErr_Occurred()) SWIG_fail; | |
20541 | } | |
02a34c4c | 20542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20543 | return resultobj; |
20544 | fail: | |
20545 | return NULL; | |
20546 | } | |
20547 | ||
20548 | ||
20549 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20550 | PyObject *resultobj; | |
20551 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20552 | int result; | |
20553 | PyObject * obj0 = 0 ; | |
20554 | char *kwnames[] = { | |
20555 | (char *) "self", NULL | |
20556 | }; | |
20557 | ||
20558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
20559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20560 | { | |
20561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20562 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
20563 | ||
20564 | wxPyEndAllowThreads(__tstate); | |
20565 | if (PyErr_Occurred()) SWIG_fail; | |
20566 | } | |
8edf1c75 | 20567 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20568 | return resultobj; |
20569 | fail: | |
20570 | return NULL; | |
20571 | } | |
20572 | ||
20573 | ||
20574 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20575 | PyObject *resultobj; | |
20576 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20577 | int result; | |
20578 | PyObject * obj0 = 0 ; | |
20579 | char *kwnames[] = { | |
20580 | (char *) "self", NULL | |
20581 | }; | |
20582 | ||
20583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
20584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20585 | { | |
20586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20587 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
20588 | ||
20589 | wxPyEndAllowThreads(__tstate); | |
20590 | if (PyErr_Occurred()) SWIG_fail; | |
20591 | } | |
8edf1c75 | 20592 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20593 | return resultobj; |
20594 | fail: | |
20595 | return NULL; | |
20596 | } | |
20597 | ||
20598 | ||
20599 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20600 | PyObject *resultobj; | |
20601 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20602 | wxSize result; | |
20603 | PyObject * obj0 = 0 ; | |
20604 | char *kwnames[] = { | |
20605 | (char *) "self", NULL | |
20606 | }; | |
20607 | ||
20608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
20609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20610 | { | |
20611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20612 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
20613 | ||
20614 | wxPyEndAllowThreads(__tstate); | |
20615 | if (PyErr_Occurred()) SWIG_fail; | |
20616 | } | |
20617 | { | |
20618 | wxSize * resultptr; | |
20619 | resultptr = new wxSize((wxSize &) result); | |
20620 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20621 | } | |
20622 | return resultobj; | |
20623 | fail: | |
20624 | return NULL; | |
20625 | } | |
20626 | ||
20627 | ||
20628 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20629 | PyObject *resultobj; | |
20630 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20631 | int arg2 ; | |
423f194a | 20632 | bool arg3 = (bool) False ; |
d14a1e28 | 20633 | PyObject * obj0 = 0 ; |
8edf1c75 | 20634 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20635 | PyObject * obj2 = 0 ; |
20636 | char *kwnames[] = { | |
20637 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
20638 | }; | |
20639 | ||
8edf1c75 | 20640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20642 | { |
20643 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20644 | if (PyErr_Occurred()) SWIG_fail; | |
20645 | } | |
d14a1e28 | 20646 | if (obj2) { |
2dbef272 | 20647 | { |
8edf1c75 | 20648 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
20649 | if (PyErr_Occurred()) SWIG_fail; |
20650 | } | |
d14a1e28 RD |
20651 | } |
20652 | { | |
20653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20654 | (arg1)->SetItemSpacing(arg2,arg3); | |
20655 | ||
20656 | wxPyEndAllowThreads(__tstate); | |
20657 | if (PyErr_Occurred()) SWIG_fail; | |
20658 | } | |
20659 | Py_INCREF(Py_None); resultobj = Py_None; | |
20660 | return resultobj; | |
20661 | fail: | |
20662 | return NULL; | |
20663 | } | |
20664 | ||
20665 | ||
20666 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20667 | PyObject *resultobj; | |
20668 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20669 | int result; | |
20670 | PyObject * obj0 = 0 ; | |
20671 | char *kwnames[] = { | |
20672 | (char *) "self", NULL | |
20673 | }; | |
20674 | ||
20675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
20676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20677 | { | |
20678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20679 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
20680 | ||
20681 | wxPyEndAllowThreads(__tstate); | |
20682 | if (PyErr_Occurred()) SWIG_fail; | |
20683 | } | |
8edf1c75 | 20684 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20685 | return resultobj; |
20686 | fail: | |
20687 | return NULL; | |
20688 | } | |
20689 | ||
20690 | ||
20691 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20692 | PyObject *resultobj; | |
20693 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20694 | wxColour result; | |
20695 | PyObject * obj0 = 0 ; | |
20696 | char *kwnames[] = { | |
20697 | (char *) "self", NULL | |
20698 | }; | |
20699 | ||
20700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
20701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20702 | { | |
20703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20704 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
20705 | ||
20706 | wxPyEndAllowThreads(__tstate); | |
20707 | if (PyErr_Occurred()) SWIG_fail; | |
20708 | } | |
20709 | { | |
20710 | wxColour * resultptr; | |
20711 | resultptr = new wxColour((wxColour &) result); | |
20712 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
20713 | } | |
20714 | return resultobj; | |
20715 | fail: | |
20716 | return NULL; | |
20717 | } | |
20718 | ||
20719 | ||
20720 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20721 | PyObject *resultobj; | |
20722 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20723 | wxColour *arg2 = 0 ; | |
20724 | wxColour temp2 ; | |
20725 | PyObject * obj0 = 0 ; | |
20726 | PyObject * obj1 = 0 ; | |
20727 | char *kwnames[] = { | |
20728 | (char *) "self",(char *) "col", NULL | |
20729 | }; | |
20730 | ||
20731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
20732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20733 | { | |
20734 | arg2 = &temp2; | |
20735 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20736 | } | |
20737 | { | |
20738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20739 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
20740 | ||
20741 | wxPyEndAllowThreads(__tstate); | |
20742 | if (PyErr_Occurred()) SWIG_fail; | |
20743 | } | |
20744 | Py_INCREF(Py_None); resultobj = Py_None; | |
20745 | return resultobj; | |
20746 | fail: | |
20747 | return NULL; | |
20748 | } | |
20749 | ||
20750 | ||
20751 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20752 | PyObject *resultobj; | |
20753 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20754 | long result; | |
20755 | PyObject * obj0 = 0 ; | |
20756 | char *kwnames[] = { | |
20757 | (char *) "self", NULL | |
20758 | }; | |
20759 | ||
20760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
20761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20762 | { | |
20763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20764 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
20765 | ||
20766 | wxPyEndAllowThreads(__tstate); | |
20767 | if (PyErr_Occurred()) SWIG_fail; | |
20768 | } | |
8edf1c75 | 20769 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20770 | return resultobj; |
20771 | fail: | |
20772 | return NULL; | |
20773 | } | |
20774 | ||
20775 | ||
20776 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20777 | PyObject *resultobj; | |
20778 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20779 | long arg2 ; | |
423f194a | 20780 | bool arg3 = (bool) True ; |
d14a1e28 | 20781 | PyObject * obj0 = 0 ; |
8edf1c75 | 20782 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20783 | PyObject * obj2 = 0 ; |
20784 | char *kwnames[] = { | |
20785 | (char *) "self",(char *) "style",(char *) "add", NULL | |
20786 | }; | |
20787 | ||
8edf1c75 | 20788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20790 | { |
20791 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20792 | if (PyErr_Occurred()) SWIG_fail; | |
20793 | } | |
d14a1e28 | 20794 | if (obj2) { |
2dbef272 | 20795 | { |
8edf1c75 | 20796 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
20797 | if (PyErr_Occurred()) SWIG_fail; |
20798 | } | |
d14a1e28 RD |
20799 | } |
20800 | { | |
20801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20802 | (arg1)->SetSingleStyle(arg2,arg3); | |
20803 | ||
20804 | wxPyEndAllowThreads(__tstate); | |
20805 | if (PyErr_Occurred()) SWIG_fail; | |
20806 | } | |
20807 | Py_INCREF(Py_None); resultobj = Py_None; | |
20808 | return resultobj; | |
20809 | fail: | |
20810 | return NULL; | |
20811 | } | |
20812 | ||
20813 | ||
20814 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20815 | PyObject *resultobj; | |
20816 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20817 | long arg2 ; | |
20818 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20819 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20820 | char *kwnames[] = { |
20821 | (char *) "self",(char *) "style", NULL | |
20822 | }; | |
20823 | ||
8edf1c75 | 20824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20826 | { |
20827 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20828 | if (PyErr_Occurred()) SWIG_fail; | |
20829 | } | |
d14a1e28 RD |
20830 | { |
20831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20832 | (arg1)->SetWindowStyleFlag(arg2); | |
20833 | ||
20834 | wxPyEndAllowThreads(__tstate); | |
20835 | if (PyErr_Occurred()) SWIG_fail; | |
20836 | } | |
20837 | Py_INCREF(Py_None); resultobj = Py_None; | |
20838 | return resultobj; | |
20839 | fail: | |
20840 | return NULL; | |
20841 | } | |
20842 | ||
20843 | ||
20844 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20845 | PyObject *resultobj; | |
20846 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20847 | long arg2 ; | |
20848 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
20849 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
20850 | long result; | |
20851 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20852 | PyObject * obj1 = 0 ; |
20853 | PyObject * obj2 = 0 ; | |
20854 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20855 | char *kwnames[] = { |
20856 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
20857 | }; | |
20858 | ||
8edf1c75 | 20859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20861 | { |
20862 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20863 | if (PyErr_Occurred()) SWIG_fail; | |
20864 | } | |
20865 | if (obj2) { | |
20866 | { | |
20867 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20868 | if (PyErr_Occurred()) SWIG_fail; | |
20869 | } | |
20870 | } | |
20871 | if (obj3) { | |
20872 | { | |
20873 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
20874 | if (PyErr_Occurred()) SWIG_fail; | |
20875 | } | |
20876 | } | |
d14a1e28 RD |
20877 | { |
20878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20879 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
20880 | ||
20881 | wxPyEndAllowThreads(__tstate); | |
20882 | if (PyErr_Occurred()) SWIG_fail; | |
20883 | } | |
8edf1c75 | 20884 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20885 | return resultobj; |
20886 | fail: | |
20887 | return NULL; | |
20888 | } | |
20889 | ||
20890 | ||
20891 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20892 | PyObject *resultobj; | |
20893 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20894 | int arg2 ; | |
20895 | wxImageList *result; | |
20896 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20897 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20898 | char *kwnames[] = { |
20899 | (char *) "self",(char *) "which", NULL | |
20900 | }; | |
20901 | ||
8edf1c75 | 20902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20904 | { |
20905 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20906 | if (PyErr_Occurred()) SWIG_fail; | |
20907 | } | |
d14a1e28 RD |
20908 | { |
20909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20910 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
20911 | ||
20912 | wxPyEndAllowThreads(__tstate); | |
20913 | if (PyErr_Occurred()) SWIG_fail; | |
20914 | } | |
20915 | { | |
20916 | resultobj = wxPyMake_wxObject(result); | |
20917 | } | |
20918 | return resultobj; | |
20919 | fail: | |
20920 | return NULL; | |
20921 | } | |
20922 | ||
20923 | ||
20924 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20925 | PyObject *resultobj; | |
20926 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20927 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20928 | int arg3 ; | |
20929 | PyObject * obj0 = 0 ; | |
20930 | PyObject * obj1 = 0 ; | |
8edf1c75 | 20931 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20932 | char *kwnames[] = { |
20933 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
20934 | }; | |
20935 | ||
8edf1c75 | 20936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
20937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20938 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
20939 | { |
20940 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20941 | if (PyErr_Occurred()) SWIG_fail; | |
20942 | } | |
d14a1e28 RD |
20943 | { |
20944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20945 | (arg1)->SetImageList(arg2,arg3); | |
20946 | ||
20947 | wxPyEndAllowThreads(__tstate); | |
20948 | if (PyErr_Occurred()) SWIG_fail; | |
20949 | } | |
20950 | Py_INCREF(Py_None); resultobj = Py_None; | |
20951 | return resultobj; | |
20952 | fail: | |
20953 | return NULL; | |
20954 | } | |
20955 | ||
20956 | ||
20957 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20958 | PyObject *resultobj; | |
20959 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20960 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20961 | int arg3 ; | |
20962 | PyObject * obj0 = 0 ; | |
20963 | PyObject * obj1 = 0 ; | |
8edf1c75 | 20964 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20965 | char *kwnames[] = { |
20966 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
20967 | }; | |
20968 | ||
8edf1c75 | 20969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
58203fa6 | 20971 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
8edf1c75 RD |
20972 | { |
20973 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20974 | if (PyErr_Occurred()) SWIG_fail; | |
20975 | } | |
d14a1e28 RD |
20976 | { |
20977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20978 | (arg1)->AssignImageList(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_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20991 | PyObject *resultobj; | |
20992 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20993 | bool result; | |
20994 | PyObject * obj0 = 0 ; | |
20995 | char *kwnames[] = { | |
20996 | (char *) "self", NULL | |
20997 | }; | |
20998 | ||
20999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
21000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21001 | { | |
21002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21003 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
21004 | ||
21005 | wxPyEndAllowThreads(__tstate); | |
21006 | if (PyErr_Occurred()) SWIG_fail; | |
21007 | } | |
02a34c4c | 21008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21009 | return resultobj; |
21010 | fail: | |
21011 | return NULL; | |
21012 | } | |
21013 | ||
21014 | ||
21015 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21016 | PyObject *resultobj; | |
21017 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21018 | long arg2 ; | |
21019 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21020 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21021 | char *kwnames[] = { |
21022 | (char *) "self",(char *) "item", NULL | |
21023 | }; | |
21024 | ||
8edf1c75 | 21025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21027 | { |
21028 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21029 | if (PyErr_Occurred()) SWIG_fail; | |
21030 | } | |
d14a1e28 RD |
21031 | { |
21032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21033 | (arg1)->RefreshItem(arg2); | |
21034 | ||
21035 | wxPyEndAllowThreads(__tstate); | |
21036 | if (PyErr_Occurred()) SWIG_fail; | |
21037 | } | |
21038 | Py_INCREF(Py_None); resultobj = Py_None; | |
21039 | return resultobj; | |
21040 | fail: | |
21041 | return NULL; | |
21042 | } | |
21043 | ||
21044 | ||
21045 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21046 | PyObject *resultobj; | |
21047 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21048 | long arg2 ; | |
21049 | long arg3 ; | |
21050 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21051 | PyObject * obj1 = 0 ; |
21052 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21053 | char *kwnames[] = { |
21054 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
21055 | }; | |
21056 | ||
8edf1c75 | 21057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21059 | { |
21060 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21061 | if (PyErr_Occurred()) SWIG_fail; | |
21062 | } | |
21063 | { | |
21064 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21065 | if (PyErr_Occurred()) SWIG_fail; | |
21066 | } | |
d14a1e28 RD |
21067 | { |
21068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21069 | (arg1)->RefreshItems(arg2,arg3); | |
21070 | ||
21071 | wxPyEndAllowThreads(__tstate); | |
21072 | if (PyErr_Occurred()) SWIG_fail; | |
21073 | } | |
21074 | Py_INCREF(Py_None); resultobj = Py_None; | |
21075 | return resultobj; | |
21076 | fail: | |
21077 | return NULL; | |
21078 | } | |
21079 | ||
21080 | ||
21081 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21082 | PyObject *resultobj; | |
21083 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21084 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
21085 | bool result; | |
21086 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21087 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21088 | char *kwnames[] = { |
21089 | (char *) "self",(char *) "flag", NULL | |
21090 | }; | |
21091 | ||
8edf1c75 | 21092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21094 | if (obj1) { |
21095 | { | |
21096 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21097 | if (PyErr_Occurred()) SWIG_fail; | |
21098 | } | |
21099 | } | |
d14a1e28 RD |
21100 | { |
21101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21102 | result = (bool)(arg1)->Arrange(arg2); | |
21103 | ||
21104 | wxPyEndAllowThreads(__tstate); | |
21105 | if (PyErr_Occurred()) SWIG_fail; | |
21106 | } | |
02a34c4c | 21107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21108 | return resultobj; |
21109 | fail: | |
21110 | return NULL; | |
21111 | } | |
21112 | ||
21113 | ||
21114 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21115 | PyObject *resultobj; | |
21116 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21117 | long arg2 ; | |
21118 | bool result; | |
21119 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21120 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21121 | char *kwnames[] = { |
21122 | (char *) "self",(char *) "item", NULL | |
21123 | }; | |
21124 | ||
8edf1c75 | 21125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21127 | { |
21128 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21129 | if (PyErr_Occurred()) SWIG_fail; | |
21130 | } | |
d14a1e28 RD |
21131 | { |
21132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21133 | result = (bool)(arg1)->DeleteItem(arg2); | |
21134 | ||
21135 | wxPyEndAllowThreads(__tstate); | |
21136 | if (PyErr_Occurred()) SWIG_fail; | |
21137 | } | |
02a34c4c | 21138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21139 | return resultobj; |
21140 | fail: | |
21141 | return NULL; | |
21142 | } | |
21143 | ||
21144 | ||
21145 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21146 | PyObject *resultobj; | |
21147 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21148 | bool result; | |
21149 | PyObject * obj0 = 0 ; | |
21150 | char *kwnames[] = { | |
21151 | (char *) "self", NULL | |
21152 | }; | |
21153 | ||
21154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
21155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21156 | { | |
21157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21158 | result = (bool)(arg1)->DeleteAllItems(); | |
21159 | ||
21160 | wxPyEndAllowThreads(__tstate); | |
21161 | if (PyErr_Occurred()) SWIG_fail; | |
21162 | } | |
02a34c4c | 21163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21164 | return resultobj; |
21165 | fail: | |
21166 | return NULL; | |
21167 | } | |
21168 | ||
21169 | ||
21170 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21171 | PyObject *resultobj; | |
21172 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21173 | int arg2 ; | |
21174 | bool result; | |
21175 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21176 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21177 | char *kwnames[] = { |
21178 | (char *) "self",(char *) "col", NULL | |
21179 | }; | |
21180 | ||
8edf1c75 | 21181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21183 | { |
21184 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21185 | if (PyErr_Occurred()) SWIG_fail; | |
21186 | } | |
d14a1e28 RD |
21187 | { |
21188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21189 | result = (bool)(arg1)->DeleteColumn(arg2); | |
21190 | ||
21191 | wxPyEndAllowThreads(__tstate); | |
21192 | if (PyErr_Occurred()) SWIG_fail; | |
21193 | } | |
02a34c4c | 21194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21195 | return resultobj; |
21196 | fail: | |
21197 | return NULL; | |
21198 | } | |
21199 | ||
21200 | ||
21201 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21202 | PyObject *resultobj; | |
21203 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21204 | bool result; | |
21205 | PyObject * obj0 = 0 ; | |
21206 | char *kwnames[] = { | |
21207 | (char *) "self", NULL | |
21208 | }; | |
21209 | ||
21210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
21211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21212 | { | |
21213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21214 | result = (bool)(arg1)->DeleteAllColumns(); | |
21215 | ||
21216 | wxPyEndAllowThreads(__tstate); | |
21217 | if (PyErr_Occurred()) SWIG_fail; | |
21218 | } | |
02a34c4c | 21219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21220 | return resultobj; |
21221 | fail: | |
21222 | return NULL; | |
21223 | } | |
21224 | ||
21225 | ||
21226 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21227 | PyObject *resultobj; | |
21228 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21229 | PyObject * obj0 = 0 ; | |
21230 | char *kwnames[] = { | |
21231 | (char *) "self", NULL | |
21232 | }; | |
21233 | ||
21234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
21235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21236 | { | |
21237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21238 | (arg1)->ClearAll(); | |
21239 | ||
21240 | wxPyEndAllowThreads(__tstate); | |
21241 | if (PyErr_Occurred()) SWIG_fail; | |
21242 | } | |
21243 | Py_INCREF(Py_None); resultobj = Py_None; | |
21244 | return resultobj; | |
21245 | fail: | |
21246 | return NULL; | |
21247 | } | |
21248 | ||
21249 | ||
21250 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21251 | PyObject *resultobj; | |
21252 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21253 | long arg2 ; | |
21254 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21255 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21256 | char *kwnames[] = { |
21257 | (char *) "self",(char *) "item", NULL | |
21258 | }; | |
21259 | ||
8edf1c75 | 21260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21262 | { |
21263 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21264 | if (PyErr_Occurred()) SWIG_fail; | |
21265 | } | |
d14a1e28 RD |
21266 | { |
21267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21268 | (arg1)->EditLabel(arg2); | |
21269 | ||
21270 | wxPyEndAllowThreads(__tstate); | |
21271 | if (PyErr_Occurred()) SWIG_fail; | |
21272 | } | |
21273 | Py_INCREF(Py_None); resultobj = Py_None; | |
21274 | return resultobj; | |
21275 | fail: | |
21276 | return NULL; | |
21277 | } | |
21278 | ||
21279 | ||
21280 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21281 | PyObject *resultobj; | |
21282 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21283 | long arg2 ; | |
21284 | bool result; | |
21285 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21286 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21287 | char *kwnames[] = { |
21288 | (char *) "self",(char *) "item", NULL | |
21289 | }; | |
21290 | ||
8edf1c75 | 21291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21293 | { |
21294 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21295 | if (PyErr_Occurred()) SWIG_fail; | |
21296 | } | |
d14a1e28 RD |
21297 | { |
21298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21299 | result = (bool)(arg1)->EnsureVisible(arg2); | |
21300 | ||
21301 | wxPyEndAllowThreads(__tstate); | |
21302 | if (PyErr_Occurred()) SWIG_fail; | |
21303 | } | |
02a34c4c | 21304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21305 | return resultobj; |
21306 | fail: | |
21307 | return NULL; | |
21308 | } | |
21309 | ||
21310 | ||
21311 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21312 | PyObject *resultobj; | |
21313 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21314 | long arg2 ; | |
21315 | wxString *arg3 = 0 ; | |
423f194a | 21316 | bool arg4 = (bool) False ; |
d14a1e28 | 21317 | long result; |
423f194a | 21318 | bool temp3 = False ; |
d14a1e28 | 21319 | PyObject * obj0 = 0 ; |
8edf1c75 | 21320 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21321 | PyObject * obj2 = 0 ; |
21322 | PyObject * obj3 = 0 ; | |
21323 | char *kwnames[] = { | |
21324 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
21325 | }; | |
21326 | ||
8edf1c75 | 21327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21329 | { |
21330 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21331 | if (PyErr_Occurred()) SWIG_fail; | |
21332 | } | |
d14a1e28 RD |
21333 | { |
21334 | arg3 = wxString_in_helper(obj2); | |
21335 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21336 | temp3 = True; |
d14a1e28 RD |
21337 | } |
21338 | if (obj3) { | |
2dbef272 | 21339 | { |
8edf1c75 | 21340 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
21341 | if (PyErr_Occurred()) SWIG_fail; |
21342 | } | |
d14a1e28 RD |
21343 | } |
21344 | { | |
21345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21346 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
21347 | ||
21348 | wxPyEndAllowThreads(__tstate); | |
21349 | if (PyErr_Occurred()) SWIG_fail; | |
21350 | } | |
8edf1c75 | 21351 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21352 | { |
21353 | if (temp3) | |
21354 | delete arg3; | |
21355 | } | |
21356 | return resultobj; | |
21357 | fail: | |
21358 | { | |
21359 | if (temp3) | |
21360 | delete arg3; | |
21361 | } | |
21362 | return NULL; | |
21363 | } | |
21364 | ||
21365 | ||
21366 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21367 | PyObject *resultobj; | |
21368 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21369 | long arg2 ; | |
21370 | long arg3 ; | |
21371 | long result; | |
21372 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21373 | PyObject * obj1 = 0 ; |
21374 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21375 | char *kwnames[] = { |
21376 | (char *) "self",(char *) "start",(char *) "data", NULL | |
21377 | }; | |
21378 | ||
8edf1c75 | 21379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21381 | { |
21382 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21383 | if (PyErr_Occurred()) SWIG_fail; | |
21384 | } | |
21385 | { | |
21386 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21387 | if (PyErr_Occurred()) SWIG_fail; | |
21388 | } | |
d14a1e28 RD |
21389 | { |
21390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21391 | result = (long)(arg1)->FindItem(arg2,arg3); | |
21392 | ||
21393 | wxPyEndAllowThreads(__tstate); | |
21394 | if (PyErr_Occurred()) SWIG_fail; | |
21395 | } | |
8edf1c75 | 21396 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21397 | return resultobj; |
21398 | fail: | |
21399 | return NULL; | |
21400 | } | |
21401 | ||
21402 | ||
21403 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21404 | PyObject *resultobj; | |
21405 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21406 | long arg2 ; | |
21407 | wxPoint *arg3 = 0 ; | |
21408 | int arg4 ; | |
21409 | long result; | |
21410 | wxPoint temp3 ; | |
21411 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21412 | PyObject * obj1 = 0 ; |
d14a1e28 | 21413 | PyObject * obj2 = 0 ; |
8edf1c75 | 21414 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
21415 | char *kwnames[] = { |
21416 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
21417 | }; | |
21418 | ||
8edf1c75 | 21419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21421 | { |
21422 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21423 | if (PyErr_Occurred()) SWIG_fail; | |
21424 | } | |
d14a1e28 RD |
21425 | { |
21426 | arg3 = &temp3; | |
21427 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21428 | } | |
8edf1c75 RD |
21429 | { |
21430 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21431 | if (PyErr_Occurred()) SWIG_fail; | |
21432 | } | |
d14a1e28 RD |
21433 | { |
21434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21435 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
21436 | ||
21437 | wxPyEndAllowThreads(__tstate); | |
21438 | if (PyErr_Occurred()) SWIG_fail; | |
21439 | } | |
8edf1c75 | 21440 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21441 | return resultobj; |
21442 | fail: | |
21443 | return NULL; | |
21444 | } | |
21445 | ||
21446 | ||
21447 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21448 | PyObject *resultobj; | |
21449 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21450 | wxPoint *arg2 = 0 ; | |
21451 | int *arg3 = 0 ; | |
21452 | long result; | |
21453 | wxPoint temp2 ; | |
21454 | int temp3 ; | |
21455 | PyObject * obj0 = 0 ; | |
21456 | PyObject * obj1 = 0 ; | |
21457 | char *kwnames[] = { | |
21458 | (char *) "self",(char *) "point", NULL | |
21459 | }; | |
21460 | ||
21461 | arg3 = &temp3; | |
21462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
21463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21464 | { | |
21465 | arg2 = &temp2; | |
21466 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21467 | } | |
21468 | { | |
21469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21470 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
21471 | ||
21472 | wxPyEndAllowThreads(__tstate); | |
21473 | if (PyErr_Occurred()) SWIG_fail; | |
21474 | } | |
8edf1c75 | 21475 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21476 | { |
21477 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21478 | resultobj = t_output_helper(resultobj,o); | |
21479 | } | |
21480 | return resultobj; | |
21481 | fail: | |
21482 | return NULL; | |
21483 | } | |
21484 | ||
21485 | ||
21486 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21487 | PyObject *resultobj; | |
21488 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21489 | wxListItem *arg2 = 0 ; | |
21490 | long result; | |
21491 | PyObject * obj0 = 0 ; | |
21492 | PyObject * obj1 = 0 ; | |
21493 | char *kwnames[] = { | |
21494 | (char *) "self",(char *) "info", NULL | |
21495 | }; | |
21496 | ||
21497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
21498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21499 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21500 | if (arg2 == NULL) { | |
21501 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21502 | } | |
21503 | { | |
21504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21505 | result = (long)(arg1)->InsertItem(*arg2); | |
21506 | ||
21507 | wxPyEndAllowThreads(__tstate); | |
21508 | if (PyErr_Occurred()) SWIG_fail; | |
21509 | } | |
8edf1c75 | 21510 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21511 | return resultobj; |
21512 | fail: | |
21513 | return NULL; | |
21514 | } | |
21515 | ||
21516 | ||
21517 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21518 | PyObject *resultobj; | |
21519 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21520 | long arg2 ; | |
21521 | wxString *arg3 = 0 ; | |
21522 | long result; | |
423f194a | 21523 | bool temp3 = False ; |
d14a1e28 | 21524 | PyObject * obj0 = 0 ; |
8edf1c75 | 21525 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21526 | PyObject * obj2 = 0 ; |
21527 | char *kwnames[] = { | |
21528 | (char *) "self",(char *) "index",(char *) "label", NULL | |
21529 | }; | |
21530 | ||
8edf1c75 | 21531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21533 | { |
21534 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21535 | if (PyErr_Occurred()) SWIG_fail; | |
21536 | } | |
d14a1e28 RD |
21537 | { |
21538 | arg3 = wxString_in_helper(obj2); | |
21539 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21540 | temp3 = True; |
d14a1e28 RD |
21541 | } |
21542 | { | |
21543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21544 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
21545 | ||
21546 | wxPyEndAllowThreads(__tstate); | |
21547 | if (PyErr_Occurred()) SWIG_fail; | |
21548 | } | |
8edf1c75 | 21549 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21550 | { |
21551 | if (temp3) | |
21552 | delete arg3; | |
21553 | } | |
21554 | return resultobj; | |
21555 | fail: | |
21556 | { | |
21557 | if (temp3) | |
21558 | delete arg3; | |
21559 | } | |
21560 | return NULL; | |
21561 | } | |
21562 | ||
21563 | ||
21564 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21565 | PyObject *resultobj; | |
21566 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21567 | long arg2 ; | |
21568 | int arg3 ; | |
21569 | long result; | |
21570 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21571 | PyObject * obj1 = 0 ; |
21572 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21573 | char *kwnames[] = { |
21574 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
21575 | }; | |
21576 | ||
8edf1c75 | 21577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21579 | { |
21580 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21581 | if (PyErr_Occurred()) SWIG_fail; | |
21582 | } | |
21583 | { | |
21584 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21585 | if (PyErr_Occurred()) SWIG_fail; | |
21586 | } | |
d14a1e28 RD |
21587 | { |
21588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21589 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
21590 | ||
21591 | wxPyEndAllowThreads(__tstate); | |
21592 | if (PyErr_Occurred()) SWIG_fail; | |
21593 | } | |
8edf1c75 | 21594 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21595 | return resultobj; |
21596 | fail: | |
21597 | return NULL; | |
21598 | } | |
21599 | ||
21600 | ||
21601 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21602 | PyObject *resultobj; | |
21603 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21604 | long arg2 ; | |
21605 | wxString *arg3 = 0 ; | |
21606 | int arg4 ; | |
21607 | long result; | |
423f194a | 21608 | bool temp3 = False ; |
d14a1e28 | 21609 | PyObject * obj0 = 0 ; |
8edf1c75 | 21610 | PyObject * obj1 = 0 ; |
d14a1e28 | 21611 | PyObject * obj2 = 0 ; |
8edf1c75 | 21612 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
21613 | char *kwnames[] = { |
21614 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
21615 | }; | |
21616 | ||
8edf1c75 | 21617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21619 | { |
21620 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21621 | if (PyErr_Occurred()) SWIG_fail; | |
21622 | } | |
d14a1e28 RD |
21623 | { |
21624 | arg3 = wxString_in_helper(obj2); | |
21625 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21626 | temp3 = True; |
d14a1e28 | 21627 | } |
8edf1c75 RD |
21628 | { |
21629 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21630 | if (PyErr_Occurred()) SWIG_fail; | |
21631 | } | |
d14a1e28 RD |
21632 | { |
21633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21634 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
21635 | ||
21636 | wxPyEndAllowThreads(__tstate); | |
21637 | if (PyErr_Occurred()) SWIG_fail; | |
21638 | } | |
8edf1c75 | 21639 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21640 | { |
21641 | if (temp3) | |
21642 | delete arg3; | |
21643 | } | |
21644 | return resultobj; | |
21645 | fail: | |
21646 | { | |
21647 | if (temp3) | |
21648 | delete arg3; | |
21649 | } | |
21650 | return NULL; | |
21651 | } | |
21652 | ||
21653 | ||
21654 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21655 | PyObject *resultobj; | |
21656 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21657 | long arg2 ; | |
21658 | wxListItem *arg3 = 0 ; | |
21659 | long result; | |
21660 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21661 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21662 | PyObject * obj2 = 0 ; |
21663 | char *kwnames[] = { | |
21664 | (char *) "self",(char *) "col",(char *) "info", NULL | |
21665 | }; | |
21666 | ||
8edf1c75 | 21667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21669 | { |
21670 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21671 | if (PyErr_Occurred()) SWIG_fail; | |
21672 | } | |
d14a1e28 RD |
21673 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
21674 | if (arg3 == NULL) { | |
21675 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21676 | } | |
21677 | { | |
21678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21679 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
21680 | ||
21681 | wxPyEndAllowThreads(__tstate); | |
21682 | if (PyErr_Occurred()) SWIG_fail; | |
21683 | } | |
8edf1c75 | 21684 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21685 | return resultobj; |
21686 | fail: | |
21687 | return NULL; | |
21688 | } | |
21689 | ||
21690 | ||
21691 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21692 | PyObject *resultobj; | |
21693 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21694 | long arg2 ; | |
21695 | wxString *arg3 = 0 ; | |
21696 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
21697 | int arg5 = (int) -1 ; | |
21698 | long result; | |
423f194a | 21699 | bool temp3 = False ; |
d14a1e28 | 21700 | PyObject * obj0 = 0 ; |
8edf1c75 | 21701 | PyObject * obj1 = 0 ; |
d14a1e28 | 21702 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
21703 | PyObject * obj3 = 0 ; |
21704 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
21705 | char *kwnames[] = { |
21706 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
21707 | }; | |
21708 | ||
8edf1c75 | 21709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 21710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21711 | { |
21712 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21713 | if (PyErr_Occurred()) SWIG_fail; | |
21714 | } | |
d14a1e28 RD |
21715 | { |
21716 | arg3 = wxString_in_helper(obj2); | |
21717 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21718 | temp3 = True; |
d14a1e28 | 21719 | } |
8edf1c75 RD |
21720 | if (obj3) { |
21721 | { | |
21722 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21723 | if (PyErr_Occurred()) SWIG_fail; | |
21724 | } | |
21725 | } | |
21726 | if (obj4) { | |
21727 | { | |
21728 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
21729 | if (PyErr_Occurred()) SWIG_fail; | |
21730 | } | |
21731 | } | |
d14a1e28 RD |
21732 | { |
21733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21734 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
21735 | ||
21736 | wxPyEndAllowThreads(__tstate); | |
21737 | if (PyErr_Occurred()) SWIG_fail; | |
21738 | } | |
8edf1c75 | 21739 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21740 | { |
21741 | if (temp3) | |
21742 | delete arg3; | |
21743 | } | |
21744 | return resultobj; | |
21745 | fail: | |
21746 | { | |
21747 | if (temp3) | |
21748 | delete arg3; | |
21749 | } | |
21750 | return NULL; | |
21751 | } | |
21752 | ||
21753 | ||
21754 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21755 | PyObject *resultobj; | |
21756 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21757 | long arg2 ; | |
21758 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21759 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21760 | char *kwnames[] = { |
21761 | (char *) "self",(char *) "count", NULL | |
21762 | }; | |
21763 | ||
8edf1c75 | 21764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21766 | { |
21767 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21768 | if (PyErr_Occurred()) SWIG_fail; | |
21769 | } | |
d14a1e28 RD |
21770 | { |
21771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21772 | (arg1)->SetItemCount(arg2); | |
21773 | ||
21774 | wxPyEndAllowThreads(__tstate); | |
21775 | if (PyErr_Occurred()) SWIG_fail; | |
21776 | } | |
21777 | Py_INCREF(Py_None); resultobj = Py_None; | |
21778 | return resultobj; | |
21779 | fail: | |
21780 | return NULL; | |
21781 | } | |
21782 | ||
21783 | ||
21784 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21785 | PyObject *resultobj; | |
21786 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21787 | int arg2 ; | |
21788 | int arg3 ; | |
21789 | bool result; | |
21790 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21791 | PyObject * obj1 = 0 ; |
21792 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21793 | char *kwnames[] = { |
21794 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
21795 | }; | |
21796 | ||
8edf1c75 | 21797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21799 | { |
21800 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21801 | if (PyErr_Occurred()) SWIG_fail; | |
21802 | } | |
21803 | { | |
21804 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21805 | if (PyErr_Occurred()) SWIG_fail; | |
21806 | } | |
d14a1e28 RD |
21807 | { |
21808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21809 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
21810 | ||
21811 | wxPyEndAllowThreads(__tstate); | |
21812 | if (PyErr_Occurred()) SWIG_fail; | |
21813 | } | |
02a34c4c | 21814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21815 | return resultobj; |
21816 | fail: | |
21817 | return NULL; | |
21818 | } | |
21819 | ||
21820 | ||
21821 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21822 | PyObject *resultobj; | |
21823 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21824 | long arg2 ; | |
21825 | wxColour *arg3 = 0 ; | |
21826 | wxColour temp3 ; | |
21827 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21828 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21829 | PyObject * obj2 = 0 ; |
21830 | char *kwnames[] = { | |
21831 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21832 | }; | |
21833 | ||
8edf1c75 | 21834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21836 | { |
21837 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21838 | if (PyErr_Occurred()) SWIG_fail; | |
21839 | } | |
d14a1e28 RD |
21840 | { |
21841 | arg3 = &temp3; | |
21842 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21843 | } | |
21844 | { | |
21845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21846 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
21847 | ||
21848 | wxPyEndAllowThreads(__tstate); | |
21849 | if (PyErr_Occurred()) SWIG_fail; | |
21850 | } | |
21851 | Py_INCREF(Py_None); resultobj = Py_None; | |
21852 | return resultobj; | |
21853 | fail: | |
21854 | return NULL; | |
21855 | } | |
21856 | ||
21857 | ||
21858 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21859 | PyObject *resultobj; | |
21860 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21861 | long arg2 ; | |
21862 | wxColour result; | |
21863 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21864 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21865 | char *kwnames[] = { |
21866 | (char *) "self",(char *) "item", NULL | |
21867 | }; | |
21868 | ||
8edf1c75 | 21869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21871 | { |
21872 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21873 | if (PyErr_Occurred()) SWIG_fail; | |
21874 | } | |
d14a1e28 RD |
21875 | { |
21876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21877 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
21878 | ||
21879 | wxPyEndAllowThreads(__tstate); | |
21880 | if (PyErr_Occurred()) SWIG_fail; | |
21881 | } | |
21882 | { | |
21883 | wxColour * resultptr; | |
21884 | resultptr = new wxColour((wxColour &) result); | |
21885 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21886 | } | |
21887 | return resultobj; | |
21888 | fail: | |
21889 | return NULL; | |
21890 | } | |
21891 | ||
21892 | ||
21893 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21894 | PyObject *resultobj; | |
21895 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21896 | long arg2 ; | |
21897 | wxColour *arg3 = 0 ; | |
21898 | wxColour temp3 ; | |
21899 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21900 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21901 | PyObject * obj2 = 0 ; |
21902 | char *kwnames[] = { | |
21903 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21904 | }; | |
21905 | ||
8edf1c75 | 21906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21908 | { |
21909 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21910 | if (PyErr_Occurred()) SWIG_fail; | |
21911 | } | |
d14a1e28 RD |
21912 | { |
21913 | arg3 = &temp3; | |
21914 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21915 | } | |
21916 | { | |
21917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21918 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
21919 | ||
21920 | wxPyEndAllowThreads(__tstate); | |
21921 | if (PyErr_Occurred()) SWIG_fail; | |
21922 | } | |
21923 | Py_INCREF(Py_None); resultobj = Py_None; | |
21924 | return resultobj; | |
21925 | fail: | |
21926 | return NULL; | |
21927 | } | |
21928 | ||
21929 | ||
21930 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21931 | PyObject *resultobj; | |
21932 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21933 | long arg2 ; | |
21934 | wxColour result; | |
21935 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21936 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21937 | char *kwnames[] = { |
21938 | (char *) "self",(char *) "item", NULL | |
21939 | }; | |
21940 | ||
8edf1c75 | 21941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21943 | { |
21944 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21945 | if (PyErr_Occurred()) SWIG_fail; | |
21946 | } | |
d14a1e28 RD |
21947 | { |
21948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21949 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
21950 | ||
21951 | wxPyEndAllowThreads(__tstate); | |
21952 | if (PyErr_Occurred()) SWIG_fail; | |
21953 | } | |
21954 | { | |
21955 | wxColour * resultptr; | |
21956 | resultptr = new wxColour((wxColour &) result); | |
21957 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21958 | } | |
21959 | return resultobj; | |
21960 | fail: | |
21961 | return NULL; | |
21962 | } | |
21963 | ||
21964 | ||
21965 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21966 | PyObject *resultobj; | |
21967 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21968 | PyObject *arg2 = (PyObject *) 0 ; | |
21969 | bool result; | |
21970 | PyObject * obj0 = 0 ; | |
21971 | PyObject * obj1 = 0 ; | |
21972 | char *kwnames[] = { | |
21973 | (char *) "self",(char *) "func", NULL | |
21974 | }; | |
21975 | ||
21976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
21977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21978 | arg2 = obj1; | |
21979 | { | |
21980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21981 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
21982 | ||
21983 | wxPyEndAllowThreads(__tstate); | |
21984 | if (PyErr_Occurred()) SWIG_fail; | |
21985 | } | |
02a34c4c | 21986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21987 | return resultobj; |
21988 | fail: | |
21989 | return NULL; | |
21990 | } | |
21991 | ||
21992 | ||
21993 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21994 | PyObject *resultobj; | |
21995 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21996 | wxWindow *result; | |
21997 | PyObject * obj0 = 0 ; | |
21998 | char *kwnames[] = { | |
21999 | (char *) "self", NULL | |
22000 | }; | |
22001 | ||
22002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
22003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22004 | { | |
22005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22006 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
22007 | ||
22008 | wxPyEndAllowThreads(__tstate); | |
22009 | if (PyErr_Occurred()) SWIG_fail; | |
22010 | } | |
22011 | { | |
22012 | resultobj = wxPyMake_wxObject(result); | |
22013 | } | |
22014 | return resultobj; | |
22015 | fail: | |
22016 | return NULL; | |
22017 | } | |
22018 | ||
22019 | ||
22020 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
22021 | PyObject *obj; | |
22022 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22023 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
22024 | Py_INCREF(obj); | |
22025 | return Py_BuildValue((char *)""); | |
22026 | } | |
22027 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22028 | PyObject *resultobj; | |
22029 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22030 | int arg2 = (int) -1 ; |
d14a1e28 RD |
22031 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
22032 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22033 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22034 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22035 | long arg5 = (long) wxLC_REPORT ; | |
22036 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
22037 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
22038 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
22039 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22040 | wxListView *result; | |
22041 | wxPoint temp3 ; | |
22042 | wxSize temp4 ; | |
423f194a | 22043 | bool temp7 = False ; |
d14a1e28 | 22044 | PyObject * obj0 = 0 ; |
8edf1c75 | 22045 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22046 | PyObject * obj2 = 0 ; |
22047 | PyObject * obj3 = 0 ; | |
8edf1c75 | 22048 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
22049 | PyObject * obj5 = 0 ; |
22050 | PyObject * obj6 = 0 ; | |
22051 | char *kwnames[] = { | |
22052 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22053 | }; | |
22054 | ||
8edf1c75 | 22055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 22056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22057 | if (obj1) { |
22058 | { | |
22059 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22060 | if (PyErr_Occurred()) SWIG_fail; | |
22061 | } | |
22062 | } | |
d14a1e28 RD |
22063 | if (obj2) { |
22064 | { | |
22065 | arg3 = &temp3; | |
22066 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22067 | } | |
22068 | } | |
22069 | if (obj3) { | |
22070 | { | |
22071 | arg4 = &temp4; | |
22072 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22073 | } | |
22074 | } | |
8edf1c75 RD |
22075 | if (obj4) { |
22076 | { | |
22077 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
22078 | if (PyErr_Occurred()) SWIG_fail; | |
22079 | } | |
22080 | } | |
d14a1e28 RD |
22081 | if (obj5) { |
22082 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22083 | if (arg6 == NULL) { | |
22084 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22085 | } | |
22086 | } | |
22087 | if (obj6) { | |
22088 | { | |
22089 | arg7 = wxString_in_helper(obj6); | |
22090 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 22091 | temp7 = True; |
d14a1e28 RD |
22092 | } |
22093 | } | |
22094 | { | |
22095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22096 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
22097 | ||
22098 | wxPyEndAllowThreads(__tstate); | |
22099 | if (PyErr_Occurred()) SWIG_fail; | |
22100 | } | |
22101 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
22102 | { | |
22103 | if (temp7) | |
22104 | delete arg7; | |
22105 | } | |
22106 | return resultobj; | |
22107 | fail: | |
22108 | { | |
22109 | if (temp7) | |
22110 | delete arg7; | |
22111 | } | |
22112 | return NULL; | |
22113 | } | |
22114 | ||
22115 | ||
22116 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22117 | PyObject *resultobj; | |
22118 | wxListView *result; | |
22119 | char *kwnames[] = { | |
22120 | NULL | |
22121 | }; | |
22122 | ||
22123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
22124 | { | |
22125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22126 | result = (wxListView *)new wxListView(); | |
22127 | ||
22128 | wxPyEndAllowThreads(__tstate); | |
22129 | if (PyErr_Occurred()) SWIG_fail; | |
22130 | } | |
22131 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
22132 | return resultobj; | |
22133 | fail: | |
22134 | return NULL; | |
22135 | } | |
22136 | ||
22137 | ||
22138 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22139 | PyObject *resultobj; | |
22140 | wxListView *arg1 = (wxListView *) 0 ; | |
22141 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 22142 | int arg3 = (int) -1 ; |
d14a1e28 RD |
22143 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
22144 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22145 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22146 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22147 | long arg6 = (long) wxLC_REPORT ; | |
22148 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
22149 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
22150 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
22151 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
22152 | bool result; | |
22153 | wxPoint temp4 ; | |
22154 | wxSize temp5 ; | |
423f194a | 22155 | bool temp8 = False ; |
d14a1e28 RD |
22156 | PyObject * obj0 = 0 ; |
22157 | PyObject * obj1 = 0 ; | |
8edf1c75 | 22158 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22159 | PyObject * obj3 = 0 ; |
22160 | PyObject * obj4 = 0 ; | |
8edf1c75 | 22161 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22162 | PyObject * obj6 = 0 ; |
22163 | PyObject * obj7 = 0 ; | |
22164 | char *kwnames[] = { | |
22165 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22166 | }; | |
22167 | ||
8edf1c75 | 22168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
22169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
22170 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
22171 | if (obj2) { |
22172 | { | |
22173 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22174 | if (PyErr_Occurred()) SWIG_fail; | |
22175 | } | |
22176 | } | |
d14a1e28 RD |
22177 | if (obj3) { |
22178 | { | |
22179 | arg4 = &temp4; | |
22180 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22181 | } | |
22182 | } | |
22183 | if (obj4) { | |
22184 | { | |
22185 | arg5 = &temp5; | |
22186 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22187 | } | |
22188 | } | |
8edf1c75 RD |
22189 | if (obj5) { |
22190 | { | |
22191 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
22192 | if (PyErr_Occurred()) SWIG_fail; | |
22193 | } | |
22194 | } | |
d14a1e28 RD |
22195 | if (obj6) { |
22196 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22197 | if (arg7 == NULL) { | |
22198 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22199 | } | |
22200 | } | |
22201 | if (obj7) { | |
22202 | { | |
22203 | arg8 = wxString_in_helper(obj7); | |
22204 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 22205 | temp8 = True; |
d14a1e28 RD |
22206 | } |
22207 | } | |
22208 | { | |
22209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22210 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
22211 | ||
22212 | wxPyEndAllowThreads(__tstate); | |
22213 | if (PyErr_Occurred()) SWIG_fail; | |
22214 | } | |
02a34c4c | 22215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22216 | { |
22217 | if (temp8) | |
22218 | delete arg8; | |
22219 | } | |
22220 | return resultobj; | |
22221 | fail: | |
22222 | { | |
22223 | if (temp8) | |
22224 | delete arg8; | |
22225 | } | |
22226 | return NULL; | |
22227 | } | |
22228 | ||
22229 | ||
22230 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22231 | PyObject *resultobj; | |
22232 | wxListView *arg1 = (wxListView *) 0 ; | |
22233 | long arg2 ; | |
423f194a | 22234 | bool arg3 = (bool) True ; |
d14a1e28 | 22235 | PyObject * obj0 = 0 ; |
8edf1c75 | 22236 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22237 | PyObject * obj2 = 0 ; |
22238 | char *kwnames[] = { | |
22239 | (char *) "self",(char *) "n",(char *) "on", NULL | |
22240 | }; | |
22241 | ||
8edf1c75 | 22242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22244 | { |
22245 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22246 | if (PyErr_Occurred()) SWIG_fail; | |
22247 | } | |
d14a1e28 | 22248 | if (obj2) { |
2dbef272 | 22249 | { |
8edf1c75 | 22250 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
22251 | if (PyErr_Occurred()) SWIG_fail; |
22252 | } | |
d14a1e28 RD |
22253 | } |
22254 | { | |
22255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22256 | (arg1)->Select(arg2,arg3); | |
22257 | ||
22258 | wxPyEndAllowThreads(__tstate); | |
22259 | if (PyErr_Occurred()) SWIG_fail; | |
22260 | } | |
22261 | Py_INCREF(Py_None); resultobj = Py_None; | |
22262 | return resultobj; | |
22263 | fail: | |
22264 | return NULL; | |
22265 | } | |
22266 | ||
22267 | ||
22268 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22269 | PyObject *resultobj; | |
22270 | wxListView *arg1 = (wxListView *) 0 ; | |
22271 | long arg2 ; | |
22272 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22273 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22274 | char *kwnames[] = { |
22275 | (char *) "self",(char *) "index", NULL | |
22276 | }; | |
22277 | ||
8edf1c75 | 22278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22280 | { |
22281 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22282 | if (PyErr_Occurred()) SWIG_fail; | |
22283 | } | |
d14a1e28 RD |
22284 | { |
22285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22286 | (arg1)->Focus(arg2); | |
22287 | ||
22288 | wxPyEndAllowThreads(__tstate); | |
22289 | if (PyErr_Occurred()) SWIG_fail; | |
22290 | } | |
22291 | Py_INCREF(Py_None); resultobj = Py_None; | |
22292 | return resultobj; | |
22293 | fail: | |
22294 | return NULL; | |
22295 | } | |
22296 | ||
22297 | ||
22298 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22299 | PyObject *resultobj; | |
22300 | wxListView *arg1 = (wxListView *) 0 ; | |
22301 | long result; | |
22302 | PyObject * obj0 = 0 ; | |
22303 | char *kwnames[] = { | |
22304 | (char *) "self", NULL | |
22305 | }; | |
22306 | ||
22307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
22308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22309 | { | |
22310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22311 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
22312 | ||
22313 | wxPyEndAllowThreads(__tstate); | |
22314 | if (PyErr_Occurred()) SWIG_fail; | |
22315 | } | |
8edf1c75 | 22316 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22317 | return resultobj; |
22318 | fail: | |
22319 | return NULL; | |
22320 | } | |
22321 | ||
22322 | ||
22323 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22324 | PyObject *resultobj; | |
22325 | wxListView *arg1 = (wxListView *) 0 ; | |
22326 | long arg2 ; | |
22327 | long result; | |
22328 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22329 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22330 | char *kwnames[] = { |
22331 | (char *) "self",(char *) "item", NULL | |
22332 | }; | |
22333 | ||
8edf1c75 | 22334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22336 | { |
22337 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22338 | if (PyErr_Occurred()) SWIG_fail; | |
22339 | } | |
d14a1e28 RD |
22340 | { |
22341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22342 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
22343 | ||
22344 | wxPyEndAllowThreads(__tstate); | |
22345 | if (PyErr_Occurred()) SWIG_fail; | |
22346 | } | |
8edf1c75 | 22347 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22348 | return resultobj; |
22349 | fail: | |
22350 | return NULL; | |
22351 | } | |
22352 | ||
22353 | ||
22354 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22355 | PyObject *resultobj; | |
22356 | wxListView *arg1 = (wxListView *) 0 ; | |
22357 | long result; | |
22358 | PyObject * obj0 = 0 ; | |
22359 | char *kwnames[] = { | |
22360 | (char *) "self", NULL | |
22361 | }; | |
22362 | ||
22363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
22364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22365 | { | |
22366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22367 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
22368 | ||
22369 | wxPyEndAllowThreads(__tstate); | |
22370 | if (PyErr_Occurred()) SWIG_fail; | |
22371 | } | |
8edf1c75 | 22372 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22373 | return resultobj; |
22374 | fail: | |
22375 | return NULL; | |
22376 | } | |
22377 | ||
22378 | ||
22379 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22380 | PyObject *resultobj; | |
22381 | wxListView *arg1 = (wxListView *) 0 ; | |
22382 | long arg2 ; | |
22383 | bool result; | |
22384 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22385 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22386 | char *kwnames[] = { |
22387 | (char *) "self",(char *) "index", NULL | |
22388 | }; | |
22389 | ||
8edf1c75 | 22390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22392 | { |
22393 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22394 | if (PyErr_Occurred()) SWIG_fail; | |
22395 | } | |
d14a1e28 RD |
22396 | { |
22397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22398 | result = (bool)(arg1)->IsSelected(arg2); | |
22399 | ||
22400 | wxPyEndAllowThreads(__tstate); | |
22401 | if (PyErr_Occurred()) SWIG_fail; | |
22402 | } | |
02a34c4c | 22403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22404 | return resultobj; |
22405 | fail: | |
22406 | return NULL; | |
22407 | } | |
22408 | ||
22409 | ||
22410 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22411 | PyObject *resultobj; | |
22412 | wxListView *arg1 = (wxListView *) 0 ; | |
22413 | int arg2 ; | |
22414 | int arg3 ; | |
22415 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22416 | PyObject * obj1 = 0 ; |
22417 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22418 | char *kwnames[] = { |
22419 | (char *) "self",(char *) "col",(char *) "image", NULL | |
22420 | }; | |
22421 | ||
8edf1c75 | 22422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22424 | { |
22425 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22426 | if (PyErr_Occurred()) SWIG_fail; | |
22427 | } | |
22428 | { | |
22429 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22430 | if (PyErr_Occurred()) SWIG_fail; | |
22431 | } | |
d14a1e28 RD |
22432 | { |
22433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22434 | (arg1)->SetColumnImage(arg2,arg3); | |
22435 | ||
22436 | wxPyEndAllowThreads(__tstate); | |
22437 | if (PyErr_Occurred()) SWIG_fail; | |
22438 | } | |
22439 | Py_INCREF(Py_None); resultobj = Py_None; | |
22440 | return resultobj; | |
22441 | fail: | |
22442 | return NULL; | |
22443 | } | |
22444 | ||
22445 | ||
22446 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22447 | PyObject *resultobj; | |
22448 | wxListView *arg1 = (wxListView *) 0 ; | |
22449 | int arg2 ; | |
22450 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22451 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22452 | char *kwnames[] = { |
22453 | (char *) "self",(char *) "col", NULL | |
22454 | }; | |
22455 | ||
8edf1c75 | 22456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22458 | { |
22459 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22460 | if (PyErr_Occurred()) SWIG_fail; | |
22461 | } | |
d14a1e28 RD |
22462 | { |
22463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22464 | (arg1)->ClearColumnImage(arg2); | |
22465 | ||
22466 | wxPyEndAllowThreads(__tstate); | |
22467 | if (PyErr_Occurred()) SWIG_fail; | |
22468 | } | |
22469 | Py_INCREF(Py_None); resultobj = Py_None; | |
22470 | return resultobj; | |
22471 | fail: | |
22472 | return NULL; | |
22473 | } | |
22474 | ||
22475 | ||
22476 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
22477 | PyObject *obj; | |
22478 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22479 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
22480 | Py_INCREF(obj); | |
22481 | return Py_BuildValue((char *)""); | |
22482 | } | |
8edf1c75 | 22483 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
cbd72d4f RD |
22484 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
22485 | return 1; | |
22486 | } | |
22487 | ||
22488 | ||
22489 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
22490 | PyObject *pyobj; | |
22491 | ||
22492 | { | |
22493 | #if wxUSE_UNICODE | |
22494 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22495 | #else | |
22496 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22497 | #endif | |
22498 | } | |
22499 | return pyobj; | |
22500 | } | |
22501 | ||
22502 | ||
d14a1e28 RD |
22503 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
22504 | PyObject *resultobj; | |
22505 | wxTreeItemId *result; | |
22506 | char *kwnames[] = { | |
22507 | NULL | |
22508 | }; | |
22509 | ||
22510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
22511 | { | |
22512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22513 | result = (wxTreeItemId *)new wxTreeItemId(); | |
22514 | ||
22515 | wxPyEndAllowThreads(__tstate); | |
22516 | if (PyErr_Occurred()) SWIG_fail; | |
22517 | } | |
22518 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 1); | |
22519 | return resultobj; | |
22520 | fail: | |
22521 | return NULL; | |
22522 | } | |
22523 | ||
22524 | ||
22525 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22526 | PyObject *resultobj; | |
22527 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22528 | PyObject * obj0 = 0 ; | |
22529 | char *kwnames[] = { | |
22530 | (char *) "self", NULL | |
22531 | }; | |
22532 | ||
22533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
22534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22535 | { | |
22536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22537 | delete arg1; | |
22538 | ||
22539 | wxPyEndAllowThreads(__tstate); | |
22540 | if (PyErr_Occurred()) SWIG_fail; | |
22541 | } | |
22542 | Py_INCREF(Py_None); resultobj = Py_None; | |
22543 | return resultobj; | |
22544 | fail: | |
22545 | return NULL; | |
22546 | } | |
22547 | ||
22548 | ||
22549 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22550 | PyObject *resultobj; | |
22551 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22552 | bool result; | |
22553 | PyObject * obj0 = 0 ; | |
22554 | char *kwnames[] = { | |
22555 | (char *) "self", NULL | |
22556 | }; | |
22557 | ||
22558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
22559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22560 | { | |
22561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22562 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
22563 | ||
22564 | wxPyEndAllowThreads(__tstate); | |
22565 | if (PyErr_Occurred()) SWIG_fail; | |
22566 | } | |
02a34c4c | 22567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22568 | return resultobj; |
22569 | fail: | |
22570 | return NULL; | |
22571 | } | |
22572 | ||
22573 | ||
22574 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22575 | PyObject *resultobj; | |
22576 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22577 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
22578 | bool result; | |
22579 | PyObject * obj0 = 0 ; | |
22580 | PyObject * obj1 = 0 ; | |
22581 | char *kwnames[] = { | |
22582 | (char *) "self",(char *) "other", NULL | |
22583 | }; | |
22584 | ||
22585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22587 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22588 | { | |
22589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 22590 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
22591 | |
22592 | wxPyEndAllowThreads(__tstate); | |
22593 | if (PyErr_Occurred()) SWIG_fail; | |
22594 | } | |
02a34c4c | 22595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22596 | return resultobj; |
22597 | fail: | |
22598 | return NULL; | |
22599 | } | |
22600 | ||
22601 | ||
22602 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22603 | PyObject *resultobj; | |
22604 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22605 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
22606 | bool result; | |
22607 | PyObject * obj0 = 0 ; | |
22608 | PyObject * obj1 = 0 ; | |
22609 | char *kwnames[] = { | |
22610 | (char *) "self",(char *) "other", NULL | |
22611 | }; | |
22612 | ||
22613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22615 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22616 | { | |
22617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 22618 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
22619 | |
22620 | wxPyEndAllowThreads(__tstate); | |
22621 | if (PyErr_Occurred()) SWIG_fail; | |
22622 | } | |
02a34c4c | 22623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22624 | return resultobj; |
22625 | fail: | |
22626 | return NULL; | |
22627 | } | |
22628 | ||
22629 | ||
22630 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22631 | PyObject *resultobj; | |
22632 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 22633 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
22634 | PyObject * obj0 = 0 ; |
22635 | PyObject * obj1 = 0 ; | |
22636 | char *kwnames[] = { | |
22637 | (char *) "self",(char *) "m_pItem", NULL | |
22638 | }; | |
22639 | ||
22640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
22641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22642 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
22643 | if (arg1) (arg1)->m_pItem = arg2; | |
22644 | ||
22645 | Py_INCREF(Py_None); resultobj = Py_None; | |
22646 | return resultobj; | |
22647 | fail: | |
22648 | return NULL; | |
22649 | } | |
22650 | ||
22651 | ||
22652 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22653 | PyObject *resultobj; | |
22654 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 22655 | void *result; |
d14a1e28 RD |
22656 | PyObject * obj0 = 0 ; |
22657 | char *kwnames[] = { | |
22658 | (char *) "self", NULL | |
22659 | }; | |
22660 | ||
22661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
22662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 22663 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 22664 | |
58203fa6 | 22665 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_void, 0); |
d14a1e28 RD |
22666 | return resultobj; |
22667 | fail: | |
22668 | return NULL; | |
22669 | } | |
22670 | ||
22671 | ||
22672 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
22673 | PyObject *obj; | |
22674 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22675 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
22676 | Py_INCREF(obj); | |
22677 | return Py_BuildValue((char *)""); | |
22678 | } | |
22679 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22680 | PyObject *resultobj; | |
22681 | PyObject *arg1 = (PyObject *) NULL ; | |
22682 | wxPyTreeItemData *result; | |
22683 | PyObject * obj0 = 0 ; | |
22684 | char *kwnames[] = { | |
22685 | (char *) "obj", NULL | |
22686 | }; | |
22687 | ||
22688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
22689 | if (obj0) { | |
22690 | arg1 = obj0; | |
22691 | } | |
22692 | { | |
22693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22694 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
22695 | ||
22696 | wxPyEndAllowThreads(__tstate); | |
22697 | if (PyErr_Occurred()) SWIG_fail; | |
22698 | } | |
22699 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 1); | |
22700 | return resultobj; | |
22701 | fail: | |
22702 | return NULL; | |
22703 | } | |
22704 | ||
22705 | ||
22706 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22707 | PyObject *resultobj; | |
22708 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22709 | PyObject *result; | |
22710 | PyObject * obj0 = 0 ; | |
22711 | char *kwnames[] = { | |
22712 | (char *) "self", NULL | |
22713 | }; | |
22714 | ||
22715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
22716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22717 | { | |
22718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22719 | result = (PyObject *)(arg1)->GetData(); | |
22720 | ||
22721 | wxPyEndAllowThreads(__tstate); | |
22722 | if (PyErr_Occurred()) SWIG_fail; | |
22723 | } | |
22724 | resultobj = result; | |
22725 | return resultobj; | |
22726 | fail: | |
22727 | return NULL; | |
22728 | } | |
22729 | ||
22730 | ||
22731 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22732 | PyObject *resultobj; | |
22733 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22734 | PyObject *arg2 = (PyObject *) 0 ; | |
22735 | PyObject * obj0 = 0 ; | |
22736 | PyObject * obj1 = 0 ; | |
22737 | char *kwnames[] = { | |
22738 | (char *) "self",(char *) "obj", NULL | |
22739 | }; | |
22740 | ||
22741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
22742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22743 | arg2 = obj1; | |
22744 | { | |
22745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22746 | (arg1)->SetData(arg2); | |
22747 | ||
22748 | wxPyEndAllowThreads(__tstate); | |
22749 | if (PyErr_Occurred()) SWIG_fail; | |
22750 | } | |
22751 | Py_INCREF(Py_None); resultobj = Py_None; | |
22752 | return resultobj; | |
22753 | fail: | |
22754 | return NULL; | |
22755 | } | |
22756 | ||
22757 | ||
22758 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22759 | PyObject *resultobj; | |
22760 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22761 | wxTreeItemId *result; | |
22762 | PyObject * obj0 = 0 ; | |
22763 | char *kwnames[] = { | |
22764 | (char *) "self", NULL | |
22765 | }; | |
22766 | ||
22767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
22768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22769 | { | |
22770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22771 | { | |
22772 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
22773 | result = (wxTreeItemId *) &_result_ref; | |
22774 | } | |
22775 | ||
22776 | wxPyEndAllowThreads(__tstate); | |
22777 | if (PyErr_Occurred()) SWIG_fail; | |
22778 | } | |
22779 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 0); | |
22780 | return resultobj; | |
22781 | fail: | |
22782 | return NULL; | |
22783 | } | |
22784 | ||
22785 | ||
22786 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22787 | PyObject *resultobj; | |
22788 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22789 | wxTreeItemId *arg2 = 0 ; | |
22790 | PyObject * obj0 = 0 ; | |
22791 | PyObject * obj1 = 0 ; | |
22792 | char *kwnames[] = { | |
22793 | (char *) "self",(char *) "id", NULL | |
22794 | }; | |
22795 | ||
22796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
22797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22798 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22799 | if (arg2 == NULL) { | |
22800 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22801 | } | |
22802 | { | |
22803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22804 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
22805 | ||
22806 | wxPyEndAllowThreads(__tstate); | |
22807 | if (PyErr_Occurred()) SWIG_fail; | |
22808 | } | |
22809 | Py_INCREF(Py_None); resultobj = Py_None; | |
22810 | return resultobj; | |
22811 | fail: | |
22812 | return NULL; | |
22813 | } | |
22814 | ||
22815 | ||
22816 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22817 | PyObject *resultobj; | |
22818 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22819 | PyObject * obj0 = 0 ; | |
22820 | char *kwnames[] = { | |
22821 | (char *) "self", NULL | |
22822 | }; | |
22823 | ||
22824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
22825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22826 | { | |
22827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22828 | wxPyTreeItemData_Destroy(arg1); | |
22829 | ||
22830 | wxPyEndAllowThreads(__tstate); | |
22831 | if (PyErr_Occurred()) SWIG_fail; | |
22832 | } | |
22833 | Py_INCREF(Py_None); resultobj = Py_None; | |
22834 | return resultobj; | |
22835 | fail: | |
22836 | return NULL; | |
22837 | } | |
22838 | ||
22839 | ||
22840 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
22841 | PyObject *obj; | |
22842 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22843 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
22844 | Py_INCREF(obj); | |
22845 | return Py_BuildValue((char *)""); | |
22846 | } | |
22847 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22848 | PyObject *resultobj; | |
22849 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22850 | int arg2 = (int) 0 ; | |
22851 | wxTreeEvent *result; | |
8edf1c75 RD |
22852 | PyObject * obj0 = 0 ; |
22853 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
22854 | char *kwnames[] = { |
22855 | (char *) "commandType",(char *) "id", NULL | |
22856 | }; | |
22857 | ||
8edf1c75 RD |
22858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
22859 | if (obj0) { | |
22860 | { | |
22861 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
22862 | if (PyErr_Occurred()) SWIG_fail; | |
22863 | } | |
22864 | } | |
22865 | if (obj1) { | |
22866 | { | |
22867 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22868 | if (PyErr_Occurred()) SWIG_fail; | |
22869 | } | |
22870 | } | |
d14a1e28 RD |
22871 | { |
22872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22873 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
22874 | ||
22875 | wxPyEndAllowThreads(__tstate); | |
22876 | if (PyErr_Occurred()) SWIG_fail; | |
22877 | } | |
22878 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeEvent, 1); | |
22879 | return resultobj; | |
22880 | fail: | |
22881 | return NULL; | |
22882 | } | |
22883 | ||
22884 | ||
22885 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22886 | PyObject *resultobj; | |
22887 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22888 | wxTreeItemId result; | |
22889 | PyObject * obj0 = 0 ; | |
22890 | char *kwnames[] = { | |
22891 | (char *) "self", NULL | |
22892 | }; | |
22893 | ||
22894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
22895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22896 | { | |
22897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22898 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
22899 | ||
22900 | wxPyEndAllowThreads(__tstate); | |
22901 | if (PyErr_Occurred()) SWIG_fail; | |
22902 | } | |
22903 | { | |
22904 | wxTreeItemId * resultptr; | |
22905 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22906 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22907 | } | |
22908 | return resultobj; | |
22909 | fail: | |
22910 | return NULL; | |
22911 | } | |
22912 | ||
22913 | ||
22914 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22915 | PyObject *resultobj; | |
22916 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22917 | wxTreeItemId *arg2 = 0 ; | |
22918 | PyObject * obj0 = 0 ; | |
22919 | PyObject * obj1 = 0 ; | |
22920 | char *kwnames[] = { | |
22921 | (char *) "self",(char *) "item", NULL | |
22922 | }; | |
22923 | ||
22924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
22925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22926 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22927 | if (arg2 == NULL) { | |
22928 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22929 | } | |
22930 | { | |
22931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22932 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
22933 | ||
22934 | wxPyEndAllowThreads(__tstate); | |
22935 | if (PyErr_Occurred()) SWIG_fail; | |
22936 | } | |
22937 | Py_INCREF(Py_None); resultobj = Py_None; | |
22938 | return resultobj; | |
22939 | fail: | |
22940 | return NULL; | |
22941 | } | |
22942 | ||
22943 | ||
22944 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22945 | PyObject *resultobj; | |
22946 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22947 | wxTreeItemId result; | |
22948 | PyObject * obj0 = 0 ; | |
22949 | char *kwnames[] = { | |
22950 | (char *) "self", NULL | |
22951 | }; | |
22952 | ||
22953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
22954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22955 | { | |
22956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22957 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
22958 | ||
22959 | wxPyEndAllowThreads(__tstate); | |
22960 | if (PyErr_Occurred()) SWIG_fail; | |
22961 | } | |
22962 | { | |
22963 | wxTreeItemId * resultptr; | |
22964 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22965 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22966 | } | |
22967 | return resultobj; | |
22968 | fail: | |
22969 | return NULL; | |
22970 | } | |
22971 | ||
22972 | ||
22973 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22974 | PyObject *resultobj; | |
22975 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22976 | wxTreeItemId *arg2 = 0 ; | |
22977 | PyObject * obj0 = 0 ; | |
22978 | PyObject * obj1 = 0 ; | |
22979 | char *kwnames[] = { | |
22980 | (char *) "self",(char *) "item", NULL | |
22981 | }; | |
22982 | ||
22983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
22984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22985 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22986 | if (arg2 == NULL) { | |
22987 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22988 | } | |
22989 | { | |
22990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22991 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
22992 | ||
22993 | wxPyEndAllowThreads(__tstate); | |
22994 | if (PyErr_Occurred()) SWIG_fail; | |
22995 | } | |
22996 | Py_INCREF(Py_None); resultobj = Py_None; | |
22997 | return resultobj; | |
22998 | fail: | |
22999 | return NULL; | |
23000 | } | |
23001 | ||
23002 | ||
23003 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23004 | PyObject *resultobj; | |
23005 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23006 | wxPoint result; | |
23007 | PyObject * obj0 = 0 ; | |
23008 | char *kwnames[] = { | |
23009 | (char *) "self", NULL | |
23010 | }; | |
23011 | ||
23012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
23013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23014 | { | |
23015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23016 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
23017 | ||
23018 | wxPyEndAllowThreads(__tstate); | |
23019 | if (PyErr_Occurred()) SWIG_fail; | |
23020 | } | |
23021 | { | |
23022 | wxPoint * resultptr; | |
23023 | resultptr = new wxPoint((wxPoint &) result); | |
23024 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23025 | } | |
23026 | return resultobj; | |
23027 | fail: | |
23028 | return NULL; | |
23029 | } | |
23030 | ||
23031 | ||
23032 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23033 | PyObject *resultobj; | |
23034 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23035 | wxPoint *arg2 = 0 ; | |
23036 | wxPoint temp2 ; | |
23037 | PyObject * obj0 = 0 ; | |
23038 | PyObject * obj1 = 0 ; | |
23039 | char *kwnames[] = { | |
23040 | (char *) "self",(char *) "pt", NULL | |
23041 | }; | |
23042 | ||
23043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
23044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23045 | { | |
23046 | arg2 = &temp2; | |
23047 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23048 | } | |
23049 | { | |
23050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23051 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
23052 | ||
23053 | wxPyEndAllowThreads(__tstate); | |
23054 | if (PyErr_Occurred()) SWIG_fail; | |
23055 | } | |
23056 | Py_INCREF(Py_None); resultobj = Py_None; | |
23057 | return resultobj; | |
23058 | fail: | |
23059 | return NULL; | |
23060 | } | |
23061 | ||
23062 | ||
23063 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23064 | PyObject *resultobj; | |
23065 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23066 | wxKeyEvent *result; | |
23067 | PyObject * obj0 = 0 ; | |
23068 | char *kwnames[] = { | |
23069 | (char *) "self", NULL | |
23070 | }; | |
23071 | ||
23072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
23073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23074 | { | |
23075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23076 | { | |
23077 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
23078 | result = (wxKeyEvent *) &_result_ref; | |
23079 | } | |
23080 | ||
23081 | wxPyEndAllowThreads(__tstate); | |
23082 | if (PyErr_Occurred()) SWIG_fail; | |
23083 | } | |
23084 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 0); | |
23085 | return resultobj; | |
23086 | fail: | |
23087 | return NULL; | |
23088 | } | |
23089 | ||
23090 | ||
23091 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23092 | PyObject *resultobj; | |
23093 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23094 | int result; | |
23095 | PyObject * obj0 = 0 ; | |
23096 | char *kwnames[] = { | |
23097 | (char *) "self", NULL | |
23098 | }; | |
23099 | ||
23100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
23101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23102 | { | |
23103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23104 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
23105 | ||
23106 | wxPyEndAllowThreads(__tstate); | |
23107 | if (PyErr_Occurred()) SWIG_fail; | |
23108 | } | |
8edf1c75 | 23109 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
23110 | return resultobj; |
23111 | fail: | |
23112 | return NULL; | |
23113 | } | |
23114 | ||
23115 | ||
23116 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23117 | PyObject *resultobj; | |
23118 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23119 | wxKeyEvent *arg2 = 0 ; | |
23120 | PyObject * obj0 = 0 ; | |
23121 | PyObject * obj1 = 0 ; | |
23122 | char *kwnames[] = { | |
23123 | (char *) "self",(char *) "evt", NULL | |
23124 | }; | |
23125 | ||
23126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
23127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23128 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23129 | if (arg2 == NULL) { | |
23130 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23131 | } | |
23132 | { | |
23133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23134 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
23135 | ||
23136 | wxPyEndAllowThreads(__tstate); | |
23137 | if (PyErr_Occurred()) SWIG_fail; | |
23138 | } | |
23139 | Py_INCREF(Py_None); resultobj = Py_None; | |
23140 | return resultobj; | |
23141 | fail: | |
23142 | return NULL; | |
23143 | } | |
23144 | ||
23145 | ||
23146 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23147 | PyObject *resultobj; | |
23148 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23149 | wxString *result; | |
23150 | PyObject * obj0 = 0 ; | |
23151 | char *kwnames[] = { | |
23152 | (char *) "self", NULL | |
23153 | }; | |
23154 | ||
23155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
23156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23157 | { | |
23158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23159 | { | |
23160 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
23161 | result = (wxString *) &_result_ref; | |
23162 | } | |
23163 | ||
23164 | wxPyEndAllowThreads(__tstate); | |
23165 | if (PyErr_Occurred()) SWIG_fail; | |
23166 | } | |
0f774bef RD |
23167 | { |
23168 | #if wxUSE_UNICODE | |
23169 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23170 | #else | |
23171 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23172 | #endif | |
23173 | } | |
d14a1e28 RD |
23174 | return resultobj; |
23175 | fail: | |
23176 | return NULL; | |
23177 | } | |
23178 | ||
23179 | ||
23180 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23181 | PyObject *resultobj; | |
23182 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23183 | wxString *arg2 = 0 ; | |
423f194a | 23184 | bool temp2 = False ; |
d14a1e28 RD |
23185 | PyObject * obj0 = 0 ; |
23186 | PyObject * obj1 = 0 ; | |
23187 | char *kwnames[] = { | |
23188 | (char *) "self",(char *) "label", NULL | |
23189 | }; | |
23190 | ||
23191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
23192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23193 | { | |
23194 | arg2 = wxString_in_helper(obj1); | |
23195 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23196 | temp2 = True; |
d14a1e28 RD |
23197 | } |
23198 | { | |
23199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23200 | (arg1)->SetLabel((wxString const &)*arg2); | |
23201 | ||
23202 | wxPyEndAllowThreads(__tstate); | |
23203 | if (PyErr_Occurred()) SWIG_fail; | |
23204 | } | |
23205 | Py_INCREF(Py_None); resultobj = Py_None; | |
23206 | { | |
23207 | if (temp2) | |
23208 | delete arg2; | |
23209 | } | |
23210 | return resultobj; | |
23211 | fail: | |
23212 | { | |
23213 | if (temp2) | |
23214 | delete arg2; | |
23215 | } | |
23216 | return NULL; | |
23217 | } | |
23218 | ||
23219 | ||
23220 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23221 | PyObject *resultobj; | |
23222 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23223 | bool result; | |
23224 | PyObject * obj0 = 0 ; | |
23225 | char *kwnames[] = { | |
23226 | (char *) "self", NULL | |
23227 | }; | |
23228 | ||
23229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
23230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23231 | { | |
23232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23233 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
23234 | ||
23235 | wxPyEndAllowThreads(__tstate); | |
23236 | if (PyErr_Occurred()) SWIG_fail; | |
23237 | } | |
02a34c4c | 23238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23239 | return resultobj; |
23240 | fail: | |
23241 | return NULL; | |
23242 | } | |
23243 | ||
23244 | ||
23245 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23246 | PyObject *resultobj; | |
23247 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23248 | bool arg2 ; | |
23249 | PyObject * obj0 = 0 ; | |
23250 | PyObject * obj1 = 0 ; | |
23251 | char *kwnames[] = { | |
23252 | (char *) "self",(char *) "editCancelled", NULL | |
23253 | }; | |
23254 | ||
23255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
23256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 23257 | { |
8edf1c75 | 23258 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
23259 | if (PyErr_Occurred()) SWIG_fail; |
23260 | } | |
d14a1e28 RD |
23261 | { |
23262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23263 | (arg1)->SetEditCanceled(arg2); | |
23264 | ||
23265 | wxPyEndAllowThreads(__tstate); | |
23266 | if (PyErr_Occurred()) SWIG_fail; | |
23267 | } | |
23268 | Py_INCREF(Py_None); resultobj = Py_None; | |
23269 | return resultobj; | |
23270 | fail: | |
23271 | return NULL; | |
23272 | } | |
23273 | ||
23274 | ||
9fd4be55 RD |
23275 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
23276 | PyObject *resultobj; | |
23277 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23278 | wxString *arg2 = 0 ; | |
23279 | bool temp2 = False ; | |
23280 | PyObject * obj0 = 0 ; | |
23281 | PyObject * obj1 = 0 ; | |
23282 | char *kwnames[] = { | |
23283 | (char *) "self",(char *) "toolTip", NULL | |
23284 | }; | |
23285 | ||
23286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
23287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23288 | { | |
23289 | arg2 = wxString_in_helper(obj1); | |
23290 | if (arg2 == NULL) SWIG_fail; | |
23291 | temp2 = True; | |
23292 | } | |
23293 | { | |
23294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23295 | (arg1)->SetToolTip((wxString const &)*arg2); | |
23296 | ||
23297 | wxPyEndAllowThreads(__tstate); | |
23298 | if (PyErr_Occurred()) SWIG_fail; | |
23299 | } | |
23300 | Py_INCREF(Py_None); resultobj = Py_None; | |
23301 | { | |
23302 | if (temp2) | |
23303 | delete arg2; | |
23304 | } | |
23305 | return resultobj; | |
23306 | fail: | |
23307 | { | |
23308 | if (temp2) | |
23309 | delete arg2; | |
23310 | } | |
23311 | return NULL; | |
23312 | } | |
23313 | ||
23314 | ||
d14a1e28 RD |
23315 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
23316 | PyObject *obj; | |
23317 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23318 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
23319 | Py_INCREF(obj); | |
23320 | return Py_BuildValue((char *)""); | |
23321 | } | |
23322 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23323 | PyObject *resultobj; | |
23324 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23325 | int arg2 = (int) -1 ; |
d14a1e28 RD |
23326 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23327 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23328 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23329 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23330 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
23331 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23332 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
cbd72d4f | 23333 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23334 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
23335 | wxPyTreeCtrl *result; | |
23336 | wxPoint temp3 ; | |
23337 | wxSize temp4 ; | |
423f194a | 23338 | bool temp7 = False ; |
d14a1e28 | 23339 | PyObject * obj0 = 0 ; |
8edf1c75 | 23340 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23341 | PyObject * obj2 = 0 ; |
23342 | PyObject * obj3 = 0 ; | |
8edf1c75 | 23343 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
23344 | PyObject * obj5 = 0 ; |
23345 | PyObject * obj6 = 0 ; | |
23346 | char *kwnames[] = { | |
23347 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23348 | }; | |
23349 | ||
8edf1c75 | 23350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 23351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23352 | if (obj1) { |
23353 | { | |
23354 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23355 | if (PyErr_Occurred()) SWIG_fail; | |
23356 | } | |
23357 | } | |
d14a1e28 RD |
23358 | if (obj2) { |
23359 | { | |
23360 | arg3 = &temp3; | |
23361 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23362 | } | |
23363 | } | |
23364 | if (obj3) { | |
23365 | { | |
8edf1c75 RD |
23366 | arg4 = &temp4; |
23367 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23368 | } | |
23369 | } | |
23370 | if (obj4) { | |
23371 | { | |
23372 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
23373 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23374 | } |
23375 | } | |
23376 | if (obj5) { | |
23377 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23378 | if (arg6 == NULL) { | |
23379 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23380 | } | |
23381 | } | |
23382 | if (obj6) { | |
23383 | { | |
23384 | arg7 = wxString_in_helper(obj6); | |
23385 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 23386 | temp7 = True; |
d14a1e28 RD |
23387 | } |
23388 | } | |
23389 | { | |
23390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23391 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23392 | ||
23393 | wxPyEndAllowThreads(__tstate); | |
23394 | if (PyErr_Occurred()) SWIG_fail; | |
23395 | } | |
cbd72d4f RD |
23396 | { |
23397 | resultobj = wxPyMake_wxObject(result); | |
23398 | } | |
d14a1e28 RD |
23399 | { |
23400 | if (temp7) | |
23401 | delete arg7; | |
23402 | } | |
23403 | return resultobj; | |
23404 | fail: | |
23405 | { | |
23406 | if (temp7) | |
23407 | delete arg7; | |
23408 | } | |
23409 | return NULL; | |
23410 | } | |
23411 | ||
23412 | ||
23413 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23414 | PyObject *resultobj; | |
23415 | wxPyTreeCtrl *result; | |
23416 | char *kwnames[] = { | |
23417 | NULL | |
23418 | }; | |
23419 | ||
23420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
23421 | { | |
23422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23423 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
23424 | ||
23425 | wxPyEndAllowThreads(__tstate); | |
23426 | if (PyErr_Occurred()) SWIG_fail; | |
23427 | } | |
cbd72d4f RD |
23428 | { |
23429 | resultobj = wxPyMake_wxObject(result); | |
23430 | } | |
d14a1e28 RD |
23431 | return resultobj; |
23432 | fail: | |
23433 | return NULL; | |
23434 | } | |
23435 | ||
23436 | ||
23437 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23438 | PyObject *resultobj; | |
23439 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23440 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 23441 | int arg3 = (int) -1 ; |
d14a1e28 RD |
23442 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23443 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23444 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23445 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23446 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
23447 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23448 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
cbd72d4f | 23449 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23450 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
23451 | bool result; | |
23452 | wxPoint temp4 ; | |
23453 | wxSize temp5 ; | |
423f194a | 23454 | bool temp8 = False ; |
d14a1e28 RD |
23455 | PyObject * obj0 = 0 ; |
23456 | PyObject * obj1 = 0 ; | |
8edf1c75 | 23457 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23458 | PyObject * obj3 = 0 ; |
23459 | PyObject * obj4 = 0 ; | |
8edf1c75 | 23460 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
23461 | PyObject * obj6 = 0 ; |
23462 | PyObject * obj7 = 0 ; | |
23463 | char *kwnames[] = { | |
23464 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23465 | }; | |
23466 | ||
8edf1c75 | 23467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
23468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
23469 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
23470 | if (obj2) { |
23471 | { | |
23472 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
23473 | if (PyErr_Occurred()) SWIG_fail; | |
23474 | } | |
23475 | } | |
d14a1e28 RD |
23476 | if (obj3) { |
23477 | { | |
23478 | arg4 = &temp4; | |
23479 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23480 | } | |
23481 | } | |
23482 | if (obj4) { | |
23483 | { | |
23484 | arg5 = &temp5; | |
23485 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23486 | } | |
23487 | } | |
8edf1c75 RD |
23488 | if (obj5) { |
23489 | { | |
23490 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
23491 | if (PyErr_Occurred()) SWIG_fail; | |
23492 | } | |
23493 | } | |
d14a1e28 RD |
23494 | if (obj6) { |
23495 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23496 | if (arg7 == NULL) { | |
23497 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23498 | } | |
23499 | } | |
23500 | if (obj7) { | |
23501 | { | |
23502 | arg8 = wxString_in_helper(obj7); | |
23503 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 23504 | temp8 = True; |
d14a1e28 RD |
23505 | } |
23506 | } | |
23507 | { | |
23508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23509 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23510 | ||
23511 | wxPyEndAllowThreads(__tstate); | |
23512 | if (PyErr_Occurred()) SWIG_fail; | |
23513 | } | |
02a34c4c | 23514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23515 | { |
23516 | if (temp8) | |
23517 | delete arg8; | |
23518 | } | |
23519 | return resultobj; | |
23520 | fail: | |
23521 | { | |
23522 | if (temp8) | |
23523 | delete arg8; | |
23524 | } | |
23525 | return NULL; | |
23526 | } | |
23527 | ||
23528 | ||
23529 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23530 | PyObject *resultobj; | |
23531 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23532 | PyObject *arg2 = (PyObject *) 0 ; | |
23533 | PyObject *arg3 = (PyObject *) 0 ; | |
23534 | PyObject * obj0 = 0 ; | |
23535 | PyObject * obj1 = 0 ; | |
23536 | PyObject * obj2 = 0 ; | |
23537 | char *kwnames[] = { | |
23538 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23539 | }; | |
23540 | ||
23541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23543 | arg2 = obj1; | |
23544 | arg3 = obj2; | |
23545 | { | |
23546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23547 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23548 | ||
23549 | wxPyEndAllowThreads(__tstate); | |
23550 | if (PyErr_Occurred()) SWIG_fail; | |
23551 | } | |
23552 | Py_INCREF(Py_None); resultobj = Py_None; | |
23553 | return resultobj; | |
23554 | fail: | |
23555 | return NULL; | |
23556 | } | |
23557 | ||
23558 | ||
23559 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23560 | PyObject *resultobj; | |
23561 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23562 | size_t result; | |
23563 | PyObject * obj0 = 0 ; | |
23564 | char *kwnames[] = { | |
23565 | (char *) "self", NULL | |
23566 | }; | |
23567 | ||
23568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
23569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23570 | { | |
23571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23572 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
23573 | ||
23574 | wxPyEndAllowThreads(__tstate); | |
23575 | if (PyErr_Occurred()) SWIG_fail; | |
23576 | } | |
8edf1c75 | 23577 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
23578 | return resultobj; |
23579 | fail: | |
23580 | return NULL; | |
23581 | } | |
23582 | ||
23583 | ||
23584 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23585 | PyObject *resultobj; | |
23586 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23587 | unsigned int result; | |
23588 | PyObject * obj0 = 0 ; | |
23589 | char *kwnames[] = { | |
23590 | (char *) "self", NULL | |
23591 | }; | |
23592 | ||
23593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
23594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23595 | { | |
23596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23597 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
23598 | ||
23599 | wxPyEndAllowThreads(__tstate); | |
23600 | if (PyErr_Occurred()) SWIG_fail; | |
23601 | } | |
8edf1c75 | 23602 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
23603 | return resultobj; |
23604 | fail: | |
23605 | return NULL; | |
23606 | } | |
23607 | ||
23608 | ||
23609 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23610 | PyObject *resultobj; | |
23611 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23612 | unsigned int arg2 ; | |
23613 | PyObject * obj0 = 0 ; | |
23614 | PyObject * obj1 = 0 ; | |
23615 | char *kwnames[] = { | |
23616 | (char *) "self",(char *) "indent", NULL | |
23617 | }; | |
23618 | ||
23619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
23620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 23621 | { |
8edf1c75 | 23622 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
2dbef272 RD |
23623 | if (PyErr_Occurred()) SWIG_fail; |
23624 | } | |
d14a1e28 RD |
23625 | { |
23626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23627 | (arg1)->SetIndent(arg2); | |
23628 | ||
23629 | wxPyEndAllowThreads(__tstate); | |
23630 | if (PyErr_Occurred()) SWIG_fail; | |
23631 | } | |
23632 | Py_INCREF(Py_None); resultobj = Py_None; | |
23633 | return resultobj; | |
23634 | fail: | |
23635 | return NULL; | |
23636 | } | |
23637 | ||
23638 | ||
23639 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23640 | PyObject *resultobj; | |
23641 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23642 | unsigned int result; | |
23643 | PyObject * obj0 = 0 ; | |
23644 | char *kwnames[] = { | |
23645 | (char *) "self", NULL | |
23646 | }; | |
23647 | ||
23648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
23649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23650 | { | |
23651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23652 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
23653 | ||
23654 | wxPyEndAllowThreads(__tstate); | |
23655 | if (PyErr_Occurred()) SWIG_fail; | |
23656 | } | |
8edf1c75 | 23657 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
23658 | return resultobj; |
23659 | fail: | |
23660 | return NULL; | |
23661 | } | |
23662 | ||
23663 | ||
23664 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23665 | PyObject *resultobj; | |
23666 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23667 | unsigned int arg2 ; | |
23668 | PyObject * obj0 = 0 ; | |
23669 | PyObject * obj1 = 0 ; | |
23670 | char *kwnames[] = { | |
23671 | (char *) "self",(char *) "spacing", NULL | |
23672 | }; | |
23673 | ||
23674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
23675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 23676 | { |
8edf1c75 | 23677 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
2dbef272 RD |
23678 | if (PyErr_Occurred()) SWIG_fail; |
23679 | } | |
d14a1e28 RD |
23680 | { |
23681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23682 | (arg1)->SetSpacing(arg2); | |
23683 | ||
23684 | wxPyEndAllowThreads(__tstate); | |
23685 | if (PyErr_Occurred()) SWIG_fail; | |
23686 | } | |
23687 | Py_INCREF(Py_None); resultobj = Py_None; | |
23688 | return resultobj; | |
23689 | fail: | |
23690 | return NULL; | |
23691 | } | |
23692 | ||
23693 | ||
23694 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23695 | PyObject *resultobj; | |
23696 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23697 | wxImageList *result; | |
23698 | PyObject * obj0 = 0 ; | |
23699 | char *kwnames[] = { | |
23700 | (char *) "self", NULL | |
23701 | }; | |
23702 | ||
23703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
23704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23705 | { | |
23706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23707 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
23708 | ||
23709 | wxPyEndAllowThreads(__tstate); | |
23710 | if (PyErr_Occurred()) SWIG_fail; | |
23711 | } | |
23712 | { | |
23713 | resultobj = wxPyMake_wxObject(result); | |
23714 | } | |
23715 | return resultobj; | |
23716 | fail: | |
23717 | return NULL; | |
23718 | } | |
23719 | ||
23720 | ||
23721 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23722 | PyObject *resultobj; | |
23723 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23724 | wxImageList *result; | |
23725 | PyObject * obj0 = 0 ; | |
23726 | char *kwnames[] = { | |
23727 | (char *) "self", NULL | |
23728 | }; | |
23729 | ||
23730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
23731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23732 | { | |
23733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23734 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
23735 | ||
23736 | wxPyEndAllowThreads(__tstate); | |
23737 | if (PyErr_Occurred()) SWIG_fail; | |
23738 | } | |
23739 | { | |
23740 | resultobj = wxPyMake_wxObject(result); | |
23741 | } | |
23742 | return resultobj; | |
23743 | fail: | |
23744 | return NULL; | |
23745 | } | |
23746 | ||
23747 | ||
23748 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23749 | PyObject *resultobj; | |
23750 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23751 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23752 | PyObject * obj0 = 0 ; | |
23753 | PyObject * obj1 = 0 ; | |
23754 | char *kwnames[] = { | |
23755 | (char *) "self",(char *) "imageList", NULL | |
23756 | }; | |
23757 | ||
23758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
23759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23760 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23761 | { | |
23762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23763 | (arg1)->SetImageList(arg2); | |
23764 | ||
23765 | wxPyEndAllowThreads(__tstate); | |
23766 | if (PyErr_Occurred()) SWIG_fail; | |
23767 | } | |
23768 | Py_INCREF(Py_None); resultobj = Py_None; | |
23769 | return resultobj; | |
23770 | fail: | |
23771 | return NULL; | |
23772 | } | |
23773 | ||
23774 | ||
23775 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23776 | PyObject *resultobj; | |
23777 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23778 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23779 | PyObject * obj0 = 0 ; | |
23780 | PyObject * obj1 = 0 ; | |
23781 | char *kwnames[] = { | |
23782 | (char *) "self",(char *) "imageList", NULL | |
23783 | }; | |
23784 | ||
23785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
23786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23787 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23788 | { | |
23789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23790 | (arg1)->SetStateImageList(arg2); | |
23791 | ||
23792 | wxPyEndAllowThreads(__tstate); | |
23793 | if (PyErr_Occurred()) SWIG_fail; | |
23794 | } | |
23795 | Py_INCREF(Py_None); resultobj = Py_None; | |
23796 | return resultobj; | |
23797 | fail: | |
23798 | return NULL; | |
23799 | } | |
23800 | ||
23801 | ||
23802 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23803 | PyObject *resultobj; | |
23804 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23805 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23806 | PyObject * obj0 = 0 ; | |
23807 | PyObject * obj1 = 0 ; | |
23808 | char *kwnames[] = { | |
23809 | (char *) "self",(char *) "imageList", NULL | |
23810 | }; | |
23811 | ||
23812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
23813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 23814 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
23815 | { |
23816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23817 | (arg1)->AssignImageList(arg2); | |
23818 | ||
23819 | wxPyEndAllowThreads(__tstate); | |
23820 | if (PyErr_Occurred()) SWIG_fail; | |
23821 | } | |
23822 | Py_INCREF(Py_None); resultobj = Py_None; | |
23823 | return resultobj; | |
23824 | fail: | |
23825 | return NULL; | |
23826 | } | |
23827 | ||
23828 | ||
23829 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23830 | PyObject *resultobj; | |
23831 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23832 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23833 | PyObject * obj0 = 0 ; | |
23834 | PyObject * obj1 = 0 ; | |
23835 | char *kwnames[] = { | |
23836 | (char *) "self",(char *) "imageList", NULL | |
23837 | }; | |
23838 | ||
23839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
23840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 23841 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
23842 | { |
23843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23844 | (arg1)->AssignStateImageList(arg2); | |
23845 | ||
23846 | wxPyEndAllowThreads(__tstate); | |
23847 | if (PyErr_Occurred()) SWIG_fail; | |
23848 | } | |
23849 | Py_INCREF(Py_None); resultobj = Py_None; | |
23850 | return resultobj; | |
23851 | fail: | |
23852 | return NULL; | |
23853 | } | |
23854 | ||
23855 | ||
23856 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23857 | PyObject *resultobj; | |
23858 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23859 | wxTreeItemId *arg2 = 0 ; | |
23860 | wxString result; | |
23861 | PyObject * obj0 = 0 ; | |
23862 | PyObject * obj1 = 0 ; | |
23863 | char *kwnames[] = { | |
23864 | (char *) "self",(char *) "item", NULL | |
23865 | }; | |
23866 | ||
23867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
23868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23869 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23870 | if (arg2 == NULL) { | |
23871 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23872 | } | |
23873 | { | |
23874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23875 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
23876 | ||
23877 | wxPyEndAllowThreads(__tstate); | |
23878 | if (PyErr_Occurred()) SWIG_fail; | |
23879 | } | |
23880 | { | |
23881 | #if wxUSE_UNICODE | |
23882 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23883 | #else | |
23884 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23885 | #endif | |
23886 | } | |
23887 | return resultobj; | |
23888 | fail: | |
23889 | return NULL; | |
23890 | } | |
23891 | ||
23892 | ||
23893 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23894 | PyObject *resultobj; | |
23895 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23896 | wxTreeItemId *arg2 = 0 ; | |
23897 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
23898 | int result; | |
23899 | PyObject * obj0 = 0 ; | |
23900 | PyObject * obj1 = 0 ; | |
8edf1c75 | 23901 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23902 | char *kwnames[] = { |
23903 | (char *) "self",(char *) "item",(char *) "which", NULL | |
23904 | }; | |
23905 | ||
8edf1c75 | 23906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
23907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
23908 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23909 | if (arg2 == NULL) { | |
23910 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23911 | } | |
8edf1c75 RD |
23912 | if (obj2) { |
23913 | { | |
23914 | arg3 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj2); | |
23915 | if (PyErr_Occurred()) SWIG_fail; | |
23916 | } | |
23917 | } | |
d14a1e28 RD |
23918 | { |
23919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23920 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
23921 | ||
23922 | wxPyEndAllowThreads(__tstate); | |
23923 | if (PyErr_Occurred()) SWIG_fail; | |
23924 | } | |
8edf1c75 | 23925 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
23926 | return resultobj; |
23927 | fail: | |
23928 | return NULL; | |
23929 | } | |
23930 | ||
23931 | ||
23932 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23933 | PyObject *resultobj; | |
23934 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23935 | wxTreeItemId *arg2 = 0 ; | |
23936 | wxPyTreeItemData *result; | |
23937 | PyObject * obj0 = 0 ; | |
23938 | PyObject * obj1 = 0 ; | |
23939 | char *kwnames[] = { | |
23940 | (char *) "self",(char *) "item", NULL | |
23941 | }; | |
23942 | ||
23943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
23944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23945 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23946 | if (arg2 == NULL) { | |
23947 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23948 | } | |
23949 | { | |
23950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23951 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
23952 | ||
23953 | wxPyEndAllowThreads(__tstate); | |
23954 | if (PyErr_Occurred()) SWIG_fail; | |
23955 | } | |
23956 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 0); | |
23957 | return resultobj; | |
23958 | fail: | |
23959 | return NULL; | |
23960 | } | |
23961 | ||
23962 | ||
23963 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23964 | PyObject *resultobj; | |
23965 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23966 | wxTreeItemId *arg2 = 0 ; | |
23967 | PyObject *result; | |
23968 | PyObject * obj0 = 0 ; | |
23969 | PyObject * obj1 = 0 ; | |
23970 | char *kwnames[] = { | |
23971 | (char *) "self",(char *) "item", NULL | |
23972 | }; | |
23973 | ||
23974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
23975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23976 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23977 | if (arg2 == NULL) { | |
23978 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23979 | } | |
23980 | { | |
23981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23982 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
23983 | ||
23984 | wxPyEndAllowThreads(__tstate); | |
23985 | if (PyErr_Occurred()) SWIG_fail; | |
23986 | } | |
23987 | resultobj = result; | |
23988 | return resultobj; | |
23989 | fail: | |
23990 | return NULL; | |
23991 | } | |
23992 | ||
23993 | ||
23994 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23995 | PyObject *resultobj; | |
23996 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23997 | wxTreeItemId *arg2 = 0 ; | |
23998 | wxColour result; | |
23999 | PyObject * obj0 = 0 ; | |
24000 | PyObject * obj1 = 0 ; | |
24001 | char *kwnames[] = { | |
24002 | (char *) "self",(char *) "item", NULL | |
24003 | }; | |
24004 | ||
24005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
24006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24007 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24008 | if (arg2 == NULL) { | |
24009 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24010 | } | |
24011 | { | |
24012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24013 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
24014 | ||
24015 | wxPyEndAllowThreads(__tstate); | |
24016 | if (PyErr_Occurred()) SWIG_fail; | |
24017 | } | |
24018 | { | |
24019 | wxColour * resultptr; | |
24020 | resultptr = new wxColour((wxColour &) result); | |
24021 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24022 | } | |
24023 | return resultobj; | |
24024 | fail: | |
24025 | return NULL; | |
24026 | } | |
24027 | ||
24028 | ||
24029 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24030 | PyObject *resultobj; | |
24031 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24032 | wxTreeItemId *arg2 = 0 ; | |
24033 | wxColour result; | |
24034 | PyObject * obj0 = 0 ; | |
24035 | PyObject * obj1 = 0 ; | |
24036 | char *kwnames[] = { | |
24037 | (char *) "self",(char *) "item", NULL | |
24038 | }; | |
24039 | ||
24040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24042 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24043 | if (arg2 == NULL) { | |
24044 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24045 | } | |
24046 | { | |
24047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24048 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
24049 | ||
24050 | wxPyEndAllowThreads(__tstate); | |
24051 | if (PyErr_Occurred()) SWIG_fail; | |
24052 | } | |
24053 | { | |
24054 | wxColour * resultptr; | |
24055 | resultptr = new wxColour((wxColour &) result); | |
24056 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24057 | } | |
24058 | return resultobj; | |
24059 | fail: | |
24060 | return NULL; | |
24061 | } | |
24062 | ||
24063 | ||
24064 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24065 | PyObject *resultobj; | |
24066 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24067 | wxTreeItemId *arg2 = 0 ; | |
24068 | wxFont result; | |
24069 | PyObject * obj0 = 0 ; | |
24070 | PyObject * obj1 = 0 ; | |
24071 | char *kwnames[] = { | |
24072 | (char *) "self",(char *) "item", NULL | |
24073 | }; | |
24074 | ||
24075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
24076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24077 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24078 | if (arg2 == NULL) { | |
24079 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24080 | } | |
24081 | { | |
24082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24083 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
24084 | ||
24085 | wxPyEndAllowThreads(__tstate); | |
24086 | if (PyErr_Occurred()) SWIG_fail; | |
24087 | } | |
24088 | { | |
24089 | wxFont * resultptr; | |
24090 | resultptr = new wxFont((wxFont &) result); | |
24091 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
24092 | } | |
24093 | return resultobj; | |
24094 | fail: | |
24095 | return NULL; | |
24096 | } | |
24097 | ||
24098 | ||
24099 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24100 | PyObject *resultobj; | |
24101 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24102 | wxTreeItemId *arg2 = 0 ; | |
24103 | wxString *arg3 = 0 ; | |
423f194a | 24104 | bool temp3 = False ; |
d14a1e28 RD |
24105 | PyObject * obj0 = 0 ; |
24106 | PyObject * obj1 = 0 ; | |
24107 | PyObject * obj2 = 0 ; | |
24108 | char *kwnames[] = { | |
24109 | (char *) "self",(char *) "item",(char *) "text", NULL | |
24110 | }; | |
24111 | ||
24112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24114 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24115 | if (arg2 == NULL) { | |
24116 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24117 | } | |
24118 | { | |
24119 | arg3 = wxString_in_helper(obj2); | |
24120 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 24121 | temp3 = True; |
d14a1e28 RD |
24122 | } |
24123 | { | |
24124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24125 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
24126 | ||
24127 | wxPyEndAllowThreads(__tstate); | |
24128 | if (PyErr_Occurred()) SWIG_fail; | |
24129 | } | |
24130 | Py_INCREF(Py_None); resultobj = Py_None; | |
24131 | { | |
24132 | if (temp3) | |
24133 | delete arg3; | |
24134 | } | |
24135 | return resultobj; | |
24136 | fail: | |
24137 | { | |
24138 | if (temp3) | |
24139 | delete arg3; | |
24140 | } | |
24141 | return NULL; | |
24142 | } | |
24143 | ||
24144 | ||
24145 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24146 | PyObject *resultobj; | |
24147 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24148 | wxTreeItemId *arg2 = 0 ; | |
24149 | int arg3 ; | |
24150 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
24151 | PyObject * obj0 = 0 ; | |
24152 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24153 | PyObject * obj2 = 0 ; |
24154 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24155 | char *kwnames[] = { |
24156 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
24157 | }; | |
24158 | ||
8edf1c75 | 24159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
24160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24161 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24162 | if (arg2 == NULL) { | |
24163 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24164 | } | |
8edf1c75 RD |
24165 | { |
24166 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24167 | if (PyErr_Occurred()) SWIG_fail; | |
24168 | } | |
24169 | if (obj3) { | |
24170 | { | |
24171 | arg4 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj3); | |
24172 | if (PyErr_Occurred()) SWIG_fail; | |
24173 | } | |
24174 | } | |
d14a1e28 RD |
24175 | { |
24176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24177 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
24178 | ||
24179 | wxPyEndAllowThreads(__tstate); | |
24180 | if (PyErr_Occurred()) SWIG_fail; | |
24181 | } | |
24182 | Py_INCREF(Py_None); resultobj = Py_None; | |
24183 | return resultobj; | |
24184 | fail: | |
24185 | return NULL; | |
24186 | } | |
24187 | ||
24188 | ||
24189 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24190 | PyObject *resultobj; | |
24191 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24192 | wxTreeItemId *arg2 = 0 ; | |
24193 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
24194 | PyObject * obj0 = 0 ; | |
24195 | PyObject * obj1 = 0 ; | |
24196 | PyObject * obj2 = 0 ; | |
24197 | char *kwnames[] = { | |
24198 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24199 | }; | |
24200 | ||
24201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24203 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24204 | if (arg2 == NULL) { | |
24205 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24206 | } | |
24207 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24208 | { | |
24209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24210 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24211 | ||
24212 | wxPyEndAllowThreads(__tstate); | |
24213 | if (PyErr_Occurred()) SWIG_fail; | |
24214 | } | |
24215 | Py_INCREF(Py_None); resultobj = Py_None; | |
24216 | return resultobj; | |
24217 | fail: | |
24218 | return NULL; | |
24219 | } | |
24220 | ||
24221 | ||
24222 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24223 | PyObject *resultobj; | |
24224 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24225 | wxTreeItemId *arg2 = 0 ; | |
24226 | PyObject *arg3 = (PyObject *) 0 ; | |
24227 | PyObject * obj0 = 0 ; | |
24228 | PyObject * obj1 = 0 ; | |
24229 | PyObject * obj2 = 0 ; | |
24230 | char *kwnames[] = { | |
24231 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
24232 | }; | |
24233 | ||
24234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24236 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24237 | if (arg2 == NULL) { | |
24238 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24239 | } | |
24240 | arg3 = obj2; | |
24241 | { | |
24242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24243 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24244 | ||
24245 | wxPyEndAllowThreads(__tstate); | |
24246 | if (PyErr_Occurred()) SWIG_fail; | |
24247 | } | |
24248 | Py_INCREF(Py_None); resultobj = Py_None; | |
24249 | return resultobj; | |
24250 | fail: | |
24251 | return NULL; | |
24252 | } | |
24253 | ||
24254 | ||
24255 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24256 | PyObject *resultobj; | |
24257 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24258 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24259 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24260 | PyObject * obj0 = 0 ; |
24261 | PyObject * obj1 = 0 ; | |
24262 | PyObject * obj2 = 0 ; | |
24263 | char *kwnames[] = { | |
24264 | (char *) "self",(char *) "item",(char *) "has", NULL | |
24265 | }; | |
24266 | ||
24267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24269 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24270 | if (arg2 == NULL) { | |
24271 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24272 | } | |
24273 | if (obj2) { | |
2dbef272 | 24274 | { |
8edf1c75 | 24275 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
24276 | if (PyErr_Occurred()) SWIG_fail; |
24277 | } | |
d14a1e28 RD |
24278 | } |
24279 | { | |
24280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24281 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
24282 | ||
24283 | wxPyEndAllowThreads(__tstate); | |
24284 | if (PyErr_Occurred()) SWIG_fail; | |
24285 | } | |
24286 | Py_INCREF(Py_None); resultobj = Py_None; | |
24287 | return resultobj; | |
24288 | fail: | |
24289 | return NULL; | |
24290 | } | |
24291 | ||
24292 | ||
24293 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24294 | PyObject *resultobj; | |
24295 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24296 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24297 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24298 | PyObject * obj0 = 0 ; |
24299 | PyObject * obj1 = 0 ; | |
24300 | PyObject * obj2 = 0 ; | |
24301 | char *kwnames[] = { | |
24302 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
24303 | }; | |
24304 | ||
24305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24307 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24308 | if (arg2 == NULL) { | |
24309 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24310 | } | |
24311 | if (obj2) { | |
2dbef272 | 24312 | { |
8edf1c75 | 24313 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
24314 | if (PyErr_Occurred()) SWIG_fail; |
24315 | } | |
d14a1e28 RD |
24316 | } |
24317 | { | |
24318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24319 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
24320 | ||
24321 | wxPyEndAllowThreads(__tstate); | |
24322 | if (PyErr_Occurred()) SWIG_fail; | |
24323 | } | |
24324 | Py_INCREF(Py_None); resultobj = Py_None; | |
24325 | return resultobj; | |
24326 | fail: | |
24327 | return NULL; | |
24328 | } | |
24329 | ||
24330 | ||
24331 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24332 | PyObject *resultobj; | |
24333 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24334 | wxTreeItemId *arg2 = 0 ; | |
24335 | wxColour *arg3 = 0 ; | |
24336 | wxColour temp3 ; | |
24337 | PyObject * obj0 = 0 ; | |
24338 | PyObject * obj1 = 0 ; | |
24339 | PyObject * obj2 = 0 ; | |
24340 | char *kwnames[] = { | |
24341 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24342 | }; | |
24343 | ||
24344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24346 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24347 | if (arg2 == NULL) { | |
24348 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24349 | } | |
24350 | { | |
24351 | arg3 = &temp3; | |
24352 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24353 | } | |
24354 | { | |
24355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24356 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24357 | ||
24358 | wxPyEndAllowThreads(__tstate); | |
24359 | if (PyErr_Occurred()) SWIG_fail; | |
24360 | } | |
24361 | Py_INCREF(Py_None); resultobj = Py_None; | |
24362 | return resultobj; | |
24363 | fail: | |
24364 | return NULL; | |
24365 | } | |
24366 | ||
24367 | ||
24368 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24369 | PyObject *resultobj; | |
24370 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24371 | wxTreeItemId *arg2 = 0 ; | |
24372 | wxColour *arg3 = 0 ; | |
24373 | wxColour temp3 ; | |
24374 | PyObject * obj0 = 0 ; | |
24375 | PyObject * obj1 = 0 ; | |
24376 | PyObject * obj2 = 0 ; | |
24377 | char *kwnames[] = { | |
24378 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24379 | }; | |
24380 | ||
24381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24383 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24384 | if (arg2 == NULL) { | |
24385 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24386 | } | |
24387 | { | |
24388 | arg3 = &temp3; | |
24389 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24390 | } | |
24391 | { | |
24392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24393 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24394 | ||
24395 | wxPyEndAllowThreads(__tstate); | |
24396 | if (PyErr_Occurred()) SWIG_fail; | |
24397 | } | |
24398 | Py_INCREF(Py_None); resultobj = Py_None; | |
24399 | return resultobj; | |
24400 | fail: | |
24401 | return NULL; | |
24402 | } | |
24403 | ||
24404 | ||
24405 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24406 | PyObject *resultobj; | |
24407 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24408 | wxTreeItemId *arg2 = 0 ; | |
24409 | wxFont *arg3 = 0 ; | |
24410 | PyObject * obj0 = 0 ; | |
24411 | PyObject * obj1 = 0 ; | |
24412 | PyObject * obj2 = 0 ; | |
24413 | char *kwnames[] = { | |
24414 | (char *) "self",(char *) "item",(char *) "font", NULL | |
24415 | }; | |
24416 | ||
24417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24419 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24420 | if (arg2 == NULL) { | |
24421 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24422 | } | |
24423 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24424 | if (arg3 == NULL) { | |
24425 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24426 | } | |
24427 | { | |
24428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24429 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
24430 | ||
24431 | wxPyEndAllowThreads(__tstate); | |
24432 | if (PyErr_Occurred()) SWIG_fail; | |
24433 | } | |
24434 | Py_INCREF(Py_None); resultobj = Py_None; | |
24435 | return resultobj; | |
24436 | fail: | |
24437 | return NULL; | |
24438 | } | |
24439 | ||
24440 | ||
24441 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24442 | PyObject *resultobj; | |
24443 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24444 | wxTreeItemId *arg2 = 0 ; | |
24445 | bool result; | |
24446 | PyObject * obj0 = 0 ; | |
24447 | PyObject * obj1 = 0 ; | |
24448 | char *kwnames[] = { | |
24449 | (char *) "self",(char *) "item", NULL | |
24450 | }; | |
24451 | ||
24452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
24453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24454 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24455 | if (arg2 == NULL) { | |
24456 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24457 | } | |
24458 | { | |
24459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24460 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
24461 | ||
24462 | wxPyEndAllowThreads(__tstate); | |
24463 | if (PyErr_Occurred()) SWIG_fail; | |
24464 | } | |
02a34c4c | 24465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24466 | return resultobj; |
24467 | fail: | |
24468 | return NULL; | |
24469 | } | |
24470 | ||
24471 | ||
24472 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24473 | PyObject *resultobj; | |
24474 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24475 | wxTreeItemId *arg2 = 0 ; | |
24476 | bool result; | |
24477 | PyObject * obj0 = 0 ; | |
24478 | PyObject * obj1 = 0 ; | |
24479 | char *kwnames[] = { | |
24480 | (char *) "self",(char *) "item", NULL | |
24481 | }; | |
24482 | ||
24483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
24484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24485 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24486 | if (arg2 == NULL) { | |
24487 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24488 | } | |
24489 | { | |
24490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24491 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
24492 | ||
24493 | wxPyEndAllowThreads(__tstate); | |
24494 | if (PyErr_Occurred()) SWIG_fail; | |
24495 | } | |
02a34c4c | 24496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24497 | return resultobj; |
24498 | fail: | |
24499 | return NULL; | |
24500 | } | |
24501 | ||
24502 | ||
24503 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24504 | PyObject *resultobj; | |
24505 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24506 | wxTreeItemId *arg2 = 0 ; | |
24507 | bool result; | |
24508 | PyObject * obj0 = 0 ; | |
24509 | PyObject * obj1 = 0 ; | |
24510 | char *kwnames[] = { | |
24511 | (char *) "self",(char *) "item", NULL | |
24512 | }; | |
24513 | ||
24514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
24515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24516 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24517 | if (arg2 == NULL) { | |
24518 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24519 | } | |
24520 | { | |
24521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24522 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
24523 | ||
24524 | wxPyEndAllowThreads(__tstate); | |
24525 | if (PyErr_Occurred()) SWIG_fail; | |
24526 | } | |
02a34c4c | 24527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24528 | return resultobj; |
24529 | fail: | |
24530 | return NULL; | |
24531 | } | |
24532 | ||
24533 | ||
24534 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24535 | PyObject *resultobj; | |
24536 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24537 | wxTreeItemId *arg2 = 0 ; | |
24538 | bool result; | |
24539 | PyObject * obj0 = 0 ; | |
24540 | PyObject * obj1 = 0 ; | |
24541 | char *kwnames[] = { | |
24542 | (char *) "self",(char *) "item", NULL | |
24543 | }; | |
24544 | ||
24545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
24546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24547 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24548 | if (arg2 == NULL) { | |
24549 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24550 | } | |
24551 | { | |
24552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24553 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
24554 | ||
24555 | wxPyEndAllowThreads(__tstate); | |
24556 | if (PyErr_Occurred()) SWIG_fail; | |
24557 | } | |
02a34c4c | 24558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24559 | return resultobj; |
24560 | fail: | |
24561 | return NULL; | |
24562 | } | |
24563 | ||
24564 | ||
24565 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24566 | PyObject *resultobj; | |
24567 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24568 | wxTreeItemId *arg2 = 0 ; | |
24569 | bool result; | |
24570 | PyObject * obj0 = 0 ; | |
24571 | PyObject * obj1 = 0 ; | |
24572 | char *kwnames[] = { | |
24573 | (char *) "self",(char *) "item", NULL | |
24574 | }; | |
24575 | ||
24576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
24577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24578 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24579 | if (arg2 == NULL) { | |
24580 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24581 | } | |
24582 | { | |
24583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24584 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
24585 | ||
24586 | wxPyEndAllowThreads(__tstate); | |
24587 | if (PyErr_Occurred()) SWIG_fail; | |
24588 | } | |
02a34c4c | 24589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24590 | return resultobj; |
24591 | fail: | |
24592 | return NULL; | |
24593 | } | |
24594 | ||
24595 | ||
24596 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24597 | PyObject *resultobj; | |
24598 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24599 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24600 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24601 | size_t result; |
24602 | PyObject * obj0 = 0 ; | |
24603 | PyObject * obj1 = 0 ; | |
24604 | PyObject * obj2 = 0 ; | |
24605 | char *kwnames[] = { | |
24606 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
24607 | }; | |
24608 | ||
24609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24611 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24612 | if (arg2 == NULL) { | |
24613 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24614 | } | |
24615 | if (obj2) { | |
2dbef272 | 24616 | { |
8edf1c75 | 24617 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
24618 | if (PyErr_Occurred()) SWIG_fail; |
24619 | } | |
d14a1e28 RD |
24620 | } |
24621 | { | |
24622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24623 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
24624 | ||
24625 | wxPyEndAllowThreads(__tstate); | |
24626 | if (PyErr_Occurred()) SWIG_fail; | |
24627 | } | |
8edf1c75 | 24628 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24629 | return resultobj; |
24630 | fail: | |
24631 | return NULL; | |
24632 | } | |
24633 | ||
24634 | ||
24635 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24636 | PyObject *resultobj; | |
24637 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24638 | wxTreeItemId result; | |
24639 | PyObject * obj0 = 0 ; | |
24640 | char *kwnames[] = { | |
24641 | (char *) "self", NULL | |
24642 | }; | |
24643 | ||
24644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
24645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24646 | { | |
24647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24648 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
24649 | ||
24650 | wxPyEndAllowThreads(__tstate); | |
24651 | if (PyErr_Occurred()) SWIG_fail; | |
24652 | } | |
24653 | { | |
24654 | wxTreeItemId * resultptr; | |
24655 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24656 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24657 | } | |
24658 | return resultobj; | |
24659 | fail: | |
24660 | return NULL; | |
24661 | } | |
24662 | ||
24663 | ||
24664 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24665 | PyObject *resultobj; | |
24666 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24667 | wxTreeItemId result; | |
24668 | PyObject * obj0 = 0 ; | |
24669 | char *kwnames[] = { | |
24670 | (char *) "self", NULL | |
24671 | }; | |
24672 | ||
24673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
24674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24675 | { | |
24676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24677 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
24678 | ||
24679 | wxPyEndAllowThreads(__tstate); | |
24680 | if (PyErr_Occurred()) SWIG_fail; | |
24681 | } | |
24682 | { | |
24683 | wxTreeItemId * resultptr; | |
24684 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24685 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24686 | } | |
24687 | return resultobj; | |
24688 | fail: | |
24689 | return NULL; | |
24690 | } | |
24691 | ||
24692 | ||
24693 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24694 | PyObject *resultobj; | |
24695 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24696 | PyObject *result; | |
24697 | PyObject * obj0 = 0 ; | |
24698 | char *kwnames[] = { | |
24699 | (char *) "self", NULL | |
24700 | }; | |
24701 | ||
24702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
24703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24704 | { | |
24705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24706 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
24707 | ||
24708 | wxPyEndAllowThreads(__tstate); | |
24709 | if (PyErr_Occurred()) SWIG_fail; | |
24710 | } | |
24711 | resultobj = result; | |
24712 | return resultobj; | |
24713 | fail: | |
24714 | return NULL; | |
24715 | } | |
24716 | ||
24717 | ||
24718 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24719 | PyObject *resultobj; | |
24720 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24721 | wxTreeItemId *arg2 = 0 ; | |
24722 | wxTreeItemId result; | |
24723 | PyObject * obj0 = 0 ; | |
24724 | PyObject * obj1 = 0 ; | |
24725 | char *kwnames[] = { | |
24726 | (char *) "self",(char *) "item", NULL | |
24727 | }; | |
24728 | ||
24729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
24730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24731 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24732 | if (arg2 == NULL) { | |
24733 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24734 | } | |
24735 | { | |
24736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24737 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
24738 | ||
24739 | wxPyEndAllowThreads(__tstate); | |
24740 | if (PyErr_Occurred()) SWIG_fail; | |
24741 | } | |
24742 | { | |
24743 | wxTreeItemId * resultptr; | |
24744 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24745 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24746 | } | |
24747 | return resultobj; | |
24748 | fail: | |
24749 | return NULL; | |
24750 | } | |
24751 | ||
24752 | ||
24753 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24754 | PyObject *resultobj; | |
24755 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24756 | wxTreeItemId *arg2 = 0 ; | |
24757 | PyObject *result; | |
24758 | PyObject * obj0 = 0 ; | |
24759 | PyObject * obj1 = 0 ; | |
24760 | char *kwnames[] = { | |
24761 | (char *) "self",(char *) "item", NULL | |
24762 | }; | |
24763 | ||
24764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
24765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24766 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24767 | if (arg2 == NULL) { | |
24768 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24769 | } | |
24770 | { | |
24771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24772 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
24773 | ||
24774 | wxPyEndAllowThreads(__tstate); | |
24775 | if (PyErr_Occurred()) SWIG_fail; | |
24776 | } | |
24777 | resultobj = result; | |
24778 | return resultobj; | |
24779 | fail: | |
24780 | return NULL; | |
24781 | } | |
24782 | ||
24783 | ||
24784 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24785 | PyObject *resultobj; | |
24786 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24787 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 24788 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
24789 | PyObject *result; |
24790 | PyObject * obj0 = 0 ; | |
24791 | PyObject * obj1 = 0 ; | |
24792 | PyObject * obj2 = 0 ; | |
24793 | char *kwnames[] = { | |
24794 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
24795 | }; | |
24796 | ||
24797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24799 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24800 | if (arg2 == NULL) { | |
24801 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24802 | } | |
58203fa6 | 24803 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
24804 | { |
24805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 24806 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
24807 | |
24808 | wxPyEndAllowThreads(__tstate); | |
24809 | if (PyErr_Occurred()) SWIG_fail; | |
24810 | } | |
24811 | resultobj = result; | |
24812 | return resultobj; | |
24813 | fail: | |
24814 | return NULL; | |
24815 | } | |
24816 | ||
24817 | ||
24818 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24819 | PyObject *resultobj; | |
24820 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24821 | wxTreeItemId *arg2 = 0 ; | |
24822 | wxTreeItemId result; | |
24823 | PyObject * obj0 = 0 ; | |
24824 | PyObject * obj1 = 0 ; | |
24825 | char *kwnames[] = { | |
24826 | (char *) "self",(char *) "item", NULL | |
24827 | }; | |
24828 | ||
24829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
24830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24831 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24832 | if (arg2 == NULL) { | |
24833 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24834 | } | |
24835 | { | |
24836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24837 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
24838 | ||
24839 | wxPyEndAllowThreads(__tstate); | |
24840 | if (PyErr_Occurred()) SWIG_fail; | |
24841 | } | |
24842 | { | |
24843 | wxTreeItemId * resultptr; | |
24844 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24845 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24846 | } | |
24847 | return resultobj; | |
24848 | fail: | |
24849 | return NULL; | |
24850 | } | |
24851 | ||
24852 | ||
24853 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24854 | PyObject *resultobj; | |
24855 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24856 | wxTreeItemId *arg2 = 0 ; | |
24857 | wxTreeItemId result; | |
24858 | PyObject * obj0 = 0 ; | |
24859 | PyObject * obj1 = 0 ; | |
24860 | char *kwnames[] = { | |
24861 | (char *) "self",(char *) "item", NULL | |
24862 | }; | |
24863 | ||
24864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
24865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24866 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24867 | if (arg2 == NULL) { | |
24868 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24869 | } | |
24870 | { | |
24871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24872 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
24873 | ||
24874 | wxPyEndAllowThreads(__tstate); | |
24875 | if (PyErr_Occurred()) SWIG_fail; | |
24876 | } | |
24877 | { | |
24878 | wxTreeItemId * resultptr; | |
24879 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24880 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24881 | } | |
24882 | return resultobj; | |
24883 | fail: | |
24884 | return NULL; | |
24885 | } | |
24886 | ||
24887 | ||
24888 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24889 | PyObject *resultobj; | |
24890 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24891 | wxTreeItemId *arg2 = 0 ; | |
24892 | wxTreeItemId result; | |
24893 | PyObject * obj0 = 0 ; | |
24894 | PyObject * obj1 = 0 ; | |
24895 | char *kwnames[] = { | |
24896 | (char *) "self",(char *) "item", NULL | |
24897 | }; | |
24898 | ||
24899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
24900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24901 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24902 | if (arg2 == NULL) { | |
24903 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24904 | } | |
24905 | { | |
24906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24907 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
24908 | ||
24909 | wxPyEndAllowThreads(__tstate); | |
24910 | if (PyErr_Occurred()) SWIG_fail; | |
24911 | } | |
24912 | { | |
24913 | wxTreeItemId * resultptr; | |
24914 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24915 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24916 | } | |
24917 | return resultobj; | |
24918 | fail: | |
24919 | return NULL; | |
24920 | } | |
24921 | ||
24922 | ||
24923 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24924 | PyObject *resultobj; | |
24925 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24926 | wxTreeItemId result; | |
24927 | PyObject * obj0 = 0 ; | |
24928 | char *kwnames[] = { | |
24929 | (char *) "self", NULL | |
24930 | }; | |
24931 | ||
24932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
24933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24934 | { | |
24935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24936 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
24937 | ||
24938 | wxPyEndAllowThreads(__tstate); | |
24939 | if (PyErr_Occurred()) SWIG_fail; | |
24940 | } | |
24941 | { | |
24942 | wxTreeItemId * resultptr; | |
24943 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24944 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24945 | } | |
24946 | return resultobj; | |
24947 | fail: | |
24948 | return NULL; | |
24949 | } | |
24950 | ||
24951 | ||
24952 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24953 | PyObject *resultobj; | |
24954 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24955 | wxTreeItemId *arg2 = 0 ; | |
24956 | wxTreeItemId result; | |
24957 | PyObject * obj0 = 0 ; | |
24958 | PyObject * obj1 = 0 ; | |
24959 | char *kwnames[] = { | |
24960 | (char *) "self",(char *) "item", NULL | |
24961 | }; | |
24962 | ||
24963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
24964 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24965 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24966 | if (arg2 == NULL) { | |
24967 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24968 | } | |
24969 | { | |
24970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24971 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
24972 | ||
24973 | wxPyEndAllowThreads(__tstate); | |
24974 | if (PyErr_Occurred()) SWIG_fail; | |
24975 | } | |
24976 | { | |
24977 | wxTreeItemId * resultptr; | |
24978 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24979 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24980 | } | |
24981 | return resultobj; | |
24982 | fail: | |
24983 | return NULL; | |
24984 | } | |
24985 | ||
24986 | ||
24987 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24988 | PyObject *resultobj; | |
24989 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24990 | wxTreeItemId *arg2 = 0 ; | |
24991 | wxTreeItemId result; | |
24992 | PyObject * obj0 = 0 ; | |
24993 | PyObject * obj1 = 0 ; | |
24994 | char *kwnames[] = { | |
24995 | (char *) "self",(char *) "item", NULL | |
24996 | }; | |
24997 | ||
24998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
24999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25000 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25001 | if (arg2 == NULL) { | |
25002 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25003 | } | |
25004 | { | |
25005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25006 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
25007 | ||
25008 | wxPyEndAllowThreads(__tstate); | |
25009 | if (PyErr_Occurred()) SWIG_fail; | |
25010 | } | |
25011 | { | |
25012 | wxTreeItemId * resultptr; | |
25013 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25014 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25015 | } | |
25016 | return resultobj; | |
25017 | fail: | |
25018 | return NULL; | |
25019 | } | |
25020 | ||
25021 | ||
25022 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25023 | PyObject *resultobj; | |
25024 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25025 | wxString *arg2 = 0 ; | |
25026 | int arg3 = (int) -1 ; | |
25027 | int arg4 = (int) -1 ; | |
25028 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
25029 | wxTreeItemId result; | |
423f194a | 25030 | bool temp2 = False ; |
d14a1e28 RD |
25031 | PyObject * obj0 = 0 ; |
25032 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
25033 | PyObject * obj2 = 0 ; |
25034 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25035 | PyObject * obj4 = 0 ; |
25036 | char *kwnames[] = { | |
25037 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25038 | }; | |
25039 | ||
8edf1c75 | 25040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
25041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25042 | { | |
25043 | arg2 = wxString_in_helper(obj1); | |
25044 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25045 | temp2 = True; |
d14a1e28 | 25046 | } |
8edf1c75 RD |
25047 | if (obj2) { |
25048 | { | |
25049 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25050 | if (PyErr_Occurred()) SWIG_fail; | |
25051 | } | |
25052 | } | |
25053 | if (obj3) { | |
25054 | { | |
25055 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25056 | if (PyErr_Occurred()) SWIG_fail; | |
25057 | } | |
25058 | } | |
d14a1e28 RD |
25059 | if (obj4) { |
25060 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25061 | } | |
25062 | { | |
25063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25064 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
25065 | ||
25066 | wxPyEndAllowThreads(__tstate); | |
25067 | if (PyErr_Occurred()) SWIG_fail; | |
25068 | } | |
25069 | { | |
25070 | wxTreeItemId * resultptr; | |
25071 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25072 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25073 | } | |
25074 | { | |
25075 | if (temp2) | |
25076 | delete arg2; | |
25077 | } | |
25078 | return resultobj; | |
25079 | fail: | |
25080 | { | |
25081 | if (temp2) | |
25082 | delete arg2; | |
25083 | } | |
25084 | return NULL; | |
25085 | } | |
25086 | ||
25087 | ||
25088 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25089 | PyObject *resultobj; | |
25090 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25091 | wxTreeItemId *arg2 = 0 ; | |
25092 | wxString *arg3 = 0 ; | |
25093 | int arg4 = (int) -1 ; | |
25094 | int arg5 = (int) -1 ; | |
25095 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25096 | wxTreeItemId result; | |
423f194a | 25097 | bool temp3 = False ; |
d14a1e28 RD |
25098 | PyObject * obj0 = 0 ; |
25099 | PyObject * obj1 = 0 ; | |
25100 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
25101 | PyObject * obj3 = 0 ; |
25102 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25103 | PyObject * obj5 = 0 ; |
25104 | char *kwnames[] = { | |
25105 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25106 | }; | |
25107 | ||
8edf1c75 | 25108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
25109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25110 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25111 | if (arg2 == NULL) { | |
25112 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25113 | } | |
25114 | { | |
25115 | arg3 = wxString_in_helper(obj2); | |
25116 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25117 | temp3 = True; |
d14a1e28 | 25118 | } |
8edf1c75 RD |
25119 | if (obj3) { |
25120 | { | |
25121 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25122 | if (PyErr_Occurred()) SWIG_fail; | |
25123 | } | |
25124 | } | |
25125 | if (obj4) { | |
25126 | { | |
25127 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25128 | if (PyErr_Occurred()) SWIG_fail; | |
25129 | } | |
25130 | } | |
d14a1e28 RD |
25131 | if (obj5) { |
25132 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25133 | } | |
25134 | { | |
25135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25136 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25137 | ||
25138 | wxPyEndAllowThreads(__tstate); | |
25139 | if (PyErr_Occurred()) SWIG_fail; | |
25140 | } | |
25141 | { | |
25142 | wxTreeItemId * resultptr; | |
25143 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25144 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25145 | } | |
25146 | { | |
25147 | if (temp3) | |
25148 | delete arg3; | |
25149 | } | |
25150 | return resultobj; | |
25151 | fail: | |
25152 | { | |
25153 | if (temp3) | |
25154 | delete arg3; | |
25155 | } | |
25156 | return NULL; | |
25157 | } | |
25158 | ||
25159 | ||
25160 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25161 | PyObject *resultobj; | |
25162 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25163 | wxTreeItemId *arg2 = 0 ; | |
25164 | wxTreeItemId *arg3 = 0 ; | |
25165 | wxString *arg4 = 0 ; | |
25166 | int arg5 = (int) -1 ; | |
25167 | int arg6 = (int) -1 ; | |
25168 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
25169 | wxTreeItemId result; | |
423f194a | 25170 | bool temp4 = False ; |
d14a1e28 RD |
25171 | PyObject * obj0 = 0 ; |
25172 | PyObject * obj1 = 0 ; | |
25173 | PyObject * obj2 = 0 ; | |
25174 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
25175 | PyObject * obj4 = 0 ; |
25176 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
25177 | PyObject * obj6 = 0 ; |
25178 | char *kwnames[] = { | |
25179 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25180 | }; | |
25181 | ||
8edf1c75 | 25182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
25183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25184 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25185 | if (arg2 == NULL) { | |
25186 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25187 | } | |
25188 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25189 | if (arg3 == NULL) { | |
25190 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25191 | } | |
25192 | { | |
25193 | arg4 = wxString_in_helper(obj3); | |
25194 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25195 | temp4 = True; |
d14a1e28 | 25196 | } |
8edf1c75 RD |
25197 | if (obj4) { |
25198 | { | |
25199 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25200 | if (PyErr_Occurred()) SWIG_fail; | |
25201 | } | |
25202 | } | |
25203 | if (obj5) { | |
25204 | { | |
25205 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
25206 | if (PyErr_Occurred()) SWIG_fail; | |
25207 | } | |
25208 | } | |
d14a1e28 RD |
25209 | if (obj6) { |
25210 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25211 | } | |
25212 | { | |
25213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25214 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25215 | ||
25216 | wxPyEndAllowThreads(__tstate); | |
25217 | if (PyErr_Occurred()) SWIG_fail; | |
25218 | } | |
25219 | { | |
25220 | wxTreeItemId * resultptr; | |
25221 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25222 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25223 | } | |
25224 | { | |
25225 | if (temp4) | |
25226 | delete arg4; | |
25227 | } | |
25228 | return resultobj; | |
25229 | fail: | |
25230 | { | |
25231 | if (temp4) | |
25232 | delete arg4; | |
25233 | } | |
25234 | return NULL; | |
25235 | } | |
25236 | ||
25237 | ||
25238 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25239 | PyObject *resultobj; | |
25240 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25241 | wxTreeItemId *arg2 = 0 ; | |
25242 | size_t arg3 ; | |
25243 | wxString *arg4 = 0 ; | |
25244 | int arg5 = (int) -1 ; | |
25245 | int arg6 = (int) -1 ; | |
25246 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
25247 | wxTreeItemId result; | |
423f194a | 25248 | bool temp4 = False ; |
d14a1e28 RD |
25249 | PyObject * obj0 = 0 ; |
25250 | PyObject * obj1 = 0 ; | |
25251 | PyObject * obj2 = 0 ; | |
25252 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
25253 | PyObject * obj4 = 0 ; |
25254 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
25255 | PyObject * obj6 = 0 ; |
25256 | char *kwnames[] = { | |
25257 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25258 | }; | |
25259 | ||
8edf1c75 | 25260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
25261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25262 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25263 | if (arg2 == NULL) { | |
25264 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25265 | } | |
2dbef272 | 25266 | { |
8edf1c75 | 25267 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
2dbef272 RD |
25268 | if (PyErr_Occurred()) SWIG_fail; |
25269 | } | |
d14a1e28 RD |
25270 | { |
25271 | arg4 = wxString_in_helper(obj3); | |
25272 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25273 | temp4 = True; |
d14a1e28 | 25274 | } |
8edf1c75 RD |
25275 | if (obj4) { |
25276 | { | |
25277 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25278 | if (PyErr_Occurred()) SWIG_fail; | |
25279 | } | |
25280 | } | |
25281 | if (obj5) { | |
25282 | { | |
25283 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
25284 | if (PyErr_Occurred()) SWIG_fail; | |
25285 | } | |
25286 | } | |
d14a1e28 RD |
25287 | if (obj6) { |
25288 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25289 | } | |
25290 | { | |
25291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25292 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25293 | ||
25294 | wxPyEndAllowThreads(__tstate); | |
25295 | if (PyErr_Occurred()) SWIG_fail; | |
25296 | } | |
25297 | { | |
25298 | wxTreeItemId * resultptr; | |
25299 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25300 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25301 | } | |
25302 | { | |
25303 | if (temp4) | |
25304 | delete arg4; | |
25305 | } | |
25306 | return resultobj; | |
25307 | fail: | |
25308 | { | |
25309 | if (temp4) | |
25310 | delete arg4; | |
25311 | } | |
25312 | return NULL; | |
25313 | } | |
25314 | ||
25315 | ||
25316 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25317 | PyObject *resultobj; | |
25318 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25319 | wxTreeItemId *arg2 = 0 ; | |
25320 | wxString *arg3 = 0 ; | |
25321 | int arg4 = (int) -1 ; | |
25322 | int arg5 = (int) -1 ; | |
25323 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25324 | wxTreeItemId result; | |
423f194a | 25325 | bool temp3 = False ; |
d14a1e28 RD |
25326 | PyObject * obj0 = 0 ; |
25327 | PyObject * obj1 = 0 ; | |
25328 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
25329 | PyObject * obj3 = 0 ; |
25330 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25331 | PyObject * obj5 = 0 ; |
25332 | char *kwnames[] = { | |
25333 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25334 | }; | |
25335 | ||
8edf1c75 | 25336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
25337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25338 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25339 | if (arg2 == NULL) { | |
25340 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25341 | } | |
25342 | { | |
25343 | arg3 = wxString_in_helper(obj2); | |
25344 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25345 | temp3 = True; |
d14a1e28 | 25346 | } |
8edf1c75 RD |
25347 | if (obj3) { |
25348 | { | |
25349 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25350 | if (PyErr_Occurred()) SWIG_fail; | |
25351 | } | |
25352 | } | |
25353 | if (obj4) { | |
25354 | { | |
25355 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25356 | if (PyErr_Occurred()) SWIG_fail; | |
25357 | } | |
25358 | } | |
d14a1e28 RD |
25359 | if (obj5) { |
25360 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25361 | } | |
25362 | { | |
25363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25364 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25365 | ||
25366 | wxPyEndAllowThreads(__tstate); | |
25367 | if (PyErr_Occurred()) SWIG_fail; | |
25368 | } | |
25369 | { | |
25370 | wxTreeItemId * resultptr; | |
25371 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25372 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25373 | } | |
25374 | { | |
25375 | if (temp3) | |
25376 | delete arg3; | |
25377 | } | |
25378 | return resultobj; | |
25379 | fail: | |
25380 | { | |
25381 | if (temp3) | |
25382 | delete arg3; | |
25383 | } | |
25384 | return NULL; | |
25385 | } | |
25386 | ||
25387 | ||
25388 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25389 | PyObject *resultobj; | |
25390 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25391 | wxTreeItemId *arg2 = 0 ; | |
25392 | PyObject * obj0 = 0 ; | |
25393 | PyObject * obj1 = 0 ; | |
25394 | char *kwnames[] = { | |
25395 | (char *) "self",(char *) "item", NULL | |
25396 | }; | |
25397 | ||
25398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
25399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25400 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25401 | if (arg2 == NULL) { | |
25402 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25403 | } | |
25404 | { | |
25405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25406 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
25407 | ||
25408 | wxPyEndAllowThreads(__tstate); | |
25409 | if (PyErr_Occurred()) SWIG_fail; | |
25410 | } | |
25411 | Py_INCREF(Py_None); resultobj = Py_None; | |
25412 | return resultobj; | |
25413 | fail: | |
25414 | return NULL; | |
25415 | } | |
25416 | ||
25417 | ||
25418 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25419 | PyObject *resultobj; | |
25420 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25421 | wxTreeItemId *arg2 = 0 ; | |
25422 | PyObject * obj0 = 0 ; | |
25423 | PyObject * obj1 = 0 ; | |
25424 | char *kwnames[] = { | |
25425 | (char *) "self",(char *) "item", NULL | |
25426 | }; | |
25427 | ||
25428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
25429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25430 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25431 | if (arg2 == NULL) { | |
25432 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25433 | } | |
25434 | { | |
25435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25436 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
25437 | ||
25438 | wxPyEndAllowThreads(__tstate); | |
25439 | if (PyErr_Occurred()) SWIG_fail; | |
25440 | } | |
25441 | Py_INCREF(Py_None); resultobj = Py_None; | |
25442 | return resultobj; | |
25443 | fail: | |
25444 | return NULL; | |
25445 | } | |
25446 | ||
25447 | ||
25448 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25449 | PyObject *resultobj; | |
25450 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25451 | PyObject * obj0 = 0 ; | |
25452 | char *kwnames[] = { | |
25453 | (char *) "self", NULL | |
25454 | }; | |
25455 | ||
25456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
25457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25458 | { | |
25459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25460 | (arg1)->DeleteAllItems(); | |
25461 | ||
25462 | wxPyEndAllowThreads(__tstate); | |
25463 | if (PyErr_Occurred()) SWIG_fail; | |
25464 | } | |
25465 | Py_INCREF(Py_None); resultobj = Py_None; | |
25466 | return resultobj; | |
25467 | fail: | |
25468 | return NULL; | |
25469 | } | |
25470 | ||
25471 | ||
25472 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25473 | PyObject *resultobj; | |
25474 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25475 | wxTreeItemId *arg2 = 0 ; | |
25476 | PyObject * obj0 = 0 ; | |
25477 | PyObject * obj1 = 0 ; | |
25478 | char *kwnames[] = { | |
25479 | (char *) "self",(char *) "item", NULL | |
25480 | }; | |
25481 | ||
25482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
25483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25484 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25485 | if (arg2 == NULL) { | |
25486 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25487 | } | |
25488 | { | |
25489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25490 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
25491 | ||
25492 | wxPyEndAllowThreads(__tstate); | |
25493 | if (PyErr_Occurred()) SWIG_fail; | |
25494 | } | |
25495 | Py_INCREF(Py_None); resultobj = Py_None; | |
25496 | return resultobj; | |
25497 | fail: | |
25498 | return NULL; | |
25499 | } | |
25500 | ||
25501 | ||
25502 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25503 | PyObject *resultobj; | |
25504 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25505 | wxTreeItemId *arg2 = 0 ; | |
25506 | PyObject * obj0 = 0 ; | |
25507 | PyObject * obj1 = 0 ; | |
25508 | char *kwnames[] = { | |
25509 | (char *) "self",(char *) "item", NULL | |
25510 | }; | |
25511 | ||
25512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
25513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25514 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25515 | if (arg2 == NULL) { | |
25516 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25517 | } | |
25518 | { | |
25519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25520 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
25521 | ||
25522 | wxPyEndAllowThreads(__tstate); | |
25523 | if (PyErr_Occurred()) SWIG_fail; | |
25524 | } | |
25525 | Py_INCREF(Py_None); resultobj = Py_None; | |
25526 | return resultobj; | |
25527 | fail: | |
25528 | return NULL; | |
25529 | } | |
25530 | ||
25531 | ||
25532 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25533 | PyObject *resultobj; | |
25534 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25535 | wxTreeItemId *arg2 = 0 ; | |
25536 | PyObject * obj0 = 0 ; | |
25537 | PyObject * obj1 = 0 ; | |
25538 | char *kwnames[] = { | |
25539 | (char *) "self",(char *) "item", NULL | |
25540 | }; | |
25541 | ||
25542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
25543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25544 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25545 | if (arg2 == NULL) { | |
25546 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25547 | } | |
25548 | { | |
25549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25550 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
25551 | ||
25552 | wxPyEndAllowThreads(__tstate); | |
25553 | if (PyErr_Occurred()) SWIG_fail; | |
25554 | } | |
25555 | Py_INCREF(Py_None); resultobj = Py_None; | |
25556 | return resultobj; | |
25557 | fail: | |
25558 | return NULL; | |
25559 | } | |
25560 | ||
25561 | ||
25562 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25563 | PyObject *resultobj; | |
25564 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25565 | wxTreeItemId *arg2 = 0 ; | |
25566 | PyObject * obj0 = 0 ; | |
25567 | PyObject * obj1 = 0 ; | |
25568 | char *kwnames[] = { | |
25569 | (char *) "self",(char *) "item", NULL | |
25570 | }; | |
25571 | ||
25572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
25573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25574 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25575 | if (arg2 == NULL) { | |
25576 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25577 | } | |
25578 | { | |
25579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25580 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
25581 | ||
25582 | wxPyEndAllowThreads(__tstate); | |
25583 | if (PyErr_Occurred()) SWIG_fail; | |
25584 | } | |
25585 | Py_INCREF(Py_None); resultobj = Py_None; | |
25586 | return resultobj; | |
25587 | fail: | |
25588 | return NULL; | |
25589 | } | |
25590 | ||
25591 | ||
25592 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25593 | PyObject *resultobj; | |
25594 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25595 | PyObject * obj0 = 0 ; | |
25596 | char *kwnames[] = { | |
25597 | (char *) "self", NULL | |
25598 | }; | |
25599 | ||
25600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
25601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25602 | { | |
25603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25604 | (arg1)->Unselect(); | |
25605 | ||
25606 | wxPyEndAllowThreads(__tstate); | |
25607 | if (PyErr_Occurred()) SWIG_fail; | |
25608 | } | |
25609 | Py_INCREF(Py_None); resultobj = Py_None; | |
25610 | return resultobj; | |
25611 | fail: | |
25612 | return NULL; | |
25613 | } | |
25614 | ||
25615 | ||
0ffb2aa6 RD |
25616 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
25617 | PyObject *resultobj; | |
25618 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25619 | wxTreeItemId *arg2 = 0 ; | |
25620 | PyObject * obj0 = 0 ; | |
25621 | PyObject * obj1 = 0 ; | |
25622 | char *kwnames[] = { | |
25623 | (char *) "self",(char *) "item", NULL | |
25624 | }; | |
25625 | ||
25626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
25627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25628 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25629 | if (arg2 == NULL) { | |
25630 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25631 | } | |
25632 | { | |
25633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25634 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
25635 | ||
25636 | wxPyEndAllowThreads(__tstate); | |
25637 | if (PyErr_Occurred()) SWIG_fail; | |
25638 | } | |
25639 | Py_INCREF(Py_None); resultobj = Py_None; | |
25640 | return resultobj; | |
25641 | fail: | |
25642 | return NULL; | |
25643 | } | |
25644 | ||
25645 | ||
d14a1e28 RD |
25646 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
25647 | PyObject *resultobj; | |
25648 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25649 | PyObject * obj0 = 0 ; | |
25650 | char *kwnames[] = { | |
25651 | (char *) "self", NULL | |
25652 | }; | |
25653 | ||
25654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
25655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25656 | { | |
25657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25658 | (arg1)->UnselectAll(); | |
25659 | ||
25660 | wxPyEndAllowThreads(__tstate); | |
25661 | if (PyErr_Occurred()) SWIG_fail; | |
25662 | } | |
25663 | Py_INCREF(Py_None); resultobj = Py_None; | |
25664 | return resultobj; | |
25665 | fail: | |
25666 | return NULL; | |
25667 | } | |
25668 | ||
25669 | ||
25670 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
0ffb2aa6 RD |
25671 | PyObject *resultobj; |
25672 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25673 | wxTreeItemId *arg2 = 0 ; | |
25674 | bool arg3 = (bool) True ; | |
25675 | PyObject * obj0 = 0 ; | |
25676 | PyObject * obj1 = 0 ; | |
25677 | PyObject * obj2 = 0 ; | |
25678 | char *kwnames[] = { | |
25679 | (char *) "self",(char *) "item",(char *) "select", NULL | |
25680 | }; | |
25681 | ||
25682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25684 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25685 | if (arg2 == NULL) { | |
25686 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25687 | } | |
25688 | if (obj2) { | |
25689 | { | |
25690 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
25691 | if (PyErr_Occurred()) SWIG_fail; | |
25692 | } | |
25693 | } | |
25694 | { | |
25695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25696 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
25697 | ||
25698 | wxPyEndAllowThreads(__tstate); | |
25699 | if (PyErr_Occurred()) SWIG_fail; | |
25700 | } | |
25701 | Py_INCREF(Py_None); resultobj = Py_None; | |
25702 | return resultobj; | |
25703 | fail: | |
25704 | return NULL; | |
25705 | } | |
25706 | ||
25707 | ||
25708 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
25709 | PyObject *resultobj; |
25710 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25711 | wxTreeItemId *arg2 = 0 ; | |
25712 | PyObject * obj0 = 0 ; | |
25713 | PyObject * obj1 = 0 ; | |
25714 | char *kwnames[] = { | |
25715 | (char *) "self",(char *) "item", NULL | |
25716 | }; | |
25717 | ||
0ffb2aa6 | 25718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
25719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25720 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25721 | if (arg2 == NULL) { | |
25722 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25723 | } | |
25724 | { | |
25725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0ffb2aa6 | 25726 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
25727 | |
25728 | wxPyEndAllowThreads(__tstate); | |
25729 | if (PyErr_Occurred()) SWIG_fail; | |
25730 | } | |
25731 | Py_INCREF(Py_None); resultobj = Py_None; | |
25732 | return resultobj; | |
25733 | fail: | |
25734 | return NULL; | |
25735 | } | |
25736 | ||
25737 | ||
25738 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25739 | PyObject *resultobj; | |
25740 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25741 | wxTreeItemId *arg2 = 0 ; | |
25742 | PyObject * obj0 = 0 ; | |
25743 | PyObject * obj1 = 0 ; | |
25744 | char *kwnames[] = { | |
25745 | (char *) "self",(char *) "item", NULL | |
25746 | }; | |
25747 | ||
25748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
25749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25750 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25751 | if (arg2 == NULL) { | |
25752 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25753 | } | |
25754 | { | |
25755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25756 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
25757 | ||
25758 | wxPyEndAllowThreads(__tstate); | |
25759 | if (PyErr_Occurred()) SWIG_fail; | |
25760 | } | |
25761 | Py_INCREF(Py_None); resultobj = Py_None; | |
25762 | return resultobj; | |
25763 | fail: | |
25764 | return NULL; | |
25765 | } | |
25766 | ||
25767 | ||
25768 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25769 | PyObject *resultobj; | |
25770 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25771 | wxTreeItemId *arg2 = 0 ; | |
25772 | PyObject * obj0 = 0 ; | |
25773 | PyObject * obj1 = 0 ; | |
25774 | char *kwnames[] = { | |
25775 | (char *) "self",(char *) "item", NULL | |
25776 | }; | |
25777 | ||
25778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
25779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25780 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25781 | if (arg2 == NULL) { | |
25782 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25783 | } | |
25784 | { | |
25785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25786 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
25787 | ||
25788 | wxPyEndAllowThreads(__tstate); | |
25789 | if (PyErr_Occurred()) SWIG_fail; | |
25790 | } | |
25791 | Py_INCREF(Py_None); resultobj = Py_None; | |
25792 | return resultobj; | |
25793 | fail: | |
25794 | return NULL; | |
25795 | } | |
25796 | ||
25797 | ||
25798 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25799 | PyObject *resultobj; | |
25800 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25801 | wxTreeItemId *arg2 = 0 ; | |
25802 | PyObject * obj0 = 0 ; | |
25803 | PyObject * obj1 = 0 ; | |
25804 | char *kwnames[] = { | |
25805 | (char *) "self",(char *) "item", NULL | |
25806 | }; | |
25807 | ||
25808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
25809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25810 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25811 | if (arg2 == NULL) { | |
25812 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25813 | } | |
25814 | { | |
25815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25816 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
25817 | ||
25818 | wxPyEndAllowThreads(__tstate); | |
25819 | if (PyErr_Occurred()) SWIG_fail; | |
25820 | } | |
25821 | Py_INCREF(Py_None); resultobj = Py_None; | |
25822 | return resultobj; | |
25823 | fail: | |
25824 | return NULL; | |
25825 | } | |
25826 | ||
25827 | ||
25828 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25829 | PyObject *resultobj; | |
25830 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25831 | wxTextCtrl *result; | |
25832 | PyObject * obj0 = 0 ; | |
25833 | char *kwnames[] = { | |
25834 | (char *) "self", NULL | |
25835 | }; | |
25836 | ||
25837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
25838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25839 | { | |
25840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25841 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
25842 | ||
25843 | wxPyEndAllowThreads(__tstate); | |
25844 | if (PyErr_Occurred()) SWIG_fail; | |
25845 | } | |
25846 | { | |
25847 | resultobj = wxPyMake_wxObject(result); | |
25848 | } | |
25849 | return resultobj; | |
25850 | fail: | |
25851 | return NULL; | |
25852 | } | |
25853 | ||
25854 | ||
25855 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25856 | PyObject *resultobj; | |
25857 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25858 | wxTreeItemId *arg2 = 0 ; | |
25859 | PyObject * obj0 = 0 ; | |
25860 | PyObject * obj1 = 0 ; | |
25861 | char *kwnames[] = { | |
25862 | (char *) "self",(char *) "item", NULL | |
25863 | }; | |
25864 | ||
25865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
25866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25867 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25868 | if (arg2 == NULL) { | |
25869 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25870 | } | |
25871 | { | |
25872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25873 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
25874 | ||
25875 | wxPyEndAllowThreads(__tstate); | |
25876 | if (PyErr_Occurred()) SWIG_fail; | |
25877 | } | |
25878 | Py_INCREF(Py_None); resultobj = Py_None; | |
25879 | return resultobj; | |
25880 | fail: | |
25881 | return NULL; | |
25882 | } | |
25883 | ||
25884 | ||
25885 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25886 | PyObject *resultobj; | |
25887 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25888 | wxPoint *arg2 = 0 ; | |
25889 | int *arg3 = 0 ; | |
25890 | wxTreeItemId result; | |
25891 | wxPoint temp2 ; | |
25892 | int temp3 ; | |
25893 | PyObject * obj0 = 0 ; | |
25894 | PyObject * obj1 = 0 ; | |
25895 | char *kwnames[] = { | |
25896 | (char *) "self",(char *) "point", NULL | |
25897 | }; | |
25898 | ||
25899 | arg3 = &temp3; | |
25900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
25901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25902 | { | |
25903 | arg2 = &temp2; | |
25904 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25905 | } | |
25906 | { | |
25907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25908 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
25909 | ||
25910 | wxPyEndAllowThreads(__tstate); | |
25911 | if (PyErr_Occurred()) SWIG_fail; | |
25912 | } | |
25913 | { | |
25914 | wxTreeItemId * resultptr; | |
25915 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25916 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25917 | } | |
25918 | { | |
25919 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25920 | resultobj = t_output_helper(resultobj,o); | |
25921 | } | |
25922 | return resultobj; | |
25923 | fail: | |
25924 | return NULL; | |
25925 | } | |
25926 | ||
25927 | ||
25928 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25929 | PyObject *resultobj; | |
25930 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25931 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25932 | bool arg3 = (bool) False ; |
d14a1e28 RD |
25933 | PyObject *result; |
25934 | PyObject * obj0 = 0 ; | |
25935 | PyObject * obj1 = 0 ; | |
25936 | PyObject * obj2 = 0 ; | |
25937 | char *kwnames[] = { | |
25938 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
25939 | }; | |
25940 | ||
25941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25943 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25944 | if (arg2 == NULL) { | |
25945 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25946 | } | |
25947 | if (obj2) { | |
2dbef272 | 25948 | { |
8edf1c75 | 25949 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
25950 | if (PyErr_Occurred()) SWIG_fail; |
25951 | } | |
d14a1e28 RD |
25952 | } |
25953 | { | |
25954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25955 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25956 | ||
25957 | wxPyEndAllowThreads(__tstate); | |
25958 | if (PyErr_Occurred()) SWIG_fail; | |
25959 | } | |
25960 | resultobj = result; | |
25961 | return resultobj; | |
25962 | fail: | |
25963 | return NULL; | |
25964 | } | |
25965 | ||
25966 | ||
25967 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
25968 | PyObject *obj; | |
25969 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25970 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
25971 | Py_INCREF(obj); | |
25972 | return Py_BuildValue((char *)""); | |
25973 | } | |
8edf1c75 | 25974 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
cbd72d4f RD |
25975 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
25976 | return 1; | |
25977 | } | |
25978 | ||
25979 | ||
25980 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
25981 | PyObject *pyobj; | |
25982 | ||
25983 | { | |
25984 | #if wxUSE_UNICODE | |
25985 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
25986 | #else | |
25987 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
25988 | #endif | |
25989 | } | |
25990 | return pyobj; | |
25991 | } | |
25992 | ||
25993 | ||
d14a1e28 RD |
25994 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
25995 | PyObject *resultobj; | |
25996 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 25997 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
25998 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
25999 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
26000 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
26001 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26002 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26003 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26004 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
26005 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
26006 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
26007 | int arg8 = (int) 0 ; | |
cbd72d4f | 26008 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
26009 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
26010 | wxGenericDirCtrl *result; | |
423f194a | 26011 | bool temp3 = False ; |
d14a1e28 RD |
26012 | wxPoint temp4 ; |
26013 | wxSize temp5 ; | |
423f194a RD |
26014 | bool temp7 = False ; |
26015 | bool temp9 = False ; | |
d14a1e28 | 26016 | PyObject * obj0 = 0 ; |
8edf1c75 | 26017 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26018 | PyObject * obj2 = 0 ; |
26019 | PyObject * obj3 = 0 ; | |
26020 | PyObject * obj4 = 0 ; | |
8edf1c75 | 26021 | PyObject * obj5 = 0 ; |
d14a1e28 | 26022 | PyObject * obj6 = 0 ; |
8edf1c75 | 26023 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
26024 | PyObject * obj8 = 0 ; |
26025 | char *kwnames[] = { | |
26026 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
26027 | }; | |
26028 | ||
8edf1c75 | 26029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 26030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26031 | if (obj1) { |
26032 | { | |
26033 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
26034 | if (PyErr_Occurred()) SWIG_fail; | |
26035 | } | |
26036 | } | |
d14a1e28 RD |
26037 | if (obj2) { |
26038 | { | |
26039 | arg3 = wxString_in_helper(obj2); | |
26040 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26041 | temp3 = True; |
d14a1e28 RD |
26042 | } |
26043 | } | |
26044 | if (obj3) { | |
26045 | { | |
26046 | arg4 = &temp4; | |
26047 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26048 | } | |
26049 | } | |
26050 | if (obj4) { | |
26051 | { | |
26052 | arg5 = &temp5; | |
26053 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26054 | } | |
26055 | } | |
8edf1c75 RD |
26056 | if (obj5) { |
26057 | { | |
26058 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
26059 | if (PyErr_Occurred()) SWIG_fail; | |
26060 | } | |
26061 | } | |
d14a1e28 RD |
26062 | if (obj6) { |
26063 | { | |
26064 | arg7 = wxString_in_helper(obj6); | |
26065 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 26066 | temp7 = True; |
d14a1e28 RD |
26067 | } |
26068 | } | |
8edf1c75 RD |
26069 | if (obj7) { |
26070 | { | |
26071 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
26072 | if (PyErr_Occurred()) SWIG_fail; | |
26073 | } | |
26074 | } | |
d14a1e28 RD |
26075 | if (obj8) { |
26076 | { | |
26077 | arg9 = wxString_in_helper(obj8); | |
26078 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 26079 | temp9 = True; |
d14a1e28 RD |
26080 | } |
26081 | } | |
26082 | { | |
26083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26084 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
26085 | ||
26086 | wxPyEndAllowThreads(__tstate); | |
26087 | if (PyErr_Occurred()) SWIG_fail; | |
26088 | } | |
26089 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
26090 | { | |
26091 | if (temp3) | |
26092 | delete arg3; | |
26093 | } | |
26094 | { | |
26095 | if (temp7) | |
26096 | delete arg7; | |
26097 | } | |
26098 | { | |
26099 | if (temp9) | |
26100 | delete arg9; | |
26101 | } | |
26102 | return resultobj; | |
26103 | fail: | |
26104 | { | |
26105 | if (temp3) | |
26106 | delete arg3; | |
26107 | } | |
26108 | { | |
26109 | if (temp7) | |
26110 | delete arg7; | |
26111 | } | |
26112 | { | |
26113 | if (temp9) | |
26114 | delete arg9; | |
26115 | } | |
26116 | return NULL; | |
26117 | } | |
26118 | ||
26119 | ||
26120 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26121 | PyObject *resultobj; | |
26122 | wxGenericDirCtrl *result; | |
26123 | char *kwnames[] = { | |
26124 | NULL | |
26125 | }; | |
26126 | ||
26127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
26128 | { | |
26129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26130 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
26131 | ||
26132 | wxPyEndAllowThreads(__tstate); | |
26133 | if (PyErr_Occurred()) SWIG_fail; | |
26134 | } | |
26135 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
26136 | return resultobj; | |
26137 | fail: | |
26138 | return NULL; | |
26139 | } | |
26140 | ||
26141 | ||
26142 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26143 | PyObject *resultobj; | |
26144 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26145 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 26146 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
26147 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
26148 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
26149 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
26150 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
26151 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
26152 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
26153 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
26154 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
26155 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
26156 | int arg9 = (int) 0 ; | |
cbd72d4f | 26157 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
26158 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
26159 | bool result; | |
423f194a | 26160 | bool temp4 = False ; |
d14a1e28 RD |
26161 | wxPoint temp5 ; |
26162 | wxSize temp6 ; | |
423f194a RD |
26163 | bool temp8 = False ; |
26164 | bool temp10 = False ; | |
d14a1e28 RD |
26165 | PyObject * obj0 = 0 ; |
26166 | PyObject * obj1 = 0 ; | |
8edf1c75 | 26167 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26168 | PyObject * obj3 = 0 ; |
26169 | PyObject * obj4 = 0 ; | |
26170 | PyObject * obj5 = 0 ; | |
8edf1c75 | 26171 | PyObject * obj6 = 0 ; |
d14a1e28 | 26172 | PyObject * obj7 = 0 ; |
8edf1c75 | 26173 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
26174 | PyObject * obj9 = 0 ; |
26175 | char *kwnames[] = { | |
26176 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
26177 | }; | |
26178 | ||
8edf1c75 | 26179 | 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 |
26180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26181 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
26182 | if (obj2) { |
26183 | { | |
26184 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
26185 | if (PyErr_Occurred()) SWIG_fail; | |
26186 | } | |
26187 | } | |
d14a1e28 RD |
26188 | if (obj3) { |
26189 | { | |
26190 | arg4 = wxString_in_helper(obj3); | |
26191 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 26192 | temp4 = True; |
d14a1e28 RD |
26193 | } |
26194 | } | |
26195 | if (obj4) { | |
26196 | { | |
26197 | arg5 = &temp5; | |
26198 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
26199 | } | |
26200 | } | |
26201 | if (obj5) { | |
26202 | { | |
26203 | arg6 = &temp6; | |
26204 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
26205 | } | |
26206 | } | |
8edf1c75 RD |
26207 | if (obj6) { |
26208 | { | |
26209 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
26210 | if (PyErr_Occurred()) SWIG_fail; | |
26211 | } | |
26212 | } | |
d14a1e28 RD |
26213 | if (obj7) { |
26214 | { | |
26215 | arg8 = wxString_in_helper(obj7); | |
26216 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 26217 | temp8 = True; |
d14a1e28 RD |
26218 | } |
26219 | } | |
8edf1c75 RD |
26220 | if (obj8) { |
26221 | { | |
26222 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
26223 | if (PyErr_Occurred()) SWIG_fail; | |
26224 | } | |
26225 | } | |
d14a1e28 RD |
26226 | if (obj9) { |
26227 | { | |
26228 | arg10 = wxString_in_helper(obj9); | |
26229 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 26230 | temp10 = True; |
d14a1e28 RD |
26231 | } |
26232 | } | |
26233 | { | |
26234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26235 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
26236 | ||
26237 | wxPyEndAllowThreads(__tstate); | |
26238 | if (PyErr_Occurred()) SWIG_fail; | |
26239 | } | |
02a34c4c | 26240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26241 | { |
26242 | if (temp4) | |
26243 | delete arg4; | |
26244 | } | |
26245 | { | |
26246 | if (temp8) | |
26247 | delete arg8; | |
26248 | } | |
26249 | { | |
26250 | if (temp10) | |
26251 | delete arg10; | |
26252 | } | |
26253 | return resultobj; | |
26254 | fail: | |
26255 | { | |
26256 | if (temp4) | |
26257 | delete arg4; | |
26258 | } | |
26259 | { | |
26260 | if (temp8) | |
26261 | delete arg8; | |
26262 | } | |
26263 | { | |
26264 | if (temp10) | |
26265 | delete arg10; | |
26266 | } | |
26267 | return NULL; | |
26268 | } | |
26269 | ||
26270 | ||
26271 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26272 | PyObject *resultobj; | |
26273 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26274 | wxString *arg2 = 0 ; | |
26275 | bool result; | |
423f194a | 26276 | bool temp2 = False ; |
d14a1e28 RD |
26277 | PyObject * obj0 = 0 ; |
26278 | PyObject * obj1 = 0 ; | |
26279 | char *kwnames[] = { | |
26280 | (char *) "self",(char *) "path", NULL | |
26281 | }; | |
26282 | ||
26283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
26284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26285 | { | |
26286 | arg2 = wxString_in_helper(obj1); | |
26287 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26288 | temp2 = True; |
d14a1e28 RD |
26289 | } |
26290 | { | |
26291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26292 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
26293 | ||
26294 | wxPyEndAllowThreads(__tstate); | |
26295 | if (PyErr_Occurred()) SWIG_fail; | |
26296 | } | |
02a34c4c | 26297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26298 | { |
26299 | if (temp2) | |
26300 | delete arg2; | |
26301 | } | |
26302 | return resultobj; | |
26303 | fail: | |
26304 | { | |
26305 | if (temp2) | |
26306 | delete arg2; | |
26307 | } | |
26308 | return NULL; | |
26309 | } | |
26310 | ||
26311 | ||
26312 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26313 | PyObject *resultobj; | |
26314 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26315 | wxString result; | |
26316 | PyObject * obj0 = 0 ; | |
26317 | char *kwnames[] = { | |
26318 | (char *) "self", NULL | |
26319 | }; | |
26320 | ||
26321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
26322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26323 | { | |
26324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26325 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
26326 | ||
26327 | wxPyEndAllowThreads(__tstate); | |
26328 | if (PyErr_Occurred()) SWIG_fail; | |
26329 | } | |
26330 | { | |
26331 | #if wxUSE_UNICODE | |
26332 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26333 | #else | |
26334 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26335 | #endif | |
26336 | } | |
26337 | return resultobj; | |
26338 | fail: | |
26339 | return NULL; | |
26340 | } | |
26341 | ||
26342 | ||
26343 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26344 | PyObject *resultobj; | |
26345 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26346 | wxString *arg2 = 0 ; | |
423f194a | 26347 | bool temp2 = False ; |
d14a1e28 RD |
26348 | PyObject * obj0 = 0 ; |
26349 | PyObject * obj1 = 0 ; | |
26350 | char *kwnames[] = { | |
26351 | (char *) "self",(char *) "path", NULL | |
26352 | }; | |
26353 | ||
26354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
26355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26356 | { | |
26357 | arg2 = wxString_in_helper(obj1); | |
26358 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26359 | temp2 = True; |
d14a1e28 RD |
26360 | } |
26361 | { | |
26362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26363 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
26364 | ||
26365 | wxPyEndAllowThreads(__tstate); | |
26366 | if (PyErr_Occurred()) SWIG_fail; | |
26367 | } | |
26368 | Py_INCREF(Py_None); resultobj = Py_None; | |
26369 | { | |
26370 | if (temp2) | |
26371 | delete arg2; | |
26372 | } | |
26373 | return resultobj; | |
26374 | fail: | |
26375 | { | |
26376 | if (temp2) | |
26377 | delete arg2; | |
26378 | } | |
26379 | return NULL; | |
26380 | } | |
26381 | ||
26382 | ||
26383 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26384 | PyObject *resultobj; | |
26385 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26386 | wxString result; | |
26387 | PyObject * obj0 = 0 ; | |
26388 | char *kwnames[] = { | |
26389 | (char *) "self", NULL | |
26390 | }; | |
26391 | ||
26392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
26393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26394 | { | |
26395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26396 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
26397 | ||
26398 | wxPyEndAllowThreads(__tstate); | |
26399 | if (PyErr_Occurred()) SWIG_fail; | |
26400 | } | |
26401 | { | |
26402 | #if wxUSE_UNICODE | |
26403 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26404 | #else | |
26405 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26406 | #endif | |
26407 | } | |
26408 | return resultobj; | |
26409 | fail: | |
26410 | return NULL; | |
26411 | } | |
26412 | ||
26413 | ||
26414 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26415 | PyObject *resultobj; | |
26416 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26417 | wxString result; | |
26418 | PyObject * obj0 = 0 ; | |
26419 | char *kwnames[] = { | |
26420 | (char *) "self", NULL | |
26421 | }; | |
26422 | ||
26423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
26424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26425 | { | |
26426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26427 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
26428 | ||
26429 | wxPyEndAllowThreads(__tstate); | |
26430 | if (PyErr_Occurred()) SWIG_fail; | |
26431 | } | |
26432 | { | |
26433 | #if wxUSE_UNICODE | |
26434 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26435 | #else | |
26436 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26437 | #endif | |
26438 | } | |
26439 | return resultobj; | |
26440 | fail: | |
26441 | return NULL; | |
26442 | } | |
26443 | ||
26444 | ||
26445 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26446 | PyObject *resultobj; | |
26447 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26448 | wxString *arg2 = 0 ; | |
423f194a | 26449 | bool temp2 = False ; |
d14a1e28 RD |
26450 | PyObject * obj0 = 0 ; |
26451 | PyObject * obj1 = 0 ; | |
26452 | char *kwnames[] = { | |
26453 | (char *) "self",(char *) "path", NULL | |
26454 | }; | |
26455 | ||
26456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
26457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26458 | { | |
26459 | arg2 = wxString_in_helper(obj1); | |
26460 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26461 | temp2 = True; |
d14a1e28 RD |
26462 | } |
26463 | { | |
26464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26465 | (arg1)->SetPath((wxString const &)*arg2); | |
26466 | ||
26467 | wxPyEndAllowThreads(__tstate); | |
26468 | if (PyErr_Occurred()) SWIG_fail; | |
26469 | } | |
26470 | Py_INCREF(Py_None); resultobj = Py_None; | |
26471 | { | |
26472 | if (temp2) | |
26473 | delete arg2; | |
26474 | } | |
26475 | return resultobj; | |
26476 | fail: | |
26477 | { | |
26478 | if (temp2) | |
26479 | delete arg2; | |
26480 | } | |
26481 | return NULL; | |
26482 | } | |
26483 | ||
26484 | ||
26485 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26486 | PyObject *resultobj; | |
26487 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26488 | bool arg2 ; | |
26489 | PyObject * obj0 = 0 ; | |
26490 | PyObject * obj1 = 0 ; | |
26491 | char *kwnames[] = { | |
26492 | (char *) "self",(char *) "show", NULL | |
26493 | }; | |
26494 | ||
26495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
26496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 26497 | { |
8edf1c75 | 26498 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
26499 | if (PyErr_Occurred()) SWIG_fail; |
26500 | } | |
d14a1e28 RD |
26501 | { |
26502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26503 | (arg1)->ShowHidden(arg2); | |
26504 | ||
26505 | wxPyEndAllowThreads(__tstate); | |
26506 | if (PyErr_Occurred()) SWIG_fail; | |
26507 | } | |
26508 | Py_INCREF(Py_None); resultobj = Py_None; | |
26509 | return resultobj; | |
26510 | fail: | |
26511 | return NULL; | |
26512 | } | |
26513 | ||
26514 | ||
26515 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26516 | PyObject *resultobj; | |
26517 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26518 | bool result; | |
26519 | PyObject * obj0 = 0 ; | |
26520 | char *kwnames[] = { | |
26521 | (char *) "self", NULL | |
26522 | }; | |
26523 | ||
26524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
26525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26526 | { | |
26527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26528 | result = (bool)(arg1)->GetShowHidden(); | |
26529 | ||
26530 | wxPyEndAllowThreads(__tstate); | |
26531 | if (PyErr_Occurred()) SWIG_fail; | |
26532 | } | |
02a34c4c | 26533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26534 | return resultobj; |
26535 | fail: | |
26536 | return NULL; | |
26537 | } | |
26538 | ||
26539 | ||
26540 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26541 | PyObject *resultobj; | |
26542 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26543 | wxString result; | |
26544 | PyObject * obj0 = 0 ; | |
26545 | char *kwnames[] = { | |
26546 | (char *) "self", NULL | |
26547 | }; | |
26548 | ||
26549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
26550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26551 | { | |
26552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26553 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
26554 | ||
26555 | wxPyEndAllowThreads(__tstate); | |
26556 | if (PyErr_Occurred()) SWIG_fail; | |
26557 | } | |
26558 | { | |
26559 | #if wxUSE_UNICODE | |
26560 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26561 | #else | |
26562 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26563 | #endif | |
26564 | } | |
26565 | return resultobj; | |
26566 | fail: | |
26567 | return NULL; | |
26568 | } | |
26569 | ||
26570 | ||
26571 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26572 | PyObject *resultobj; | |
26573 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26574 | wxString *arg2 = 0 ; | |
423f194a | 26575 | bool temp2 = False ; |
d14a1e28 RD |
26576 | PyObject * obj0 = 0 ; |
26577 | PyObject * obj1 = 0 ; | |
26578 | char *kwnames[] = { | |
26579 | (char *) "self",(char *) "filter", NULL | |
26580 | }; | |
26581 | ||
26582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
26583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26584 | { | |
26585 | arg2 = wxString_in_helper(obj1); | |
26586 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26587 | temp2 = True; |
d14a1e28 RD |
26588 | } |
26589 | { | |
26590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26591 | (arg1)->SetFilter((wxString const &)*arg2); | |
26592 | ||
26593 | wxPyEndAllowThreads(__tstate); | |
26594 | if (PyErr_Occurred()) SWIG_fail; | |
26595 | } | |
26596 | Py_INCREF(Py_None); resultobj = Py_None; | |
26597 | { | |
26598 | if (temp2) | |
26599 | delete arg2; | |
26600 | } | |
26601 | return resultobj; | |
26602 | fail: | |
26603 | { | |
26604 | if (temp2) | |
26605 | delete arg2; | |
26606 | } | |
26607 | return NULL; | |
26608 | } | |
26609 | ||
26610 | ||
26611 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26612 | PyObject *resultobj; | |
26613 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26614 | int result; | |
26615 | PyObject * obj0 = 0 ; | |
26616 | char *kwnames[] = { | |
26617 | (char *) "self", NULL | |
26618 | }; | |
26619 | ||
26620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
26621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26622 | { | |
26623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26624 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
26625 | ||
26626 | wxPyEndAllowThreads(__tstate); | |
26627 | if (PyErr_Occurred()) SWIG_fail; | |
26628 | } | |
8edf1c75 | 26629 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
26630 | return resultobj; |
26631 | fail: | |
26632 | return NULL; | |
26633 | } | |
26634 | ||
26635 | ||
26636 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26637 | PyObject *resultobj; | |
26638 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26639 | int arg2 ; | |
26640 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26641 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26642 | char *kwnames[] = { |
26643 | (char *) "self",(char *) "n", NULL | |
26644 | }; | |
26645 | ||
8edf1c75 | 26646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 26647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26648 | { |
26649 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26650 | if (PyErr_Occurred()) SWIG_fail; | |
26651 | } | |
d14a1e28 RD |
26652 | { |
26653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26654 | (arg1)->SetFilterIndex(arg2); | |
26655 | ||
26656 | wxPyEndAllowThreads(__tstate); | |
26657 | if (PyErr_Occurred()) SWIG_fail; | |
26658 | } | |
26659 | Py_INCREF(Py_None); resultobj = Py_None; | |
26660 | return resultobj; | |
26661 | fail: | |
26662 | return NULL; | |
26663 | } | |
26664 | ||
26665 | ||
26666 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26667 | PyObject *resultobj; | |
26668 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26669 | wxTreeItemId result; | |
26670 | PyObject * obj0 = 0 ; | |
26671 | char *kwnames[] = { | |
26672 | (char *) "self", NULL | |
26673 | }; | |
26674 | ||
26675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
26676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26677 | { | |
26678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26679 | result = (arg1)->GetRootId(); | |
26680 | ||
26681 | wxPyEndAllowThreads(__tstate); | |
26682 | if (PyErr_Occurred()) SWIG_fail; | |
26683 | } | |
26684 | { | |
26685 | wxTreeItemId * resultptr; | |
26686 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26687 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
26688 | } | |
26689 | return resultobj; | |
26690 | fail: | |
26691 | return NULL; | |
26692 | } | |
26693 | ||
26694 | ||
26695 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26696 | PyObject *resultobj; | |
26697 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
cbd72d4f | 26698 | wxPyTreeCtrl *result; |
d14a1e28 RD |
26699 | PyObject * obj0 = 0 ; |
26700 | char *kwnames[] = { | |
26701 | (char *) "self", NULL | |
26702 | }; | |
26703 | ||
26704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
26705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26706 | { | |
26707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
cbd72d4f | 26708 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
26709 | |
26710 | wxPyEndAllowThreads(__tstate); | |
26711 | if (PyErr_Occurred()) SWIG_fail; | |
26712 | } | |
26713 | { | |
26714 | resultobj = wxPyMake_wxObject(result); | |
26715 | } | |
26716 | return resultobj; | |
26717 | fail: | |
26718 | return NULL; | |
26719 | } | |
26720 | ||
26721 | ||
26722 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26723 | PyObject *resultobj; | |
26724 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26725 | wxDirFilterListCtrl *result; | |
26726 | PyObject * obj0 = 0 ; | |
26727 | char *kwnames[] = { | |
26728 | (char *) "self", NULL | |
26729 | }; | |
26730 | ||
26731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
26732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26733 | { | |
26734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26735 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
26736 | ||
26737 | wxPyEndAllowThreads(__tstate); | |
26738 | if (PyErr_Occurred()) SWIG_fail; | |
26739 | } | |
26740 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
26741 | return resultobj; | |
26742 | fail: | |
26743 | return NULL; | |
26744 | } | |
26745 | ||
26746 | ||
26747 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26748 | PyObject *resultobj; | |
26749 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26750 | wxTreeItemId arg2 ; | |
26751 | wxString *arg3 = 0 ; | |
26752 | bool *arg4 = 0 ; | |
26753 | wxTreeItemId result; | |
26754 | wxTreeItemId *argp2 ; | |
423f194a | 26755 | bool temp3 = False ; |
d14a1e28 RD |
26756 | bool temp4 ; |
26757 | PyObject * obj0 = 0 ; | |
26758 | PyObject * obj1 = 0 ; | |
26759 | PyObject * obj2 = 0 ; | |
26760 | char *kwnames[] = { | |
26761 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
26762 | }; | |
26763 | ||
26764 | arg4 = &temp4; | |
26765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26767 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
26768 | arg2 = *argp2; | |
26769 | { | |
26770 | arg3 = wxString_in_helper(obj2); | |
26771 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26772 | temp3 = True; |
d14a1e28 RD |
26773 | } |
26774 | { | |
26775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26776 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
26777 | ||
26778 | wxPyEndAllowThreads(__tstate); | |
26779 | if (PyErr_Occurred()) SWIG_fail; | |
26780 | } | |
26781 | { | |
26782 | wxTreeItemId * resultptr; | |
26783 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26784 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
26785 | } | |
26786 | { | |
26787 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26788 | resultobj = t_output_helper(resultobj,o); | |
26789 | } | |
26790 | { | |
26791 | if (temp3) | |
26792 | delete arg3; | |
26793 | } | |
26794 | return resultobj; | |
26795 | fail: | |
26796 | { | |
26797 | if (temp3) | |
26798 | delete arg3; | |
26799 | } | |
26800 | return NULL; | |
26801 | } | |
26802 | ||
26803 | ||
26804 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26805 | PyObject *resultobj; | |
26806 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26807 | PyObject * obj0 = 0 ; | |
26808 | char *kwnames[] = { | |
26809 | (char *) "self", NULL | |
26810 | }; | |
26811 | ||
26812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
26813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26814 | { | |
26815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26816 | (arg1)->DoResize(); | |
26817 | ||
26818 | wxPyEndAllowThreads(__tstate); | |
26819 | if (PyErr_Occurred()) SWIG_fail; | |
26820 | } | |
26821 | Py_INCREF(Py_None); resultobj = Py_None; | |
26822 | return resultobj; | |
26823 | fail: | |
26824 | return NULL; | |
26825 | } | |
26826 | ||
26827 | ||
26828 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26829 | PyObject *resultobj; | |
26830 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26831 | PyObject * obj0 = 0 ; | |
26832 | char *kwnames[] = { | |
26833 | (char *) "self", NULL | |
26834 | }; | |
26835 | ||
26836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
26837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26838 | { | |
26839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26840 | (arg1)->ReCreateTree(); | |
26841 | ||
26842 | wxPyEndAllowThreads(__tstate); | |
26843 | if (PyErr_Occurred()) SWIG_fail; | |
26844 | } | |
26845 | Py_INCREF(Py_None); resultobj = Py_None; | |
26846 | return resultobj; | |
26847 | fail: | |
26848 | return NULL; | |
26849 | } | |
26850 | ||
26851 | ||
26852 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
26853 | PyObject *obj; | |
26854 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26855 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
26856 | Py_INCREF(obj); | |
26857 | return Py_BuildValue((char *)""); | |
26858 | } | |
26859 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26860 | PyObject *resultobj; | |
26861 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 26862 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
26863 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
26864 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
26865 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
26866 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
26867 | long arg5 = (long) 0 ; | |
26868 | wxDirFilterListCtrl *result; | |
26869 | wxPoint temp3 ; | |
26870 | wxSize temp4 ; | |
26871 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26872 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26873 | PyObject * obj2 = 0 ; |
26874 | PyObject * obj3 = 0 ; | |
8edf1c75 | 26875 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
26876 | char *kwnames[] = { |
26877 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
26878 | }; | |
26879 | ||
8edf1c75 | 26880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 26881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26882 | if (obj1) { |
26883 | { | |
26884 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
26885 | if (PyErr_Occurred()) SWIG_fail; | |
26886 | } | |
26887 | } | |
d14a1e28 RD |
26888 | if (obj2) { |
26889 | { | |
26890 | arg3 = &temp3; | |
26891 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26892 | } | |
26893 | } | |
26894 | if (obj3) { | |
26895 | { | |
26896 | arg4 = &temp4; | |
26897 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
26898 | } | |
26899 | } | |
8edf1c75 RD |
26900 | if (obj4) { |
26901 | { | |
26902 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
26903 | if (PyErr_Occurred()) SWIG_fail; | |
26904 | } | |
26905 | } | |
d14a1e28 RD |
26906 | { |
26907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26908 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
26909 | ||
26910 | wxPyEndAllowThreads(__tstate); | |
26911 | if (PyErr_Occurred()) SWIG_fail; | |
26912 | } | |
26913 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
26914 | return resultobj; | |
26915 | fail: | |
26916 | return NULL; | |
26917 | } | |
26918 | ||
26919 | ||
26920 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26921 | PyObject *resultobj; | |
26922 | wxDirFilterListCtrl *result; | |
26923 | char *kwnames[] = { | |
26924 | NULL | |
26925 | }; | |
26926 | ||
26927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
26928 | { | |
26929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26930 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
26931 | ||
26932 | wxPyEndAllowThreads(__tstate); | |
26933 | if (PyErr_Occurred()) SWIG_fail; | |
26934 | } | |
26935 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
26936 | return resultobj; | |
26937 | fail: | |
26938 | return NULL; | |
26939 | } | |
26940 | ||
26941 | ||
26942 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26943 | PyObject *resultobj; | |
26944 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
26945 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 26946 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
26947 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
26948 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26949 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26950 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26951 | long arg6 = (long) 0 ; | |
26952 | bool result; | |
26953 | wxPoint temp4 ; | |
26954 | wxSize temp5 ; | |
26955 | PyObject * obj0 = 0 ; | |
26956 | PyObject * obj1 = 0 ; | |
8edf1c75 | 26957 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26958 | PyObject * obj3 = 0 ; |
26959 | PyObject * obj4 = 0 ; | |
8edf1c75 | 26960 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
26961 | char *kwnames[] = { |
26962 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
26963 | }; | |
26964 | ||
8edf1c75 | 26965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
26966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26967 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
26968 | if (obj2) { |
26969 | { | |
26970 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
26971 | if (PyErr_Occurred()) SWIG_fail; | |
26972 | } | |
26973 | } | |
d14a1e28 RD |
26974 | if (obj3) { |
26975 | { | |
26976 | arg4 = &temp4; | |
26977 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26978 | } | |
26979 | } | |
26980 | if (obj4) { | |
26981 | { | |
26982 | arg5 = &temp5; | |
26983 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26984 | } | |
26985 | } | |
8edf1c75 RD |
26986 | if (obj5) { |
26987 | { | |
26988 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
26989 | if (PyErr_Occurred()) SWIG_fail; | |
26990 | } | |
26991 | } | |
d14a1e28 RD |
26992 | { |
26993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26994 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
26995 | ||
26996 | wxPyEndAllowThreads(__tstate); | |
26997 | if (PyErr_Occurred()) SWIG_fail; | |
26998 | } | |
02a34c4c | 26999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27000 | return resultobj; |
27001 | fail: | |
27002 | return NULL; | |
27003 | } | |
27004 | ||
27005 | ||
27006 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27007 | PyObject *resultobj; | |
27008 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
27009 | wxString *arg2 = 0 ; | |
27010 | int arg3 ; | |
423f194a | 27011 | bool temp2 = False ; |
d14a1e28 RD |
27012 | PyObject * obj0 = 0 ; |
27013 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27014 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27015 | char *kwnames[] = { |
27016 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
27017 | }; | |
27018 | ||
8edf1c75 | 27019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
27020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
27021 | { | |
27022 | arg2 = wxString_in_helper(obj1); | |
27023 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27024 | temp2 = True; |
d14a1e28 | 27025 | } |
8edf1c75 RD |
27026 | { |
27027 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27028 | if (PyErr_Occurred()) SWIG_fail; | |
27029 | } | |
d14a1e28 RD |
27030 | { |
27031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27032 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
27033 | ||
27034 | wxPyEndAllowThreads(__tstate); | |
27035 | if (PyErr_Occurred()) SWIG_fail; | |
27036 | } | |
27037 | Py_INCREF(Py_None); resultobj = Py_None; | |
27038 | { | |
27039 | if (temp2) | |
27040 | delete arg2; | |
27041 | } | |
27042 | return resultobj; | |
27043 | fail: | |
27044 | { | |
27045 | if (temp2) | |
27046 | delete arg2; | |
27047 | } | |
27048 | return NULL; | |
27049 | } | |
27050 | ||
27051 | ||
27052 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
27053 | PyObject *obj; | |
27054 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27055 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
27056 | Py_INCREF(obj); | |
27057 | return Py_BuildValue((char *)""); | |
27058 | } | |
27059 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27060 | PyObject *resultobj; | |
27061 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 27062 | int arg2 ; |
d14a1e28 RD |
27063 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27064 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27065 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27066 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27067 | long arg5 = (long) 0 ; | |
27068 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
27069 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
27070 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
27071 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27072 | wxPyControl *result; | |
27073 | wxPoint temp3 ; | |
27074 | wxSize temp4 ; | |
423f194a | 27075 | bool temp7 = False ; |
d14a1e28 | 27076 | PyObject * obj0 = 0 ; |
8edf1c75 | 27077 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27078 | PyObject * obj2 = 0 ; |
27079 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27080 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
27081 | PyObject * obj5 = 0 ; |
27082 | PyObject * obj6 = 0 ; | |
27083 | char *kwnames[] = { | |
27084 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
27085 | }; | |
27086 | ||
8edf1c75 | 27087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 27088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27089 | { |
27090 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
27091 | if (PyErr_Occurred()) SWIG_fail; | |
27092 | } | |
d14a1e28 RD |
27093 | if (obj2) { |
27094 | { | |
27095 | arg3 = &temp3; | |
27096 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27097 | } | |
27098 | } | |
27099 | if (obj3) { | |
27100 | { | |
27101 | arg4 = &temp4; | |
27102 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27103 | } | |
27104 | } | |
8edf1c75 RD |
27105 | if (obj4) { |
27106 | { | |
27107 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
27108 | if (PyErr_Occurred()) SWIG_fail; | |
27109 | } | |
27110 | } | |
d14a1e28 RD |
27111 | if (obj5) { |
27112 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27113 | if (arg6 == NULL) { | |
27114 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
27115 | } | |
27116 | } | |
27117 | if (obj6) { | |
27118 | { | |
27119 | arg7 = wxString_in_helper(obj6); | |
27120 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 27121 | temp7 = True; |
d14a1e28 RD |
27122 | } |
27123 | } | |
27124 | { | |
27125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27126 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
27127 | ||
27128 | wxPyEndAllowThreads(__tstate); | |
27129 | if (PyErr_Occurred()) SWIG_fail; | |
27130 | } | |
27131 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControl, 1); | |
27132 | { | |
27133 | if (temp7) | |
27134 | delete arg7; | |
27135 | } | |
27136 | return resultobj; | |
27137 | fail: | |
27138 | { | |
27139 | if (temp7) | |
27140 | delete arg7; | |
27141 | } | |
27142 | return NULL; | |
27143 | } | |
27144 | ||
27145 | ||
27146 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27147 | PyObject *resultobj; | |
27148 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27149 | PyObject *arg2 = (PyObject *) 0 ; | |
27150 | PyObject *arg3 = (PyObject *) 0 ; | |
27151 | PyObject * obj0 = 0 ; | |
27152 | PyObject * obj1 = 0 ; | |
27153 | PyObject * obj2 = 0 ; | |
27154 | char *kwnames[] = { | |
27155 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27156 | }; | |
27157 | ||
27158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27160 | arg2 = obj1; | |
27161 | arg3 = obj2; | |
27162 | { | |
27163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27164 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27165 | ||
27166 | wxPyEndAllowThreads(__tstate); | |
27167 | if (PyErr_Occurred()) SWIG_fail; | |
27168 | } | |
27169 | Py_INCREF(Py_None); resultobj = Py_None; | |
27170 | return resultobj; | |
27171 | fail: | |
27172 | return NULL; | |
27173 | } | |
27174 | ||
27175 | ||
27176 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27177 | PyObject *resultobj; | |
27178 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27179 | int arg2 ; | |
27180 | int arg3 ; | |
27181 | int arg4 ; | |
27182 | int arg5 ; | |
27183 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27184 | PyObject * obj1 = 0 ; |
27185 | PyObject * obj2 = 0 ; | |
27186 | PyObject * obj3 = 0 ; | |
27187 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27188 | char *kwnames[] = { |
27189 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
27190 | }; | |
27191 | ||
8edf1c75 | 27192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27194 | { |
27195 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27196 | if (PyErr_Occurred()) SWIG_fail; | |
27197 | } | |
27198 | { | |
27199 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27200 | if (PyErr_Occurred()) SWIG_fail; | |
27201 | } | |
27202 | { | |
27203 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
27204 | if (PyErr_Occurred()) SWIG_fail; | |
27205 | } | |
27206 | { | |
27207 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
27208 | if (PyErr_Occurred()) SWIG_fail; | |
27209 | } | |
d14a1e28 RD |
27210 | { |
27211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27212 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
27213 | ||
27214 | wxPyEndAllowThreads(__tstate); | |
27215 | if (PyErr_Occurred()) SWIG_fail; | |
27216 | } | |
27217 | Py_INCREF(Py_None); resultobj = Py_None; | |
27218 | return resultobj; | |
27219 | fail: | |
27220 | return NULL; | |
27221 | } | |
27222 | ||
27223 | ||
27224 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27225 | PyObject *resultobj; | |
27226 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27227 | int arg2 ; | |
27228 | int arg3 ; | |
27229 | int arg4 ; | |
27230 | int arg5 ; | |
27231 | int arg6 = (int) wxSIZE_AUTO ; | |
27232 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27233 | PyObject * obj1 = 0 ; |
27234 | PyObject * obj2 = 0 ; | |
27235 | PyObject * obj3 = 0 ; | |
27236 | PyObject * obj4 = 0 ; | |
27237 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
27238 | char *kwnames[] = { |
27239 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
27240 | }; | |
27241 | ||
8edf1c75 | 27242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 27243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27244 | { |
27245 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27246 | if (PyErr_Occurred()) SWIG_fail; | |
27247 | } | |
27248 | { | |
27249 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27250 | if (PyErr_Occurred()) SWIG_fail; | |
27251 | } | |
27252 | { | |
27253 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
27254 | if (PyErr_Occurred()) SWIG_fail; | |
27255 | } | |
27256 | { | |
27257 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
27258 | if (PyErr_Occurred()) SWIG_fail; | |
27259 | } | |
27260 | if (obj5) { | |
27261 | { | |
27262 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
27263 | if (PyErr_Occurred()) SWIG_fail; | |
27264 | } | |
27265 | } | |
d14a1e28 RD |
27266 | { |
27267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27268 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
27269 | ||
27270 | wxPyEndAllowThreads(__tstate); | |
27271 | if (PyErr_Occurred()) SWIG_fail; | |
27272 | } | |
27273 | Py_INCREF(Py_None); resultobj = Py_None; | |
27274 | return resultobj; | |
27275 | fail: | |
27276 | return NULL; | |
27277 | } | |
27278 | ||
27279 | ||
27280 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27281 | PyObject *resultobj; | |
27282 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27283 | int arg2 ; | |
27284 | int arg3 ; | |
27285 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27286 | PyObject * obj1 = 0 ; |
27287 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27288 | char *kwnames[] = { |
27289 | (char *) "self",(char *) "width",(char *) "height", NULL | |
27290 | }; | |
27291 | ||
8edf1c75 | 27292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 27293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27294 | { |
27295 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27296 | if (PyErr_Occurred()) SWIG_fail; | |
27297 | } | |
27298 | { | |
27299 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27300 | if (PyErr_Occurred()) SWIG_fail; | |
27301 | } | |
d14a1e28 RD |
27302 | { |
27303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27304 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
27305 | ||
27306 | wxPyEndAllowThreads(__tstate); | |
27307 | if (PyErr_Occurred()) SWIG_fail; | |
27308 | } | |
27309 | Py_INCREF(Py_None); resultobj = Py_None; | |
27310 | return resultobj; | |
27311 | fail: | |
27312 | return NULL; | |
27313 | } | |
27314 | ||
27315 | ||
27316 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27317 | PyObject *resultobj; | |
27318 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27319 | int arg2 ; | |
27320 | int arg3 ; | |
27321 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27322 | PyObject * obj1 = 0 ; |
27323 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27324 | char *kwnames[] = { |
27325 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27326 | }; | |
27327 | ||
8edf1c75 | 27328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 27329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27330 | { |
27331 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27332 | if (PyErr_Occurred()) SWIG_fail; | |
27333 | } | |
27334 | { | |
27335 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27336 | if (PyErr_Occurred()) SWIG_fail; | |
27337 | } | |
d14a1e28 RD |
27338 | { |
27339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27340 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
27341 | ||
27342 | wxPyEndAllowThreads(__tstate); | |
27343 | if (PyErr_Occurred()) SWIG_fail; | |
27344 | } | |
27345 | Py_INCREF(Py_None); resultobj = Py_None; | |
27346 | return resultobj; | |
27347 | fail: | |
27348 | return NULL; | |
27349 | } | |
27350 | ||
27351 | ||
27352 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27353 | PyObject *resultobj; | |
27354 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27355 | int *arg2 = (int *) 0 ; | |
27356 | int *arg3 = (int *) 0 ; | |
27357 | int temp2 ; | |
27358 | int temp3 ; | |
27359 | PyObject * obj0 = 0 ; | |
27360 | char *kwnames[] = { | |
27361 | (char *) "self", NULL | |
27362 | }; | |
27363 | ||
27364 | arg2 = &temp2; | |
27365 | arg3 = &temp3; | |
27366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
27367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27368 | { | |
27369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27370 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
27371 | ||
27372 | wxPyEndAllowThreads(__tstate); | |
27373 | if (PyErr_Occurred()) SWIG_fail; | |
27374 | } | |
27375 | Py_INCREF(Py_None); resultobj = Py_None; | |
27376 | { | |
27377 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27378 | resultobj = t_output_helper(resultobj,o); | |
27379 | } | |
27380 | { | |
27381 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27382 | resultobj = t_output_helper(resultobj,o); | |
27383 | } | |
27384 | return resultobj; | |
27385 | fail: | |
27386 | return NULL; | |
27387 | } | |
27388 | ||
27389 | ||
27390 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27391 | PyObject *resultobj; | |
27392 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27393 | int *arg2 = (int *) 0 ; | |
27394 | int *arg3 = (int *) 0 ; | |
27395 | int temp2 ; | |
27396 | int temp3 ; | |
27397 | PyObject * obj0 = 0 ; | |
27398 | char *kwnames[] = { | |
27399 | (char *) "self", NULL | |
27400 | }; | |
27401 | ||
27402 | arg2 = &temp2; | |
27403 | arg3 = &temp3; | |
27404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
27405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27406 | { | |
27407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27408 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
27409 | ||
27410 | wxPyEndAllowThreads(__tstate); | |
27411 | if (PyErr_Occurred()) SWIG_fail; | |
27412 | } | |
27413 | Py_INCREF(Py_None); resultobj = Py_None; | |
27414 | { | |
27415 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27416 | resultobj = t_output_helper(resultobj,o); | |
27417 | } | |
27418 | { | |
27419 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27420 | resultobj = t_output_helper(resultobj,o); | |
27421 | } | |
27422 | return resultobj; | |
27423 | fail: | |
27424 | return NULL; | |
27425 | } | |
27426 | ||
27427 | ||
27428 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27429 | PyObject *resultobj; | |
27430 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27431 | int *arg2 = (int *) 0 ; | |
27432 | int *arg3 = (int *) 0 ; | |
27433 | int temp2 ; | |
27434 | int temp3 ; | |
27435 | PyObject * obj0 = 0 ; | |
27436 | char *kwnames[] = { | |
27437 | (char *) "self", NULL | |
27438 | }; | |
27439 | ||
27440 | arg2 = &temp2; | |
27441 | arg3 = &temp3; | |
27442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
27443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27444 | { | |
27445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27446 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
27447 | ||
27448 | wxPyEndAllowThreads(__tstate); | |
27449 | if (PyErr_Occurred()) SWIG_fail; | |
27450 | } | |
27451 | Py_INCREF(Py_None); resultobj = Py_None; | |
27452 | { | |
27453 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27454 | resultobj = t_output_helper(resultobj,o); | |
27455 | } | |
27456 | { | |
27457 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27458 | resultobj = t_output_helper(resultobj,o); | |
27459 | } | |
27460 | return resultobj; | |
27461 | fail: | |
27462 | return NULL; | |
27463 | } | |
27464 | ||
27465 | ||
27466 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27467 | PyObject *resultobj; | |
27468 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27469 | wxSize result; | |
27470 | PyObject * obj0 = 0 ; | |
27471 | char *kwnames[] = { | |
27472 | (char *) "self", NULL | |
27473 | }; | |
27474 | ||
27475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
27476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27477 | { | |
27478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27479 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
27480 | ||
27481 | wxPyEndAllowThreads(__tstate); | |
27482 | if (PyErr_Occurred()) SWIG_fail; | |
27483 | } | |
27484 | { | |
27485 | wxSize * resultptr; | |
27486 | resultptr = new wxSize((wxSize &) result); | |
27487 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27488 | } | |
27489 | return resultobj; | |
27490 | fail: | |
27491 | return NULL; | |
27492 | } | |
27493 | ||
27494 | ||
27495 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27496 | PyObject *resultobj; | |
27497 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27498 | wxSize result; | |
27499 | PyObject * obj0 = 0 ; | |
27500 | char *kwnames[] = { | |
27501 | (char *) "self", NULL | |
27502 | }; | |
27503 | ||
27504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
27505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27506 | { | |
27507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27508 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
27509 | ||
27510 | wxPyEndAllowThreads(__tstate); | |
27511 | if (PyErr_Occurred()) SWIG_fail; | |
27512 | } | |
27513 | { | |
27514 | wxSize * resultptr; | |
27515 | resultptr = new wxSize((wxSize &) result); | |
27516 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27517 | } | |
27518 | return resultobj; | |
27519 | fail: | |
27520 | return NULL; | |
27521 | } | |
27522 | ||
27523 | ||
27524 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27525 | PyObject *resultobj; | |
27526 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27527 | PyObject * obj0 = 0 ; | |
27528 | char *kwnames[] = { | |
27529 | (char *) "self", NULL | |
27530 | }; | |
27531 | ||
27532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
27533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27534 | { | |
27535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27536 | (arg1)->base_InitDialog(); | |
27537 | ||
27538 | wxPyEndAllowThreads(__tstate); | |
27539 | if (PyErr_Occurred()) SWIG_fail; | |
27540 | } | |
27541 | Py_INCREF(Py_None); resultobj = Py_None; | |
27542 | return resultobj; | |
27543 | fail: | |
27544 | return NULL; | |
27545 | } | |
27546 | ||
27547 | ||
27548 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27549 | PyObject *resultobj; | |
27550 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27551 | bool result; | |
27552 | PyObject * obj0 = 0 ; | |
27553 | char *kwnames[] = { | |
27554 | (char *) "self", NULL | |
27555 | }; | |
27556 | ||
27557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
27558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27559 | { | |
27560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27561 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
27562 | ||
27563 | wxPyEndAllowThreads(__tstate); | |
27564 | if (PyErr_Occurred()) SWIG_fail; | |
27565 | } | |
02a34c4c | 27566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27567 | return resultobj; |
27568 | fail: | |
27569 | return NULL; | |
27570 | } | |
27571 | ||
27572 | ||
27573 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27574 | PyObject *resultobj; | |
27575 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27576 | bool result; | |
27577 | PyObject * obj0 = 0 ; | |
27578 | char *kwnames[] = { | |
27579 | (char *) "self", NULL | |
27580 | }; | |
27581 | ||
27582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
27583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27584 | { | |
27585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27586 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
27587 | ||
27588 | wxPyEndAllowThreads(__tstate); | |
27589 | if (PyErr_Occurred()) SWIG_fail; | |
27590 | } | |
02a34c4c | 27591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27592 | return resultobj; |
27593 | fail: | |
27594 | return NULL; | |
27595 | } | |
27596 | ||
27597 | ||
27598 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27599 | PyObject *resultobj; | |
27600 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27601 | bool result; | |
27602 | PyObject * obj0 = 0 ; | |
27603 | char *kwnames[] = { | |
27604 | (char *) "self", NULL | |
27605 | }; | |
27606 | ||
27607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
27608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27609 | { | |
27610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27611 | result = (bool)(arg1)->base_Validate(); | |
27612 | ||
27613 | wxPyEndAllowThreads(__tstate); | |
27614 | if (PyErr_Occurred()) SWIG_fail; | |
27615 | } | |
02a34c4c | 27616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27617 | return resultobj; |
27618 | fail: | |
27619 | return NULL; | |
27620 | } | |
27621 | ||
27622 | ||
27623 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27624 | PyObject *resultobj; | |
27625 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27626 | bool result; | |
27627 | PyObject * obj0 = 0 ; | |
27628 | char *kwnames[] = { | |
27629 | (char *) "self", NULL | |
27630 | }; | |
27631 | ||
27632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
27633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27634 | { | |
27635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27636 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
27637 | ||
27638 | wxPyEndAllowThreads(__tstate); | |
27639 | if (PyErr_Occurred()) SWIG_fail; | |
27640 | } | |
02a34c4c | 27641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27642 | return resultobj; |
27643 | fail: | |
27644 | return NULL; | |
27645 | } | |
27646 | ||
27647 | ||
27648 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27649 | PyObject *resultobj; | |
27650 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27651 | bool result; | |
27652 | PyObject * obj0 = 0 ; | |
27653 | char *kwnames[] = { | |
27654 | (char *) "self", NULL | |
27655 | }; | |
27656 | ||
27657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
27658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27659 | { | |
27660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27661 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
27662 | ||
27663 | wxPyEndAllowThreads(__tstate); | |
27664 | if (PyErr_Occurred()) SWIG_fail; | |
27665 | } | |
02a34c4c | 27666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27667 | return resultobj; |
27668 | fail: | |
27669 | return NULL; | |
27670 | } | |
27671 | ||
27672 | ||
27673 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27674 | PyObject *resultobj; | |
27675 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27676 | wxSize result; | |
27677 | PyObject * obj0 = 0 ; | |
27678 | char *kwnames[] = { | |
27679 | (char *) "self", NULL | |
27680 | }; | |
27681 | ||
27682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
27683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27684 | { | |
27685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27686 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
27687 | ||
27688 | wxPyEndAllowThreads(__tstate); | |
27689 | if (PyErr_Occurred()) SWIG_fail; | |
27690 | } | |
27691 | { | |
27692 | wxSize * resultptr; | |
27693 | resultptr = new wxSize((wxSize &) result); | |
27694 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27695 | } | |
27696 | return resultobj; | |
27697 | fail: | |
27698 | return NULL; | |
27699 | } | |
27700 | ||
27701 | ||
27702 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27703 | PyObject *resultobj; | |
27704 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27705 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27706 | PyObject * obj0 = 0 ; | |
27707 | PyObject * obj1 = 0 ; | |
27708 | char *kwnames[] = { | |
27709 | (char *) "self",(char *) "child", NULL | |
27710 | }; | |
27711 | ||
27712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
27713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27714 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27715 | { | |
27716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27717 | (arg1)->base_AddChild(arg2); | |
27718 | ||
27719 | wxPyEndAllowThreads(__tstate); | |
27720 | if (PyErr_Occurred()) SWIG_fail; | |
27721 | } | |
27722 | Py_INCREF(Py_None); resultobj = Py_None; | |
27723 | return resultobj; | |
27724 | fail: | |
27725 | return NULL; | |
27726 | } | |
27727 | ||
27728 | ||
27729 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27730 | PyObject *resultobj; | |
27731 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27732 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27733 | PyObject * obj0 = 0 ; | |
27734 | PyObject * obj1 = 0 ; | |
27735 | char *kwnames[] = { | |
27736 | (char *) "self",(char *) "child", NULL | |
27737 | }; | |
27738 | ||
27739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
27740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27741 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27742 | { | |
27743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27744 | (arg1)->base_RemoveChild(arg2); | |
27745 | ||
27746 | wxPyEndAllowThreads(__tstate); | |
27747 | if (PyErr_Occurred()) SWIG_fail; | |
27748 | } | |
27749 | Py_INCREF(Py_None); resultobj = Py_None; | |
27750 | return resultobj; | |
27751 | fail: | |
27752 | return NULL; | |
27753 | } | |
27754 | ||
27755 | ||
27756 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
27757 | PyObject *obj; | |
27758 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27759 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
27760 | Py_INCREF(obj); | |
27761 | return Py_BuildValue((char *)""); | |
27762 | } | |
27763 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27764 | PyObject *resultobj; | |
27765 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 27766 | int arg2 = (int) 0 ; |
d14a1e28 RD |
27767 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27768 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27769 | wxHelpEvent *result; | |
27770 | wxPoint temp3 ; | |
8edf1c75 RD |
27771 | PyObject * obj0 = 0 ; |
27772 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
27773 | PyObject * obj2 = 0 ; |
27774 | char *kwnames[] = { | |
27775 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
27776 | }; | |
27777 | ||
8edf1c75 RD |
27778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
27779 | if (obj0) { | |
27780 | { | |
27781 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
27782 | if (PyErr_Occurred()) SWIG_fail; | |
27783 | } | |
27784 | } | |
27785 | if (obj1) { | |
27786 | { | |
27787 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27788 | if (PyErr_Occurred()) SWIG_fail; | |
27789 | } | |
27790 | } | |
d14a1e28 RD |
27791 | if (obj2) { |
27792 | { | |
27793 | arg3 = &temp3; | |
27794 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27795 | } | |
27796 | } | |
27797 | { | |
27798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27799 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
27800 | ||
27801 | wxPyEndAllowThreads(__tstate); | |
27802 | if (PyErr_Occurred()) SWIG_fail; | |
27803 | } | |
27804 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpEvent, 1); | |
27805 | return resultobj; | |
27806 | fail: | |
27807 | return NULL; | |
27808 | } | |
27809 | ||
27810 | ||
27811 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27812 | PyObject *resultobj; | |
27813 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27814 | wxPoint *result; | |
27815 | PyObject * obj0 = 0 ; | |
27816 | char *kwnames[] = { | |
27817 | (char *) "self", NULL | |
27818 | }; | |
27819 | ||
27820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
27821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27822 | { | |
27823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27824 | { | |
27825 | wxPoint const &_result_ref = ((wxHelpEvent const *)arg1)->GetPosition(); | |
27826 | result = (wxPoint *) &_result_ref; | |
27827 | } | |
27828 | ||
27829 | wxPyEndAllowThreads(__tstate); | |
27830 | if (PyErr_Occurred()) SWIG_fail; | |
27831 | } | |
27832 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
27833 | return resultobj; | |
27834 | fail: | |
27835 | return NULL; | |
27836 | } | |
27837 | ||
27838 | ||
27839 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27840 | PyObject *resultobj; | |
27841 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27842 | wxPoint *arg2 = 0 ; | |
27843 | wxPoint temp2 ; | |
27844 | PyObject * obj0 = 0 ; | |
27845 | PyObject * obj1 = 0 ; | |
27846 | char *kwnames[] = { | |
27847 | (char *) "self",(char *) "pos", NULL | |
27848 | }; | |
27849 | ||
27850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
27851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27852 | { | |
27853 | arg2 = &temp2; | |
27854 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27855 | } | |
27856 | { | |
27857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27858 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
27859 | ||
27860 | wxPyEndAllowThreads(__tstate); | |
27861 | if (PyErr_Occurred()) SWIG_fail; | |
27862 | } | |
27863 | Py_INCREF(Py_None); resultobj = Py_None; | |
27864 | return resultobj; | |
27865 | fail: | |
27866 | return NULL; | |
27867 | } | |
27868 | ||
27869 | ||
27870 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27871 | PyObject *resultobj; | |
27872 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27873 | wxString *result; | |
27874 | PyObject * obj0 = 0 ; | |
27875 | char *kwnames[] = { | |
27876 | (char *) "self", NULL | |
27877 | }; | |
27878 | ||
27879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
27880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27881 | { | |
27882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27883 | { | |
27884 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
27885 | result = (wxString *) &_result_ref; | |
27886 | } | |
27887 | ||
27888 | wxPyEndAllowThreads(__tstate); | |
27889 | if (PyErr_Occurred()) SWIG_fail; | |
27890 | } | |
0f774bef RD |
27891 | { |
27892 | #if wxUSE_UNICODE | |
27893 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27894 | #else | |
27895 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27896 | #endif | |
27897 | } | |
d14a1e28 RD |
27898 | return resultobj; |
27899 | fail: | |
27900 | return NULL; | |
27901 | } | |
27902 | ||
27903 | ||
27904 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27905 | PyObject *resultobj; | |
27906 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27907 | wxString *arg2 = 0 ; | |
423f194a | 27908 | bool temp2 = False ; |
d14a1e28 RD |
27909 | PyObject * obj0 = 0 ; |
27910 | PyObject * obj1 = 0 ; | |
27911 | char *kwnames[] = { | |
27912 | (char *) "self",(char *) "link", NULL | |
27913 | }; | |
27914 | ||
27915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
27916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27917 | { | |
27918 | arg2 = wxString_in_helper(obj1); | |
27919 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27920 | temp2 = True; |
d14a1e28 RD |
27921 | } |
27922 | { | |
27923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27924 | (arg1)->SetLink((wxString const &)*arg2); | |
27925 | ||
27926 | wxPyEndAllowThreads(__tstate); | |
27927 | if (PyErr_Occurred()) SWIG_fail; | |
27928 | } | |
27929 | Py_INCREF(Py_None); resultobj = Py_None; | |
27930 | { | |
27931 | if (temp2) | |
27932 | delete arg2; | |
27933 | } | |
27934 | return resultobj; | |
27935 | fail: | |
27936 | { | |
27937 | if (temp2) | |
27938 | delete arg2; | |
27939 | } | |
27940 | return NULL; | |
27941 | } | |
27942 | ||
27943 | ||
27944 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27945 | PyObject *resultobj; | |
27946 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27947 | wxString *result; | |
27948 | PyObject * obj0 = 0 ; | |
27949 | char *kwnames[] = { | |
27950 | (char *) "self", NULL | |
27951 | }; | |
27952 | ||
27953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
27954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27955 | { | |
27956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27957 | { | |
27958 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
27959 | result = (wxString *) &_result_ref; | |
27960 | } | |
27961 | ||
27962 | wxPyEndAllowThreads(__tstate); | |
27963 | if (PyErr_Occurred()) SWIG_fail; | |
27964 | } | |
0f774bef RD |
27965 | { |
27966 | #if wxUSE_UNICODE | |
27967 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27968 | #else | |
27969 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27970 | #endif | |
27971 | } | |
d14a1e28 RD |
27972 | return resultobj; |
27973 | fail: | |
27974 | return NULL; | |
27975 | } | |
27976 | ||
27977 | ||
27978 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27979 | PyObject *resultobj; | |
27980 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27981 | wxString *arg2 = 0 ; | |
423f194a | 27982 | bool temp2 = False ; |
d14a1e28 RD |
27983 | PyObject * obj0 = 0 ; |
27984 | PyObject * obj1 = 0 ; | |
27985 | char *kwnames[] = { | |
27986 | (char *) "self",(char *) "target", NULL | |
27987 | }; | |
27988 | ||
27989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
27990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27991 | { | |
27992 | arg2 = wxString_in_helper(obj1); | |
27993 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27994 | temp2 = True; |
d14a1e28 RD |
27995 | } |
27996 | { | |
27997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27998 | (arg1)->SetTarget((wxString const &)*arg2); | |
27999 | ||
28000 | wxPyEndAllowThreads(__tstate); | |
28001 | if (PyErr_Occurred()) SWIG_fail; | |
28002 | } | |
28003 | Py_INCREF(Py_None); resultobj = Py_None; | |
28004 | { | |
28005 | if (temp2) | |
28006 | delete arg2; | |
28007 | } | |
28008 | return resultobj; | |
28009 | fail: | |
28010 | { | |
28011 | if (temp2) | |
28012 | delete arg2; | |
28013 | } | |
28014 | return NULL; | |
28015 | } | |
28016 | ||
28017 | ||
28018 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
28019 | PyObject *obj; | |
28020 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28021 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
28022 | Py_INCREF(obj); | |
28023 | return Py_BuildValue((char *)""); | |
28024 | } | |
28025 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28026 | PyObject *resultobj; | |
28027 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 28028 | bool arg2 = (bool) True ; |
d14a1e28 RD |
28029 | wxContextHelp *result; |
28030 | PyObject * obj0 = 0 ; | |
28031 | PyObject * obj1 = 0 ; | |
28032 | char *kwnames[] = { | |
28033 | (char *) "window",(char *) "doNow", NULL | |
28034 | }; | |
28035 | ||
28036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
28037 | if (obj0) { | |
28038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28039 | } | |
28040 | if (obj1) { | |
2dbef272 | 28041 | { |
8edf1c75 | 28042 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
28043 | if (PyErr_Occurred()) SWIG_fail; |
28044 | } | |
d14a1e28 RD |
28045 | } |
28046 | { | |
28047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28048 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
28049 | ||
28050 | wxPyEndAllowThreads(__tstate); | |
28051 | if (PyErr_Occurred()) SWIG_fail; | |
28052 | } | |
28053 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelp, 1); | |
28054 | return resultobj; | |
28055 | fail: | |
28056 | return NULL; | |
28057 | } | |
28058 | ||
28059 | ||
28060 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28061 | PyObject *resultobj; | |
28062 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28063 | PyObject * obj0 = 0 ; | |
28064 | char *kwnames[] = { | |
28065 | (char *) "self", NULL | |
28066 | }; | |
28067 | ||
28068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
28069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28070 | { | |
28071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28072 | delete arg1; | |
28073 | ||
28074 | wxPyEndAllowThreads(__tstate); | |
28075 | if (PyErr_Occurred()) SWIG_fail; | |
28076 | } | |
28077 | Py_INCREF(Py_None); resultobj = Py_None; | |
28078 | return resultobj; | |
28079 | fail: | |
28080 | return NULL; | |
28081 | } | |
28082 | ||
28083 | ||
28084 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28085 | PyObject *resultobj; | |
28086 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28087 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28088 | bool result; | |
28089 | PyObject * obj0 = 0 ; | |
28090 | PyObject * obj1 = 0 ; | |
28091 | char *kwnames[] = { | |
28092 | (char *) "self",(char *) "window", NULL | |
28093 | }; | |
28094 | ||
28095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
28096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28097 | if (obj1) { | |
28098 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28099 | } | |
28100 | { | |
28101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28102 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
28103 | ||
28104 | wxPyEndAllowThreads(__tstate); | |
28105 | if (PyErr_Occurred()) SWIG_fail; | |
28106 | } | |
02a34c4c | 28107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28108 | return resultobj; |
28109 | fail: | |
28110 | return NULL; | |
28111 | } | |
28112 | ||
28113 | ||
28114 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28115 | PyObject *resultobj; | |
28116 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28117 | bool result; | |
28118 | PyObject * obj0 = 0 ; | |
28119 | char *kwnames[] = { | |
28120 | (char *) "self", NULL | |
28121 | }; | |
28122 | ||
28123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
28124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28125 | { | |
28126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28127 | result = (bool)(arg1)->EndContextHelp(); | |
28128 | ||
28129 | wxPyEndAllowThreads(__tstate); | |
28130 | if (PyErr_Occurred()) SWIG_fail; | |
28131 | } | |
02a34c4c | 28132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28133 | return resultobj; |
28134 | fail: | |
28135 | return NULL; | |
28136 | } | |
28137 | ||
28138 | ||
28139 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
28140 | PyObject *obj; | |
28141 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28142 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
28143 | Py_INCREF(obj); | |
28144 | return Py_BuildValue((char *)""); | |
28145 | } | |
28146 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28147 | PyObject *resultobj; | |
28148 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 28149 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
28150 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28151 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28152 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28153 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28154 | long arg5 = (long) wxBU_AUTODRAW ; | |
28155 | wxContextHelpButton *result; | |
28156 | wxPoint temp3 ; | |
28157 | wxSize temp4 ; | |
28158 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28159 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28160 | PyObject * obj2 = 0 ; |
28161 | PyObject * obj3 = 0 ; | |
8edf1c75 | 28162 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28163 | char *kwnames[] = { |
28164 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28165 | }; | |
28166 | ||
8edf1c75 | 28167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 28168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28169 | if (obj1) { |
28170 | { | |
28171 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28172 | if (PyErr_Occurred()) SWIG_fail; | |
28173 | } | |
28174 | } | |
d14a1e28 RD |
28175 | if (obj2) { |
28176 | { | |
28177 | arg3 = &temp3; | |
28178 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28179 | } | |
28180 | } | |
28181 | if (obj3) { | |
28182 | { | |
28183 | arg4 = &temp4; | |
28184 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28185 | } | |
28186 | } | |
8edf1c75 RD |
28187 | if (obj4) { |
28188 | { | |
28189 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
28190 | if (PyErr_Occurred()) SWIG_fail; | |
28191 | } | |
28192 | } | |
d14a1e28 RD |
28193 | { |
28194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28195 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28196 | ||
28197 | wxPyEndAllowThreads(__tstate); | |
28198 | if (PyErr_Occurred()) SWIG_fail; | |
28199 | } | |
28200 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelpButton, 1); | |
28201 | return resultobj; | |
28202 | fail: | |
28203 | return NULL; | |
28204 | } | |
28205 | ||
28206 | ||
28207 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
28208 | PyObject *obj; | |
28209 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28210 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
28211 | Py_INCREF(obj); | |
28212 | return Py_BuildValue((char *)""); | |
28213 | } | |
28214 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28215 | PyObject *resultobj; | |
28216 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28217 | wxHelpProvider *result; | |
28218 | PyObject * obj0 = 0 ; | |
28219 | char *kwnames[] = { | |
28220 | (char *) "helpProvider", NULL | |
28221 | }; | |
28222 | ||
28223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
28224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28225 | { | |
28226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28227 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
28228 | ||
28229 | wxPyEndAllowThreads(__tstate); | |
28230 | if (PyErr_Occurred()) SWIG_fail; | |
28231 | } | |
28232 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
28233 | return resultobj; | |
28234 | fail: | |
28235 | return NULL; | |
28236 | } | |
28237 | ||
28238 | ||
28239 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28240 | PyObject *resultobj; | |
28241 | wxHelpProvider *result; | |
28242 | char *kwnames[] = { | |
28243 | NULL | |
28244 | }; | |
28245 | ||
28246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
28247 | { | |
28248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28249 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
28250 | ||
28251 | wxPyEndAllowThreads(__tstate); | |
28252 | if (PyErr_Occurred()) SWIG_fail; | |
28253 | } | |
28254 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
28255 | return resultobj; | |
28256 | fail: | |
28257 | return NULL; | |
28258 | } | |
28259 | ||
28260 | ||
28261 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28262 | PyObject *resultobj; | |
28263 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28264 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28265 | wxString result; | |
28266 | PyObject * obj0 = 0 ; | |
28267 | PyObject * obj1 = 0 ; | |
28268 | char *kwnames[] = { | |
28269 | (char *) "self",(char *) "window", NULL | |
28270 | }; | |
28271 | ||
28272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
28273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28274 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28275 | { | |
28276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28277 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
28278 | ||
28279 | wxPyEndAllowThreads(__tstate); | |
28280 | if (PyErr_Occurred()) SWIG_fail; | |
28281 | } | |
28282 | { | |
28283 | #if wxUSE_UNICODE | |
28284 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28285 | #else | |
28286 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28287 | #endif | |
28288 | } | |
28289 | return resultobj; | |
28290 | fail: | |
28291 | return NULL; | |
28292 | } | |
28293 | ||
28294 | ||
28295 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28296 | PyObject *resultobj; | |
28297 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28298 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28299 | bool result; | |
28300 | PyObject * obj0 = 0 ; | |
28301 | PyObject * obj1 = 0 ; | |
28302 | char *kwnames[] = { | |
28303 | (char *) "self",(char *) "window", NULL | |
28304 | }; | |
28305 | ||
28306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
28307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28308 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28309 | { | |
28310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28311 | result = (bool)(arg1)->ShowHelp(arg2); | |
28312 | ||
28313 | wxPyEndAllowThreads(__tstate); | |
28314 | if (PyErr_Occurred()) SWIG_fail; | |
28315 | } | |
02a34c4c | 28316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28317 | return resultobj; |
28318 | fail: | |
28319 | return NULL; | |
28320 | } | |
28321 | ||
28322 | ||
28323 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28324 | PyObject *resultobj; | |
28325 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28326 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28327 | wxString *arg3 = 0 ; | |
423f194a | 28328 | bool temp3 = False ; |
d14a1e28 RD |
28329 | PyObject * obj0 = 0 ; |
28330 | PyObject * obj1 = 0 ; | |
28331 | PyObject * obj2 = 0 ; | |
28332 | char *kwnames[] = { | |
28333 | (char *) "self",(char *) "window",(char *) "text", NULL | |
28334 | }; | |
28335 | ||
28336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28338 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28339 | { | |
28340 | arg3 = wxString_in_helper(obj2); | |
28341 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28342 | temp3 = True; |
d14a1e28 RD |
28343 | } |
28344 | { | |
28345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28346 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28347 | ||
28348 | wxPyEndAllowThreads(__tstate); | |
28349 | if (PyErr_Occurred()) SWIG_fail; | |
28350 | } | |
28351 | Py_INCREF(Py_None); resultobj = Py_None; | |
28352 | { | |
28353 | if (temp3) | |
28354 | delete arg3; | |
28355 | } | |
28356 | return resultobj; | |
28357 | fail: | |
28358 | { | |
28359 | if (temp3) | |
28360 | delete arg3; | |
28361 | } | |
28362 | return NULL; | |
28363 | } | |
28364 | ||
28365 | ||
28366 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28367 | PyObject *resultobj; | |
28368 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
423f194a | 28369 | int arg2 ; |
d14a1e28 | 28370 | wxString *arg3 = 0 ; |
423f194a | 28371 | bool temp3 = False ; |
d14a1e28 | 28372 | PyObject * obj0 = 0 ; |
8edf1c75 | 28373 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28374 | PyObject * obj2 = 0 ; |
28375 | char *kwnames[] = { | |
28376 | (char *) "self",(char *) "id",(char *) "text", NULL | |
28377 | }; | |
28378 | ||
8edf1c75 | 28379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28381 | { |
28382 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28383 | if (PyErr_Occurred()) SWIG_fail; | |
28384 | } | |
d14a1e28 RD |
28385 | { |
28386 | arg3 = wxString_in_helper(obj2); | |
28387 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28388 | temp3 = True; |
d14a1e28 RD |
28389 | } |
28390 | { | |
28391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28392 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28393 | ||
28394 | wxPyEndAllowThreads(__tstate); | |
28395 | if (PyErr_Occurred()) SWIG_fail; | |
28396 | } | |
28397 | Py_INCREF(Py_None); resultobj = Py_None; | |
28398 | { | |
28399 | if (temp3) | |
28400 | delete arg3; | |
28401 | } | |
28402 | return resultobj; | |
28403 | fail: | |
28404 | { | |
28405 | if (temp3) | |
28406 | delete arg3; | |
28407 | } | |
28408 | return NULL; | |
28409 | } | |
28410 | ||
28411 | ||
28412 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28413 | PyObject *resultobj; | |
28414 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28415 | PyObject * obj0 = 0 ; | |
28416 | char *kwnames[] = { | |
28417 | (char *) "self", NULL | |
28418 | }; | |
28419 | ||
28420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
28421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28422 | { | |
28423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28424 | wxHelpProvider_Destroy(arg1); | |
28425 | ||
28426 | wxPyEndAllowThreads(__tstate); | |
28427 | if (PyErr_Occurred()) SWIG_fail; | |
28428 | } | |
28429 | Py_INCREF(Py_None); resultobj = Py_None; | |
28430 | return resultobj; | |
28431 | fail: | |
28432 | return NULL; | |
28433 | } | |
28434 | ||
28435 | ||
28436 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
28437 | PyObject *obj; | |
28438 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28439 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
28440 | Py_INCREF(obj); | |
28441 | return Py_BuildValue((char *)""); | |
28442 | } | |
28443 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28444 | PyObject *resultobj; | |
28445 | wxSimpleHelpProvider *result; | |
28446 | char *kwnames[] = { | |
28447 | NULL | |
28448 | }; | |
28449 | ||
28450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
28451 | { | |
28452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28453 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
28454 | ||
28455 | wxPyEndAllowThreads(__tstate); | |
28456 | if (PyErr_Occurred()) SWIG_fail; | |
28457 | } | |
28458 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
28459 | return resultobj; | |
28460 | fail: | |
28461 | return NULL; | |
28462 | } | |
28463 | ||
28464 | ||
28465 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
28466 | PyObject *obj; | |
28467 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28468 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
28469 | Py_INCREF(obj); | |
28470 | return Py_BuildValue((char *)""); | |
28471 | } | |
423f194a RD |
28472 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
28473 | PyObject *resultobj; | |
28474 | wxBitmap *arg1 = 0 ; | |
28475 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28476 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28477 | wxGenericDragImage *result; | |
28478 | PyObject * obj0 = 0 ; | |
28479 | PyObject * obj1 = 0 ; | |
28480 | char *kwnames[] = { | |
28481 | (char *) "image",(char *) "cursor", NULL | |
28482 | }; | |
28483 | ||
28484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
28485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28486 | if (arg1 == NULL) { | |
28487 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28488 | } | |
28489 | if (obj1) { | |
28490 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28491 | if (arg2 == NULL) { | |
28492 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28493 | } | |
28494 | } | |
28495 | { | |
28496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28497 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
28498 | ||
28499 | wxPyEndAllowThreads(__tstate); | |
28500 | if (PyErr_Occurred()) SWIG_fail; | |
28501 | } | |
28502 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28503 | return resultobj; | |
28504 | fail: | |
28505 | return NULL; | |
28506 | } | |
28507 | ||
28508 | ||
28509 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28510 | PyObject *resultobj; | |
28511 | wxIcon *arg1 = 0 ; | |
28512 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28513 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28514 | wxGenericDragImage *result; | |
28515 | PyObject * obj0 = 0 ; | |
28516 | PyObject * obj1 = 0 ; | |
28517 | char *kwnames[] = { | |
28518 | (char *) "image",(char *) "cursor", NULL | |
28519 | }; | |
28520 | ||
28521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
28522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28523 | if (arg1 == NULL) { | |
28524 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28525 | } | |
28526 | if (obj1) { | |
28527 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28528 | if (arg2 == NULL) { | |
28529 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28530 | } | |
28531 | } | |
28532 | { | |
28533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28534 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
28535 | ||
28536 | wxPyEndAllowThreads(__tstate); | |
28537 | if (PyErr_Occurred()) SWIG_fail; | |
28538 | } | |
28539 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28540 | return resultobj; | |
28541 | fail: | |
28542 | return NULL; | |
28543 | } | |
28544 | ||
28545 | ||
28546 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28547 | PyObject *resultobj; | |
28548 | wxString *arg1 = 0 ; | |
28549 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28550 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28551 | wxGenericDragImage *result; | |
28552 | bool temp1 = False ; | |
28553 | PyObject * obj0 = 0 ; | |
28554 | PyObject * obj1 = 0 ; | |
28555 | char *kwnames[] = { | |
28556 | (char *) "str",(char *) "cursor", NULL | |
28557 | }; | |
28558 | ||
28559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
28560 | { | |
28561 | arg1 = wxString_in_helper(obj0); | |
28562 | if (arg1 == NULL) SWIG_fail; | |
28563 | temp1 = True; | |
28564 | } | |
28565 | if (obj1) { | |
28566 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28567 | if (arg2 == NULL) { | |
28568 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28569 | } | |
28570 | } | |
28571 | { | |
28572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28573 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
28574 | ||
28575 | wxPyEndAllowThreads(__tstate); | |
28576 | if (PyErr_Occurred()) SWIG_fail; | |
28577 | } | |
28578 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28579 | { | |
28580 | if (temp1) | |
28581 | delete arg1; | |
28582 | } | |
28583 | return resultobj; | |
28584 | fail: | |
28585 | { | |
28586 | if (temp1) | |
28587 | delete arg1; | |
28588 | } | |
28589 | return NULL; | |
28590 | } | |
28591 | ||
28592 | ||
28593 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28594 | PyObject *resultobj; | |
28595 | wxPyTreeCtrl *arg1 = 0 ; | |
28596 | wxTreeItemId *arg2 = 0 ; | |
28597 | wxGenericDragImage *result; | |
28598 | PyObject * obj0 = 0 ; | |
28599 | PyObject * obj1 = 0 ; | |
28600 | char *kwnames[] = { | |
28601 | (char *) "treeCtrl",(char *) "id", NULL | |
28602 | }; | |
28603 | ||
28604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
28605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28606 | if (arg1 == NULL) { | |
28607 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28608 | } | |
28609 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28610 | if (arg2 == NULL) { | |
28611 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28612 | } | |
28613 | { | |
28614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28615 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
28616 | ||
28617 | wxPyEndAllowThreads(__tstate); | |
28618 | if (PyErr_Occurred()) SWIG_fail; | |
28619 | } | |
28620 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28621 | return resultobj; | |
28622 | fail: | |
28623 | return NULL; | |
28624 | } | |
28625 | ||
28626 | ||
28627 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28628 | PyObject *resultobj; | |
28629 | wxPyListCtrl *arg1 = 0 ; | |
28630 | long arg2 ; | |
28631 | wxGenericDragImage *result; | |
28632 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28633 | PyObject * obj1 = 0 ; |
423f194a RD |
28634 | char *kwnames[] = { |
28635 | (char *) "listCtrl",(char *) "id", NULL | |
28636 | }; | |
28637 | ||
8edf1c75 | 28638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
423f194a RD |
28639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
28640 | if (arg1 == NULL) { | |
28641 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28642 | } | |
8edf1c75 RD |
28643 | { |
28644 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
28645 | if (PyErr_Occurred()) SWIG_fail; | |
28646 | } | |
423f194a RD |
28647 | { |
28648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28649 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
28650 | ||
28651 | wxPyEndAllowThreads(__tstate); | |
28652 | if (PyErr_Occurred()) SWIG_fail; | |
28653 | } | |
28654 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28655 | return resultobj; | |
28656 | fail: | |
28657 | return NULL; | |
28658 | } | |
28659 | ||
28660 | ||
28661 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28662 | PyObject *resultobj; | |
28663 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28664 | PyObject * obj0 = 0 ; | |
28665 | char *kwnames[] = { | |
28666 | (char *) "self", NULL | |
28667 | }; | |
28668 | ||
28669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
28670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28671 | { | |
28672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28673 | delete arg1; | |
28674 | ||
28675 | wxPyEndAllowThreads(__tstate); | |
28676 | if (PyErr_Occurred()) SWIG_fail; | |
28677 | } | |
28678 | Py_INCREF(Py_None); resultobj = Py_None; | |
28679 | return resultobj; | |
28680 | fail: | |
28681 | return NULL; | |
28682 | } | |
28683 | ||
28684 | ||
28685 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28686 | PyObject *resultobj; | |
28687 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28688 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
28689 | PyObject * obj0 = 0 ; | |
28690 | PyObject * obj1 = 0 ; | |
28691 | char *kwnames[] = { | |
28692 | (char *) "self",(char *) "bitmap", NULL | |
28693 | }; | |
28694 | ||
28695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
28696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28697 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28698 | { | |
28699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28700 | (arg1)->SetBackingBitmap(arg2); | |
28701 | ||
28702 | wxPyEndAllowThreads(__tstate); | |
28703 | if (PyErr_Occurred()) SWIG_fail; | |
28704 | } | |
28705 | Py_INCREF(Py_None); resultobj = Py_None; | |
28706 | return resultobj; | |
28707 | fail: | |
28708 | return NULL; | |
28709 | } | |
28710 | ||
28711 | ||
28712 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28713 | PyObject *resultobj; | |
28714 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28715 | wxPoint *arg2 = 0 ; | |
28716 | wxWindow *arg3 = (wxWindow *) 0 ; | |
28717 | bool arg4 = (bool) False ; | |
28718 | wxRect *arg5 = (wxRect *) NULL ; | |
28719 | bool result; | |
28720 | wxPoint temp2 ; | |
28721 | PyObject * obj0 = 0 ; | |
28722 | PyObject * obj1 = 0 ; | |
28723 | PyObject * obj2 = 0 ; | |
28724 | PyObject * obj3 = 0 ; | |
28725 | PyObject * obj4 = 0 ; | |
28726 | char *kwnames[] = { | |
28727 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
28728 | }; | |
28729 | ||
28730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28732 | { | |
28733 | arg2 = &temp2; | |
28734 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28735 | } | |
28736 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28737 | if (obj3) { | |
2dbef272 | 28738 | { |
8edf1c75 | 28739 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
28740 | if (PyErr_Occurred()) SWIG_fail; |
28741 | } | |
423f194a RD |
28742 | } |
28743 | if (obj4) { | |
28744 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28745 | } | |
28746 | { | |
28747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28748 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
28749 | ||
28750 | wxPyEndAllowThreads(__tstate); | |
28751 | if (PyErr_Occurred()) SWIG_fail; | |
28752 | } | |
02a34c4c | 28753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28754 | return resultobj; |
28755 | fail: | |
28756 | return NULL; | |
28757 | } | |
28758 | ||
28759 | ||
28760 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28761 | PyObject *resultobj; | |
28762 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28763 | wxPoint *arg2 = 0 ; | |
28764 | wxWindow *arg3 = (wxWindow *) 0 ; | |
28765 | wxWindow *arg4 = (wxWindow *) 0 ; | |
28766 | bool result; | |
28767 | wxPoint temp2 ; | |
28768 | PyObject * obj0 = 0 ; | |
28769 | PyObject * obj1 = 0 ; | |
28770 | PyObject * obj2 = 0 ; | |
28771 | PyObject * obj3 = 0 ; | |
28772 | char *kwnames[] = { | |
28773 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
28774 | }; | |
28775 | ||
28776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28778 | { | |
28779 | arg2 = &temp2; | |
28780 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28781 | } | |
28782 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28783 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28784 | { | |
28785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28786 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
28787 | ||
28788 | wxPyEndAllowThreads(__tstate); | |
28789 | if (PyErr_Occurred()) SWIG_fail; | |
28790 | } | |
02a34c4c | 28791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28792 | return resultobj; |
28793 | fail: | |
28794 | return NULL; | |
28795 | } | |
28796 | ||
28797 | ||
28798 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28799 | PyObject *resultobj; | |
28800 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28801 | bool result; | |
28802 | PyObject * obj0 = 0 ; | |
28803 | char *kwnames[] = { | |
28804 | (char *) "self", NULL | |
28805 | }; | |
28806 | ||
28807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
28808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28809 | { | |
28810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28811 | result = (bool)(arg1)->EndDrag(); | |
28812 | ||
28813 | wxPyEndAllowThreads(__tstate); | |
28814 | if (PyErr_Occurred()) SWIG_fail; | |
28815 | } | |
02a34c4c | 28816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28817 | return resultobj; |
28818 | fail: | |
28819 | return NULL; | |
28820 | } | |
28821 | ||
28822 | ||
28823 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28824 | PyObject *resultobj; | |
28825 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28826 | wxPoint *arg2 = 0 ; | |
28827 | bool result; | |
28828 | wxPoint temp2 ; | |
28829 | PyObject * obj0 = 0 ; | |
28830 | PyObject * obj1 = 0 ; | |
28831 | char *kwnames[] = { | |
28832 | (char *) "self",(char *) "pt", NULL | |
28833 | }; | |
28834 | ||
28835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
28836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28837 | { | |
28838 | arg2 = &temp2; | |
28839 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28840 | } | |
28841 | { | |
28842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28843 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
28844 | ||
28845 | wxPyEndAllowThreads(__tstate); | |
28846 | if (PyErr_Occurred()) SWIG_fail; | |
28847 | } | |
02a34c4c | 28848 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28849 | return resultobj; |
28850 | fail: | |
28851 | return NULL; | |
28852 | } | |
28853 | ||
28854 | ||
28855 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28856 | PyObject *resultobj; | |
28857 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28858 | bool result; | |
28859 | PyObject * obj0 = 0 ; | |
28860 | char *kwnames[] = { | |
28861 | (char *) "self", NULL | |
28862 | }; | |
28863 | ||
28864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
28865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28866 | { | |
28867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28868 | result = (bool)(arg1)->Show(); | |
28869 | ||
28870 | wxPyEndAllowThreads(__tstate); | |
28871 | if (PyErr_Occurred()) SWIG_fail; | |
28872 | } | |
02a34c4c | 28873 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28874 | return resultobj; |
28875 | fail: | |
28876 | return NULL; | |
28877 | } | |
28878 | ||
28879 | ||
28880 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28881 | PyObject *resultobj; | |
28882 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28883 | bool result; | |
28884 | PyObject * obj0 = 0 ; | |
28885 | char *kwnames[] = { | |
28886 | (char *) "self", NULL | |
28887 | }; | |
28888 | ||
28889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
28890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28891 | { | |
28892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28893 | result = (bool)(arg1)->Hide(); | |
28894 | ||
28895 | wxPyEndAllowThreads(__tstate); | |
28896 | if (PyErr_Occurred()) SWIG_fail; | |
28897 | } | |
02a34c4c | 28898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28899 | return resultobj; |
28900 | fail: | |
28901 | return NULL; | |
28902 | } | |
28903 | ||
28904 | ||
28905 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28906 | PyObject *resultobj; | |
28907 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28908 | wxPoint *arg2 = 0 ; | |
28909 | wxRect result; | |
28910 | wxPoint temp2 ; | |
28911 | PyObject * obj0 = 0 ; | |
28912 | PyObject * obj1 = 0 ; | |
28913 | char *kwnames[] = { | |
28914 | (char *) "self",(char *) "pos", NULL | |
28915 | }; | |
28916 | ||
28917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
28918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28919 | { | |
28920 | arg2 = &temp2; | |
28921 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28922 | } | |
28923 | { | |
28924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28925 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
28926 | ||
28927 | wxPyEndAllowThreads(__tstate); | |
28928 | if (PyErr_Occurred()) SWIG_fail; | |
28929 | } | |
28930 | { | |
28931 | wxRect * resultptr; | |
28932 | resultptr = new wxRect((wxRect &) result); | |
28933 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
28934 | } | |
28935 | return resultobj; | |
28936 | fail: | |
28937 | return NULL; | |
28938 | } | |
28939 | ||
28940 | ||
28941 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28942 | PyObject *resultobj; | |
28943 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28944 | wxDC *arg2 = 0 ; | |
28945 | wxPoint *arg3 = 0 ; | |
28946 | bool result; | |
28947 | wxPoint temp3 ; | |
28948 | PyObject * obj0 = 0 ; | |
28949 | PyObject * obj1 = 0 ; | |
28950 | PyObject * obj2 = 0 ; | |
28951 | char *kwnames[] = { | |
28952 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
28953 | }; | |
28954 | ||
28955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28957 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28958 | if (arg2 == NULL) { | |
28959 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28960 | } | |
28961 | { | |
28962 | arg3 = &temp3; | |
28963 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28964 | } | |
28965 | { | |
28966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28967 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
28968 | ||
28969 | wxPyEndAllowThreads(__tstate); | |
28970 | if (PyErr_Occurred()) SWIG_fail; | |
28971 | } | |
02a34c4c | 28972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28973 | return resultobj; |
28974 | fail: | |
28975 | return NULL; | |
28976 | } | |
28977 | ||
28978 | ||
28979 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28980 | PyObject *resultobj; | |
28981 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28982 | wxDC *arg2 = 0 ; | |
28983 | wxMemoryDC *arg3 = 0 ; | |
28984 | wxRect *arg4 = 0 ; | |
28985 | wxRect *arg5 = 0 ; | |
28986 | bool result; | |
28987 | wxRect temp4 ; | |
28988 | wxRect temp5 ; | |
28989 | PyObject * obj0 = 0 ; | |
28990 | PyObject * obj1 = 0 ; | |
28991 | PyObject * obj2 = 0 ; | |
28992 | PyObject * obj3 = 0 ; | |
28993 | PyObject * obj4 = 0 ; | |
28994 | char *kwnames[] = { | |
28995 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
28996 | }; | |
28997 | ||
28998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29000 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29001 | if (arg2 == NULL) { | |
29002 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29003 | } | |
29004 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29005 | if (arg3 == NULL) { | |
29006 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29007 | } | |
29008 | { | |
29009 | arg4 = &temp4; | |
29010 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
29011 | } | |
29012 | { | |
29013 | arg5 = &temp5; | |
29014 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
29015 | } | |
29016 | { | |
29017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29018 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
29019 | ||
29020 | wxPyEndAllowThreads(__tstate); | |
29021 | if (PyErr_Occurred()) SWIG_fail; | |
29022 | } | |
02a34c4c | 29023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29024 | return resultobj; |
29025 | fail: | |
29026 | return NULL; | |
29027 | } | |
29028 | ||
29029 | ||
29030 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29031 | PyObject *resultobj; | |
29032 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29033 | wxPoint *arg2 = 0 ; | |
29034 | wxPoint *arg3 = 0 ; | |
29035 | bool arg4 ; | |
29036 | bool arg5 ; | |
29037 | bool result; | |
29038 | wxPoint temp2 ; | |
29039 | wxPoint temp3 ; | |
29040 | PyObject * obj0 = 0 ; | |
29041 | PyObject * obj1 = 0 ; | |
29042 | PyObject * obj2 = 0 ; | |
29043 | PyObject * obj3 = 0 ; | |
29044 | PyObject * obj4 = 0 ; | |
29045 | char *kwnames[] = { | |
29046 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
29047 | }; | |
29048 | ||
29049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29051 | { | |
29052 | arg2 = &temp2; | |
29053 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29054 | } | |
29055 | { | |
29056 | arg3 = &temp3; | |
29057 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29058 | } | |
2dbef272 | 29059 | { |
8edf1c75 | 29060 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
29061 | if (PyErr_Occurred()) SWIG_fail; |
29062 | } | |
29063 | { | |
8edf1c75 | 29064 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
2dbef272 RD |
29065 | if (PyErr_Occurred()) SWIG_fail; |
29066 | } | |
423f194a RD |
29067 | { |
29068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29069 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
29070 | ||
29071 | wxPyEndAllowThreads(__tstate); | |
29072 | if (PyErr_Occurred()) SWIG_fail; | |
29073 | } | |
02a34c4c | 29074 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29075 | return resultobj; |
29076 | fail: | |
29077 | return NULL; | |
29078 | } | |
29079 | ||
29080 | ||
29081 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
29082 | PyObject *obj; | |
29083 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29084 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
29085 | Py_INCREF(obj); | |
29086 | return Py_BuildValue((char *)""); | |
29087 | } | |
29088 | static PyMethodDef SwigMethods[] = { | |
29089 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
29090 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
29091 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
29092 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
29093 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
29094 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
29095 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
29096 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
29097 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29098 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
29099 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
29100 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
29101 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
29102 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
29103 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
29104 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
29105 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
29106 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29107 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
29108 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
29109 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
29110 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
29111 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
29112 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29113 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29114 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
29115 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29116 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
29117 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
29118 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
29119 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
29120 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
29121 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
29122 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
29123 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
29124 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
29125 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29126 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
29127 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
29128 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
29129 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
29130 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29131 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29132 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29133 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
29134 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
29135 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
29136 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29137 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29138 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
29139 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
100c4552 | 29140 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
29141 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
29142 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
29143 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
29144 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
29145 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
29146 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
29147 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
29148 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
29149 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29150 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29151 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29152 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29153 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29154 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
29155 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
29156 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
29157 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
29158 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
29159 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
29160 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
29161 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29162 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
29163 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
29164 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
29165 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
29166 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29167 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
29168 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
29169 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
29170 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
29171 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
29172 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
29173 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29174 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29175 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
29176 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29177 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29178 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
29179 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
29180 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
29181 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
29182 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29183 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
29184 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
29185 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
29186 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29187 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29188 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
29189 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
29190 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
29191 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29192 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
29193 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
29194 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
29195 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29196 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29197 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
c3eb6258 RD |
29198 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
29199 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29200 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
29201 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, |
29202 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
29203 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
29204 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29205 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
29206 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
29207 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29208 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
29209 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
29210 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
8edf1c75 | 29211 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
29212 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, |
29213 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29214 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29215 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29216 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29217 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
29218 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29219 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29220 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
29221 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29222 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29223 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
29224 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29225 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
29226 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29227 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29228 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
29229 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29230 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29231 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29232 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29233 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
29234 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29235 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29236 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
29237 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
29238 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
29239 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
29240 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29241 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29242 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29243 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29244 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29245 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29246 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
29247 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
29248 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
29249 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
29250 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
29251 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
29252 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
29253 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29254 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29255 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
29256 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
29257 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
29258 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
29259 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
29260 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
29261 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
29262 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
29263 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
29264 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
29265 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
29266 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29267 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29268 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
29269 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
29270 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
29271 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
29272 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
02a34c4c | 29273 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
29274 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, |
29275 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
29276 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
29277 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
29278 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
29279 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
29280 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
29281 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
29282 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
29283 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
29284 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29285 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
29286 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29287 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
29288 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29289 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
29290 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
29291 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
29292 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
29293 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
29294 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
29295 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
29296 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
29297 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
29298 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
29299 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
29300 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
29301 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
29302 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
29303 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
29304 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29305 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29306 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29307 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
29308 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
29309 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
29310 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
29311 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
29312 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29313 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29314 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29315 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29316 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29317 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
29318 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
29319 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29320 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29321 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
29322 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29323 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29324 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29325 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29326 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29327 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
29328 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29329 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29330 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29331 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29332 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
d896a793 RD |
29333 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
29334 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29335 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29336 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
29337 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
29338 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
29339 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29340 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29341 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29342 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29343 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29344 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
29345 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
29346 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
29347 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
29348 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
29349 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
29350 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
29351 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29352 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
29353 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
29354 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29355 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29356 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29357 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29358 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29359 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
29360 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
29361 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
29362 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
29363 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29364 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29365 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29366 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29367 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29368 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
29369 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
29370 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29371 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29372 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29373 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29374 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29375 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29376 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29377 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29378 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
29379 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
29380 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
29381 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
29382 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
29383 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29384 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
29385 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29386 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29387 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
29388 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
29389 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
29390 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29391 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29392 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29393 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29394 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29395 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29396 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29397 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29398 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29399 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29400 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
29401 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
29402 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
29403 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
29404 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
29405 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29406 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
29407 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
29408 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
29409 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29410 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29411 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29412 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29413 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
29414 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
29415 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29416 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29417 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29418 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
29419 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
29420 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29421 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29422 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
29423 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29424 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
29425 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
29426 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
29427 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29428 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29429 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
29430 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29431 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
29432 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
29433 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29434 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29435 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
29436 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
29437 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
29438 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29439 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29440 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29441 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
29442 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29443 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
29444 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29445 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
29446 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
29447 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29448 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29449 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
29450 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
29451 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
29452 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
29453 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29454 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29455 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29456 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29457 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29458 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29459 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
29460 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
29461 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
29462 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29463 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29464 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29465 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29466 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29467 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
29468 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
29469 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
29470 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
29471 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
29472 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
29473 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
cbd72d4f RD |
29474 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
29475 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
29476 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
29477 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
29478 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
29479 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29480 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29481 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
29482 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
29483 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
29484 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
29485 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
29486 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
29487 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
29488 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
29489 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
29490 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
29491 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
29492 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
29493 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
29494 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29495 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29496 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29497 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29498 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
29499 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29500 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
29501 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
29502 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
29503 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29504 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
29505 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
29506 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
29507 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
29508 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
29509 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
29510 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
29511 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
29512 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
29513 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
cbd72d4f | 29514 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29515 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
29516 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
29517 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29518 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29519 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
29520 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
29521 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
29522 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
29523 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29524 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29525 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29526 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29527 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29528 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
29529 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29530 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29531 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29532 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
29533 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
29534 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
29535 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
29536 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
29537 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29538 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
29539 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
29540 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29541 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
29542 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
29543 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
29544 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
29545 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
29546 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
29547 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
29548 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29549 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29550 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29551 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
29552 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29553 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29554 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
29555 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
29556 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
29557 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29558 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
29559 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
29560 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29561 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29562 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29563 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29564 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29565 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
29566 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
29567 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
29568 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
29569 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
29570 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
29571 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
29572 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
29573 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
29574 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
29575 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
29576 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
29577 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
29578 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
29579 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
29580 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
29581 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
29582 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
29583 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
29584 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
29585 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
29586 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
29587 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
29588 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
29589 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
29590 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
29591 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
29592 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
29593 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
29594 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
29595 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
29596 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
29597 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
29598 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
29599 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
29600 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29601 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
29602 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29603 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
29604 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
29605 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29606 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
29607 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
29608 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
29609 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
29610 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
29611 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
29612 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
29613 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29614 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29615 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29616 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29617 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29618 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29619 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29620 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29621 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
29622 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
29623 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
29624 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
29625 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
29626 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
29627 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
29628 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
29629 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
29630 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
29631 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29632 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29633 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29634 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29635 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
29636 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
29637 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
29638 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
29639 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
29640 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29641 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29642 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
29643 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29644 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29645 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
29646 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
29647 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
29648 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
29649 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29650 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29651 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29652 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
29653 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
29654 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
29655 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
29656 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
29657 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
29658 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
29659 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
29660 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
29661 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
29662 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29663 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
29664 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
29665 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
29666 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29667 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
29668 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
29669 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
29670 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
29671 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
29672 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
29673 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
29674 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
29675 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29676 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29677 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29678 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29679 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
29680 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
29681 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
29682 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
29683 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
29684 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
29685 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
29686 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
29687 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
29688 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
29689 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
29690 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29691 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
29692 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
29693 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
29694 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
29695 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
29696 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
29697 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
29698 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
29699 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
29700 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
29701 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
29702 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
29703 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29704 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
29705 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29706 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
29707 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
29708 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
29709 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
29710 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
29711 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
29712 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
29713 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
29714 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
29715 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
29716 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
29717 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
29718 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
29719 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29720 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29721 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
29722 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 29723 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29724 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
29725 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29726 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29727 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29728 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29729 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
29730 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
29731 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
29732 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29733 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29734 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29735 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
29736 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29737 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
29738 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29739 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
29740 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29741 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
29742 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29743 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
29744 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29745 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29746 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
29747 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29748 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
29749 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29750 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
29751 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
29752 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
29753 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29754 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29755 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
29756 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
29757 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
29758 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
29759 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29760 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
29761 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
29762 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
29763 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29764 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
29765 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
29766 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
29767 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
29768 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
29769 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
29770 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
29771 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
29772 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
29773 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
29774 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
29775 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
29776 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
29777 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
29778 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
29779 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
29780 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
29781 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
29782 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
29783 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
29784 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
29785 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
29786 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
0ffb2aa6 | 29787 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29788 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, |
29789 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
0ffb2aa6 | 29790 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29791 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, |
29792 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
29793 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
29794 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
29795 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
29796 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29797 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
29798 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
29799 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29800 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29801 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29802 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
29803 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
29804 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
29805 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
29806 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
29807 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
29808 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
29809 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
29810 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
29811 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
29812 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
29813 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
29814 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
29815 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29816 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29817 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
29818 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
29819 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
29820 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
29821 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29822 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29823 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29824 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
29825 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
29826 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
29827 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29828 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
29829 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
29830 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
29831 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
29832 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
29833 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
29834 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29835 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
29836 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
29837 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
29838 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
29839 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
29840 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
29841 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
29842 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
29843 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
29844 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
29845 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
29846 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
29847 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
29848 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29849 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29850 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
29851 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
29852 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
29853 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
29854 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
29855 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29856 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29857 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29858 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29859 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
29860 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
29861 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
29862 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
29863 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
29864 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
29865 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
29866 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
29867 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
29868 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
29869 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
29870 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
29871 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
423f194a RD |
29872 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
29873 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
29874 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
29875 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
29876 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
29877 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
29878 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29879 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
29880 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
29881 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
29882 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
29883 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
29884 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
29885 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
29886 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
29887 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
29888 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
29889 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
29890 | { NULL, NULL } |
29891 | }; | |
29892 | ||
29893 | ||
29894 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
29895 | ||
29896 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
29897 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
29898 | } | |
29899 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
29900 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
29901 | } | |
29902 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
29903 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
29904 | } | |
29905 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
29906 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29907 | } | |
29908 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
29909 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29910 | } | |
29911 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
29912 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
29913 | } | |
29914 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
29915 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29916 | } | |
29917 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
29918 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
29919 | } | |
29920 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
29921 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
29922 | } | |
29923 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
29924 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
29925 | } | |
29926 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
29927 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29928 | } | |
29929 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
29930 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
29931 | } | |
29932 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
29933 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
29934 | } | |
29935 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
29936 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
29937 | } | |
29938 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
29939 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
29940 | } | |
29941 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
29942 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
29943 | } | |
29944 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
29945 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
29946 | } | |
29947 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
29948 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
29949 | } | |
29950 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
29951 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
29952 | } | |
29953 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
29954 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
29955 | } | |
29956 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
29957 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
29958 | } | |
29959 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
29960 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
29961 | } | |
29962 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
29963 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29964 | } | |
29965 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
29966 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
29967 | } | |
29968 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
29969 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
29970 | } | |
29971 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
29972 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
29973 | } | |
29974 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
29975 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
29976 | } | |
29977 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
29978 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
29979 | } | |
29980 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
29981 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29982 | } | |
29983 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
29984 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29985 | } | |
29986 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
29987 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
29988 | } | |
29989 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
29990 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
29991 | } | |
29992 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
29993 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
29994 | } | |
29995 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
29996 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
29997 | } | |
29998 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
29999 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
30000 | } | |
30001 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
30002 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
30003 | } | |
30004 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
30005 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
30006 | } | |
30007 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
30008 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30009 | } | |
30010 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
30011 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30012 | } | |
30013 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
30014 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30015 | } | |
30016 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
30017 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30018 | } | |
30019 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
30020 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30021 | } | |
30022 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
30023 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
30024 | } | |
30025 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
30026 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
30027 | } | |
30028 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
30029 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30030 | } | |
30031 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
30032 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
30033 | } | |
30034 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
30035 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
30036 | } | |
30037 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
30038 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30039 | } | |
30040 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
30041 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30042 | } | |
30043 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
30044 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30045 | } | |
30046 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
30047 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
30048 | } | |
30049 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
30050 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
30051 | } | |
d896a793 RD |
30052 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
30053 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30054 | } | |
d14a1e28 RD |
30055 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
30056 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
30057 | } | |
30058 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
30059 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30060 | } | |
30061 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
30062 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
30063 | } | |
30064 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
30065 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
30066 | } | |
30067 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
30068 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
30069 | } | |
30070 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
30071 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30072 | } | |
30073 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
30074 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
30075 | } | |
30076 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
30077 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30078 | } | |
30079 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
30080 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
30081 | } | |
30082 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
30083 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
30084 | } | |
30085 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
30086 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
30087 | } | |
30088 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
30089 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
30090 | } | |
30091 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
30092 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
30093 | } | |
30094 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
30095 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
30096 | } | |
30097 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
30098 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
30099 | } | |
30100 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
30101 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
30102 | } | |
30103 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
30104 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
30105 | } | |
30106 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
30107 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30108 | } | |
30109 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
30110 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
30111 | } | |
30112 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
30113 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
30114 | } | |
30115 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
30116 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
30117 | } | |
30118 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
30119 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
30120 | } | |
30121 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
30122 | return (void *)((wxControl *) ((wxGauge *) x)); | |
30123 | } | |
30124 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
30125 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
30126 | } | |
30127 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
30128 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
30129 | } | |
30130 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
30131 | return (void *)((wxControl *) ((wxButton *) x)); | |
30132 | } | |
30133 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
30134 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
30135 | } | |
30136 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
30137 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30138 | } | |
30139 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
30140 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
30141 | } | |
30142 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
30143 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
30144 | } | |
30145 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
30146 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
30147 | } | |
30148 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
30149 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
30150 | } | |
30151 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
30152 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
30153 | } | |
30154 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
30155 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
30156 | } | |
30157 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
30158 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
30159 | } | |
30160 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
30161 | return (void *)((wxControl *) ((wxSlider *) x)); | |
30162 | } | |
30163 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
30164 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
30165 | } | |
30166 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
30167 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
30168 | } | |
30169 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
30170 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
30171 | } | |
30172 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
30173 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
30174 | } | |
30175 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
30176 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
30177 | } | |
30178 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
30179 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30180 | } | |
30181 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
30182 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30183 | } | |
30184 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
30185 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30186 | } | |
30187 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
30188 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
30189 | } | |
d896a793 RD |
30190 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
30191 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30192 | } | |
d14a1e28 RD |
30193 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
30194 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30195 | } | |
30196 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
30197 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30198 | } | |
30199 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
30200 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
30201 | } | |
30202 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
30203 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
30204 | } | |
30205 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
30206 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
30207 | } | |
30208 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
30209 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
30210 | } | |
30211 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
30212 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30213 | } | |
30214 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
30215 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
30216 | } | |
30217 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
30218 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
30219 | } | |
30220 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
30221 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
30222 | } | |
30223 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
30224 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
30225 | } | |
30226 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
30227 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
30228 | } | |
30229 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
30230 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
30231 | } | |
30232 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
30233 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
30234 | } | |
30235 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
30236 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
30237 | } | |
30238 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
30239 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30240 | } | |
30241 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
30242 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
30243 | } | |
30244 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
30245 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
30246 | } | |
30247 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
30248 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
30249 | } | |
30250 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
30251 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
30252 | } | |
30253 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
30254 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30255 | } | |
30256 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
30257 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
30258 | } | |
30259 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
30260 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
30261 | } | |
30262 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
30263 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30264 | } | |
30265 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
30266 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
30267 | } | |
30268 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
30269 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
30270 | } | |
30271 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
30272 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
30273 | } | |
30274 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
30275 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30276 | } | |
30277 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
30278 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30279 | } | |
30280 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
30281 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30282 | } | |
30283 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
30284 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30285 | } | |
30286 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
30287 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
30288 | } | |
30289 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
30290 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30291 | } | |
30292 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
30293 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
30294 | } | |
30295 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
30296 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
30297 | } | |
30298 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
30299 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
30300 | } | |
30301 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
30302 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
30303 | } | |
30304 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
30305 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
30306 | } | |
30307 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
30308 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
30309 | } | |
30310 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
30311 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30312 | } | |
30313 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
30314 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30315 | } | |
30316 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
30317 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
30318 | } | |
30319 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
30320 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
30321 | } | |
30322 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
30323 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
30324 | } | |
30325 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
30326 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
30327 | } | |
30328 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
30329 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
30330 | } | |
30331 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
30332 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30333 | } | |
30334 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
30335 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30336 | } | |
30337 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
30338 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
30339 | } | |
30340 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
30341 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
30342 | } | |
30343 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
30344 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
30345 | } | |
30346 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
30347 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
30348 | } | |
30349 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
30350 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
30351 | } | |
30352 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
30353 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
30354 | } | |
30355 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
30356 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30357 | } | |
30358 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
30359 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30360 | } | |
30361 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
30362 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
30363 | } | |
30364 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
30365 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
30366 | } | |
30367 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
30368 | return (void *)((wxObject *) ((wxSizer *) x)); | |
30369 | } | |
30370 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
30371 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
30372 | } | |
30373 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
30374 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
30375 | } | |
30376 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
30377 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
30378 | } | |
30379 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
30380 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30381 | } | |
30382 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
30383 | return (void *)((wxObject *) ((wxEvent *) x)); | |
30384 | } | |
30385 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
30386 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30387 | } | |
30388 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
30389 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
30390 | } | |
30391 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
30392 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
30393 | } | |
30394 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
30395 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
30396 | } | |
30397 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
30398 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
30399 | } | |
30400 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
30401 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30402 | } | |
30403 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
30404 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
30405 | } | |
30406 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
30407 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
30408 | } | |
30409 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
30410 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30411 | } | |
30412 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
30413 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30414 | } | |
30415 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
30416 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30417 | } | |
30418 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
30419 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30420 | } | |
30421 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
30422 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
30423 | } | |
30424 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
30425 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
30426 | } | |
30427 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
30428 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
30429 | } | |
30430 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
30431 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
30432 | } | |
30433 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
30434 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
30435 | } | |
30436 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
30437 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
30438 | } | |
30439 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
30440 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
30441 | } | |
30442 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
30443 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
30444 | } | |
30445 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
30446 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30447 | } | |
30448 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
30449 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
30450 | } | |
30451 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
30452 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
30453 | } | |
30454 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
30455 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30456 | } | |
30457 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
30458 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
30459 | } | |
30460 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
30461 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30462 | } | |
30463 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
30464 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
30465 | } | |
30466 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
30467 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30468 | } | |
30469 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
30470 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30471 | } | |
30472 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
30473 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
30474 | } | |
30475 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
30476 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
30477 | } | |
30478 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
30479 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
30480 | } | |
30481 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
30482 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
30483 | } | |
30484 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
30485 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
30486 | } | |
30487 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
30488 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30489 | } | |
30490 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
30491 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30492 | } | |
30493 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
30494 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
30495 | } | |
30496 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
30497 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
30498 | } | |
30499 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
30500 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
30501 | } | |
30502 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
30503 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
30504 | } | |
30505 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
30506 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
30507 | } | |
30508 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
30509 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
30510 | } | |
30511 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
30512 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
30513 | } | |
30514 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
30515 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
30516 | } | |
30517 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
30518 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
30519 | } | |
30520 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
30521 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
30522 | } | |
30523 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
30524 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
30525 | } | |
30526 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
30527 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
30528 | } | |
30529 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
30530 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
30531 | } | |
30532 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
30533 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
30534 | } | |
30535 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
30536 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
30537 | } | |
30538 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
30539 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
30540 | } | |
30541 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
30542 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
30543 | } | |
30544 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
30545 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
30546 | } | |
30547 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
30548 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
30549 | } | |
30550 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
30551 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
30552 | } | |
30553 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
30554 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
30555 | } | |
30556 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
30557 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30558 | } | |
30559 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
30560 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30561 | } | |
30562 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
30563 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
30564 | } | |
d14a1e28 RD |
30565 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
30566 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
30567 | } | |
41f1cec7 RD |
30568 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
30569 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30570 | } | |
d14a1e28 RD |
30571 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
30572 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
30573 | } | |
30574 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
30575 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30576 | } | |
41f1cec7 RD |
30577 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
30578 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
30579 | } | |
d14a1e28 RD |
30580 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
30581 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
30582 | } | |
30583 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
30584 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
30585 | } | |
30586 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
30587 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
30588 | } | |
30589 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
30590 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
30591 | } | |
30592 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
30593 | return (void *)((wxObject *) ((wxListItem *) x)); | |
30594 | } | |
30595 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
30596 | return (void *)((wxObject *) ((wxImage *) x)); | |
30597 | } | |
30598 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
30599 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
30600 | } | |
30601 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
30602 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
30603 | } | |
d896a793 RD |
30604 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
30605 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30606 | } | |
423f194a RD |
30607 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
30608 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
30609 | } | |
d14a1e28 RD |
30610 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
30611 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
30612 | } | |
30613 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
30614 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30615 | } | |
30616 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
30617 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30618 | } | |
30619 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
30620 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30621 | } | |
30622 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
30623 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30624 | } | |
30625 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
30626 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
30627 | } | |
30628 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
30629 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
30630 | } | |
30631 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
30632 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
30633 | } | |
30634 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
30635 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
30636 | } | |
30637 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
30638 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
30639 | } | |
30640 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
30641 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30642 | } | |
30643 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
30644 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
30645 | } | |
30646 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
30647 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
30648 | } | |
30649 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
30650 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
30651 | } | |
30652 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
30653 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
30654 | } | |
30655 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
30656 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
30657 | } | |
30658 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
30659 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30660 | } | |
30661 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
30662 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30663 | } | |
30664 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
30665 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
30666 | } | |
30667 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
30668 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
30669 | } | |
30670 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
30671 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
30672 | } | |
30673 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
30674 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
30675 | } | |
30676 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
30677 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30678 | } | |
30679 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
30680 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30681 | } | |
30682 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
30683 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
30684 | } | |
30685 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
30686 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30687 | } | |
30688 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
30689 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
30690 | } | |
30691 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
30692 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
30693 | } | |
30694 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
30695 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
30696 | } | |
30697 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
30698 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
30699 | } | |
30700 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
30701 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
30702 | } | |
30703 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
30704 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30705 | } | |
30706 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
30707 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
30708 | } | |
30709 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
30710 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
30711 | } | |
30712 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
30713 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
30714 | } | |
30715 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
30716 | return (void *)((wxWindow *) ((wxControl *) x)); | |
30717 | } | |
30718 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
30719 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
30720 | } | |
30721 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
30722 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30723 | } | |
30724 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
30725 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
30726 | } | |
30727 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
30728 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
30729 | } | |
30730 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
30731 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
30732 | } | |
30733 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
30734 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
30735 | } | |
30736 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
30737 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
30738 | } | |
30739 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
30740 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
30741 | } | |
30742 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
30743 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
30744 | } | |
30745 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
30746 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30747 | } | |
30748 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
30749 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
30750 | } | |
30751 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
30752 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
30753 | } | |
30754 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
30755 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
30756 | } | |
30757 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
30758 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30759 | } | |
30760 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
30761 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30762 | } | |
30763 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
30764 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30765 | } | |
30766 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
30767 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30768 | } | |
30769 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
30770 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30771 | } | |
30772 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
30773 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
30774 | } | |
30775 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
30776 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
30777 | } | |
30778 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
30779 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
30780 | } | |
30781 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
30782 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
30783 | } | |
30784 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
30785 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
30786 | } | |
30787 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
30788 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
30789 | } | |
30790 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
30791 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
30792 | } | |
30793 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
30794 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30795 | } | |
30796 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
30797 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30798 | } | |
30799 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
30800 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
30801 | } | |
30802 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
30803 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30804 | } | |
30805 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
30806 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30807 | } | |
30808 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
30809 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30810 | } | |
30811 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
30812 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
30813 | } | |
30814 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
30815 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30816 | } | |
30817 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
30818 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30819 | } | |
30820 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
30821 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30822 | } | |
30823 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
30824 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30825 | } | |
30826 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
30827 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30828 | } | |
30829 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
30830 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
30831 | } | |
30832 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
30833 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30834 | } | |
30835 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
30836 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30837 | } | |
d896a793 RD |
30838 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
30839 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30840 | } | |
d14a1e28 RD |
30841 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
30842 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
30843 | } | |
30844 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
30845 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30846 | } | |
30847 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
30848 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30849 | } | |
30850 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
30851 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30852 | } | |
30853 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
30854 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
30855 | } | |
30856 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
30857 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
30858 | } | |
30859 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
30860 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
30861 | } | |
30862 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
30863 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
30864 | } | |
30865 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0},{"_p_wxTextUrlEvent"},{0}}; | |
30866 | 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}}; | |
30867 | 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 |
30868 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0},{"_p_wxCheckBox"},{0}}; |
30869 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0},{"_p_wxPyTreeCtrl"},{0}}; | |
d896a793 | 30870 | 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 |
30871 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0},{"_p_wxGenericDirCtrl"},{0}}; |
30872 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}}; | |
30873 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0},{"_p_wxPyTreeItemData"},{0}}; | |
30874 | 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}}; | |
30875 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0},{"_p_wxDirFilterListCtrl"},{0}}; | |
30876 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0},{"_p_wxPyListCtrl"},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl},{0}}; | |
30877 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0},{"_p_wxStaticLine"},{0}}; | |
30878 | 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}}; | |
30879 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0},{"_p_wxPyControl"},{0}}; | |
30880 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0},{"_p_wxGauge"},{0}}; | |
30881 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0},{"_p_wxToolBarBase"},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase},{0}}; | |
30882 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
30883 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0},{"_p_wxToggleButton"},{0}}; | |
30884 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0},{"_p_wxRadioButton"},{0}}; | |
30885 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice},{"_p_wxChoice"},{0}}; | |
423f194a | 30886 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxMemoryDC"},{0}}; |
d14a1e28 | 30887 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0},{"_p_wxListItemAttr"},{0}}; |
58203fa6 | 30888 | static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0},{"_p_void"},{0}}; |
d14a1e28 RD |
30889 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
30890 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
423f194a | 30891 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; |
d14a1e28 RD |
30892 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0},{"_p_wxListView"},{0}}; |
30893 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
30894 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
30895 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0},{"_p_wxNotebook"},{0}}; | |
d896a793 | 30896 | 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 |
30897 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; |
30898 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0},{"_p_wxListbook"},{0}}; | |
30899 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0},{"_p_wxStaticBitmap"},{0}}; | |
30900 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0},{"_p_wxSlider"},{0}}; | |
30901 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
30902 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}}; | |
30903 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0},{"_p_wxContextHelp"},{0}}; | |
30904 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
30905 | 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}}; | |
30906 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0},{"_p_wxListEvent"},{0}}; | |
30907 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0},{"_p_wxListBox"},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox},{0}}; | |
30908 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0},{"_p_wxCheckListBox"},{0}}; | |
30909 | 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}}; | |
30910 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0},{"_p_wxSpinButton"},{0}}; | |
30911 | 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}}; | |
30912 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0},{"_p_wxBitmapButton"},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton},{0}}; | |
30913 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
30914 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0},{"_p_wxContextHelpButton"},{0}}; | |
30915 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0},{"_p_wxRadioBox"},{0}}; | |
30916 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0},{"_p_wxScrollBar"},{0}}; | |
8edf1c75 | 30917 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
30918 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}}; |
30919 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0},{"_p_wxComboBox"},{0}}; | |
30920 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0},{"_p_wxHelpEvent"},{0}}; | |
30921 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0},{"_p_wxListItem"},{0}}; | |
30922 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0},{"_p_wxNotebookSizer"},{0}}; | |
d896a793 | 30923 | static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0},{"_p_wxSpinEvent"},{0}}; |
423f194a | 30924 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}}; |
d14a1e28 RD |
30925 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0},{"_p_wxSpinCtrl"},{0}}; |
30926 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
30927 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0},{"_p_wxHelpProvider"},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider},{0}}; | |
30928 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0},{"_p_wxTextAttr"},{0}}; | |
30929 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0},{"_p_wxSimpleHelpProvider"},{0}}; | |
30930 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
30931 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0},{"_p_wxListbookEvent"},{0}}; | |
30932 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0},{"_p_wxNotebookEvent"},{0}}; | |
d896a793 | 30933 | 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 | 30934 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; |
d14a1e28 RD |
30935 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; |
30936 | 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}}; | |
30937 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
30938 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
30939 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0},{"_p_wxTreeEvent"},{0}}; | |
30940 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
d896a793 | 30941 | 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 |
30942 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0},{"_p_wxStaticText"},{0}}; |
30943 | 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}}; | |
30944 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0},{"_p_wxToolBarToolBase"},{0}}; | |
30945 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
30946 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}}; | |
30947 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0},{"_p_wxBookCtrlSizer"},{0}}; | |
30948 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
30949 | ||
30950 | static swig_type_info *swig_types_initial[] = { | |
30951 | _swigt__p_wxTextUrlEvent, | |
30952 | _swigt__p_wxBookCtrlEvent, | |
30953 | _swigt__p_wxSizer, | |
d14a1e28 RD |
30954 | _swigt__p_wxCheckBox, |
30955 | _swigt__p_wxPyTreeCtrl, | |
30956 | _swigt__p_wxEvent, | |
30957 | _swigt__p_wxGenericDirCtrl, | |
30958 | _swigt__p_bool, | |
30959 | _swigt__p_wxPyTreeItemData, | |
30960 | _swigt__p_wxItemContainer, | |
30961 | _swigt__p_wxDirFilterListCtrl, | |
30962 | _swigt__p_wxPyListCtrl, | |
30963 | _swigt__p_wxStaticLine, | |
30964 | _swigt__p_wxControl, | |
30965 | _swigt__p_wxPyControl, | |
30966 | _swigt__p_wxGauge, | |
30967 | _swigt__p_wxToolBarBase, | |
30968 | _swigt__p_wxFont, | |
30969 | _swigt__p_wxToggleButton, | |
30970 | _swigt__p_wxRadioButton, | |
30971 | _swigt__p_wxChoice, | |
423f194a | 30972 | _swigt__p_wxMemoryDC, |
d14a1e28 | 30973 | _swigt__p_wxListItemAttr, |
58203fa6 | 30974 | _swigt__p_void, |
d14a1e28 RD |
30975 | _swigt__p_int, |
30976 | _swigt__p_wxSize, | |
423f194a | 30977 | _swigt__p_wxDC, |
d14a1e28 RD |
30978 | _swigt__p_wxListView, |
30979 | _swigt__p_wxIcon, | |
30980 | _swigt__p_wxTextCtrl, | |
30981 | _swigt__p_wxNotebook, | |
30982 | _swigt__p_wxNotifyEvent, | |
30983 | _swigt__p_wxArrayString, | |
30984 | _swigt__p_wxListbook, | |
30985 | _swigt__p_wxStaticBitmap, | |
30986 | _swigt__p_wxSlider, | |
30987 | _swigt__p_wxStaticBox, | |
30988 | _swigt__p_wxArrayInt, | |
30989 | _swigt__p_wxContextHelp, | |
30990 | _swigt__p_long, | |
30991 | _swigt__p_wxEvtHandler, | |
30992 | _swigt__p_wxListEvent, | |
30993 | _swigt__p_wxListBox, | |
30994 | _swigt__p_wxCheckListBox, | |
30995 | _swigt__p_wxBookCtrl, | |
30996 | _swigt__p_wxSpinButton, | |
30997 | _swigt__p_wxButton, | |
30998 | _swigt__p_wxBitmapButton, | |
30999 | _swigt__p_wxRect, | |
31000 | _swigt__p_wxContextHelpButton, | |
31001 | _swigt__p_wxRadioBox, | |
31002 | _swigt__p_wxScrollBar, | |
8edf1c75 | 31003 | _swigt__p_char, |
d14a1e28 RD |
31004 | _swigt__p_wxTreeItemId, |
31005 | _swigt__p_wxComboBox, | |
31006 | _swigt__p_wxHelpEvent, | |
31007 | _swigt__p_wxListItem, | |
31008 | _swigt__p_wxNotebookSizer, | |
d896a793 | 31009 | _swigt__p_wxSpinEvent, |
423f194a | 31010 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
31011 | _swigt__p_wxSpinCtrl, |
31012 | _swigt__p_wxImageList, | |
31013 | _swigt__p_wxHelpProvider, | |
31014 | _swigt__p_wxTextAttr, | |
31015 | _swigt__p_wxSimpleHelpProvider, | |
31016 | _swigt__p_wxPoint, | |
31017 | _swigt__p_wxListbookEvent, | |
31018 | _swigt__p_wxNotebookEvent, | |
31019 | _swigt__p_wxObject, | |
423f194a | 31020 | _swigt__p_wxCursor, |
d14a1e28 RD |
31021 | _swigt__p_wxKeyEvent, |
31022 | _swigt__p_wxWindow, | |
31023 | _swigt__p_wxString, | |
31024 | _swigt__p_wxBitmap, | |
31025 | _swigt__p_wxTreeEvent, | |
31026 | _swigt__p_wxMouseEvent, | |
31027 | _swigt__p_wxCommandEvent, | |
31028 | _swigt__p_wxStaticText, | |
31029 | _swigt__p_wxControlWithItems, | |
31030 | _swigt__p_wxToolBarToolBase, | |
31031 | _swigt__p_wxColour, | |
31032 | _swigt__p_wxToolBar, | |
31033 | _swigt__p_wxBookCtrlSizer, | |
31034 | _swigt__p_wxValidator, | |
31035 | 0 | |
31036 | }; | |
31037 | ||
31038 | ||
31039 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
31040 | ||
31041 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
31042 | {0}}; |
31043 | ||
31044 | #ifdef __cplusplus | |
31045 | } | |
31046 | #endif | |
31047 | ||
31048 | #ifdef __cplusplus | |
31049 | extern "C" | |
31050 | #endif | |
31051 | SWIGEXPORT(void) SWIG_init(void) { | |
31052 | static PyObject *SWIG_globals = 0; | |
31053 | static int typeinit = 0; | |
31054 | PyObject *m, *d; | |
31055 | int i; | |
31056 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
31057 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
31058 | d = PyModule_GetDict(m); | |
31059 | ||
31060 | if (!typeinit) { | |
31061 | for (i = 0; swig_types_initial[i]; i++) { | |
31062 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
31063 | } | |
31064 | typeinit = 1; | |
31065 | } | |
31066 | SWIG_InstallConstants(d,swig_const_table); | |
31067 | ||
cbd72d4f RD |
31068 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
31069 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
8edf1c75 RD |
31070 | PyDict_SetItemString(d,"BU_LEFT", SWIG_PyObj_FromInt((int)wxBU_LEFT)); |
31071 | PyDict_SetItemString(d,"BU_TOP", SWIG_PyObj_FromInt((int)wxBU_TOP)); | |
31072 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_PyObj_FromInt((int)wxBU_RIGHT)); | |
31073 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_PyObj_FromInt((int)wxBU_BOTTOM)); | |
31074 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_PyObj_FromInt((int)wxBU_EXACTFIT)); | |
31075 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_PyObj_FromInt((int)wxBU_AUTODRAW)); | |
cbd72d4f | 31076 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
8edf1c75 RD |
31077 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_PyObj_FromInt((int)wxCHK_2STATE)); |
31078 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_PyObj_FromInt((int)wxCHK_3STATE)); | |
31079 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_PyObj_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
31080 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_PyObj_FromInt((int)wxCHK_UNCHECKED)); | |
31081 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_PyObj_FromInt((int)wxCHK_CHECKED)); | |
31082 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_PyObj_FromInt((int)wxCHK_UNDETERMINED)); | |
cbd72d4f RD |
31083 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
31084 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
31085 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
8edf1c75 RD |
31086 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_PyObj_FromInt((int)wxGA_HORIZONTAL)); |
31087 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_PyObj_FromInt((int)wxGA_VERTICAL)); | |
31088 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_PyObj_FromInt((int)wxGA_SMOOTH)); | |
31089 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_PyObj_FromInt((int)wxGA_PROGRESSBAR)); | |
cbd72d4f RD |
31090 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
31091 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
31092 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
31093 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
31094 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
8edf1c75 RD |
31095 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_PyObj_FromInt((int)wxTE_NO_VSCROLL)); |
31096 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_PyObj_FromInt((int)wxTE_AUTO_SCROLL)); | |
31097 | PyDict_SetItemString(d,"TE_READONLY", SWIG_PyObj_FromInt((int)wxTE_READONLY)); | |
31098 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_PyObj_FromInt((int)wxTE_MULTILINE)); | |
31099 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_PyObj_FromInt((int)wxTE_PROCESS_TAB)); | |
31100 | PyDict_SetItemString(d,"TE_LEFT", SWIG_PyObj_FromInt((int)wxTE_LEFT)); | |
31101 | PyDict_SetItemString(d,"TE_CENTER", SWIG_PyObj_FromInt((int)wxTE_CENTER)); | |
31102 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_PyObj_FromInt((int)wxTE_RIGHT)); | |
31103 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_PyObj_FromInt((int)wxTE_CENTRE)); | |
31104 | PyDict_SetItemString(d,"TE_RICH", SWIG_PyObj_FromInt((int)wxTE_RICH)); | |
31105 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_PyObj_FromInt((int)wxTE_PROCESS_ENTER)); | |
31106 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_PyObj_FromInt((int)wxTE_PASSWORD)); | |
31107 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_PyObj_FromInt((int)wxTE_AUTO_URL)); | |
31108 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_PyObj_FromInt((int)wxTE_NOHIDESEL)); | |
31109 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_PyObj_FromInt((int)wxTE_DONTWRAP)); | |
31110 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_PyObj_FromInt((int)wxTE_LINEWRAP)); | |
31111 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_PyObj_FromInt((int)wxTE_WORDWRAP)); | |
31112 | PyDict_SetItemString(d,"TE_RICH2", SWIG_PyObj_FromInt((int)wxTE_RICH2)); | |
31113 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
31114 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
31115 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
31116 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
31117 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
31118 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
31119 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
31120 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
31121 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
31122 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
31123 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
31124 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
31125 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
31126 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT)); | |
31127 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
31128 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
31129 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
31130 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TABS)); | |
02a34c4c RD |
31131 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_PyObj_FromInt((int)wxTE_HT_UNKNOWN)); |
31132 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_PyObj_FromInt((int)wxTE_HT_BEFORE)); | |
31133 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_PyObj_FromInt((int)wxTE_HT_ON_TEXT)); | |
31134 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_PyObj_FromInt((int)wxTE_HT_BELOW)); | |
31135 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_PyObj_FromInt((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
31136 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
31137 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
31138 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
31139 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
cbd72d4f RD |
31140 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
31141 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
31142 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
8edf1c75 RD |
31143 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSP_HORIZONTAL)); |
31144 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_PyObj_FromInt((int)wxSP_VERTICAL)); | |
31145 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_PyObj_FromInt((int)wxSP_ARROW_KEYS)); | |
31146 | PyDict_SetItemString(d,"SP_WRAP", SWIG_PyObj_FromInt((int)wxSP_WRAP)); | |
d14a1e28 | 31147 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
cbd72d4f RD |
31148 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
31149 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
31150 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
31151 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 31152 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
cbd72d4f | 31153 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
8edf1c75 RD |
31154 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_PyObj_FromInt((int)wxNB_FIXEDWIDTH)); |
31155 | PyDict_SetItemString(d,"NB_TOP", SWIG_PyObj_FromInt((int)wxNB_TOP)); | |
31156 | PyDict_SetItemString(d,"NB_LEFT", SWIG_PyObj_FromInt((int)wxNB_LEFT)); | |
31157 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_PyObj_FromInt((int)wxNB_RIGHT)); | |
31158 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_PyObj_FromInt((int)wxNB_BOTTOM)); | |
31159 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_PyObj_FromInt((int)wxNB_MULTILINE)); | |
31160 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
31161 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONICON)); | |
31162 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
31163 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
31164 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
31165 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
8edf1c75 RD |
31166 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_PyObj_FromInt((int)wxLB_DEFAULT)); |
31167 | PyDict_SetItemString(d,"LB_TOP", SWIG_PyObj_FromInt((int)wxLB_TOP)); | |
31168 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_PyObj_FromInt((int)wxLB_BOTTOM)); | |
31169 | PyDict_SetItemString(d,"LB_LEFT", SWIG_PyObj_FromInt((int)wxLB_LEFT)); | |
31170 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_PyObj_FromInt((int)wxLB_RIGHT)); | |
31171 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_PyObj_FromInt((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
31172 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
31173 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
8edf1c75 RD |
31174 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_BUTTON)); |
31175 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
31176 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
31177 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_PyObj_FromInt((int)wxTB_HORIZONTAL)); | |
31178 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_PyObj_FromInt((int)wxTB_VERTICAL)); | |
31179 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_PyObj_FromInt((int)wxTB_3DBUTTONS)); | |
31180 | PyDict_SetItemString(d,"TB_FLAT", SWIG_PyObj_FromInt((int)wxTB_FLAT)); | |
31181 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_PyObj_FromInt((int)wxTB_DOCKABLE)); | |
31182 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_PyObj_FromInt((int)wxTB_NOICONS)); | |
31183 | PyDict_SetItemString(d,"TB_TEXT", SWIG_PyObj_FromInt((int)wxTB_TEXT)); | |
31184 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_PyObj_FromInt((int)wxTB_NODIVIDER)); | |
31185 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_PyObj_FromInt((int)wxTB_NOALIGN)); | |
31186 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_PyObj_FromInt((int)wxTB_HORZ_LAYOUT)); | |
31187 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_PyObj_FromInt((int)wxTB_HORZ_TEXT)); | |
cbd72d4f | 31188 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
8edf1c75 RD |
31189 | PyDict_SetItemString(d,"LC_VRULES", SWIG_PyObj_FromInt((int)wxLC_VRULES)); |
31190 | PyDict_SetItemString(d,"LC_HRULES", SWIG_PyObj_FromInt((int)wxLC_HRULES)); | |
31191 | PyDict_SetItemString(d,"LC_ICON", SWIG_PyObj_FromInt((int)wxLC_ICON)); | |
31192 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_PyObj_FromInt((int)wxLC_SMALL_ICON)); | |
31193 | PyDict_SetItemString(d,"LC_LIST", SWIG_PyObj_FromInt((int)wxLC_LIST)); | |
31194 | PyDict_SetItemString(d,"LC_REPORT", SWIG_PyObj_FromInt((int)wxLC_REPORT)); | |
31195 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLC_ALIGN_TOP)); | |
31196 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLC_ALIGN_LEFT)); | |
31197 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_PyObj_FromInt((int)wxLC_AUTOARRANGE)); | |
31198 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_PyObj_FromInt((int)wxLC_VIRTUAL)); | |
31199 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxLC_EDIT_LABELS)); | |
31200 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_HEADER)); | |
31201 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_SORT_HEADER)); | |
31202 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_PyObj_FromInt((int)wxLC_SINGLE_SEL)); | |
31203 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_ASCENDING)); | |
31204 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_DESCENDING)); | |
31205 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_PyObj_FromInt((int)wxLC_MASK_TYPE)); | |
31206 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_PyObj_FromInt((int)wxLC_MASK_ALIGN)); | |
31207 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_PyObj_FromInt((int)wxLC_MASK_SORT)); | |
31208 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_PyObj_FromInt((int)wxLIST_MASK_STATE)); | |
31209 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_PyObj_FromInt((int)wxLIST_MASK_TEXT)); | |
31210 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_PyObj_FromInt((int)wxLIST_MASK_IMAGE)); | |
31211 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_PyObj_FromInt((int)wxLIST_MASK_DATA)); | |
31212 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_PyObj_FromInt((int)wxLIST_SET_ITEM)); | |
31213 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_PyObj_FromInt((int)wxLIST_MASK_WIDTH)); | |
31214 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_PyObj_FromInt((int)wxLIST_MASK_FORMAT)); | |
31215 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_PyObj_FromInt((int)wxLIST_STATE_DONTCARE)); | |
31216 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
31217 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FOCUSED)); | |
31218 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_PyObj_FromInt((int)wxLIST_STATE_SELECTED)); | |
31219 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_PyObj_FromInt((int)wxLIST_STATE_CUT)); | |
31220 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DISABLED)); | |
31221 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FILTERED)); | |
31222 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_PyObj_FromInt((int)wxLIST_STATE_INUSE)); | |
31223 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_PyObj_FromInt((int)wxLIST_STATE_PICKED)); | |
31224 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_PyObj_FromInt((int)wxLIST_STATE_SOURCE)); | |
31225 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
31226 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_BELOW)); | |
31227 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
31228 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
31229 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
31230 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
31231 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
31232 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
31233 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
31234 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
31235 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ABOVE)); | |
31236 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ALL)); | |
31237 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_PyObj_FromInt((int)wxLIST_NEXT_BELOW)); | |
31238 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_LEFT)); | |
31239 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_RIGHT)); | |
31240 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
31241 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_LEFT)); | |
31242 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_TOP)); | |
31243 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
31244 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_LEFT)); | |
31245 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
31246 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
31247 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTER)); | |
31248 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE)); | |
31249 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
31250 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_PyObj_FromInt((int)wxLIST_RECT_BOUNDS)); | |
31251 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_PyObj_FromInt((int)wxLIST_RECT_ICON)); | |
31252 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_PyObj_FromInt((int)wxLIST_RECT_LABEL)); | |
31253 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_PyObj_FromInt((int)wxLIST_FIND_UP)); | |
31254 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_PyObj_FromInt((int)wxLIST_FIND_DOWN)); | |
31255 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FIND_LEFT)); | |
31256 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
31257 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
31258 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
31259 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
31260 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
31261 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
31262 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
31263 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
31264 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
31265 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
31266 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
31267 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
31268 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
31269 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
31270 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
31271 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
31272 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
31273 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
31274 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
31275 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
31276 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
31277 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
31278 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
31279 | ||
31280 | // Map renamed classes back to their common name for OOR | |
31281 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
31282 | ||
cbd72d4f | 31283 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
8edf1c75 RD |
31284 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_NO_BUTTONS)); |
31285 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_HAS_BUTTONS)); | |
31286 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_PyObj_FromInt((int)wxTR_NO_LINES)); | |
31287 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_PyObj_FromInt((int)wxTR_LINES_AT_ROOT)); | |
31288 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_PyObj_FromInt((int)wxTR_SINGLE)); | |
31289 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_PyObj_FromInt((int)wxTR_MULTIPLE)); | |
31290 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_PyObj_FromInt((int)wxTR_EXTENDED)); | |
31291 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_PyObj_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
31292 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxTR_EDIT_LABELS)); | |
31293 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_PyObj_FromInt((int)wxTR_HIDE_ROOT)); | |
31294 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_PyObj_FromInt((int)wxTR_ROW_LINES)); | |
31295 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_PyObj_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
31296 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_PyObj_FromInt((int)wxTR_DEFAULT_STYLE)); | |
31297 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_TWIST_BUTTONS)); | |
31298 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_MAC_BUTTONS)); | |
31299 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_AQUA_BUTTONS)); | |
31300 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Normal)); | |
31301 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Selected)); | |
31302 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Expanded)); | |
31303 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
31304 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Max)); | |
31305 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
31306 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_BELOW)); | |
31307 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
31308 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
31309 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
31310 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
31311 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
31312 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
31313 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
31314 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
31315 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
31316 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
31317 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
31318 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
31319 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
31320 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
31321 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
31322 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
31323 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
31324 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
31325 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
31326 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
31327 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
31328 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
31329 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
31330 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
31331 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
31332 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
31333 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
31334 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
31335 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
31336 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
31337 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
9fd4be55 | 31338 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
31339 | |
31340 | // Map renamed classes back to their common name for OOR | |
31341 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
31342 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
31343 | ||
cbd72d4f | 31344 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
8edf1c75 RD |
31345 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_PyObj_FromInt((int)wxDIRCTRL_DIR_ONLY)); |
31346 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_PyObj_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
31347 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_PyObj_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
31348 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_PyObj_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
31349 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
31350 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
31351 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
31352 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
31353 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
423f194a RD |
31354 | |
31355 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
31356 | ||
d14a1e28 RD |
31357 | } |
31358 |