]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
83448d71 | 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 | ||
f0983263 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 |
f0983263 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
f0983263 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
f0983263 | 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 { | |
f0983263 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
f0983263 | 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 *); | |
f0983263 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 | ||
f0983263 | 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) | |
83448d71 | 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 | |
f0983263 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 | ||
d03fd34d RD |
370 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
371 | static const wxString wxPyEmptyString(wxEmptyString); | |
372 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
4e760a36 RD |
373 | |
374 | const wxArrayString wxPyEmptyStringArray; | |
375 | ||
d03fd34d | 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 | ||
d03fd34d | 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 | ||
d03fd34d 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 | |
d03fd34d | 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 | } | |
0ffb2aa6 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 | } | |
d03fd34d | 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 | } | |
d03fd34d RD |
479 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
480 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
eb9b6107 | 481 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
d03fd34d RD |
482 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
483 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
484 | |
485 | #include <wx/slider.h> | |
486 | ||
d14a1e28 | 487 | |
d03fd34d | 488 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
eb9b6107 | 489 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 490 | |
eb9b6107 | 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 | ||
d03fd34d | 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 | ||
d03fd34d | 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 | |
eb9b6107 | 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 | return self; | |
659 | ||
660 | ||
661 | ||
662 | } | |
663 | ||
664 | #include <wx/treectrl.h> | |
665 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 666 | |
eb9b6107 | 667 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
328fcd84 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 | } | |
d03fd34d | 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 *) { |
d03fd34d 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 | } | |
4e760a36 | 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 | ||
d14a1e28 RD |
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 | } | |
4e760a36 | 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 *) { |
d03fd34d 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 | } | |
4e760a36 | 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 | } | |
4e760a36 | 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 | } | |
4e760a36 | 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; | |
83448d71 | 2052 | { |
8edf1c75 | 2053 | arg2 = (bool const) SWIG_PyObj_AsBool(obj1); |
83448d71 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 | } | |
4e760a36 | 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 | } | |
4e760a36 | 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 *) { |
d03fd34d 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 ; | |
4e760a36 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 ; | |
db914595 | 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 | { | |
4e760a36 RD |
2254 | if (! PySequence_Check(obj4)) { |
2255 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2256 | SWIG_fail; | |
2257 | } | |
2258 | arg5 = new wxArrayString; | |
db914595 | 2259 | temp5 = True; |
4e760a36 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 | { | |
4e760a36 | 2276 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
2277 | if (PyErr_Occurred()) SWIG_fail; |
2278 | } | |
2279 | } | |
d14a1e28 | 2280 | if (obj6) { |
4e760a36 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 | { | |
4e760a36 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(); | |
4e760a36 | 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 | { | |
db914595 | 2302 | if (temp5) delete arg5; |
d14a1e28 RD |
2303 | } |
2304 | { | |
2305 | if (temp8) | |
4e760a36 | 2306 | delete arg8; |
d14a1e28 RD |
2307 | } |
2308 | return resultobj; | |
2309 | fail: | |
2310 | { | |
db914595 | 2311 | if (temp5) delete arg5; |
d14a1e28 RD |
2312 | } |
2313 | { | |
2314 | if (temp8) | |
4e760a36 | 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 ; | |
4e760a36 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 ; | |
db914595 | 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 | { | |
4e760a36 RD |
2398 | if (! PySequence_Check(obj5)) { |
2399 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2400 | SWIG_fail; | |
2401 | } | |
2402 | arg6 = new wxArrayString; | |
db914595 | 2403 | temp6 = True; |
4e760a36 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 | { | |
4e760a36 | 2420 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
2421 | if (PyErr_Occurred()) SWIG_fail; |
2422 | } | |
2423 | } | |
d14a1e28 | 2424 | if (obj7) { |
4e760a36 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 | { | |
4e760a36 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(); | |
4e760a36 | 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 | } | |
4e760a36 | 2444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 2445 | { |
db914595 | 2446 | if (temp6) delete arg6; |
d14a1e28 RD |
2447 | } |
2448 | { | |
2449 | if (temp9) | |
4e760a36 | 2450 | delete arg9; |
d14a1e28 RD |
2451 | } |
2452 | return resultobj; | |
2453 | fail: | |
2454 | { | |
db914595 | 2455 | if (temp6) delete arg6; |
d14a1e28 RD |
2456 | } |
2457 | { | |
2458 | if (temp9) | |
4e760a36 | 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 *) { |
d03fd34d 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 ; | |
4e760a36 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 ; | |
db914595 | 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 | { | |
4e760a36 RD |
2671 | if (! PySequence_Check(obj5)) { |
2672 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2673 | SWIG_fail; | |
2674 | } | |
2675 | arg6 = new wxArrayString; | |
db914595 | 2676 | temp6 = True; |
4e760a36 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 | { | |
4e760a36 | 2693 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
2694 | if (PyErr_Occurred()) SWIG_fail; |
2695 | } | |
2696 | } | |
d14a1e28 | 2697 | if (obj7) { |
4e760a36 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 | { | |
4e760a36 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(); | |
4e760a36 | 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 | { | |
db914595 | 2723 | if (temp6) delete arg6; |
d14a1e28 RD |
2724 | } |
2725 | { | |
2726 | if (temp9) | |
4e760a36 | 2727 | delete arg9; |
d14a1e28 RD |
2728 | } |
2729 | return resultobj; | |
2730 | fail: | |
2731 | { | |
2732 | if (temp3) | |
2733 | delete arg3; | |
2734 | } | |
2735 | { | |
db914595 | 2736 | if (temp6) delete arg6; |
d14a1e28 RD |
2737 | } |
2738 | { | |
2739 | if (temp9) | |
4e760a36 | 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 ; | |
4e760a36 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 ; | |
328fcd84 | 2784 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4e760a36 | 2785 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 2786 | bool result; |
423f194a | 2787 | bool temp4 = False ; |
d14a1e28 RD |
2788 | wxPoint temp5 ; |
2789 | wxSize temp6 ; | |
db914595 | 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 | { | |
4e760a36 RD |
2834 | if (! PySequence_Check(obj6)) { |
2835 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2836 | SWIG_fail; | |
2837 | } | |
2838 | arg7 = new wxArrayString; | |
db914595 | 2839 | temp7 = True; |
4e760a36 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 | { | |
4e760a36 | 2856 | arg8 = (long) SWIG_PyObj_AsLong(obj7); |
8edf1c75 RD |
2857 | if (PyErr_Occurred()) SWIG_fail; |
2858 | } | |
2859 | } | |
d14a1e28 | 2860 | if (obj8) { |
4e760a36 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 | { | |
4e760a36 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(); | |
4e760a36 | 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 | } | |
4e760a36 | 2880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2881 | { |
2882 | if (temp4) | |
2883 | delete arg4; | |
2884 | } | |
2885 | { | |
db914595 | 2886 | if (temp7) delete arg7; |
d14a1e28 RD |
2887 | } |
2888 | { | |
2889 | if (temp10) | |
4e760a36 | 2890 | delete arg10; |
d14a1e28 RD |
2891 | } |
2892 | return resultobj; | |
2893 | fail: | |
2894 | { | |
2895 | if (temp4) | |
2896 | delete arg4; | |
2897 | } | |
2898 | { | |
db914595 | 2899 | if (temp7) delete arg7; |
d14a1e28 RD |
2900 | } |
2901 | { | |
2902 | if (temp10) | |
4e760a36 | 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 RD |
3148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3149 | { | |
8edf1c75 RD |
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 | } | |
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 | ||
8a0b029b 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 ; |
8a0b029b 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; |
8a0b029b | 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 | } | |
8a0b029b 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; | |
83448d71 | 3262 | { |
8edf1c75 | 3263 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 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 *) { |
d03fd34d 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 | } | |
4e760a36 | 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 | } | |
4e760a36 | 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 *) { |
d03fd34d 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 *) { |
d03fd34d 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 *) { |
d03fd34d 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 | } | |
4e760a36 | 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 | } | |
4e760a36 | 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 | } | |
4e760a36 | 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 | } | |
4e760a36 | 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 | } | |
4e760a36 | 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 *) { |
d03fd34d 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 ; | |
4e760a36 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 ; | |
db914595 | 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 | { | |
4e760a36 RD |
4930 | if (! PySequence_Check(obj4)) { |
4931 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4932 | SWIG_fail; | |
4933 | } | |
4934 | arg5 = new wxArrayString; | |
db914595 | 4935 | temp5 = True; |
4e760a36 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 | { | |
4e760a36 | 4952 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
4953 | if (PyErr_Occurred()) SWIG_fail; |
4954 | } | |
4955 | } | |
d14a1e28 | 4956 | if (obj6) { |
4e760a36 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 | { | |
4e760a36 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(); | |
4e760a36 | 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 | { | |
db914595 | 4978 | if (temp5) delete arg5; |
d14a1e28 RD |
4979 | } |
4980 | { | |
4981 | if (temp8) | |
4e760a36 | 4982 | delete arg8; |
d14a1e28 RD |
4983 | } |
4984 | return resultobj; | |
4985 | fail: | |
4986 | { | |
db914595 | 4987 | if (temp5) delete arg5; |
d14a1e28 RD |
4988 | } |
4989 | { | |
4990 | if (temp8) | |
4e760a36 | 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 ; | |
4e760a36 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 ; | |
db914595 | 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 | { | |
4e760a36 RD |
5074 | if (! PySequence_Check(obj5)) { |
5075 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5076 | SWIG_fail; | |
5077 | } | |
5078 | arg6 = new wxArrayString; | |
db914595 | 5079 | temp6 = True; |
4e760a36 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 | { | |
4e760a36 | 5096 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
5097 | if (PyErr_Occurred()) SWIG_fail; |
5098 | } | |
5099 | } | |
d14a1e28 | 5100 | if (obj7) { |
4e760a36 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 | { | |
4e760a36 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(); | |
4e760a36 | 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 | } | |
4e760a36 | 5120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 5121 | { |
db914595 | 5122 | if (temp6) delete arg6; |
d14a1e28 RD |
5123 | } |
5124 | { | |
5125 | if (temp9) | |
4e760a36 | 5126 | delete arg9; |
d14a1e28 RD |
5127 | } |
5128 | return resultobj; | |
5129 | fail: | |
5130 | { | |
db914595 | 5131 | if (temp6) delete arg6; |
d14a1e28 RD |
5132 | } |
5133 | { | |
5134 | if (temp9) | |
4e760a36 | 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 ; | |
db914595 | 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; | |
db914595 | 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 | { | |
db914595 | 5240 | if (temp2) delete arg2; |
d14a1e28 RD |
5241 | } |
5242 | return resultobj; | |
5243 | fail: | |
5244 | { | |
db914595 | 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 ; | |
db914595 | 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; | |
db914595 | 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 | { | |
db914595 | 5293 | if (temp2) delete arg2; |
d14a1e28 RD |
5294 | } |
5295 | return resultobj; | |
5296 | fail: | |
5297 | { | |
db914595 | 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 | } | |
4e760a36 | 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) { |
83448d71 | 5354 | { |
8edf1c75 | 5355 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 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) { | |
83448d71 | 5487 | { |
8edf1c75 | 5488 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 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 | } | |
4e760a36 | 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 | } | |
4e760a36 | 5697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5698 | return resultobj; |
5699 | fail: | |
5700 | return NULL; | |
5701 | } | |
5702 | ||
5703 | ||
0ffb2aa6 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 ; | |
4e760a36 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 ; | |
db914595 | 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 | { | |
4e760a36 RD |
5873 | if (! PySequence_Check(obj4)) { |
5874 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5875 | SWIG_fail; | |
5876 | } | |
5877 | arg5 = new wxArrayString; | |
db914595 | 5878 | temp5 = True; |
4e760a36 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 | { | |
4e760a36 | 5895 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
5896 | if (PyErr_Occurred()) SWIG_fail; |
5897 | } | |
5898 | } | |
d14a1e28 | 5899 | if (obj6) { |
4e760a36 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 | { | |
4e760a36 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(); | |
4e760a36 | 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 | { | |
db914595 | 5921 | if (temp5) delete arg5; |
d14a1e28 RD |
5922 | } |
5923 | { | |
5924 | if (temp8) | |
4e760a36 | 5925 | delete arg8; |
d14a1e28 RD |
5926 | } |
5927 | return resultobj; | |
5928 | fail: | |
5929 | { | |
db914595 | 5930 | if (temp5) delete arg5; |
d14a1e28 RD |
5931 | } |
5932 | { | |
5933 | if (temp8) | |
4e760a36 | 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 ; | |
4e760a36 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 ; | |
db914595 | 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 | { | |
4e760a36 RD |
6017 | if (! PySequence_Check(obj5)) { |
6018 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6019 | SWIG_fail; | |
6020 | } | |
6021 | arg6 = new wxArrayString; | |
db914595 | 6022 | temp6 = True; |
4e760a36 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 | { | |
4e760a36 | 6039 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
6040 | if (PyErr_Occurred()) SWIG_fail; |
6041 | } | |
6042 | } | |
d14a1e28 | 6043 | if (obj7) { |
4e760a36 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 | { | |
4e760a36 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(); | |
4e760a36 | 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 | } | |
4e760a36 | 6063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 6064 | { |
db914595 | 6065 | if (temp6) delete arg6; |
d14a1e28 RD |
6066 | } |
6067 | { | |
6068 | if (temp9) | |
4e760a36 | 6069 | delete arg9; |
d14a1e28 RD |
6070 | } |
6071 | return resultobj; | |
6072 | fail: | |
6073 | { | |
db914595 | 6074 | if (temp6) delete arg6; |
d14a1e28 RD |
6075 | } |
6076 | { | |
6077 | if (temp9) | |
4e760a36 | 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 | } | |
4e760a36 | 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_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6154 | PyObject *resultobj; | |
6155 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6156 | int result; | |
6157 | PyObject * obj0 = 0 ; | |
6158 | char *kwnames[] = { | |
6159 | (char *) "self", NULL | |
6160 | }; | |
6161 | ||
6162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
6163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6164 | { | |
6165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6166 | result = (int)(arg1)->GetItemHeight(); | |
6167 | ||
6168 | wxPyEndAllowThreads(__tstate); | |
6169 | if (PyErr_Occurred()) SWIG_fail; | |
6170 | } | |
8edf1c75 | 6171 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6172 | return resultobj; |
6173 | fail: | |
6174 | return NULL; | |
6175 | } | |
6176 | ||
6177 | ||
6178 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6179 | PyObject *resultobj; | |
6180 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6181 | wxPoint *arg2 = 0 ; | |
6182 | int result; | |
6183 | wxPoint temp2 ; | |
6184 | PyObject * obj0 = 0 ; | |
6185 | PyObject * obj1 = 0 ; | |
6186 | char *kwnames[] = { | |
6187 | (char *) "self",(char *) "pt", NULL | |
6188 | }; | |
6189 | ||
6190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
6191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6192 | { | |
6193 | arg2 = &temp2; | |
6194 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6195 | } | |
6196 | { | |
6197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6198 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6199 | ||
6200 | wxPyEndAllowThreads(__tstate); | |
6201 | if (PyErr_Occurred()) SWIG_fail; | |
6202 | } | |
8edf1c75 | 6203 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6204 | return resultobj; |
6205 | fail: | |
6206 | return NULL; | |
6207 | } | |
6208 | ||
6209 | ||
6210 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6211 | PyObject *resultobj; | |
6212 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
423f194a RD |
6213 | int arg2 ; |
6214 | int arg3 ; | |
d14a1e28 RD |
6215 | int result; |
6216 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6217 | PyObject * obj1 = 0 ; |
6218 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6219 | char *kwnames[] = { |
6220 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6221 | }; | |
6222 | ||
8edf1c75 | 6223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6225 | { |
6226 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6227 | if (PyErr_Occurred()) SWIG_fail; | |
6228 | } | |
6229 | { | |
6230 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6231 | if (PyErr_Occurred()) SWIG_fail; | |
6232 | } | |
d14a1e28 RD |
6233 | { |
6234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6235 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6236 | ||
6237 | wxPyEndAllowThreads(__tstate); | |
6238 | if (PyErr_Occurred()) SWIG_fail; | |
6239 | } | |
8edf1c75 | 6240 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6241 | return resultobj; |
6242 | fail: | |
6243 | return NULL; | |
6244 | } | |
6245 | ||
6246 | ||
6247 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6248 | PyObject *obj; | |
6249 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6250 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6251 | Py_INCREF(obj); | |
6252 | return Py_BuildValue((char *)""); | |
6253 | } | |
8edf1c75 | 6254 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
d03fd34d RD |
6255 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
6256 | return 1; | |
6257 | } | |
6258 | ||
6259 | ||
6260 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6261 | PyObject *pyobj; | |
6262 | ||
6263 | { | |
6264 | #if wxUSE_UNICODE | |
6265 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6266 | #else | |
6267 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6268 | #endif | |
6269 | } | |
6270 | return pyobj; | |
6271 | } | |
6272 | ||
6273 | ||
d14a1e28 RD |
6274 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { |
6275 | PyObject *resultobj; | |
6276 | wxTextAttr *result; | |
6277 | ||
6278 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
6279 | { | |
6280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6281 | result = (wxTextAttr *)new wxTextAttr(); | |
6282 | ||
6283 | wxPyEndAllowThreads(__tstate); | |
6284 | if (PyErr_Occurred()) SWIG_fail; | |
6285 | } | |
6286 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6287 | return resultobj; | |
6288 | fail: | |
6289 | return NULL; | |
6290 | } | |
6291 | ||
6292 | ||
6293 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
6294 | PyObject *resultobj; | |
6295 | wxColour *arg1 = 0 ; | |
6296 | wxColour const &arg2_defvalue = wxNullColour ; | |
6297 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6298 | wxFont const &arg3_defvalue = wxNullFont ; | |
6299 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6300 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6301 | wxTextAttr *result; | |
6302 | wxColour temp1 ; | |
6303 | wxColour temp2 ; | |
6304 | PyObject * obj0 = 0 ; | |
6305 | PyObject * obj1 = 0 ; | |
6306 | PyObject * obj2 = 0 ; | |
8edf1c75 | 6307 | PyObject * obj3 = 0 ; |
d14a1e28 | 6308 | |
8edf1c75 | 6309 | if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
6310 | { |
6311 | arg1 = &temp1; | |
6312 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
6313 | } | |
6314 | if (obj1) { | |
6315 | { | |
6316 | arg2 = &temp2; | |
6317 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6318 | } | |
6319 | } | |
6320 | if (obj2) { | |
6321 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6322 | if (arg3 == NULL) { | |
6323 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6324 | } | |
6325 | } | |
8edf1c75 RD |
6326 | if (obj3) { |
6327 | { | |
6328 | arg4 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj3); | |
6329 | if (PyErr_Occurred()) SWIG_fail; | |
6330 | } | |
6331 | } | |
6332 | { | |
6333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6334 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
d14a1e28 RD |
6335 | |
6336 | wxPyEndAllowThreads(__tstate); | |
6337 | if (PyErr_Occurred()) SWIG_fail; | |
6338 | } | |
6339 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6340 | return resultobj; | |
6341 | fail: | |
6342 | return NULL; | |
6343 | } | |
6344 | ||
6345 | ||
6346 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
6347 | int argc; | |
6348 | PyObject *argv[5]; | |
6349 | int ii; | |
6350 | ||
6351 | argc = PyObject_Length(args); | |
6352 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
6353 | argv[ii] = PyTuple_GetItem(args,ii); | |
6354 | } | |
6355 | if (argc == 0) { | |
6356 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
6357 | } | |
6358 | if ((argc >= 1) && (argc <= 4)) { | |
6359 | int _v; | |
6360 | { | |
6361 | _v = wxColour_typecheck(argv[0]); | |
6362 | } | |
6363 | if (_v) { | |
6364 | if (argc <= 1) { | |
6365 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6366 | } | |
6367 | { | |
6368 | _v = wxColour_typecheck(argv[1]); | |
6369 | } | |
6370 | if (_v) { | |
6371 | if (argc <= 2) { | |
6372 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6373 | } | |
6374 | { | |
6375 | void *ptr; | |
6376 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxFont, 0) == -1) { | |
6377 | _v = 0; | |
6378 | PyErr_Clear(); | |
6379 | } else { | |
6380 | _v = 1; | |
6381 | } | |
6382 | } | |
6383 | if (_v) { | |
6384 | if (argc <= 3) { | |
6385 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6386 | } | |
8edf1c75 RD |
6387 | { |
6388 | SWIG_PyObj_AsInt(argv[3]); | |
6389 | if (PyErr_Occurred()) { | |
6390 | _v = 0; | |
6391 | PyErr_Clear(); | |
6392 | } else { | |
6393 | _v = 1; | |
6394 | } | |
6395 | } | |
6396 | if (_v) { | |
6397 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6398 | } | |
d14a1e28 RD |
6399 | } |
6400 | } | |
6401 | } | |
6402 | } | |
6403 | ||
6404 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
6405 | return NULL; | |
6406 | } | |
6407 | ||
6408 | ||
8edf1c75 RD |
6409 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
6410 | PyObject *resultobj; | |
6411 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6412 | PyObject * obj0 = 0 ; | |
6413 | char *kwnames[] = { | |
6414 | (char *) "self", NULL | |
6415 | }; | |
6416 | ||
6417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
6418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6419 | { | |
6420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6421 | delete arg1; | |
6422 | ||
6423 | wxPyEndAllowThreads(__tstate); | |
6424 | if (PyErr_Occurred()) SWIG_fail; | |
6425 | } | |
6426 | Py_INCREF(Py_None); resultobj = Py_None; | |
6427 | return resultobj; | |
6428 | fail: | |
6429 | return NULL; | |
6430 | } | |
6431 | ||
6432 | ||
d14a1e28 RD |
6433 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { |
6434 | PyObject *resultobj; | |
6435 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6436 | PyObject * obj0 = 0 ; | |
6437 | char *kwnames[] = { | |
6438 | (char *) "self", NULL | |
6439 | }; | |
6440 | ||
6441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
6442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6443 | { | |
6444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6445 | (arg1)->Init(); | |
6446 | ||
6447 | wxPyEndAllowThreads(__tstate); | |
6448 | if (PyErr_Occurred()) SWIG_fail; | |
6449 | } | |
6450 | Py_INCREF(Py_None); resultobj = Py_None; | |
6451 | return resultobj; | |
6452 | fail: | |
6453 | return NULL; | |
6454 | } | |
6455 | ||
6456 | ||
6457 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6458 | PyObject *resultobj; | |
6459 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6460 | wxColour *arg2 = 0 ; | |
6461 | wxColour temp2 ; | |
6462 | PyObject * obj0 = 0 ; | |
6463 | PyObject * obj1 = 0 ; | |
6464 | char *kwnames[] = { | |
6465 | (char *) "self",(char *) "colText", NULL | |
6466 | }; | |
6467 | ||
6468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
6469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6470 | { | |
6471 | arg2 = &temp2; | |
6472 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6473 | } | |
6474 | { | |
6475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6476 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
6477 | ||
6478 | wxPyEndAllowThreads(__tstate); | |
6479 | if (PyErr_Occurred()) SWIG_fail; | |
6480 | } | |
6481 | Py_INCREF(Py_None); resultobj = Py_None; | |
6482 | return resultobj; | |
6483 | fail: | |
6484 | return NULL; | |
6485 | } | |
6486 | ||
6487 | ||
6488 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6489 | PyObject *resultobj; | |
6490 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6491 | wxColour *arg2 = 0 ; | |
6492 | wxColour temp2 ; | |
6493 | PyObject * obj0 = 0 ; | |
6494 | PyObject * obj1 = 0 ; | |
6495 | char *kwnames[] = { | |
6496 | (char *) "self",(char *) "colBack", NULL | |
6497 | }; | |
6498 | ||
6499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
6500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6501 | { | |
6502 | arg2 = &temp2; | |
6503 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6504 | } | |
6505 | { | |
6506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6507 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
6508 | ||
6509 | wxPyEndAllowThreads(__tstate); | |
6510 | if (PyErr_Occurred()) SWIG_fail; | |
6511 | } | |
6512 | Py_INCREF(Py_None); resultobj = Py_None; | |
6513 | return resultobj; | |
6514 | fail: | |
6515 | return NULL; | |
6516 | } | |
6517 | ||
6518 | ||
6519 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6520 | PyObject *resultobj; | |
6521 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6522 | wxFont *arg2 = 0 ; | |
6523 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
6524 | PyObject * obj0 = 0 ; | |
6525 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6526 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6527 | char *kwnames[] = { |
6528 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
6529 | }; | |
6530 | ||
8edf1c75 | 6531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6533 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6534 | if (arg2 == NULL) { | |
6535 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6536 | } | |
8edf1c75 RD |
6537 | if (obj2) { |
6538 | { | |
6539 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
6540 | if (PyErr_Occurred()) SWIG_fail; | |
6541 | } | |
6542 | } | |
d14a1e28 RD |
6543 | { |
6544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6545 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
6546 | ||
6547 | wxPyEndAllowThreads(__tstate); | |
6548 | if (PyErr_Occurred()) SWIG_fail; | |
6549 | } | |
6550 | Py_INCREF(Py_None); resultobj = Py_None; | |
6551 | return resultobj; | |
6552 | fail: | |
6553 | return NULL; | |
6554 | } | |
6555 | ||
6556 | ||
6557 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6558 | PyObject *resultobj; | |
6559 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6560 | int arg2 ; | |
6561 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6562 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6563 | char *kwnames[] = { |
6564 | (char *) "self",(char *) "alignment", NULL | |
6565 | }; | |
6566 | ||
8edf1c75 | 6567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6569 | { |
6570 | arg2 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj1); | |
6571 | if (PyErr_Occurred()) SWIG_fail; | |
6572 | } | |
d14a1e28 RD |
6573 | { |
6574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6575 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
6576 | ||
6577 | wxPyEndAllowThreads(__tstate); | |
6578 | if (PyErr_Occurred()) SWIG_fail; | |
6579 | } | |
6580 | Py_INCREF(Py_None); resultobj = Py_None; | |
6581 | return resultobj; | |
6582 | fail: | |
6583 | return NULL; | |
6584 | } | |
6585 | ||
6586 | ||
6587 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6588 | PyObject *resultobj; | |
6589 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6590 | wxArrayInt *arg2 = 0 ; | |
db914595 | 6591 | bool temp2 = False ; |
d14a1e28 RD |
6592 | PyObject * obj0 = 0 ; |
6593 | PyObject * obj1 = 0 ; | |
6594 | char *kwnames[] = { | |
6595 | (char *) "self",(char *) "tabs", NULL | |
6596 | }; | |
6597 | ||
6598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
6599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6600 | { | |
6601 | if (! PySequence_Check(obj1)) { | |
6602 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
6603 | SWIG_fail; | |
6604 | } | |
6605 | arg2 = new wxArrayInt; | |
db914595 | 6606 | temp2 = True; |
d14a1e28 RD |
6607 | int i, len=PySequence_Length(obj1); |
6608 | for (i=0; i<len; i++) { | |
6609 | PyObject* item = PySequence_GetItem(obj1, i); | |
6610 | PyObject* number = PyNumber_Int(item); | |
6611 | arg2->Add(PyInt_AS_LONG(number)); | |
6612 | Py_DECREF(item); | |
6613 | Py_DECREF(number); | |
6614 | } | |
6615 | } | |
6616 | { | |
6617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6618 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
6619 | ||
6620 | wxPyEndAllowThreads(__tstate); | |
6621 | if (PyErr_Occurred()) SWIG_fail; | |
6622 | } | |
6623 | Py_INCREF(Py_None); resultobj = Py_None; | |
6624 | { | |
db914595 | 6625 | if (temp2) delete arg2; |
d14a1e28 RD |
6626 | } |
6627 | return resultobj; | |
6628 | fail: | |
6629 | { | |
db914595 | 6630 | if (temp2) delete arg2; |
d14a1e28 RD |
6631 | } |
6632 | return NULL; | |
6633 | } | |
6634 | ||
6635 | ||
6636 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6637 | PyObject *resultobj; | |
6638 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6639 | int arg2 ; | |
6640 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6641 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6642 | char *kwnames[] = { |
6643 | (char *) "self",(char *) "indent", NULL | |
6644 | }; | |
6645 | ||
8edf1c75 | 6646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6648 | { |
6649 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6650 | if (PyErr_Occurred()) SWIG_fail; | |
6651 | } | |
d14a1e28 RD |
6652 | { |
6653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6654 | (arg1)->SetLeftIndent(arg2); | |
6655 | ||
6656 | wxPyEndAllowThreads(__tstate); | |
6657 | if (PyErr_Occurred()) SWIG_fail; | |
6658 | } | |
6659 | Py_INCREF(Py_None); resultobj = Py_None; | |
6660 | return resultobj; | |
6661 | fail: | |
6662 | return NULL; | |
6663 | } | |
6664 | ||
6665 | ||
6666 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6667 | PyObject *resultobj; | |
6668 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6669 | int arg2 ; | |
6670 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6671 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6672 | char *kwnames[] = { |
6673 | (char *) "self",(char *) "indent", NULL | |
6674 | }; | |
6675 | ||
8edf1c75 | 6676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6678 | { |
6679 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6680 | if (PyErr_Occurred()) SWIG_fail; | |
6681 | } | |
d14a1e28 RD |
6682 | { |
6683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6684 | (arg1)->SetRightIndent(arg2); | |
6685 | ||
6686 | wxPyEndAllowThreads(__tstate); | |
6687 | if (PyErr_Occurred()) SWIG_fail; | |
6688 | } | |
6689 | Py_INCREF(Py_None); resultobj = Py_None; | |
6690 | return resultobj; | |
6691 | fail: | |
6692 | return NULL; | |
6693 | } | |
6694 | ||
6695 | ||
6696 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6697 | PyObject *resultobj; | |
6698 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6699 | long arg2 ; | |
6700 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6701 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6702 | char *kwnames[] = { |
6703 | (char *) "self",(char *) "flags", NULL | |
6704 | }; | |
6705 | ||
8edf1c75 | 6706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6708 | { |
6709 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
6710 | if (PyErr_Occurred()) SWIG_fail; | |
6711 | } | |
d14a1e28 RD |
6712 | { |
6713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6714 | (arg1)->SetFlags(arg2); | |
6715 | ||
6716 | wxPyEndAllowThreads(__tstate); | |
6717 | if (PyErr_Occurred()) SWIG_fail; | |
6718 | } | |
6719 | Py_INCREF(Py_None); resultobj = Py_None; | |
6720 | return resultobj; | |
6721 | fail: | |
6722 | return NULL; | |
6723 | } | |
6724 | ||
6725 | ||
6726 | static PyObject *_wrap_TextAttr_HasTextColour(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_HasTextColour",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)->HasTextColour(); | |
6740 | ||
6741 | wxPyEndAllowThreads(__tstate); | |
6742 | if (PyErr_Occurred()) SWIG_fail; | |
6743 | } | |
4e760a36 | 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_HasBackgroundColour(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_HasBackgroundColour",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)->HasBackgroundColour(); | |
6765 | ||
6766 | wxPyEndAllowThreads(__tstate); | |
6767 | if (PyErr_Occurred()) SWIG_fail; | |
6768 | } | |
4e760a36 | 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_HasFont(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_HasFont",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)->HasFont(); | |
6790 | ||
6791 | wxPyEndAllowThreads(__tstate); | |
6792 | if (PyErr_Occurred()) SWIG_fail; | |
6793 | } | |
4e760a36 | 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_HasAlignment(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_HasAlignment",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)->HasAlignment(); | |
6815 | ||
6816 | wxPyEndAllowThreads(__tstate); | |
6817 | if (PyErr_Occurred()) SWIG_fail; | |
6818 | } | |
4e760a36 | 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_HasTabs(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_HasTabs",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)->HasTabs(); | |
6840 | ||
6841 | wxPyEndAllowThreads(__tstate); | |
6842 | if (PyErr_Occurred()) SWIG_fail; | |
6843 | } | |
4e760a36 | 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_HasLeftIndent(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_HasLeftIndent",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)->HasLeftIndent(); | |
6865 | ||
6866 | wxPyEndAllowThreads(__tstate); | |
6867 | if (PyErr_Occurred()) SWIG_fail; | |
6868 | } | |
4e760a36 | 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_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6877 | PyObject *resultobj; | |
6878 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6879 | bool result; | |
6880 | PyObject * obj0 = 0 ; | |
6881 | char *kwnames[] = { | |
6882 | (char *) "self", NULL | |
6883 | }; | |
6884 | ||
6885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
6886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6887 | { | |
6888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6889 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
6890 | ||
6891 | wxPyEndAllowThreads(__tstate); | |
6892 | if (PyErr_Occurred()) SWIG_fail; | |
6893 | } | |
4e760a36 | 6894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6895 | return resultobj; |
6896 | fail: | |
6897 | return NULL; | |
6898 | } | |
6899 | ||
6900 | ||
6901 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6902 | PyObject *resultobj; | |
6903 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6904 | long arg2 ; | |
6905 | bool result; | |
6906 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6907 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6908 | char *kwnames[] = { |
6909 | (char *) "self",(char *) "flag", NULL | |
6910 | }; | |
6911 | ||
8edf1c75 | 6912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6914 | { |
6915 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
6916 | if (PyErr_Occurred()) SWIG_fail; | |
6917 | } | |
d14a1e28 RD |
6918 | { |
6919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6920 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
6921 | ||
6922 | wxPyEndAllowThreads(__tstate); | |
6923 | if (PyErr_Occurred()) SWIG_fail; | |
6924 | } | |
4e760a36 | 6925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6926 | return resultobj; |
6927 | fail: | |
6928 | return NULL; | |
6929 | } | |
6930 | ||
6931 | ||
6932 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6933 | PyObject *resultobj; | |
6934 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6935 | wxColour *result; | |
6936 | PyObject * obj0 = 0 ; | |
6937 | char *kwnames[] = { | |
6938 | (char *) "self", NULL | |
6939 | }; | |
6940 | ||
6941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
6942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6943 | { | |
6944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6945 | { | |
6946 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
6947 | result = (wxColour *) &_result_ref; | |
6948 | } | |
6949 | ||
6950 | wxPyEndAllowThreads(__tstate); | |
6951 | if (PyErr_Occurred()) SWIG_fail; | |
6952 | } | |
6953 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6954 | return resultobj; | |
6955 | fail: | |
6956 | return NULL; | |
6957 | } | |
6958 | ||
6959 | ||
6960 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6961 | PyObject *resultobj; | |
6962 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6963 | wxColour *result; | |
6964 | PyObject * obj0 = 0 ; | |
6965 | char *kwnames[] = { | |
6966 | (char *) "self", NULL | |
6967 | }; | |
6968 | ||
6969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
6970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6971 | { | |
6972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6973 | { | |
6974 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
6975 | result = (wxColour *) &_result_ref; | |
6976 | } | |
6977 | ||
6978 | wxPyEndAllowThreads(__tstate); | |
6979 | if (PyErr_Occurred()) SWIG_fail; | |
6980 | } | |
6981 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6982 | return resultobj; | |
6983 | fail: | |
6984 | return NULL; | |
6985 | } | |
6986 | ||
6987 | ||
6988 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6989 | PyObject *resultobj; | |
6990 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6991 | wxFont *result; | |
6992 | PyObject * obj0 = 0 ; | |
6993 | char *kwnames[] = { | |
6994 | (char *) "self", NULL | |
6995 | }; | |
6996 | ||
6997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
6998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6999 | { | |
7000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7001 | { | |
7002 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7003 | result = (wxFont *) &_result_ref; | |
7004 | } | |
7005 | ||
7006 | wxPyEndAllowThreads(__tstate); | |
7007 | if (PyErr_Occurred()) SWIG_fail; | |
7008 | } | |
7009 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
7010 | return resultobj; | |
7011 | fail: | |
7012 | return NULL; | |
7013 | } | |
7014 | ||
7015 | ||
7016 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7017 | PyObject *resultobj; | |
7018 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7019 | int result; | |
7020 | PyObject * obj0 = 0 ; | |
7021 | char *kwnames[] = { | |
7022 | (char *) "self", NULL | |
7023 | }; | |
7024 | ||
7025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",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 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7030 | ||
7031 | wxPyEndAllowThreads(__tstate); | |
7032 | if (PyErr_Occurred()) SWIG_fail; | |
7033 | } | |
8edf1c75 | 7034 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7035 | return resultobj; |
7036 | fail: | |
7037 | return NULL; | |
7038 | } | |
7039 | ||
7040 | ||
7041 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7042 | PyObject *resultobj; | |
7043 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7044 | wxArrayInt *result; | |
7045 | PyObject * obj0 = 0 ; | |
7046 | char *kwnames[] = { | |
7047 | (char *) "self", NULL | |
7048 | }; | |
7049 | ||
7050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
7051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7052 | { | |
7053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7054 | { | |
7055 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7056 | result = (wxArrayInt *) &_result_ref; | |
7057 | } | |
7058 | ||
7059 | wxPyEndAllowThreads(__tstate); | |
7060 | if (PyErr_Occurred()) SWIG_fail; | |
7061 | } | |
7062 | { | |
7063 | resultobj = PyList_New(0); | |
7064 | size_t idx; | |
7065 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7066 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7067 | PyList_Append(resultobj, val); | |
7068 | Py_DECREF(val); | |
7069 | } | |
7070 | } | |
7071 | return resultobj; | |
7072 | fail: | |
7073 | return NULL; | |
7074 | } | |
7075 | ||
7076 | ||
7077 | static PyObject *_wrap_TextAttr_GetLeftIndent(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_GetLeftIndent",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)->GetLeftIndent(); | |
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_GetRightIndent(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_GetRightIndent",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)->GetRightIndent(); | |
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_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7128 | PyObject *resultobj; | |
7129 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7130 | long result; | |
7131 | PyObject * obj0 = 0 ; | |
7132 | char *kwnames[] = { | |
7133 | (char *) "self", NULL | |
7134 | }; | |
7135 | ||
7136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",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 = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7141 | ||
7142 | wxPyEndAllowThreads(__tstate); | |
7143 | if (PyErr_Occurred()) SWIG_fail; | |
7144 | } | |
8edf1c75 | 7145 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7146 | return resultobj; |
7147 | fail: | |
7148 | return NULL; | |
7149 | } | |
7150 | ||
7151 | ||
7152 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7153 | PyObject *resultobj; | |
7154 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7155 | bool result; | |
7156 | PyObject * obj0 = 0 ; | |
7157 | char *kwnames[] = { | |
7158 | (char *) "self", NULL | |
7159 | }; | |
7160 | ||
7161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
7162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7163 | { | |
7164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7165 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7166 | ||
7167 | wxPyEndAllowThreads(__tstate); | |
7168 | if (PyErr_Occurred()) SWIG_fail; | |
7169 | } | |
4e760a36 | 7170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7171 | return resultobj; |
7172 | fail: | |
7173 | return NULL; | |
7174 | } | |
7175 | ||
7176 | ||
7177 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7178 | PyObject *resultobj; | |
7179 | wxTextAttr *arg1 = 0 ; | |
7180 | wxTextAttr *arg2 = 0 ; | |
7181 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7182 | wxTextAttr result; | |
7183 | PyObject * obj0 = 0 ; | |
7184 | PyObject * obj1 = 0 ; | |
7185 | PyObject * obj2 = 0 ; | |
7186 | char *kwnames[] = { | |
7187 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7188 | }; | |
7189 | ||
7190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7192 | if (arg1 == NULL) { | |
7193 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7194 | } | |
7195 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7196 | if (arg2 == NULL) { | |
7197 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7198 | } | |
7199 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7200 | { | |
7201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7202 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7203 | ||
7204 | wxPyEndAllowThreads(__tstate); | |
7205 | if (PyErr_Occurred()) SWIG_fail; | |
7206 | } | |
7207 | { | |
7208 | wxTextAttr * resultptr; | |
7209 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
7210 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTextAttr, 1); | |
7211 | } | |
7212 | return resultobj; | |
7213 | fail: | |
7214 | return NULL; | |
7215 | } | |
7216 | ||
7217 | ||
7218 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7219 | PyObject *obj; | |
7220 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7221 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7222 | Py_INCREF(obj); | |
7223 | return Py_BuildValue((char *)""); | |
7224 | } | |
7225 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7226 | PyObject *resultobj; | |
7227 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 7228 | int arg2 ; |
d14a1e28 RD |
7229 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7230 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7231 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7232 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7233 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7234 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7235 | long arg6 = (long) 0 ; | |
7236 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7237 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7238 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7239 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7240 | wxTextCtrl *result; | |
423f194a | 7241 | bool temp3 = False ; |
d14a1e28 RD |
7242 | wxPoint temp4 ; |
7243 | wxSize temp5 ; | |
423f194a | 7244 | bool temp8 = False ; |
d14a1e28 | 7245 | PyObject * obj0 = 0 ; |
8edf1c75 | 7246 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7247 | PyObject * obj2 = 0 ; |
7248 | PyObject * obj3 = 0 ; | |
7249 | PyObject * obj4 = 0 ; | |
8edf1c75 | 7250 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7251 | PyObject * obj6 = 0 ; |
7252 | PyObject * obj7 = 0 ; | |
7253 | char *kwnames[] = { | |
7254 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7255 | }; | |
7256 | ||
8edf1c75 | 7257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 7258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7259 | { |
7260 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7261 | if (PyErr_Occurred()) SWIG_fail; | |
7262 | } | |
d14a1e28 RD |
7263 | if (obj2) { |
7264 | { | |
7265 | arg3 = wxString_in_helper(obj2); | |
7266 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7267 | temp3 = True; |
d14a1e28 RD |
7268 | } |
7269 | } | |
7270 | if (obj3) { | |
7271 | { | |
7272 | arg4 = &temp4; | |
7273 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7274 | } | |
7275 | } | |
7276 | if (obj4) { | |
7277 | { | |
7278 | arg5 = &temp5; | |
7279 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7280 | } | |
7281 | } | |
8edf1c75 RD |
7282 | if (obj5) { |
7283 | { | |
7284 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
7285 | if (PyErr_Occurred()) SWIG_fail; | |
7286 | } | |
7287 | } | |
d14a1e28 RD |
7288 | if (obj6) { |
7289 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7290 | if (arg7 == NULL) { | |
7291 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7292 | } | |
7293 | } | |
7294 | if (obj7) { | |
7295 | { | |
7296 | arg8 = wxString_in_helper(obj7); | |
7297 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 7298 | temp8 = True; |
d14a1e28 RD |
7299 | } |
7300 | } | |
7301 | { | |
7302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7303 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7304 | ||
7305 | wxPyEndAllowThreads(__tstate); | |
7306 | if (PyErr_Occurred()) SWIG_fail; | |
7307 | } | |
7308 | { | |
7309 | resultobj = wxPyMake_wxObject(result); | |
7310 | } | |
7311 | { | |
7312 | if (temp3) | |
7313 | delete arg3; | |
7314 | } | |
7315 | { | |
7316 | if (temp8) | |
7317 | delete arg8; | |
7318 | } | |
7319 | return resultobj; | |
7320 | fail: | |
7321 | { | |
7322 | if (temp3) | |
7323 | delete arg3; | |
7324 | } | |
7325 | { | |
7326 | if (temp8) | |
7327 | delete arg8; | |
7328 | } | |
7329 | return NULL; | |
7330 | } | |
7331 | ||
7332 | ||
7333 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7334 | PyObject *resultobj; | |
7335 | wxTextCtrl *result; | |
7336 | char *kwnames[] = { | |
7337 | NULL | |
7338 | }; | |
7339 | ||
7340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
7341 | { | |
7342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7343 | result = (wxTextCtrl *)new wxTextCtrl(); | |
7344 | ||
7345 | wxPyEndAllowThreads(__tstate); | |
7346 | if (PyErr_Occurred()) SWIG_fail; | |
7347 | } | |
7348 | { | |
7349 | resultobj = wxPyMake_wxObject(result); | |
7350 | } | |
7351 | return resultobj; | |
7352 | fail: | |
7353 | return NULL; | |
7354 | } | |
7355 | ||
7356 | ||
7357 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7358 | PyObject *resultobj; | |
7359 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7360 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 7361 | int arg3 ; |
d14a1e28 RD |
7362 | wxString const &arg4_defvalue = wxPyEmptyString ; |
7363 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7364 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7365 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7366 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7367 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7368 | long arg7 = (long) 0 ; | |
7369 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7370 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7371 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
7372 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7373 | bool result; | |
423f194a | 7374 | bool temp4 = False ; |
d14a1e28 RD |
7375 | wxPoint temp5 ; |
7376 | wxSize temp6 ; | |
423f194a | 7377 | bool temp9 = False ; |
d14a1e28 RD |
7378 | PyObject * obj0 = 0 ; |
7379 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7380 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7381 | PyObject * obj3 = 0 ; |
7382 | PyObject * obj4 = 0 ; | |
7383 | PyObject * obj5 = 0 ; | |
8edf1c75 | 7384 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7385 | PyObject * obj7 = 0 ; |
7386 | PyObject * obj8 = 0 ; | |
7387 | char *kwnames[] = { | |
7388 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7389 | }; | |
7390 | ||
8edf1c75 | 7391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
7392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7393 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
7394 | { |
7395 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7396 | if (PyErr_Occurred()) SWIG_fail; | |
7397 | } | |
d14a1e28 RD |
7398 | if (obj3) { |
7399 | { | |
7400 | arg4 = wxString_in_helper(obj3); | |
7401 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7402 | temp4 = True; |
d14a1e28 RD |
7403 | } |
7404 | } | |
7405 | if (obj4) { | |
7406 | { | |
7407 | arg5 = &temp5; | |
7408 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
7409 | } | |
7410 | } | |
7411 | if (obj5) { | |
7412 | { | |
7413 | arg6 = &temp6; | |
7414 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7415 | } | |
7416 | } | |
8edf1c75 RD |
7417 | if (obj6) { |
7418 | { | |
7419 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
7420 | if (PyErr_Occurred()) SWIG_fail; | |
7421 | } | |
7422 | } | |
d14a1e28 RD |
7423 | if (obj7) { |
7424 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7425 | if (arg8 == NULL) { | |
7426 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7427 | } | |
7428 | } | |
7429 | if (obj8) { | |
7430 | { | |
7431 | arg9 = wxString_in_helper(obj8); | |
7432 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 7433 | temp9 = True; |
d14a1e28 RD |
7434 | } |
7435 | } | |
7436 | { | |
7437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7438 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7439 | ||
7440 | wxPyEndAllowThreads(__tstate); | |
7441 | if (PyErr_Occurred()) SWIG_fail; | |
7442 | } | |
4e760a36 | 7443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7444 | { |
7445 | if (temp4) | |
7446 | delete arg4; | |
7447 | } | |
7448 | { | |
7449 | if (temp9) | |
7450 | delete arg9; | |
7451 | } | |
7452 | return resultobj; | |
7453 | fail: | |
7454 | { | |
7455 | if (temp4) | |
7456 | delete arg4; | |
7457 | } | |
7458 | { | |
7459 | if (temp9) | |
7460 | delete arg9; | |
7461 | } | |
7462 | return NULL; | |
7463 | } | |
7464 | ||
7465 | ||
7466 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7467 | PyObject *resultobj; | |
7468 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7469 | wxString result; | |
7470 | PyObject * obj0 = 0 ; | |
7471 | char *kwnames[] = { | |
7472 | (char *) "self", NULL | |
7473 | }; | |
7474 | ||
7475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
7476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7477 | { | |
7478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7479 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
7480 | ||
7481 | wxPyEndAllowThreads(__tstate); | |
7482 | if (PyErr_Occurred()) SWIG_fail; | |
7483 | } | |
7484 | { | |
7485 | #if wxUSE_UNICODE | |
7486 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7487 | #else | |
7488 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7489 | #endif | |
7490 | } | |
7491 | return resultobj; | |
7492 | fail: | |
7493 | return NULL; | |
7494 | } | |
7495 | ||
7496 | ||
7497 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7498 | PyObject *resultobj; | |
7499 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7500 | wxString *arg2 = 0 ; | |
423f194a | 7501 | bool temp2 = False ; |
d14a1e28 RD |
7502 | PyObject * obj0 = 0 ; |
7503 | PyObject * obj1 = 0 ; | |
7504 | char *kwnames[] = { | |
7505 | (char *) "self",(char *) "value", NULL | |
7506 | }; | |
7507 | ||
7508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
7509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7510 | { | |
7511 | arg2 = wxString_in_helper(obj1); | |
7512 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7513 | temp2 = True; |
d14a1e28 RD |
7514 | } |
7515 | { | |
7516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7517 | (arg1)->SetValue((wxString const &)*arg2); | |
7518 | ||
7519 | wxPyEndAllowThreads(__tstate); | |
7520 | if (PyErr_Occurred()) SWIG_fail; | |
7521 | } | |
7522 | Py_INCREF(Py_None); resultobj = Py_None; | |
7523 | { | |
7524 | if (temp2) | |
7525 | delete arg2; | |
7526 | } | |
7527 | return resultobj; | |
7528 | fail: | |
7529 | { | |
7530 | if (temp2) | |
7531 | delete arg2; | |
7532 | } | |
7533 | return NULL; | |
7534 | } | |
7535 | ||
7536 | ||
7537 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7538 | PyObject *resultobj; | |
7539 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7540 | long arg2 ; | |
7541 | long arg3 ; | |
7542 | wxString result; | |
7543 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7544 | PyObject * obj1 = 0 ; |
7545 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7546 | char *kwnames[] = { |
7547 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7548 | }; | |
7549 | ||
8edf1c75 | 7550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7552 | { |
7553 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7554 | if (PyErr_Occurred()) SWIG_fail; | |
7555 | } | |
7556 | { | |
7557 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7558 | if (PyErr_Occurred()) SWIG_fail; | |
7559 | } | |
d14a1e28 RD |
7560 | { |
7561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7562 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
7563 | ||
7564 | wxPyEndAllowThreads(__tstate); | |
7565 | if (PyErr_Occurred()) SWIG_fail; | |
7566 | } | |
7567 | { | |
7568 | #if wxUSE_UNICODE | |
7569 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7570 | #else | |
7571 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7572 | #endif | |
7573 | } | |
7574 | return resultobj; | |
7575 | fail: | |
7576 | return NULL; | |
7577 | } | |
7578 | ||
7579 | ||
7580 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7581 | PyObject *resultobj; | |
7582 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7583 | long arg2 ; | |
7584 | int result; | |
7585 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7586 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7587 | char *kwnames[] = { |
7588 | (char *) "self",(char *) "lineNo", NULL | |
7589 | }; | |
7590 | ||
8edf1c75 | 7591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7593 | { |
7594 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7595 | if (PyErr_Occurred()) SWIG_fail; | |
7596 | } | |
d14a1e28 RD |
7597 | { |
7598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7599 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
7600 | ||
7601 | wxPyEndAllowThreads(__tstate); | |
7602 | if (PyErr_Occurred()) SWIG_fail; | |
7603 | } | |
8edf1c75 | 7604 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7605 | return resultobj; |
7606 | fail: | |
7607 | return NULL; | |
7608 | } | |
7609 | ||
7610 | ||
7611 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7612 | PyObject *resultobj; | |
7613 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7614 | long arg2 ; | |
7615 | wxString result; | |
7616 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7617 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7618 | char *kwnames[] = { |
7619 | (char *) "self",(char *) "lineNo", NULL | |
7620 | }; | |
7621 | ||
8edf1c75 | 7622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7624 | { |
7625 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7626 | if (PyErr_Occurred()) SWIG_fail; | |
7627 | } | |
d14a1e28 RD |
7628 | { |
7629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7630 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
7631 | ||
7632 | wxPyEndAllowThreads(__tstate); | |
7633 | if (PyErr_Occurred()) SWIG_fail; | |
7634 | } | |
7635 | { | |
7636 | #if wxUSE_UNICODE | |
7637 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7638 | #else | |
7639 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7640 | #endif | |
7641 | } | |
7642 | return resultobj; | |
7643 | fail: | |
7644 | return NULL; | |
7645 | } | |
7646 | ||
7647 | ||
7648 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7649 | PyObject *resultobj; | |
7650 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7651 | int result; | |
7652 | PyObject * obj0 = 0 ; | |
7653 | char *kwnames[] = { | |
7654 | (char *) "self", NULL | |
7655 | }; | |
7656 | ||
7657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",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 = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
7662 | ||
7663 | wxPyEndAllowThreads(__tstate); | |
7664 | if (PyErr_Occurred()) SWIG_fail; | |
7665 | } | |
8edf1c75 | 7666 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7667 | return resultobj; |
7668 | fail: | |
7669 | return NULL; | |
7670 | } | |
7671 | ||
7672 | ||
7673 | static PyObject *_wrap_TextCtrl_IsModified(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_IsModified",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)->IsModified(); | |
7687 | ||
7688 | wxPyEndAllowThreads(__tstate); | |
7689 | if (PyErr_Occurred()) SWIG_fail; | |
7690 | } | |
4e760a36 | 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_IsEditable(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_IsEditable",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)->IsEditable(); | |
7712 | ||
7713 | wxPyEndAllowThreads(__tstate); | |
7714 | if (PyErr_Occurred()) SWIG_fail; | |
7715 | } | |
4e760a36 | 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_IsSingleLine(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_IsSingleLine",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)->IsSingleLine(); | |
7737 | ||
7738 | wxPyEndAllowThreads(__tstate); | |
7739 | if (PyErr_Occurred()) SWIG_fail; | |
7740 | } | |
4e760a36 | 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_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7749 | PyObject *resultobj; | |
7750 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7751 | bool result; | |
7752 | PyObject * obj0 = 0 ; | |
7753 | char *kwnames[] = { | |
7754 | (char *) "self", NULL | |
7755 | }; | |
7756 | ||
7757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
7758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7759 | { | |
7760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7761 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
7762 | ||
7763 | wxPyEndAllowThreads(__tstate); | |
7764 | if (PyErr_Occurred()) SWIG_fail; | |
7765 | } | |
4e760a36 | 7766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7767 | return resultobj; |
7768 | fail: | |
7769 | return NULL; | |
7770 | } | |
7771 | ||
7772 | ||
7773 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7774 | PyObject *resultobj; | |
7775 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7776 | long *arg2 = (long *) 0 ; | |
7777 | long *arg3 = (long *) 0 ; | |
7778 | long temp2 ; | |
7779 | long temp3 ; | |
7780 | PyObject * obj0 = 0 ; | |
7781 | char *kwnames[] = { | |
7782 | (char *) "self", NULL | |
7783 | }; | |
7784 | ||
7785 | arg2 = &temp2; | |
7786 | arg3 = &temp3; | |
7787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
7788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7789 | { | |
7790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7791 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
7792 | ||
7793 | wxPyEndAllowThreads(__tstate); | |
7794 | if (PyErr_Occurred()) SWIG_fail; | |
7795 | } | |
7796 | Py_INCREF(Py_None); resultobj = Py_None; | |
7797 | { | |
7798 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
7799 | resultobj = t_output_helper(resultobj,o); | |
7800 | } | |
7801 | { | |
7802 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7803 | resultobj = t_output_helper(resultobj,o); | |
7804 | } | |
7805 | return resultobj; | |
7806 | fail: | |
7807 | return NULL; | |
7808 | } | |
7809 | ||
7810 | ||
7811 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7812 | PyObject *resultobj; | |
7813 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7814 | wxString result; | |
7815 | PyObject * obj0 = 0 ; | |
7816 | char *kwnames[] = { | |
7817 | (char *) "self", NULL | |
7818 | }; | |
7819 | ||
7820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
7821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7822 | { | |
7823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7824 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
7825 | ||
7826 | wxPyEndAllowThreads(__tstate); | |
7827 | if (PyErr_Occurred()) SWIG_fail; | |
7828 | } | |
7829 | { | |
7830 | #if wxUSE_UNICODE | |
7831 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7832 | #else | |
7833 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7834 | #endif | |
7835 | } | |
7836 | return resultobj; | |
7837 | fail: | |
7838 | return NULL; | |
7839 | } | |
7840 | ||
7841 | ||
7842 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7843 | PyObject *resultobj; | |
7844 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7845 | PyObject * obj0 = 0 ; | |
7846 | char *kwnames[] = { | |
7847 | (char *) "self", NULL | |
7848 | }; | |
7849 | ||
7850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
7851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7852 | { | |
7853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7854 | (arg1)->Clear(); | |
7855 | ||
7856 | wxPyEndAllowThreads(__tstate); | |
7857 | if (PyErr_Occurred()) SWIG_fail; | |
7858 | } | |
7859 | Py_INCREF(Py_None); resultobj = Py_None; | |
7860 | return resultobj; | |
7861 | fail: | |
7862 | return NULL; | |
7863 | } | |
7864 | ||
7865 | ||
7866 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7867 | PyObject *resultobj; | |
7868 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7869 | long arg2 ; | |
7870 | long arg3 ; | |
7871 | wxString *arg4 = 0 ; | |
423f194a | 7872 | bool temp4 = False ; |
d14a1e28 | 7873 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
7874 | PyObject * obj1 = 0 ; |
7875 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7876 | PyObject * obj3 = 0 ; |
7877 | char *kwnames[] = { | |
7878 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
7879 | }; | |
7880 | ||
8edf1c75 | 7881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 7882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7883 | { |
7884 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7885 | if (PyErr_Occurred()) SWIG_fail; | |
7886 | } | |
7887 | { | |
7888 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7889 | if (PyErr_Occurred()) SWIG_fail; | |
7890 | } | |
d14a1e28 RD |
7891 | { |
7892 | arg4 = wxString_in_helper(obj3); | |
7893 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7894 | temp4 = True; |
d14a1e28 RD |
7895 | } |
7896 | { | |
7897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7898 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
7899 | ||
7900 | wxPyEndAllowThreads(__tstate); | |
7901 | if (PyErr_Occurred()) SWIG_fail; | |
7902 | } | |
7903 | Py_INCREF(Py_None); resultobj = Py_None; | |
7904 | { | |
7905 | if (temp4) | |
7906 | delete arg4; | |
7907 | } | |
7908 | return resultobj; | |
7909 | fail: | |
7910 | { | |
7911 | if (temp4) | |
7912 | delete arg4; | |
7913 | } | |
7914 | return NULL; | |
7915 | } | |
7916 | ||
7917 | ||
7918 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7919 | PyObject *resultobj; | |
7920 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7921 | long arg2 ; | |
7922 | long arg3 ; | |
7923 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7924 | PyObject * obj1 = 0 ; |
7925 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7926 | char *kwnames[] = { |
7927 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7928 | }; | |
7929 | ||
8edf1c75 | 7930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7932 | { |
7933 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7934 | if (PyErr_Occurred()) SWIG_fail; | |
7935 | } | |
7936 | { | |
7937 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7938 | if (PyErr_Occurred()) SWIG_fail; | |
7939 | } | |
d14a1e28 RD |
7940 | { |
7941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7942 | (arg1)->Remove(arg2,arg3); | |
7943 | ||
7944 | wxPyEndAllowThreads(__tstate); | |
7945 | if (PyErr_Occurred()) SWIG_fail; | |
7946 | } | |
7947 | Py_INCREF(Py_None); resultobj = Py_None; | |
7948 | return resultobj; | |
7949 | fail: | |
7950 | return NULL; | |
7951 | } | |
7952 | ||
7953 | ||
7954 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7955 | PyObject *resultobj; | |
7956 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7957 | wxString *arg2 = 0 ; | |
7958 | bool result; | |
423f194a | 7959 | bool temp2 = False ; |
d14a1e28 RD |
7960 | PyObject * obj0 = 0 ; |
7961 | PyObject * obj1 = 0 ; | |
7962 | char *kwnames[] = { | |
7963 | (char *) "self",(char *) "file", NULL | |
7964 | }; | |
7965 | ||
7966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
7967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7968 | { | |
7969 | arg2 = wxString_in_helper(obj1); | |
7970 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7971 | temp2 = True; |
d14a1e28 RD |
7972 | } |
7973 | { | |
7974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7975 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
7976 | ||
7977 | wxPyEndAllowThreads(__tstate); | |
7978 | if (PyErr_Occurred()) SWIG_fail; | |
7979 | } | |
4e760a36 | 7980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7981 | { |
7982 | if (temp2) | |
7983 | delete arg2; | |
7984 | } | |
7985 | return resultobj; | |
7986 | fail: | |
7987 | { | |
7988 | if (temp2) | |
7989 | delete arg2; | |
7990 | } | |
7991 | return NULL; | |
7992 | } | |
7993 | ||
7994 | ||
7995 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7996 | PyObject *resultobj; | |
7997 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7998 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
7999 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8000 | bool result; | |
423f194a | 8001 | bool temp2 = False ; |
d14a1e28 RD |
8002 | PyObject * obj0 = 0 ; |
8003 | PyObject * obj1 = 0 ; | |
8004 | char *kwnames[] = { | |
8005 | (char *) "self",(char *) "file", NULL | |
8006 | }; | |
8007 | ||
8008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
8009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8010 | if (obj1) { | |
8011 | { | |
8012 | arg2 = wxString_in_helper(obj1); | |
8013 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8014 | temp2 = True; |
d14a1e28 RD |
8015 | } |
8016 | } | |
8017 | { | |
8018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8019 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8020 | ||
8021 | wxPyEndAllowThreads(__tstate); | |
8022 | if (PyErr_Occurred()) SWIG_fail; | |
8023 | } | |
4e760a36 | 8024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8025 | { |
8026 | if (temp2) | |
8027 | delete arg2; | |
8028 | } | |
8029 | return resultobj; | |
8030 | fail: | |
8031 | { | |
8032 | if (temp2) | |
8033 | delete arg2; | |
8034 | } | |
8035 | return NULL; | |
8036 | } | |
8037 | ||
8038 | ||
8039 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8040 | PyObject *resultobj; | |
8041 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8042 | PyObject * obj0 = 0 ; | |
8043 | char *kwnames[] = { | |
8044 | (char *) "self", NULL | |
8045 | }; | |
8046 | ||
8047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
8048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8049 | { | |
8050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8051 | (arg1)->MarkDirty(); | |
8052 | ||
8053 | wxPyEndAllowThreads(__tstate); | |
8054 | if (PyErr_Occurred()) SWIG_fail; | |
8055 | } | |
8056 | Py_INCREF(Py_None); resultobj = Py_None; | |
8057 | return resultobj; | |
8058 | fail: | |
8059 | return NULL; | |
8060 | } | |
8061 | ||
8062 | ||
8063 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8064 | PyObject *resultobj; | |
8065 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8066 | PyObject * obj0 = 0 ; | |
8067 | char *kwnames[] = { | |
8068 | (char *) "self", NULL | |
8069 | }; | |
8070 | ||
8071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
8072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8073 | { | |
8074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8075 | (arg1)->DiscardEdits(); | |
8076 | ||
8077 | wxPyEndAllowThreads(__tstate); | |
8078 | if (PyErr_Occurred()) SWIG_fail; | |
8079 | } | |
8080 | Py_INCREF(Py_None); resultobj = Py_None; | |
8081 | return resultobj; | |
8082 | fail: | |
8083 | return NULL; | |
8084 | } | |
8085 | ||
8086 | ||
8087 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8088 | PyObject *resultobj; | |
8089 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8090 | unsigned long arg2 ; | |
8091 | PyObject * obj0 = 0 ; | |
8092 | PyObject * obj1 = 0 ; | |
8093 | char *kwnames[] = { | |
8094 | (char *) "self",(char *) "len", NULL | |
8095 | }; | |
8096 | ||
8097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
8098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 8099 | { |
8edf1c75 | 8100 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
8101 | if (PyErr_Occurred()) SWIG_fail; |
8102 | } | |
d14a1e28 RD |
8103 | { |
8104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8105 | (arg1)->SetMaxLength(arg2); | |
8106 | ||
8107 | wxPyEndAllowThreads(__tstate); | |
8108 | if (PyErr_Occurred()) SWIG_fail; | |
8109 | } | |
8110 | Py_INCREF(Py_None); resultobj = Py_None; | |
8111 | return resultobj; | |
8112 | fail: | |
8113 | return NULL; | |
8114 | } | |
8115 | ||
8116 | ||
8117 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8118 | PyObject *resultobj; | |
8119 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8120 | wxString *arg2 = 0 ; | |
423f194a | 8121 | bool temp2 = False ; |
d14a1e28 RD |
8122 | PyObject * obj0 = 0 ; |
8123 | PyObject * obj1 = 0 ; | |
8124 | char *kwnames[] = { | |
8125 | (char *) "self",(char *) "text", NULL | |
8126 | }; | |
8127 | ||
8128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
8129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8130 | { | |
8131 | arg2 = wxString_in_helper(obj1); | |
8132 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8133 | temp2 = True; |
d14a1e28 RD |
8134 | } |
8135 | { | |
8136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8137 | (arg1)->WriteText((wxString const &)*arg2); | |
8138 | ||
8139 | wxPyEndAllowThreads(__tstate); | |
8140 | if (PyErr_Occurred()) SWIG_fail; | |
8141 | } | |
8142 | Py_INCREF(Py_None); resultobj = Py_None; | |
8143 | { | |
8144 | if (temp2) | |
8145 | delete arg2; | |
8146 | } | |
8147 | return resultobj; | |
8148 | fail: | |
8149 | { | |
8150 | if (temp2) | |
8151 | delete arg2; | |
8152 | } | |
8153 | return NULL; | |
8154 | } | |
8155 | ||
8156 | ||
8157 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8158 | PyObject *resultobj; | |
8159 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8160 | wxString *arg2 = 0 ; | |
423f194a | 8161 | bool temp2 = False ; |
d14a1e28 RD |
8162 | PyObject * obj0 = 0 ; |
8163 | PyObject * obj1 = 0 ; | |
8164 | char *kwnames[] = { | |
8165 | (char *) "self",(char *) "text", NULL | |
8166 | }; | |
8167 | ||
8168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
8169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8170 | { | |
8171 | arg2 = wxString_in_helper(obj1); | |
8172 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8173 | temp2 = True; |
d14a1e28 RD |
8174 | } |
8175 | { | |
8176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8177 | (arg1)->AppendText((wxString const &)*arg2); | |
8178 | ||
8179 | wxPyEndAllowThreads(__tstate); | |
8180 | if (PyErr_Occurred()) SWIG_fail; | |
8181 | } | |
8182 | Py_INCREF(Py_None); resultobj = Py_None; | |
8183 | { | |
8184 | if (temp2) | |
8185 | delete arg2; | |
8186 | } | |
8187 | return resultobj; | |
8188 | fail: | |
8189 | { | |
8190 | if (temp2) | |
8191 | delete arg2; | |
8192 | } | |
8193 | return NULL; | |
8194 | } | |
8195 | ||
8196 | ||
8197 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8198 | PyObject *resultobj; | |
8199 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8200 | wxKeyEvent *arg2 = 0 ; | |
8201 | bool result; | |
8202 | PyObject * obj0 = 0 ; | |
8203 | PyObject * obj1 = 0 ; | |
8204 | char *kwnames[] = { | |
8205 | (char *) "self",(char *) "event", NULL | |
8206 | }; | |
8207 | ||
8208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
8209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8210 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8211 | if (arg2 == NULL) { | |
8212 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8213 | } | |
8214 | { | |
8215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8216 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8217 | ||
8218 | wxPyEndAllowThreads(__tstate); | |
8219 | if (PyErr_Occurred()) SWIG_fail; | |
8220 | } | |
4e760a36 | 8221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8222 | return resultobj; |
8223 | fail: | |
8224 | return NULL; | |
8225 | } | |
8226 | ||
8227 | ||
8228 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8229 | PyObject *resultobj; | |
8230 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8231 | long arg2 ; | |
8232 | long arg3 ; | |
8233 | wxTextAttr *arg4 = 0 ; | |
8234 | bool result; | |
8235 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8236 | PyObject * obj1 = 0 ; |
8237 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8238 | PyObject * obj3 = 0 ; |
8239 | char *kwnames[] = { | |
8240 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8241 | }; | |
8242 | ||
8edf1c75 | 8243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8245 | { |
8246 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8247 | if (PyErr_Occurred()) SWIG_fail; | |
8248 | } | |
8249 | { | |
8250 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8251 | if (PyErr_Occurred()) SWIG_fail; | |
8252 | } | |
d14a1e28 RD |
8253 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8254 | if (arg4 == NULL) { | |
8255 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8256 | } | |
8257 | { | |
8258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8259 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
8260 | ||
8261 | wxPyEndAllowThreads(__tstate); | |
8262 | if (PyErr_Occurred()) SWIG_fail; | |
8263 | } | |
4e760a36 | 8264 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8265 | return resultobj; |
8266 | fail: | |
8267 | return NULL; | |
8268 | } | |
8269 | ||
8270 | ||
8271 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8272 | PyObject *resultobj; | |
8273 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8274 | long arg2 ; | |
8275 | wxTextAttr *arg3 = 0 ; | |
8276 | bool result; | |
8277 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8278 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8279 | PyObject * obj2 = 0 ; |
8280 | char *kwnames[] = { | |
8281 | (char *) "self",(char *) "position",(char *) "style", NULL | |
8282 | }; | |
8283 | ||
8edf1c75 | 8284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8286 | { |
8287 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8288 | if (PyErr_Occurred()) SWIG_fail; | |
8289 | } | |
d14a1e28 RD |
8290 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8291 | if (arg3 == NULL) { | |
8292 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8293 | } | |
8294 | { | |
8295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8296 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
8297 | ||
8298 | wxPyEndAllowThreads(__tstate); | |
8299 | if (PyErr_Occurred()) SWIG_fail; | |
8300 | } | |
4e760a36 | 8301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8302 | return resultobj; |
8303 | fail: | |
8304 | return NULL; | |
8305 | } | |
8306 | ||
8307 | ||
8308 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8309 | PyObject *resultobj; | |
8310 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8311 | wxTextAttr *arg2 = 0 ; | |
8312 | bool result; | |
8313 | PyObject * obj0 = 0 ; | |
8314 | PyObject * obj1 = 0 ; | |
8315 | char *kwnames[] = { | |
8316 | (char *) "self",(char *) "style", NULL | |
8317 | }; | |
8318 | ||
8319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
8320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8321 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8322 | if (arg2 == NULL) { | |
8323 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8324 | } | |
8325 | { | |
8326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8327 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
8328 | ||
8329 | wxPyEndAllowThreads(__tstate); | |
8330 | if (PyErr_Occurred()) SWIG_fail; | |
8331 | } | |
4e760a36 | 8332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8333 | return resultobj; |
8334 | fail: | |
8335 | return NULL; | |
8336 | } | |
8337 | ||
8338 | ||
8339 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8340 | PyObject *resultobj; | |
8341 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8342 | wxTextAttr *result; | |
8343 | PyObject * obj0 = 0 ; | |
8344 | char *kwnames[] = { | |
8345 | (char *) "self", NULL | |
8346 | }; | |
8347 | ||
8348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
8349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8350 | { | |
8351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8352 | { | |
8353 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
8354 | result = (wxTextAttr *) &_result_ref; | |
8355 | } | |
8356 | ||
8357 | wxPyEndAllowThreads(__tstate); | |
8358 | if (PyErr_Occurred()) SWIG_fail; | |
8359 | } | |
8360 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 0); | |
8361 | return resultobj; | |
8362 | fail: | |
8363 | return NULL; | |
8364 | } | |
8365 | ||
8366 | ||
8367 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8368 | PyObject *resultobj; | |
8369 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8370 | long arg2 ; | |
8371 | long arg3 ; | |
8372 | long result; | |
8373 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8374 | PyObject * obj1 = 0 ; |
8375 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8376 | char *kwnames[] = { |
8377 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8378 | }; | |
8379 | ||
8edf1c75 | 8380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8382 | { |
8383 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8384 | if (PyErr_Occurred()) SWIG_fail; | |
8385 | } | |
8386 | { | |
8387 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8388 | if (PyErr_Occurred()) SWIG_fail; | |
8389 | } | |
d14a1e28 RD |
8390 | { |
8391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8392 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
8393 | ||
8394 | wxPyEndAllowThreads(__tstate); | |
8395 | if (PyErr_Occurred()) SWIG_fail; | |
8396 | } | |
8edf1c75 | 8397 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8398 | return resultobj; |
8399 | fail: | |
8400 | return NULL; | |
8401 | } | |
8402 | ||
8403 | ||
8404 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8405 | PyObject *resultobj; | |
8406 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8407 | long arg2 ; | |
8408 | long *arg3 = (long *) 0 ; | |
8409 | long *arg4 = (long *) 0 ; | |
8410 | long temp3 ; | |
8411 | long temp4 ; | |
8412 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8413 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8414 | char *kwnames[] = { |
8415 | (char *) "self",(char *) "pos", NULL | |
8416 | }; | |
8417 | ||
8418 | arg3 = &temp3; | |
8419 | arg4 = &temp4; | |
8edf1c75 | 8420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8422 | { |
8423 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8424 | if (PyErr_Occurred()) SWIG_fail; | |
8425 | } | |
d14a1e28 RD |
8426 | { |
8427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8428 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
8429 | ||
8430 | wxPyEndAllowThreads(__tstate); | |
8431 | if (PyErr_Occurred()) SWIG_fail; | |
8432 | } | |
8433 | Py_INCREF(Py_None); resultobj = Py_None; | |
8434 | { | |
8435 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8436 | resultobj = t_output_helper(resultobj,o); | |
8437 | } | |
8438 | { | |
8439 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8440 | resultobj = t_output_helper(resultobj,o); | |
8441 | } | |
8442 | return resultobj; | |
8443 | fail: | |
8444 | return NULL; | |
8445 | } | |
8446 | ||
8447 | ||
8448 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8449 | PyObject *resultobj; | |
8450 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8451 | long arg2 ; | |
8452 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8453 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8454 | char *kwnames[] = { |
8455 | (char *) "self",(char *) "pos", NULL | |
8456 | }; | |
8457 | ||
8edf1c75 | 8458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8460 | { |
8461 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8462 | if (PyErr_Occurred()) SWIG_fail; | |
8463 | } | |
d14a1e28 RD |
8464 | { |
8465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8466 | (arg1)->ShowPosition(arg2); | |
8467 | ||
8468 | wxPyEndAllowThreads(__tstate); | |
8469 | if (PyErr_Occurred()) SWIG_fail; | |
8470 | } | |
8471 | Py_INCREF(Py_None); resultobj = Py_None; | |
8472 | return resultobj; | |
8473 | fail: | |
8474 | return NULL; | |
8475 | } | |
8476 | ||
8477 | ||
4e760a36 RD |
8478 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8479 | PyObject *resultobj; | |
8480 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8481 | wxPoint *arg2 = 0 ; | |
8482 | long *arg3 = (long *) 0 ; | |
8483 | long *arg4 = (long *) 0 ; | |
8484 | int result; | |
8485 | wxPoint temp2 ; | |
8486 | long temp3 ; | |
8487 | long temp4 ; | |
8488 | PyObject * obj0 = 0 ; | |
8489 | PyObject * obj1 = 0 ; | |
8490 | char *kwnames[] = { | |
8491 | (char *) "self",(char *) "pt", NULL | |
8492 | }; | |
8493 | ||
8494 | arg3 = &temp3; | |
8495 | arg4 = &temp4; | |
8496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
8497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8498 | { | |
8499 | arg2 = &temp2; | |
8500 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8501 | } | |
8502 | { | |
8503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8504 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
8505 | ||
8506 | wxPyEndAllowThreads(__tstate); | |
8507 | if (PyErr_Occurred()) SWIG_fail; | |
8508 | } | |
8509 | resultobj = SWIG_PyObj_FromInt((int)result); | |
8510 | { | |
8511 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8512 | resultobj = t_output_helper(resultobj,o); | |
8513 | } | |
8514 | { | |
8515 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8516 | resultobj = t_output_helper(resultobj,o); | |
8517 | } | |
8518 | return resultobj; | |
8519 | fail: | |
8520 | return NULL; | |
8521 | } | |
8522 | ||
8523 | ||
d14a1e28 RD |
8524 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8525 | PyObject *resultobj; | |
8526 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8527 | PyObject * obj0 = 0 ; | |
8528 | char *kwnames[] = { | |
8529 | (char *) "self", NULL | |
8530 | }; | |
8531 | ||
8532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
8533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8534 | { | |
8535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8536 | (arg1)->Copy(); | |
8537 | ||
8538 | wxPyEndAllowThreads(__tstate); | |
8539 | if (PyErr_Occurred()) SWIG_fail; | |
8540 | } | |
8541 | Py_INCREF(Py_None); resultobj = Py_None; | |
8542 | return resultobj; | |
8543 | fail: | |
8544 | return NULL; | |
8545 | } | |
8546 | ||
8547 | ||
8548 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8549 | PyObject *resultobj; | |
8550 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8551 | PyObject * obj0 = 0 ; | |
8552 | char *kwnames[] = { | |
8553 | (char *) "self", NULL | |
8554 | }; | |
8555 | ||
8556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
8557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8558 | { | |
8559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8560 | (arg1)->Cut(); | |
8561 | ||
8562 | wxPyEndAllowThreads(__tstate); | |
8563 | if (PyErr_Occurred()) SWIG_fail; | |
8564 | } | |
8565 | Py_INCREF(Py_None); resultobj = Py_None; | |
8566 | return resultobj; | |
8567 | fail: | |
8568 | return NULL; | |
8569 | } | |
8570 | ||
8571 | ||
8572 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8573 | PyObject *resultobj; | |
8574 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8575 | PyObject * obj0 = 0 ; | |
8576 | char *kwnames[] = { | |
8577 | (char *) "self", NULL | |
8578 | }; | |
8579 | ||
8580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",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 | (arg1)->Paste(); | |
8585 | ||
8586 | wxPyEndAllowThreads(__tstate); | |
8587 | if (PyErr_Occurred()) SWIG_fail; | |
8588 | } | |
8589 | Py_INCREF(Py_None); resultobj = Py_None; | |
8590 | return resultobj; | |
8591 | fail: | |
8592 | return NULL; | |
8593 | } | |
8594 | ||
8595 | ||
8596 | static PyObject *_wrap_TextCtrl_CanCopy(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_CanCopy",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)->CanCopy(); | |
8610 | ||
8611 | wxPyEndAllowThreads(__tstate); | |
8612 | if (PyErr_Occurred()) SWIG_fail; | |
8613 | } | |
4e760a36 | 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_CanCut(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_CanCut",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)->CanCut(); | |
8635 | ||
8636 | wxPyEndAllowThreads(__tstate); | |
8637 | if (PyErr_Occurred()) SWIG_fail; | |
8638 | } | |
4e760a36 | 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_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8647 | PyObject *resultobj; | |
8648 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8649 | bool result; | |
8650 | PyObject * obj0 = 0 ; | |
8651 | char *kwnames[] = { | |
8652 | (char *) "self", NULL | |
8653 | }; | |
8654 | ||
8655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
8656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8657 | { | |
8658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8659 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
8660 | ||
8661 | wxPyEndAllowThreads(__tstate); | |
8662 | if (PyErr_Occurred()) SWIG_fail; | |
8663 | } | |
4e760a36 | 8664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8665 | return resultobj; |
8666 | fail: | |
8667 | return NULL; | |
8668 | } | |
8669 | ||
8670 | ||
8671 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8672 | PyObject *resultobj; | |
8673 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8674 | PyObject * obj0 = 0 ; | |
8675 | char *kwnames[] = { | |
8676 | (char *) "self", NULL | |
8677 | }; | |
8678 | ||
8679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
8680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8681 | { | |
8682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8683 | (arg1)->Undo(); | |
8684 | ||
8685 | wxPyEndAllowThreads(__tstate); | |
8686 | if (PyErr_Occurred()) SWIG_fail; | |
8687 | } | |
8688 | Py_INCREF(Py_None); resultobj = Py_None; | |
8689 | return resultobj; | |
8690 | fail: | |
8691 | return NULL; | |
8692 | } | |
8693 | ||
8694 | ||
8695 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8696 | PyObject *resultobj; | |
8697 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8698 | PyObject * obj0 = 0 ; | |
8699 | char *kwnames[] = { | |
8700 | (char *) "self", NULL | |
8701 | }; | |
8702 | ||
8703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",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 | (arg1)->Redo(); | |
8708 | ||
8709 | wxPyEndAllowThreads(__tstate); | |
8710 | if (PyErr_Occurred()) SWIG_fail; | |
8711 | } | |
8712 | Py_INCREF(Py_None); resultobj = Py_None; | |
8713 | return resultobj; | |
8714 | fail: | |
8715 | return NULL; | |
8716 | } | |
8717 | ||
8718 | ||
8719 | static PyObject *_wrap_TextCtrl_CanUndo(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_CanUndo",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)->CanUndo(); | |
8733 | ||
8734 | wxPyEndAllowThreads(__tstate); | |
8735 | if (PyErr_Occurred()) SWIG_fail; | |
8736 | } | |
4e760a36 | 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_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8745 | PyObject *resultobj; | |
8746 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8747 | bool result; | |
8748 | PyObject * obj0 = 0 ; | |
8749 | char *kwnames[] = { | |
8750 | (char *) "self", NULL | |
8751 | }; | |
8752 | ||
8753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
8754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8755 | { | |
8756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8757 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
8758 | ||
8759 | wxPyEndAllowThreads(__tstate); | |
8760 | if (PyErr_Occurred()) SWIG_fail; | |
8761 | } | |
4e760a36 | 8762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8763 | return resultobj; |
8764 | fail: | |
8765 | return NULL; | |
8766 | } | |
8767 | ||
8768 | ||
8769 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8770 | PyObject *resultobj; | |
8771 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8772 | long arg2 ; | |
8773 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8774 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8775 | char *kwnames[] = { |
8776 | (char *) "self",(char *) "pos", NULL | |
8777 | }; | |
8778 | ||
8edf1c75 | 8779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8781 | { |
8782 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8783 | if (PyErr_Occurred()) SWIG_fail; | |
8784 | } | |
d14a1e28 RD |
8785 | { |
8786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8787 | (arg1)->SetInsertionPoint(arg2); | |
8788 | ||
8789 | wxPyEndAllowThreads(__tstate); | |
8790 | if (PyErr_Occurred()) SWIG_fail; | |
8791 | } | |
8792 | Py_INCREF(Py_None); resultobj = Py_None; | |
8793 | return resultobj; | |
8794 | fail: | |
8795 | return NULL; | |
8796 | } | |
8797 | ||
8798 | ||
8799 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8800 | PyObject *resultobj; | |
8801 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8802 | PyObject * obj0 = 0 ; | |
8803 | char *kwnames[] = { | |
8804 | (char *) "self", NULL | |
8805 | }; | |
8806 | ||
8807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",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 | (arg1)->SetInsertionPointEnd(); | |
8812 | ||
8813 | wxPyEndAllowThreads(__tstate); | |
8814 | if (PyErr_Occurred()) SWIG_fail; | |
8815 | } | |
8816 | Py_INCREF(Py_None); resultobj = Py_None; | |
8817 | return resultobj; | |
8818 | fail: | |
8819 | return NULL; | |
8820 | } | |
8821 | ||
8822 | ||
8823 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(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_GetInsertionPoint",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)->GetInsertionPoint(); | |
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_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8849 | PyObject *resultobj; | |
8850 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8851 | long result; | |
8852 | PyObject * obj0 = 0 ; | |
8853 | char *kwnames[] = { | |
8854 | (char *) "self", NULL | |
8855 | }; | |
8856 | ||
8857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
8858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8859 | { | |
8860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8861 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
8862 | ||
8863 | wxPyEndAllowThreads(__tstate); | |
8864 | if (PyErr_Occurred()) SWIG_fail; | |
8865 | } | |
8edf1c75 | 8866 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8867 | return resultobj; |
8868 | fail: | |
8869 | return NULL; | |
8870 | } | |
8871 | ||
8872 | ||
8873 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8874 | PyObject *resultobj; | |
8875 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8876 | long arg2 ; | |
8877 | long arg3 ; | |
8878 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8879 | PyObject * obj1 = 0 ; |
8880 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8881 | char *kwnames[] = { |
8882 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8883 | }; | |
8884 | ||
8edf1c75 | 8885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8887 | { |
8888 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8889 | if (PyErr_Occurred()) SWIG_fail; | |
8890 | } | |
8891 | { | |
8892 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8893 | if (PyErr_Occurred()) SWIG_fail; | |
8894 | } | |
d14a1e28 RD |
8895 | { |
8896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8897 | (arg1)->SetSelection(arg2,arg3); | |
8898 | ||
8899 | wxPyEndAllowThreads(__tstate); | |
8900 | if (PyErr_Occurred()) SWIG_fail; | |
8901 | } | |
8902 | Py_INCREF(Py_None); resultobj = Py_None; | |
8903 | return resultobj; | |
8904 | fail: | |
8905 | return NULL; | |
8906 | } | |
8907 | ||
8908 | ||
8909 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8910 | PyObject *resultobj; | |
8911 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8912 | PyObject * obj0 = 0 ; | |
8913 | char *kwnames[] = { | |
8914 | (char *) "self", NULL | |
8915 | }; | |
8916 | ||
8917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
8918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8919 | { | |
8920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8921 | (arg1)->SelectAll(); | |
8922 | ||
8923 | wxPyEndAllowThreads(__tstate); | |
8924 | if (PyErr_Occurred()) SWIG_fail; | |
8925 | } | |
8926 | Py_INCREF(Py_None); resultobj = Py_None; | |
8927 | return resultobj; | |
8928 | fail: | |
8929 | return NULL; | |
8930 | } | |
8931 | ||
8932 | ||
8933 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8934 | PyObject *resultobj; | |
8935 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8936 | bool arg2 ; | |
8937 | PyObject * obj0 = 0 ; | |
8938 | PyObject * obj1 = 0 ; | |
8939 | char *kwnames[] = { | |
8940 | (char *) "self",(char *) "editable", NULL | |
8941 | }; | |
8942 | ||
8943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
8944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 8945 | { |
8edf1c75 | 8946 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
8947 | if (PyErr_Occurred()) SWIG_fail; |
8948 | } | |
d14a1e28 RD |
8949 | { |
8950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8951 | (arg1)->SetEditable(arg2); | |
8952 | ||
8953 | wxPyEndAllowThreads(__tstate); | |
8954 | if (PyErr_Occurred()) SWIG_fail; | |
8955 | } | |
8956 | Py_INCREF(Py_None); resultobj = Py_None; | |
8957 | return resultobj; | |
8958 | fail: | |
8959 | return NULL; | |
8960 | } | |
8961 | ||
8962 | ||
8963 | static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8964 | PyObject *resultobj; | |
8965 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
423f194a | 8966 | bool arg2 = (bool) True ; |
d14a1e28 RD |
8967 | bool result; |
8968 | PyObject * obj0 = 0 ; | |
8969 | PyObject * obj1 = 0 ; | |
8970 | char *kwnames[] = { | |
8971 | (char *) "self",(char *) "show", NULL | |
8972 | }; | |
8973 | ||
8974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail; | |
8975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8976 | if (obj1) { | |
83448d71 | 8977 | { |
8edf1c75 | 8978 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
8979 | if (PyErr_Occurred()) SWIG_fail; |
8980 | } | |
d14a1e28 RD |
8981 | } |
8982 | { | |
8983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8984 | result = (bool)(arg1)->ShowNativeCaret(arg2); | |
8985 | ||
8986 | wxPyEndAllowThreads(__tstate); | |
8987 | if (PyErr_Occurred()) SWIG_fail; | |
8988 | } | |
4e760a36 | 8989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8990 | return resultobj; |
8991 | fail: | |
8992 | return NULL; | |
8993 | } | |
8994 | ||
8995 | ||
8996 | static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8997 | PyObject *resultobj; | |
8998 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8999 | bool result; | |
9000 | PyObject * obj0 = 0 ; | |
9001 | char *kwnames[] = { | |
9002 | (char *) "self", NULL | |
9003 | }; | |
9004 | ||
9005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail; | |
9006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9007 | { | |
9008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9009 | result = (bool)(arg1)->HideNativeCaret(); | |
9010 | ||
9011 | wxPyEndAllowThreads(__tstate); | |
9012 | if (PyErr_Occurred()) SWIG_fail; | |
9013 | } | |
4e760a36 | 9014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9015 | return resultobj; |
9016 | fail: | |
9017 | return NULL; | |
9018 | } | |
9019 | ||
9020 | ||
9021 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9022 | PyObject *resultobj; | |
9023 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9024 | wxString *arg2 = 0 ; | |
423f194a | 9025 | bool temp2 = False ; |
d14a1e28 RD |
9026 | PyObject * obj0 = 0 ; |
9027 | PyObject * obj1 = 0 ; | |
9028 | char *kwnames[] = { | |
9029 | (char *) "self",(char *) "text", NULL | |
9030 | }; | |
9031 | ||
9032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
9033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9034 | { | |
9035 | arg2 = wxString_in_helper(obj1); | |
9036 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9037 | temp2 = True; |
d14a1e28 RD |
9038 | } |
9039 | { | |
9040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9041 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9042 | ||
9043 | wxPyEndAllowThreads(__tstate); | |
9044 | if (PyErr_Occurred()) SWIG_fail; | |
9045 | } | |
9046 | Py_INCREF(Py_None); resultobj = Py_None; | |
9047 | { | |
9048 | if (temp2) | |
9049 | delete arg2; | |
9050 | } | |
9051 | return resultobj; | |
9052 | fail: | |
9053 | { | |
9054 | if (temp2) | |
9055 | delete arg2; | |
9056 | } | |
9057 | return NULL; | |
9058 | } | |
9059 | ||
9060 | ||
9061 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9062 | PyObject *resultobj; | |
9063 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9064 | long arg2 ; | |
9065 | long arg3 ; | |
9066 | wxString result; | |
9067 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9068 | PyObject * obj1 = 0 ; |
9069 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9070 | char *kwnames[] = { |
9071 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9072 | }; | |
9073 | ||
8edf1c75 | 9074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 9075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9076 | { |
9077 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
9078 | if (PyErr_Occurred()) SWIG_fail; | |
9079 | } | |
9080 | { | |
9081 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9082 | if (PyErr_Occurred()) SWIG_fail; | |
9083 | } | |
d14a1e28 RD |
9084 | { |
9085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9086 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9087 | ||
9088 | wxPyEndAllowThreads(__tstate); | |
9089 | if (PyErr_Occurred()) SWIG_fail; | |
9090 | } | |
9091 | { | |
9092 | #if wxUSE_UNICODE | |
9093 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9094 | #else | |
9095 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9096 | #endif | |
9097 | } | |
9098 | return resultobj; | |
9099 | fail: | |
9100 | return NULL; | |
9101 | } | |
9102 | ||
9103 | ||
9104 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
9105 | PyObject *obj; | |
9106 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9107 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9108 | Py_INCREF(obj); | |
9109 | return Py_BuildValue((char *)""); | |
9110 | } | |
9111 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9112 | PyObject *resultobj; | |
9113 | int arg1 ; | |
9114 | wxMouseEvent *arg2 = 0 ; | |
9115 | long arg3 ; | |
9116 | long arg4 ; | |
9117 | wxTextUrlEvent *result; | |
8edf1c75 | 9118 | PyObject * obj0 = 0 ; |
d14a1e28 | 9119 | PyObject * obj1 = 0 ; |
8edf1c75 RD |
9120 | PyObject * obj2 = 0 ; |
9121 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9122 | char *kwnames[] = { |
9123 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9124 | }; | |
9125 | ||
8edf1c75 RD |
9126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
9127 | { | |
9128 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9129 | if (PyErr_Occurred()) SWIG_fail; | |
9130 | } | |
d14a1e28 RD |
9131 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9132 | if (arg2 == NULL) { | |
9133 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9134 | } | |
8edf1c75 RD |
9135 | { |
9136 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9137 | if (PyErr_Occurred()) SWIG_fail; | |
9138 | } | |
9139 | { | |
9140 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
9141 | if (PyErr_Occurred()) SWIG_fail; | |
9142 | } | |
d14a1e28 RD |
9143 | { |
9144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9145 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9146 | ||
9147 | wxPyEndAllowThreads(__tstate); | |
9148 | if (PyErr_Occurred()) SWIG_fail; | |
9149 | } | |
9150 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextUrlEvent, 1); | |
9151 | return resultobj; | |
9152 | fail: | |
9153 | return NULL; | |
9154 | } | |
9155 | ||
9156 | ||
9157 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9158 | PyObject *resultobj; | |
9159 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9160 | wxMouseEvent *result; | |
9161 | PyObject * obj0 = 0 ; | |
9162 | char *kwnames[] = { | |
9163 | (char *) "self", NULL | |
9164 | }; | |
9165 | ||
9166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
9167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9168 | { | |
9169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9170 | { | |
9171 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9172 | result = (wxMouseEvent *) &_result_ref; | |
9173 | } | |
9174 | ||
9175 | wxPyEndAllowThreads(__tstate); | |
9176 | if (PyErr_Occurred()) SWIG_fail; | |
9177 | } | |
9178 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseEvent, 0); | |
9179 | return resultobj; | |
9180 | fail: | |
9181 | return NULL; | |
9182 | } | |
9183 | ||
9184 | ||
9185 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9186 | PyObject *resultobj; | |
9187 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9188 | long result; | |
9189 | PyObject * obj0 = 0 ; | |
9190 | char *kwnames[] = { | |
9191 | (char *) "self", NULL | |
9192 | }; | |
9193 | ||
9194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
9195 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9196 | { | |
9197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9198 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9199 | ||
9200 | wxPyEndAllowThreads(__tstate); | |
9201 | if (PyErr_Occurred()) SWIG_fail; | |
9202 | } | |
8edf1c75 | 9203 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9204 | return resultobj; |
9205 | fail: | |
9206 | return NULL; | |
9207 | } | |
9208 | ||
9209 | ||
9210 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9211 | PyObject *resultobj; | |
9212 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9213 | long result; | |
9214 | PyObject * obj0 = 0 ; | |
9215 | char *kwnames[] = { | |
9216 | (char *) "self", NULL | |
9217 | }; | |
9218 | ||
9219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
9220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9221 | { | |
9222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9223 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
9224 | ||
9225 | wxPyEndAllowThreads(__tstate); | |
9226 | if (PyErr_Occurred()) SWIG_fail; | |
9227 | } | |
8edf1c75 | 9228 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9229 | return resultobj; |
9230 | fail: | |
9231 | return NULL; | |
9232 | } | |
9233 | ||
9234 | ||
9235 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
9236 | PyObject *obj; | |
9237 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9238 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
9239 | Py_INCREF(obj); | |
9240 | return Py_BuildValue((char *)""); | |
9241 | } | |
8edf1c75 | 9242 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
d03fd34d RD |
9243 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
9244 | return 1; | |
9245 | } | |
9246 | ||
9247 | ||
9248 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
9249 | PyObject *pyobj; | |
9250 | ||
9251 | { | |
9252 | #if wxUSE_UNICODE | |
9253 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9254 | #else | |
9255 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9256 | #endif | |
9257 | } | |
9258 | return pyobj; | |
9259 | } | |
9260 | ||
9261 | ||
d14a1e28 RD |
9262 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9263 | PyObject *resultobj; | |
9264 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9265 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9266 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9267 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9268 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9269 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9270 | long arg5 = (long) wxSB_HORIZONTAL ; | |
9271 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
9272 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
9273 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
9274 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9275 | wxScrollBar *result; | |
9276 | wxPoint temp3 ; | |
9277 | wxSize temp4 ; | |
423f194a | 9278 | bool temp7 = False ; |
d14a1e28 | 9279 | PyObject * obj0 = 0 ; |
8edf1c75 | 9280 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9281 | PyObject * obj2 = 0 ; |
9282 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9283 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9284 | PyObject * obj5 = 0 ; |
9285 | PyObject * obj6 = 0 ; | |
9286 | char *kwnames[] = { | |
9287 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9288 | }; | |
9289 | ||
8edf1c75 | 9290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 9291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9292 | if (obj1) { |
9293 | { | |
9294 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9295 | if (PyErr_Occurred()) SWIG_fail; | |
9296 | } | |
9297 | } | |
d14a1e28 RD |
9298 | if (obj2) { |
9299 | { | |
9300 | arg3 = &temp3; | |
9301 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9302 | } | |
9303 | } | |
9304 | if (obj3) { | |
9305 | { | |
9306 | arg4 = &temp4; | |
9307 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9308 | } | |
9309 | } | |
8edf1c75 RD |
9310 | if (obj4) { |
9311 | { | |
9312 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9313 | if (PyErr_Occurred()) SWIG_fail; | |
9314 | } | |
9315 | } | |
d14a1e28 RD |
9316 | if (obj5) { |
9317 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9318 | if (arg6 == NULL) { | |
9319 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9320 | } | |
9321 | } | |
9322 | if (obj6) { | |
9323 | { | |
9324 | arg7 = wxString_in_helper(obj6); | |
9325 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 9326 | temp7 = True; |
d14a1e28 RD |
9327 | } |
9328 | } | |
9329 | { | |
9330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9331 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
9332 | ||
9333 | wxPyEndAllowThreads(__tstate); | |
9334 | if (PyErr_Occurred()) SWIG_fail; | |
9335 | } | |
9336 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9337 | { | |
9338 | if (temp7) | |
9339 | delete arg7; | |
9340 | } | |
9341 | return resultobj; | |
9342 | fail: | |
9343 | { | |
9344 | if (temp7) | |
9345 | delete arg7; | |
9346 | } | |
9347 | return NULL; | |
9348 | } | |
9349 | ||
9350 | ||
9351 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9352 | PyObject *resultobj; | |
9353 | wxScrollBar *result; | |
9354 | char *kwnames[] = { | |
9355 | NULL | |
9356 | }; | |
9357 | ||
9358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
9359 | { | |
9360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9361 | result = (wxScrollBar *)new wxScrollBar(); | |
9362 | ||
9363 | wxPyEndAllowThreads(__tstate); | |
9364 | if (PyErr_Occurred()) SWIG_fail; | |
9365 | } | |
9366 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9367 | return resultobj; | |
9368 | fail: | |
9369 | return NULL; | |
9370 | } | |
9371 | ||
9372 | ||
9373 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9374 | PyObject *resultobj; | |
9375 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9376 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9377 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9378 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9379 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9380 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9381 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9382 | long arg6 = (long) wxSB_HORIZONTAL ; | |
9383 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9384 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9385 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
9386 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9387 | bool result; | |
9388 | wxPoint temp4 ; | |
9389 | wxSize temp5 ; | |
423f194a | 9390 | bool temp8 = False ; |
d14a1e28 RD |
9391 | PyObject * obj0 = 0 ; |
9392 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9393 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9394 | PyObject * obj3 = 0 ; |
9395 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9396 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9397 | PyObject * obj6 = 0 ; |
9398 | PyObject * obj7 = 0 ; | |
9399 | char *kwnames[] = { | |
9400 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9401 | }; | |
9402 | ||
8edf1c75 | 9403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
9404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9405 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
9406 | if (obj2) { |
9407 | { | |
9408 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9409 | if (PyErr_Occurred()) SWIG_fail; | |
9410 | } | |
9411 | } | |
d14a1e28 RD |
9412 | if (obj3) { |
9413 | { | |
9414 | arg4 = &temp4; | |
9415 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9416 | } | |
9417 | } | |
9418 | if (obj4) { | |
9419 | { | |
9420 | arg5 = &temp5; | |
9421 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9422 | } | |
9423 | } | |
8edf1c75 RD |
9424 | if (obj5) { |
9425 | { | |
9426 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9427 | if (PyErr_Occurred()) SWIG_fail; | |
9428 | } | |
9429 | } | |
d14a1e28 RD |
9430 | if (obj6) { |
9431 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9432 | if (arg7 == NULL) { | |
9433 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9434 | } | |
9435 | } | |
9436 | if (obj7) { | |
9437 | { | |
9438 | arg8 = wxString_in_helper(obj7); | |
9439 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 9440 | temp8 = True; |
d14a1e28 RD |
9441 | } |
9442 | } | |
9443 | { | |
9444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9445 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9446 | ||
9447 | wxPyEndAllowThreads(__tstate); | |
9448 | if (PyErr_Occurred()) SWIG_fail; | |
9449 | } | |
4e760a36 | 9450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9451 | { |
9452 | if (temp8) | |
9453 | delete arg8; | |
9454 | } | |
9455 | return resultobj; | |
9456 | fail: | |
9457 | { | |
9458 | if (temp8) | |
9459 | delete arg8; | |
9460 | } | |
9461 | return NULL; | |
9462 | } | |
9463 | ||
9464 | ||
9465 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9466 | PyObject *resultobj; | |
9467 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9468 | int result; | |
9469 | PyObject * obj0 = 0 ; | |
9470 | char *kwnames[] = { | |
9471 | (char *) "self", NULL | |
9472 | }; | |
9473 | ||
9474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
9475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9476 | { | |
9477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9478 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
9479 | ||
9480 | wxPyEndAllowThreads(__tstate); | |
9481 | if (PyErr_Occurred()) SWIG_fail; | |
9482 | } | |
8edf1c75 | 9483 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9484 | return resultobj; |
9485 | fail: | |
9486 | return NULL; | |
9487 | } | |
9488 | ||
9489 | ||
9490 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9491 | PyObject *resultobj; | |
9492 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9493 | int result; | |
9494 | PyObject * obj0 = 0 ; | |
9495 | char *kwnames[] = { | |
9496 | (char *) "self", NULL | |
9497 | }; | |
9498 | ||
9499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
9500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9501 | { | |
9502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9503 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
9504 | ||
9505 | wxPyEndAllowThreads(__tstate); | |
9506 | if (PyErr_Occurred()) SWIG_fail; | |
9507 | } | |
8edf1c75 | 9508 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9509 | return resultobj; |
9510 | fail: | |
9511 | return NULL; | |
9512 | } | |
9513 | ||
9514 | ||
9515 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9516 | PyObject *resultobj; | |
9517 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9518 | int result; | |
9519 | PyObject * obj0 = 0 ; | |
9520 | char *kwnames[] = { | |
9521 | (char *) "self", NULL | |
9522 | }; | |
9523 | ||
9524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
9525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9526 | { | |
9527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9528 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
9529 | ||
9530 | wxPyEndAllowThreads(__tstate); | |
9531 | if (PyErr_Occurred()) SWIG_fail; | |
9532 | } | |
8edf1c75 | 9533 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9534 | return resultobj; |
9535 | fail: | |
9536 | return NULL; | |
9537 | } | |
9538 | ||
9539 | ||
9540 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9541 | PyObject *resultobj; | |
9542 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9543 | int result; | |
9544 | PyObject * obj0 = 0 ; | |
9545 | char *kwnames[] = { | |
9546 | (char *) "self", NULL | |
9547 | }; | |
9548 | ||
9549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
9550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9551 | { | |
9552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9553 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
9554 | ||
9555 | wxPyEndAllowThreads(__tstate); | |
9556 | if (PyErr_Occurred()) SWIG_fail; | |
9557 | } | |
8edf1c75 | 9558 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9559 | return resultobj; |
9560 | fail: | |
9561 | return NULL; | |
9562 | } | |
9563 | ||
9564 | ||
9565 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9566 | PyObject *resultobj; | |
9567 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9568 | bool result; | |
9569 | PyObject * obj0 = 0 ; | |
9570 | char *kwnames[] = { | |
9571 | (char *) "self", NULL | |
9572 | }; | |
9573 | ||
9574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
9575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9576 | { | |
9577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9578 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
9579 | ||
9580 | wxPyEndAllowThreads(__tstate); | |
9581 | if (PyErr_Occurred()) SWIG_fail; | |
9582 | } | |
4e760a36 | 9583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9584 | return resultobj; |
9585 | fail: | |
9586 | return NULL; | |
9587 | } | |
9588 | ||
9589 | ||
9590 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9591 | PyObject *resultobj; | |
9592 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9593 | int arg2 ; | |
9594 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9595 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9596 | char *kwnames[] = { |
9597 | (char *) "self",(char *) "viewStart", NULL | |
9598 | }; | |
9599 | ||
8edf1c75 | 9600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9602 | { |
9603 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9604 | if (PyErr_Occurred()) SWIG_fail; | |
9605 | } | |
d14a1e28 RD |
9606 | { |
9607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9608 | (arg1)->SetThumbPosition(arg2); | |
9609 | ||
9610 | wxPyEndAllowThreads(__tstate); | |
9611 | if (PyErr_Occurred()) SWIG_fail; | |
9612 | } | |
9613 | Py_INCREF(Py_None); resultobj = Py_None; | |
9614 | return resultobj; | |
9615 | fail: | |
9616 | return NULL; | |
9617 | } | |
9618 | ||
9619 | ||
9620 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9621 | PyObject *resultobj; | |
9622 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9623 | int arg2 ; | |
9624 | int arg3 ; | |
9625 | int arg4 ; | |
9626 | int arg5 ; | |
423f194a | 9627 | bool arg6 = (bool) True ; |
d14a1e28 | 9628 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
9629 | PyObject * obj1 = 0 ; |
9630 | PyObject * obj2 = 0 ; | |
9631 | PyObject * obj3 = 0 ; | |
9632 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
9633 | PyObject * obj5 = 0 ; |
9634 | char *kwnames[] = { | |
9635 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
9636 | }; | |
9637 | ||
8edf1c75 | 9638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9640 | { |
9641 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9642 | if (PyErr_Occurred()) SWIG_fail; | |
9643 | } | |
9644 | { | |
9645 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9646 | if (PyErr_Occurred()) SWIG_fail; | |
9647 | } | |
9648 | { | |
9649 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9650 | if (PyErr_Occurred()) SWIG_fail; | |
9651 | } | |
9652 | { | |
9653 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
9654 | if (PyErr_Occurred()) SWIG_fail; | |
9655 | } | |
d14a1e28 | 9656 | if (obj5) { |
83448d71 | 9657 | { |
8edf1c75 | 9658 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
83448d71 RD |
9659 | if (PyErr_Occurred()) SWIG_fail; |
9660 | } | |
d14a1e28 RD |
9661 | } |
9662 | { | |
9663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9664 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
9665 | ||
9666 | wxPyEndAllowThreads(__tstate); | |
9667 | if (PyErr_Occurred()) SWIG_fail; | |
9668 | } | |
9669 | Py_INCREF(Py_None); resultobj = Py_None; | |
9670 | return resultobj; | |
9671 | fail: | |
9672 | return NULL; | |
9673 | } | |
9674 | ||
9675 | ||
9676 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
9677 | PyObject *obj; | |
9678 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9679 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
9680 | Py_INCREF(obj); | |
9681 | return Py_BuildValue((char *)""); | |
9682 | } | |
8edf1c75 | 9683 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
d03fd34d RD |
9684 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
9685 | return 1; | |
9686 | } | |
9687 | ||
9688 | ||
9689 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
9690 | PyObject *pyobj; | |
9691 | ||
9692 | { | |
9693 | #if wxUSE_UNICODE | |
9694 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9695 | #else | |
9696 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9697 | #endif | |
9698 | } | |
9699 | return pyobj; | |
9700 | } | |
9701 | ||
9702 | ||
8edf1c75 | 9703 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
d03fd34d RD |
9704 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
9705 | return 1; | |
9706 | } | |
9707 | ||
9708 | ||
9709 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
9710 | PyObject *pyobj; | |
9711 | ||
9712 | { | |
9713 | #if wxUSE_UNICODE | |
9714 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9715 | #else | |
9716 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9717 | #endif | |
9718 | } | |
9719 | return pyobj; | |
9720 | } | |
9721 | ||
9722 | ||
d14a1e28 RD |
9723 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
9724 | PyObject *resultobj; | |
9725 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9726 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9727 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9728 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9729 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9730 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9731 | long arg5 = (long) wxSP_HORIZONTAL ; | |
9732 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
9733 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9734 | wxSpinButton *result; | |
9735 | wxPoint temp3 ; | |
9736 | wxSize temp4 ; | |
423f194a | 9737 | bool temp6 = False ; |
d14a1e28 | 9738 | PyObject * obj0 = 0 ; |
8edf1c75 | 9739 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9740 | PyObject * obj2 = 0 ; |
9741 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9742 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9743 | PyObject * obj5 = 0 ; |
9744 | char *kwnames[] = { | |
9745 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9746 | }; | |
9747 | ||
8edf1c75 | 9748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9750 | if (obj1) { |
9751 | { | |
9752 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9753 | if (PyErr_Occurred()) SWIG_fail; | |
9754 | } | |
9755 | } | |
d14a1e28 RD |
9756 | if (obj2) { |
9757 | { | |
9758 | arg3 = &temp3; | |
9759 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9760 | } | |
9761 | } | |
9762 | if (obj3) { | |
9763 | { | |
9764 | arg4 = &temp4; | |
9765 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9766 | } | |
9767 | } | |
8edf1c75 RD |
9768 | if (obj4) { |
9769 | { | |
9770 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9771 | if (PyErr_Occurred()) SWIG_fail; | |
9772 | } | |
9773 | } | |
d14a1e28 RD |
9774 | if (obj5) { |
9775 | { | |
9776 | arg6 = wxString_in_helper(obj5); | |
9777 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 9778 | temp6 = True; |
d14a1e28 RD |
9779 | } |
9780 | } | |
9781 | { | |
9782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9783 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9784 | ||
9785 | wxPyEndAllowThreads(__tstate); | |
9786 | if (PyErr_Occurred()) SWIG_fail; | |
9787 | } | |
9788 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9789 | { | |
9790 | if (temp6) | |
9791 | delete arg6; | |
9792 | } | |
9793 | return resultobj; | |
9794 | fail: | |
9795 | { | |
9796 | if (temp6) | |
9797 | delete arg6; | |
9798 | } | |
9799 | return NULL; | |
9800 | } | |
9801 | ||
9802 | ||
9803 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9804 | PyObject *resultobj; | |
9805 | wxSpinButton *result; | |
9806 | char *kwnames[] = { | |
9807 | NULL | |
9808 | }; | |
9809 | ||
9810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
9811 | { | |
9812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9813 | result = (wxSpinButton *)new wxSpinButton(); | |
9814 | ||
9815 | wxPyEndAllowThreads(__tstate); | |
9816 | if (PyErr_Occurred()) SWIG_fail; | |
9817 | } | |
9818 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9819 | return resultobj; | |
9820 | fail: | |
9821 | return NULL; | |
9822 | } | |
9823 | ||
9824 | ||
9825 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9826 | PyObject *resultobj; | |
9827 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9828 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9829 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9830 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9831 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9832 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9833 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9834 | long arg6 = (long) wxSP_HORIZONTAL ; | |
9835 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
9836 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9837 | bool result; | |
9838 | wxPoint temp4 ; | |
9839 | wxSize temp5 ; | |
423f194a | 9840 | bool temp7 = False ; |
d14a1e28 RD |
9841 | PyObject * obj0 = 0 ; |
9842 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9843 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9844 | PyObject * obj3 = 0 ; |
9845 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9846 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9847 | PyObject * obj6 = 0 ; |
9848 | char *kwnames[] = { | |
9849 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9850 | }; | |
9851 | ||
8edf1c75 | 9852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
9853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9854 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
9855 | if (obj2) { |
9856 | { | |
9857 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9858 | if (PyErr_Occurred()) SWIG_fail; | |
9859 | } | |
9860 | } | |
d14a1e28 RD |
9861 | if (obj3) { |
9862 | { | |
9863 | arg4 = &temp4; | |
9864 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9865 | } | |
9866 | } | |
9867 | if (obj4) { | |
9868 | { | |
9869 | arg5 = &temp5; | |
9870 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9871 | } | |
9872 | } | |
8edf1c75 RD |
9873 | if (obj5) { |
9874 | { | |
9875 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9876 | if (PyErr_Occurred()) SWIG_fail; | |
9877 | } | |
9878 | } | |
d14a1e28 RD |
9879 | if (obj6) { |
9880 | { | |
9881 | arg7 = wxString_in_helper(obj6); | |
9882 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 9883 | temp7 = True; |
d14a1e28 RD |
9884 | } |
9885 | } | |
9886 | { | |
9887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9888 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9889 | ||
9890 | wxPyEndAllowThreads(__tstate); | |
9891 | if (PyErr_Occurred()) SWIG_fail; | |
9892 | } | |
4e760a36 | 9893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9894 | { |
9895 | if (temp7) | |
9896 | delete arg7; | |
9897 | } | |
9898 | return resultobj; | |
9899 | fail: | |
9900 | { | |
9901 | if (temp7) | |
9902 | delete arg7; | |
9903 | } | |
9904 | return NULL; | |
9905 | } | |
9906 | ||
9907 | ||
9908 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9909 | PyObject *resultobj; | |
9910 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9911 | int result; | |
9912 | PyObject * obj0 = 0 ; | |
9913 | char *kwnames[] = { | |
9914 | (char *) "self", NULL | |
9915 | }; | |
9916 | ||
9917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
9918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9919 | { | |
9920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9921 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
9922 | ||
9923 | wxPyEndAllowThreads(__tstate); | |
9924 | if (PyErr_Occurred()) SWIG_fail; | |
9925 | } | |
8edf1c75 | 9926 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9927 | return resultobj; |
9928 | fail: | |
9929 | return NULL; | |
9930 | } | |
9931 | ||
9932 | ||
9933 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9934 | PyObject *resultobj; | |
9935 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9936 | int result; | |
9937 | PyObject * obj0 = 0 ; | |
9938 | char *kwnames[] = { | |
9939 | (char *) "self", NULL | |
9940 | }; | |
9941 | ||
9942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
9943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9944 | { | |
9945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9946 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
9947 | ||
9948 | wxPyEndAllowThreads(__tstate); | |
9949 | if (PyErr_Occurred()) SWIG_fail; | |
9950 | } | |
8edf1c75 | 9951 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9952 | return resultobj; |
9953 | fail: | |
9954 | return NULL; | |
9955 | } | |
9956 | ||
9957 | ||
9958 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9959 | PyObject *resultobj; | |
9960 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9961 | int result; | |
9962 | PyObject * obj0 = 0 ; | |
9963 | char *kwnames[] = { | |
9964 | (char *) "self", NULL | |
9965 | }; | |
9966 | ||
9967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
9968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9969 | { | |
9970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9971 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
9972 | ||
9973 | wxPyEndAllowThreads(__tstate); | |
9974 | if (PyErr_Occurred()) SWIG_fail; | |
9975 | } | |
8edf1c75 | 9976 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9977 | return resultobj; |
9978 | fail: | |
9979 | return NULL; | |
9980 | } | |
9981 | ||
9982 | ||
9983 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9984 | PyObject *resultobj; | |
9985 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9986 | int arg2 ; | |
9987 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9988 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9989 | char *kwnames[] = { |
9990 | (char *) "self",(char *) "val", NULL | |
9991 | }; | |
9992 | ||
8edf1c75 | 9993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9995 | { |
9996 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9997 | if (PyErr_Occurred()) SWIG_fail; | |
9998 | } | |
d14a1e28 RD |
9999 | { |
10000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10001 | (arg1)->SetValue(arg2); | |
10002 | ||
10003 | wxPyEndAllowThreads(__tstate); | |
10004 | if (PyErr_Occurred()) SWIG_fail; | |
10005 | } | |
10006 | Py_INCREF(Py_None); resultobj = Py_None; | |
10007 | return resultobj; | |
10008 | fail: | |
10009 | return NULL; | |
10010 | } | |
10011 | ||
10012 | ||
10013 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10014 | PyObject *resultobj; | |
10015 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10016 | int arg2 ; | |
10017 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10018 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10019 | char *kwnames[] = { |
10020 | (char *) "self",(char *) "minVal", NULL | |
10021 | }; | |
10022 | ||
8edf1c75 | 10023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10025 | { |
10026 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10027 | if (PyErr_Occurred()) SWIG_fail; | |
10028 | } | |
d14a1e28 RD |
10029 | { |
10030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10031 | (arg1)->SetMin(arg2); | |
10032 | ||
10033 | wxPyEndAllowThreads(__tstate); | |
10034 | if (PyErr_Occurred()) SWIG_fail; | |
10035 | } | |
10036 | Py_INCREF(Py_None); resultobj = Py_None; | |
10037 | return resultobj; | |
10038 | fail: | |
10039 | return NULL; | |
10040 | } | |
10041 | ||
10042 | ||
10043 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10044 | PyObject *resultobj; | |
10045 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10046 | int arg2 ; | |
10047 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10048 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10049 | char *kwnames[] = { |
10050 | (char *) "self",(char *) "maxVal", NULL | |
10051 | }; | |
10052 | ||
8edf1c75 | 10053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10055 | { |
10056 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10057 | if (PyErr_Occurred()) SWIG_fail; | |
10058 | } | |
d14a1e28 RD |
10059 | { |
10060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10061 | (arg1)->SetMax(arg2); | |
10062 | ||
10063 | wxPyEndAllowThreads(__tstate); | |
10064 | if (PyErr_Occurred()) SWIG_fail; | |
10065 | } | |
10066 | Py_INCREF(Py_None); resultobj = Py_None; | |
10067 | return resultobj; | |
10068 | fail: | |
10069 | return NULL; | |
10070 | } | |
10071 | ||
10072 | ||
10073 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10074 | PyObject *resultobj; | |
10075 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10076 | int arg2 ; | |
10077 | int arg3 ; | |
10078 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10079 | PyObject * obj1 = 0 ; |
10080 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10081 | char *kwnames[] = { |
10082 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10083 | }; | |
10084 | ||
8edf1c75 | 10085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10087 | { | |
8edf1c75 RD |
10088 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
10089 | if (PyErr_Occurred()) SWIG_fail; | |
10090 | } | |
10091 | { | |
10092 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10093 | if (PyErr_Occurred()) SWIG_fail; | |
10094 | } | |
10095 | { | |
10096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10097 | (arg1)->SetRange(arg2,arg3); | |
d14a1e28 RD |
10098 | |
10099 | wxPyEndAllowThreads(__tstate); | |
10100 | if (PyErr_Occurred()) SWIG_fail; | |
10101 | } | |
10102 | Py_INCREF(Py_None); resultobj = Py_None; | |
10103 | return resultobj; | |
10104 | fail: | |
10105 | return NULL; | |
10106 | } | |
10107 | ||
10108 | ||
10109 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10110 | PyObject *resultobj; | |
10111 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10112 | bool result; | |
10113 | PyObject * obj0 = 0 ; | |
10114 | char *kwnames[] = { | |
10115 | (char *) "self", NULL | |
10116 | }; | |
10117 | ||
10118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
10119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10120 | { | |
10121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10122 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10123 | ||
10124 | wxPyEndAllowThreads(__tstate); | |
10125 | if (PyErr_Occurred()) SWIG_fail; | |
10126 | } | |
4e760a36 | 10127 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10128 | return resultobj; |
10129 | fail: | |
10130 | return NULL; | |
10131 | } | |
10132 | ||
10133 | ||
10134 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
10135 | PyObject *obj; | |
10136 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10137 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
10138 | Py_INCREF(obj); | |
10139 | return Py_BuildValue((char *)""); | |
10140 | } | |
10141 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10142 | PyObject *resultobj; | |
10143 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10144 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10145 | wxString const &arg3_defvalue = wxPyEmptyString ; |
10146 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10147 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10148 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10149 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10150 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10151 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
10152 | int arg7 = (int) 0 ; | |
10153 | int arg8 = (int) 100 ; | |
10154 | int arg9 = (int) 0 ; | |
10155 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
10156 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10157 | wxSpinCtrl *result; | |
423f194a | 10158 | bool temp3 = False ; |
d14a1e28 RD |
10159 | wxPoint temp4 ; |
10160 | wxSize temp5 ; | |
423f194a | 10161 | bool temp10 = False ; |
d14a1e28 | 10162 | PyObject * obj0 = 0 ; |
8edf1c75 | 10163 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10164 | PyObject * obj2 = 0 ; |
10165 | PyObject * obj3 = 0 ; | |
10166 | PyObject * obj4 = 0 ; | |
8edf1c75 RD |
10167 | PyObject * obj5 = 0 ; |
10168 | PyObject * obj6 = 0 ; | |
10169 | PyObject * obj7 = 0 ; | |
10170 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10171 | PyObject * obj9 = 0 ; |
10172 | char *kwnames[] = { | |
10173 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10174 | }; | |
10175 | ||
8edf1c75 | 10176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 10177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10178 | if (obj1) { |
10179 | { | |
10180 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10181 | if (PyErr_Occurred()) SWIG_fail; | |
10182 | } | |
10183 | } | |
d14a1e28 RD |
10184 | if (obj2) { |
10185 | { | |
10186 | arg3 = wxString_in_helper(obj2); | |
10187 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10188 | temp3 = True; |
d14a1e28 RD |
10189 | } |
10190 | } | |
10191 | if (obj3) { | |
10192 | { | |
10193 | arg4 = &temp4; | |
10194 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10195 | } | |
10196 | } | |
10197 | if (obj4) { | |
10198 | { | |
10199 | arg5 = &temp5; | |
10200 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10201 | } | |
10202 | } | |
8edf1c75 RD |
10203 | if (obj5) { |
10204 | { | |
10205 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
10206 | if (PyErr_Occurred()) SWIG_fail; | |
10207 | } | |
10208 | } | |
10209 | if (obj6) { | |
10210 | { | |
10211 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
10212 | if (PyErr_Occurred()) SWIG_fail; | |
10213 | } | |
10214 | } | |
10215 | if (obj7) { | |
10216 | { | |
10217 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
10218 | if (PyErr_Occurred()) SWIG_fail; | |
10219 | } | |
10220 | } | |
10221 | if (obj8) { | |
10222 | { | |
10223 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
10224 | if (PyErr_Occurred()) SWIG_fail; | |
10225 | } | |
10226 | } | |
d14a1e28 RD |
10227 | if (obj9) { |
10228 | { | |
10229 | arg10 = wxString_in_helper(obj9); | |
10230 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10231 | temp10 = True; |
d14a1e28 RD |
10232 | } |
10233 | } | |
10234 | { | |
10235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10236 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
10237 | ||
10238 | wxPyEndAllowThreads(__tstate); | |
10239 | if (PyErr_Occurred()) SWIG_fail; | |
10240 | } | |
10241 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
10242 | { | |
10243 | if (temp3) | |
10244 | delete arg3; | |
10245 | } | |
10246 | { | |
10247 | if (temp10) | |
10248 | delete arg10; | |
10249 | } | |
10250 | return resultobj; | |
10251 | fail: | |
10252 | { | |
10253 | if (temp3) | |
10254 | delete arg3; | |
10255 | } | |
10256 | { | |
10257 | if (temp10) | |
10258 | delete arg10; | |
10259 | } | |
10260 | return NULL; | |
10261 | } | |
10262 | ||
10263 | ||
10264 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10265 | PyObject *resultobj; | |
10266 | wxSpinCtrl *result; | |
10267 | char *kwnames[] = { | |
10268 | NULL | |
10269 | }; | |
10270 | ||
10271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
10272 | { | |
10273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10274 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
10275 | ||
10276 | wxPyEndAllowThreads(__tstate); | |
10277 | if (PyErr_Occurred()) SWIG_fail; | |
10278 | } | |
10279 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
10280 | return resultobj; | |
10281 | fail: | |
10282 | return NULL; | |
10283 | } | |
10284 | ||
10285 | ||
10286 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10287 | PyObject *resultobj; | |
10288 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10289 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10290 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10291 | wxString const &arg4_defvalue = wxPyEmptyString ; |
10292 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
10293 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10294 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10295 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10296 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10297 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
10298 | int arg8 = (int) 0 ; | |
10299 | int arg9 = (int) 100 ; | |
10300 | int arg10 = (int) 0 ; | |
10301 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
10302 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10303 | bool result; | |
423f194a | 10304 | bool temp4 = False ; |
d14a1e28 RD |
10305 | wxPoint temp5 ; |
10306 | wxSize temp6 ; | |
423f194a | 10307 | bool temp11 = False ; |
d14a1e28 RD |
10308 | PyObject * obj0 = 0 ; |
10309 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10310 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10311 | PyObject * obj3 = 0 ; |
10312 | PyObject * obj4 = 0 ; | |
10313 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
10314 | PyObject * obj6 = 0 ; |
10315 | PyObject * obj7 = 0 ; | |
10316 | PyObject * obj8 = 0 ; | |
10317 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
10318 | PyObject * obj10 = 0 ; |
10319 | char *kwnames[] = { | |
10320 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10321 | }; | |
10322 | ||
8edf1c75 | 10323 | 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 |
10324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10325 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
10326 | if (obj2) { |
10327 | { | |
10328 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10329 | if (PyErr_Occurred()) SWIG_fail; | |
10330 | } | |
10331 | } | |
d14a1e28 RD |
10332 | if (obj3) { |
10333 | { | |
10334 | arg4 = wxString_in_helper(obj3); | |
10335 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10336 | temp4 = True; |
d14a1e28 RD |
10337 | } |
10338 | } | |
10339 | if (obj4) { | |
10340 | { | |
10341 | arg5 = &temp5; | |
10342 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10343 | } | |
10344 | } | |
10345 | if (obj5) { | |
10346 | { | |
10347 | arg6 = &temp6; | |
10348 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10349 | } | |
10350 | } | |
8edf1c75 RD |
10351 | if (obj6) { |
10352 | { | |
10353 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
10354 | if (PyErr_Occurred()) SWIG_fail; | |
10355 | } | |
10356 | } | |
10357 | if (obj7) { | |
10358 | { | |
10359 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
10360 | if (PyErr_Occurred()) SWIG_fail; | |
10361 | } | |
10362 | } | |
10363 | if (obj8) { | |
10364 | { | |
10365 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
10366 | if (PyErr_Occurred()) SWIG_fail; | |
10367 | } | |
10368 | } | |
10369 | if (obj9) { | |
10370 | { | |
10371 | arg10 = (int) SWIG_PyObj_AsInt(obj9); | |
10372 | if (PyErr_Occurred()) SWIG_fail; | |
10373 | } | |
10374 | } | |
d14a1e28 RD |
10375 | if (obj10) { |
10376 | { | |
10377 | arg11 = wxString_in_helper(obj10); | |
10378 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 10379 | temp11 = True; |
d14a1e28 RD |
10380 | } |
10381 | } | |
10382 | { | |
10383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10384 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
10385 | ||
10386 | wxPyEndAllowThreads(__tstate); | |
10387 | if (PyErr_Occurred()) SWIG_fail; | |
10388 | } | |
4e760a36 | 10389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10390 | { |
10391 | if (temp4) | |
10392 | delete arg4; | |
10393 | } | |
10394 | { | |
10395 | if (temp11) | |
10396 | delete arg11; | |
10397 | } | |
10398 | return resultobj; | |
10399 | fail: | |
10400 | { | |
10401 | if (temp4) | |
10402 | delete arg4; | |
10403 | } | |
10404 | { | |
10405 | if (temp11) | |
10406 | delete arg11; | |
10407 | } | |
10408 | return NULL; | |
10409 | } | |
10410 | ||
10411 | ||
10412 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10413 | PyObject *resultobj; | |
10414 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10415 | int result; | |
10416 | PyObject * obj0 = 0 ; | |
10417 | char *kwnames[] = { | |
10418 | (char *) "self", NULL | |
10419 | }; | |
10420 | ||
10421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
10422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10423 | { | |
10424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10425 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
10426 | ||
10427 | wxPyEndAllowThreads(__tstate); | |
10428 | if (PyErr_Occurred()) SWIG_fail; | |
10429 | } | |
8edf1c75 | 10430 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10431 | return resultobj; |
10432 | fail: | |
10433 | return NULL; | |
10434 | } | |
10435 | ||
10436 | ||
10437 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10438 | PyObject *resultobj; | |
10439 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10440 | int arg2 ; | |
10441 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10442 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10443 | char *kwnames[] = { |
10444 | (char *) "self",(char *) "value", NULL | |
10445 | }; | |
10446 | ||
8edf1c75 | 10447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10449 | { |
10450 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10451 | if (PyErr_Occurred()) SWIG_fail; | |
10452 | } | |
d14a1e28 RD |
10453 | { |
10454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10455 | (arg1)->SetValue(arg2); | |
10456 | ||
10457 | wxPyEndAllowThreads(__tstate); | |
10458 | if (PyErr_Occurred()) SWIG_fail; | |
10459 | } | |
10460 | Py_INCREF(Py_None); resultobj = Py_None; | |
10461 | return resultobj; | |
10462 | fail: | |
10463 | return NULL; | |
10464 | } | |
10465 | ||
10466 | ||
10467 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10468 | PyObject *resultobj; | |
10469 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10470 | wxString *arg2 = 0 ; | |
423f194a | 10471 | bool temp2 = False ; |
d14a1e28 RD |
10472 | PyObject * obj0 = 0 ; |
10473 | PyObject * obj1 = 0 ; | |
10474 | char *kwnames[] = { | |
10475 | (char *) "self",(char *) "text", NULL | |
10476 | }; | |
10477 | ||
10478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
10479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10480 | { | |
10481 | arg2 = wxString_in_helper(obj1); | |
10482 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10483 | temp2 = True; |
d14a1e28 RD |
10484 | } |
10485 | { | |
10486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10487 | (arg1)->SetValue((wxString const &)*arg2); | |
10488 | ||
10489 | wxPyEndAllowThreads(__tstate); | |
10490 | if (PyErr_Occurred()) SWIG_fail; | |
10491 | } | |
10492 | Py_INCREF(Py_None); resultobj = Py_None; | |
10493 | { | |
10494 | if (temp2) | |
10495 | delete arg2; | |
10496 | } | |
10497 | return resultobj; | |
10498 | fail: | |
10499 | { | |
10500 | if (temp2) | |
10501 | delete arg2; | |
10502 | } | |
10503 | return NULL; | |
10504 | } | |
10505 | ||
10506 | ||
10507 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10508 | PyObject *resultobj; | |
10509 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10510 | int arg2 ; | |
10511 | int arg3 ; | |
10512 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10513 | PyObject * obj1 = 0 ; |
10514 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10515 | char *kwnames[] = { |
10516 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10517 | }; | |
10518 | ||
8edf1c75 | 10519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10521 | { |
10522 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10523 | if (PyErr_Occurred()) SWIG_fail; | |
10524 | } | |
10525 | { | |
10526 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10527 | if (PyErr_Occurred()) SWIG_fail; | |
10528 | } | |
d14a1e28 RD |
10529 | { |
10530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10531 | (arg1)->SetRange(arg2,arg3); | |
10532 | ||
10533 | wxPyEndAllowThreads(__tstate); | |
10534 | if (PyErr_Occurred()) SWIG_fail; | |
10535 | } | |
10536 | Py_INCREF(Py_None); resultobj = Py_None; | |
10537 | return resultobj; | |
10538 | fail: | |
10539 | return NULL; | |
10540 | } | |
10541 | ||
10542 | ||
10543 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10544 | PyObject *resultobj; | |
10545 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10546 | int result; | |
10547 | PyObject * obj0 = 0 ; | |
10548 | char *kwnames[] = { | |
10549 | (char *) "self", NULL | |
10550 | }; | |
10551 | ||
10552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
10553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10554 | { | |
10555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10556 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
10557 | ||
10558 | wxPyEndAllowThreads(__tstate); | |
10559 | if (PyErr_Occurred()) SWIG_fail; | |
10560 | } | |
8edf1c75 | 10561 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10562 | return resultobj; |
10563 | fail: | |
10564 | return NULL; | |
10565 | } | |
10566 | ||
10567 | ||
10568 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10569 | PyObject *resultobj; | |
10570 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10571 | int result; | |
10572 | PyObject * obj0 = 0 ; | |
10573 | char *kwnames[] = { | |
10574 | (char *) "self", NULL | |
10575 | }; | |
10576 | ||
10577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
10578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10579 | { | |
10580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10581 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
10582 | ||
10583 | wxPyEndAllowThreads(__tstate); | |
10584 | if (PyErr_Occurred()) SWIG_fail; | |
10585 | } | |
8edf1c75 | 10586 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10587 | return resultobj; |
10588 | fail: | |
10589 | return NULL; | |
10590 | } | |
10591 | ||
10592 | ||
10593 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10594 | PyObject *resultobj; | |
10595 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10596 | long arg2 ; | |
10597 | long arg3 ; | |
10598 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10599 | PyObject * obj1 = 0 ; |
10600 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10601 | char *kwnames[] = { |
10602 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10603 | }; | |
10604 | ||
8edf1c75 | 10605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10607 | { |
10608 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
10609 | if (PyErr_Occurred()) SWIG_fail; | |
10610 | } | |
10611 | { | |
10612 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
10613 | if (PyErr_Occurred()) SWIG_fail; | |
10614 | } | |
d14a1e28 RD |
10615 | { |
10616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10617 | (arg1)->SetSelection(arg2,arg3); | |
10618 | ||
10619 | wxPyEndAllowThreads(__tstate); | |
10620 | if (PyErr_Occurred()) SWIG_fail; | |
10621 | } | |
10622 | Py_INCREF(Py_None); resultobj = Py_None; | |
10623 | return resultobj; | |
10624 | fail: | |
10625 | return NULL; | |
10626 | } | |
10627 | ||
10628 | ||
10629 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
10630 | PyObject *obj; | |
10631 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10632 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
10633 | Py_INCREF(obj); | |
10634 | return Py_BuildValue((char *)""); | |
10635 | } | |
eb9b6107 RD |
10636 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
10637 | PyObject *resultobj; | |
10638 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10639 | int arg2 = (int) 0 ; | |
10640 | wxSpinEvent *result; | |
8edf1c75 RD |
10641 | PyObject * obj0 = 0 ; |
10642 | PyObject * obj1 = 0 ; | |
eb9b6107 RD |
10643 | char *kwnames[] = { |
10644 | (char *) "commandType",(char *) "winid", NULL | |
10645 | }; | |
10646 | ||
8edf1c75 RD |
10647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
10648 | if (obj0) { | |
10649 | { | |
10650 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
10651 | if (PyErr_Occurred()) SWIG_fail; | |
10652 | } | |
10653 | } | |
10654 | if (obj1) { | |
10655 | { | |
10656 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10657 | if (PyErr_Occurred()) SWIG_fail; | |
10658 | } | |
10659 | } | |
eb9b6107 RD |
10660 | { |
10661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10662 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
10663 | ||
10664 | wxPyEndAllowThreads(__tstate); | |
10665 | if (PyErr_Occurred()) SWIG_fail; | |
10666 | } | |
10667 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinEvent, 1); | |
10668 | return resultobj; | |
10669 | fail: | |
10670 | return NULL; | |
10671 | } | |
10672 | ||
10673 | ||
10674 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10675 | PyObject *resultobj; | |
10676 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10677 | int result; | |
10678 | PyObject * obj0 = 0 ; | |
10679 | char *kwnames[] = { | |
10680 | (char *) "self", NULL | |
10681 | }; | |
10682 | ||
10683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10685 | { | |
10686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10687 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
10688 | ||
10689 | wxPyEndAllowThreads(__tstate); | |
10690 | if (PyErr_Occurred()) SWIG_fail; | |
10691 | } | |
8edf1c75 | 10692 | resultobj = SWIG_PyObj_FromInt((int)result); |
eb9b6107 RD |
10693 | return resultobj; |
10694 | fail: | |
10695 | return NULL; | |
10696 | } | |
10697 | ||
10698 | ||
10699 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10700 | PyObject *resultobj; | |
10701 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10702 | int arg2 ; | |
10703 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10704 | PyObject * obj1 = 0 ; |
eb9b6107 RD |
10705 | char *kwnames[] = { |
10706 | (char *) "self",(char *) "pos", NULL | |
10707 | }; | |
10708 | ||
8edf1c75 | 10709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
eb9b6107 | 10710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10711 | { |
10712 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10713 | if (PyErr_Occurred()) SWIG_fail; | |
10714 | } | |
eb9b6107 RD |
10715 | { |
10716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10717 | (arg1)->SetPosition(arg2); | |
10718 | ||
10719 | wxPyEndAllowThreads(__tstate); | |
10720 | if (PyErr_Occurred()) SWIG_fail; | |
10721 | } | |
10722 | Py_INCREF(Py_None); resultobj = Py_None; | |
10723 | return resultobj; | |
10724 | fail: | |
10725 | return NULL; | |
10726 | } | |
10727 | ||
10728 | ||
10729 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
10730 | PyObject *obj; | |
10731 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10732 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
10733 | Py_INCREF(obj); | |
10734 | return Py_BuildValue((char *)""); | |
10735 | } | |
8edf1c75 | 10736 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
d03fd34d RD |
10737 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
10738 | return 1; | |
10739 | } | |
10740 | ||
10741 | ||
10742 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
10743 | PyObject *pyobj; | |
10744 | ||
10745 | { | |
10746 | #if wxUSE_UNICODE | |
10747 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10748 | #else | |
10749 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10750 | #endif | |
10751 | } | |
10752 | return pyobj; | |
10753 | } | |
10754 | ||
10755 | ||
8edf1c75 | 10756 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
d03fd34d RD |
10757 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
10758 | return 1; | |
10759 | } | |
10760 | ||
10761 | ||
10762 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
10763 | PyObject *pyobj; | |
10764 | ||
10765 | { | |
10766 | #if wxUSE_UNICODE | |
10767 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10768 | #else | |
10769 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10770 | #endif | |
10771 | } | |
10772 | return pyobj; | |
10773 | } | |
10774 | ||
10775 | ||
d14a1e28 RD |
10776 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
10777 | PyObject *resultobj; | |
10778 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10779 | int arg2 ; |
d14a1e28 RD |
10780 | wxString *arg3 = 0 ; |
10781 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10782 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10783 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10784 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
10785 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
10786 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
10787 | int arg7 = (int) 0 ; | |
10788 | long arg8 = (long) wxRA_HORIZONTAL ; | |
10789 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
10790 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
10791 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
10792 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 10793 | wxRadioBox *result; |
423f194a | 10794 | bool temp3 = False ; |
d14a1e28 RD |
10795 | wxPoint temp4 ; |
10796 | wxSize temp5 ; | |
db914595 | 10797 | bool temp6 = False ; |
423f194a | 10798 | bool temp10 = False ; |
d14a1e28 | 10799 | PyObject * obj0 = 0 ; |
8edf1c75 | 10800 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10801 | PyObject * obj2 = 0 ; |
10802 | PyObject * obj3 = 0 ; | |
10803 | PyObject * obj4 = 0 ; | |
10804 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
10805 | PyObject * obj6 = 0 ; |
10806 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
10807 | PyObject * obj8 = 0 ; |
10808 | PyObject * obj9 = 0 ; | |
10809 | char *kwnames[] = { | |
8edf1c75 | 10810 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
10811 | }; |
10812 | ||
8edf1c75 | 10813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 10814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10815 | { |
10816 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10817 | if (PyErr_Occurred()) SWIG_fail; | |
10818 | } | |
d14a1e28 RD |
10819 | { |
10820 | arg3 = wxString_in_helper(obj2); | |
10821 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10822 | temp3 = True; |
d14a1e28 RD |
10823 | } |
10824 | if (obj3) { | |
10825 | { | |
10826 | arg4 = &temp4; | |
10827 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10828 | } | |
10829 | } | |
10830 | if (obj4) { | |
10831 | { | |
10832 | arg5 = &temp5; | |
10833 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10834 | } | |
10835 | } | |
10836 | if (obj5) { | |
10837 | { | |
4e760a36 RD |
10838 | if (! PySequence_Check(obj5)) { |
10839 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10840 | SWIG_fail; | |
10841 | } | |
10842 | arg6 = new wxArrayString; | |
db914595 | 10843 | temp6 = True; |
4e760a36 RD |
10844 | int i, len=PySequence_Length(obj5); |
10845 | for (i=0; i<len; i++) { | |
10846 | PyObject* item = PySequence_GetItem(obj5, i); | |
10847 | #if wxUSE_UNICODE | |
10848 | PyObject* str = PyObject_Unicode(item); | |
10849 | #else | |
10850 | PyObject* str = PyObject_Str(item); | |
10851 | #endif | |
10852 | arg6->Add(Py2wxString(str)); | |
10853 | Py_DECREF(item); | |
10854 | Py_DECREF(str); | |
10855 | } | |
d14a1e28 RD |
10856 | } |
10857 | } | |
8edf1c75 RD |
10858 | if (obj6) { |
10859 | { | |
4e760a36 | 10860 | arg7 = (int) SWIG_PyObj_AsInt(obj6); |
8edf1c75 RD |
10861 | if (PyErr_Occurred()) SWIG_fail; |
10862 | } | |
10863 | } | |
10864 | if (obj7) { | |
10865 | { | |
4e760a36 | 10866 | arg8 = (long) SWIG_PyObj_AsLong(obj7); |
8edf1c75 RD |
10867 | if (PyErr_Occurred()) SWIG_fail; |
10868 | } | |
10869 | } | |
d14a1e28 | 10870 | if (obj8) { |
4e760a36 RD |
10871 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10872 | if (arg9 == NULL) { | |
d14a1e28 RD |
10873 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
10874 | } | |
10875 | } | |
10876 | if (obj9) { | |
10877 | { | |
4e760a36 RD |
10878 | arg10 = wxString_in_helper(obj9); |
10879 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10880 | temp10 = True; |
d14a1e28 RD |
10881 | } |
10882 | } | |
10883 | { | |
10884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 10885 | 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 |
10886 | |
10887 | wxPyEndAllowThreads(__tstate); | |
10888 | if (PyErr_Occurred()) SWIG_fail; | |
10889 | } | |
10890 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
10891 | { | |
10892 | if (temp3) | |
10893 | delete arg3; | |
10894 | } | |
10895 | { | |
db914595 | 10896 | if (temp6) delete arg6; |
d14a1e28 RD |
10897 | } |
10898 | { | |
10899 | if (temp10) | |
4e760a36 | 10900 | delete arg10; |
d14a1e28 RD |
10901 | } |
10902 | return resultobj; | |
10903 | fail: | |
10904 | { | |
10905 | if (temp3) | |
10906 | delete arg3; | |
10907 | } | |
10908 | { | |
db914595 | 10909 | if (temp6) delete arg6; |
d14a1e28 RD |
10910 | } |
10911 | { | |
10912 | if (temp10) | |
4e760a36 | 10913 | delete arg10; |
d14a1e28 RD |
10914 | } |
10915 | return NULL; | |
10916 | } | |
10917 | ||
10918 | ||
10919 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10920 | PyObject *resultobj; | |
10921 | wxRadioBox *result; | |
10922 | char *kwnames[] = { | |
10923 | NULL | |
10924 | }; | |
10925 | ||
10926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
10927 | { | |
10928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10929 | result = (wxRadioBox *)new wxRadioBox(); | |
10930 | ||
10931 | wxPyEndAllowThreads(__tstate); | |
10932 | if (PyErr_Occurred()) SWIG_fail; | |
10933 | } | |
10934 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
10935 | return resultobj; | |
10936 | fail: | |
10937 | return NULL; | |
10938 | } | |
10939 | ||
10940 | ||
10941 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10942 | PyObject *resultobj; | |
10943 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10944 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10945 | int arg3 ; |
d14a1e28 RD |
10946 | wxString *arg4 = 0 ; |
10947 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10948 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10949 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10950 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4e760a36 RD |
10951 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
10952 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
10953 | int arg8 = (int) 0 ; | |
10954 | long arg9 = (long) wxRA_HORIZONTAL ; | |
10955 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
10956 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
10957 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
10958 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 10959 | bool result; |
423f194a | 10960 | bool temp4 = False ; |
d14a1e28 RD |
10961 | wxPoint temp5 ; |
10962 | wxSize temp6 ; | |
db914595 | 10963 | bool temp7 = False ; |
423f194a | 10964 | bool temp11 = False ; |
d14a1e28 RD |
10965 | PyObject * obj0 = 0 ; |
10966 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10967 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10968 | PyObject * obj3 = 0 ; |
10969 | PyObject * obj4 = 0 ; | |
10970 | PyObject * obj5 = 0 ; | |
10971 | PyObject * obj6 = 0 ; | |
8edf1c75 RD |
10972 | PyObject * obj7 = 0 ; |
10973 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10974 | PyObject * obj9 = 0 ; |
10975 | PyObject * obj10 = 0 ; | |
10976 | char *kwnames[] = { | |
8edf1c75 | 10977 | (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 |
10978 | }; |
10979 | ||
8edf1c75 | 10980 | 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 |
10981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10982 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
10983 | { |
10984 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10985 | if (PyErr_Occurred()) SWIG_fail; | |
10986 | } | |
d14a1e28 RD |
10987 | { |
10988 | arg4 = wxString_in_helper(obj3); | |
10989 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10990 | temp4 = True; |
d14a1e28 RD |
10991 | } |
10992 | if (obj4) { | |
10993 | { | |
10994 | arg5 = &temp5; | |
10995 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10996 | } | |
10997 | } | |
10998 | if (obj5) { | |
10999 | { | |
11000 | arg6 = &temp6; | |
11001 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11002 | } | |
11003 | } | |
11004 | if (obj6) { | |
11005 | { | |
4e760a36 RD |
11006 | if (! PySequence_Check(obj6)) { |
11007 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11008 | SWIG_fail; | |
11009 | } | |
11010 | arg7 = new wxArrayString; | |
db914595 | 11011 | temp7 = True; |
4e760a36 RD |
11012 | int i, len=PySequence_Length(obj6); |
11013 | for (i=0; i<len; i++) { | |
11014 | PyObject* item = PySequence_GetItem(obj6, i); | |
11015 | #if wxUSE_UNICODE | |
11016 | PyObject* str = PyObject_Unicode(item); | |
11017 | #else | |
11018 | PyObject* str = PyObject_Str(item); | |
11019 | #endif | |
11020 | arg7->Add(Py2wxString(str)); | |
11021 | Py_DECREF(item); | |
11022 | Py_DECREF(str); | |
11023 | } | |
d14a1e28 RD |
11024 | } |
11025 | } | |
8edf1c75 RD |
11026 | if (obj7) { |
11027 | { | |
4e760a36 | 11028 | arg8 = (int) SWIG_PyObj_AsInt(obj7); |
8edf1c75 RD |
11029 | if (PyErr_Occurred()) SWIG_fail; |
11030 | } | |
11031 | } | |
11032 | if (obj8) { | |
11033 | { | |
4e760a36 | 11034 | arg9 = (long) SWIG_PyObj_AsLong(obj8); |
8edf1c75 RD |
11035 | if (PyErr_Occurred()) SWIG_fail; |
11036 | } | |
11037 | } | |
d14a1e28 | 11038 | if (obj9) { |
4e760a36 RD |
11039 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11040 | if (arg10 == NULL) { | |
d14a1e28 RD |
11041 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
11042 | } | |
11043 | } | |
11044 | if (obj10) { | |
11045 | { | |
4e760a36 RD |
11046 | arg11 = wxString_in_helper(obj10); |
11047 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 11048 | temp11 = True; |
d14a1e28 RD |
11049 | } |
11050 | } | |
11051 | { | |
11052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 11053 | 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 |
11054 | |
11055 | wxPyEndAllowThreads(__tstate); | |
11056 | if (PyErr_Occurred()) SWIG_fail; | |
11057 | } | |
4e760a36 | 11058 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11059 | { |
11060 | if (temp4) | |
11061 | delete arg4; | |
11062 | } | |
11063 | { | |
db914595 | 11064 | if (temp7) delete arg7; |
d14a1e28 RD |
11065 | } |
11066 | { | |
11067 | if (temp11) | |
4e760a36 | 11068 | delete arg11; |
d14a1e28 RD |
11069 | } |
11070 | return resultobj; | |
11071 | fail: | |
11072 | { | |
11073 | if (temp4) | |
11074 | delete arg4; | |
11075 | } | |
11076 | { | |
db914595 | 11077 | if (temp7) delete arg7; |
d14a1e28 RD |
11078 | } |
11079 | { | |
11080 | if (temp11) | |
4e760a36 | 11081 | delete arg11; |
d14a1e28 RD |
11082 | } |
11083 | return NULL; | |
11084 | } | |
11085 | ||
11086 | ||
11087 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11088 | PyObject *resultobj; | |
11089 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11090 | int arg2 ; | |
11091 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11092 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11093 | char *kwnames[] = { |
11094 | (char *) "self",(char *) "n", NULL | |
11095 | }; | |
11096 | ||
8edf1c75 | 11097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11099 | { |
11100 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11101 | if (PyErr_Occurred()) SWIG_fail; | |
11102 | } | |
d14a1e28 RD |
11103 | { |
11104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11105 | (arg1)->SetSelection(arg2); | |
11106 | ||
11107 | wxPyEndAllowThreads(__tstate); | |
11108 | if (PyErr_Occurred()) SWIG_fail; | |
11109 | } | |
11110 | Py_INCREF(Py_None); resultobj = Py_None; | |
11111 | return resultobj; | |
11112 | fail: | |
11113 | return NULL; | |
11114 | } | |
11115 | ||
11116 | ||
11117 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11118 | PyObject *resultobj; | |
11119 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11120 | int result; | |
11121 | PyObject * obj0 = 0 ; | |
11122 | char *kwnames[] = { | |
11123 | (char *) "self", NULL | |
11124 | }; | |
11125 | ||
11126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
11127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11128 | { | |
11129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11130 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
11131 | ||
11132 | wxPyEndAllowThreads(__tstate); | |
11133 | if (PyErr_Occurred()) SWIG_fail; | |
11134 | } | |
8edf1c75 | 11135 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11136 | return resultobj; |
11137 | fail: | |
11138 | return NULL; | |
11139 | } | |
11140 | ||
11141 | ||
11142 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11143 | PyObject *resultobj; | |
11144 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11145 | wxString result; | |
11146 | PyObject * obj0 = 0 ; | |
11147 | char *kwnames[] = { | |
11148 | (char *) "self", NULL | |
11149 | }; | |
11150 | ||
11151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
11152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11153 | { | |
11154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11155 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
11156 | ||
11157 | wxPyEndAllowThreads(__tstate); | |
11158 | if (PyErr_Occurred()) SWIG_fail; | |
11159 | } | |
11160 | { | |
11161 | #if wxUSE_UNICODE | |
11162 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11163 | #else | |
11164 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11165 | #endif | |
11166 | } | |
11167 | return resultobj; | |
11168 | fail: | |
11169 | return NULL; | |
11170 | } | |
11171 | ||
11172 | ||
11173 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11174 | PyObject *resultobj; | |
11175 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11176 | wxString *arg2 = 0 ; | |
11177 | bool result; | |
423f194a | 11178 | bool temp2 = False ; |
d14a1e28 RD |
11179 | PyObject * obj0 = 0 ; |
11180 | PyObject * obj1 = 0 ; | |
11181 | char *kwnames[] = { | |
11182 | (char *) "self",(char *) "s", NULL | |
11183 | }; | |
11184 | ||
11185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
11186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11187 | { | |
11188 | arg2 = wxString_in_helper(obj1); | |
11189 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11190 | temp2 = True; |
d14a1e28 RD |
11191 | } |
11192 | { | |
11193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11194 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
11195 | ||
11196 | wxPyEndAllowThreads(__tstate); | |
11197 | if (PyErr_Occurred()) SWIG_fail; | |
11198 | } | |
4e760a36 | 11199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11200 | { |
11201 | if (temp2) | |
11202 | delete arg2; | |
11203 | } | |
11204 | return resultobj; | |
11205 | fail: | |
11206 | { | |
11207 | if (temp2) | |
11208 | delete arg2; | |
11209 | } | |
11210 | return NULL; | |
11211 | } | |
11212 | ||
11213 | ||
11214 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11215 | PyObject *resultobj; | |
11216 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11217 | int result; | |
11218 | PyObject * obj0 = 0 ; | |
11219 | char *kwnames[] = { | |
11220 | (char *) "self", NULL | |
11221 | }; | |
11222 | ||
11223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
11224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11225 | { | |
11226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11227 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
11228 | ||
11229 | wxPyEndAllowThreads(__tstate); | |
11230 | if (PyErr_Occurred()) SWIG_fail; | |
11231 | } | |
8edf1c75 | 11232 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11233 | return resultobj; |
11234 | fail: | |
11235 | return NULL; | |
11236 | } | |
11237 | ||
11238 | ||
11239 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11240 | PyObject *resultobj; | |
11241 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11242 | wxString *arg2 = 0 ; | |
11243 | int result; | |
423f194a | 11244 | bool temp2 = False ; |
d14a1e28 RD |
11245 | PyObject * obj0 = 0 ; |
11246 | PyObject * obj1 = 0 ; | |
11247 | char *kwnames[] = { | |
11248 | (char *) "self",(char *) "s", NULL | |
11249 | }; | |
11250 | ||
11251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
11252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11253 | { | |
11254 | arg2 = wxString_in_helper(obj1); | |
11255 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11256 | temp2 = True; |
d14a1e28 RD |
11257 | } |
11258 | { | |
11259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11260 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
11261 | ||
11262 | wxPyEndAllowThreads(__tstate); | |
11263 | if (PyErr_Occurred()) SWIG_fail; | |
11264 | } | |
8edf1c75 | 11265 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11266 | { |
11267 | if (temp2) | |
11268 | delete arg2; | |
11269 | } | |
11270 | return resultobj; | |
11271 | fail: | |
11272 | { | |
11273 | if (temp2) | |
11274 | delete arg2; | |
11275 | } | |
11276 | return NULL; | |
11277 | } | |
11278 | ||
11279 | ||
11280 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11281 | PyObject *resultobj; | |
11282 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11283 | int arg2 ; | |
11284 | wxString result; | |
11285 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11286 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11287 | char *kwnames[] = { |
11288 | (char *) "self",(char *) "n", NULL | |
11289 | }; | |
11290 | ||
8edf1c75 | 11291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11293 | { |
11294 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11295 | if (PyErr_Occurred()) SWIG_fail; | |
11296 | } | |
d14a1e28 RD |
11297 | { |
11298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11299 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
11300 | ||
11301 | wxPyEndAllowThreads(__tstate); | |
11302 | if (PyErr_Occurred()) SWIG_fail; | |
11303 | } | |
11304 | { | |
11305 | #if wxUSE_UNICODE | |
11306 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11307 | #else | |
11308 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11309 | #endif | |
11310 | } | |
11311 | return resultobj; | |
11312 | fail: | |
11313 | return NULL; | |
11314 | } | |
11315 | ||
11316 | ||
11317 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11318 | PyObject *resultobj; | |
11319 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11320 | int arg2 ; | |
11321 | wxString *arg3 = 0 ; | |
423f194a | 11322 | bool temp3 = False ; |
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 *) "label", NULL | |
11328 | }; | |
11329 | ||
8edf1c75 | 11330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",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 RD |
11336 | { |
11337 | arg3 = wxString_in_helper(obj2); | |
11338 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11339 | temp3 = True; |
d14a1e28 RD |
11340 | } |
11341 | { | |
11342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11343 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
11344 | ||
11345 | wxPyEndAllowThreads(__tstate); | |
11346 | if (PyErr_Occurred()) SWIG_fail; | |
11347 | } | |
11348 | Py_INCREF(Py_None); resultobj = Py_None; | |
11349 | { | |
11350 | if (temp3) | |
11351 | delete arg3; | |
11352 | } | |
11353 | return resultobj; | |
11354 | fail: | |
11355 | { | |
11356 | if (temp3) | |
11357 | delete arg3; | |
11358 | } | |
11359 | return NULL; | |
11360 | } | |
11361 | ||
11362 | ||
11363 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11364 | PyObject *resultobj; | |
11365 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11366 | int arg2 ; | |
423f194a | 11367 | bool arg3 = (bool) True ; |
d14a1e28 | 11368 | PyObject * obj0 = 0 ; |
8edf1c75 | 11369 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11370 | PyObject * obj2 = 0 ; |
11371 | char *kwnames[] = { | |
11372 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
11373 | }; | |
11374 | ||
8edf1c75 | 11375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11377 | { |
11378 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11379 | if (PyErr_Occurred()) SWIG_fail; | |
11380 | } | |
d14a1e28 | 11381 | if (obj2) { |
83448d71 | 11382 | { |
8edf1c75 | 11383 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
11384 | if (PyErr_Occurred()) SWIG_fail; |
11385 | } | |
d14a1e28 RD |
11386 | } |
11387 | { | |
11388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11389 | (arg1)->Enable(arg2,arg3); | |
11390 | ||
11391 | wxPyEndAllowThreads(__tstate); | |
11392 | if (PyErr_Occurred()) SWIG_fail; | |
11393 | } | |
11394 | Py_INCREF(Py_None); resultobj = Py_None; | |
11395 | return resultobj; | |
11396 | fail: | |
11397 | return NULL; | |
11398 | } | |
11399 | ||
11400 | ||
11401 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11402 | PyObject *resultobj; | |
11403 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11404 | int arg2 ; | |
423f194a | 11405 | bool arg3 = (bool) True ; |
d14a1e28 | 11406 | PyObject * obj0 = 0 ; |
8edf1c75 | 11407 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11408 | PyObject * obj2 = 0 ; |
11409 | char *kwnames[] = { | |
11410 | (char *) "self",(char *) "n",(char *) "show", NULL | |
11411 | }; | |
11412 | ||
8edf1c75 | 11413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11415 | { |
11416 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11417 | if (PyErr_Occurred()) SWIG_fail; | |
11418 | } | |
d14a1e28 | 11419 | if (obj2) { |
83448d71 | 11420 | { |
8edf1c75 | 11421 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
11422 | if (PyErr_Occurred()) SWIG_fail; |
11423 | } | |
d14a1e28 RD |
11424 | } |
11425 | { | |
11426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11427 | (arg1)->Show(arg2,arg3); | |
11428 | ||
11429 | wxPyEndAllowThreads(__tstate); | |
11430 | if (PyErr_Occurred()) SWIG_fail; | |
11431 | } | |
11432 | Py_INCREF(Py_None); resultobj = Py_None; | |
11433 | return resultobj; | |
11434 | fail: | |
11435 | return NULL; | |
11436 | } | |
11437 | ||
11438 | ||
11439 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11440 | PyObject *resultobj; | |
11441 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11442 | int result; | |
11443 | PyObject * obj0 = 0 ; | |
11444 | char *kwnames[] = { | |
11445 | (char *) "self", NULL | |
11446 | }; | |
11447 | ||
11448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
11449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11450 | { | |
11451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11452 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
11453 | ||
11454 | wxPyEndAllowThreads(__tstate); | |
11455 | if (PyErr_Occurred()) SWIG_fail; | |
11456 | } | |
8edf1c75 | 11457 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11458 | return resultobj; |
11459 | fail: | |
11460 | return NULL; | |
11461 | } | |
11462 | ||
11463 | ||
11464 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11465 | PyObject *resultobj; | |
11466 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11467 | int result; | |
11468 | PyObject * obj0 = 0 ; | |
11469 | char *kwnames[] = { | |
11470 | (char *) "self", NULL | |
11471 | }; | |
11472 | ||
11473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
11474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11475 | { | |
11476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11477 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
11478 | ||
11479 | wxPyEndAllowThreads(__tstate); | |
11480 | if (PyErr_Occurred()) SWIG_fail; | |
11481 | } | |
8edf1c75 | 11482 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11483 | return resultobj; |
11484 | fail: | |
11485 | return NULL; | |
11486 | } | |
11487 | ||
11488 | ||
11489 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11490 | PyObject *resultobj; | |
11491 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11492 | int arg2 ; | |
11493 | int arg3 ; | |
11494 | long arg4 ; | |
11495 | int result; | |
11496 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11497 | PyObject * obj1 = 0 ; |
11498 | PyObject * obj2 = 0 ; | |
11499 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11500 | char *kwnames[] = { |
11501 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
11502 | }; | |
11503 | ||
8edf1c75 | 11504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 11505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11506 | { |
11507 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11508 | if (PyErr_Occurred()) SWIG_fail; | |
11509 | } | |
11510 | { | |
11511 | arg3 = (wxDirection) SWIG_PyObj_AsInt(obj2); | |
11512 | if (PyErr_Occurred()) SWIG_fail; | |
11513 | } | |
11514 | { | |
11515 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
11516 | if (PyErr_Occurred()) SWIG_fail; | |
11517 | } | |
d14a1e28 RD |
11518 | { |
11519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11520 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
11521 | ||
11522 | wxPyEndAllowThreads(__tstate); | |
11523 | if (PyErr_Occurred()) SWIG_fail; | |
11524 | } | |
8edf1c75 | 11525 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11526 | return resultobj; |
11527 | fail: | |
11528 | return NULL; | |
11529 | } | |
11530 | ||
11531 | ||
11532 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
11533 | PyObject *obj; | |
11534 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11535 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
11536 | Py_INCREF(obj); | |
11537 | return Py_BuildValue((char *)""); | |
11538 | } | |
11539 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11540 | PyObject *resultobj; | |
11541 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11542 | int arg2 ; |
d14a1e28 RD |
11543 | wxString *arg3 = 0 ; |
11544 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11545 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11546 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11547 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11548 | long arg6 = (long) 0 ; | |
11549 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11550 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11551 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
11552 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11553 | wxRadioButton *result; | |
423f194a | 11554 | bool temp3 = False ; |
d14a1e28 RD |
11555 | wxPoint temp4 ; |
11556 | wxSize temp5 ; | |
423f194a | 11557 | bool temp8 = False ; |
d14a1e28 | 11558 | PyObject * obj0 = 0 ; |
8edf1c75 | 11559 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11560 | PyObject * obj2 = 0 ; |
11561 | PyObject * obj3 = 0 ; | |
11562 | PyObject * obj4 = 0 ; | |
8edf1c75 | 11563 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11564 | PyObject * obj6 = 0 ; |
11565 | PyObject * obj7 = 0 ; | |
11566 | char *kwnames[] = { | |
11567 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11568 | }; | |
11569 | ||
8edf1c75 | 11570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 11571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11572 | { |
11573 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11574 | if (PyErr_Occurred()) SWIG_fail; | |
11575 | } | |
d14a1e28 RD |
11576 | { |
11577 | arg3 = wxString_in_helper(obj2); | |
11578 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11579 | temp3 = True; |
d14a1e28 RD |
11580 | } |
11581 | if (obj3) { | |
11582 | { | |
11583 | arg4 = &temp4; | |
11584 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11585 | } | |
11586 | } | |
11587 | if (obj4) { | |
11588 | { | |
11589 | arg5 = &temp5; | |
11590 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11591 | } | |
11592 | } | |
8edf1c75 RD |
11593 | if (obj5) { |
11594 | { | |
11595 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
11596 | if (PyErr_Occurred()) SWIG_fail; | |
11597 | } | |
11598 | } | |
d14a1e28 RD |
11599 | if (obj6) { |
11600 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11601 | if (arg7 == NULL) { | |
11602 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11603 | } | |
11604 | } | |
11605 | if (obj7) { | |
11606 | { | |
11607 | arg8 = wxString_in_helper(obj7); | |
11608 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 11609 | temp8 = True; |
d14a1e28 RD |
11610 | } |
11611 | } | |
11612 | { | |
11613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11614 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11615 | ||
11616 | wxPyEndAllowThreads(__tstate); | |
11617 | if (PyErr_Occurred()) SWIG_fail; | |
11618 | } | |
11619 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11620 | { | |
11621 | if (temp3) | |
11622 | delete arg3; | |
11623 | } | |
11624 | { | |
11625 | if (temp8) | |
11626 | delete arg8; | |
11627 | } | |
11628 | return resultobj; | |
11629 | fail: | |
11630 | { | |
11631 | if (temp3) | |
11632 | delete arg3; | |
11633 | } | |
11634 | { | |
11635 | if (temp8) | |
11636 | delete arg8; | |
11637 | } | |
11638 | return NULL; | |
11639 | } | |
11640 | ||
11641 | ||
11642 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11643 | PyObject *resultobj; | |
11644 | wxRadioButton *result; | |
11645 | char *kwnames[] = { | |
11646 | NULL | |
11647 | }; | |
11648 | ||
11649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
11650 | { | |
11651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11652 | result = (wxRadioButton *)new wxRadioButton(); | |
11653 | ||
11654 | wxPyEndAllowThreads(__tstate); | |
11655 | if (PyErr_Occurred()) SWIG_fail; | |
11656 | } | |
11657 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11658 | return resultobj; | |
11659 | fail: | |
11660 | return NULL; | |
11661 | } | |
11662 | ||
11663 | ||
11664 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11665 | PyObject *resultobj; | |
11666 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11667 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11668 | int arg3 ; |
d14a1e28 RD |
11669 | wxString *arg4 = 0 ; |
11670 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11671 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11672 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11673 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11674 | long arg7 = (long) 0 ; | |
11675 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11676 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11677 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
11678 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11679 | bool result; | |
423f194a | 11680 | bool temp4 = False ; |
d14a1e28 RD |
11681 | wxPoint temp5 ; |
11682 | wxSize temp6 ; | |
423f194a | 11683 | bool temp9 = False ; |
d14a1e28 RD |
11684 | PyObject * obj0 = 0 ; |
11685 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11686 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11687 | PyObject * obj3 = 0 ; |
11688 | PyObject * obj4 = 0 ; | |
11689 | PyObject * obj5 = 0 ; | |
8edf1c75 | 11690 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
11691 | PyObject * obj7 = 0 ; |
11692 | PyObject * obj8 = 0 ; | |
11693 | char *kwnames[] = { | |
11694 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11695 | }; | |
11696 | ||
8edf1c75 | 11697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
11698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11699 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
11700 | { |
11701 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11702 | if (PyErr_Occurred()) SWIG_fail; | |
11703 | } | |
d14a1e28 RD |
11704 | { |
11705 | arg4 = wxString_in_helper(obj3); | |
11706 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11707 | temp4 = True; |
d14a1e28 RD |
11708 | } |
11709 | if (obj4) { | |
11710 | { | |
11711 | arg5 = &temp5; | |
11712 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11713 | } | |
11714 | } | |
11715 | if (obj5) { | |
11716 | { | |
11717 | arg6 = &temp6; | |
11718 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11719 | } | |
11720 | } | |
8edf1c75 RD |
11721 | if (obj6) { |
11722 | { | |
11723 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
11724 | if (PyErr_Occurred()) SWIG_fail; | |
11725 | } | |
11726 | } | |
d14a1e28 RD |
11727 | if (obj7) { |
11728 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11729 | if (arg8 == NULL) { | |
11730 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11731 | } | |
11732 | } | |
11733 | if (obj8) { | |
11734 | { | |
11735 | arg9 = wxString_in_helper(obj8); | |
11736 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 11737 | temp9 = True; |
d14a1e28 RD |
11738 | } |
11739 | } | |
11740 | { | |
11741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11742 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11743 | ||
11744 | wxPyEndAllowThreads(__tstate); | |
11745 | if (PyErr_Occurred()) SWIG_fail; | |
11746 | } | |
4e760a36 | 11747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11748 | { |
11749 | if (temp4) | |
11750 | delete arg4; | |
11751 | } | |
11752 | { | |
11753 | if (temp9) | |
11754 | delete arg9; | |
11755 | } | |
11756 | return resultobj; | |
11757 | fail: | |
11758 | { | |
11759 | if (temp4) | |
11760 | delete arg4; | |
11761 | } | |
11762 | { | |
11763 | if (temp9) | |
11764 | delete arg9; | |
11765 | } | |
11766 | return NULL; | |
11767 | } | |
11768 | ||
11769 | ||
11770 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11771 | PyObject *resultobj; | |
11772 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11773 | bool result; | |
11774 | PyObject * obj0 = 0 ; | |
11775 | char *kwnames[] = { | |
11776 | (char *) "self", NULL | |
11777 | }; | |
11778 | ||
11779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
11780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11781 | { | |
11782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11783 | result = (bool)(arg1)->GetValue(); | |
11784 | ||
11785 | wxPyEndAllowThreads(__tstate); | |
11786 | if (PyErr_Occurred()) SWIG_fail; | |
11787 | } | |
4e760a36 | 11788 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11789 | return resultobj; |
11790 | fail: | |
11791 | return NULL; | |
11792 | } | |
11793 | ||
11794 | ||
11795 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11796 | PyObject *resultobj; | |
11797 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11798 | bool arg2 ; | |
11799 | PyObject * obj0 = 0 ; | |
11800 | PyObject * obj1 = 0 ; | |
11801 | char *kwnames[] = { | |
11802 | (char *) "self",(char *) "value", NULL | |
11803 | }; | |
11804 | ||
11805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 11807 | { |
8edf1c75 | 11808 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
11809 | if (PyErr_Occurred()) SWIG_fail; |
11810 | } | |
d14a1e28 RD |
11811 | { |
11812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11813 | (arg1)->SetValue(arg2); | |
11814 | ||
11815 | wxPyEndAllowThreads(__tstate); | |
11816 | if (PyErr_Occurred()) SWIG_fail; | |
11817 | } | |
11818 | Py_INCREF(Py_None); resultobj = Py_None; | |
11819 | return resultobj; | |
11820 | fail: | |
11821 | return NULL; | |
11822 | } | |
11823 | ||
11824 | ||
11825 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
11826 | PyObject *obj; | |
11827 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11828 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
11829 | Py_INCREF(obj); | |
11830 | return Py_BuildValue((char *)""); | |
11831 | } | |
8edf1c75 | 11832 | static int _wrap_SliderNameStr_set(PyObject *) { |
d03fd34d RD |
11833 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
11834 | return 1; | |
11835 | } | |
11836 | ||
11837 | ||
11838 | static PyObject *_wrap_SliderNameStr_get() { | |
11839 | PyObject *pyobj; | |
11840 | ||
11841 | { | |
11842 | #if wxUSE_UNICODE | |
11843 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11844 | #else | |
11845 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11846 | #endif | |
11847 | } | |
11848 | return pyobj; | |
11849 | } | |
11850 | ||
11851 | ||
d14a1e28 RD |
11852 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
11853 | PyObject *resultobj; | |
11854 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11855 | int arg2 ; |
d14a1e28 RD |
11856 | int arg3 ; |
11857 | int arg4 ; | |
11858 | int arg5 ; | |
11859 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
11860 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
11861 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
11862 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
11863 | long arg8 = (long) wxSL_HORIZONTAL ; | |
11864 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11865 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11866 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
11867 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11868 | wxSlider *result; | |
11869 | wxPoint temp6 ; | |
11870 | wxSize temp7 ; | |
423f194a | 11871 | bool temp10 = False ; |
d14a1e28 | 11872 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11873 | PyObject * obj1 = 0 ; |
11874 | PyObject * obj2 = 0 ; | |
11875 | PyObject * obj3 = 0 ; | |
11876 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11877 | PyObject * obj5 = 0 ; |
11878 | PyObject * obj6 = 0 ; | |
8edf1c75 | 11879 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
11880 | PyObject * obj8 = 0 ; |
11881 | PyObject * obj9 = 0 ; | |
11882 | char *kwnames[] = { | |
8edf1c75 | 11883 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11884 | }; |
11885 | ||
8edf1c75 | 11886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 11887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11888 | { |
11889 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11890 | if (PyErr_Occurred()) SWIG_fail; | |
11891 | } | |
11892 | { | |
11893 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11894 | if (PyErr_Occurred()) SWIG_fail; | |
11895 | } | |
11896 | { | |
11897 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11898 | if (PyErr_Occurred()) SWIG_fail; | |
11899 | } | |
11900 | { | |
11901 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11902 | if (PyErr_Occurred()) SWIG_fail; | |
11903 | } | |
d14a1e28 RD |
11904 | if (obj5) { |
11905 | { | |
11906 | arg6 = &temp6; | |
11907 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
11908 | } | |
11909 | } | |
11910 | if (obj6) { | |
11911 | { | |
11912 | arg7 = &temp7; | |
11913 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
11914 | } | |
11915 | } | |
8edf1c75 RD |
11916 | if (obj7) { |
11917 | { | |
11918 | arg8 = (long) SWIG_PyObj_AsLong(obj7); | |
11919 | if (PyErr_Occurred()) SWIG_fail; | |
11920 | } | |
11921 | } | |
d14a1e28 RD |
11922 | if (obj8) { |
11923 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11924 | if (arg9 == NULL) { | |
11925 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11926 | } | |
11927 | } | |
11928 | if (obj9) { | |
11929 | { | |
11930 | arg10 = wxString_in_helper(obj9); | |
11931 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 11932 | temp10 = True; |
d14a1e28 RD |
11933 | } |
11934 | } | |
11935 | { | |
11936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11937 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
11938 | ||
11939 | wxPyEndAllowThreads(__tstate); | |
11940 | if (PyErr_Occurred()) SWIG_fail; | |
11941 | } | |
11942 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
11943 | { | |
11944 | if (temp10) | |
11945 | delete arg10; | |
11946 | } | |
11947 | return resultobj; | |
11948 | fail: | |
11949 | { | |
11950 | if (temp10) | |
11951 | delete arg10; | |
11952 | } | |
11953 | return NULL; | |
11954 | } | |
11955 | ||
11956 | ||
11957 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11958 | PyObject *resultobj; | |
11959 | wxSlider *result; | |
11960 | char *kwnames[] = { | |
11961 | NULL | |
11962 | }; | |
11963 | ||
11964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
11965 | { | |
11966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11967 | result = (wxSlider *)new wxSlider(); | |
11968 | ||
11969 | wxPyEndAllowThreads(__tstate); | |
11970 | if (PyErr_Occurred()) SWIG_fail; | |
11971 | } | |
11972 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
11973 | return resultobj; | |
11974 | fail: | |
11975 | return NULL; | |
11976 | } | |
11977 | ||
11978 | ||
11979 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11980 | PyObject *resultobj; | |
11981 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11982 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11983 | int arg3 ; |
d14a1e28 RD |
11984 | int arg4 ; |
11985 | int arg5 ; | |
11986 | int arg6 ; | |
11987 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11988 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11989 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
11990 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
11991 | long arg9 = (long) wxSL_HORIZONTAL ; | |
11992 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11993 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11994 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
11995 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11996 | bool result; | |
11997 | wxPoint temp7 ; | |
11998 | wxSize temp8 ; | |
423f194a | 11999 | bool temp11 = False ; |
d14a1e28 RD |
12000 | PyObject * obj0 = 0 ; |
12001 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12002 | PyObject * obj2 = 0 ; |
12003 | PyObject * obj3 = 0 ; | |
12004 | PyObject * obj4 = 0 ; | |
12005 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12006 | PyObject * obj6 = 0 ; |
12007 | PyObject * obj7 = 0 ; | |
8edf1c75 | 12008 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
12009 | PyObject * obj9 = 0 ; |
12010 | PyObject * obj10 = 0 ; | |
12011 | char *kwnames[] = { | |
8edf1c75 | 12012 | (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 |
12013 | }; |
12014 | ||
8edf1c75 | 12015 | 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 |
12016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12017 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
12018 | { |
12019 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12020 | if (PyErr_Occurred()) SWIG_fail; | |
12021 | } | |
12022 | { | |
12023 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12024 | if (PyErr_Occurred()) SWIG_fail; | |
12025 | } | |
12026 | { | |
12027 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12028 | if (PyErr_Occurred()) SWIG_fail; | |
12029 | } | |
12030 | { | |
12031 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
12032 | if (PyErr_Occurred()) SWIG_fail; | |
12033 | } | |
d14a1e28 RD |
12034 | if (obj6) { |
12035 | { | |
12036 | arg7 = &temp7; | |
12037 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12038 | } | |
12039 | } | |
12040 | if (obj7) { | |
12041 | { | |
12042 | arg8 = &temp8; | |
12043 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
12044 | } | |
12045 | } | |
8edf1c75 RD |
12046 | if (obj8) { |
12047 | { | |
12048 | arg9 = (long) SWIG_PyObj_AsLong(obj8); | |
12049 | if (PyErr_Occurred()) SWIG_fail; | |
12050 | } | |
12051 | } | |
d14a1e28 RD |
12052 | if (obj9) { |
12053 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12054 | if (arg10 == NULL) { | |
12055 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12056 | } | |
12057 | } | |
12058 | if (obj10) { | |
12059 | { | |
12060 | arg11 = wxString_in_helper(obj10); | |
12061 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 12062 | temp11 = True; |
d14a1e28 RD |
12063 | } |
12064 | } | |
12065 | { | |
12066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12067 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
12068 | ||
12069 | wxPyEndAllowThreads(__tstate); | |
12070 | if (PyErr_Occurred()) SWIG_fail; | |
12071 | } | |
4e760a36 | 12072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12073 | { |
12074 | if (temp11) | |
12075 | delete arg11; | |
12076 | } | |
12077 | return resultobj; | |
12078 | fail: | |
12079 | { | |
12080 | if (temp11) | |
12081 | delete arg11; | |
12082 | } | |
12083 | return NULL; | |
12084 | } | |
12085 | ||
12086 | ||
12087 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12088 | PyObject *resultobj; | |
12089 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12090 | int result; | |
12091 | PyObject * obj0 = 0 ; | |
12092 | char *kwnames[] = { | |
12093 | (char *) "self", NULL | |
12094 | }; | |
12095 | ||
12096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
12097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12098 | { | |
12099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12100 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
12101 | ||
12102 | wxPyEndAllowThreads(__tstate); | |
12103 | if (PyErr_Occurred()) SWIG_fail; | |
12104 | } | |
8edf1c75 | 12105 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12106 | return resultobj; |
12107 | fail: | |
12108 | return NULL; | |
12109 | } | |
12110 | ||
12111 | ||
12112 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12113 | PyObject *resultobj; | |
12114 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12115 | int arg2 ; | |
12116 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12117 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12118 | char *kwnames[] = { |
12119 | (char *) "self",(char *) "value", NULL | |
12120 | }; | |
12121 | ||
8edf1c75 | 12122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12124 | { |
12125 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12126 | if (PyErr_Occurred()) SWIG_fail; | |
12127 | } | |
d14a1e28 RD |
12128 | { |
12129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12130 | (arg1)->SetValue(arg2); | |
12131 | ||
12132 | wxPyEndAllowThreads(__tstate); | |
12133 | if (PyErr_Occurred()) SWIG_fail; | |
12134 | } | |
12135 | Py_INCREF(Py_None); resultobj = Py_None; | |
12136 | return resultobj; | |
12137 | fail: | |
12138 | return NULL; | |
12139 | } | |
12140 | ||
12141 | ||
12142 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12143 | PyObject *resultobj; | |
12144 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12145 | int arg2 ; | |
12146 | int arg3 ; | |
12147 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12148 | PyObject * obj1 = 0 ; |
12149 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12150 | char *kwnames[] = { |
12151 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
12152 | }; | |
12153 | ||
8edf1c75 | 12154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12156 | { |
12157 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12158 | if (PyErr_Occurred()) SWIG_fail; | |
12159 | } | |
12160 | { | |
12161 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12162 | if (PyErr_Occurred()) SWIG_fail; | |
12163 | } | |
d14a1e28 RD |
12164 | { |
12165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12166 | (arg1)->SetRange(arg2,arg3); | |
12167 | ||
12168 | wxPyEndAllowThreads(__tstate); | |
12169 | if (PyErr_Occurred()) SWIG_fail; | |
12170 | } | |
12171 | Py_INCREF(Py_None); resultobj = Py_None; | |
12172 | return resultobj; | |
12173 | fail: | |
12174 | return NULL; | |
12175 | } | |
12176 | ||
12177 | ||
12178 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12179 | PyObject *resultobj; | |
12180 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12181 | int result; | |
12182 | PyObject * obj0 = 0 ; | |
12183 | char *kwnames[] = { | |
12184 | (char *) "self", NULL | |
12185 | }; | |
12186 | ||
12187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
12188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12189 | { | |
12190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12191 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
12192 | ||
12193 | wxPyEndAllowThreads(__tstate); | |
12194 | if (PyErr_Occurred()) SWIG_fail; | |
12195 | } | |
8edf1c75 | 12196 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12197 | return resultobj; |
12198 | fail: | |
12199 | return NULL; | |
12200 | } | |
12201 | ||
12202 | ||
12203 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12204 | PyObject *resultobj; | |
12205 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12206 | int result; | |
12207 | PyObject * obj0 = 0 ; | |
12208 | char *kwnames[] = { | |
12209 | (char *) "self", NULL | |
12210 | }; | |
12211 | ||
12212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
12213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12214 | { | |
12215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12216 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
12217 | ||
12218 | wxPyEndAllowThreads(__tstate); | |
12219 | if (PyErr_Occurred()) SWIG_fail; | |
12220 | } | |
8edf1c75 | 12221 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12222 | return resultobj; |
12223 | fail: | |
12224 | return NULL; | |
12225 | } | |
12226 | ||
12227 | ||
12228 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12229 | PyObject *resultobj; | |
12230 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12231 | int arg2 ; | |
12232 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12233 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12234 | char *kwnames[] = { |
12235 | (char *) "self",(char *) "minValue", NULL | |
12236 | }; | |
12237 | ||
8edf1c75 | 12238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12240 | { |
12241 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12242 | if (PyErr_Occurred()) SWIG_fail; | |
12243 | } | |
d14a1e28 RD |
12244 | { |
12245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12246 | (arg1)->SetMin(arg2); | |
12247 | ||
12248 | wxPyEndAllowThreads(__tstate); | |
12249 | if (PyErr_Occurred()) SWIG_fail; | |
12250 | } | |
12251 | Py_INCREF(Py_None); resultobj = Py_None; | |
12252 | return resultobj; | |
12253 | fail: | |
12254 | return NULL; | |
12255 | } | |
12256 | ||
12257 | ||
12258 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12259 | PyObject *resultobj; | |
12260 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12261 | int arg2 ; | |
12262 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12263 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12264 | char *kwnames[] = { |
12265 | (char *) "self",(char *) "maxValue", NULL | |
12266 | }; | |
12267 | ||
8edf1c75 | 12268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12270 | { |
12271 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12272 | if (PyErr_Occurred()) SWIG_fail; | |
12273 | } | |
d14a1e28 RD |
12274 | { |
12275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12276 | (arg1)->SetMax(arg2); | |
12277 | ||
12278 | wxPyEndAllowThreads(__tstate); | |
12279 | if (PyErr_Occurred()) SWIG_fail; | |
12280 | } | |
12281 | Py_INCREF(Py_None); resultobj = Py_None; | |
12282 | return resultobj; | |
12283 | fail: | |
12284 | return NULL; | |
12285 | } | |
12286 | ||
12287 | ||
12288 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12289 | PyObject *resultobj; | |
12290 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12291 | int arg2 ; | |
12292 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12293 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12294 | char *kwnames[] = { |
12295 | (char *) "self",(char *) "lineSize", NULL | |
12296 | }; | |
12297 | ||
8edf1c75 | 12298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12300 | { |
12301 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12302 | if (PyErr_Occurred()) SWIG_fail; | |
12303 | } | |
d14a1e28 RD |
12304 | { |
12305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12306 | (arg1)->SetLineSize(arg2); | |
12307 | ||
12308 | wxPyEndAllowThreads(__tstate); | |
12309 | if (PyErr_Occurred()) SWIG_fail; | |
12310 | } | |
12311 | Py_INCREF(Py_None); resultobj = Py_None; | |
12312 | return resultobj; | |
12313 | fail: | |
12314 | return NULL; | |
12315 | } | |
12316 | ||
12317 | ||
12318 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12319 | PyObject *resultobj; | |
12320 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12321 | int arg2 ; | |
12322 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12323 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12324 | char *kwnames[] = { |
12325 | (char *) "self",(char *) "pageSize", NULL | |
12326 | }; | |
12327 | ||
8edf1c75 | 12328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12330 | { |
12331 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12332 | if (PyErr_Occurred()) SWIG_fail; | |
12333 | } | |
d14a1e28 RD |
12334 | { |
12335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12336 | (arg1)->SetPageSize(arg2); | |
12337 | ||
12338 | wxPyEndAllowThreads(__tstate); | |
12339 | if (PyErr_Occurred()) SWIG_fail; | |
12340 | } | |
12341 | Py_INCREF(Py_None); resultobj = Py_None; | |
12342 | return resultobj; | |
12343 | fail: | |
12344 | return NULL; | |
12345 | } | |
12346 | ||
12347 | ||
12348 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12349 | PyObject *resultobj; | |
12350 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12351 | int result; | |
12352 | PyObject * obj0 = 0 ; | |
12353 | char *kwnames[] = { | |
12354 | (char *) "self", NULL | |
12355 | }; | |
12356 | ||
12357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
12358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12359 | { | |
12360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12361 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
12362 | ||
12363 | wxPyEndAllowThreads(__tstate); | |
12364 | if (PyErr_Occurred()) SWIG_fail; | |
12365 | } | |
8edf1c75 | 12366 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12367 | return resultobj; |
12368 | fail: | |
12369 | return NULL; | |
12370 | } | |
12371 | ||
12372 | ||
12373 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12374 | PyObject *resultobj; | |
12375 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12376 | int result; | |
12377 | PyObject * obj0 = 0 ; | |
12378 | char *kwnames[] = { | |
12379 | (char *) "self", NULL | |
12380 | }; | |
12381 | ||
12382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
12383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12384 | { | |
12385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12386 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
12387 | ||
12388 | wxPyEndAllowThreads(__tstate); | |
12389 | if (PyErr_Occurred()) SWIG_fail; | |
12390 | } | |
8edf1c75 | 12391 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12392 | return resultobj; |
12393 | fail: | |
12394 | return NULL; | |
12395 | } | |
12396 | ||
12397 | ||
12398 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12399 | PyObject *resultobj; | |
12400 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12401 | int arg2 ; | |
12402 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12403 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12404 | char *kwnames[] = { |
12405 | (char *) "self",(char *) "lenPixels", NULL | |
12406 | }; | |
12407 | ||
8edf1c75 | 12408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12410 | { |
12411 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12412 | if (PyErr_Occurred()) SWIG_fail; | |
12413 | } | |
d14a1e28 RD |
12414 | { |
12415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12416 | (arg1)->SetThumbLength(arg2); | |
12417 | ||
12418 | wxPyEndAllowThreads(__tstate); | |
12419 | if (PyErr_Occurred()) SWIG_fail; | |
12420 | } | |
12421 | Py_INCREF(Py_None); resultobj = Py_None; | |
12422 | return resultobj; | |
12423 | fail: | |
12424 | return NULL; | |
12425 | } | |
12426 | ||
12427 | ||
12428 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12429 | PyObject *resultobj; | |
12430 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12431 | int result; | |
12432 | PyObject * obj0 = 0 ; | |
12433 | char *kwnames[] = { | |
12434 | (char *) "self", NULL | |
12435 | }; | |
12436 | ||
12437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
12438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12439 | { | |
12440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12441 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
12442 | ||
12443 | wxPyEndAllowThreads(__tstate); | |
12444 | if (PyErr_Occurred()) SWIG_fail; | |
12445 | } | |
8edf1c75 | 12446 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12447 | return resultobj; |
12448 | fail: | |
12449 | return NULL; | |
12450 | } | |
12451 | ||
12452 | ||
12453 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12454 | PyObject *resultobj; | |
12455 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12456 | int arg2 ; | |
8edf1c75 | 12457 | int arg3 = (int) 1 ; |
d14a1e28 | 12458 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12459 | PyObject * obj1 = 0 ; |
12460 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12461 | char *kwnames[] = { |
12462 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
12463 | }; | |
12464 | ||
8edf1c75 | 12465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12467 | { |
12468 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12469 | if (PyErr_Occurred()) SWIG_fail; | |
12470 | } | |
12471 | if (obj2) { | |
12472 | { | |
12473 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12474 | if (PyErr_Occurred()) SWIG_fail; | |
12475 | } | |
12476 | } | |
d14a1e28 RD |
12477 | { |
12478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12479 | (arg1)->SetTickFreq(arg2,arg3); | |
12480 | ||
12481 | wxPyEndAllowThreads(__tstate); | |
12482 | if (PyErr_Occurred()) SWIG_fail; | |
12483 | } | |
12484 | Py_INCREF(Py_None); resultobj = Py_None; | |
12485 | return resultobj; | |
12486 | fail: | |
12487 | return NULL; | |
12488 | } | |
12489 | ||
12490 | ||
12491 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12492 | PyObject *resultobj; | |
12493 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12494 | int result; | |
12495 | PyObject * obj0 = 0 ; | |
12496 | char *kwnames[] = { | |
12497 | (char *) "self", NULL | |
12498 | }; | |
12499 | ||
12500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
12501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12502 | { | |
12503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12504 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
12505 | ||
12506 | wxPyEndAllowThreads(__tstate); | |
12507 | if (PyErr_Occurred()) SWIG_fail; | |
12508 | } | |
8edf1c75 | 12509 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12510 | return resultobj; |
12511 | fail: | |
12512 | return NULL; | |
12513 | } | |
12514 | ||
12515 | ||
12516 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12517 | PyObject *resultobj; | |
12518 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12519 | PyObject * obj0 = 0 ; | |
12520 | char *kwnames[] = { | |
12521 | (char *) "self", NULL | |
12522 | }; | |
12523 | ||
12524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
12525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12526 | { | |
12527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12528 | (arg1)->ClearTicks(); | |
12529 | ||
12530 | wxPyEndAllowThreads(__tstate); | |
12531 | if (PyErr_Occurred()) SWIG_fail; | |
12532 | } | |
12533 | Py_INCREF(Py_None); resultobj = Py_None; | |
12534 | return resultobj; | |
12535 | fail: | |
12536 | return NULL; | |
12537 | } | |
12538 | ||
12539 | ||
12540 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12541 | PyObject *resultobj; | |
12542 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12543 | int arg2 ; | |
12544 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12545 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12546 | char *kwnames[] = { |
12547 | (char *) "self",(char *) "tickPos", NULL | |
12548 | }; | |
12549 | ||
8edf1c75 | 12550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12552 | { |
12553 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12554 | if (PyErr_Occurred()) SWIG_fail; | |
12555 | } | |
d14a1e28 RD |
12556 | { |
12557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12558 | (arg1)->SetTick(arg2); | |
12559 | ||
12560 | wxPyEndAllowThreads(__tstate); | |
12561 | if (PyErr_Occurred()) SWIG_fail; | |
12562 | } | |
12563 | Py_INCREF(Py_None); resultobj = Py_None; | |
12564 | return resultobj; | |
12565 | fail: | |
12566 | return NULL; | |
12567 | } | |
12568 | ||
12569 | ||
12570 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12571 | PyObject *resultobj; | |
12572 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12573 | PyObject * obj0 = 0 ; | |
12574 | char *kwnames[] = { | |
12575 | (char *) "self", NULL | |
12576 | }; | |
12577 | ||
12578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
12579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12580 | { | |
12581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12582 | (arg1)->ClearSel(); | |
12583 | ||
12584 | wxPyEndAllowThreads(__tstate); | |
12585 | if (PyErr_Occurred()) SWIG_fail; | |
12586 | } | |
12587 | Py_INCREF(Py_None); resultobj = Py_None; | |
12588 | return resultobj; | |
12589 | fail: | |
12590 | return NULL; | |
12591 | } | |
12592 | ||
12593 | ||
12594 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12595 | PyObject *resultobj; | |
12596 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12597 | int result; | |
12598 | PyObject * obj0 = 0 ; | |
12599 | char *kwnames[] = { | |
12600 | (char *) "self", NULL | |
12601 | }; | |
12602 | ||
12603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
12604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12605 | { | |
12606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12607 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
12608 | ||
12609 | wxPyEndAllowThreads(__tstate); | |
12610 | if (PyErr_Occurred()) SWIG_fail; | |
12611 | } | |
8edf1c75 | 12612 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12613 | return resultobj; |
12614 | fail: | |
12615 | return NULL; | |
12616 | } | |
12617 | ||
12618 | ||
12619 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12620 | PyObject *resultobj; | |
12621 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12622 | int result; | |
12623 | PyObject * obj0 = 0 ; | |
12624 | char *kwnames[] = { | |
12625 | (char *) "self", NULL | |
12626 | }; | |
12627 | ||
12628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
12629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12630 | { | |
12631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12632 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
12633 | ||
12634 | wxPyEndAllowThreads(__tstate); | |
12635 | if (PyErr_Occurred()) SWIG_fail; | |
12636 | } | |
8edf1c75 | 12637 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12638 | return resultobj; |
12639 | fail: | |
12640 | return NULL; | |
12641 | } | |
12642 | ||
12643 | ||
12644 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12645 | PyObject *resultobj; | |
12646 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12647 | int arg2 ; | |
12648 | int arg3 ; | |
12649 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12650 | PyObject * obj1 = 0 ; |
12651 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12652 | char *kwnames[] = { |
12653 | (char *) "self",(char *) "min",(char *) "max", NULL | |
12654 | }; | |
12655 | ||
8edf1c75 | 12656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12658 | { |
12659 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12660 | if (PyErr_Occurred()) SWIG_fail; | |
12661 | } | |
12662 | { | |
12663 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12664 | if (PyErr_Occurred()) SWIG_fail; | |
12665 | } | |
d14a1e28 RD |
12666 | { |
12667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12668 | (arg1)->SetSelection(arg2,arg3); | |
12669 | ||
12670 | wxPyEndAllowThreads(__tstate); | |
12671 | if (PyErr_Occurred()) SWIG_fail; | |
12672 | } | |
12673 | Py_INCREF(Py_None); resultobj = Py_None; | |
12674 | return resultobj; | |
12675 | fail: | |
12676 | return NULL; | |
12677 | } | |
12678 | ||
12679 | ||
12680 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
12681 | PyObject *obj; | |
12682 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12683 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
12684 | Py_INCREF(obj); | |
12685 | return Py_BuildValue((char *)""); | |
12686 | } | |
8edf1c75 | 12687 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
d03fd34d RD |
12688 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
12689 | return 1; | |
12690 | } | |
12691 | ||
12692 | ||
12693 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
12694 | PyObject *pyobj; | |
12695 | ||
12696 | { | |
12697 | #if wxUSE_UNICODE | |
12698 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12699 | #else | |
12700 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12701 | #endif | |
12702 | } | |
12703 | return pyobj; | |
12704 | } | |
12705 | ||
12706 | ||
d14a1e28 RD |
12707 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
12708 | PyObject *resultobj; | |
12709 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 12710 | int arg2 ; |
d14a1e28 RD |
12711 | wxString *arg3 = 0 ; |
12712 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12713 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12714 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12715 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12716 | long arg6 = (long) 0 ; | |
12717 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12718 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12719 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
12720 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12721 | wxToggleButton *result; | |
423f194a | 12722 | bool temp3 = False ; |
d14a1e28 RD |
12723 | wxPoint temp4 ; |
12724 | wxSize temp5 ; | |
423f194a | 12725 | bool temp8 = False ; |
d14a1e28 | 12726 | PyObject * obj0 = 0 ; |
8edf1c75 | 12727 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12728 | PyObject * obj2 = 0 ; |
12729 | PyObject * obj3 = 0 ; | |
12730 | PyObject * obj4 = 0 ; | |
8edf1c75 | 12731 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12732 | PyObject * obj6 = 0 ; |
12733 | PyObject * obj7 = 0 ; | |
12734 | char *kwnames[] = { | |
12735 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12736 | }; | |
12737 | ||
8edf1c75 | 12738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 12739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12740 | { |
12741 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12742 | if (PyErr_Occurred()) SWIG_fail; | |
12743 | } | |
d14a1e28 RD |
12744 | { |
12745 | arg3 = wxString_in_helper(obj2); | |
12746 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12747 | temp3 = True; |
d14a1e28 RD |
12748 | } |
12749 | if (obj3) { | |
12750 | { | |
12751 | arg4 = &temp4; | |
12752 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12753 | } | |
12754 | } | |
12755 | if (obj4) { | |
12756 | { | |
12757 | arg5 = &temp5; | |
12758 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12759 | } | |
12760 | } | |
8edf1c75 RD |
12761 | if (obj5) { |
12762 | { | |
12763 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
12764 | if (PyErr_Occurred()) SWIG_fail; | |
12765 | } | |
12766 | } | |
d14a1e28 RD |
12767 | if (obj6) { |
12768 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12769 | if (arg7 == NULL) { | |
12770 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12771 | } | |
12772 | } | |
12773 | if (obj7) { | |
12774 | { | |
12775 | arg8 = wxString_in_helper(obj7); | |
12776 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 12777 | temp8 = True; |
d14a1e28 RD |
12778 | } |
12779 | } | |
12780 | { | |
12781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12782 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12783 | ||
12784 | wxPyEndAllowThreads(__tstate); | |
12785 | if (PyErr_Occurred()) SWIG_fail; | |
12786 | } | |
12787 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12788 | { | |
12789 | if (temp3) | |
12790 | delete arg3; | |
12791 | } | |
12792 | { | |
12793 | if (temp8) | |
12794 | delete arg8; | |
12795 | } | |
12796 | return resultobj; | |
12797 | fail: | |
12798 | { | |
12799 | if (temp3) | |
12800 | delete arg3; | |
12801 | } | |
12802 | { | |
12803 | if (temp8) | |
12804 | delete arg8; | |
12805 | } | |
12806 | return NULL; | |
12807 | } | |
12808 | ||
12809 | ||
12810 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12811 | PyObject *resultobj; | |
12812 | wxToggleButton *result; | |
12813 | char *kwnames[] = { | |
12814 | NULL | |
12815 | }; | |
12816 | ||
12817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
12818 | { | |
12819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12820 | result = (wxToggleButton *)new wxToggleButton(); | |
12821 | ||
12822 | wxPyEndAllowThreads(__tstate); | |
12823 | if (PyErr_Occurred()) SWIG_fail; | |
12824 | } | |
12825 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12826 | return resultobj; | |
12827 | fail: | |
12828 | return NULL; | |
12829 | } | |
12830 | ||
12831 | ||
12832 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12833 | PyObject *resultobj; | |
12834 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
12835 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 12836 | int arg3 ; |
d14a1e28 RD |
12837 | wxString *arg4 = 0 ; |
12838 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
12839 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12840 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12841 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12842 | long arg7 = (long) 0 ; | |
12843 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12844 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12845 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
12846 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12847 | bool result; | |
423f194a | 12848 | bool temp4 = False ; |
d14a1e28 RD |
12849 | wxPoint temp5 ; |
12850 | wxSize temp6 ; | |
423f194a | 12851 | bool temp9 = False ; |
d14a1e28 RD |
12852 | PyObject * obj0 = 0 ; |
12853 | PyObject * obj1 = 0 ; | |
8edf1c75 | 12854 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12855 | PyObject * obj3 = 0 ; |
12856 | PyObject * obj4 = 0 ; | |
12857 | PyObject * obj5 = 0 ; | |
8edf1c75 | 12858 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
12859 | PyObject * obj7 = 0 ; |
12860 | PyObject * obj8 = 0 ; | |
12861 | char *kwnames[] = { | |
12862 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12863 | }; | |
12864 | ||
8edf1c75 | 12865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
12866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12867 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
12868 | { |
12869 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12870 | if (PyErr_Occurred()) SWIG_fail; | |
12871 | } | |
d14a1e28 RD |
12872 | { |
12873 | arg4 = wxString_in_helper(obj3); | |
12874 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 12875 | temp4 = True; |
d14a1e28 RD |
12876 | } |
12877 | if (obj4) { | |
12878 | { | |
12879 | arg5 = &temp5; | |
12880 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12881 | } | |
12882 | } | |
12883 | if (obj5) { | |
12884 | { | |
12885 | arg6 = &temp6; | |
12886 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12887 | } | |
12888 | } | |
8edf1c75 RD |
12889 | if (obj6) { |
12890 | { | |
12891 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
12892 | if (PyErr_Occurred()) SWIG_fail; | |
12893 | } | |
12894 | } | |
d14a1e28 RD |
12895 | if (obj7) { |
12896 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12897 | if (arg8 == NULL) { | |
12898 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12899 | } | |
12900 | } | |
12901 | if (obj8) { | |
12902 | { | |
12903 | arg9 = wxString_in_helper(obj8); | |
12904 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 12905 | temp9 = True; |
d14a1e28 RD |
12906 | } |
12907 | } | |
12908 | { | |
12909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12910 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
12911 | ||
12912 | wxPyEndAllowThreads(__tstate); | |
12913 | if (PyErr_Occurred()) SWIG_fail; | |
12914 | } | |
4e760a36 | 12915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12916 | { |
12917 | if (temp4) | |
12918 | delete arg4; | |
12919 | } | |
12920 | { | |
12921 | if (temp9) | |
12922 | delete arg9; | |
12923 | } | |
12924 | return resultobj; | |
12925 | fail: | |
12926 | { | |
12927 | if (temp4) | |
12928 | delete arg4; | |
12929 | } | |
12930 | { | |
12931 | if (temp9) | |
12932 | delete arg9; | |
12933 | } | |
12934 | return NULL; | |
12935 | } | |
12936 | ||
12937 | ||
12938 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12939 | PyObject *resultobj; | |
12940 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
12941 | bool arg2 ; | |
12942 | PyObject * obj0 = 0 ; | |
12943 | PyObject * obj1 = 0 ; | |
12944 | char *kwnames[] = { | |
12945 | (char *) "self",(char *) "value", NULL | |
12946 | }; | |
12947 | ||
12948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 12950 | { |
8edf1c75 | 12951 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
12952 | if (PyErr_Occurred()) SWIG_fail; |
12953 | } | |
d14a1e28 RD |
12954 | { |
12955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12956 | (arg1)->SetValue(arg2); | |
12957 | ||
12958 | wxPyEndAllowThreads(__tstate); | |
12959 | if (PyErr_Occurred()) SWIG_fail; | |
12960 | } | |
12961 | Py_INCREF(Py_None); resultobj = Py_None; | |
12962 | return resultobj; | |
12963 | fail: | |
12964 | return NULL; | |
12965 | } | |
12966 | ||
12967 | ||
12968 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12969 | PyObject *resultobj; | |
12970 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
12971 | bool result; | |
12972 | PyObject * obj0 = 0 ; | |
12973 | char *kwnames[] = { | |
12974 | (char *) "self", NULL | |
12975 | }; | |
12976 | ||
12977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
12978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12979 | { | |
12980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12981 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
12982 | ||
12983 | wxPyEndAllowThreads(__tstate); | |
12984 | if (PyErr_Occurred()) SWIG_fail; | |
12985 | } | |
4e760a36 | 12986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12987 | return resultobj; |
12988 | fail: | |
12989 | return NULL; | |
12990 | } | |
12991 | ||
12992 | ||
12993 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12994 | PyObject *resultobj; | |
12995 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
12996 | wxString *arg2 = 0 ; | |
423f194a | 12997 | bool temp2 = False ; |
d14a1e28 RD |
12998 | PyObject * obj0 = 0 ; |
12999 | PyObject * obj1 = 0 ; | |
13000 | char *kwnames[] = { | |
13001 | (char *) "self",(char *) "label", NULL | |
13002 | }; | |
13003 | ||
13004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
13005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13006 | { | |
13007 | arg2 = wxString_in_helper(obj1); | |
13008 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13009 | temp2 = True; |
d14a1e28 RD |
13010 | } |
13011 | { | |
13012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13013 | (arg1)->SetLabel((wxString const &)*arg2); | |
13014 | ||
13015 | wxPyEndAllowThreads(__tstate); | |
13016 | if (PyErr_Occurred()) SWIG_fail; | |
13017 | } | |
13018 | Py_INCREF(Py_None); resultobj = Py_None; | |
13019 | { | |
13020 | if (temp2) | |
13021 | delete arg2; | |
13022 | } | |
13023 | return resultobj; | |
13024 | fail: | |
13025 | { | |
13026 | if (temp2) | |
13027 | delete arg2; | |
13028 | } | |
13029 | return NULL; | |
13030 | } | |
13031 | ||
13032 | ||
13033 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
13034 | PyObject *obj; | |
13035 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13036 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
13037 | Py_INCREF(obj); | |
13038 | return Py_BuildValue((char *)""); | |
13039 | } | |
8edf1c75 | 13040 | static int _wrap_NOTEBOOK_NAME_set(PyObject *) { |
d03fd34d RD |
13041 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); |
13042 | return 1; | |
13043 | } | |
13044 | ||
13045 | ||
13046 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
13047 | PyObject *pyobj; | |
13048 | ||
13049 | { | |
13050 | #if wxUSE_UNICODE | |
13051 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13052 | #else | |
13053 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13054 | #endif | |
13055 | } | |
13056 | return pyobj; | |
13057 | } | |
13058 | ||
13059 | ||
d14a1e28 RD |
13060 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
13061 | PyObject *resultobj; | |
13062 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13063 | size_t result; | |
13064 | PyObject * obj0 = 0 ; | |
13065 | char *kwnames[] = { | |
13066 | (char *) "self", NULL | |
13067 | }; | |
13068 | ||
13069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
13070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13071 | { | |
13072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13073 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
13074 | ||
13075 | wxPyEndAllowThreads(__tstate); | |
13076 | if (PyErr_Occurred()) SWIG_fail; | |
13077 | } | |
8edf1c75 | 13078 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
13079 | return resultobj; |
13080 | fail: | |
13081 | return NULL; | |
13082 | } | |
13083 | ||
13084 | ||
13085 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13086 | PyObject *resultobj; | |
13087 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13088 | size_t arg2 ; | |
13089 | wxWindow *result; | |
13090 | PyObject * obj0 = 0 ; | |
13091 | PyObject * obj1 = 0 ; | |
13092 | char *kwnames[] = { | |
13093 | (char *) "self",(char *) "n", NULL | |
13094 | }; | |
13095 | ||
13096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
13097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13098 | { |
8edf1c75 | 13099 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13100 | if (PyErr_Occurred()) SWIG_fail; |
13101 | } | |
d14a1e28 RD |
13102 | { |
13103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13104 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
13105 | ||
13106 | wxPyEndAllowThreads(__tstate); | |
13107 | if (PyErr_Occurred()) SWIG_fail; | |
13108 | } | |
13109 | { | |
13110 | resultobj = wxPyMake_wxObject(result); | |
13111 | } | |
13112 | return resultobj; | |
13113 | fail: | |
13114 | return NULL; | |
13115 | } | |
13116 | ||
13117 | ||
13118 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13119 | PyObject *resultobj; | |
13120 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13121 | int result; | |
13122 | PyObject * obj0 = 0 ; | |
13123 | char *kwnames[] = { | |
13124 | (char *) "self", NULL | |
13125 | }; | |
13126 | ||
13127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
13128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13129 | { | |
13130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13131 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
13132 | ||
13133 | wxPyEndAllowThreads(__tstate); | |
13134 | if (PyErr_Occurred()) SWIG_fail; | |
13135 | } | |
8edf1c75 | 13136 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13137 | return resultobj; |
13138 | fail: | |
13139 | return NULL; | |
13140 | } | |
13141 | ||
13142 | ||
13143 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13144 | PyObject *resultobj; | |
13145 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13146 | size_t arg2 ; | |
13147 | wxString *arg3 = 0 ; | |
13148 | bool result; | |
423f194a | 13149 | bool temp3 = False ; |
d14a1e28 RD |
13150 | PyObject * obj0 = 0 ; |
13151 | PyObject * obj1 = 0 ; | |
13152 | PyObject * obj2 = 0 ; | |
13153 | char *kwnames[] = { | |
13154 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
13155 | }; | |
13156 | ||
13157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13159 | { |
8edf1c75 | 13160 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13161 | if (PyErr_Occurred()) SWIG_fail; |
13162 | } | |
d14a1e28 RD |
13163 | { |
13164 | arg3 = wxString_in_helper(obj2); | |
13165 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13166 | temp3 = True; |
d14a1e28 RD |
13167 | } |
13168 | { | |
13169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13170 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
13171 | ||
13172 | wxPyEndAllowThreads(__tstate); | |
13173 | if (PyErr_Occurred()) SWIG_fail; | |
13174 | } | |
4e760a36 | 13175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13176 | { |
13177 | if (temp3) | |
13178 | delete arg3; | |
13179 | } | |
13180 | return resultobj; | |
13181 | fail: | |
13182 | { | |
13183 | if (temp3) | |
13184 | delete arg3; | |
13185 | } | |
13186 | return NULL; | |
13187 | } | |
13188 | ||
13189 | ||
13190 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13191 | PyObject *resultobj; | |
13192 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13193 | size_t arg2 ; | |
13194 | wxString 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_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
13202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13203 | { |
8edf1c75 | 13204 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13205 | if (PyErr_Occurred()) SWIG_fail; |
13206 | } | |
d14a1e28 RD |
13207 | { |
13208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13209 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
13210 | ||
13211 | wxPyEndAllowThreads(__tstate); | |
13212 | if (PyErr_Occurred()) SWIG_fail; | |
13213 | } | |
13214 | { | |
13215 | #if wxUSE_UNICODE | |
13216 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13217 | #else | |
13218 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13219 | #endif | |
13220 | } | |
13221 | return resultobj; | |
13222 | fail: | |
13223 | return NULL; | |
13224 | } | |
13225 | ||
13226 | ||
13227 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13228 | PyObject *resultobj; | |
13229 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13230 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13231 | PyObject * obj0 = 0 ; | |
13232 | PyObject * obj1 = 0 ; | |
13233 | char *kwnames[] = { | |
13234 | (char *) "self",(char *) "imageList", NULL | |
13235 | }; | |
13236 | ||
13237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
13238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13239 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13240 | { | |
13241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13242 | (arg1)->SetImageList(arg2); | |
13243 | ||
13244 | wxPyEndAllowThreads(__tstate); | |
13245 | if (PyErr_Occurred()) SWIG_fail; | |
13246 | } | |
13247 | Py_INCREF(Py_None); resultobj = Py_None; | |
13248 | return resultobj; | |
13249 | fail: | |
13250 | return NULL; | |
13251 | } | |
13252 | ||
13253 | ||
13254 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13255 | PyObject *resultobj; | |
13256 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13257 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13258 | PyObject * obj0 = 0 ; | |
13259 | PyObject * obj1 = 0 ; | |
13260 | char *kwnames[] = { | |
13261 | (char *) "self",(char *) "imageList", NULL | |
13262 | }; | |
13263 | ||
13264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
13265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 13266 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
13267 | { |
13268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13269 | (arg1)->AssignImageList(arg2); | |
13270 | ||
13271 | wxPyEndAllowThreads(__tstate); | |
13272 | if (PyErr_Occurred()) SWIG_fail; | |
13273 | } | |
13274 | Py_INCREF(Py_None); resultobj = Py_None; | |
13275 | return resultobj; | |
13276 | fail: | |
13277 | return NULL; | |
13278 | } | |
13279 | ||
13280 | ||
13281 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13282 | PyObject *resultobj; | |
13283 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13284 | wxImageList *result; | |
13285 | PyObject * obj0 = 0 ; | |
13286 | char *kwnames[] = { | |
13287 | (char *) "self", NULL | |
13288 | }; | |
13289 | ||
13290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
13291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13292 | { | |
13293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13294 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
13295 | ||
13296 | wxPyEndAllowThreads(__tstate); | |
13297 | if (PyErr_Occurred()) SWIG_fail; | |
13298 | } | |
13299 | { | |
13300 | resultobj = wxPyMake_wxObject(result); | |
13301 | } | |
13302 | return resultobj; | |
13303 | fail: | |
13304 | return NULL; | |
13305 | } | |
13306 | ||
13307 | ||
13308 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13309 | PyObject *resultobj; | |
13310 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13311 | size_t arg2 ; | |
13312 | int result; | |
13313 | PyObject * obj0 = 0 ; | |
13314 | PyObject * obj1 = 0 ; | |
13315 | char *kwnames[] = { | |
13316 | (char *) "self",(char *) "n", NULL | |
13317 | }; | |
13318 | ||
13319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
13320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13321 | { |
8edf1c75 | 13322 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13323 | if (PyErr_Occurred()) SWIG_fail; |
13324 | } | |
d14a1e28 RD |
13325 | { |
13326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13327 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
13328 | ||
13329 | wxPyEndAllowThreads(__tstate); | |
13330 | if (PyErr_Occurred()) SWIG_fail; | |
13331 | } | |
8edf1c75 | 13332 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13333 | return resultobj; |
13334 | fail: | |
13335 | return NULL; | |
13336 | } | |
13337 | ||
13338 | ||
13339 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13340 | PyObject *resultobj; | |
13341 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13342 | size_t arg2 ; | |
13343 | int arg3 ; | |
13344 | bool result; | |
13345 | PyObject * obj0 = 0 ; | |
13346 | PyObject * obj1 = 0 ; | |
8edf1c75 | 13347 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13348 | char *kwnames[] = { |
13349 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
13350 | }; | |
13351 | ||
8edf1c75 | 13352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 13354 | { |
8edf1c75 RD |
13355 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
13356 | if (PyErr_Occurred()) SWIG_fail; | |
13357 | } | |
13358 | { | |
13359 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
13360 | if (PyErr_Occurred()) SWIG_fail; |
13361 | } | |
d14a1e28 RD |
13362 | { |
13363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13364 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
13365 | ||
13366 | wxPyEndAllowThreads(__tstate); | |
13367 | if (PyErr_Occurred()) SWIG_fail; | |
13368 | } | |
4e760a36 | 13369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13370 | return resultobj; |
13371 | fail: | |
13372 | return NULL; | |
13373 | } | |
13374 | ||
13375 | ||
13376 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13377 | PyObject *resultobj; | |
13378 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13379 | wxSize *arg2 = 0 ; | |
13380 | wxSize temp2 ; | |
13381 | PyObject * obj0 = 0 ; | |
13382 | PyObject * obj1 = 0 ; | |
13383 | char *kwnames[] = { | |
13384 | (char *) "self",(char *) "size", NULL | |
13385 | }; | |
13386 | ||
13387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
13388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13389 | { | |
13390 | arg2 = &temp2; | |
13391 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13392 | } | |
13393 | { | |
13394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13395 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
13396 | ||
13397 | wxPyEndAllowThreads(__tstate); | |
13398 | if (PyErr_Occurred()) SWIG_fail; | |
13399 | } | |
13400 | Py_INCREF(Py_None); resultobj = Py_None; | |
13401 | return resultobj; | |
13402 | fail: | |
13403 | return NULL; | |
13404 | } | |
13405 | ||
13406 | ||
13407 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13408 | PyObject *resultobj; | |
13409 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13410 | wxSize *arg2 = 0 ; | |
13411 | wxSize result; | |
13412 | wxSize temp2 ; | |
13413 | PyObject * obj0 = 0 ; | |
13414 | PyObject * obj1 = 0 ; | |
13415 | char *kwnames[] = { | |
13416 | (char *) "self",(char *) "sizePage", NULL | |
13417 | }; | |
13418 | ||
13419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
13420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13421 | { | |
13422 | arg2 = &temp2; | |
13423 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13424 | } | |
13425 | { | |
13426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13427 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13428 | ||
13429 | wxPyEndAllowThreads(__tstate); | |
13430 | if (PyErr_Occurred()) SWIG_fail; | |
13431 | } | |
13432 | { | |
13433 | wxSize * resultptr; | |
13434 | resultptr = new wxSize((wxSize &) result); | |
13435 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13436 | } | |
13437 | return resultobj; | |
13438 | fail: | |
13439 | return NULL; | |
13440 | } | |
13441 | ||
13442 | ||
13443 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13444 | PyObject *resultobj; | |
13445 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13446 | size_t arg2 ; | |
13447 | bool result; | |
13448 | PyObject * obj0 = 0 ; | |
13449 | PyObject * obj1 = 0 ; | |
13450 | char *kwnames[] = { | |
13451 | (char *) "self",(char *) "n", NULL | |
13452 | }; | |
13453 | ||
13454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
13455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13456 | { |
8edf1c75 | 13457 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13458 | if (PyErr_Occurred()) SWIG_fail; |
13459 | } | |
d14a1e28 RD |
13460 | { |
13461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13462 | result = (bool)(arg1)->DeletePage(arg2); | |
13463 | ||
13464 | wxPyEndAllowThreads(__tstate); | |
13465 | if (PyErr_Occurred()) SWIG_fail; | |
13466 | } | |
4e760a36 | 13467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13468 | return resultobj; |
13469 | fail: | |
13470 | return NULL; | |
13471 | } | |
13472 | ||
13473 | ||
13474 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13475 | PyObject *resultobj; | |
13476 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13477 | size_t arg2 ; | |
13478 | bool result; | |
13479 | PyObject * obj0 = 0 ; | |
13480 | PyObject * obj1 = 0 ; | |
13481 | char *kwnames[] = { | |
13482 | (char *) "self",(char *) "n", NULL | |
13483 | }; | |
13484 | ||
13485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
13486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13487 | { |
8edf1c75 | 13488 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13489 | if (PyErr_Occurred()) SWIG_fail; |
13490 | } | |
d14a1e28 RD |
13491 | { |
13492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13493 | result = (bool)(arg1)->RemovePage(arg2); | |
13494 | ||
13495 | wxPyEndAllowThreads(__tstate); | |
13496 | if (PyErr_Occurred()) SWIG_fail; | |
13497 | } | |
4e760a36 | 13498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13499 | return resultobj; |
13500 | fail: | |
13501 | return NULL; | |
13502 | } | |
13503 | ||
13504 | ||
13505 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13506 | PyObject *resultobj; | |
13507 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13508 | bool result; | |
13509 | PyObject * obj0 = 0 ; | |
13510 | char *kwnames[] = { | |
13511 | (char *) "self", NULL | |
13512 | }; | |
13513 | ||
13514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
13515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13516 | { | |
13517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13518 | result = (bool)(arg1)->DeleteAllPages(); | |
13519 | ||
13520 | wxPyEndAllowThreads(__tstate); | |
13521 | if (PyErr_Occurred()) SWIG_fail; | |
13522 | } | |
4e760a36 | 13523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13524 | return resultobj; |
13525 | fail: | |
13526 | return NULL; | |
13527 | } | |
13528 | ||
13529 | ||
13530 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13531 | PyObject *resultobj; | |
13532 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13533 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13534 | wxString *arg3 = 0 ; | |
423f194a | 13535 | bool arg4 = (bool) False ; |
d14a1e28 RD |
13536 | int arg5 = (int) -1 ; |
13537 | bool result; | |
423f194a | 13538 | bool temp3 = False ; |
d14a1e28 RD |
13539 | PyObject * obj0 = 0 ; |
13540 | PyObject * obj1 = 0 ; | |
13541 | PyObject * obj2 = 0 ; | |
13542 | PyObject * obj3 = 0 ; | |
8edf1c75 | 13543 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13544 | char *kwnames[] = { |
13545 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13546 | }; | |
13547 | ||
8edf1c75 | 13548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
13549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13550 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13551 | { | |
13552 | arg3 = wxString_in_helper(obj2); | |
13553 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13554 | temp3 = True; |
d14a1e28 RD |
13555 | } |
13556 | if (obj3) { | |
83448d71 | 13557 | { |
8edf1c75 RD |
13558 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
13559 | if (PyErr_Occurred()) SWIG_fail; | |
13560 | } | |
13561 | } | |
13562 | if (obj4) { | |
13563 | { | |
13564 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
83448d71 RD |
13565 | if (PyErr_Occurred()) SWIG_fail; |
13566 | } | |
d14a1e28 RD |
13567 | } |
13568 | { | |
13569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13570 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
13571 | ||
13572 | wxPyEndAllowThreads(__tstate); | |
13573 | if (PyErr_Occurred()) SWIG_fail; | |
13574 | } | |
4e760a36 | 13575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13576 | { |
13577 | if (temp3) | |
13578 | delete arg3; | |
13579 | } | |
13580 | return resultobj; | |
13581 | fail: | |
13582 | { | |
13583 | if (temp3) | |
13584 | delete arg3; | |
13585 | } | |
13586 | return NULL; | |
13587 | } | |
13588 | ||
13589 | ||
13590 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13591 | PyObject *resultobj; | |
13592 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13593 | size_t arg2 ; | |
13594 | wxWindow *arg3 = (wxWindow *) 0 ; | |
13595 | wxString *arg4 = 0 ; | |
423f194a | 13596 | bool arg5 = (bool) False ; |
d14a1e28 RD |
13597 | int arg6 = (int) -1 ; |
13598 | bool result; | |
423f194a | 13599 | bool temp4 = False ; |
d14a1e28 RD |
13600 | PyObject * obj0 = 0 ; |
13601 | PyObject * obj1 = 0 ; | |
13602 | PyObject * obj2 = 0 ; | |
13603 | PyObject * obj3 = 0 ; | |
13604 | PyObject * obj4 = 0 ; | |
8edf1c75 | 13605 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13606 | char *kwnames[] = { |
13607 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13608 | }; | |
13609 | ||
8edf1c75 | 13610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 13611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 13612 | { |
8edf1c75 | 13613 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13614 | if (PyErr_Occurred()) SWIG_fail; |
13615 | } | |
d14a1e28 RD |
13616 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13617 | { | |
13618 | arg4 = wxString_in_helper(obj3); | |
13619 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13620 | temp4 = True; |
d14a1e28 RD |
13621 | } |
13622 | if (obj4) { | |
83448d71 | 13623 | { |
8edf1c75 RD |
13624 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
13625 | if (PyErr_Occurred()) SWIG_fail; | |
13626 | } | |
13627 | } | |
13628 | if (obj5) { | |
13629 | { | |
13630 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
83448d71 RD |
13631 | if (PyErr_Occurred()) SWIG_fail; |
13632 | } | |
d14a1e28 RD |
13633 | } |
13634 | { | |
13635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13636 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
13637 | ||
13638 | wxPyEndAllowThreads(__tstate); | |
13639 | if (PyErr_Occurred()) SWIG_fail; | |
13640 | } | |
4e760a36 | 13641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13642 | { |
13643 | if (temp4) | |
13644 | delete arg4; | |
13645 | } | |
13646 | return resultobj; | |
13647 | fail: | |
13648 | { | |
13649 | if (temp4) | |
13650 | delete arg4; | |
13651 | } | |
13652 | return NULL; | |
13653 | } | |
13654 | ||
13655 | ||
13656 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13657 | PyObject *resultobj; | |
13658 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13659 | size_t arg2 ; | |
13660 | int result; | |
13661 | PyObject * obj0 = 0 ; | |
13662 | PyObject * obj1 = 0 ; | |
13663 | char *kwnames[] = { | |
13664 | (char *) "self",(char *) "n", NULL | |
13665 | }; | |
13666 | ||
13667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
13668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13669 | { |
8edf1c75 | 13670 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13671 | if (PyErr_Occurred()) SWIG_fail; |
13672 | } | |
d14a1e28 RD |
13673 | { |
13674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13675 | result = (int)(arg1)->SetSelection(arg2); | |
13676 | ||
13677 | wxPyEndAllowThreads(__tstate); | |
13678 | if (PyErr_Occurred()) SWIG_fail; | |
13679 | } | |
8edf1c75 | 13680 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13681 | return resultobj; |
13682 | fail: | |
13683 | return NULL; | |
13684 | } | |
13685 | ||
13686 | ||
13687 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13688 | PyObject *resultobj; | |
13689 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
423f194a | 13690 | bool arg2 = (bool) True ; |
d14a1e28 RD |
13691 | PyObject * obj0 = 0 ; |
13692 | PyObject * obj1 = 0 ; | |
13693 | char *kwnames[] = { | |
13694 | (char *) "self",(char *) "forward", NULL | |
13695 | }; | |
13696 | ||
13697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
13698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13699 | if (obj1) { | |
83448d71 | 13700 | { |
8edf1c75 | 13701 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
13702 | if (PyErr_Occurred()) SWIG_fail; |
13703 | } | |
d14a1e28 RD |
13704 | } |
13705 | { | |
13706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13707 | (arg1)->AdvanceSelection(arg2); | |
13708 | ||
13709 | wxPyEndAllowThreads(__tstate); | |
13710 | if (PyErr_Occurred()) SWIG_fail; | |
13711 | } | |
13712 | Py_INCREF(Py_None); resultobj = Py_None; | |
13713 | return resultobj; | |
13714 | fail: | |
13715 | return NULL; | |
13716 | } | |
13717 | ||
13718 | ||
13719 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
13720 | PyObject *obj; | |
13721 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13722 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
13723 | Py_INCREF(obj); | |
13724 | return Py_BuildValue((char *)""); | |
13725 | } | |
13726 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13727 | PyObject *resultobj; | |
13728 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13729 | int arg2 = (int) 0 ; | |
13730 | int arg3 = (int) -1 ; | |
13731 | int arg4 = (int) -1 ; | |
13732 | wxBookCtrlEvent *result; | |
8edf1c75 RD |
13733 | PyObject * obj0 = 0 ; |
13734 | PyObject * obj1 = 0 ; | |
13735 | PyObject * obj2 = 0 ; | |
13736 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13737 | char *kwnames[] = { |
13738 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13739 | }; | |
13740 | ||
8edf1c75 RD |
13741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13742 | if (obj0) { | |
13743 | { | |
13744 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13745 | if (PyErr_Occurred()) SWIG_fail; | |
13746 | } | |
13747 | } | |
13748 | if (obj1) { | |
13749 | { | |
13750 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13751 | if (PyErr_Occurred()) SWIG_fail; | |
13752 | } | |
13753 | } | |
13754 | if (obj2) { | |
13755 | { | |
13756 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13757 | if (PyErr_Occurred()) SWIG_fail; | |
13758 | } | |
13759 | } | |
13760 | if (obj3) { | |
13761 | { | |
13762 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
13763 | if (PyErr_Occurred()) SWIG_fail; | |
13764 | } | |
13765 | } | |
d14a1e28 RD |
13766 | { |
13767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13768 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
13769 | ||
13770 | wxPyEndAllowThreads(__tstate); | |
13771 | if (PyErr_Occurred()) SWIG_fail; | |
13772 | } | |
13773 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlEvent, 1); | |
13774 | return resultobj; | |
13775 | fail: | |
13776 | return NULL; | |
13777 | } | |
13778 | ||
13779 | ||
13780 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13781 | PyObject *resultobj; | |
13782 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13783 | int result; | |
13784 | PyObject * obj0 = 0 ; | |
13785 | char *kwnames[] = { | |
13786 | (char *) "self", NULL | |
13787 | }; | |
13788 | ||
13789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
13790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13791 | { | |
13792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13793 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
13794 | ||
13795 | wxPyEndAllowThreads(__tstate); | |
13796 | if (PyErr_Occurred()) SWIG_fail; | |
13797 | } | |
8edf1c75 | 13798 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13799 | return resultobj; |
13800 | fail: | |
13801 | return NULL; | |
13802 | } | |
13803 | ||
13804 | ||
13805 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13806 | PyObject *resultobj; | |
13807 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13808 | int arg2 ; | |
13809 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13810 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13811 | char *kwnames[] = { |
13812 | (char *) "self",(char *) "nSel", NULL | |
13813 | }; | |
13814 | ||
8edf1c75 | 13815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13817 | { |
13818 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13819 | if (PyErr_Occurred()) SWIG_fail; | |
13820 | } | |
d14a1e28 RD |
13821 | { |
13822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13823 | (arg1)->SetSelection(arg2); | |
13824 | ||
13825 | wxPyEndAllowThreads(__tstate); | |
13826 | if (PyErr_Occurred()) SWIG_fail; | |
13827 | } | |
13828 | Py_INCREF(Py_None); resultobj = Py_None; | |
13829 | return resultobj; | |
13830 | fail: | |
13831 | return NULL; | |
13832 | } | |
13833 | ||
13834 | ||
13835 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13836 | PyObject *resultobj; | |
13837 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13838 | int result; | |
13839 | PyObject * obj0 = 0 ; | |
13840 | char *kwnames[] = { | |
13841 | (char *) "self", NULL | |
13842 | }; | |
13843 | ||
13844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
13845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13846 | { | |
13847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13848 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
13849 | ||
13850 | wxPyEndAllowThreads(__tstate); | |
13851 | if (PyErr_Occurred()) SWIG_fail; | |
13852 | } | |
8edf1c75 | 13853 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13854 | return resultobj; |
13855 | fail: | |
13856 | return NULL; | |
13857 | } | |
13858 | ||
13859 | ||
13860 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13861 | PyObject *resultobj; | |
13862 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13863 | int arg2 ; | |
13864 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13865 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13866 | char *kwnames[] = { |
13867 | (char *) "self",(char *) "nOldSel", NULL | |
13868 | }; | |
13869 | ||
8edf1c75 | 13870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13872 | { |
13873 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13874 | if (PyErr_Occurred()) SWIG_fail; | |
13875 | } | |
d14a1e28 RD |
13876 | { |
13877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13878 | (arg1)->SetOldSelection(arg2); | |
13879 | ||
13880 | wxPyEndAllowThreads(__tstate); | |
13881 | if (PyErr_Occurred()) SWIG_fail; | |
13882 | } | |
13883 | Py_INCREF(Py_None); resultobj = Py_None; | |
13884 | return resultobj; | |
13885 | fail: | |
13886 | return NULL; | |
13887 | } | |
13888 | ||
13889 | ||
13890 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
13891 | PyObject *obj; | |
13892 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13893 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
13894 | Py_INCREF(obj); | |
13895 | return Py_BuildValue((char *)""); | |
13896 | } | |
13897 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13898 | PyObject *resultobj; | |
13899 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 13900 | int arg2 ; |
d14a1e28 RD |
13901 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
13902 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13903 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13904 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13905 | long arg5 = (long) 0 ; | |
13906 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
13907 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13908 | wxNotebook *result; | |
13909 | wxPoint temp3 ; | |
13910 | wxSize temp4 ; | |
423f194a | 13911 | bool temp6 = False ; |
d14a1e28 | 13912 | PyObject * obj0 = 0 ; |
8edf1c75 | 13913 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13914 | PyObject * obj2 = 0 ; |
13915 | PyObject * obj3 = 0 ; | |
8edf1c75 | 13916 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13917 | PyObject * obj5 = 0 ; |
13918 | char *kwnames[] = { | |
13919 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13920 | }; | |
13921 | ||
8edf1c75 | 13922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 13923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13924 | { |
13925 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13926 | if (PyErr_Occurred()) SWIG_fail; | |
13927 | } | |
d14a1e28 RD |
13928 | if (obj2) { |
13929 | { | |
13930 | arg3 = &temp3; | |
13931 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13932 | } | |
13933 | } | |
13934 | if (obj3) { | |
13935 | { | |
13936 | arg4 = &temp4; | |
13937 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
13938 | } | |
13939 | } | |
8edf1c75 RD |
13940 | if (obj4) { |
13941 | { | |
13942 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
13943 | if (PyErr_Occurred()) SWIG_fail; | |
13944 | } | |
13945 | } | |
d14a1e28 RD |
13946 | if (obj5) { |
13947 | { | |
13948 | arg6 = wxString_in_helper(obj5); | |
13949 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 13950 | temp6 = True; |
d14a1e28 RD |
13951 | } |
13952 | } | |
13953 | { | |
13954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13955 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
13956 | ||
13957 | wxPyEndAllowThreads(__tstate); | |
13958 | if (PyErr_Occurred()) SWIG_fail; | |
13959 | } | |
13960 | { | |
13961 | resultobj = wxPyMake_wxObject(result); | |
13962 | } | |
13963 | { | |
13964 | if (temp6) | |
13965 | delete arg6; | |
13966 | } | |
13967 | return resultobj; | |
13968 | fail: | |
13969 | { | |
13970 | if (temp6) | |
13971 | delete arg6; | |
13972 | } | |
13973 | return NULL; | |
13974 | } | |
13975 | ||
13976 | ||
13977 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13978 | PyObject *resultobj; | |
13979 | wxNotebook *result; | |
13980 | char *kwnames[] = { | |
13981 | NULL | |
13982 | }; | |
13983 | ||
13984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
13985 | { | |
13986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13987 | result = (wxNotebook *)new wxNotebook(); | |
13988 | ||
13989 | wxPyEndAllowThreads(__tstate); | |
13990 | if (PyErr_Occurred()) SWIG_fail; | |
13991 | } | |
13992 | { | |
13993 | resultobj = wxPyMake_wxObject(result); | |
13994 | } | |
13995 | return resultobj; | |
13996 | fail: | |
13997 | return NULL; | |
13998 | } | |
13999 | ||
14000 | ||
14001 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14002 | PyObject *resultobj; | |
14003 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14004 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14005 | int arg3 ; |
d14a1e28 RD |
14006 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14007 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14008 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14009 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14010 | long arg6 = (long) 0 ; | |
14011 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
14012 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14013 | bool result; | |
14014 | wxPoint temp4 ; | |
14015 | wxSize temp5 ; | |
423f194a | 14016 | bool temp7 = False ; |
d14a1e28 RD |
14017 | PyObject * obj0 = 0 ; |
14018 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14019 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14020 | PyObject * obj3 = 0 ; |
14021 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14022 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14023 | PyObject * obj6 = 0 ; |
14024 | char *kwnames[] = { | |
14025 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14026 | }; | |
14027 | ||
8edf1c75 | 14028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
14029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14030 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
14031 | { |
14032 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14033 | if (PyErr_Occurred()) SWIG_fail; | |
14034 | } | |
d14a1e28 RD |
14035 | if (obj3) { |
14036 | { | |
14037 | arg4 = &temp4; | |
14038 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14039 | } | |
14040 | } | |
14041 | if (obj4) { | |
14042 | { | |
14043 | arg5 = &temp5; | |
14044 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14045 | } | |
14046 | } | |
8edf1c75 RD |
14047 | if (obj5) { |
14048 | { | |
14049 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
14050 | if (PyErr_Occurred()) SWIG_fail; | |
14051 | } | |
14052 | } | |
d14a1e28 RD |
14053 | if (obj6) { |
14054 | { | |
14055 | arg7 = wxString_in_helper(obj6); | |
14056 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14057 | temp7 = True; |
d14a1e28 RD |
14058 | } |
14059 | } | |
14060 | { | |
14061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14062 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14063 | ||
14064 | wxPyEndAllowThreads(__tstate); | |
14065 | if (PyErr_Occurred()) SWIG_fail; | |
14066 | } | |
4e760a36 | 14067 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14068 | { |
14069 | if (temp7) | |
14070 | delete arg7; | |
14071 | } | |
14072 | return resultobj; | |
14073 | fail: | |
14074 | { | |
14075 | if (temp7) | |
14076 | delete arg7; | |
14077 | } | |
14078 | return NULL; | |
14079 | } | |
14080 | ||
14081 | ||
14082 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14083 | PyObject *resultobj; | |
14084 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14085 | int result; | |
14086 | PyObject * obj0 = 0 ; | |
14087 | char *kwnames[] = { | |
14088 | (char *) "self", NULL | |
14089 | }; | |
14090 | ||
14091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
14092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14093 | { | |
14094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14095 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
14096 | ||
14097 | wxPyEndAllowThreads(__tstate); | |
14098 | if (PyErr_Occurred()) SWIG_fail; | |
14099 | } | |
8edf1c75 | 14100 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14101 | return resultobj; |
14102 | fail: | |
14103 | return NULL; | |
14104 | } | |
14105 | ||
14106 | ||
14107 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14108 | PyObject *resultobj; | |
14109 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14110 | wxSize *arg2 = 0 ; | |
14111 | wxSize temp2 ; | |
14112 | PyObject * obj0 = 0 ; | |
14113 | PyObject * obj1 = 0 ; | |
14114 | char *kwnames[] = { | |
14115 | (char *) "self",(char *) "padding", NULL | |
14116 | }; | |
14117 | ||
14118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
14119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14120 | { | |
14121 | arg2 = &temp2; | |
14122 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14123 | } | |
14124 | { | |
14125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14126 | (arg1)->SetPadding((wxSize const &)*arg2); | |
14127 | ||
14128 | wxPyEndAllowThreads(__tstate); | |
14129 | if (PyErr_Occurred()) SWIG_fail; | |
14130 | } | |
14131 | Py_INCREF(Py_None); resultobj = Py_None; | |
14132 | return resultobj; | |
14133 | fail: | |
14134 | return NULL; | |
14135 | } | |
14136 | ||
14137 | ||
14138 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14139 | PyObject *resultobj; | |
14140 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14141 | wxSize *arg2 = 0 ; | |
14142 | wxSize temp2 ; | |
14143 | PyObject * obj0 = 0 ; | |
14144 | PyObject * obj1 = 0 ; | |
14145 | char *kwnames[] = { | |
14146 | (char *) "self",(char *) "sz", NULL | |
14147 | }; | |
14148 | ||
14149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
14150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14151 | { | |
14152 | arg2 = &temp2; | |
14153 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14154 | } | |
14155 | { | |
14156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14157 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
14158 | ||
14159 | wxPyEndAllowThreads(__tstate); | |
14160 | if (PyErr_Occurred()) SWIG_fail; | |
14161 | } | |
14162 | Py_INCREF(Py_None); resultobj = Py_None; | |
14163 | return resultobj; | |
14164 | fail: | |
14165 | return NULL; | |
14166 | } | |
14167 | ||
14168 | ||
14169 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14170 | PyObject *resultobj; | |
14171 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14172 | wxPoint *arg2 = 0 ; | |
14173 | long *arg3 = (long *) 0 ; | |
14174 | int result; | |
14175 | wxPoint temp2 ; | |
14176 | long temp3 ; | |
14177 | PyObject * obj0 = 0 ; | |
14178 | PyObject * obj1 = 0 ; | |
14179 | char *kwnames[] = { | |
14180 | (char *) "self",(char *) "pt", NULL | |
14181 | }; | |
14182 | ||
14183 | arg3 = &temp3; | |
14184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
14185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14186 | { | |
14187 | arg2 = &temp2; | |
14188 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14189 | } | |
14190 | { | |
14191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14192 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
14193 | ||
14194 | wxPyEndAllowThreads(__tstate); | |
14195 | if (PyErr_Occurred()) SWIG_fail; | |
14196 | } | |
8edf1c75 | 14197 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14198 | { |
14199 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14200 | resultobj = t_output_helper(resultobj,o); | |
14201 | } | |
14202 | return resultobj; | |
14203 | fail: | |
14204 | return NULL; | |
14205 | } | |
14206 | ||
14207 | ||
14208 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14209 | PyObject *resultobj; | |
14210 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14211 | wxSize *arg2 = 0 ; | |
14212 | wxSize result; | |
14213 | wxSize temp2 ; | |
14214 | PyObject * obj0 = 0 ; | |
14215 | PyObject * obj1 = 0 ; | |
14216 | char *kwnames[] = { | |
14217 | (char *) "self",(char *) "sizePage", NULL | |
14218 | }; | |
14219 | ||
14220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
14221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14222 | { | |
14223 | arg2 = &temp2; | |
14224 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14225 | } | |
14226 | { | |
14227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14228 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14229 | ||
14230 | wxPyEndAllowThreads(__tstate); | |
14231 | if (PyErr_Occurred()) SWIG_fail; | |
14232 | } | |
14233 | { | |
14234 | wxSize * resultptr; | |
14235 | resultptr = new wxSize((wxSize &) result); | |
14236 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14237 | } | |
14238 | return resultobj; | |
14239 | fail: | |
14240 | return NULL; | |
14241 | } | |
14242 | ||
14243 | ||
14244 | static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14245 | PyObject *resultobj; | |
14246 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14247 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14248 | wxColour *arg3 = 0 ; | |
14249 | wxColour temp3 ; | |
14250 | PyObject * obj0 = 0 ; | |
14251 | PyObject * obj1 = 0 ; | |
14252 | PyObject * obj2 = 0 ; | |
14253 | char *kwnames[] = { | |
14254 | (char *) "self",(char *) "window",(char *) "colour", NULL | |
14255 | }; | |
14256 | ||
14257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14259 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14260 | { | |
14261 | arg3 = &temp3; | |
14262 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14263 | } | |
14264 | { | |
14265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14266 | (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3); | |
14267 | ||
14268 | wxPyEndAllowThreads(__tstate); | |
14269 | if (PyErr_Occurred()) SWIG_fail; | |
14270 | } | |
14271 | Py_INCREF(Py_None); resultobj = Py_None; | |
14272 | return resultobj; | |
14273 | fail: | |
14274 | return NULL; | |
14275 | } | |
14276 | ||
14277 | ||
14278 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
14279 | PyObject *obj; | |
14280 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14281 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
14282 | Py_INCREF(obj); | |
14283 | return Py_BuildValue((char *)""); | |
14284 | } | |
14285 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14286 | PyObject *resultobj; | |
14287 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14288 | int arg2 = (int) 0 ; | |
14289 | int arg3 = (int) -1 ; | |
14290 | int arg4 = (int) -1 ; | |
14291 | wxNotebookEvent *result; | |
8edf1c75 RD |
14292 | PyObject * obj0 = 0 ; |
14293 | PyObject * obj1 = 0 ; | |
14294 | PyObject * obj2 = 0 ; | |
14295 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14296 | char *kwnames[] = { |
14297 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14298 | }; | |
14299 | ||
8edf1c75 RD |
14300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14301 | if (obj0) { | |
14302 | { | |
14303 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
14304 | if (PyErr_Occurred()) SWIG_fail; | |
14305 | } | |
14306 | } | |
14307 | if (obj1) { | |
14308 | { | |
14309 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14310 | if (PyErr_Occurred()) SWIG_fail; | |
14311 | } | |
14312 | } | |
14313 | if (obj2) { | |
14314 | { | |
14315 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14316 | if (PyErr_Occurred()) SWIG_fail; | |
14317 | } | |
14318 | } | |
14319 | if (obj3) { | |
14320 | { | |
14321 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14322 | if (PyErr_Occurred()) SWIG_fail; | |
14323 | } | |
14324 | } | |
d14a1e28 RD |
14325 | { |
14326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14327 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
14328 | ||
14329 | wxPyEndAllowThreads(__tstate); | |
14330 | if (PyErr_Occurred()) SWIG_fail; | |
14331 | } | |
14332 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookEvent, 1); | |
14333 | return resultobj; | |
14334 | fail: | |
14335 | return NULL; | |
14336 | } | |
14337 | ||
14338 | ||
14339 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
14340 | PyObject *obj; | |
14341 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14342 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
14343 | Py_INCREF(obj); | |
14344 | return Py_BuildValue((char *)""); | |
14345 | } | |
14346 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14347 | PyObject *resultobj; | |
14348 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 14349 | int arg2 ; |
d14a1e28 RD |
14350 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14351 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14352 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14353 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14354 | long arg5 = (long) 0 ; | |
14355 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
14356 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14357 | wxListbook *result; | |
14358 | wxPoint temp3 ; | |
14359 | wxSize temp4 ; | |
423f194a | 14360 | bool temp6 = False ; |
d14a1e28 | 14361 | PyObject * obj0 = 0 ; |
8edf1c75 | 14362 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14363 | PyObject * obj2 = 0 ; |
14364 | PyObject * obj3 = 0 ; | |
8edf1c75 | 14365 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14366 | PyObject * obj5 = 0 ; |
14367 | char *kwnames[] = { | |
14368 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14369 | }; | |
14370 | ||
8edf1c75 | 14371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 14372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14373 | { |
14374 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14375 | if (PyErr_Occurred()) SWIG_fail; | |
14376 | } | |
d14a1e28 RD |
14377 | if (obj2) { |
14378 | { | |
14379 | arg3 = &temp3; | |
14380 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14381 | } | |
14382 | } | |
14383 | if (obj3) { | |
14384 | { | |
14385 | arg4 = &temp4; | |
14386 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14387 | } | |
14388 | } | |
8edf1c75 RD |
14389 | if (obj4) { |
14390 | { | |
14391 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
14392 | if (PyErr_Occurred()) SWIG_fail; | |
14393 | } | |
14394 | } | |
d14a1e28 RD |
14395 | if (obj5) { |
14396 | { | |
14397 | arg6 = wxString_in_helper(obj5); | |
14398 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 14399 | temp6 = True; |
d14a1e28 RD |
14400 | } |
14401 | } | |
14402 | { | |
14403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14404 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14405 | ||
14406 | wxPyEndAllowThreads(__tstate); | |
14407 | if (PyErr_Occurred()) SWIG_fail; | |
14408 | } | |
14409 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
14410 | { | |
14411 | if (temp6) | |
14412 | delete arg6; | |
14413 | } | |
14414 | return resultobj; | |
14415 | fail: | |
14416 | { | |
14417 | if (temp6) | |
14418 | delete arg6; | |
14419 | } | |
14420 | return NULL; | |
14421 | } | |
14422 | ||
14423 | ||
14424 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14425 | PyObject *resultobj; | |
14426 | wxListbook *result; | |
14427 | char *kwnames[] = { | |
14428 | NULL | |
14429 | }; | |
14430 | ||
14431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
14432 | { | |
14433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14434 | result = (wxListbook *)new wxListbook(); | |
14435 | ||
14436 | wxPyEndAllowThreads(__tstate); | |
14437 | if (PyErr_Occurred()) SWIG_fail; | |
14438 | } | |
14439 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
14440 | return resultobj; | |
14441 | fail: | |
14442 | return NULL; | |
14443 | } | |
14444 | ||
14445 | ||
14446 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14447 | PyObject *resultobj; | |
14448 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14449 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14450 | int arg3 ; |
d14a1e28 RD |
14451 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14452 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14453 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14454 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14455 | long arg6 = (long) 0 ; | |
14456 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
14457 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14458 | bool result; | |
14459 | wxPoint temp4 ; | |
14460 | wxSize temp5 ; | |
423f194a | 14461 | bool temp7 = False ; |
d14a1e28 RD |
14462 | PyObject * obj0 = 0 ; |
14463 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14464 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14465 | PyObject * obj3 = 0 ; |
14466 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14467 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14468 | PyObject * obj6 = 0 ; |
14469 | char *kwnames[] = { | |
14470 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14471 | }; | |
14472 | ||
8edf1c75 | 14473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
14474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14475 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
14476 | { |
14477 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14478 | if (PyErr_Occurred()) SWIG_fail; | |
14479 | } | |
d14a1e28 RD |
14480 | if (obj3) { |
14481 | { | |
14482 | arg4 = &temp4; | |
14483 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14484 | } | |
14485 | } | |
14486 | if (obj4) { | |
14487 | { | |
14488 | arg5 = &temp5; | |
14489 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14490 | } | |
14491 | } | |
8edf1c75 RD |
14492 | if (obj5) { |
14493 | { | |
14494 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
14495 | if (PyErr_Occurred()) SWIG_fail; | |
14496 | } | |
14497 | } | |
d14a1e28 RD |
14498 | if (obj6) { |
14499 | { | |
14500 | arg7 = wxString_in_helper(obj6); | |
14501 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14502 | temp7 = True; |
d14a1e28 RD |
14503 | } |
14504 | } | |
14505 | { | |
14506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14507 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14508 | ||
14509 | wxPyEndAllowThreads(__tstate); | |
14510 | if (PyErr_Occurred()) SWIG_fail; | |
14511 | } | |
4e760a36 | 14512 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14513 | { |
14514 | if (temp7) | |
14515 | delete arg7; | |
14516 | } | |
14517 | return resultobj; | |
14518 | fail: | |
14519 | { | |
14520 | if (temp7) | |
14521 | delete arg7; | |
14522 | } | |
14523 | return NULL; | |
14524 | } | |
14525 | ||
14526 | ||
14527 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14528 | PyObject *resultobj; | |
14529 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14530 | bool result; | |
14531 | PyObject * obj0 = 0 ; | |
14532 | char *kwnames[] = { | |
14533 | (char *) "self", NULL | |
14534 | }; | |
14535 | ||
14536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
14537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14538 | { | |
14539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14540 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
14541 | ||
14542 | wxPyEndAllowThreads(__tstate); | |
14543 | if (PyErr_Occurred()) SWIG_fail; | |
14544 | } | |
4e760a36 | 14545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14546 | return resultobj; |
14547 | fail: | |
14548 | return NULL; | |
14549 | } | |
14550 | ||
14551 | ||
14552 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
14553 | PyObject *obj; | |
14554 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14555 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
14556 | Py_INCREF(obj); | |
14557 | return Py_BuildValue((char *)""); | |
14558 | } | |
14559 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14560 | PyObject *resultobj; | |
14561 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14562 | int arg2 = (int) 0 ; | |
14563 | int arg3 = (int) -1 ; | |
14564 | int arg4 = (int) -1 ; | |
14565 | wxListbookEvent *result; | |
8edf1c75 RD |
14566 | PyObject * obj0 = 0 ; |
14567 | PyObject * obj1 = 0 ; | |
14568 | PyObject * obj2 = 0 ; | |
14569 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14570 | char *kwnames[] = { |
14571 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14572 | }; | |
14573 | ||
8edf1c75 RD |
14574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14575 | if (obj0) { | |
14576 | { | |
14577 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
14578 | if (PyErr_Occurred()) SWIG_fail; | |
14579 | } | |
14580 | } | |
14581 | if (obj1) { | |
14582 | { | |
14583 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14584 | if (PyErr_Occurred()) SWIG_fail; | |
14585 | } | |
14586 | } | |
14587 | if (obj2) { | |
14588 | { | |
14589 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14590 | if (PyErr_Occurred()) SWIG_fail; | |
14591 | } | |
14592 | } | |
14593 | if (obj3) { | |
14594 | { | |
14595 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14596 | if (PyErr_Occurred()) SWIG_fail; | |
14597 | } | |
14598 | } | |
d14a1e28 RD |
14599 | { |
14600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14601 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
14602 | ||
14603 | wxPyEndAllowThreads(__tstate); | |
14604 | if (PyErr_Occurred()) SWIG_fail; | |
14605 | } | |
14606 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbookEvent, 1); | |
14607 | return resultobj; | |
14608 | fail: | |
14609 | return NULL; | |
14610 | } | |
14611 | ||
14612 | ||
14613 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
14614 | PyObject *obj; | |
14615 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14616 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
14617 | Py_INCREF(obj); | |
14618 | return Py_BuildValue((char *)""); | |
14619 | } | |
14620 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14621 | PyObject *resultobj; | |
14622 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14623 | wxBookCtrlSizer *result; | |
14624 | PyObject * obj0 = 0 ; | |
14625 | char *kwnames[] = { | |
14626 | (char *) "nb", NULL | |
14627 | }; | |
14628 | ||
14629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
14630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14631 | { | |
14632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14633 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
14634 | ||
14635 | wxPyEndAllowThreads(__tstate); | |
14636 | if (PyErr_Occurred()) SWIG_fail; | |
14637 | } | |
14638 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlSizer, 1); | |
14639 | return resultobj; | |
14640 | fail: | |
14641 | return NULL; | |
14642 | } | |
14643 | ||
14644 | ||
14645 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14646 | PyObject *resultobj; | |
14647 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14648 | PyObject * obj0 = 0 ; | |
14649 | char *kwnames[] = { | |
14650 | (char *) "self", NULL | |
14651 | }; | |
14652 | ||
14653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14655 | { | |
14656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14657 | (arg1)->RecalcSizes(); | |
14658 | ||
14659 | wxPyEndAllowThreads(__tstate); | |
14660 | if (PyErr_Occurred()) SWIG_fail; | |
14661 | } | |
14662 | Py_INCREF(Py_None); resultobj = Py_None; | |
14663 | return resultobj; | |
14664 | fail: | |
14665 | return NULL; | |
14666 | } | |
14667 | ||
14668 | ||
14669 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14670 | PyObject *resultobj; | |
14671 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14672 | wxSize result; | |
14673 | PyObject * obj0 = 0 ; | |
14674 | char *kwnames[] = { | |
14675 | (char *) "self", NULL | |
14676 | }; | |
14677 | ||
14678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14680 | { | |
14681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14682 | result = (arg1)->CalcMin(); | |
14683 | ||
14684 | wxPyEndAllowThreads(__tstate); | |
14685 | if (PyErr_Occurred()) SWIG_fail; | |
14686 | } | |
14687 | { | |
14688 | wxSize * resultptr; | |
14689 | resultptr = new wxSize((wxSize &) result); | |
14690 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14691 | } | |
14692 | return resultobj; | |
14693 | fail: | |
14694 | return NULL; | |
14695 | } | |
14696 | ||
14697 | ||
14698 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14699 | PyObject *resultobj; | |
14700 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14701 | wxBookCtrl *result; | |
14702 | PyObject * obj0 = 0 ; | |
14703 | char *kwnames[] = { | |
14704 | (char *) "self", NULL | |
14705 | }; | |
14706 | ||
14707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
14708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14709 | { | |
14710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14711 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
14712 | ||
14713 | wxPyEndAllowThreads(__tstate); | |
14714 | if (PyErr_Occurred()) SWIG_fail; | |
14715 | } | |
14716 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrl, 0); | |
14717 | return resultobj; | |
14718 | fail: | |
14719 | return NULL; | |
14720 | } | |
14721 | ||
14722 | ||
14723 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
14724 | PyObject *obj; | |
14725 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14726 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
14727 | Py_INCREF(obj); | |
14728 | return Py_BuildValue((char *)""); | |
14729 | } | |
14730 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14731 | PyObject *resultobj; | |
14732 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14733 | wxNotebookSizer *result; | |
14734 | PyObject * obj0 = 0 ; | |
14735 | char *kwnames[] = { | |
14736 | (char *) "nb", NULL | |
14737 | }; | |
14738 | ||
14739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
14740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14741 | { | |
14742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14743 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
14744 | ||
14745 | wxPyEndAllowThreads(__tstate); | |
14746 | if (PyErr_Occurred()) SWIG_fail; | |
14747 | } | |
14748 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookSizer, 1); | |
14749 | return resultobj; | |
14750 | fail: | |
14751 | return NULL; | |
14752 | } | |
14753 | ||
14754 | ||
14755 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14756 | PyObject *resultobj; | |
14757 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14758 | PyObject * obj0 = 0 ; | |
14759 | char *kwnames[] = { | |
14760 | (char *) "self", NULL | |
14761 | }; | |
14762 | ||
14763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14765 | { | |
14766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14767 | (arg1)->RecalcSizes(); | |
14768 | ||
14769 | wxPyEndAllowThreads(__tstate); | |
14770 | if (PyErr_Occurred()) SWIG_fail; | |
14771 | } | |
14772 | Py_INCREF(Py_None); resultobj = Py_None; | |
14773 | return resultobj; | |
14774 | fail: | |
14775 | return NULL; | |
14776 | } | |
14777 | ||
14778 | ||
14779 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14780 | PyObject *resultobj; | |
14781 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14782 | wxSize result; | |
14783 | PyObject * obj0 = 0 ; | |
14784 | char *kwnames[] = { | |
14785 | (char *) "self", NULL | |
14786 | }; | |
14787 | ||
14788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14790 | { | |
14791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14792 | result = (arg1)->CalcMin(); | |
14793 | ||
14794 | wxPyEndAllowThreads(__tstate); | |
14795 | if (PyErr_Occurred()) SWIG_fail; | |
14796 | } | |
14797 | { | |
14798 | wxSize * resultptr; | |
14799 | resultptr = new wxSize((wxSize &) result); | |
14800 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14801 | } | |
14802 | return resultobj; | |
14803 | fail: | |
14804 | return NULL; | |
14805 | } | |
14806 | ||
14807 | ||
14808 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14809 | PyObject *resultobj; | |
14810 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14811 | wxNotebook *result; | |
14812 | PyObject * obj0 = 0 ; | |
14813 | char *kwnames[] = { | |
14814 | (char *) "self", NULL | |
14815 | }; | |
14816 | ||
14817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
14818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14819 | { | |
14820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14821 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
14822 | ||
14823 | wxPyEndAllowThreads(__tstate); | |
14824 | if (PyErr_Occurred()) SWIG_fail; | |
14825 | } | |
14826 | { | |
14827 | resultobj = wxPyMake_wxObject(result); | |
14828 | } | |
14829 | return resultobj; | |
14830 | fail: | |
14831 | return NULL; | |
14832 | } | |
14833 | ||
14834 | ||
14835 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
14836 | PyObject *obj; | |
14837 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14838 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
14839 | Py_INCREF(obj); | |
14840 | return Py_BuildValue((char *)""); | |
14841 | } | |
14842 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14843 | PyObject *resultobj; | |
14844 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14845 | int result; | |
14846 | PyObject * obj0 = 0 ; | |
14847 | char *kwnames[] = { | |
14848 | (char *) "self", NULL | |
14849 | }; | |
14850 | ||
14851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
14852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14853 | { | |
14854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14855 | result = (int)(arg1)->GetId(); | |
14856 | ||
14857 | wxPyEndAllowThreads(__tstate); | |
14858 | if (PyErr_Occurred()) SWIG_fail; | |
14859 | } | |
8edf1c75 | 14860 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14861 | return resultobj; |
14862 | fail: | |
14863 | return NULL; | |
14864 | } | |
14865 | ||
14866 | ||
14867 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14868 | PyObject *resultobj; | |
14869 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14870 | wxControl *result; | |
14871 | PyObject * obj0 = 0 ; | |
14872 | char *kwnames[] = { | |
14873 | (char *) "self", NULL | |
14874 | }; | |
14875 | ||
14876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
14877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14878 | { | |
14879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14880 | result = (wxControl *)(arg1)->GetControl(); | |
14881 | ||
14882 | wxPyEndAllowThreads(__tstate); | |
14883 | if (PyErr_Occurred()) SWIG_fail; | |
14884 | } | |
14885 | { | |
14886 | resultobj = wxPyMake_wxObject(result); | |
14887 | } | |
14888 | return resultobj; | |
14889 | fail: | |
14890 | return NULL; | |
14891 | } | |
14892 | ||
14893 | ||
14894 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14895 | PyObject *resultobj; | |
14896 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14897 | wxToolBarBase *result; | |
14898 | PyObject * obj0 = 0 ; | |
14899 | char *kwnames[] = { | |
14900 | (char *) "self", NULL | |
14901 | }; | |
14902 | ||
14903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
14904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14905 | { | |
14906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14907 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
14908 | ||
14909 | wxPyEndAllowThreads(__tstate); | |
14910 | if (PyErr_Occurred()) SWIG_fail; | |
14911 | } | |
14912 | { | |
14913 | resultobj = wxPyMake_wxObject(result); | |
14914 | } | |
14915 | return resultobj; | |
14916 | fail: | |
14917 | return NULL; | |
14918 | } | |
14919 | ||
14920 | ||
14921 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14922 | PyObject *resultobj; | |
14923 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14924 | int result; | |
14925 | PyObject * obj0 = 0 ; | |
14926 | char *kwnames[] = { | |
14927 | (char *) "self", NULL | |
14928 | }; | |
14929 | ||
14930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
14931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14932 | { | |
14933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14934 | result = (int)(arg1)->IsButton(); | |
14935 | ||
14936 | wxPyEndAllowThreads(__tstate); | |
14937 | if (PyErr_Occurred()) SWIG_fail; | |
14938 | } | |
8edf1c75 | 14939 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14940 | return resultobj; |
14941 | fail: | |
14942 | return NULL; | |
14943 | } | |
14944 | ||
14945 | ||
14946 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14947 | PyObject *resultobj; | |
14948 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14949 | int result; | |
14950 | PyObject * obj0 = 0 ; | |
14951 | char *kwnames[] = { | |
14952 | (char *) "self", NULL | |
14953 | }; | |
14954 | ||
14955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
14956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14957 | { | |
14958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14959 | result = (int)(arg1)->IsControl(); | |
14960 | ||
14961 | wxPyEndAllowThreads(__tstate); | |
14962 | if (PyErr_Occurred()) SWIG_fail; | |
14963 | } | |
8edf1c75 | 14964 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14965 | return resultobj; |
14966 | fail: | |
14967 | return NULL; | |
14968 | } | |
14969 | ||
14970 | ||
14971 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14972 | PyObject *resultobj; | |
14973 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14974 | int result; | |
14975 | PyObject * obj0 = 0 ; | |
14976 | char *kwnames[] = { | |
14977 | (char *) "self", NULL | |
14978 | }; | |
14979 | ||
14980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
14981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14982 | { | |
14983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14984 | result = (int)(arg1)->IsSeparator(); | |
14985 | ||
14986 | wxPyEndAllowThreads(__tstate); | |
14987 | if (PyErr_Occurred()) SWIG_fail; | |
14988 | } | |
8edf1c75 | 14989 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14990 | return resultobj; |
14991 | fail: | |
14992 | return NULL; | |
14993 | } | |
14994 | ||
14995 | ||
14996 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14997 | PyObject *resultobj; | |
14998 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14999 | int result; | |
15000 | PyObject * obj0 = 0 ; | |
15001 | char *kwnames[] = { | |
15002 | (char *) "self", NULL | |
15003 | }; | |
15004 | ||
15005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
15006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15007 | { | |
15008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15009 | result = (int)(arg1)->GetStyle(); | |
15010 | ||
15011 | wxPyEndAllowThreads(__tstate); | |
15012 | if (PyErr_Occurred()) SWIG_fail; | |
15013 | } | |
8edf1c75 | 15014 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15015 | return resultobj; |
15016 | fail: | |
15017 | return NULL; | |
15018 | } | |
15019 | ||
15020 | ||
15021 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15022 | PyObject *resultobj; | |
15023 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15024 | int result; | |
15025 | PyObject * obj0 = 0 ; | |
15026 | char *kwnames[] = { | |
15027 | (char *) "self", NULL | |
15028 | }; | |
15029 | ||
15030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
15031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15032 | { | |
15033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15034 | result = (int)(arg1)->GetKind(); | |
15035 | ||
15036 | wxPyEndAllowThreads(__tstate); | |
15037 | if (PyErr_Occurred()) SWIG_fail; | |
15038 | } | |
8edf1c75 | 15039 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15040 | return resultobj; |
15041 | fail: | |
15042 | return NULL; | |
15043 | } | |
15044 | ||
15045 | ||
15046 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15047 | PyObject *resultobj; | |
15048 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15049 | bool result; | |
15050 | PyObject * obj0 = 0 ; | |
15051 | char *kwnames[] = { | |
15052 | (char *) "self", NULL | |
15053 | }; | |
15054 | ||
15055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
15056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15057 | { | |
15058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15059 | result = (bool)(arg1)->IsEnabled(); | |
15060 | ||
15061 | wxPyEndAllowThreads(__tstate); | |
15062 | if (PyErr_Occurred()) SWIG_fail; | |
15063 | } | |
4e760a36 | 15064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15065 | return resultobj; |
15066 | fail: | |
15067 | return NULL; | |
15068 | } | |
15069 | ||
15070 | ||
15071 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15072 | PyObject *resultobj; | |
15073 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15074 | bool result; | |
15075 | PyObject * obj0 = 0 ; | |
15076 | char *kwnames[] = { | |
15077 | (char *) "self", NULL | |
15078 | }; | |
15079 | ||
15080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
15081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15082 | { | |
15083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15084 | result = (bool)(arg1)->IsToggled(); | |
15085 | ||
15086 | wxPyEndAllowThreads(__tstate); | |
15087 | if (PyErr_Occurred()) SWIG_fail; | |
15088 | } | |
4e760a36 | 15089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15090 | return resultobj; |
15091 | fail: | |
15092 | return NULL; | |
15093 | } | |
15094 | ||
15095 | ||
15096 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15097 | PyObject *resultobj; | |
15098 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15099 | bool result; | |
15100 | PyObject * obj0 = 0 ; | |
15101 | char *kwnames[] = { | |
15102 | (char *) "self", NULL | |
15103 | }; | |
15104 | ||
15105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
15106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15107 | { | |
15108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15109 | result = (bool)(arg1)->CanBeToggled(); | |
15110 | ||
15111 | wxPyEndAllowThreads(__tstate); | |
15112 | if (PyErr_Occurred()) SWIG_fail; | |
15113 | } | |
4e760a36 | 15114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15115 | return resultobj; |
15116 | fail: | |
15117 | return NULL; | |
15118 | } | |
15119 | ||
15120 | ||
15121 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15122 | PyObject *resultobj; | |
15123 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15124 | wxBitmap *result; | |
15125 | PyObject * obj0 = 0 ; | |
15126 | char *kwnames[] = { | |
15127 | (char *) "self", NULL | |
15128 | }; | |
15129 | ||
15130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
15131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15132 | { | |
15133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15134 | { | |
15135 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
15136 | result = (wxBitmap *) &_result_ref; | |
15137 | } | |
15138 | ||
15139 | wxPyEndAllowThreads(__tstate); | |
15140 | if (PyErr_Occurred()) SWIG_fail; | |
15141 | } | |
15142 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
15143 | return resultobj; | |
15144 | fail: | |
15145 | return NULL; | |
15146 | } | |
15147 | ||
15148 | ||
15149 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15150 | PyObject *resultobj; | |
15151 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15152 | wxBitmap *result; | |
15153 | PyObject * obj0 = 0 ; | |
15154 | char *kwnames[] = { | |
15155 | (char *) "self", NULL | |
15156 | }; | |
15157 | ||
15158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
15159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15160 | { | |
15161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15162 | { | |
15163 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
15164 | result = (wxBitmap *) &_result_ref; | |
15165 | } | |
15166 | ||
15167 | wxPyEndAllowThreads(__tstate); | |
15168 | if (PyErr_Occurred()) SWIG_fail; | |
15169 | } | |
15170 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
15171 | return resultobj; | |
15172 | fail: | |
15173 | return NULL; | |
15174 | } | |
15175 | ||
15176 | ||
15177 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15178 | PyObject *resultobj; | |
15179 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15180 | wxBitmap result; | |
15181 | PyObject * obj0 = 0 ; | |
15182 | char *kwnames[] = { | |
15183 | (char *) "self", NULL | |
15184 | }; | |
15185 | ||
15186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
15187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15188 | { | |
15189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15190 | result = (arg1)->GetBitmap(); | |
15191 | ||
15192 | wxPyEndAllowThreads(__tstate); | |
15193 | if (PyErr_Occurred()) SWIG_fail; | |
15194 | } | |
15195 | { | |
15196 | wxBitmap * resultptr; | |
15197 | resultptr = new wxBitmap((wxBitmap &) result); | |
15198 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
15199 | } | |
15200 | return resultobj; | |
15201 | fail: | |
15202 | return NULL; | |
15203 | } | |
15204 | ||
15205 | ||
15206 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15207 | PyObject *resultobj; | |
15208 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15209 | wxString result; | |
15210 | PyObject * obj0 = 0 ; | |
15211 | char *kwnames[] = { | |
15212 | (char *) "self", NULL | |
15213 | }; | |
15214 | ||
15215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
15216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15217 | { | |
15218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15219 | result = (arg1)->GetLabel(); | |
15220 | ||
15221 | wxPyEndAllowThreads(__tstate); | |
15222 | if (PyErr_Occurred()) SWIG_fail; | |
15223 | } | |
15224 | { | |
15225 | #if wxUSE_UNICODE | |
15226 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15227 | #else | |
15228 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15229 | #endif | |
15230 | } | |
15231 | return resultobj; | |
15232 | fail: | |
15233 | return NULL; | |
15234 | } | |
15235 | ||
15236 | ||
15237 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15238 | PyObject *resultobj; | |
15239 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15240 | wxString result; | |
15241 | PyObject * obj0 = 0 ; | |
15242 | char *kwnames[] = { | |
15243 | (char *) "self", NULL | |
15244 | }; | |
15245 | ||
15246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
15247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15248 | { | |
15249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15250 | result = (arg1)->GetShortHelp(); | |
15251 | ||
15252 | wxPyEndAllowThreads(__tstate); | |
15253 | if (PyErr_Occurred()) SWIG_fail; | |
15254 | } | |
15255 | { | |
15256 | #if wxUSE_UNICODE | |
15257 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15258 | #else | |
15259 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15260 | #endif | |
15261 | } | |
15262 | return resultobj; | |
15263 | fail: | |
15264 | return NULL; | |
15265 | } | |
15266 | ||
15267 | ||
15268 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15269 | PyObject *resultobj; | |
15270 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15271 | wxString result; | |
15272 | PyObject * obj0 = 0 ; | |
15273 | char *kwnames[] = { | |
15274 | (char *) "self", NULL | |
15275 | }; | |
15276 | ||
15277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
15278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15279 | { | |
15280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15281 | result = (arg1)->GetLongHelp(); | |
15282 | ||
15283 | wxPyEndAllowThreads(__tstate); | |
15284 | if (PyErr_Occurred()) SWIG_fail; | |
15285 | } | |
15286 | { | |
15287 | #if wxUSE_UNICODE | |
15288 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15289 | #else | |
15290 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15291 | #endif | |
15292 | } | |
15293 | return resultobj; | |
15294 | fail: | |
15295 | return NULL; | |
15296 | } | |
15297 | ||
15298 | ||
15299 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15300 | PyObject *resultobj; | |
15301 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15302 | bool arg2 ; | |
15303 | bool result; | |
15304 | PyObject * obj0 = 0 ; | |
15305 | PyObject * obj1 = 0 ; | |
15306 | char *kwnames[] = { | |
15307 | (char *) "self",(char *) "enable", NULL | |
15308 | }; | |
15309 | ||
15310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15312 | { |
8edf1c75 | 15313 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15314 | if (PyErr_Occurred()) SWIG_fail; |
15315 | } | |
d14a1e28 RD |
15316 | { |
15317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15318 | result = (bool)(arg1)->Enable(arg2); | |
15319 | ||
15320 | wxPyEndAllowThreads(__tstate); | |
15321 | if (PyErr_Occurred()) SWIG_fail; | |
15322 | } | |
4e760a36 | 15323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15324 | return resultobj; |
15325 | fail: | |
15326 | return NULL; | |
15327 | } | |
15328 | ||
15329 | ||
15330 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15331 | PyObject *resultobj; | |
15332 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15333 | PyObject * obj0 = 0 ; | |
15334 | char *kwnames[] = { | |
15335 | (char *) "self", NULL | |
15336 | }; | |
15337 | ||
15338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
15339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15340 | { | |
15341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15342 | (arg1)->Toggle(); | |
15343 | ||
15344 | wxPyEndAllowThreads(__tstate); | |
15345 | if (PyErr_Occurred()) SWIG_fail; | |
15346 | } | |
15347 | Py_INCREF(Py_None); resultobj = Py_None; | |
15348 | return resultobj; | |
15349 | fail: | |
15350 | return NULL; | |
15351 | } | |
15352 | ||
15353 | ||
15354 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15355 | PyObject *resultobj; | |
15356 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15357 | bool arg2 ; | |
15358 | bool result; | |
15359 | PyObject * obj0 = 0 ; | |
15360 | PyObject * obj1 = 0 ; | |
15361 | char *kwnames[] = { | |
15362 | (char *) "self",(char *) "toggle", NULL | |
15363 | }; | |
15364 | ||
15365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
15366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15367 | { |
8edf1c75 | 15368 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15369 | if (PyErr_Occurred()) SWIG_fail; |
15370 | } | |
d14a1e28 RD |
15371 | { |
15372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15373 | result = (bool)(arg1)->SetToggle(arg2); | |
15374 | ||
15375 | wxPyEndAllowThreads(__tstate); | |
15376 | if (PyErr_Occurred()) SWIG_fail; | |
15377 | } | |
4e760a36 | 15378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15379 | return resultobj; |
15380 | fail: | |
15381 | return NULL; | |
15382 | } | |
15383 | ||
15384 | ||
15385 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15386 | PyObject *resultobj; | |
15387 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15388 | wxString *arg2 = 0 ; | |
15389 | bool result; | |
423f194a | 15390 | bool temp2 = False ; |
d14a1e28 RD |
15391 | PyObject * obj0 = 0 ; |
15392 | PyObject * obj1 = 0 ; | |
15393 | char *kwnames[] = { | |
15394 | (char *) "self",(char *) "help", NULL | |
15395 | }; | |
15396 | ||
15397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
15398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15399 | { | |
15400 | arg2 = wxString_in_helper(obj1); | |
15401 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15402 | temp2 = True; |
d14a1e28 RD |
15403 | } |
15404 | { | |
15405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15406 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
15407 | ||
15408 | wxPyEndAllowThreads(__tstate); | |
15409 | if (PyErr_Occurred()) SWIG_fail; | |
15410 | } | |
4e760a36 | 15411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15412 | { |
15413 | if (temp2) | |
15414 | delete arg2; | |
15415 | } | |
15416 | return resultobj; | |
15417 | fail: | |
15418 | { | |
15419 | if (temp2) | |
15420 | delete arg2; | |
15421 | } | |
15422 | return NULL; | |
15423 | } | |
15424 | ||
15425 | ||
15426 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15427 | PyObject *resultobj; | |
15428 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15429 | wxString *arg2 = 0 ; | |
15430 | bool result; | |
423f194a | 15431 | bool temp2 = False ; |
d14a1e28 RD |
15432 | PyObject * obj0 = 0 ; |
15433 | PyObject * obj1 = 0 ; | |
15434 | char *kwnames[] = { | |
15435 | (char *) "self",(char *) "help", NULL | |
15436 | }; | |
15437 | ||
15438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15440 | { | |
15441 | arg2 = wxString_in_helper(obj1); | |
15442 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15443 | temp2 = True; |
d14a1e28 RD |
15444 | } |
15445 | { | |
15446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15447 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
15448 | ||
15449 | wxPyEndAllowThreads(__tstate); | |
15450 | if (PyErr_Occurred()) SWIG_fail; | |
15451 | } | |
4e760a36 | 15452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15453 | { |
15454 | if (temp2) | |
15455 | delete arg2; | |
15456 | } | |
15457 | return resultobj; | |
15458 | fail: | |
15459 | { | |
15460 | if (temp2) | |
15461 | delete arg2; | |
15462 | } | |
15463 | return NULL; | |
15464 | } | |
15465 | ||
15466 | ||
15467 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15468 | PyObject *resultobj; | |
15469 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15470 | wxBitmap *arg2 = 0 ; | |
15471 | PyObject * obj0 = 0 ; | |
15472 | PyObject * obj1 = 0 ; | |
15473 | char *kwnames[] = { | |
15474 | (char *) "self",(char *) "bmp", NULL | |
15475 | }; | |
15476 | ||
15477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15479 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15480 | if (arg2 == NULL) { | |
15481 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15482 | } | |
15483 | { | |
15484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15485 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
15486 | ||
15487 | wxPyEndAllowThreads(__tstate); | |
15488 | if (PyErr_Occurred()) SWIG_fail; | |
15489 | } | |
15490 | Py_INCREF(Py_None); resultobj = Py_None; | |
15491 | return resultobj; | |
15492 | fail: | |
15493 | return NULL; | |
15494 | } | |
15495 | ||
15496 | ||
15497 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15498 | PyObject *resultobj; | |
15499 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15500 | wxBitmap *arg2 = 0 ; | |
15501 | PyObject * obj0 = 0 ; | |
15502 | PyObject * obj1 = 0 ; | |
15503 | char *kwnames[] = { | |
15504 | (char *) "self",(char *) "bmp", NULL | |
15505 | }; | |
15506 | ||
15507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15509 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15510 | if (arg2 == NULL) { | |
15511 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15512 | } | |
15513 | { | |
15514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15515 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
15516 | ||
15517 | wxPyEndAllowThreads(__tstate); | |
15518 | if (PyErr_Occurred()) SWIG_fail; | |
15519 | } | |
15520 | Py_INCREF(Py_None); resultobj = Py_None; | |
15521 | return resultobj; | |
15522 | fail: | |
15523 | return NULL; | |
15524 | } | |
15525 | ||
15526 | ||
15527 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15528 | PyObject *resultobj; | |
15529 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15530 | wxString *arg2 = 0 ; | |
423f194a | 15531 | bool temp2 = False ; |
d14a1e28 RD |
15532 | PyObject * obj0 = 0 ; |
15533 | PyObject * obj1 = 0 ; | |
15534 | char *kwnames[] = { | |
15535 | (char *) "self",(char *) "label", NULL | |
15536 | }; | |
15537 | ||
15538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15540 | { | |
15541 | arg2 = wxString_in_helper(obj1); | |
15542 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15543 | temp2 = True; |
d14a1e28 RD |
15544 | } |
15545 | { | |
15546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15547 | (arg1)->SetLabel((wxString const &)*arg2); | |
15548 | ||
15549 | wxPyEndAllowThreads(__tstate); | |
15550 | if (PyErr_Occurred()) SWIG_fail; | |
15551 | } | |
15552 | Py_INCREF(Py_None); resultobj = Py_None; | |
15553 | { | |
15554 | if (temp2) | |
15555 | delete arg2; | |
15556 | } | |
15557 | return resultobj; | |
15558 | fail: | |
15559 | { | |
15560 | if (temp2) | |
15561 | delete arg2; | |
15562 | } | |
15563 | return NULL; | |
15564 | } | |
15565 | ||
15566 | ||
15567 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15568 | PyObject *resultobj; | |
15569 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15570 | PyObject * obj0 = 0 ; | |
15571 | char *kwnames[] = { | |
15572 | (char *) "self", NULL | |
15573 | }; | |
15574 | ||
15575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
15576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15577 | { | |
15578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15579 | (arg1)->Detach(); | |
15580 | ||
15581 | wxPyEndAllowThreads(__tstate); | |
15582 | if (PyErr_Occurred()) SWIG_fail; | |
15583 | } | |
15584 | Py_INCREF(Py_None); resultobj = Py_None; | |
15585 | return resultobj; | |
15586 | fail: | |
15587 | return NULL; | |
15588 | } | |
15589 | ||
15590 | ||
15591 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15592 | PyObject *resultobj; | |
15593 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15594 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
15595 | PyObject * obj0 = 0 ; | |
15596 | PyObject * obj1 = 0 ; | |
15597 | char *kwnames[] = { | |
15598 | (char *) "self",(char *) "tbar", NULL | |
15599 | }; | |
15600 | ||
15601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15603 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15604 | { | |
15605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15606 | (arg1)->Attach(arg2); | |
15607 | ||
15608 | wxPyEndAllowThreads(__tstate); | |
15609 | if (PyErr_Occurred()) SWIG_fail; | |
15610 | } | |
15611 | Py_INCREF(Py_None); resultobj = Py_None; | |
15612 | return resultobj; | |
15613 | fail: | |
15614 | return NULL; | |
15615 | } | |
15616 | ||
15617 | ||
15618 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15619 | PyObject *resultobj; | |
15620 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15621 | PyObject *result; | |
15622 | PyObject * obj0 = 0 ; | |
15623 | char *kwnames[] = { | |
15624 | (char *) "self", NULL | |
15625 | }; | |
15626 | ||
15627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15629 | { | |
15630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15631 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
15632 | ||
15633 | wxPyEndAllowThreads(__tstate); | |
15634 | if (PyErr_Occurred()) SWIG_fail; | |
15635 | } | |
15636 | resultobj = result; | |
15637 | return resultobj; | |
15638 | fail: | |
15639 | return NULL; | |
15640 | } | |
15641 | ||
15642 | ||
15643 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15644 | PyObject *resultobj; | |
15645 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15646 | PyObject *arg2 = (PyObject *) 0 ; | |
15647 | PyObject * obj0 = 0 ; | |
15648 | PyObject * obj1 = 0 ; | |
15649 | char *kwnames[] = { | |
15650 | (char *) "self",(char *) "clientData", NULL | |
15651 | }; | |
15652 | ||
15653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15655 | arg2 = obj1; | |
15656 | { | |
15657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15658 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
15659 | ||
15660 | wxPyEndAllowThreads(__tstate); | |
15661 | if (PyErr_Occurred()) SWIG_fail; | |
15662 | } | |
15663 | Py_INCREF(Py_None); resultobj = Py_None; | |
15664 | return resultobj; | |
15665 | fail: | |
15666 | return NULL; | |
15667 | } | |
15668 | ||
15669 | ||
15670 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
15671 | PyObject *obj; | |
15672 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15673 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
15674 | Py_INCREF(obj); | |
15675 | return Py_BuildValue((char *)""); | |
15676 | } | |
15677 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15678 | PyObject *resultobj; | |
15679 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15680 | int arg2 ; | |
15681 | wxString *arg3 = 0 ; | |
15682 | wxBitmap *arg4 = 0 ; | |
15683 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
15684 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
15685 | int arg6 = (int) wxITEM_NORMAL ; | |
15686 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15687 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15688 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15689 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15690 | PyObject *arg9 = (PyObject *) NULL ; | |
15691 | wxToolBarToolBase *result; | |
423f194a RD |
15692 | bool temp3 = False ; |
15693 | bool temp7 = False ; | |
15694 | bool temp8 = False ; | |
d14a1e28 | 15695 | PyObject * obj0 = 0 ; |
8edf1c75 | 15696 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15697 | PyObject * obj2 = 0 ; |
15698 | PyObject * obj3 = 0 ; | |
15699 | PyObject * obj4 = 0 ; | |
8edf1c75 | 15700 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15701 | PyObject * obj6 = 0 ; |
15702 | PyObject * obj7 = 0 ; | |
15703 | PyObject * obj8 = 0 ; | |
15704 | char *kwnames[] = { | |
15705 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15706 | }; | |
15707 | ||
8edf1c75 | 15708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 15709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15710 | { |
15711 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15712 | if (PyErr_Occurred()) SWIG_fail; | |
15713 | } | |
d14a1e28 RD |
15714 | { |
15715 | arg3 = wxString_in_helper(obj2); | |
15716 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 15717 | temp3 = True; |
d14a1e28 RD |
15718 | } |
15719 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15720 | if (arg4 == NULL) { | |
15721 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15722 | } | |
15723 | if (obj4) { | |
15724 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15725 | if (arg5 == NULL) { | |
15726 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15727 | } | |
15728 | } | |
8edf1c75 RD |
15729 | if (obj5) { |
15730 | { | |
15731 | arg6 = (wxItemKind) SWIG_PyObj_AsInt(obj5); | |
15732 | if (PyErr_Occurred()) SWIG_fail; | |
15733 | } | |
15734 | } | |
d14a1e28 RD |
15735 | if (obj6) { |
15736 | { | |
15737 | arg7 = wxString_in_helper(obj6); | |
15738 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 15739 | temp7 = True; |
d14a1e28 RD |
15740 | } |
15741 | } | |
15742 | if (obj7) { | |
15743 | { | |
15744 | arg8 = wxString_in_helper(obj7); | |
15745 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 15746 | temp8 = True; |
d14a1e28 RD |
15747 | } |
15748 | } | |
15749 | if (obj8) { | |
15750 | arg9 = obj8; | |
15751 | } | |
15752 | { | |
15753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15754 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
15755 | ||
15756 | wxPyEndAllowThreads(__tstate); | |
15757 | if (PyErr_Occurred()) SWIG_fail; | |
15758 | } | |
15759 | { | |
15760 | resultobj = wxPyMake_wxObject(result); | |
15761 | } | |
15762 | { | |
15763 | if (temp3) | |
15764 | delete arg3; | |
15765 | } | |
15766 | { | |
15767 | if (temp7) | |
15768 | delete arg7; | |
15769 | } | |
15770 | { | |
15771 | if (temp8) | |
15772 | delete arg8; | |
15773 | } | |
15774 | return resultobj; | |
15775 | fail: | |
15776 | { | |
15777 | if (temp3) | |
15778 | delete arg3; | |
15779 | } | |
15780 | { | |
15781 | if (temp7) | |
15782 | delete arg7; | |
15783 | } | |
15784 | { | |
15785 | if (temp8) | |
15786 | delete arg8; | |
15787 | } | |
15788 | return NULL; | |
15789 | } | |
15790 | ||
15791 | ||
15792 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15793 | PyObject *resultobj; | |
15794 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15795 | size_t arg2 ; | |
15796 | int arg3 ; | |
15797 | wxString *arg4 = 0 ; | |
15798 | wxBitmap *arg5 = 0 ; | |
15799 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
15800 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
15801 | int arg7 = (int) wxITEM_NORMAL ; | |
15802 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15803 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15804 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
15805 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
15806 | PyObject *arg10 = (PyObject *) NULL ; | |
15807 | wxToolBarToolBase *result; | |
423f194a RD |
15808 | bool temp4 = False ; |
15809 | bool temp8 = False ; | |
15810 | bool temp9 = False ; | |
d14a1e28 RD |
15811 | PyObject * obj0 = 0 ; |
15812 | PyObject * obj1 = 0 ; | |
8edf1c75 | 15813 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15814 | PyObject * obj3 = 0 ; |
15815 | PyObject * obj4 = 0 ; | |
15816 | PyObject * obj5 = 0 ; | |
8edf1c75 | 15817 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
15818 | PyObject * obj7 = 0 ; |
15819 | PyObject * obj8 = 0 ; | |
15820 | PyObject * obj9 = 0 ; | |
15821 | char *kwnames[] = { | |
15822 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15823 | }; | |
15824 | ||
8edf1c75 | 15825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 15826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 15827 | { |
8edf1c75 RD |
15828 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
15829 | if (PyErr_Occurred()) SWIG_fail; | |
15830 | } | |
15831 | { | |
15832 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
15833 | if (PyErr_Occurred()) SWIG_fail; |
15834 | } | |
d14a1e28 RD |
15835 | { |
15836 | arg4 = wxString_in_helper(obj3); | |
15837 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 15838 | temp4 = True; |
d14a1e28 RD |
15839 | } |
15840 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15841 | if (arg5 == NULL) { | |
15842 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15843 | } | |
15844 | if (obj5) { | |
15845 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15846 | if (arg6 == NULL) { | |
15847 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15848 | } | |
15849 | } | |
8edf1c75 RD |
15850 | if (obj6) { |
15851 | { | |
15852 | arg7 = (wxItemKind) SWIG_PyObj_AsInt(obj6); | |
15853 | if (PyErr_Occurred()) SWIG_fail; | |
15854 | } | |
15855 | } | |
d14a1e28 RD |
15856 | if (obj7) { |
15857 | { | |
15858 | arg8 = wxString_in_helper(obj7); | |
15859 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 15860 | temp8 = True; |
d14a1e28 RD |
15861 | } |
15862 | } | |
15863 | if (obj8) { | |
15864 | { | |
15865 | arg9 = wxString_in_helper(obj8); | |
15866 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 15867 | temp9 = True; |
d14a1e28 RD |
15868 | } |
15869 | } | |
15870 | if (obj9) { | |
15871 | arg10 = obj9; | |
15872 | } | |
15873 | { | |
15874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15875 | 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); | |
15876 | ||
15877 | wxPyEndAllowThreads(__tstate); | |
15878 | if (PyErr_Occurred()) SWIG_fail; | |
15879 | } | |
15880 | { | |
15881 | resultobj = wxPyMake_wxObject(result); | |
15882 | } | |
15883 | { | |
15884 | if (temp4) | |
15885 | delete arg4; | |
15886 | } | |
15887 | { | |
15888 | if (temp8) | |
15889 | delete arg8; | |
15890 | } | |
15891 | { | |
15892 | if (temp9) | |
15893 | delete arg9; | |
15894 | } | |
15895 | return resultobj; | |
15896 | fail: | |
15897 | { | |
15898 | if (temp4) | |
15899 | delete arg4; | |
15900 | } | |
15901 | { | |
15902 | if (temp8) | |
15903 | delete arg8; | |
15904 | } | |
15905 | { | |
15906 | if (temp9) | |
15907 | delete arg9; | |
15908 | } | |
15909 | return NULL; | |
15910 | } | |
15911 | ||
15912 | ||
d03fd34d RD |
15913 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
15914 | PyObject *resultobj; | |
15915 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15916 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
15917 | wxToolBarToolBase *result; | |
15918 | PyObject * obj0 = 0 ; | |
15919 | PyObject * obj1 = 0 ; | |
15920 | char *kwnames[] = { | |
15921 | (char *) "self",(char *) "tool", NULL | |
15922 | }; | |
15923 | ||
15924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
15925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15926 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15927 | { | |
15928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15929 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
15930 | ||
15931 | wxPyEndAllowThreads(__tstate); | |
15932 | if (PyErr_Occurred()) SWIG_fail; | |
15933 | } | |
15934 | { | |
15935 | resultobj = wxPyMake_wxObject(result); | |
15936 | } | |
15937 | return resultobj; | |
15938 | fail: | |
15939 | return NULL; | |
15940 | } | |
15941 | ||
15942 | ||
15943 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15944 | PyObject *resultobj; | |
15945 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15946 | size_t arg2 ; | |
15947 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
15948 | wxToolBarToolBase *result; | |
15949 | PyObject * obj0 = 0 ; | |
15950 | PyObject * obj1 = 0 ; | |
15951 | PyObject * obj2 = 0 ; | |
15952 | char *kwnames[] = { | |
15953 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
15954 | }; | |
15955 | ||
15956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15958 | { |
8edf1c75 | 15959 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
15960 | if (PyErr_Occurred()) SWIG_fail; |
15961 | } | |
d03fd34d RD |
15962 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15963 | { | |
15964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15965 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
15966 | ||
15967 | wxPyEndAllowThreads(__tstate); | |
15968 | if (PyErr_Occurred()) SWIG_fail; | |
15969 | } | |
15970 | { | |
15971 | resultobj = wxPyMake_wxObject(result); | |
15972 | } | |
15973 | return resultobj; | |
15974 | fail: | |
15975 | return NULL; | |
15976 | } | |
15977 | ||
15978 | ||
d14a1e28 RD |
15979 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
15980 | PyObject *resultobj; | |
15981 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15982 | wxControl *arg2 = (wxControl *) 0 ; | |
15983 | wxToolBarToolBase *result; | |
15984 | PyObject * obj0 = 0 ; | |
15985 | PyObject * obj1 = 0 ; | |
15986 | char *kwnames[] = { | |
15987 | (char *) "self",(char *) "control", NULL | |
15988 | }; | |
15989 | ||
15990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
15991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15992 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15993 | { | |
15994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15995 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
15996 | ||
15997 | wxPyEndAllowThreads(__tstate); | |
15998 | if (PyErr_Occurred()) SWIG_fail; | |
15999 | } | |
16000 | { | |
16001 | resultobj = wxPyMake_wxObject(result); | |
16002 | } | |
16003 | return resultobj; | |
16004 | fail: | |
16005 | return NULL; | |
16006 | } | |
16007 | ||
16008 | ||
16009 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16010 | PyObject *resultobj; | |
16011 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16012 | size_t arg2 ; | |
16013 | wxControl *arg3 = (wxControl *) 0 ; | |
16014 | wxToolBarToolBase *result; | |
16015 | PyObject * obj0 = 0 ; | |
16016 | PyObject * obj1 = 0 ; | |
16017 | PyObject * obj2 = 0 ; | |
16018 | char *kwnames[] = { | |
16019 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
16020 | }; | |
16021 | ||
16022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16024 | { |
8edf1c75 | 16025 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
16026 | if (PyErr_Occurred()) SWIG_fail; |
16027 | } | |
d14a1e28 RD |
16028 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
16029 | { | |
16030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16031 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
16032 | ||
16033 | wxPyEndAllowThreads(__tstate); | |
16034 | if (PyErr_Occurred()) SWIG_fail; | |
16035 | } | |
16036 | { | |
16037 | resultobj = wxPyMake_wxObject(result); | |
16038 | } | |
16039 | return resultobj; | |
16040 | fail: | |
16041 | return NULL; | |
16042 | } | |
16043 | ||
16044 | ||
16045 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16046 | PyObject *resultobj; | |
16047 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16048 | int arg2 ; | |
16049 | wxControl *result; | |
16050 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16051 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16052 | char *kwnames[] = { |
16053 | (char *) "self",(char *) "id", NULL | |
16054 | }; | |
16055 | ||
8edf1c75 | 16056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16058 | { |
16059 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16060 | if (PyErr_Occurred()) SWIG_fail; | |
16061 | } | |
d14a1e28 RD |
16062 | { |
16063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16064 | result = (wxControl *)(arg1)->FindControl(arg2); | |
16065 | ||
16066 | wxPyEndAllowThreads(__tstate); | |
16067 | if (PyErr_Occurred()) SWIG_fail; | |
16068 | } | |
16069 | { | |
16070 | resultobj = wxPyMake_wxObject(result); | |
16071 | } | |
16072 | return resultobj; | |
16073 | fail: | |
16074 | return NULL; | |
16075 | } | |
16076 | ||
16077 | ||
16078 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16079 | PyObject *resultobj; | |
16080 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16081 | wxToolBarToolBase *result; | |
16082 | PyObject * obj0 = 0 ; | |
16083 | char *kwnames[] = { | |
16084 | (char *) "self", NULL | |
16085 | }; | |
16086 | ||
16087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
16088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16089 | { | |
16090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16091 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
16092 | ||
16093 | wxPyEndAllowThreads(__tstate); | |
16094 | if (PyErr_Occurred()) SWIG_fail; | |
16095 | } | |
16096 | { | |
16097 | resultobj = wxPyMake_wxObject(result); | |
16098 | } | |
16099 | return resultobj; | |
16100 | fail: | |
16101 | return NULL; | |
16102 | } | |
16103 | ||
16104 | ||
16105 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16106 | PyObject *resultobj; | |
16107 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16108 | size_t arg2 ; | |
16109 | wxToolBarToolBase *result; | |
16110 | PyObject * obj0 = 0 ; | |
16111 | PyObject * obj1 = 0 ; | |
16112 | char *kwnames[] = { | |
16113 | (char *) "self",(char *) "pos", NULL | |
16114 | }; | |
16115 | ||
16116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
16117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16118 | { |
8edf1c75 | 16119 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
16120 | if (PyErr_Occurred()) SWIG_fail; |
16121 | } | |
d14a1e28 RD |
16122 | { |
16123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16124 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
16125 | ||
16126 | wxPyEndAllowThreads(__tstate); | |
16127 | if (PyErr_Occurred()) SWIG_fail; | |
16128 | } | |
16129 | { | |
16130 | resultobj = wxPyMake_wxObject(result); | |
16131 | } | |
16132 | return resultobj; | |
16133 | fail: | |
16134 | return NULL; | |
16135 | } | |
16136 | ||
16137 | ||
16138 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16139 | PyObject *resultobj; | |
16140 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16141 | int arg2 ; | |
16142 | wxToolBarToolBase *result; | |
16143 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16144 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16145 | char *kwnames[] = { |
16146 | (char *) "self",(char *) "id", NULL | |
16147 | }; | |
16148 | ||
8edf1c75 | 16149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16151 | { |
16152 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16153 | if (PyErr_Occurred()) SWIG_fail; | |
16154 | } | |
d14a1e28 RD |
16155 | { |
16156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16157 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
16158 | ||
16159 | wxPyEndAllowThreads(__tstate); | |
16160 | if (PyErr_Occurred()) SWIG_fail; | |
16161 | } | |
16162 | { | |
16163 | resultobj = wxPyMake_wxObject(result); | |
16164 | } | |
16165 | return resultobj; | |
16166 | fail: | |
16167 | return NULL; | |
16168 | } | |
16169 | ||
16170 | ||
16171 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16172 | PyObject *resultobj; | |
16173 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16174 | size_t arg2 ; | |
16175 | bool result; | |
16176 | PyObject * obj0 = 0 ; | |
16177 | PyObject * obj1 = 0 ; | |
16178 | char *kwnames[] = { | |
16179 | (char *) "self",(char *) "pos", NULL | |
16180 | }; | |
16181 | ||
16182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
16183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16184 | { |
8edf1c75 | 16185 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
16186 | if (PyErr_Occurred()) SWIG_fail; |
16187 | } | |
d14a1e28 RD |
16188 | { |
16189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16190 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
16191 | ||
16192 | wxPyEndAllowThreads(__tstate); | |
16193 | if (PyErr_Occurred()) SWIG_fail; | |
16194 | } | |
4e760a36 | 16195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16196 | return resultobj; |
16197 | fail: | |
16198 | return NULL; | |
16199 | } | |
16200 | ||
16201 | ||
16202 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16203 | PyObject *resultobj; | |
16204 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16205 | int arg2 ; | |
16206 | bool result; | |
16207 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16208 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16209 | char *kwnames[] = { |
16210 | (char *) "self",(char *) "id", NULL | |
16211 | }; | |
16212 | ||
8edf1c75 | 16213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16215 | { |
16216 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16217 | if (PyErr_Occurred()) SWIG_fail; | |
16218 | } | |
d14a1e28 RD |
16219 | { |
16220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16221 | result = (bool)(arg1)->DeleteTool(arg2); | |
16222 | ||
16223 | wxPyEndAllowThreads(__tstate); | |
16224 | if (PyErr_Occurred()) SWIG_fail; | |
16225 | } | |
4e760a36 | 16226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16227 | return resultobj; |
16228 | fail: | |
16229 | return NULL; | |
16230 | } | |
16231 | ||
16232 | ||
16233 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16234 | PyObject *resultobj; | |
16235 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16236 | PyObject * obj0 = 0 ; | |
16237 | char *kwnames[] = { | |
16238 | (char *) "self", NULL | |
16239 | }; | |
16240 | ||
16241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
16242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16243 | { | |
16244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16245 | (arg1)->ClearTools(); | |
16246 | ||
16247 | wxPyEndAllowThreads(__tstate); | |
16248 | if (PyErr_Occurred()) SWIG_fail; | |
16249 | } | |
16250 | Py_INCREF(Py_None); resultobj = Py_None; | |
16251 | return resultobj; | |
16252 | fail: | |
16253 | return NULL; | |
16254 | } | |
16255 | ||
16256 | ||
16257 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16258 | PyObject *resultobj; | |
16259 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16260 | bool result; | |
16261 | PyObject * obj0 = 0 ; | |
16262 | char *kwnames[] = { | |
16263 | (char *) "self", NULL | |
16264 | }; | |
16265 | ||
16266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
16267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16268 | { | |
16269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16270 | result = (bool)(arg1)->Realize(); | |
16271 | ||
16272 | wxPyEndAllowThreads(__tstate); | |
16273 | if (PyErr_Occurred()) SWIG_fail; | |
16274 | } | |
4e760a36 | 16275 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16276 | return resultobj; |
16277 | fail: | |
16278 | return NULL; | |
16279 | } | |
16280 | ||
16281 | ||
16282 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16283 | PyObject *resultobj; | |
16284 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16285 | int arg2 ; | |
16286 | bool arg3 ; | |
16287 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16288 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16289 | PyObject * obj2 = 0 ; |
16290 | char *kwnames[] = { | |
16291 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
16292 | }; | |
16293 | ||
8edf1c75 | 16294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 16296 | { |
8edf1c75 RD |
16297 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16298 | if (PyErr_Occurred()) SWIG_fail; | |
16299 | } | |
16300 | { | |
16301 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
16302 | if (PyErr_Occurred()) SWIG_fail; |
16303 | } | |
d14a1e28 RD |
16304 | { |
16305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16306 | (arg1)->EnableTool(arg2,arg3); | |
16307 | ||
16308 | wxPyEndAllowThreads(__tstate); | |
16309 | if (PyErr_Occurred()) SWIG_fail; | |
16310 | } | |
16311 | Py_INCREF(Py_None); resultobj = Py_None; | |
16312 | return resultobj; | |
16313 | fail: | |
16314 | return NULL; | |
16315 | } | |
16316 | ||
16317 | ||
16318 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16319 | PyObject *resultobj; | |
16320 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16321 | int arg2 ; | |
16322 | bool arg3 ; | |
16323 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16324 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16325 | PyObject * obj2 = 0 ; |
16326 | char *kwnames[] = { | |
16327 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16328 | }; | |
16329 | ||
8edf1c75 | 16330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 16332 | { |
8edf1c75 RD |
16333 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16334 | if (PyErr_Occurred()) SWIG_fail; | |
16335 | } | |
16336 | { | |
16337 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
16338 | if (PyErr_Occurred()) SWIG_fail; |
16339 | } | |
d14a1e28 RD |
16340 | { |
16341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16342 | (arg1)->ToggleTool(arg2,arg3); | |
16343 | ||
16344 | wxPyEndAllowThreads(__tstate); | |
16345 | if (PyErr_Occurred()) SWIG_fail; | |
16346 | } | |
16347 | Py_INCREF(Py_None); resultobj = Py_None; | |
16348 | return resultobj; | |
16349 | fail: | |
16350 | return NULL; | |
16351 | } | |
16352 | ||
16353 | ||
16354 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16355 | PyObject *resultobj; | |
16356 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16357 | int arg2 ; | |
16358 | bool arg3 ; | |
16359 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16360 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16361 | PyObject * obj2 = 0 ; |
16362 | char *kwnames[] = { | |
16363 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16364 | }; | |
16365 | ||
8edf1c75 | 16366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 16368 | { |
8edf1c75 RD |
16369 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16370 | if (PyErr_Occurred()) SWIG_fail; | |
16371 | } | |
16372 | { | |
16373 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
16374 | if (PyErr_Occurred()) SWIG_fail; |
16375 | } | |
d14a1e28 RD |
16376 | { |
16377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16378 | (arg1)->SetToggle(arg2,arg3); | |
16379 | ||
16380 | wxPyEndAllowThreads(__tstate); | |
16381 | if (PyErr_Occurred()) SWIG_fail; | |
16382 | } | |
16383 | Py_INCREF(Py_None); resultobj = Py_None; | |
16384 | return resultobj; | |
16385 | fail: | |
16386 | return NULL; | |
16387 | } | |
16388 | ||
16389 | ||
16390 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16391 | PyObject *resultobj; | |
16392 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16393 | int arg2 ; | |
16394 | PyObject *result; | |
16395 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16396 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16397 | char *kwnames[] = { |
16398 | (char *) "self",(char *) "id", NULL | |
16399 | }; | |
16400 | ||
8edf1c75 | 16401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16403 | { |
16404 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16405 | if (PyErr_Occurred()) SWIG_fail; | |
16406 | } | |
d14a1e28 RD |
16407 | { |
16408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16409 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
16410 | ||
16411 | wxPyEndAllowThreads(__tstate); | |
16412 | if (PyErr_Occurred()) SWIG_fail; | |
16413 | } | |
16414 | resultobj = result; | |
16415 | return resultobj; | |
16416 | fail: | |
16417 | return NULL; | |
16418 | } | |
16419 | ||
16420 | ||
16421 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16422 | PyObject *resultobj; | |
16423 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16424 | int arg2 ; | |
16425 | PyObject *arg3 = (PyObject *) 0 ; | |
16426 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16427 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16428 | PyObject * obj2 = 0 ; |
16429 | char *kwnames[] = { | |
16430 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
16431 | }; | |
16432 | ||
8edf1c75 | 16433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16435 | { |
16436 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16437 | if (PyErr_Occurred()) SWIG_fail; | |
16438 | } | |
d14a1e28 RD |
16439 | arg3 = obj2; |
16440 | { | |
16441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16442 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
16443 | ||
16444 | wxPyEndAllowThreads(__tstate); | |
16445 | if (PyErr_Occurred()) SWIG_fail; | |
16446 | } | |
16447 | Py_INCREF(Py_None); resultobj = Py_None; | |
16448 | return resultobj; | |
16449 | fail: | |
16450 | return NULL; | |
16451 | } | |
16452 | ||
16453 | ||
16454 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16455 | PyObject *resultobj; | |
16456 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16457 | int arg2 ; | |
16458 | int result; | |
16459 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16460 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16461 | char *kwnames[] = { |
16462 | (char *) "self",(char *) "id", NULL | |
16463 | }; | |
16464 | ||
8edf1c75 | 16465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16467 | { |
16468 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16469 | if (PyErr_Occurred()) SWIG_fail; | |
16470 | } | |
d14a1e28 RD |
16471 | { |
16472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16473 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
16474 | ||
16475 | wxPyEndAllowThreads(__tstate); | |
16476 | if (PyErr_Occurred()) SWIG_fail; | |
16477 | } | |
8edf1c75 | 16478 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16479 | return resultobj; |
16480 | fail: | |
16481 | return NULL; | |
16482 | } | |
16483 | ||
16484 | ||
16485 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16486 | PyObject *resultobj; | |
16487 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16488 | int arg2 ; | |
16489 | bool result; | |
16490 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16491 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16492 | char *kwnames[] = { |
16493 | (char *) "self",(char *) "id", NULL | |
16494 | }; | |
16495 | ||
8edf1c75 | 16496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16498 | { |
16499 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16500 | if (PyErr_Occurred()) SWIG_fail; | |
16501 | } | |
d14a1e28 RD |
16502 | { |
16503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16504 | result = (bool)(arg1)->GetToolState(arg2); | |
16505 | ||
16506 | wxPyEndAllowThreads(__tstate); | |
16507 | if (PyErr_Occurred()) SWIG_fail; | |
16508 | } | |
4e760a36 | 16509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16510 | return resultobj; |
16511 | fail: | |
16512 | return NULL; | |
16513 | } | |
16514 | ||
16515 | ||
16516 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16517 | PyObject *resultobj; | |
16518 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16519 | int arg2 ; | |
16520 | bool result; | |
16521 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16522 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16523 | char *kwnames[] = { |
16524 | (char *) "self",(char *) "id", NULL | |
16525 | }; | |
16526 | ||
8edf1c75 | 16527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16529 | { |
16530 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16531 | if (PyErr_Occurred()) SWIG_fail; | |
16532 | } | |
d14a1e28 RD |
16533 | { |
16534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16535 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
16536 | ||
16537 | wxPyEndAllowThreads(__tstate); | |
16538 | if (PyErr_Occurred()) SWIG_fail; | |
16539 | } | |
4e760a36 | 16540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16541 | return resultobj; |
16542 | fail: | |
16543 | return NULL; | |
16544 | } | |
16545 | ||
16546 | ||
16547 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16548 | PyObject *resultobj; | |
16549 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16550 | int arg2 ; | |
16551 | wxString *arg3 = 0 ; | |
423f194a | 16552 | bool temp3 = False ; |
d14a1e28 | 16553 | PyObject * obj0 = 0 ; |
8edf1c75 | 16554 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16555 | PyObject * obj2 = 0 ; |
16556 | char *kwnames[] = { | |
16557 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16558 | }; | |
16559 | ||
8edf1c75 | 16560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16562 | { |
16563 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16564 | if (PyErr_Occurred()) SWIG_fail; | |
16565 | } | |
d14a1e28 RD |
16566 | { |
16567 | arg3 = wxString_in_helper(obj2); | |
16568 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16569 | temp3 = True; |
d14a1e28 RD |
16570 | } |
16571 | { | |
16572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16573 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
16574 | ||
16575 | wxPyEndAllowThreads(__tstate); | |
16576 | if (PyErr_Occurred()) SWIG_fail; | |
16577 | } | |
16578 | Py_INCREF(Py_None); resultobj = Py_None; | |
16579 | { | |
16580 | if (temp3) | |
16581 | delete arg3; | |
16582 | } | |
16583 | return resultobj; | |
16584 | fail: | |
16585 | { | |
16586 | if (temp3) | |
16587 | delete arg3; | |
16588 | } | |
16589 | return NULL; | |
16590 | } | |
16591 | ||
16592 | ||
16593 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16594 | PyObject *resultobj; | |
16595 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16596 | int arg2 ; | |
16597 | wxString result; | |
16598 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16599 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16600 | char *kwnames[] = { |
16601 | (char *) "self",(char *) "id", NULL | |
16602 | }; | |
16603 | ||
8edf1c75 | 16604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16606 | { |
16607 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16608 | if (PyErr_Occurred()) SWIG_fail; | |
16609 | } | |
d14a1e28 RD |
16610 | { |
16611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16612 | result = (arg1)->GetToolShortHelp(arg2); | |
16613 | ||
16614 | wxPyEndAllowThreads(__tstate); | |
16615 | if (PyErr_Occurred()) SWIG_fail; | |
16616 | } | |
16617 | { | |
16618 | #if wxUSE_UNICODE | |
16619 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16620 | #else | |
16621 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16622 | #endif | |
16623 | } | |
16624 | return resultobj; | |
16625 | fail: | |
16626 | return NULL; | |
16627 | } | |
16628 | ||
16629 | ||
16630 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16631 | PyObject *resultobj; | |
16632 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16633 | int arg2 ; | |
16634 | wxString *arg3 = 0 ; | |
423f194a | 16635 | bool temp3 = False ; |
d14a1e28 | 16636 | PyObject * obj0 = 0 ; |
8edf1c75 | 16637 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16638 | PyObject * obj2 = 0 ; |
16639 | char *kwnames[] = { | |
16640 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16641 | }; | |
16642 | ||
8edf1c75 | 16643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16645 | { |
16646 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16647 | if (PyErr_Occurred()) SWIG_fail; | |
16648 | } | |
d14a1e28 RD |
16649 | { |
16650 | arg3 = wxString_in_helper(obj2); | |
16651 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16652 | temp3 = True; |
d14a1e28 RD |
16653 | } |
16654 | { | |
16655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16656 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
16657 | ||
16658 | wxPyEndAllowThreads(__tstate); | |
16659 | if (PyErr_Occurred()) SWIG_fail; | |
16660 | } | |
16661 | Py_INCREF(Py_None); resultobj = Py_None; | |
16662 | { | |
16663 | if (temp3) | |
16664 | delete arg3; | |
16665 | } | |
16666 | return resultobj; | |
16667 | fail: | |
16668 | { | |
16669 | if (temp3) | |
16670 | delete arg3; | |
16671 | } | |
16672 | return NULL; | |
16673 | } | |
16674 | ||
16675 | ||
16676 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16677 | PyObject *resultobj; | |
16678 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16679 | int arg2 ; | |
16680 | wxString result; | |
16681 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16682 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16683 | char *kwnames[] = { |
16684 | (char *) "self",(char *) "id", NULL | |
16685 | }; | |
16686 | ||
8edf1c75 | 16687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16689 | { |
16690 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16691 | if (PyErr_Occurred()) SWIG_fail; | |
16692 | } | |
d14a1e28 RD |
16693 | { |
16694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16695 | result = (arg1)->GetToolLongHelp(arg2); | |
16696 | ||
16697 | wxPyEndAllowThreads(__tstate); | |
16698 | if (PyErr_Occurred()) SWIG_fail; | |
16699 | } | |
16700 | { | |
16701 | #if wxUSE_UNICODE | |
16702 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16703 | #else | |
16704 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16705 | #endif | |
16706 | } | |
16707 | return resultobj; | |
16708 | fail: | |
16709 | return NULL; | |
16710 | } | |
16711 | ||
16712 | ||
16713 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16714 | PyObject *resultobj; | |
16715 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16716 | int arg2 ; | |
16717 | int arg3 ; | |
16718 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16719 | PyObject * obj1 = 0 ; |
16720 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16721 | char *kwnames[] = { |
16722 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16723 | }; | |
16724 | ||
8edf1c75 | 16725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16727 | { |
16728 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16729 | if (PyErr_Occurred()) SWIG_fail; | |
16730 | } | |
16731 | { | |
16732 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16733 | if (PyErr_Occurred()) SWIG_fail; | |
16734 | } | |
d14a1e28 RD |
16735 | { |
16736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16737 | (arg1)->SetMargins(arg2,arg3); | |
16738 | ||
16739 | wxPyEndAllowThreads(__tstate); | |
16740 | if (PyErr_Occurred()) SWIG_fail; | |
16741 | } | |
16742 | Py_INCREF(Py_None); resultobj = Py_None; | |
16743 | return resultobj; | |
16744 | fail: | |
16745 | return NULL; | |
16746 | } | |
16747 | ||
16748 | ||
16749 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16750 | PyObject *resultobj; | |
16751 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16752 | wxSize *arg2 = 0 ; | |
16753 | wxSize temp2 ; | |
16754 | PyObject * obj0 = 0 ; | |
16755 | PyObject * obj1 = 0 ; | |
16756 | char *kwnames[] = { | |
16757 | (char *) "self",(char *) "size", NULL | |
16758 | }; | |
16759 | ||
16760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
16761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16762 | { | |
16763 | arg2 = &temp2; | |
16764 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16765 | } | |
16766 | { | |
16767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16768 | (arg1)->SetMargins((wxSize const &)*arg2); | |
16769 | ||
16770 | wxPyEndAllowThreads(__tstate); | |
16771 | if (PyErr_Occurred()) SWIG_fail; | |
16772 | } | |
16773 | Py_INCREF(Py_None); resultobj = Py_None; | |
16774 | return resultobj; | |
16775 | fail: | |
16776 | return NULL; | |
16777 | } | |
16778 | ||
16779 | ||
16780 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16781 | PyObject *resultobj; | |
16782 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16783 | int arg2 ; | |
16784 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16785 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16786 | char *kwnames[] = { |
16787 | (char *) "self",(char *) "packing", NULL | |
16788 | }; | |
16789 | ||
8edf1c75 | 16790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16792 | { |
16793 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16794 | if (PyErr_Occurred()) SWIG_fail; | |
16795 | } | |
d14a1e28 RD |
16796 | { |
16797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16798 | (arg1)->SetToolPacking(arg2); | |
16799 | ||
16800 | wxPyEndAllowThreads(__tstate); | |
16801 | if (PyErr_Occurred()) SWIG_fail; | |
16802 | } | |
16803 | Py_INCREF(Py_None); resultobj = Py_None; | |
16804 | return resultobj; | |
16805 | fail: | |
16806 | return NULL; | |
16807 | } | |
16808 | ||
16809 | ||
16810 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16811 | PyObject *resultobj; | |
16812 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16813 | int arg2 ; | |
16814 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16815 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16816 | char *kwnames[] = { |
16817 | (char *) "self",(char *) "separation", NULL | |
16818 | }; | |
16819 | ||
8edf1c75 | 16820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16822 | { |
16823 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16824 | if (PyErr_Occurred()) SWIG_fail; | |
16825 | } | |
d14a1e28 RD |
16826 | { |
16827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16828 | (arg1)->SetToolSeparation(arg2); | |
16829 | ||
16830 | wxPyEndAllowThreads(__tstate); | |
16831 | if (PyErr_Occurred()) SWIG_fail; | |
16832 | } | |
16833 | Py_INCREF(Py_None); resultobj = Py_None; | |
16834 | return resultobj; | |
16835 | fail: | |
16836 | return NULL; | |
16837 | } | |
16838 | ||
16839 | ||
16840 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16841 | PyObject *resultobj; | |
16842 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16843 | wxSize result; | |
16844 | PyObject * obj0 = 0 ; | |
16845 | char *kwnames[] = { | |
16846 | (char *) "self", NULL | |
16847 | }; | |
16848 | ||
16849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
16850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16851 | { | |
16852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16853 | result = (arg1)->GetToolMargins(); | |
16854 | ||
16855 | wxPyEndAllowThreads(__tstate); | |
16856 | if (PyErr_Occurred()) SWIG_fail; | |
16857 | } | |
16858 | { | |
16859 | wxSize * resultptr; | |
16860 | resultptr = new wxSize((wxSize &) result); | |
16861 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16862 | } | |
16863 | return resultobj; | |
16864 | fail: | |
16865 | return NULL; | |
16866 | } | |
16867 | ||
16868 | ||
16869 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16870 | PyObject *resultobj; | |
16871 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16872 | wxSize result; | |
16873 | PyObject * obj0 = 0 ; | |
16874 | char *kwnames[] = { | |
16875 | (char *) "self", NULL | |
16876 | }; | |
16877 | ||
16878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
16879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16880 | { | |
16881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16882 | result = (arg1)->GetMargins(); | |
16883 | ||
16884 | wxPyEndAllowThreads(__tstate); | |
16885 | if (PyErr_Occurred()) SWIG_fail; | |
16886 | } | |
16887 | { | |
16888 | wxSize * resultptr; | |
16889 | resultptr = new wxSize((wxSize &) result); | |
16890 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16891 | } | |
16892 | return resultobj; | |
16893 | fail: | |
16894 | return NULL; | |
16895 | } | |
16896 | ||
16897 | ||
16898 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16899 | PyObject *resultobj; | |
16900 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16901 | int result; | |
16902 | PyObject * obj0 = 0 ; | |
16903 | char *kwnames[] = { | |
16904 | (char *) "self", NULL | |
16905 | }; | |
16906 | ||
16907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
16908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16909 | { | |
16910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16911 | result = (int)(arg1)->GetToolPacking(); | |
16912 | ||
16913 | wxPyEndAllowThreads(__tstate); | |
16914 | if (PyErr_Occurred()) SWIG_fail; | |
16915 | } | |
8edf1c75 | 16916 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16917 | return resultobj; |
16918 | fail: | |
16919 | return NULL; | |
16920 | } | |
16921 | ||
16922 | ||
16923 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16924 | PyObject *resultobj; | |
16925 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16926 | int result; | |
16927 | PyObject * obj0 = 0 ; | |
16928 | char *kwnames[] = { | |
16929 | (char *) "self", NULL | |
16930 | }; | |
16931 | ||
16932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
16933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16934 | { | |
16935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16936 | result = (int)(arg1)->GetToolSeparation(); | |
16937 | ||
16938 | wxPyEndAllowThreads(__tstate); | |
16939 | if (PyErr_Occurred()) SWIG_fail; | |
16940 | } | |
8edf1c75 | 16941 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16942 | return resultobj; |
16943 | fail: | |
16944 | return NULL; | |
16945 | } | |
16946 | ||
16947 | ||
16948 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16949 | PyObject *resultobj; | |
16950 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16951 | int arg2 ; | |
16952 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16953 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16954 | char *kwnames[] = { |
16955 | (char *) "self",(char *) "nRows", NULL | |
16956 | }; | |
16957 | ||
8edf1c75 | 16958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16960 | { |
16961 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16962 | if (PyErr_Occurred()) SWIG_fail; | |
16963 | } | |
d14a1e28 RD |
16964 | { |
16965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16966 | (arg1)->SetRows(arg2); | |
16967 | ||
16968 | wxPyEndAllowThreads(__tstate); | |
16969 | if (PyErr_Occurred()) SWIG_fail; | |
16970 | } | |
16971 | Py_INCREF(Py_None); resultobj = Py_None; | |
16972 | return resultobj; | |
16973 | fail: | |
16974 | return NULL; | |
16975 | } | |
16976 | ||
16977 | ||
16978 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16979 | PyObject *resultobj; | |
16980 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16981 | int arg2 ; | |
16982 | int arg3 ; | |
16983 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16984 | PyObject * obj1 = 0 ; |
16985 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16986 | char *kwnames[] = { |
16987 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
16988 | }; | |
16989 | ||
8edf1c75 | 16990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16992 | { |
16993 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16994 | if (PyErr_Occurred()) SWIG_fail; | |
16995 | } | |
16996 | { | |
16997 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16998 | if (PyErr_Occurred()) SWIG_fail; | |
16999 | } | |
d14a1e28 RD |
17000 | { |
17001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17002 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
17003 | ||
17004 | wxPyEndAllowThreads(__tstate); | |
17005 | if (PyErr_Occurred()) SWIG_fail; | |
17006 | } | |
17007 | Py_INCREF(Py_None); resultobj = Py_None; | |
17008 | return resultobj; | |
17009 | fail: | |
17010 | return NULL; | |
17011 | } | |
17012 | ||
17013 | ||
17014 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17015 | PyObject *resultobj; | |
17016 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17017 | int result; | |
17018 | PyObject * obj0 = 0 ; | |
17019 | char *kwnames[] = { | |
17020 | (char *) "self", NULL | |
17021 | }; | |
17022 | ||
17023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
17024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17025 | { | |
17026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17027 | result = (int)(arg1)->GetMaxRows(); | |
17028 | ||
17029 | wxPyEndAllowThreads(__tstate); | |
17030 | if (PyErr_Occurred()) SWIG_fail; | |
17031 | } | |
8edf1c75 | 17032 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17033 | return resultobj; |
17034 | fail: | |
17035 | return NULL; | |
17036 | } | |
17037 | ||
17038 | ||
17039 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17040 | PyObject *resultobj; | |
17041 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17042 | int result; | |
17043 | PyObject * obj0 = 0 ; | |
17044 | char *kwnames[] = { | |
17045 | (char *) "self", NULL | |
17046 | }; | |
17047 | ||
17048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
17049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17050 | { | |
17051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17052 | result = (int)(arg1)->GetMaxCols(); | |
17053 | ||
17054 | wxPyEndAllowThreads(__tstate); | |
17055 | if (PyErr_Occurred()) SWIG_fail; | |
17056 | } | |
8edf1c75 | 17057 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17058 | return resultobj; |
17059 | fail: | |
17060 | return NULL; | |
17061 | } | |
17062 | ||
17063 | ||
17064 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17065 | PyObject *resultobj; | |
17066 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17067 | wxSize *arg2 = 0 ; | |
17068 | wxSize temp2 ; | |
17069 | PyObject * obj0 = 0 ; | |
17070 | PyObject * obj1 = 0 ; | |
17071 | char *kwnames[] = { | |
17072 | (char *) "self",(char *) "size", NULL | |
17073 | }; | |
17074 | ||
17075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
17076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17077 | { | |
17078 | arg2 = &temp2; | |
17079 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17080 | } | |
17081 | { | |
17082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17083 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
17084 | ||
17085 | wxPyEndAllowThreads(__tstate); | |
17086 | if (PyErr_Occurred()) SWIG_fail; | |
17087 | } | |
17088 | Py_INCREF(Py_None); resultobj = Py_None; | |
17089 | return resultobj; | |
17090 | fail: | |
17091 | return NULL; | |
17092 | } | |
17093 | ||
17094 | ||
17095 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17096 | PyObject *resultobj; | |
17097 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17098 | wxSize result; | |
17099 | PyObject * obj0 = 0 ; | |
17100 | char *kwnames[] = { | |
17101 | (char *) "self", NULL | |
17102 | }; | |
17103 | ||
17104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
17105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17106 | { | |
17107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17108 | result = (arg1)->GetToolBitmapSize(); | |
17109 | ||
17110 | wxPyEndAllowThreads(__tstate); | |
17111 | if (PyErr_Occurred()) SWIG_fail; | |
17112 | } | |
17113 | { | |
17114 | wxSize * resultptr; | |
17115 | resultptr = new wxSize((wxSize &) result); | |
17116 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
17117 | } | |
17118 | return resultobj; | |
17119 | fail: | |
17120 | return NULL; | |
17121 | } | |
17122 | ||
17123 | ||
17124 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17125 | PyObject *resultobj; | |
17126 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17127 | wxSize result; | |
17128 | PyObject * obj0 = 0 ; | |
17129 | char *kwnames[] = { | |
17130 | (char *) "self", NULL | |
17131 | }; | |
17132 | ||
17133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
17134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17135 | { | |
17136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17137 | result = (arg1)->GetToolSize(); | |
17138 | ||
17139 | wxPyEndAllowThreads(__tstate); | |
17140 | if (PyErr_Occurred()) SWIG_fail; | |
17141 | } | |
17142 | { | |
17143 | wxSize * resultptr; | |
17144 | resultptr = new wxSize((wxSize &) result); | |
17145 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
17146 | } | |
17147 | return resultobj; | |
17148 | fail: | |
17149 | return NULL; | |
17150 | } | |
17151 | ||
17152 | ||
17153 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17154 | PyObject *resultobj; | |
17155 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
423f194a RD |
17156 | int arg2 ; |
17157 | int arg3 ; | |
d14a1e28 RD |
17158 | wxToolBarToolBase *result; |
17159 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17160 | PyObject * obj1 = 0 ; |
17161 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17162 | char *kwnames[] = { |
17163 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17164 | }; | |
17165 | ||
8edf1c75 | 17166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17168 | { |
17169 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17170 | if (PyErr_Occurred()) SWIG_fail; | |
17171 | } | |
17172 | { | |
17173 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17174 | if (PyErr_Occurred()) SWIG_fail; | |
17175 | } | |
d14a1e28 RD |
17176 | { |
17177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17178 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17179 | ||
17180 | wxPyEndAllowThreads(__tstate); | |
17181 | if (PyErr_Occurred()) SWIG_fail; | |
17182 | } | |
17183 | { | |
17184 | resultobj = wxPyMake_wxObject(result); | |
17185 | } | |
17186 | return resultobj; | |
17187 | fail: | |
17188 | return NULL; | |
17189 | } | |
17190 | ||
17191 | ||
d03fd34d RD |
17192 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
17193 | PyObject *resultobj; | |
17194 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17195 | int arg2 ; | |
17196 | wxToolBarToolBase *result; | |
17197 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17198 | PyObject * obj1 = 0 ; |
d03fd34d RD |
17199 | char *kwnames[] = { |
17200 | (char *) "self",(char *) "toolid", NULL | |
17201 | }; | |
17202 | ||
8edf1c75 | 17203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
d03fd34d | 17204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17205 | { |
17206 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17207 | if (PyErr_Occurred()) SWIG_fail; | |
17208 | } | |
d03fd34d RD |
17209 | { |
17210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17211 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
17212 | ||
17213 | wxPyEndAllowThreads(__tstate); | |
17214 | if (PyErr_Occurred()) SWIG_fail; | |
17215 | } | |
17216 | { | |
17217 | resultobj = wxPyMake_wxObject(result); | |
17218 | } | |
17219 | return resultobj; | |
17220 | fail: | |
17221 | return NULL; | |
17222 | } | |
17223 | ||
17224 | ||
d14a1e28 RD |
17225 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
17226 | PyObject *resultobj; | |
17227 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17228 | bool result; | |
17229 | PyObject * obj0 = 0 ; | |
17230 | char *kwnames[] = { | |
17231 | (char *) "self", NULL | |
17232 | }; | |
17233 | ||
17234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
17235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17236 | { | |
17237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17238 | result = (bool)(arg1)->IsVertical(); | |
17239 | ||
17240 | wxPyEndAllowThreads(__tstate); | |
17241 | if (PyErr_Occurred()) SWIG_fail; | |
17242 | } | |
4e760a36 | 17243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17244 | return resultobj; |
17245 | fail: | |
17246 | return NULL; | |
17247 | } | |
17248 | ||
17249 | ||
17250 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
17251 | PyObject *obj; | |
17252 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17253 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
17254 | Py_INCREF(obj); | |
17255 | return Py_BuildValue((char *)""); | |
17256 | } | |
17257 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17258 | PyObject *resultobj; | |
17259 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 17260 | int arg2 ; |
d14a1e28 RD |
17261 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17262 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17263 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17264 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17265 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17266 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
17267 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17268 | wxToolBar *result; | |
17269 | wxPoint temp3 ; | |
17270 | wxSize temp4 ; | |
423f194a | 17271 | bool temp6 = False ; |
d14a1e28 | 17272 | PyObject * obj0 = 0 ; |
8edf1c75 | 17273 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17274 | PyObject * obj2 = 0 ; |
17275 | PyObject * obj3 = 0 ; | |
8edf1c75 | 17276 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17277 | PyObject * obj5 = 0 ; |
17278 | char *kwnames[] = { | |
17279 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17280 | }; | |
17281 | ||
8edf1c75 | 17282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 17283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17284 | { |
17285 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17286 | if (PyErr_Occurred()) SWIG_fail; | |
17287 | } | |
d14a1e28 RD |
17288 | if (obj2) { |
17289 | { | |
17290 | arg3 = &temp3; | |
17291 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17292 | } | |
17293 | } | |
17294 | if (obj3) { | |
17295 | { | |
17296 | arg4 = &temp4; | |
17297 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17298 | } | |
17299 | } | |
8edf1c75 RD |
17300 | if (obj4) { |
17301 | { | |
17302 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
17303 | if (PyErr_Occurred()) SWIG_fail; | |
17304 | } | |
17305 | } | |
d14a1e28 RD |
17306 | if (obj5) { |
17307 | { | |
17308 | arg6 = wxString_in_helper(obj5); | |
17309 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 17310 | temp6 = True; |
d14a1e28 RD |
17311 | } |
17312 | } | |
17313 | { | |
17314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17315 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17316 | ||
17317 | wxPyEndAllowThreads(__tstate); | |
17318 | if (PyErr_Occurred()) SWIG_fail; | |
17319 | } | |
17320 | { | |
17321 | resultobj = wxPyMake_wxObject(result); | |
17322 | } | |
17323 | { | |
17324 | if (temp6) | |
17325 | delete arg6; | |
17326 | } | |
17327 | return resultobj; | |
17328 | fail: | |
17329 | { | |
17330 | if (temp6) | |
17331 | delete arg6; | |
17332 | } | |
17333 | return NULL; | |
17334 | } | |
17335 | ||
17336 | ||
17337 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17338 | PyObject *resultobj; | |
17339 | wxToolBar *result; | |
17340 | char *kwnames[] = { | |
17341 | NULL | |
17342 | }; | |
17343 | ||
17344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
17345 | { | |
17346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17347 | result = (wxToolBar *)new wxToolBar(); | |
17348 | ||
17349 | wxPyEndAllowThreads(__tstate); | |
17350 | if (PyErr_Occurred()) SWIG_fail; | |
17351 | } | |
17352 | { | |
17353 | resultobj = wxPyMake_wxObject(result); | |
17354 | } | |
17355 | return resultobj; | |
17356 | fail: | |
17357 | return NULL; | |
17358 | } | |
17359 | ||
17360 | ||
17361 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17362 | PyObject *resultobj; | |
17363 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
17364 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 17365 | int arg3 ; |
d14a1e28 RD |
17366 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17367 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17368 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17369 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17370 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17371 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
17372 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17373 | bool result; | |
17374 | wxPoint temp4 ; | |
17375 | wxSize temp5 ; | |
423f194a | 17376 | bool temp7 = False ; |
d14a1e28 RD |
17377 | PyObject * obj0 = 0 ; |
17378 | PyObject * obj1 = 0 ; | |
8edf1c75 | 17379 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17380 | PyObject * obj3 = 0 ; |
17381 | PyObject * obj4 = 0 ; | |
8edf1c75 | 17382 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17383 | PyObject * obj6 = 0 ; |
17384 | char *kwnames[] = { | |
17385 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17386 | }; | |
17387 | ||
8edf1c75 | 17388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
17389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
17390 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
17391 | { |
17392 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17393 | if (PyErr_Occurred()) SWIG_fail; | |
17394 | } | |
d14a1e28 RD |
17395 | if (obj3) { |
17396 | { | |
17397 | arg4 = &temp4; | |
17398 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17399 | } | |
17400 | } | |
17401 | if (obj4) { | |
17402 | { | |
17403 | arg5 = &temp5; | |
17404 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17405 | } | |
17406 | } | |
8edf1c75 RD |
17407 | if (obj5) { |
17408 | { | |
17409 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
17410 | if (PyErr_Occurred()) SWIG_fail; | |
17411 | } | |
17412 | } | |
d14a1e28 RD |
17413 | if (obj6) { |
17414 | { | |
17415 | arg7 = wxString_in_helper(obj6); | |
17416 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 17417 | temp7 = True; |
d14a1e28 RD |
17418 | } |
17419 | } | |
17420 | { | |
17421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17422 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17423 | ||
17424 | wxPyEndAllowThreads(__tstate); | |
17425 | if (PyErr_Occurred()) SWIG_fail; | |
17426 | } | |
4e760a36 | 17427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17428 | { |
17429 | if (temp7) | |
17430 | delete arg7; | |
17431 | } | |
17432 | return resultobj; | |
17433 | fail: | |
17434 | { | |
17435 | if (temp7) | |
17436 | delete arg7; | |
17437 | } | |
17438 | return NULL; | |
17439 | } | |
17440 | ||
17441 | ||
17442 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17443 | PyObject *resultobj; | |
17444 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
423f194a RD |
17445 | int arg2 ; |
17446 | int arg3 ; | |
d14a1e28 RD |
17447 | wxToolBarToolBase *result; |
17448 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17449 | PyObject * obj1 = 0 ; |
17450 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17451 | char *kwnames[] = { |
17452 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17453 | }; | |
17454 | ||
8edf1c75 | 17455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17457 | { |
17458 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17459 | if (PyErr_Occurred()) SWIG_fail; | |
17460 | } | |
17461 | { | |
17462 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17463 | if (PyErr_Occurred()) SWIG_fail; | |
17464 | } | |
d14a1e28 RD |
17465 | { |
17466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17467 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17468 | ||
17469 | wxPyEndAllowThreads(__tstate); | |
17470 | if (PyErr_Occurred()) SWIG_fail; | |
17471 | } | |
17472 | { | |
17473 | resultobj = wxPyMake_wxObject(result); | |
17474 | } | |
17475 | return resultobj; | |
17476 | fail: | |
17477 | return NULL; | |
17478 | } | |
17479 | ||
17480 | ||
17481 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
17482 | PyObject *obj; | |
17483 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17484 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
17485 | Py_INCREF(obj); | |
17486 | return Py_BuildValue((char *)""); | |
17487 | } | |
8edf1c75 | 17488 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
d03fd34d RD |
17489 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
17490 | return 1; | |
17491 | } | |
17492 | ||
17493 | ||
17494 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
17495 | PyObject *pyobj; | |
17496 | ||
17497 | { | |
17498 | #if wxUSE_UNICODE | |
17499 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17500 | #else | |
17501 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17502 | #endif | |
17503 | } | |
17504 | return pyobj; | |
17505 | } | |
17506 | ||
17507 | ||
d14a1e28 RD |
17508 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
17509 | PyObject *resultobj; | |
17510 | wxColour const &arg1_defvalue = wxNullColour ; | |
17511 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
17512 | wxColour const &arg2_defvalue = wxNullColour ; | |
17513 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
17514 | wxFont const &arg3_defvalue = wxNullFont ; | |
17515 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
17516 | wxListItemAttr *result; | |
17517 | wxColour temp1 ; | |
17518 | wxColour temp2 ; | |
17519 | PyObject * obj0 = 0 ; | |
17520 | PyObject * obj1 = 0 ; | |
17521 | PyObject * obj2 = 0 ; | |
17522 | char *kwnames[] = { | |
17523 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
17524 | }; | |
17525 | ||
17526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17527 | if (obj0) { | |
17528 | { | |
17529 | arg1 = &temp1; | |
17530 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
17531 | } | |
17532 | } | |
17533 | if (obj1) { | |
17534 | { | |
17535 | arg2 = &temp2; | |
17536 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17537 | } | |
17538 | } | |
17539 | if (obj2) { | |
17540 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17541 | if (arg3 == NULL) { | |
17542 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17543 | } | |
17544 | } | |
17545 | { | |
17546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17547 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
17548 | ||
17549 | wxPyEndAllowThreads(__tstate); | |
17550 | if (PyErr_Occurred()) SWIG_fail; | |
17551 | } | |
17552 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 1); | |
17553 | return resultobj; | |
17554 | fail: | |
17555 | return NULL; | |
17556 | } | |
17557 | ||
17558 | ||
17559 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17560 | PyObject *resultobj; | |
17561 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17562 | wxColour *arg2 = 0 ; | |
17563 | wxColour temp2 ; | |
17564 | PyObject * obj0 = 0 ; | |
17565 | PyObject * obj1 = 0 ; | |
17566 | char *kwnames[] = { | |
17567 | (char *) "self",(char *) "colText", NULL | |
17568 | }; | |
17569 | ||
17570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
17571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17572 | { | |
17573 | arg2 = &temp2; | |
17574 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17575 | } | |
17576 | { | |
17577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17578 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
17579 | ||
17580 | wxPyEndAllowThreads(__tstate); | |
17581 | if (PyErr_Occurred()) SWIG_fail; | |
17582 | } | |
17583 | Py_INCREF(Py_None); resultobj = Py_None; | |
17584 | return resultobj; | |
17585 | fail: | |
17586 | return NULL; | |
17587 | } | |
17588 | ||
17589 | ||
17590 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17591 | PyObject *resultobj; | |
17592 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17593 | wxColour *arg2 = 0 ; | |
17594 | wxColour temp2 ; | |
17595 | PyObject * obj0 = 0 ; | |
17596 | PyObject * obj1 = 0 ; | |
17597 | char *kwnames[] = { | |
17598 | (char *) "self",(char *) "colBack", NULL | |
17599 | }; | |
17600 | ||
17601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17603 | { | |
17604 | arg2 = &temp2; | |
17605 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17606 | } | |
17607 | { | |
17608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17609 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17610 | ||
17611 | wxPyEndAllowThreads(__tstate); | |
17612 | if (PyErr_Occurred()) SWIG_fail; | |
17613 | } | |
17614 | Py_INCREF(Py_None); resultobj = Py_None; | |
17615 | return resultobj; | |
17616 | fail: | |
17617 | return NULL; | |
17618 | } | |
17619 | ||
17620 | ||
17621 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17622 | PyObject *resultobj; | |
17623 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17624 | wxFont *arg2 = 0 ; | |
17625 | PyObject * obj0 = 0 ; | |
17626 | PyObject * obj1 = 0 ; | |
17627 | char *kwnames[] = { | |
17628 | (char *) "self",(char *) "font", NULL | |
17629 | }; | |
17630 | ||
17631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
17632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17633 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17634 | if (arg2 == NULL) { | |
17635 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17636 | } | |
17637 | { | |
17638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17639 | (arg1)->SetFont((wxFont const &)*arg2); | |
17640 | ||
17641 | wxPyEndAllowThreads(__tstate); | |
17642 | if (PyErr_Occurred()) SWIG_fail; | |
17643 | } | |
17644 | Py_INCREF(Py_None); resultobj = Py_None; | |
17645 | return resultobj; | |
17646 | fail: | |
17647 | return NULL; | |
17648 | } | |
17649 | ||
17650 | ||
17651 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17652 | PyObject *resultobj; | |
17653 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17654 | bool result; | |
17655 | PyObject * obj0 = 0 ; | |
17656 | char *kwnames[] = { | |
17657 | (char *) "self", NULL | |
17658 | }; | |
17659 | ||
17660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
17661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17662 | { | |
17663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17664 | result = (bool)(arg1)->HasTextColour(); | |
17665 | ||
17666 | wxPyEndAllowThreads(__tstate); | |
17667 | if (PyErr_Occurred()) SWIG_fail; | |
17668 | } | |
4e760a36 | 17669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17670 | return resultobj; |
17671 | fail: | |
17672 | return NULL; | |
17673 | } | |
17674 | ||
17675 | ||
17676 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17677 | PyObject *resultobj; | |
17678 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17679 | bool result; | |
17680 | PyObject * obj0 = 0 ; | |
17681 | char *kwnames[] = { | |
17682 | (char *) "self", NULL | |
17683 | }; | |
17684 | ||
17685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
17686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17687 | { | |
17688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17689 | result = (bool)(arg1)->HasBackgroundColour(); | |
17690 | ||
17691 | wxPyEndAllowThreads(__tstate); | |
17692 | if (PyErr_Occurred()) SWIG_fail; | |
17693 | } | |
4e760a36 | 17694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17695 | return resultobj; |
17696 | fail: | |
17697 | return NULL; | |
17698 | } | |
17699 | ||
17700 | ||
17701 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17702 | PyObject *resultobj; | |
17703 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17704 | bool result; | |
17705 | PyObject * obj0 = 0 ; | |
17706 | char *kwnames[] = { | |
17707 | (char *) "self", NULL | |
17708 | }; | |
17709 | ||
17710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
17711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17712 | { | |
17713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17714 | result = (bool)(arg1)->HasFont(); | |
17715 | ||
17716 | wxPyEndAllowThreads(__tstate); | |
17717 | if (PyErr_Occurred()) SWIG_fail; | |
17718 | } | |
4e760a36 | 17719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17720 | return resultobj; |
17721 | fail: | |
17722 | return NULL; | |
17723 | } | |
17724 | ||
17725 | ||
17726 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17727 | PyObject *resultobj; | |
17728 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17729 | wxColour result; | |
17730 | PyObject * obj0 = 0 ; | |
17731 | char *kwnames[] = { | |
17732 | (char *) "self", NULL | |
17733 | }; | |
17734 | ||
17735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
17736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17737 | { | |
17738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17739 | result = (arg1)->GetTextColour(); | |
17740 | ||
17741 | wxPyEndAllowThreads(__tstate); | |
17742 | if (PyErr_Occurred()) SWIG_fail; | |
17743 | } | |
17744 | { | |
17745 | wxColour * resultptr; | |
17746 | resultptr = new wxColour((wxColour &) result); | |
17747 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17748 | } | |
17749 | return resultobj; | |
17750 | fail: | |
17751 | return NULL; | |
17752 | } | |
17753 | ||
17754 | ||
17755 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17756 | PyObject *resultobj; | |
17757 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17758 | wxColour result; | |
17759 | PyObject * obj0 = 0 ; | |
17760 | char *kwnames[] = { | |
17761 | (char *) "self", NULL | |
17762 | }; | |
17763 | ||
17764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
17765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17766 | { | |
17767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17768 | result = (arg1)->GetBackgroundColour(); | |
17769 | ||
17770 | wxPyEndAllowThreads(__tstate); | |
17771 | if (PyErr_Occurred()) SWIG_fail; | |
17772 | } | |
17773 | { | |
17774 | wxColour * resultptr; | |
17775 | resultptr = new wxColour((wxColour &) result); | |
17776 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17777 | } | |
17778 | return resultobj; | |
17779 | fail: | |
17780 | return NULL; | |
17781 | } | |
17782 | ||
17783 | ||
17784 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17785 | PyObject *resultobj; | |
17786 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17787 | wxFont result; | |
17788 | PyObject * obj0 = 0 ; | |
17789 | char *kwnames[] = { | |
17790 | (char *) "self", NULL | |
17791 | }; | |
17792 | ||
17793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
17794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17795 | { | |
17796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17797 | result = (arg1)->GetFont(); | |
17798 | ||
17799 | wxPyEndAllowThreads(__tstate); | |
17800 | if (PyErr_Occurred()) SWIG_fail; | |
17801 | } | |
17802 | { | |
17803 | wxFont * resultptr; | |
17804 | resultptr = new wxFont((wxFont &) result); | |
17805 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
17806 | } | |
17807 | return resultobj; | |
17808 | fail: | |
17809 | return NULL; | |
17810 | } | |
17811 | ||
17812 | ||
17813 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17814 | PyObject *resultobj; | |
17815 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17816 | PyObject * obj0 = 0 ; | |
17817 | char *kwnames[] = { | |
17818 | (char *) "self", NULL | |
17819 | }; | |
17820 | ||
17821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
17822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17823 | { | |
17824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17825 | wxListItemAttr_Destroy(arg1); | |
17826 | ||
17827 | wxPyEndAllowThreads(__tstate); | |
17828 | if (PyErr_Occurred()) SWIG_fail; | |
17829 | } | |
17830 | Py_INCREF(Py_None); resultobj = Py_None; | |
17831 | return resultobj; | |
17832 | fail: | |
17833 | return NULL; | |
17834 | } | |
17835 | ||
17836 | ||
17837 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
17838 | PyObject *obj; | |
17839 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17840 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
17841 | Py_INCREF(obj); | |
17842 | return Py_BuildValue((char *)""); | |
17843 | } | |
17844 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17845 | PyObject *resultobj; | |
17846 | wxListItem *result; | |
17847 | char *kwnames[] = { | |
17848 | NULL | |
17849 | }; | |
17850 | ||
17851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
17852 | { | |
17853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17854 | result = (wxListItem *)new wxListItem(); | |
17855 | ||
17856 | wxPyEndAllowThreads(__tstate); | |
17857 | if (PyErr_Occurred()) SWIG_fail; | |
17858 | } | |
17859 | { | |
17860 | resultobj = wxPyMake_wxObject(result); | |
17861 | } | |
17862 | return resultobj; | |
17863 | fail: | |
17864 | return NULL; | |
17865 | } | |
17866 | ||
17867 | ||
17868 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17869 | PyObject *resultobj; | |
17870 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17871 | PyObject * obj0 = 0 ; | |
17872 | char *kwnames[] = { | |
17873 | (char *) "self", NULL | |
17874 | }; | |
17875 | ||
17876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
17877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17878 | { | |
17879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17880 | delete arg1; | |
17881 | ||
17882 | wxPyEndAllowThreads(__tstate); | |
17883 | if (PyErr_Occurred()) SWIG_fail; | |
17884 | } | |
17885 | Py_INCREF(Py_None); resultobj = Py_None; | |
17886 | return resultobj; | |
17887 | fail: | |
17888 | return NULL; | |
17889 | } | |
17890 | ||
17891 | ||
17892 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17893 | PyObject *resultobj; | |
17894 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17895 | PyObject * obj0 = 0 ; | |
17896 | char *kwnames[] = { | |
17897 | (char *) "self", NULL | |
17898 | }; | |
17899 | ||
17900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
17901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17902 | { | |
17903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17904 | (arg1)->Clear(); | |
17905 | ||
17906 | wxPyEndAllowThreads(__tstate); | |
17907 | if (PyErr_Occurred()) SWIG_fail; | |
17908 | } | |
17909 | Py_INCREF(Py_None); resultobj = Py_None; | |
17910 | return resultobj; | |
17911 | fail: | |
17912 | return NULL; | |
17913 | } | |
17914 | ||
17915 | ||
17916 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17917 | PyObject *resultobj; | |
17918 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17919 | PyObject * obj0 = 0 ; | |
17920 | char *kwnames[] = { | |
17921 | (char *) "self", NULL | |
17922 | }; | |
17923 | ||
17924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
17925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17926 | { | |
17927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17928 | (arg1)->ClearAttributes(); | |
17929 | ||
17930 | wxPyEndAllowThreads(__tstate); | |
17931 | if (PyErr_Occurred()) SWIG_fail; | |
17932 | } | |
17933 | Py_INCREF(Py_None); resultobj = Py_None; | |
17934 | return resultobj; | |
17935 | fail: | |
17936 | return NULL; | |
17937 | } | |
17938 | ||
17939 | ||
17940 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17941 | PyObject *resultobj; | |
17942 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17943 | long arg2 ; | |
17944 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17945 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17946 | char *kwnames[] = { |
17947 | (char *) "self",(char *) "mask", NULL | |
17948 | }; | |
17949 | ||
8edf1c75 | 17950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17952 | { |
17953 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17954 | if (PyErr_Occurred()) SWIG_fail; | |
17955 | } | |
d14a1e28 RD |
17956 | { |
17957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17958 | (arg1)->SetMask(arg2); | |
17959 | ||
17960 | wxPyEndAllowThreads(__tstate); | |
17961 | if (PyErr_Occurred()) SWIG_fail; | |
17962 | } | |
17963 | Py_INCREF(Py_None); resultobj = Py_None; | |
17964 | return resultobj; | |
17965 | fail: | |
17966 | return NULL; | |
17967 | } | |
17968 | ||
17969 | ||
17970 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17971 | PyObject *resultobj; | |
17972 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17973 | long arg2 ; | |
17974 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17975 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17976 | char *kwnames[] = { |
17977 | (char *) "self",(char *) "id", NULL | |
17978 | }; | |
17979 | ||
8edf1c75 | 17980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17982 | { |
17983 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17984 | if (PyErr_Occurred()) SWIG_fail; | |
17985 | } | |
d14a1e28 RD |
17986 | { |
17987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17988 | (arg1)->SetId(arg2); | |
17989 | ||
17990 | wxPyEndAllowThreads(__tstate); | |
17991 | if (PyErr_Occurred()) SWIG_fail; | |
17992 | } | |
17993 | Py_INCREF(Py_None); resultobj = Py_None; | |
17994 | return resultobj; | |
17995 | fail: | |
17996 | return NULL; | |
17997 | } | |
17998 | ||
17999 | ||
18000 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18001 | PyObject *resultobj; | |
18002 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18003 | int arg2 ; | |
18004 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18005 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18006 | char *kwnames[] = { |
18007 | (char *) "self",(char *) "col", NULL | |
18008 | }; | |
18009 | ||
8edf1c75 | 18010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18012 | { |
18013 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18014 | if (PyErr_Occurred()) SWIG_fail; | |
18015 | } | |
d14a1e28 RD |
18016 | { |
18017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18018 | (arg1)->SetColumn(arg2); | |
18019 | ||
18020 | wxPyEndAllowThreads(__tstate); | |
18021 | if (PyErr_Occurred()) SWIG_fail; | |
18022 | } | |
18023 | Py_INCREF(Py_None); resultobj = Py_None; | |
18024 | return resultobj; | |
18025 | fail: | |
18026 | return NULL; | |
18027 | } | |
18028 | ||
18029 | ||
18030 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18031 | PyObject *resultobj; | |
18032 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18033 | long arg2 ; | |
18034 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18035 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18036 | char *kwnames[] = { |
18037 | (char *) "self",(char *) "state", NULL | |
18038 | }; | |
18039 | ||
8edf1c75 | 18040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18042 | { |
18043 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18044 | if (PyErr_Occurred()) SWIG_fail; | |
18045 | } | |
d14a1e28 RD |
18046 | { |
18047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18048 | (arg1)->SetState(arg2); | |
18049 | ||
18050 | wxPyEndAllowThreads(__tstate); | |
18051 | if (PyErr_Occurred()) SWIG_fail; | |
18052 | } | |
18053 | Py_INCREF(Py_None); resultobj = Py_None; | |
18054 | return resultobj; | |
18055 | fail: | |
18056 | return NULL; | |
18057 | } | |
18058 | ||
18059 | ||
18060 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18061 | PyObject *resultobj; | |
18062 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18063 | long arg2 ; | |
18064 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18065 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18066 | char *kwnames[] = { |
18067 | (char *) "self",(char *) "stateMask", NULL | |
18068 | }; | |
18069 | ||
8edf1c75 | 18070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18072 | { |
18073 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18074 | if (PyErr_Occurred()) SWIG_fail; | |
18075 | } | |
d14a1e28 RD |
18076 | { |
18077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18078 | (arg1)->SetStateMask(arg2); | |
18079 | ||
18080 | wxPyEndAllowThreads(__tstate); | |
18081 | if (PyErr_Occurred()) SWIG_fail; | |
18082 | } | |
18083 | Py_INCREF(Py_None); resultobj = Py_None; | |
18084 | return resultobj; | |
18085 | fail: | |
18086 | return NULL; | |
18087 | } | |
18088 | ||
18089 | ||
18090 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18091 | PyObject *resultobj; | |
18092 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18093 | wxString *arg2 = 0 ; | |
423f194a | 18094 | bool temp2 = False ; |
d14a1e28 RD |
18095 | PyObject * obj0 = 0 ; |
18096 | PyObject * obj1 = 0 ; | |
18097 | char *kwnames[] = { | |
18098 | (char *) "self",(char *) "text", NULL | |
18099 | }; | |
18100 | ||
18101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18103 | { | |
18104 | arg2 = wxString_in_helper(obj1); | |
18105 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18106 | temp2 = True; |
d14a1e28 RD |
18107 | } |
18108 | { | |
18109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18110 | (arg1)->SetText((wxString const &)*arg2); | |
18111 | ||
18112 | wxPyEndAllowThreads(__tstate); | |
18113 | if (PyErr_Occurred()) SWIG_fail; | |
18114 | } | |
18115 | Py_INCREF(Py_None); resultobj = Py_None; | |
18116 | { | |
18117 | if (temp2) | |
18118 | delete arg2; | |
18119 | } | |
18120 | return resultobj; | |
18121 | fail: | |
18122 | { | |
18123 | if (temp2) | |
18124 | delete arg2; | |
18125 | } | |
18126 | return NULL; | |
18127 | } | |
18128 | ||
18129 | ||
18130 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18131 | PyObject *resultobj; | |
18132 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18133 | int arg2 ; | |
18134 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18135 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18136 | char *kwnames[] = { |
18137 | (char *) "self",(char *) "image", NULL | |
18138 | }; | |
18139 | ||
8edf1c75 | 18140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18142 | { |
18143 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18144 | if (PyErr_Occurred()) SWIG_fail; | |
18145 | } | |
d14a1e28 RD |
18146 | { |
18147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18148 | (arg1)->SetImage(arg2); | |
18149 | ||
18150 | wxPyEndAllowThreads(__tstate); | |
18151 | if (PyErr_Occurred()) SWIG_fail; | |
18152 | } | |
18153 | Py_INCREF(Py_None); resultobj = Py_None; | |
18154 | return resultobj; | |
18155 | fail: | |
18156 | return NULL; | |
18157 | } | |
18158 | ||
18159 | ||
18160 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18161 | PyObject *resultobj; | |
18162 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18163 | long arg2 ; | |
18164 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18165 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18166 | char *kwnames[] = { |
18167 | (char *) "self",(char *) "data", NULL | |
18168 | }; | |
18169 | ||
8edf1c75 | 18170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18172 | { |
18173 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18174 | if (PyErr_Occurred()) SWIG_fail; | |
18175 | } | |
d14a1e28 RD |
18176 | { |
18177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18178 | (arg1)->SetData(arg2); | |
18179 | ||
18180 | wxPyEndAllowThreads(__tstate); | |
18181 | if (PyErr_Occurred()) SWIG_fail; | |
18182 | } | |
18183 | Py_INCREF(Py_None); resultobj = Py_None; | |
18184 | return resultobj; | |
18185 | fail: | |
18186 | return NULL; | |
18187 | } | |
18188 | ||
18189 | ||
18190 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18191 | PyObject *resultobj; | |
18192 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18193 | int arg2 ; | |
18194 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18195 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18196 | char *kwnames[] = { |
18197 | (char *) "self",(char *) "width", NULL | |
18198 | }; | |
18199 | ||
8edf1c75 | 18200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18202 | { |
18203 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18204 | if (PyErr_Occurred()) SWIG_fail; | |
18205 | } | |
d14a1e28 RD |
18206 | { |
18207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18208 | (arg1)->SetWidth(arg2); | |
18209 | ||
18210 | wxPyEndAllowThreads(__tstate); | |
18211 | if (PyErr_Occurred()) SWIG_fail; | |
18212 | } | |
18213 | Py_INCREF(Py_None); resultobj = Py_None; | |
18214 | return resultobj; | |
18215 | fail: | |
18216 | return NULL; | |
18217 | } | |
18218 | ||
18219 | ||
18220 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18221 | PyObject *resultobj; | |
18222 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18223 | int arg2 ; | |
18224 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18225 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18226 | char *kwnames[] = { |
18227 | (char *) "self",(char *) "align", NULL | |
18228 | }; | |
18229 | ||
8edf1c75 | 18230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18232 | { |
18233 | arg2 = (wxListColumnFormat) SWIG_PyObj_AsInt(obj1); | |
18234 | if (PyErr_Occurred()) SWIG_fail; | |
18235 | } | |
d14a1e28 RD |
18236 | { |
18237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18238 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
18239 | ||
18240 | wxPyEndAllowThreads(__tstate); | |
18241 | if (PyErr_Occurred()) SWIG_fail; | |
18242 | } | |
18243 | Py_INCREF(Py_None); resultobj = Py_None; | |
18244 | return resultobj; | |
18245 | fail: | |
18246 | return NULL; | |
18247 | } | |
18248 | ||
18249 | ||
18250 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18251 | PyObject *resultobj; | |
18252 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18253 | wxColour *arg2 = 0 ; | |
18254 | wxColour temp2 ; | |
18255 | PyObject * obj0 = 0 ; | |
18256 | PyObject * obj1 = 0 ; | |
18257 | char *kwnames[] = { | |
18258 | (char *) "self",(char *) "colText", NULL | |
18259 | }; | |
18260 | ||
18261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18263 | { | |
18264 | arg2 = &temp2; | |
18265 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18266 | } | |
18267 | { | |
18268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18269 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18270 | ||
18271 | wxPyEndAllowThreads(__tstate); | |
18272 | if (PyErr_Occurred()) SWIG_fail; | |
18273 | } | |
18274 | Py_INCREF(Py_None); resultobj = Py_None; | |
18275 | return resultobj; | |
18276 | fail: | |
18277 | return NULL; | |
18278 | } | |
18279 | ||
18280 | ||
18281 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18282 | PyObject *resultobj; | |
18283 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18284 | wxColour *arg2 = 0 ; | |
18285 | wxColour temp2 ; | |
18286 | PyObject * obj0 = 0 ; | |
18287 | PyObject * obj1 = 0 ; | |
18288 | char *kwnames[] = { | |
18289 | (char *) "self",(char *) "colBack", NULL | |
18290 | }; | |
18291 | ||
18292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
18293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18294 | { | |
18295 | arg2 = &temp2; | |
18296 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18297 | } | |
18298 | { | |
18299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18300 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18301 | ||
18302 | wxPyEndAllowThreads(__tstate); | |
18303 | if (PyErr_Occurred()) SWIG_fail; | |
18304 | } | |
18305 | Py_INCREF(Py_None); resultobj = Py_None; | |
18306 | return resultobj; | |
18307 | fail: | |
18308 | return NULL; | |
18309 | } | |
18310 | ||
18311 | ||
18312 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18313 | PyObject *resultobj; | |
18314 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18315 | wxFont *arg2 = 0 ; | |
18316 | PyObject * obj0 = 0 ; | |
18317 | PyObject * obj1 = 0 ; | |
18318 | char *kwnames[] = { | |
18319 | (char *) "self",(char *) "font", NULL | |
18320 | }; | |
18321 | ||
18322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
18323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18324 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18325 | if (arg2 == NULL) { | |
18326 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18327 | } | |
18328 | { | |
18329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18330 | (arg1)->SetFont((wxFont const &)*arg2); | |
18331 | ||
18332 | wxPyEndAllowThreads(__tstate); | |
18333 | if (PyErr_Occurred()) SWIG_fail; | |
18334 | } | |
18335 | Py_INCREF(Py_None); resultobj = Py_None; | |
18336 | return resultobj; | |
18337 | fail: | |
18338 | return NULL; | |
18339 | } | |
18340 | ||
18341 | ||
18342 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18343 | PyObject *resultobj; | |
18344 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18345 | long result; | |
18346 | PyObject * obj0 = 0 ; | |
18347 | char *kwnames[] = { | |
18348 | (char *) "self", NULL | |
18349 | }; | |
18350 | ||
18351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
18352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18353 | { | |
18354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18355 | result = (long)(arg1)->GetMask(); | |
18356 | ||
18357 | wxPyEndAllowThreads(__tstate); | |
18358 | if (PyErr_Occurred()) SWIG_fail; | |
18359 | } | |
8edf1c75 | 18360 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18361 | return resultobj; |
18362 | fail: | |
18363 | return NULL; | |
18364 | } | |
18365 | ||
18366 | ||
18367 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18368 | PyObject *resultobj; | |
18369 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18370 | long result; | |
18371 | PyObject * obj0 = 0 ; | |
18372 | char *kwnames[] = { | |
18373 | (char *) "self", NULL | |
18374 | }; | |
18375 | ||
18376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
18377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18378 | { | |
18379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18380 | result = (long)(arg1)->GetId(); | |
18381 | ||
18382 | wxPyEndAllowThreads(__tstate); | |
18383 | if (PyErr_Occurred()) SWIG_fail; | |
18384 | } | |
8edf1c75 | 18385 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18386 | return resultobj; |
18387 | fail: | |
18388 | return NULL; | |
18389 | } | |
18390 | ||
18391 | ||
18392 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18393 | PyObject *resultobj; | |
18394 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18395 | int result; | |
18396 | PyObject * obj0 = 0 ; | |
18397 | char *kwnames[] = { | |
18398 | (char *) "self", NULL | |
18399 | }; | |
18400 | ||
18401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
18402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18403 | { | |
18404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18405 | result = (int)(arg1)->GetColumn(); | |
18406 | ||
18407 | wxPyEndAllowThreads(__tstate); | |
18408 | if (PyErr_Occurred()) SWIG_fail; | |
18409 | } | |
8edf1c75 | 18410 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18411 | return resultobj; |
18412 | fail: | |
18413 | return NULL; | |
18414 | } | |
18415 | ||
18416 | ||
18417 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18418 | PyObject *resultobj; | |
18419 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18420 | long result; | |
18421 | PyObject * obj0 = 0 ; | |
18422 | char *kwnames[] = { | |
18423 | (char *) "self", NULL | |
18424 | }; | |
18425 | ||
18426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
18427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18428 | { | |
18429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18430 | result = (long)(arg1)->GetState(); | |
18431 | ||
18432 | wxPyEndAllowThreads(__tstate); | |
18433 | if (PyErr_Occurred()) SWIG_fail; | |
18434 | } | |
8edf1c75 | 18435 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18436 | return resultobj; |
18437 | fail: | |
18438 | return NULL; | |
18439 | } | |
18440 | ||
18441 | ||
18442 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18443 | PyObject *resultobj; | |
18444 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18445 | wxString *result; | |
18446 | PyObject * obj0 = 0 ; | |
18447 | char *kwnames[] = { | |
18448 | (char *) "self", NULL | |
18449 | }; | |
18450 | ||
18451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
18452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18453 | { | |
18454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18455 | { | |
18456 | wxString const &_result_ref = (arg1)->GetText(); | |
18457 | result = (wxString *) &_result_ref; | |
18458 | } | |
18459 | ||
18460 | wxPyEndAllowThreads(__tstate); | |
18461 | if (PyErr_Occurred()) SWIG_fail; | |
18462 | } | |
f0983263 RD |
18463 | { |
18464 | #if wxUSE_UNICODE | |
18465 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18466 | #else | |
18467 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18468 | #endif | |
18469 | } | |
d14a1e28 RD |
18470 | return resultobj; |
18471 | fail: | |
18472 | return NULL; | |
18473 | } | |
18474 | ||
18475 | ||
18476 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18477 | PyObject *resultobj; | |
18478 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18479 | int result; | |
18480 | PyObject * obj0 = 0 ; | |
18481 | char *kwnames[] = { | |
18482 | (char *) "self", NULL | |
18483 | }; | |
18484 | ||
18485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
18486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18487 | { | |
18488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18489 | result = (int)(arg1)->GetImage(); | |
18490 | ||
18491 | wxPyEndAllowThreads(__tstate); | |
18492 | if (PyErr_Occurred()) SWIG_fail; | |
18493 | } | |
8edf1c75 | 18494 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18495 | return resultobj; |
18496 | fail: | |
18497 | return NULL; | |
18498 | } | |
18499 | ||
18500 | ||
18501 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18502 | PyObject *resultobj; | |
18503 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18504 | long result; | |
18505 | PyObject * obj0 = 0 ; | |
18506 | char *kwnames[] = { | |
18507 | (char *) "self", NULL | |
18508 | }; | |
18509 | ||
18510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
18511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18512 | { | |
18513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18514 | result = (long)(arg1)->GetData(); | |
18515 | ||
18516 | wxPyEndAllowThreads(__tstate); | |
18517 | if (PyErr_Occurred()) SWIG_fail; | |
18518 | } | |
8edf1c75 | 18519 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18520 | return resultobj; |
18521 | fail: | |
18522 | return NULL; | |
18523 | } | |
18524 | ||
18525 | ||
18526 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18527 | PyObject *resultobj; | |
18528 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18529 | int result; | |
18530 | PyObject * obj0 = 0 ; | |
18531 | char *kwnames[] = { | |
18532 | (char *) "self", NULL | |
18533 | }; | |
18534 | ||
18535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
18536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18537 | { | |
18538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18539 | result = (int)(arg1)->GetWidth(); | |
18540 | ||
18541 | wxPyEndAllowThreads(__tstate); | |
18542 | if (PyErr_Occurred()) SWIG_fail; | |
18543 | } | |
8edf1c75 | 18544 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18545 | return resultobj; |
18546 | fail: | |
18547 | return NULL; | |
18548 | } | |
18549 | ||
18550 | ||
18551 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18552 | PyObject *resultobj; | |
18553 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18554 | int result; | |
18555 | PyObject * obj0 = 0 ; | |
18556 | char *kwnames[] = { | |
18557 | (char *) "self", NULL | |
18558 | }; | |
18559 | ||
18560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
18561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18562 | { | |
18563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18564 | result = (int)(arg1)->GetAlign(); | |
18565 | ||
18566 | wxPyEndAllowThreads(__tstate); | |
18567 | if (PyErr_Occurred()) SWIG_fail; | |
18568 | } | |
8edf1c75 | 18569 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18570 | return resultobj; |
18571 | fail: | |
18572 | return NULL; | |
18573 | } | |
18574 | ||
18575 | ||
18576 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18577 | PyObject *resultobj; | |
18578 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18579 | wxListItemAttr *result; | |
18580 | PyObject * obj0 = 0 ; | |
18581 | char *kwnames[] = { | |
18582 | (char *) "self", NULL | |
18583 | }; | |
18584 | ||
18585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
18586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18587 | { | |
18588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18589 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
18590 | ||
18591 | wxPyEndAllowThreads(__tstate); | |
18592 | if (PyErr_Occurred()) SWIG_fail; | |
18593 | } | |
18594 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 0); | |
18595 | return resultobj; | |
18596 | fail: | |
18597 | return NULL; | |
18598 | } | |
18599 | ||
18600 | ||
18601 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18602 | PyObject *resultobj; | |
18603 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18604 | bool result; | |
18605 | PyObject * obj0 = 0 ; | |
18606 | char *kwnames[] = { | |
18607 | (char *) "self", NULL | |
18608 | }; | |
18609 | ||
18610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
18611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18612 | { | |
18613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18614 | result = (bool)(arg1)->HasAttributes(); | |
18615 | ||
18616 | wxPyEndAllowThreads(__tstate); | |
18617 | if (PyErr_Occurred()) SWIG_fail; | |
18618 | } | |
4e760a36 | 18619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18620 | return resultobj; |
18621 | fail: | |
18622 | return NULL; | |
18623 | } | |
18624 | ||
18625 | ||
18626 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18627 | PyObject *resultobj; | |
18628 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18629 | wxColour result; | |
18630 | PyObject * obj0 = 0 ; | |
18631 | char *kwnames[] = { | |
18632 | (char *) "self", NULL | |
18633 | }; | |
18634 | ||
18635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
18636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18637 | { | |
18638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18639 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
18640 | ||
18641 | wxPyEndAllowThreads(__tstate); | |
18642 | if (PyErr_Occurred()) SWIG_fail; | |
18643 | } | |
18644 | { | |
18645 | wxColour * resultptr; | |
18646 | resultptr = new wxColour((wxColour &) result); | |
18647 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18648 | } | |
18649 | return resultobj; | |
18650 | fail: | |
18651 | return NULL; | |
18652 | } | |
18653 | ||
18654 | ||
18655 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18656 | PyObject *resultobj; | |
18657 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18658 | wxColour result; | |
18659 | PyObject * obj0 = 0 ; | |
18660 | char *kwnames[] = { | |
18661 | (char *) "self", NULL | |
18662 | }; | |
18663 | ||
18664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
18665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18666 | { | |
18667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18668 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
18669 | ||
18670 | wxPyEndAllowThreads(__tstate); | |
18671 | if (PyErr_Occurred()) SWIG_fail; | |
18672 | } | |
18673 | { | |
18674 | wxColour * resultptr; | |
18675 | resultptr = new wxColour((wxColour &) result); | |
18676 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18677 | } | |
18678 | return resultobj; | |
18679 | fail: | |
18680 | return NULL; | |
18681 | } | |
18682 | ||
18683 | ||
18684 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18685 | PyObject *resultobj; | |
18686 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18687 | wxFont result; | |
18688 | PyObject * obj0 = 0 ; | |
18689 | char *kwnames[] = { | |
18690 | (char *) "self", NULL | |
18691 | }; | |
18692 | ||
18693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
18694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18695 | { | |
18696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18697 | result = ((wxListItem const *)arg1)->GetFont(); | |
18698 | ||
18699 | wxPyEndAllowThreads(__tstate); | |
18700 | if (PyErr_Occurred()) SWIG_fail; | |
18701 | } | |
18702 | { | |
18703 | wxFont * resultptr; | |
18704 | resultptr = new wxFont((wxFont &) result); | |
18705 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
18706 | } | |
18707 | return resultobj; | |
18708 | fail: | |
18709 | return NULL; | |
18710 | } | |
18711 | ||
18712 | ||
18713 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18714 | PyObject *resultobj; | |
18715 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18716 | long arg2 ; | |
18717 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18718 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18719 | char *kwnames[] = { |
18720 | (char *) "self",(char *) "m_mask", NULL | |
18721 | }; | |
18722 | ||
8edf1c75 | 18723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18725 | { |
18726 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18727 | if (PyErr_Occurred()) SWIG_fail; | |
18728 | } | |
d14a1e28 RD |
18729 | if (arg1) (arg1)->m_mask = arg2; |
18730 | ||
18731 | Py_INCREF(Py_None); resultobj = Py_None; | |
18732 | return resultobj; | |
18733 | fail: | |
18734 | return NULL; | |
18735 | } | |
18736 | ||
18737 | ||
18738 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18739 | PyObject *resultobj; | |
18740 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18741 | long result; | |
18742 | PyObject * obj0 = 0 ; | |
18743 | char *kwnames[] = { | |
18744 | (char *) "self", NULL | |
18745 | }; | |
18746 | ||
18747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
18748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18749 | result = (long) ((arg1)->m_mask); | |
18750 | ||
8edf1c75 | 18751 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18752 | return resultobj; |
18753 | fail: | |
18754 | return NULL; | |
18755 | } | |
18756 | ||
18757 | ||
18758 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18759 | PyObject *resultobj; | |
18760 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18761 | long arg2 ; | |
18762 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18763 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18764 | char *kwnames[] = { |
18765 | (char *) "self",(char *) "m_itemId", NULL | |
18766 | }; | |
18767 | ||
8edf1c75 | 18768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18770 | { |
18771 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18772 | if (PyErr_Occurred()) SWIG_fail; | |
18773 | } | |
d14a1e28 RD |
18774 | if (arg1) (arg1)->m_itemId = arg2; |
18775 | ||
18776 | Py_INCREF(Py_None); resultobj = Py_None; | |
18777 | return resultobj; | |
18778 | fail: | |
18779 | return NULL; | |
18780 | } | |
18781 | ||
18782 | ||
18783 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18784 | PyObject *resultobj; | |
18785 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18786 | long result; | |
18787 | PyObject * obj0 = 0 ; | |
18788 | char *kwnames[] = { | |
18789 | (char *) "self", NULL | |
18790 | }; | |
18791 | ||
18792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
18793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18794 | result = (long) ((arg1)->m_itemId); | |
18795 | ||
8edf1c75 | 18796 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18797 | return resultobj; |
18798 | fail: | |
18799 | return NULL; | |
18800 | } | |
18801 | ||
18802 | ||
18803 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18804 | PyObject *resultobj; | |
18805 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18806 | int arg2 ; | |
18807 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18808 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18809 | char *kwnames[] = { |
18810 | (char *) "self",(char *) "m_col", NULL | |
18811 | }; | |
18812 | ||
8edf1c75 | 18813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18815 | { |
18816 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18817 | if (PyErr_Occurred()) SWIG_fail; | |
18818 | } | |
d14a1e28 RD |
18819 | if (arg1) (arg1)->m_col = arg2; |
18820 | ||
18821 | Py_INCREF(Py_None); resultobj = Py_None; | |
18822 | return resultobj; | |
18823 | fail: | |
18824 | return NULL; | |
18825 | } | |
18826 | ||
18827 | ||
18828 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18829 | PyObject *resultobj; | |
18830 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18831 | int result; | |
18832 | PyObject * obj0 = 0 ; | |
18833 | char *kwnames[] = { | |
18834 | (char *) "self", NULL | |
18835 | }; | |
18836 | ||
18837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
18838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18839 | result = (int) ((arg1)->m_col); | |
18840 | ||
8edf1c75 | 18841 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18842 | return resultobj; |
18843 | fail: | |
18844 | return NULL; | |
18845 | } | |
18846 | ||
18847 | ||
18848 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18849 | PyObject *resultobj; | |
18850 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18851 | long arg2 ; | |
18852 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18853 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18854 | char *kwnames[] = { |
18855 | (char *) "self",(char *) "m_state", NULL | |
18856 | }; | |
18857 | ||
8edf1c75 | 18858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18860 | { |
18861 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18862 | if (PyErr_Occurred()) SWIG_fail; | |
18863 | } | |
d14a1e28 RD |
18864 | if (arg1) (arg1)->m_state = arg2; |
18865 | ||
18866 | Py_INCREF(Py_None); resultobj = Py_None; | |
18867 | return resultobj; | |
18868 | fail: | |
18869 | return NULL; | |
18870 | } | |
18871 | ||
18872 | ||
18873 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18874 | PyObject *resultobj; | |
18875 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18876 | long result; | |
18877 | PyObject * obj0 = 0 ; | |
18878 | char *kwnames[] = { | |
18879 | (char *) "self", NULL | |
18880 | }; | |
18881 | ||
18882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
18883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18884 | result = (long) ((arg1)->m_state); | |
18885 | ||
8edf1c75 | 18886 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18887 | return resultobj; |
18888 | fail: | |
18889 | return NULL; | |
18890 | } | |
18891 | ||
18892 | ||
18893 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18894 | PyObject *resultobj; | |
18895 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18896 | long arg2 ; | |
18897 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18898 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18899 | char *kwnames[] = { |
18900 | (char *) "self",(char *) "m_stateMask", NULL | |
18901 | }; | |
18902 | ||
8edf1c75 | 18903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18905 | { |
18906 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18907 | if (PyErr_Occurred()) SWIG_fail; | |
18908 | } | |
d14a1e28 RD |
18909 | if (arg1) (arg1)->m_stateMask = arg2; |
18910 | ||
18911 | Py_INCREF(Py_None); resultobj = Py_None; | |
18912 | return resultobj; | |
18913 | fail: | |
18914 | return NULL; | |
18915 | } | |
18916 | ||
18917 | ||
18918 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18919 | PyObject *resultobj; | |
18920 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18921 | long result; | |
18922 | PyObject * obj0 = 0 ; | |
18923 | char *kwnames[] = { | |
18924 | (char *) "self", NULL | |
18925 | }; | |
18926 | ||
18927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
18928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18929 | result = (long) ((arg1)->m_stateMask); | |
18930 | ||
8edf1c75 | 18931 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18932 | return resultobj; |
18933 | fail: | |
18934 | return NULL; | |
18935 | } | |
18936 | ||
18937 | ||
18938 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18939 | PyObject *resultobj; | |
18940 | wxListItem *arg1 = (wxListItem *) 0 ; | |
d03fd34d | 18941 | wxString *arg2 = (wxString *) 0 ; |
f775c30d | 18942 | bool temp2 = False ; |
d14a1e28 RD |
18943 | PyObject * obj0 = 0 ; |
18944 | PyObject * obj1 = 0 ; | |
18945 | char *kwnames[] = { | |
18946 | (char *) "self",(char *) "m_text", NULL | |
18947 | }; | |
18948 | ||
18949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
18950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
f775c30d RD |
18951 | { |
18952 | arg2 = wxString_in_helper(obj1); | |
18953 | if (arg2 == NULL) SWIG_fail; | |
18954 | temp2 = True; | |
18955 | } | |
d03fd34d | 18956 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
18957 | |
18958 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
18959 | { |
18960 | if (temp2) | |
18961 | delete arg2; | |
18962 | } | |
d14a1e28 RD |
18963 | return resultobj; |
18964 | fail: | |
f775c30d RD |
18965 | { |
18966 | if (temp2) | |
18967 | delete arg2; | |
18968 | } | |
d14a1e28 RD |
18969 | return NULL; |
18970 | } | |
18971 | ||
18972 | ||
18973 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18974 | PyObject *resultobj; | |
18975 | wxListItem *arg1 = (wxListItem *) 0 ; | |
d03fd34d | 18976 | wxString *result; |
d14a1e28 RD |
18977 | PyObject * obj0 = 0 ; |
18978 | char *kwnames[] = { | |
18979 | (char *) "self", NULL | |
18980 | }; | |
18981 | ||
18982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
18983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d03fd34d | 18984 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
18985 | |
18986 | { | |
18987 | #if wxUSE_UNICODE | |
d03fd34d | 18988 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 18989 | #else |
d03fd34d | 18990 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
18991 | #endif |
18992 | } | |
18993 | return resultobj; | |
18994 | fail: | |
18995 | return NULL; | |
18996 | } | |
18997 | ||
18998 | ||
18999 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19000 | PyObject *resultobj; | |
19001 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19002 | int arg2 ; | |
19003 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19004 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19005 | char *kwnames[] = { |
19006 | (char *) "self",(char *) "m_image", NULL | |
19007 | }; | |
19008 | ||
8edf1c75 | 19009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19011 | { |
19012 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19013 | if (PyErr_Occurred()) SWIG_fail; | |
19014 | } | |
d14a1e28 RD |
19015 | if (arg1) (arg1)->m_image = arg2; |
19016 | ||
19017 | Py_INCREF(Py_None); resultobj = Py_None; | |
19018 | return resultobj; | |
19019 | fail: | |
19020 | return NULL; | |
19021 | } | |
19022 | ||
19023 | ||
19024 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19025 | PyObject *resultobj; | |
19026 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19027 | int result; | |
19028 | PyObject * obj0 = 0 ; | |
19029 | char *kwnames[] = { | |
19030 | (char *) "self", NULL | |
19031 | }; | |
19032 | ||
19033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
19034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19035 | result = (int) ((arg1)->m_image); | |
19036 | ||
8edf1c75 | 19037 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19038 | return resultobj; |
19039 | fail: | |
19040 | return NULL; | |
19041 | } | |
19042 | ||
19043 | ||
19044 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19045 | PyObject *resultobj; | |
19046 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19047 | long arg2 ; | |
19048 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19049 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19050 | char *kwnames[] = { |
19051 | (char *) "self",(char *) "m_data", NULL | |
19052 | }; | |
19053 | ||
8edf1c75 | 19054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19056 | { |
19057 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19058 | if (PyErr_Occurred()) SWIG_fail; | |
19059 | } | |
d14a1e28 RD |
19060 | if (arg1) (arg1)->m_data = arg2; |
19061 | ||
19062 | Py_INCREF(Py_None); resultobj = Py_None; | |
19063 | return resultobj; | |
19064 | fail: | |
19065 | return NULL; | |
19066 | } | |
19067 | ||
19068 | ||
19069 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19070 | PyObject *resultobj; | |
19071 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19072 | long result; | |
19073 | PyObject * obj0 = 0 ; | |
19074 | char *kwnames[] = { | |
19075 | (char *) "self", NULL | |
19076 | }; | |
19077 | ||
19078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
19079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19080 | result = (long) ((arg1)->m_data); | |
19081 | ||
8edf1c75 | 19082 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19083 | return resultobj; |
19084 | fail: | |
19085 | return NULL; | |
19086 | } | |
19087 | ||
19088 | ||
19089 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19090 | PyObject *resultobj; | |
19091 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19092 | int arg2 ; | |
19093 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19094 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19095 | char *kwnames[] = { |
19096 | (char *) "self",(char *) "m_format", NULL | |
19097 | }; | |
19098 | ||
8edf1c75 | 19099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19101 | { |
19102 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19103 | if (PyErr_Occurred()) SWIG_fail; | |
19104 | } | |
d14a1e28 RD |
19105 | if (arg1) (arg1)->m_format = arg2; |
19106 | ||
19107 | Py_INCREF(Py_None); resultobj = Py_None; | |
19108 | return resultobj; | |
19109 | fail: | |
19110 | return NULL; | |
19111 | } | |
19112 | ||
19113 | ||
19114 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19115 | PyObject *resultobj; | |
19116 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19117 | int result; | |
19118 | PyObject * obj0 = 0 ; | |
19119 | char *kwnames[] = { | |
19120 | (char *) "self", NULL | |
19121 | }; | |
19122 | ||
19123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
19124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19125 | result = (int) ((arg1)->m_format); | |
19126 | ||
8edf1c75 | 19127 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19128 | return resultobj; |
19129 | fail: | |
19130 | return NULL; | |
19131 | } | |
19132 | ||
19133 | ||
19134 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19135 | PyObject *resultobj; | |
19136 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19137 | int arg2 ; | |
19138 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19139 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19140 | char *kwnames[] = { |
19141 | (char *) "self",(char *) "m_width", NULL | |
19142 | }; | |
19143 | ||
8edf1c75 | 19144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19146 | { |
19147 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19148 | if (PyErr_Occurred()) SWIG_fail; | |
19149 | } | |
d14a1e28 RD |
19150 | if (arg1) (arg1)->m_width = arg2; |
19151 | ||
19152 | Py_INCREF(Py_None); resultobj = Py_None; | |
19153 | return resultobj; | |
19154 | fail: | |
19155 | return NULL; | |
19156 | } | |
19157 | ||
19158 | ||
19159 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19160 | PyObject *resultobj; | |
19161 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19162 | int result; | |
19163 | PyObject * obj0 = 0 ; | |
19164 | char *kwnames[] = { | |
19165 | (char *) "self", NULL | |
19166 | }; | |
19167 | ||
19168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
19169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19170 | result = (int) ((arg1)->m_width); | |
19171 | ||
8edf1c75 | 19172 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19173 | return resultobj; |
19174 | fail: | |
19175 | return NULL; | |
19176 | } | |
19177 | ||
19178 | ||
19179 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
19180 | PyObject *obj; | |
19181 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19182 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
19183 | Py_INCREF(obj); | |
19184 | return Py_BuildValue((char *)""); | |
19185 | } | |
19186 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19187 | PyObject *resultobj; | |
19188 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19189 | int arg2 = (int) 0 ; | |
19190 | wxListEvent *result; | |
8edf1c75 RD |
19191 | PyObject * obj0 = 0 ; |
19192 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19193 | char *kwnames[] = { |
19194 | (char *) "commandType",(char *) "id", NULL | |
19195 | }; | |
19196 | ||
8edf1c75 RD |
19197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
19198 | if (obj0) { | |
19199 | { | |
19200 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
19201 | if (PyErr_Occurred()) SWIG_fail; | |
19202 | } | |
19203 | } | |
19204 | if (obj1) { | |
19205 | { | |
19206 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19207 | if (PyErr_Occurred()) SWIG_fail; | |
19208 | } | |
19209 | } | |
d14a1e28 RD |
19210 | { |
19211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19212 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
19213 | ||
19214 | wxPyEndAllowThreads(__tstate); | |
19215 | if (PyErr_Occurred()) SWIG_fail; | |
19216 | } | |
19217 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListEvent, 1); | |
19218 | return resultobj; | |
19219 | fail: | |
19220 | return NULL; | |
19221 | } | |
19222 | ||
19223 | ||
19224 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19225 | PyObject *resultobj; | |
19226 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19227 | int arg2 ; | |
19228 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19229 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19230 | char *kwnames[] = { |
19231 | (char *) "self",(char *) "m_code", NULL | |
19232 | }; | |
19233 | ||
8edf1c75 | 19234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19236 | { |
19237 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19238 | if (PyErr_Occurred()) SWIG_fail; | |
19239 | } | |
d14a1e28 RD |
19240 | if (arg1) (arg1)->m_code = arg2; |
19241 | ||
19242 | Py_INCREF(Py_None); resultobj = Py_None; | |
19243 | return resultobj; | |
19244 | fail: | |
19245 | return NULL; | |
19246 | } | |
19247 | ||
19248 | ||
19249 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19250 | PyObject *resultobj; | |
19251 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19252 | int result; | |
19253 | PyObject * obj0 = 0 ; | |
19254 | char *kwnames[] = { | |
19255 | (char *) "self", NULL | |
19256 | }; | |
19257 | ||
19258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
19259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19260 | result = (int) ((arg1)->m_code); | |
19261 | ||
8edf1c75 | 19262 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19263 | return resultobj; |
19264 | fail: | |
19265 | return NULL; | |
19266 | } | |
19267 | ||
19268 | ||
19269 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19270 | PyObject *resultobj; | |
19271 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19272 | long arg2 ; | |
19273 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19274 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19275 | char *kwnames[] = { |
19276 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
19277 | }; | |
19278 | ||
8edf1c75 | 19279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19281 | { |
19282 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19283 | if (PyErr_Occurred()) SWIG_fail; | |
19284 | } | |
d14a1e28 RD |
19285 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
19286 | ||
19287 | Py_INCREF(Py_None); resultobj = Py_None; | |
19288 | return resultobj; | |
19289 | fail: | |
19290 | return NULL; | |
19291 | } | |
19292 | ||
19293 | ||
19294 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19295 | PyObject *resultobj; | |
19296 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19297 | long result; | |
19298 | PyObject * obj0 = 0 ; | |
19299 | char *kwnames[] = { | |
19300 | (char *) "self", NULL | |
19301 | }; | |
19302 | ||
19303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
19304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19305 | result = (long) ((arg1)->m_oldItemIndex); | |
19306 | ||
8edf1c75 | 19307 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19308 | return resultobj; |
19309 | fail: | |
19310 | return NULL; | |
19311 | } | |
19312 | ||
19313 | ||
19314 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19315 | PyObject *resultobj; | |
19316 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19317 | long arg2 ; | |
19318 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19319 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19320 | char *kwnames[] = { |
19321 | (char *) "self",(char *) "m_itemIndex", NULL | |
19322 | }; | |
19323 | ||
8edf1c75 | 19324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19326 | { |
19327 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19328 | if (PyErr_Occurred()) SWIG_fail; | |
19329 | } | |
d14a1e28 RD |
19330 | if (arg1) (arg1)->m_itemIndex = arg2; |
19331 | ||
19332 | Py_INCREF(Py_None); resultobj = Py_None; | |
19333 | return resultobj; | |
19334 | fail: | |
19335 | return NULL; | |
19336 | } | |
19337 | ||
19338 | ||
19339 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19340 | PyObject *resultobj; | |
19341 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19342 | long result; | |
19343 | PyObject * obj0 = 0 ; | |
19344 | char *kwnames[] = { | |
19345 | (char *) "self", NULL | |
19346 | }; | |
19347 | ||
19348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
19349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19350 | result = (long) ((arg1)->m_itemIndex); | |
19351 | ||
8edf1c75 | 19352 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19353 | return resultobj; |
19354 | fail: | |
19355 | return NULL; | |
19356 | } | |
19357 | ||
19358 | ||
19359 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19360 | PyObject *resultobj; | |
19361 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19362 | int arg2 ; | |
19363 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19364 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19365 | char *kwnames[] = { |
19366 | (char *) "self",(char *) "m_col", NULL | |
19367 | }; | |
19368 | ||
8edf1c75 | 19369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19371 | { |
19372 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19373 | if (PyErr_Occurred()) SWIG_fail; | |
19374 | } | |
d14a1e28 RD |
19375 | if (arg1) (arg1)->m_col = arg2; |
19376 | ||
19377 | Py_INCREF(Py_None); resultobj = Py_None; | |
19378 | return resultobj; | |
19379 | fail: | |
19380 | return NULL; | |
19381 | } | |
19382 | ||
19383 | ||
19384 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19385 | PyObject *resultobj; | |
19386 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19387 | int result; | |
19388 | PyObject * obj0 = 0 ; | |
19389 | char *kwnames[] = { | |
19390 | (char *) "self", NULL | |
19391 | }; | |
19392 | ||
19393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
19394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19395 | result = (int) ((arg1)->m_col); | |
19396 | ||
8edf1c75 | 19397 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19398 | return resultobj; |
19399 | fail: | |
19400 | return NULL; | |
19401 | } | |
19402 | ||
19403 | ||
19404 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19405 | PyObject *resultobj; | |
19406 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19407 | wxPoint *arg2 = (wxPoint *) 0 ; | |
19408 | PyObject * obj0 = 0 ; | |
19409 | PyObject * obj1 = 0 ; | |
19410 | char *kwnames[] = { | |
19411 | (char *) "self",(char *) "m_pointDrag", NULL | |
19412 | }; | |
19413 | ||
19414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
19415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19416 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19417 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
19418 | ||
19419 | Py_INCREF(Py_None); resultobj = Py_None; | |
19420 | return resultobj; | |
19421 | fail: | |
19422 | return NULL; | |
19423 | } | |
19424 | ||
19425 | ||
19426 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19427 | PyObject *resultobj; | |
19428 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19429 | wxPoint *result; | |
19430 | PyObject * obj0 = 0 ; | |
19431 | char *kwnames[] = { | |
19432 | (char *) "self", NULL | |
19433 | }; | |
19434 | ||
19435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
19436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19437 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
19438 | ||
19439 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
19440 | return resultobj; | |
19441 | fail: | |
19442 | return NULL; | |
19443 | } | |
19444 | ||
19445 | ||
19446 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19447 | PyObject *resultobj; | |
19448 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19449 | wxListItem *result; | |
19450 | PyObject * obj0 = 0 ; | |
19451 | char *kwnames[] = { | |
19452 | (char *) "self", NULL | |
19453 | }; | |
19454 | ||
19455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
19456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19457 | result = (wxListItem *)& ((arg1)->m_item); | |
19458 | ||
19459 | { | |
19460 | resultobj = wxPyMake_wxObject(result); | |
19461 | } | |
19462 | return resultobj; | |
19463 | fail: | |
19464 | return NULL; | |
19465 | } | |
19466 | ||
19467 | ||
19468 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19469 | PyObject *resultobj; | |
19470 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19471 | int result; | |
19472 | PyObject * obj0 = 0 ; | |
19473 | char *kwnames[] = { | |
19474 | (char *) "self", NULL | |
19475 | }; | |
19476 | ||
19477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
19478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19479 | { | |
19480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19481 | result = (int)(arg1)->GetKeyCode(); | |
19482 | ||
19483 | wxPyEndAllowThreads(__tstate); | |
19484 | if (PyErr_Occurred()) SWIG_fail; | |
19485 | } | |
8edf1c75 | 19486 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19487 | return resultobj; |
19488 | fail: | |
19489 | return NULL; | |
19490 | } | |
19491 | ||
19492 | ||
19493 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19494 | PyObject *resultobj; | |
19495 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19496 | long result; | |
19497 | PyObject * obj0 = 0 ; | |
19498 | char *kwnames[] = { | |
19499 | (char *) "self", NULL | |
19500 | }; | |
19501 | ||
19502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
19503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19504 | { | |
19505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19506 | result = (long)(arg1)->GetIndex(); | |
19507 | ||
19508 | wxPyEndAllowThreads(__tstate); | |
19509 | if (PyErr_Occurred()) SWIG_fail; | |
19510 | } | |
8edf1c75 | 19511 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19512 | return resultobj; |
19513 | fail: | |
19514 | return NULL; | |
19515 | } | |
19516 | ||
19517 | ||
19518 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19519 | PyObject *resultobj; | |
19520 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19521 | int result; | |
19522 | PyObject * obj0 = 0 ; | |
19523 | char *kwnames[] = { | |
19524 | (char *) "self", NULL | |
19525 | }; | |
19526 | ||
19527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
19528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19529 | { | |
19530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19531 | result = (int)(arg1)->GetColumn(); | |
19532 | ||
19533 | wxPyEndAllowThreads(__tstate); | |
19534 | if (PyErr_Occurred()) SWIG_fail; | |
19535 | } | |
8edf1c75 | 19536 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19537 | return resultobj; |
19538 | fail: | |
19539 | return NULL; | |
19540 | } | |
19541 | ||
19542 | ||
19543 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19544 | PyObject *resultobj; | |
19545 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19546 | wxPoint result; | |
19547 | PyObject * obj0 = 0 ; | |
19548 | char *kwnames[] = { | |
19549 | (char *) "self", NULL | |
19550 | }; | |
19551 | ||
19552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
19553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19554 | { | |
19555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19556 | result = (arg1)->GetPoint(); | |
19557 | ||
19558 | wxPyEndAllowThreads(__tstate); | |
19559 | if (PyErr_Occurred()) SWIG_fail; | |
19560 | } | |
19561 | { | |
19562 | wxPoint * resultptr; | |
19563 | resultptr = new wxPoint((wxPoint &) result); | |
19564 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
19565 | } | |
19566 | return resultobj; | |
19567 | fail: | |
19568 | return NULL; | |
19569 | } | |
19570 | ||
19571 | ||
19572 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19573 | PyObject *resultobj; | |
19574 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19575 | wxString *result; | |
19576 | PyObject * obj0 = 0 ; | |
19577 | char *kwnames[] = { | |
19578 | (char *) "self", NULL | |
19579 | }; | |
19580 | ||
19581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
19582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19583 | { | |
19584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19585 | { | |
19586 | wxString const &_result_ref = (arg1)->GetLabel(); | |
19587 | result = (wxString *) &_result_ref; | |
19588 | } | |
19589 | ||
19590 | wxPyEndAllowThreads(__tstate); | |
19591 | if (PyErr_Occurred()) SWIG_fail; | |
19592 | } | |
f0983263 RD |
19593 | { |
19594 | #if wxUSE_UNICODE | |
19595 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19596 | #else | |
19597 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19598 | #endif | |
19599 | } | |
d14a1e28 RD |
19600 | return resultobj; |
19601 | fail: | |
19602 | return NULL; | |
19603 | } | |
19604 | ||
19605 | ||
19606 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19607 | PyObject *resultobj; | |
19608 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19609 | wxString *result; | |
19610 | PyObject * obj0 = 0 ; | |
19611 | char *kwnames[] = { | |
19612 | (char *) "self", NULL | |
19613 | }; | |
19614 | ||
19615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
19616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19617 | { | |
19618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19619 | { | |
19620 | wxString const &_result_ref = (arg1)->GetText(); | |
19621 | result = (wxString *) &_result_ref; | |
19622 | } | |
19623 | ||
19624 | wxPyEndAllowThreads(__tstate); | |
19625 | if (PyErr_Occurred()) SWIG_fail; | |
19626 | } | |
f0983263 RD |
19627 | { |
19628 | #if wxUSE_UNICODE | |
19629 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19630 | #else | |
19631 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19632 | #endif | |
19633 | } | |
d14a1e28 RD |
19634 | return resultobj; |
19635 | fail: | |
19636 | return NULL; | |
19637 | } | |
19638 | ||
19639 | ||
19640 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19641 | PyObject *resultobj; | |
19642 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19643 | int result; | |
19644 | PyObject * obj0 = 0 ; | |
19645 | char *kwnames[] = { | |
19646 | (char *) "self", NULL | |
19647 | }; | |
19648 | ||
19649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
19650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19651 | { | |
19652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19653 | result = (int)(arg1)->GetImage(); | |
19654 | ||
19655 | wxPyEndAllowThreads(__tstate); | |
19656 | if (PyErr_Occurred()) SWIG_fail; | |
19657 | } | |
8edf1c75 | 19658 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19659 | return resultobj; |
19660 | fail: | |
19661 | return NULL; | |
19662 | } | |
19663 | ||
19664 | ||
19665 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19666 | PyObject *resultobj; | |
19667 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19668 | long result; | |
19669 | PyObject * obj0 = 0 ; | |
19670 | char *kwnames[] = { | |
19671 | (char *) "self", NULL | |
19672 | }; | |
19673 | ||
19674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
19675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19676 | { | |
19677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19678 | result = (long)(arg1)->GetData(); | |
19679 | ||
19680 | wxPyEndAllowThreads(__tstate); | |
19681 | if (PyErr_Occurred()) SWIG_fail; | |
19682 | } | |
8edf1c75 | 19683 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19684 | return resultobj; |
19685 | fail: | |
19686 | return NULL; | |
19687 | } | |
19688 | ||
19689 | ||
19690 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19691 | PyObject *resultobj; | |
19692 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19693 | long result; | |
19694 | PyObject * obj0 = 0 ; | |
19695 | char *kwnames[] = { | |
19696 | (char *) "self", NULL | |
19697 | }; | |
19698 | ||
19699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
19700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19701 | { | |
19702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19703 | result = (long)(arg1)->GetMask(); | |
19704 | ||
19705 | wxPyEndAllowThreads(__tstate); | |
19706 | if (PyErr_Occurred()) SWIG_fail; | |
19707 | } | |
8edf1c75 | 19708 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19709 | return resultobj; |
19710 | fail: | |
19711 | return NULL; | |
19712 | } | |
19713 | ||
19714 | ||
19715 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19716 | PyObject *resultobj; | |
19717 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19718 | wxListItem *result; | |
19719 | PyObject * obj0 = 0 ; | |
19720 | char *kwnames[] = { | |
19721 | (char *) "self", NULL | |
19722 | }; | |
19723 | ||
19724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
19725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19726 | { | |
19727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19728 | { | |
19729 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
19730 | result = (wxListItem *) &_result_ref; | |
19731 | } | |
19732 | ||
19733 | wxPyEndAllowThreads(__tstate); | |
19734 | if (PyErr_Occurred()) SWIG_fail; | |
19735 | } | |
19736 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItem, 0); | |
19737 | return resultobj; | |
19738 | fail: | |
19739 | return NULL; | |
19740 | } | |
19741 | ||
19742 | ||
19743 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19744 | PyObject *resultobj; | |
19745 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19746 | long result; | |
19747 | PyObject * obj0 = 0 ; | |
19748 | char *kwnames[] = { | |
19749 | (char *) "self", NULL | |
19750 | }; | |
19751 | ||
19752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
19753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19754 | { | |
19755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19756 | result = (long)(arg1)->GetCacheFrom(); | |
19757 | ||
19758 | wxPyEndAllowThreads(__tstate); | |
19759 | if (PyErr_Occurred()) SWIG_fail; | |
19760 | } | |
8edf1c75 | 19761 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19762 | return resultobj; |
19763 | fail: | |
19764 | return NULL; | |
19765 | } | |
19766 | ||
19767 | ||
19768 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19769 | PyObject *resultobj; | |
19770 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19771 | long result; | |
19772 | PyObject * obj0 = 0 ; | |
19773 | char *kwnames[] = { | |
19774 | (char *) "self", NULL | |
19775 | }; | |
19776 | ||
19777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
19778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19779 | { | |
19780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19781 | result = (long)(arg1)->GetCacheTo(); | |
19782 | ||
19783 | wxPyEndAllowThreads(__tstate); | |
19784 | if (PyErr_Occurred()) SWIG_fail; | |
19785 | } | |
8edf1c75 | 19786 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19787 | return resultobj; |
19788 | fail: | |
19789 | return NULL; | |
19790 | } | |
19791 | ||
19792 | ||
19793 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19794 | PyObject *resultobj; | |
19795 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19796 | bool result; | |
19797 | PyObject * obj0 = 0 ; | |
19798 | char *kwnames[] = { | |
19799 | (char *) "self", NULL | |
19800 | }; | |
19801 | ||
19802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
19803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19804 | { | |
19805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19806 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
19807 | ||
19808 | wxPyEndAllowThreads(__tstate); | |
19809 | if (PyErr_Occurred()) SWIG_fail; | |
19810 | } | |
4e760a36 | 19811 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19812 | return resultobj; |
19813 | fail: | |
19814 | return NULL; | |
19815 | } | |
19816 | ||
19817 | ||
19818 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19819 | PyObject *resultobj; | |
19820 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19821 | bool arg2 ; | |
19822 | PyObject * obj0 = 0 ; | |
19823 | PyObject * obj1 = 0 ; | |
19824 | char *kwnames[] = { | |
19825 | (char *) "self",(char *) "editCancelled", NULL | |
19826 | }; | |
19827 | ||
19828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
19829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19830 | { |
8edf1c75 | 19831 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19832 | if (PyErr_Occurred()) SWIG_fail; |
19833 | } | |
d14a1e28 RD |
19834 | { |
19835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19836 | (arg1)->SetEditCanceled(arg2); | |
19837 | ||
19838 | wxPyEndAllowThreads(__tstate); | |
19839 | if (PyErr_Occurred()) SWIG_fail; | |
19840 | } | |
19841 | Py_INCREF(Py_None); resultobj = Py_None; | |
19842 | return resultobj; | |
19843 | fail: | |
19844 | return NULL; | |
19845 | } | |
19846 | ||
19847 | ||
19848 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
19849 | PyObject *obj; | |
19850 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19851 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
19852 | Py_INCREF(obj); | |
19853 | return Py_BuildValue((char *)""); | |
19854 | } | |
19855 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19856 | PyObject *resultobj; | |
19857 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19858 | int arg2 = (int) -1 ; |
d14a1e28 RD |
19859 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19860 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19861 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19862 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19863 | long arg5 = (long) wxLC_ICON ; | |
19864 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
19865 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
19866 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
19867 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19868 | wxPyListCtrl *result; | |
19869 | wxPoint temp3 ; | |
19870 | wxSize temp4 ; | |
423f194a | 19871 | bool temp7 = False ; |
d14a1e28 | 19872 | PyObject * obj0 = 0 ; |
8edf1c75 | 19873 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19874 | PyObject * obj2 = 0 ; |
19875 | PyObject * obj3 = 0 ; | |
8edf1c75 | 19876 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
19877 | PyObject * obj5 = 0 ; |
19878 | PyObject * obj6 = 0 ; | |
19879 | char *kwnames[] = { | |
19880 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19881 | }; | |
19882 | ||
8edf1c75 | 19883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 19884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19885 | if (obj1) { |
19886 | { | |
19887 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19888 | if (PyErr_Occurred()) SWIG_fail; | |
19889 | } | |
19890 | } | |
d14a1e28 RD |
19891 | if (obj2) { |
19892 | { | |
19893 | arg3 = &temp3; | |
19894 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19895 | } | |
19896 | } | |
19897 | if (obj3) { | |
19898 | { | |
19899 | arg4 = &temp4; | |
19900 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19901 | } | |
19902 | } | |
8edf1c75 RD |
19903 | if (obj4) { |
19904 | { | |
19905 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
19906 | if (PyErr_Occurred()) SWIG_fail; | |
19907 | } | |
19908 | } | |
d14a1e28 RD |
19909 | if (obj5) { |
19910 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19911 | if (arg6 == NULL) { | |
19912 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19913 | } | |
19914 | } | |
19915 | if (obj6) { | |
19916 | { | |
19917 | arg7 = wxString_in_helper(obj6); | |
19918 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 19919 | temp7 = True; |
d14a1e28 RD |
19920 | } |
19921 | } | |
19922 | { | |
19923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19924 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
19925 | ||
19926 | wxPyEndAllowThreads(__tstate); | |
19927 | if (PyErr_Occurred()) SWIG_fail; | |
19928 | } | |
19929 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
19930 | { | |
19931 | if (temp7) | |
19932 | delete arg7; | |
19933 | } | |
19934 | return resultobj; | |
19935 | fail: | |
19936 | { | |
19937 | if (temp7) | |
19938 | delete arg7; | |
19939 | } | |
19940 | return NULL; | |
19941 | } | |
19942 | ||
19943 | ||
19944 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19945 | PyObject *resultobj; | |
19946 | wxPyListCtrl *result; | |
19947 | char *kwnames[] = { | |
19948 | NULL | |
19949 | }; | |
19950 | ||
19951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
19952 | { | |
19953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19954 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
19955 | ||
19956 | wxPyEndAllowThreads(__tstate); | |
19957 | if (PyErr_Occurred()) SWIG_fail; | |
19958 | } | |
19959 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
19960 | return resultobj; | |
19961 | fail: | |
19962 | return NULL; | |
19963 | } | |
19964 | ||
19965 | ||
19966 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19967 | PyObject *resultobj; | |
19968 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19969 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 19970 | int arg3 = (int) -1 ; |
d14a1e28 RD |
19971 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
19972 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19973 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19974 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19975 | long arg6 = (long) wxLC_ICON ; | |
19976 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
19977 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
19978 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
19979 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19980 | bool result; | |
19981 | wxPoint temp4 ; | |
19982 | wxSize temp5 ; | |
423f194a | 19983 | bool temp8 = False ; |
d14a1e28 RD |
19984 | PyObject * obj0 = 0 ; |
19985 | PyObject * obj1 = 0 ; | |
8edf1c75 | 19986 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
19987 | PyObject * obj3 = 0 ; |
19988 | PyObject * obj4 = 0 ; | |
8edf1c75 | 19989 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
19990 | PyObject * obj6 = 0 ; |
19991 | PyObject * obj7 = 0 ; | |
19992 | char *kwnames[] = { | |
19993 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19994 | }; | |
19995 | ||
8edf1c75 | 19996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
19997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
19998 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
19999 | if (obj2) { |
20000 | { | |
20001 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20002 | if (PyErr_Occurred()) SWIG_fail; | |
20003 | } | |
20004 | } | |
d14a1e28 RD |
20005 | if (obj3) { |
20006 | { | |
20007 | arg4 = &temp4; | |
20008 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20009 | } | |
20010 | } | |
20011 | if (obj4) { | |
20012 | { | |
20013 | arg5 = &temp5; | |
20014 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20015 | } | |
20016 | } | |
8edf1c75 RD |
20017 | if (obj5) { |
20018 | { | |
20019 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
20020 | if (PyErr_Occurred()) SWIG_fail; | |
20021 | } | |
20022 | } | |
d14a1e28 RD |
20023 | if (obj6) { |
20024 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20025 | if (arg7 == NULL) { | |
20026 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20027 | } | |
20028 | } | |
20029 | if (obj7) { | |
20030 | { | |
20031 | arg8 = wxString_in_helper(obj7); | |
20032 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 20033 | temp8 = True; |
d14a1e28 RD |
20034 | } |
20035 | } | |
20036 | { | |
20037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20038 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
20039 | ||
20040 | wxPyEndAllowThreads(__tstate); | |
20041 | if (PyErr_Occurred()) SWIG_fail; | |
20042 | } | |
4e760a36 | 20043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20044 | { |
20045 | if (temp8) | |
20046 | delete arg8; | |
20047 | } | |
20048 | return resultobj; | |
20049 | fail: | |
20050 | { | |
20051 | if (temp8) | |
20052 | delete arg8; | |
20053 | } | |
20054 | return NULL; | |
20055 | } | |
20056 | ||
20057 | ||
20058 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20059 | PyObject *resultobj; | |
20060 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20061 | PyObject *arg2 = (PyObject *) 0 ; | |
20062 | PyObject *arg3 = (PyObject *) 0 ; | |
20063 | PyObject * obj0 = 0 ; | |
20064 | PyObject * obj1 = 0 ; | |
20065 | PyObject * obj2 = 0 ; | |
20066 | char *kwnames[] = { | |
20067 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20068 | }; | |
20069 | ||
20070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20072 | arg2 = obj1; | |
20073 | arg3 = obj2; | |
20074 | { | |
20075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20076 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20077 | ||
20078 | wxPyEndAllowThreads(__tstate); | |
20079 | if (PyErr_Occurred()) SWIG_fail; | |
20080 | } | |
20081 | Py_INCREF(Py_None); resultobj = Py_None; | |
20082 | return resultobj; | |
20083 | fail: | |
20084 | return NULL; | |
20085 | } | |
20086 | ||
20087 | ||
20088 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20089 | PyObject *resultobj; | |
20090 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20091 | wxColour *arg2 = 0 ; | |
20092 | bool result; | |
20093 | wxColour temp2 ; | |
20094 | PyObject * obj0 = 0 ; | |
20095 | PyObject * obj1 = 0 ; | |
20096 | char *kwnames[] = { | |
20097 | (char *) "self",(char *) "col", NULL | |
20098 | }; | |
20099 | ||
20100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
20101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20102 | { | |
20103 | arg2 = &temp2; | |
20104 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20105 | } | |
20106 | { | |
20107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20108 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
20109 | ||
20110 | wxPyEndAllowThreads(__tstate); | |
20111 | if (PyErr_Occurred()) SWIG_fail; | |
20112 | } | |
4e760a36 | 20113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20114 | return resultobj; |
20115 | fail: | |
20116 | return NULL; | |
20117 | } | |
20118 | ||
20119 | ||
20120 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20121 | PyObject *resultobj; | |
20122 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20123 | wxColour *arg2 = 0 ; | |
20124 | bool result; | |
20125 | wxColour temp2 ; | |
20126 | PyObject * obj0 = 0 ; | |
20127 | PyObject * obj1 = 0 ; | |
20128 | char *kwnames[] = { | |
20129 | (char *) "self",(char *) "col", NULL | |
20130 | }; | |
20131 | ||
20132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
20133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20134 | { | |
20135 | arg2 = &temp2; | |
20136 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20137 | } | |
20138 | { | |
20139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20140 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
20141 | ||
20142 | wxPyEndAllowThreads(__tstate); | |
20143 | if (PyErr_Occurred()) SWIG_fail; | |
20144 | } | |
4e760a36 | 20145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20146 | return resultobj; |
20147 | fail: | |
20148 | return NULL; | |
20149 | } | |
20150 | ||
20151 | ||
20152 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20153 | PyObject *resultobj; | |
20154 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20155 | int arg2 ; | |
20156 | wxListItem *result; | |
20157 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20158 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20159 | char *kwnames[] = { |
20160 | (char *) "self",(char *) "col", NULL | |
20161 | }; | |
20162 | ||
8edf1c75 | 20163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20165 | { |
20166 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20167 | if (PyErr_Occurred()) SWIG_fail; | |
20168 | } | |
d14a1e28 RD |
20169 | { |
20170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20171 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
20172 | ||
20173 | wxPyEndAllowThreads(__tstate); | |
20174 | if (PyErr_Occurred()) SWIG_fail; | |
20175 | } | |
20176 | { | |
20177 | resultobj = wxPyMake_wxObject(result); | |
20178 | } | |
20179 | return resultobj; | |
20180 | fail: | |
20181 | return NULL; | |
20182 | } | |
20183 | ||
20184 | ||
20185 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20186 | PyObject *resultobj; | |
20187 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20188 | int arg2 ; | |
20189 | wxListItem *arg3 = 0 ; | |
20190 | bool result; | |
20191 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20192 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20193 | PyObject * obj2 = 0 ; |
20194 | char *kwnames[] = { | |
20195 | (char *) "self",(char *) "col",(char *) "item", NULL | |
20196 | }; | |
20197 | ||
8edf1c75 | 20198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20200 | { |
20201 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20202 | if (PyErr_Occurred()) SWIG_fail; | |
20203 | } | |
d14a1e28 RD |
20204 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20205 | if (arg3 == NULL) { | |
20206 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20207 | } | |
20208 | { | |
20209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20210 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
20211 | ||
20212 | wxPyEndAllowThreads(__tstate); | |
20213 | if (PyErr_Occurred()) SWIG_fail; | |
20214 | } | |
4e760a36 | 20215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20216 | return resultobj; |
20217 | fail: | |
20218 | return NULL; | |
20219 | } | |
20220 | ||
20221 | ||
20222 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20223 | PyObject *resultobj; | |
20224 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20225 | int arg2 ; | |
20226 | int result; | |
20227 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20228 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20229 | char *kwnames[] = { |
20230 | (char *) "self",(char *) "col", NULL | |
20231 | }; | |
20232 | ||
8edf1c75 | 20233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20235 | { |
20236 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20237 | if (PyErr_Occurred()) SWIG_fail; | |
20238 | } | |
d14a1e28 RD |
20239 | { |
20240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20241 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
20242 | ||
20243 | wxPyEndAllowThreads(__tstate); | |
20244 | if (PyErr_Occurred()) SWIG_fail; | |
20245 | } | |
8edf1c75 | 20246 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20247 | return resultobj; |
20248 | fail: | |
20249 | return NULL; | |
20250 | } | |
20251 | ||
20252 | ||
20253 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20254 | PyObject *resultobj; | |
20255 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20256 | int arg2 ; | |
20257 | int arg3 ; | |
20258 | bool result; | |
20259 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20260 | PyObject * obj1 = 0 ; |
20261 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20262 | char *kwnames[] = { |
20263 | (char *) "self",(char *) "col",(char *) "width", NULL | |
20264 | }; | |
20265 | ||
8edf1c75 | 20266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20268 | { |
20269 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20270 | if (PyErr_Occurred()) SWIG_fail; | |
20271 | } | |
20272 | { | |
20273 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20274 | if (PyErr_Occurred()) SWIG_fail; | |
20275 | } | |
d14a1e28 RD |
20276 | { |
20277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20278 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
20279 | ||
20280 | wxPyEndAllowThreads(__tstate); | |
20281 | if (PyErr_Occurred()) SWIG_fail; | |
20282 | } | |
4e760a36 | 20283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20284 | return resultobj; |
20285 | fail: | |
20286 | return NULL; | |
20287 | } | |
20288 | ||
20289 | ||
20290 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20291 | PyObject *resultobj; | |
20292 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20293 | int result; | |
20294 | PyObject * obj0 = 0 ; | |
20295 | char *kwnames[] = { | |
20296 | (char *) "self", NULL | |
20297 | }; | |
20298 | ||
20299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
20300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20301 | { | |
20302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20303 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
20304 | ||
20305 | wxPyEndAllowThreads(__tstate); | |
20306 | if (PyErr_Occurred()) SWIG_fail; | |
20307 | } | |
8edf1c75 | 20308 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20309 | return resultobj; |
20310 | fail: | |
20311 | return NULL; | |
20312 | } | |
20313 | ||
20314 | ||
20315 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20316 | PyObject *resultobj; | |
20317 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20318 | wxRect result; | |
20319 | PyObject * obj0 = 0 ; | |
20320 | char *kwnames[] = { | |
20321 | (char *) "self", NULL | |
20322 | }; | |
20323 | ||
20324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
20325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20326 | { | |
20327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20328 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
20329 | ||
20330 | wxPyEndAllowThreads(__tstate); | |
20331 | if (PyErr_Occurred()) SWIG_fail; | |
20332 | } | |
20333 | { | |
20334 | wxRect * resultptr; | |
20335 | resultptr = new wxRect((wxRect &) result); | |
20336 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20337 | } | |
20338 | return resultobj; | |
20339 | fail: | |
20340 | return NULL; | |
20341 | } | |
20342 | ||
20343 | ||
20344 | static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20345 | PyObject *resultobj; | |
20346 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20347 | wxTextCtrl *result; | |
20348 | PyObject * obj0 = 0 ; | |
20349 | char *kwnames[] = { | |
20350 | (char *) "self", NULL | |
20351 | }; | |
20352 | ||
20353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
20354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20355 | { | |
20356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20357 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
20358 | ||
20359 | wxPyEndAllowThreads(__tstate); | |
20360 | if (PyErr_Occurred()) SWIG_fail; | |
20361 | } | |
20362 | { | |
20363 | resultobj = wxPyMake_wxObject(result); | |
20364 | } | |
20365 | return resultobj; | |
20366 | fail: | |
20367 | return NULL; | |
20368 | } | |
20369 | ||
20370 | ||
20371 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20372 | PyObject *resultobj; | |
20373 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20374 | long arg2 ; | |
20375 | int arg3 = (int) 0 ; | |
20376 | wxListItem *result; | |
20377 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20378 | PyObject * obj1 = 0 ; |
20379 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20380 | char *kwnames[] = { |
20381 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
20382 | }; | |
20383 | ||
8edf1c75 | 20384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20386 | { |
20387 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20388 | if (PyErr_Occurred()) SWIG_fail; | |
20389 | } | |
20390 | if (obj2) { | |
20391 | { | |
20392 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20393 | if (PyErr_Occurred()) SWIG_fail; | |
20394 | } | |
20395 | } | |
d14a1e28 RD |
20396 | { |
20397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20398 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
20399 | ||
20400 | wxPyEndAllowThreads(__tstate); | |
20401 | if (PyErr_Occurred()) SWIG_fail; | |
20402 | } | |
20403 | { | |
20404 | resultobj = wxPyMake_wxObject(result); | |
20405 | } | |
20406 | return resultobj; | |
20407 | fail: | |
20408 | return NULL; | |
20409 | } | |
20410 | ||
20411 | ||
20412 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20413 | PyObject *resultobj; | |
20414 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20415 | wxListItem *arg2 = 0 ; | |
20416 | bool result; | |
20417 | PyObject * obj0 = 0 ; | |
20418 | PyObject * obj1 = 0 ; | |
20419 | char *kwnames[] = { | |
20420 | (char *) "self",(char *) "info", NULL | |
20421 | }; | |
20422 | ||
20423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
20424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20425 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20426 | if (arg2 == NULL) { | |
20427 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20428 | } | |
20429 | { | |
20430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20431 | result = (bool)(arg1)->SetItem(*arg2); | |
20432 | ||
20433 | wxPyEndAllowThreads(__tstate); | |
20434 | if (PyErr_Occurred()) SWIG_fail; | |
20435 | } | |
4e760a36 | 20436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20437 | return resultobj; |
20438 | fail: | |
20439 | return NULL; | |
20440 | } | |
20441 | ||
20442 | ||
20443 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20444 | PyObject *resultobj; | |
20445 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20446 | long arg2 ; | |
20447 | int arg3 ; | |
20448 | wxString *arg4 = 0 ; | |
20449 | int arg5 = (int) -1 ; | |
20450 | long result; | |
423f194a | 20451 | bool temp4 = False ; |
d14a1e28 | 20452 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
20453 | PyObject * obj1 = 0 ; |
20454 | PyObject * obj2 = 0 ; | |
d14a1e28 | 20455 | PyObject * obj3 = 0 ; |
8edf1c75 | 20456 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20457 | char *kwnames[] = { |
20458 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
20459 | }; | |
20460 | ||
8edf1c75 | 20461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 20462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20463 | { |
20464 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20465 | if (PyErr_Occurred()) SWIG_fail; | |
20466 | } | |
20467 | { | |
20468 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20469 | if (PyErr_Occurred()) SWIG_fail; | |
20470 | } | |
d14a1e28 RD |
20471 | { |
20472 | arg4 = wxString_in_helper(obj3); | |
20473 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 20474 | temp4 = True; |
d14a1e28 | 20475 | } |
8edf1c75 RD |
20476 | if (obj4) { |
20477 | { | |
20478 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
20479 | if (PyErr_Occurred()) SWIG_fail; | |
20480 | } | |
20481 | } | |
d14a1e28 RD |
20482 | { |
20483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20484 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
20485 | ||
20486 | wxPyEndAllowThreads(__tstate); | |
20487 | if (PyErr_Occurred()) SWIG_fail; | |
20488 | } | |
8edf1c75 | 20489 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20490 | { |
20491 | if (temp4) | |
20492 | delete arg4; | |
20493 | } | |
20494 | return resultobj; | |
20495 | fail: | |
20496 | { | |
20497 | if (temp4) | |
20498 | delete arg4; | |
20499 | } | |
20500 | return NULL; | |
20501 | } | |
20502 | ||
20503 | ||
20504 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20505 | PyObject *resultobj; | |
20506 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20507 | long arg2 ; | |
20508 | long arg3 ; | |
20509 | int result; | |
20510 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20511 | PyObject * obj1 = 0 ; |
20512 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20513 | char *kwnames[] = { |
20514 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
20515 | }; | |
20516 | ||
8edf1c75 | 20517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20519 | { |
20520 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20521 | if (PyErr_Occurred()) SWIG_fail; | |
20522 | } | |
20523 | { | |
20524 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20525 | if (PyErr_Occurred()) SWIG_fail; | |
20526 | } | |
d14a1e28 RD |
20527 | { |
20528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20529 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
20530 | ||
20531 | wxPyEndAllowThreads(__tstate); | |
20532 | if (PyErr_Occurred()) SWIG_fail; | |
20533 | } | |
8edf1c75 | 20534 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20535 | return resultobj; |
20536 | fail: | |
20537 | return NULL; | |
20538 | } | |
20539 | ||
20540 | ||
20541 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20542 | PyObject *resultobj; | |
20543 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20544 | long arg2 ; | |
20545 | long arg3 ; | |
20546 | long arg4 ; | |
20547 | bool result; | |
20548 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20549 | PyObject * obj1 = 0 ; |
20550 | PyObject * obj2 = 0 ; | |
20551 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20552 | char *kwnames[] = { |
20553 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
20554 | }; | |
20555 | ||
8edf1c75 | 20556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20558 | { |
20559 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20560 | if (PyErr_Occurred()) SWIG_fail; | |
20561 | } | |
20562 | { | |
20563 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20564 | if (PyErr_Occurred()) SWIG_fail; | |
20565 | } | |
20566 | { | |
20567 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
20568 | if (PyErr_Occurred()) SWIG_fail; | |
20569 | } | |
d14a1e28 RD |
20570 | { |
20571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20572 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
20573 | ||
20574 | wxPyEndAllowThreads(__tstate); | |
20575 | if (PyErr_Occurred()) SWIG_fail; | |
20576 | } | |
4e760a36 | 20577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20578 | return resultobj; |
20579 | fail: | |
20580 | return NULL; | |
20581 | } | |
20582 | ||
20583 | ||
20584 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20585 | PyObject *resultobj; | |
20586 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20587 | long arg2 ; | |
20588 | int arg3 ; | |
20589 | int arg4 ; | |
20590 | bool result; | |
20591 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20592 | PyObject * obj1 = 0 ; |
20593 | PyObject * obj2 = 0 ; | |
20594 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20595 | char *kwnames[] = { |
20596 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
20597 | }; | |
20598 | ||
8edf1c75 | 20599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20601 | { |
20602 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20603 | if (PyErr_Occurred()) SWIG_fail; | |
20604 | } | |
20605 | { | |
20606 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20607 | if (PyErr_Occurred()) SWIG_fail; | |
20608 | } | |
20609 | { | |
20610 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
20611 | if (PyErr_Occurred()) SWIG_fail; | |
20612 | } | |
d14a1e28 RD |
20613 | { |
20614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20615 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
20616 | ||
20617 | wxPyEndAllowThreads(__tstate); | |
20618 | if (PyErr_Occurred()) SWIG_fail; | |
20619 | } | |
4e760a36 | 20620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20621 | return resultobj; |
20622 | fail: | |
20623 | return NULL; | |
20624 | } | |
20625 | ||
20626 | ||
20627 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20628 | PyObject *resultobj; | |
20629 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20630 | long arg2 ; | |
20631 | wxString result; | |
20632 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20633 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20634 | char *kwnames[] = { |
20635 | (char *) "self",(char *) "item", NULL | |
20636 | }; | |
20637 | ||
8edf1c75 | 20638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20640 | { |
20641 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20642 | if (PyErr_Occurred()) SWIG_fail; | |
20643 | } | |
d14a1e28 RD |
20644 | { |
20645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20646 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
20647 | ||
20648 | wxPyEndAllowThreads(__tstate); | |
20649 | if (PyErr_Occurred()) SWIG_fail; | |
20650 | } | |
20651 | { | |
20652 | #if wxUSE_UNICODE | |
20653 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20654 | #else | |
20655 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20656 | #endif | |
20657 | } | |
20658 | return resultobj; | |
20659 | fail: | |
20660 | return NULL; | |
20661 | } | |
20662 | ||
20663 | ||
20664 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20665 | PyObject *resultobj; | |
20666 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20667 | long arg2 ; | |
20668 | wxString *arg3 = 0 ; | |
423f194a | 20669 | bool temp3 = False ; |
d14a1e28 | 20670 | PyObject * obj0 = 0 ; |
8edf1c75 | 20671 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20672 | PyObject * obj2 = 0 ; |
20673 | char *kwnames[] = { | |
20674 | (char *) "self",(char *) "item",(char *) "str", NULL | |
20675 | }; | |
20676 | ||
8edf1c75 | 20677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20679 | { |
20680 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20681 | if (PyErr_Occurred()) SWIG_fail; | |
20682 | } | |
d14a1e28 RD |
20683 | { |
20684 | arg3 = wxString_in_helper(obj2); | |
20685 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 20686 | temp3 = True; |
d14a1e28 RD |
20687 | } |
20688 | { | |
20689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20690 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
20691 | ||
20692 | wxPyEndAllowThreads(__tstate); | |
20693 | if (PyErr_Occurred()) SWIG_fail; | |
20694 | } | |
20695 | Py_INCREF(Py_None); resultobj = Py_None; | |
20696 | { | |
20697 | if (temp3) | |
20698 | delete arg3; | |
20699 | } | |
20700 | return resultobj; | |
20701 | fail: | |
20702 | { | |
20703 | if (temp3) | |
20704 | delete arg3; | |
20705 | } | |
20706 | return NULL; | |
20707 | } | |
20708 | ||
20709 | ||
20710 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20711 | PyObject *resultobj; | |
20712 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20713 | long arg2 ; | |
20714 | long result; | |
20715 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20716 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20717 | char *kwnames[] = { |
20718 | (char *) "self",(char *) "item", NULL | |
20719 | }; | |
20720 | ||
8edf1c75 | 20721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20723 | { |
20724 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20725 | if (PyErr_Occurred()) SWIG_fail; | |
20726 | } | |
d14a1e28 RD |
20727 | { |
20728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20729 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
20730 | ||
20731 | wxPyEndAllowThreads(__tstate); | |
20732 | if (PyErr_Occurred()) SWIG_fail; | |
20733 | } | |
8edf1c75 | 20734 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20735 | return resultobj; |
20736 | fail: | |
20737 | return NULL; | |
20738 | } | |
20739 | ||
20740 | ||
20741 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20742 | PyObject *resultobj; | |
20743 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20744 | long arg2 ; | |
20745 | long arg3 ; | |
20746 | bool result; | |
20747 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20748 | PyObject * obj1 = 0 ; |
20749 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20750 | char *kwnames[] = { |
20751 | (char *) "self",(char *) "item",(char *) "data", NULL | |
20752 | }; | |
20753 | ||
8edf1c75 | 20754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20756 | { |
20757 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20758 | if (PyErr_Occurred()) SWIG_fail; | |
20759 | } | |
20760 | { | |
20761 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20762 | if (PyErr_Occurred()) SWIG_fail; | |
20763 | } | |
d14a1e28 RD |
20764 | { |
20765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20766 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
20767 | ||
20768 | wxPyEndAllowThreads(__tstate); | |
20769 | if (PyErr_Occurred()) SWIG_fail; | |
20770 | } | |
4e760a36 | 20771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20772 | return resultobj; |
20773 | fail: | |
20774 | return NULL; | |
20775 | } | |
20776 | ||
20777 | ||
20778 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20779 | PyObject *resultobj; | |
20780 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20781 | long arg2 ; | |
20782 | wxPoint result; | |
20783 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20784 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20785 | char *kwnames[] = { |
20786 | (char *) "self",(char *) "item", NULL | |
20787 | }; | |
20788 | ||
8edf1c75 | 20789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20791 | { |
20792 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20793 | if (PyErr_Occurred()) SWIG_fail; | |
20794 | } | |
d14a1e28 RD |
20795 | { |
20796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20797 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
20798 | ||
20799 | wxPyEndAllowThreads(__tstate); | |
20800 | if (PyErr_Occurred()) SWIG_fail; | |
20801 | } | |
20802 | { | |
20803 | wxPoint * resultptr; | |
20804 | resultptr = new wxPoint((wxPoint &) result); | |
20805 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20806 | } | |
20807 | return resultobj; | |
20808 | fail: | |
20809 | return NULL; | |
20810 | } | |
20811 | ||
20812 | ||
20813 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20814 | PyObject *resultobj; | |
20815 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20816 | long arg2 ; | |
20817 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
20818 | wxRect result; | |
20819 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20820 | PyObject * obj1 = 0 ; |
20821 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20822 | char *kwnames[] = { |
20823 | (char *) "self",(char *) "item",(char *) "code", NULL | |
20824 | }; | |
20825 | ||
8edf1c75 | 20826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20828 | { |
20829 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20830 | if (PyErr_Occurred()) SWIG_fail; | |
20831 | } | |
20832 | if (obj2) { | |
20833 | { | |
20834 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20835 | if (PyErr_Occurred()) SWIG_fail; | |
20836 | } | |
20837 | } | |
d14a1e28 RD |
20838 | { |
20839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20840 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
20841 | ||
20842 | wxPyEndAllowThreads(__tstate); | |
20843 | if (PyErr_Occurred()) SWIG_fail; | |
20844 | } | |
20845 | { | |
20846 | wxRect * resultptr; | |
20847 | resultptr = new wxRect((wxRect &) result); | |
20848 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20849 | } | |
20850 | return resultobj; | |
20851 | fail: | |
20852 | return NULL; | |
20853 | } | |
20854 | ||
20855 | ||
20856 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20857 | PyObject *resultobj; | |
20858 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20859 | long arg2 ; | |
20860 | wxPoint *arg3 = 0 ; | |
20861 | bool result; | |
20862 | wxPoint temp3 ; | |
20863 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20864 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20865 | PyObject * obj2 = 0 ; |
20866 | char *kwnames[] = { | |
20867 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
20868 | }; | |
20869 | ||
8edf1c75 | 20870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20872 | { |
20873 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20874 | if (PyErr_Occurred()) SWIG_fail; | |
20875 | } | |
d14a1e28 RD |
20876 | { |
20877 | arg3 = &temp3; | |
20878 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20879 | } | |
20880 | { | |
20881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20882 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
20883 | ||
20884 | wxPyEndAllowThreads(__tstate); | |
20885 | if (PyErr_Occurred()) SWIG_fail; | |
20886 | } | |
4e760a36 | 20887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20888 | return resultobj; |
20889 | fail: | |
20890 | return NULL; | |
20891 | } | |
20892 | ||
20893 | ||
20894 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20895 | PyObject *resultobj; | |
20896 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20897 | int result; | |
20898 | PyObject * obj0 = 0 ; | |
20899 | char *kwnames[] = { | |
20900 | (char *) "self", NULL | |
20901 | }; | |
20902 | ||
20903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
20904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20905 | { | |
20906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20907 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
20908 | ||
20909 | wxPyEndAllowThreads(__tstate); | |
20910 | if (PyErr_Occurred()) SWIG_fail; | |
20911 | } | |
8edf1c75 | 20912 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20913 | return resultobj; |
20914 | fail: | |
20915 | return NULL; | |
20916 | } | |
20917 | ||
20918 | ||
20919 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20920 | PyObject *resultobj; | |
20921 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20922 | int result; | |
20923 | PyObject * obj0 = 0 ; | |
20924 | char *kwnames[] = { | |
20925 | (char *) "self", NULL | |
20926 | }; | |
20927 | ||
20928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
20929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20930 | { | |
20931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20932 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
20933 | ||
20934 | wxPyEndAllowThreads(__tstate); | |
20935 | if (PyErr_Occurred()) SWIG_fail; | |
20936 | } | |
8edf1c75 | 20937 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20938 | return resultobj; |
20939 | fail: | |
20940 | return NULL; | |
20941 | } | |
20942 | ||
20943 | ||
20944 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20945 | PyObject *resultobj; | |
20946 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20947 | wxSize result; | |
20948 | PyObject * obj0 = 0 ; | |
20949 | char *kwnames[] = { | |
20950 | (char *) "self", NULL | |
20951 | }; | |
20952 | ||
20953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
20954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20955 | { | |
20956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20957 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
20958 | ||
20959 | wxPyEndAllowThreads(__tstate); | |
20960 | if (PyErr_Occurred()) SWIG_fail; | |
20961 | } | |
20962 | { | |
20963 | wxSize * resultptr; | |
20964 | resultptr = new wxSize((wxSize &) result); | |
20965 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20966 | } | |
20967 | return resultobj; | |
20968 | fail: | |
20969 | return NULL; | |
20970 | } | |
20971 | ||
20972 | ||
20973 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20974 | PyObject *resultobj; | |
20975 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20976 | int result; | |
20977 | PyObject * obj0 = 0 ; | |
20978 | char *kwnames[] = { | |
20979 | (char *) "self", NULL | |
20980 | }; | |
20981 | ||
20982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
20983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20984 | { | |
20985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20986 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
20987 | ||
20988 | wxPyEndAllowThreads(__tstate); | |
20989 | if (PyErr_Occurred()) SWIG_fail; | |
20990 | } | |
8edf1c75 | 20991 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20992 | return resultobj; |
20993 | fail: | |
20994 | return NULL; | |
20995 | } | |
20996 | ||
20997 | ||
20998 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20999 | PyObject *resultobj; | |
21000 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21001 | wxColour result; | |
21002 | PyObject * obj0 = 0 ; | |
21003 | char *kwnames[] = { | |
21004 | (char *) "self", NULL | |
21005 | }; | |
21006 | ||
21007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
21008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21009 | { | |
21010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21011 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
21012 | ||
21013 | wxPyEndAllowThreads(__tstate); | |
21014 | if (PyErr_Occurred()) SWIG_fail; | |
21015 | } | |
21016 | { | |
21017 | wxColour * resultptr; | |
21018 | resultptr = new wxColour((wxColour &) result); | |
21019 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21020 | } | |
21021 | return resultobj; | |
21022 | fail: | |
21023 | return NULL; | |
21024 | } | |
21025 | ||
21026 | ||
21027 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21028 | PyObject *resultobj; | |
21029 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21030 | wxColour *arg2 = 0 ; | |
21031 | wxColour temp2 ; | |
21032 | PyObject * obj0 = 0 ; | |
21033 | PyObject * obj1 = 0 ; | |
21034 | char *kwnames[] = { | |
21035 | (char *) "self",(char *) "col", NULL | |
21036 | }; | |
21037 | ||
21038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
21039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21040 | { | |
21041 | arg2 = &temp2; | |
21042 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21043 | } | |
21044 | { | |
21045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21046 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21047 | ||
21048 | wxPyEndAllowThreads(__tstate); | |
21049 | if (PyErr_Occurred()) SWIG_fail; | |
21050 | } | |
21051 | Py_INCREF(Py_None); resultobj = Py_None; | |
21052 | return resultobj; | |
21053 | fail: | |
21054 | return NULL; | |
21055 | } | |
21056 | ||
21057 | ||
21058 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21059 | PyObject *resultobj; | |
21060 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21061 | long result; | |
21062 | PyObject * obj0 = 0 ; | |
21063 | char *kwnames[] = { | |
21064 | (char *) "self", NULL | |
21065 | }; | |
21066 | ||
21067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
21068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21069 | { | |
21070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21071 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
21072 | ||
21073 | wxPyEndAllowThreads(__tstate); | |
21074 | if (PyErr_Occurred()) SWIG_fail; | |
21075 | } | |
8edf1c75 | 21076 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21077 | return resultobj; |
21078 | fail: | |
21079 | return NULL; | |
21080 | } | |
21081 | ||
21082 | ||
21083 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21084 | PyObject *resultobj; | |
21085 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21086 | long arg2 ; | |
423f194a | 21087 | bool arg3 = (bool) True ; |
d14a1e28 | 21088 | PyObject * obj0 = 0 ; |
8edf1c75 | 21089 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21090 | PyObject * obj2 = 0 ; |
21091 | char *kwnames[] = { | |
21092 | (char *) "self",(char *) "style",(char *) "add", NULL | |
21093 | }; | |
21094 | ||
8edf1c75 | 21095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21097 | { |
21098 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21099 | if (PyErr_Occurred()) SWIG_fail; | |
21100 | } | |
d14a1e28 | 21101 | if (obj2) { |
83448d71 | 21102 | { |
8edf1c75 | 21103 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
21104 | if (PyErr_Occurred()) SWIG_fail; |
21105 | } | |
d14a1e28 RD |
21106 | } |
21107 | { | |
21108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21109 | (arg1)->SetSingleStyle(arg2,arg3); | |
21110 | ||
21111 | wxPyEndAllowThreads(__tstate); | |
21112 | if (PyErr_Occurred()) SWIG_fail; | |
21113 | } | |
21114 | Py_INCREF(Py_None); resultobj = Py_None; | |
21115 | return resultobj; | |
21116 | fail: | |
21117 | return NULL; | |
21118 | } | |
21119 | ||
21120 | ||
21121 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21122 | PyObject *resultobj; | |
21123 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21124 | long arg2 ; | |
21125 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21126 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21127 | char *kwnames[] = { |
21128 | (char *) "self",(char *) "style", NULL | |
21129 | }; | |
21130 | ||
8edf1c75 | 21131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21133 | { |
21134 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21135 | if (PyErr_Occurred()) SWIG_fail; | |
21136 | } | |
d14a1e28 RD |
21137 | { |
21138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21139 | (arg1)->SetWindowStyleFlag(arg2); | |
21140 | ||
21141 | wxPyEndAllowThreads(__tstate); | |
21142 | if (PyErr_Occurred()) SWIG_fail; | |
21143 | } | |
21144 | Py_INCREF(Py_None); resultobj = Py_None; | |
21145 | return resultobj; | |
21146 | fail: | |
21147 | return NULL; | |
21148 | } | |
21149 | ||
21150 | ||
21151 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21152 | PyObject *resultobj; | |
21153 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21154 | long arg2 ; | |
21155 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
21156 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
21157 | long result; | |
21158 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21159 | PyObject * obj1 = 0 ; |
21160 | PyObject * obj2 = 0 ; | |
21161 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21162 | char *kwnames[] = { |
21163 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
21164 | }; | |
21165 | ||
8edf1c75 | 21166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21168 | { |
21169 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21170 | if (PyErr_Occurred()) SWIG_fail; | |
21171 | } | |
21172 | if (obj2) { | |
21173 | { | |
21174 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21175 | if (PyErr_Occurred()) SWIG_fail; | |
21176 | } | |
21177 | } | |
21178 | if (obj3) { | |
21179 | { | |
21180 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21181 | if (PyErr_Occurred()) SWIG_fail; | |
21182 | } | |
21183 | } | |
d14a1e28 RD |
21184 | { |
21185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21186 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
21187 | ||
21188 | wxPyEndAllowThreads(__tstate); | |
21189 | if (PyErr_Occurred()) SWIG_fail; | |
21190 | } | |
8edf1c75 | 21191 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21192 | return resultobj; |
21193 | fail: | |
21194 | return NULL; | |
21195 | } | |
21196 | ||
21197 | ||
21198 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21199 | PyObject *resultobj; | |
21200 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21201 | int arg2 ; | |
21202 | wxImageList *result; | |
21203 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21204 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21205 | char *kwnames[] = { |
21206 | (char *) "self",(char *) "which", NULL | |
21207 | }; | |
21208 | ||
8edf1c75 | 21209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21211 | { |
21212 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21213 | if (PyErr_Occurred()) SWIG_fail; | |
21214 | } | |
d14a1e28 RD |
21215 | { |
21216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21217 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
21218 | ||
21219 | wxPyEndAllowThreads(__tstate); | |
21220 | if (PyErr_Occurred()) SWIG_fail; | |
21221 | } | |
21222 | { | |
21223 | resultobj = wxPyMake_wxObject(result); | |
21224 | } | |
21225 | return resultobj; | |
21226 | fail: | |
21227 | return NULL; | |
21228 | } | |
21229 | ||
21230 | ||
21231 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21232 | PyObject *resultobj; | |
21233 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21234 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21235 | int arg3 ; | |
21236 | PyObject * obj0 = 0 ; | |
21237 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21238 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21239 | char *kwnames[] = { |
21240 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21241 | }; | |
21242 | ||
8edf1c75 | 21243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
21244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
21245 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
21246 | { |
21247 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21248 | if (PyErr_Occurred()) SWIG_fail; | |
21249 | } | |
d14a1e28 RD |
21250 | { |
21251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21252 | (arg1)->SetImageList(arg2,arg3); | |
21253 | ||
21254 | wxPyEndAllowThreads(__tstate); | |
21255 | if (PyErr_Occurred()) SWIG_fail; | |
21256 | } | |
21257 | Py_INCREF(Py_None); resultobj = Py_None; | |
21258 | return resultobj; | |
21259 | fail: | |
21260 | return NULL; | |
21261 | } | |
21262 | ||
21263 | ||
21264 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21265 | PyObject *resultobj; | |
21266 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21267 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21268 | int arg3 ; | |
21269 | PyObject * obj0 = 0 ; | |
21270 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21271 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21272 | char *kwnames[] = { |
21273 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21274 | }; | |
21275 | ||
8edf1c75 | 21276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
58203fa6 | 21278 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
8edf1c75 RD |
21279 | { |
21280 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21281 | if (PyErr_Occurred()) SWIG_fail; | |
21282 | } | |
d14a1e28 RD |
21283 | { |
21284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21285 | (arg1)->AssignImageList(arg2,arg3); | |
21286 | ||
21287 | wxPyEndAllowThreads(__tstate); | |
21288 | if (PyErr_Occurred()) SWIG_fail; | |
21289 | } | |
21290 | Py_INCREF(Py_None); resultobj = Py_None; | |
21291 | return resultobj; | |
21292 | fail: | |
21293 | return NULL; | |
21294 | } | |
21295 | ||
21296 | ||
21297 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21298 | PyObject *resultobj; | |
21299 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21300 | bool result; | |
21301 | PyObject * obj0 = 0 ; | |
21302 | char *kwnames[] = { | |
21303 | (char *) "self", NULL | |
21304 | }; | |
21305 | ||
21306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
21307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21308 | { | |
21309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21310 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
21311 | ||
21312 | wxPyEndAllowThreads(__tstate); | |
21313 | if (PyErr_Occurred()) SWIG_fail; | |
21314 | } | |
4e760a36 | 21315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21316 | return resultobj; |
21317 | fail: | |
21318 | return NULL; | |
21319 | } | |
21320 | ||
21321 | ||
21322 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21323 | PyObject *resultobj; | |
21324 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21325 | long arg2 ; | |
21326 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21327 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21328 | char *kwnames[] = { |
21329 | (char *) "self",(char *) "item", NULL | |
21330 | }; | |
21331 | ||
8edf1c75 | 21332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21334 | { |
21335 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21336 | if (PyErr_Occurred()) SWIG_fail; | |
21337 | } | |
d14a1e28 RD |
21338 | { |
21339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21340 | (arg1)->RefreshItem(arg2); | |
21341 | ||
21342 | wxPyEndAllowThreads(__tstate); | |
21343 | if (PyErr_Occurred()) SWIG_fail; | |
21344 | } | |
21345 | Py_INCREF(Py_None); resultobj = Py_None; | |
21346 | return resultobj; | |
21347 | fail: | |
21348 | return NULL; | |
21349 | } | |
21350 | ||
21351 | ||
21352 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21353 | PyObject *resultobj; | |
21354 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21355 | long arg2 ; | |
21356 | long arg3 ; | |
21357 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21358 | PyObject * obj1 = 0 ; |
21359 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21360 | char *kwnames[] = { |
21361 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
21362 | }; | |
21363 | ||
8edf1c75 | 21364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21366 | { |
21367 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21368 | if (PyErr_Occurred()) SWIG_fail; | |
21369 | } | |
21370 | { | |
21371 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21372 | if (PyErr_Occurred()) SWIG_fail; | |
21373 | } | |
d14a1e28 RD |
21374 | { |
21375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21376 | (arg1)->RefreshItems(arg2,arg3); | |
21377 | ||
21378 | wxPyEndAllowThreads(__tstate); | |
21379 | if (PyErr_Occurred()) SWIG_fail; | |
21380 | } | |
21381 | Py_INCREF(Py_None); resultobj = Py_None; | |
21382 | return resultobj; | |
21383 | fail: | |
21384 | return NULL; | |
21385 | } | |
21386 | ||
21387 | ||
21388 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21389 | PyObject *resultobj; | |
21390 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21391 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
21392 | bool result; | |
21393 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21394 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21395 | char *kwnames[] = { |
21396 | (char *) "self",(char *) "flag", NULL | |
21397 | }; | |
21398 | ||
8edf1c75 | 21399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21401 | if (obj1) { |
21402 | { | |
21403 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21404 | if (PyErr_Occurred()) SWIG_fail; | |
21405 | } | |
21406 | } | |
d14a1e28 RD |
21407 | { |
21408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21409 | result = (bool)(arg1)->Arrange(arg2); | |
21410 | ||
21411 | wxPyEndAllowThreads(__tstate); | |
21412 | if (PyErr_Occurred()) SWIG_fail; | |
21413 | } | |
4e760a36 | 21414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21415 | return resultobj; |
21416 | fail: | |
21417 | return NULL; | |
21418 | } | |
21419 | ||
21420 | ||
21421 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21422 | PyObject *resultobj; | |
21423 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21424 | long arg2 ; | |
21425 | bool result; | |
21426 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21427 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21428 | char *kwnames[] = { |
21429 | (char *) "self",(char *) "item", NULL | |
21430 | }; | |
21431 | ||
8edf1c75 | 21432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21434 | { |
21435 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21436 | if (PyErr_Occurred()) SWIG_fail; | |
21437 | } | |
d14a1e28 RD |
21438 | { |
21439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21440 | result = (bool)(arg1)->DeleteItem(arg2); | |
21441 | ||
21442 | wxPyEndAllowThreads(__tstate); | |
21443 | if (PyErr_Occurred()) SWIG_fail; | |
21444 | } | |
4e760a36 | 21445 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21446 | return resultobj; |
21447 | fail: | |
21448 | return NULL; | |
21449 | } | |
21450 | ||
21451 | ||
21452 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21453 | PyObject *resultobj; | |
21454 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21455 | bool result; | |
21456 | PyObject * obj0 = 0 ; | |
21457 | char *kwnames[] = { | |
21458 | (char *) "self", NULL | |
21459 | }; | |
21460 | ||
21461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
21462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21463 | { | |
21464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21465 | result = (bool)(arg1)->DeleteAllItems(); | |
21466 | ||
21467 | wxPyEndAllowThreads(__tstate); | |
21468 | if (PyErr_Occurred()) SWIG_fail; | |
21469 | } | |
4e760a36 | 21470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21471 | return resultobj; |
21472 | fail: | |
21473 | return NULL; | |
21474 | } | |
21475 | ||
21476 | ||
21477 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21478 | PyObject *resultobj; | |
21479 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21480 | int arg2 ; | |
21481 | bool result; | |
21482 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21483 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21484 | char *kwnames[] = { |
21485 | (char *) "self",(char *) "col", NULL | |
21486 | }; | |
21487 | ||
8edf1c75 | 21488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21490 | { |
21491 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21492 | if (PyErr_Occurred()) SWIG_fail; | |
21493 | } | |
d14a1e28 RD |
21494 | { |
21495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21496 | result = (bool)(arg1)->DeleteColumn(arg2); | |
21497 | ||
21498 | wxPyEndAllowThreads(__tstate); | |
21499 | if (PyErr_Occurred()) SWIG_fail; | |
21500 | } | |
4e760a36 | 21501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21502 | return resultobj; |
21503 | fail: | |
21504 | return NULL; | |
21505 | } | |
21506 | ||
21507 | ||
21508 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21509 | PyObject *resultobj; | |
21510 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21511 | bool result; | |
21512 | PyObject * obj0 = 0 ; | |
21513 | char *kwnames[] = { | |
21514 | (char *) "self", NULL | |
21515 | }; | |
21516 | ||
21517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
21518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21519 | { | |
21520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21521 | result = (bool)(arg1)->DeleteAllColumns(); | |
21522 | ||
21523 | wxPyEndAllowThreads(__tstate); | |
21524 | if (PyErr_Occurred()) SWIG_fail; | |
21525 | } | |
4e760a36 | 21526 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21527 | return resultobj; |
21528 | fail: | |
21529 | return NULL; | |
21530 | } | |
21531 | ||
21532 | ||
21533 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21534 | PyObject *resultobj; | |
21535 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21536 | PyObject * obj0 = 0 ; | |
21537 | char *kwnames[] = { | |
21538 | (char *) "self", NULL | |
21539 | }; | |
21540 | ||
21541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
21542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21543 | { | |
21544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21545 | (arg1)->ClearAll(); | |
21546 | ||
21547 | wxPyEndAllowThreads(__tstate); | |
21548 | if (PyErr_Occurred()) SWIG_fail; | |
21549 | } | |
21550 | Py_INCREF(Py_None); resultobj = Py_None; | |
21551 | return resultobj; | |
21552 | fail: | |
21553 | return NULL; | |
21554 | } | |
21555 | ||
21556 | ||
21557 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21558 | PyObject *resultobj; | |
21559 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21560 | long arg2 ; | |
21561 | wxTextCtrl *result; | |
21562 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21563 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21564 | char *kwnames[] = { |
21565 | (char *) "self",(char *) "item", NULL | |
21566 | }; | |
21567 | ||
8edf1c75 | 21568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21570 | { |
21571 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21572 | if (PyErr_Occurred()) SWIG_fail; | |
21573 | } | |
d14a1e28 RD |
21574 | { |
21575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21576 | result = (wxTextCtrl *)(arg1)->EditLabel(arg2); | |
21577 | ||
21578 | wxPyEndAllowThreads(__tstate); | |
21579 | if (PyErr_Occurred()) SWIG_fail; | |
21580 | } | |
21581 | { | |
21582 | resultobj = wxPyMake_wxObject(result); | |
21583 | } | |
21584 | return resultobj; | |
21585 | fail: | |
21586 | return NULL; | |
21587 | } | |
21588 | ||
21589 | ||
21590 | static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21591 | PyObject *resultobj; | |
21592 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21593 | bool arg2 ; | |
21594 | bool result; | |
21595 | PyObject * obj0 = 0 ; | |
21596 | PyObject * obj1 = 0 ; | |
21597 | char *kwnames[] = { | |
21598 | (char *) "self",(char *) "cancel", NULL | |
21599 | }; | |
21600 | ||
21601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail; | |
21602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 21603 | { |
8edf1c75 | 21604 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
21605 | if (PyErr_Occurred()) SWIG_fail; |
21606 | } | |
d14a1e28 RD |
21607 | { |
21608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21609 | result = (bool)(arg1)->EndEditLabel(arg2); | |
21610 | ||
21611 | wxPyEndAllowThreads(__tstate); | |
21612 | if (PyErr_Occurred()) SWIG_fail; | |
21613 | } | |
4e760a36 | 21614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21615 | return resultobj; |
21616 | fail: | |
21617 | return NULL; | |
21618 | } | |
21619 | ||
21620 | ||
21621 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21622 | PyObject *resultobj; | |
21623 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21624 | long arg2 ; | |
21625 | bool result; | |
21626 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21627 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21628 | char *kwnames[] = { |
21629 | (char *) "self",(char *) "item", NULL | |
21630 | }; | |
21631 | ||
8edf1c75 | 21632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21634 | { |
21635 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21636 | if (PyErr_Occurred()) SWIG_fail; | |
21637 | } | |
d14a1e28 RD |
21638 | { |
21639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21640 | result = (bool)(arg1)->EnsureVisible(arg2); | |
21641 | ||
21642 | wxPyEndAllowThreads(__tstate); | |
21643 | if (PyErr_Occurred()) SWIG_fail; | |
21644 | } | |
4e760a36 | 21645 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21646 | return resultobj; |
21647 | fail: | |
21648 | return NULL; | |
21649 | } | |
21650 | ||
21651 | ||
21652 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21653 | PyObject *resultobj; | |
21654 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21655 | long arg2 ; | |
21656 | wxString *arg3 = 0 ; | |
423f194a | 21657 | bool arg4 = (bool) False ; |
d14a1e28 | 21658 | long result; |
423f194a | 21659 | bool temp3 = False ; |
d14a1e28 | 21660 | PyObject * obj0 = 0 ; |
8edf1c75 | 21661 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21662 | PyObject * obj2 = 0 ; |
21663 | PyObject * obj3 = 0 ; | |
21664 | char *kwnames[] = { | |
21665 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
21666 | }; | |
21667 | ||
8edf1c75 | 21668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21670 | { |
21671 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21672 | if (PyErr_Occurred()) SWIG_fail; | |
21673 | } | |
d14a1e28 RD |
21674 | { |
21675 | arg3 = wxString_in_helper(obj2); | |
21676 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21677 | temp3 = True; |
d14a1e28 RD |
21678 | } |
21679 | if (obj3) { | |
83448d71 | 21680 | { |
8edf1c75 | 21681 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
21682 | if (PyErr_Occurred()) SWIG_fail; |
21683 | } | |
d14a1e28 RD |
21684 | } |
21685 | { | |
21686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21687 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
21688 | ||
21689 | wxPyEndAllowThreads(__tstate); | |
21690 | if (PyErr_Occurred()) SWIG_fail; | |
21691 | } | |
8edf1c75 | 21692 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21693 | { |
21694 | if (temp3) | |
21695 | delete arg3; | |
21696 | } | |
21697 | return resultobj; | |
21698 | fail: | |
21699 | { | |
21700 | if (temp3) | |
21701 | delete arg3; | |
21702 | } | |
21703 | return NULL; | |
21704 | } | |
21705 | ||
21706 | ||
21707 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21708 | PyObject *resultobj; | |
21709 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21710 | long arg2 ; | |
21711 | long arg3 ; | |
21712 | long result; | |
21713 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21714 | PyObject * obj1 = 0 ; |
21715 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21716 | char *kwnames[] = { |
21717 | (char *) "self",(char *) "start",(char *) "data", NULL | |
21718 | }; | |
21719 | ||
8edf1c75 | 21720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21722 | { |
21723 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21724 | if (PyErr_Occurred()) SWIG_fail; | |
21725 | } | |
21726 | { | |
21727 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21728 | if (PyErr_Occurred()) SWIG_fail; | |
21729 | } | |
d14a1e28 RD |
21730 | { |
21731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21732 | result = (long)(arg1)->FindItem(arg2,arg3); | |
21733 | ||
21734 | wxPyEndAllowThreads(__tstate); | |
21735 | if (PyErr_Occurred()) SWIG_fail; | |
21736 | } | |
8edf1c75 | 21737 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21738 | return resultobj; |
21739 | fail: | |
21740 | return NULL; | |
21741 | } | |
21742 | ||
21743 | ||
21744 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21745 | PyObject *resultobj; | |
21746 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21747 | long arg2 ; | |
21748 | wxPoint *arg3 = 0 ; | |
21749 | int arg4 ; | |
21750 | long result; | |
21751 | wxPoint temp3 ; | |
21752 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21753 | PyObject * obj1 = 0 ; |
d14a1e28 | 21754 | PyObject * obj2 = 0 ; |
8edf1c75 | 21755 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
21756 | char *kwnames[] = { |
21757 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
21758 | }; | |
21759 | ||
8edf1c75 | 21760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21762 | { |
21763 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21764 | if (PyErr_Occurred()) SWIG_fail; | |
21765 | } | |
d14a1e28 RD |
21766 | { |
21767 | arg3 = &temp3; | |
21768 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21769 | } | |
8edf1c75 RD |
21770 | { |
21771 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21772 | if (PyErr_Occurred()) SWIG_fail; | |
21773 | } | |
d14a1e28 RD |
21774 | { |
21775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21776 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
21777 | ||
21778 | wxPyEndAllowThreads(__tstate); | |
21779 | if (PyErr_Occurred()) SWIG_fail; | |
21780 | } | |
8edf1c75 | 21781 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21782 | return resultobj; |
21783 | fail: | |
21784 | return NULL; | |
21785 | } | |
21786 | ||
21787 | ||
21788 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21789 | PyObject *resultobj; | |
21790 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21791 | wxPoint *arg2 = 0 ; | |
21792 | int *arg3 = 0 ; | |
21793 | long result; | |
21794 | wxPoint temp2 ; | |
21795 | int temp3 ; | |
21796 | PyObject * obj0 = 0 ; | |
21797 | PyObject * obj1 = 0 ; | |
21798 | char *kwnames[] = { | |
21799 | (char *) "self",(char *) "point", NULL | |
21800 | }; | |
21801 | ||
21802 | arg3 = &temp3; | |
21803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
21804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21805 | { | |
21806 | arg2 = &temp2; | |
21807 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21808 | } | |
21809 | { | |
21810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21811 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
21812 | ||
21813 | wxPyEndAllowThreads(__tstate); | |
21814 | if (PyErr_Occurred()) SWIG_fail; | |
21815 | } | |
8edf1c75 | 21816 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21817 | { |
21818 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21819 | resultobj = t_output_helper(resultobj,o); | |
21820 | } | |
21821 | return resultobj; | |
21822 | fail: | |
21823 | return NULL; | |
21824 | } | |
21825 | ||
21826 | ||
21827 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21828 | PyObject *resultobj; | |
21829 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21830 | wxListItem *arg2 = 0 ; | |
21831 | long result; | |
21832 | PyObject * obj0 = 0 ; | |
21833 | PyObject * obj1 = 0 ; | |
21834 | char *kwnames[] = { | |
21835 | (char *) "self",(char *) "info", NULL | |
21836 | }; | |
21837 | ||
21838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
21839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21840 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21841 | if (arg2 == NULL) { | |
21842 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21843 | } | |
21844 | { | |
21845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21846 | result = (long)(arg1)->InsertItem(*arg2); | |
21847 | ||
21848 | wxPyEndAllowThreads(__tstate); | |
21849 | if (PyErr_Occurred()) SWIG_fail; | |
21850 | } | |
8edf1c75 | 21851 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21852 | return resultobj; |
21853 | fail: | |
21854 | return NULL; | |
21855 | } | |
21856 | ||
21857 | ||
21858 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21859 | PyObject *resultobj; | |
21860 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21861 | long arg2 ; | |
21862 | wxString *arg3 = 0 ; | |
21863 | long result; | |
423f194a | 21864 | bool temp3 = False ; |
d14a1e28 | 21865 | PyObject * obj0 = 0 ; |
8edf1c75 | 21866 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21867 | PyObject * obj2 = 0 ; |
21868 | char *kwnames[] = { | |
21869 | (char *) "self",(char *) "index",(char *) "label", NULL | |
21870 | }; | |
21871 | ||
8edf1c75 | 21872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21874 | { |
21875 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21876 | if (PyErr_Occurred()) SWIG_fail; | |
21877 | } | |
d14a1e28 RD |
21878 | { |
21879 | arg3 = wxString_in_helper(obj2); | |
21880 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21881 | temp3 = True; |
d14a1e28 RD |
21882 | } |
21883 | { | |
21884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21885 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
21886 | ||
21887 | wxPyEndAllowThreads(__tstate); | |
21888 | if (PyErr_Occurred()) SWIG_fail; | |
21889 | } | |
8edf1c75 | 21890 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21891 | { |
21892 | if (temp3) | |
21893 | delete arg3; | |
21894 | } | |
21895 | return resultobj; | |
21896 | fail: | |
21897 | { | |
21898 | if (temp3) | |
21899 | delete arg3; | |
21900 | } | |
21901 | return NULL; | |
21902 | } | |
21903 | ||
21904 | ||
21905 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21906 | PyObject *resultobj; | |
21907 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21908 | long arg2 ; | |
21909 | int arg3 ; | |
21910 | long result; | |
21911 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21912 | PyObject * obj1 = 0 ; |
21913 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21914 | char *kwnames[] = { |
21915 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
21916 | }; | |
21917 | ||
8edf1c75 | 21918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21920 | { |
21921 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21922 | if (PyErr_Occurred()) SWIG_fail; | |
21923 | } | |
21924 | { | |
21925 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21926 | if (PyErr_Occurred()) SWIG_fail; | |
21927 | } | |
d14a1e28 RD |
21928 | { |
21929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21930 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
21931 | ||
21932 | wxPyEndAllowThreads(__tstate); | |
21933 | if (PyErr_Occurred()) SWIG_fail; | |
21934 | } | |
8edf1c75 | 21935 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21936 | return resultobj; |
21937 | fail: | |
21938 | return NULL; | |
21939 | } | |
21940 | ||
21941 | ||
21942 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21943 | PyObject *resultobj; | |
21944 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21945 | long arg2 ; | |
21946 | wxString *arg3 = 0 ; | |
21947 | int arg4 ; | |
21948 | long result; | |
423f194a | 21949 | bool temp3 = False ; |
d14a1e28 | 21950 | PyObject * obj0 = 0 ; |
8edf1c75 | 21951 | PyObject * obj1 = 0 ; |
d14a1e28 | 21952 | PyObject * obj2 = 0 ; |
8edf1c75 | 21953 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
21954 | char *kwnames[] = { |
21955 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
21956 | }; | |
21957 | ||
8edf1c75 | 21958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21960 | { |
21961 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21962 | if (PyErr_Occurred()) SWIG_fail; | |
21963 | } | |
d14a1e28 RD |
21964 | { |
21965 | arg3 = wxString_in_helper(obj2); | |
21966 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21967 | temp3 = True; |
d14a1e28 | 21968 | } |
8edf1c75 RD |
21969 | { |
21970 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21971 | if (PyErr_Occurred()) SWIG_fail; | |
21972 | } | |
d14a1e28 RD |
21973 | { |
21974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21975 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
21976 | ||
21977 | wxPyEndAllowThreads(__tstate); | |
21978 | if (PyErr_Occurred()) SWIG_fail; | |
21979 | } | |
8edf1c75 | 21980 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21981 | { |
21982 | if (temp3) | |
21983 | delete arg3; | |
21984 | } | |
21985 | return resultobj; | |
21986 | fail: | |
21987 | { | |
21988 | if (temp3) | |
21989 | delete arg3; | |
21990 | } | |
21991 | return NULL; | |
21992 | } | |
21993 | ||
21994 | ||
21995 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21996 | PyObject *resultobj; | |
21997 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21998 | long arg2 ; | |
21999 | wxListItem *arg3 = 0 ; | |
22000 | long result; | |
22001 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22002 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22003 | PyObject * obj2 = 0 ; |
22004 | char *kwnames[] = { | |
22005 | (char *) "self",(char *) "col",(char *) "info", NULL | |
22006 | }; | |
22007 | ||
8edf1c75 | 22008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22010 | { |
22011 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22012 | if (PyErr_Occurred()) SWIG_fail; | |
22013 | } | |
d14a1e28 RD |
22014 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
22015 | if (arg3 == NULL) { | |
22016 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22017 | } | |
22018 | { | |
22019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22020 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
22021 | ||
22022 | wxPyEndAllowThreads(__tstate); | |
22023 | if (PyErr_Occurred()) SWIG_fail; | |
22024 | } | |
8edf1c75 | 22025 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22026 | return resultobj; |
22027 | fail: | |
22028 | return NULL; | |
22029 | } | |
22030 | ||
22031 | ||
22032 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22033 | PyObject *resultobj; | |
22034 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22035 | long arg2 ; | |
22036 | wxString *arg3 = 0 ; | |
22037 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
22038 | int arg5 = (int) -1 ; | |
22039 | long result; | |
423f194a | 22040 | bool temp3 = False ; |
d14a1e28 | 22041 | PyObject * obj0 = 0 ; |
8edf1c75 | 22042 | PyObject * obj1 = 0 ; |
d14a1e28 | 22043 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
22044 | PyObject * obj3 = 0 ; |
22045 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
22046 | char *kwnames[] = { |
22047 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
22048 | }; | |
22049 | ||
8edf1c75 | 22050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 22051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22052 | { |
22053 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22054 | if (PyErr_Occurred()) SWIG_fail; | |
22055 | } | |
d14a1e28 RD |
22056 | { |
22057 | arg3 = wxString_in_helper(obj2); | |
22058 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22059 | temp3 = True; |
d14a1e28 | 22060 | } |
8edf1c75 RD |
22061 | if (obj3) { |
22062 | { | |
22063 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
22064 | if (PyErr_Occurred()) SWIG_fail; | |
22065 | } | |
22066 | } | |
22067 | if (obj4) { | |
22068 | { | |
22069 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
22070 | if (PyErr_Occurred()) SWIG_fail; | |
22071 | } | |
22072 | } | |
d14a1e28 RD |
22073 | { |
22074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22075 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
22076 | ||
22077 | wxPyEndAllowThreads(__tstate); | |
22078 | if (PyErr_Occurred()) SWIG_fail; | |
22079 | } | |
8edf1c75 | 22080 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22081 | { |
22082 | if (temp3) | |
22083 | delete arg3; | |
22084 | } | |
22085 | return resultobj; | |
22086 | fail: | |
22087 | { | |
22088 | if (temp3) | |
22089 | delete arg3; | |
22090 | } | |
22091 | return NULL; | |
22092 | } | |
22093 | ||
22094 | ||
22095 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22096 | PyObject *resultobj; | |
22097 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22098 | long arg2 ; | |
22099 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22100 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22101 | char *kwnames[] = { |
22102 | (char *) "self",(char *) "count", NULL | |
22103 | }; | |
22104 | ||
8edf1c75 | 22105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22107 | { |
22108 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22109 | if (PyErr_Occurred()) SWIG_fail; | |
22110 | } | |
d14a1e28 RD |
22111 | { |
22112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22113 | (arg1)->SetItemCount(arg2); | |
22114 | ||
22115 | wxPyEndAllowThreads(__tstate); | |
22116 | if (PyErr_Occurred()) SWIG_fail; | |
22117 | } | |
22118 | Py_INCREF(Py_None); resultobj = Py_None; | |
22119 | return resultobj; | |
22120 | fail: | |
22121 | return NULL; | |
22122 | } | |
22123 | ||
22124 | ||
22125 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22126 | PyObject *resultobj; | |
22127 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22128 | int arg2 ; | |
22129 | int arg3 ; | |
22130 | bool result; | |
22131 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22132 | PyObject * obj1 = 0 ; |
22133 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22134 | char *kwnames[] = { |
22135 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
22136 | }; | |
22137 | ||
8edf1c75 | 22138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22140 | { |
22141 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22142 | if (PyErr_Occurred()) SWIG_fail; | |
22143 | } | |
22144 | { | |
22145 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22146 | if (PyErr_Occurred()) SWIG_fail; | |
22147 | } | |
d14a1e28 RD |
22148 | { |
22149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22150 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
22151 | ||
22152 | wxPyEndAllowThreads(__tstate); | |
22153 | if (PyErr_Occurred()) SWIG_fail; | |
22154 | } | |
4e760a36 | 22155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22156 | return resultobj; |
22157 | fail: | |
22158 | return NULL; | |
22159 | } | |
22160 | ||
22161 | ||
22162 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22163 | PyObject *resultobj; | |
22164 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22165 | long arg2 ; | |
22166 | wxColour *arg3 = 0 ; | |
22167 | wxColour temp3 ; | |
22168 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22169 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22170 | PyObject * obj2 = 0 ; |
22171 | char *kwnames[] = { | |
22172 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22173 | }; | |
22174 | ||
8edf1c75 | 22175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22177 | { |
22178 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22179 | if (PyErr_Occurred()) SWIG_fail; | |
22180 | } | |
d14a1e28 RD |
22181 | { |
22182 | arg3 = &temp3; | |
22183 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22184 | } | |
22185 | { | |
22186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22187 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
22188 | ||
22189 | wxPyEndAllowThreads(__tstate); | |
22190 | if (PyErr_Occurred()) SWIG_fail; | |
22191 | } | |
22192 | Py_INCREF(Py_None); resultobj = Py_None; | |
22193 | return resultobj; | |
22194 | fail: | |
22195 | return NULL; | |
22196 | } | |
22197 | ||
22198 | ||
22199 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22200 | PyObject *resultobj; | |
22201 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22202 | long arg2 ; | |
22203 | wxColour result; | |
22204 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22205 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22206 | char *kwnames[] = { |
22207 | (char *) "self",(char *) "item", NULL | |
22208 | }; | |
22209 | ||
8edf1c75 | 22210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22212 | { |
22213 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22214 | if (PyErr_Occurred()) SWIG_fail; | |
22215 | } | |
d14a1e28 RD |
22216 | { |
22217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22218 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
22219 | ||
22220 | wxPyEndAllowThreads(__tstate); | |
22221 | if (PyErr_Occurred()) SWIG_fail; | |
22222 | } | |
22223 | { | |
22224 | wxColour * resultptr; | |
22225 | resultptr = new wxColour((wxColour &) result); | |
22226 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
22227 | } | |
22228 | return resultobj; | |
22229 | fail: | |
22230 | return NULL; | |
22231 | } | |
22232 | ||
22233 | ||
22234 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22235 | PyObject *resultobj; | |
22236 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22237 | long arg2 ; | |
22238 | wxColour *arg3 = 0 ; | |
22239 | wxColour temp3 ; | |
22240 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22241 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22242 | PyObject * obj2 = 0 ; |
22243 | char *kwnames[] = { | |
22244 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22245 | }; | |
22246 | ||
8edf1c75 | 22247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22249 | { |
22250 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22251 | if (PyErr_Occurred()) SWIG_fail; | |
22252 | } | |
d14a1e28 RD |
22253 | { |
22254 | arg3 = &temp3; | |
22255 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22256 | } | |
22257 | { | |
22258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22259 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
22260 | ||
22261 | wxPyEndAllowThreads(__tstate); | |
22262 | if (PyErr_Occurred()) SWIG_fail; | |
22263 | } | |
22264 | Py_INCREF(Py_None); resultobj = Py_None; | |
22265 | return resultobj; | |
22266 | fail: | |
22267 | return NULL; | |
22268 | } | |
22269 | ||
22270 | ||
22271 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22272 | PyObject *resultobj; | |
22273 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22274 | long arg2 ; | |
22275 | wxColour result; | |
22276 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22277 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22278 | char *kwnames[] = { |
22279 | (char *) "self",(char *) "item", NULL | |
22280 | }; | |
22281 | ||
8edf1c75 | 22282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22284 | { |
22285 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22286 | if (PyErr_Occurred()) SWIG_fail; | |
22287 | } | |
d14a1e28 RD |
22288 | { |
22289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22290 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
22291 | ||
22292 | wxPyEndAllowThreads(__tstate); | |
22293 | if (PyErr_Occurred()) SWIG_fail; | |
22294 | } | |
22295 | { | |
22296 | wxColour * resultptr; | |
22297 | resultptr = new wxColour((wxColour &) result); | |
22298 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
22299 | } | |
22300 | return resultobj; | |
22301 | fail: | |
22302 | return NULL; | |
22303 | } | |
22304 | ||
22305 | ||
22306 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22307 | PyObject *resultobj; | |
22308 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22309 | PyObject *arg2 = (PyObject *) 0 ; | |
22310 | bool result; | |
22311 | PyObject * obj0 = 0 ; | |
22312 | PyObject * obj1 = 0 ; | |
22313 | char *kwnames[] = { | |
22314 | (char *) "self",(char *) "func", NULL | |
22315 | }; | |
22316 | ||
22317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
22318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22319 | arg2 = obj1; | |
22320 | { | |
22321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22322 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
22323 | ||
22324 | wxPyEndAllowThreads(__tstate); | |
22325 | if (PyErr_Occurred()) SWIG_fail; | |
22326 | } | |
4e760a36 | 22327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22328 | return resultobj; |
22329 | fail: | |
22330 | return NULL; | |
22331 | } | |
22332 | ||
22333 | ||
22334 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22335 | PyObject *resultobj; | |
22336 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22337 | wxWindow *result; | |
22338 | PyObject * obj0 = 0 ; | |
22339 | char *kwnames[] = { | |
22340 | (char *) "self", NULL | |
22341 | }; | |
22342 | ||
22343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
22344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22345 | { | |
22346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22347 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
22348 | ||
22349 | wxPyEndAllowThreads(__tstate); | |
22350 | if (PyErr_Occurred()) SWIG_fail; | |
22351 | } | |
22352 | { | |
22353 | resultobj = wxPyMake_wxObject(result); | |
22354 | } | |
22355 | return resultobj; | |
22356 | fail: | |
22357 | return NULL; | |
22358 | } | |
22359 | ||
22360 | ||
22361 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
22362 | PyObject *obj; | |
22363 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22364 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
22365 | Py_INCREF(obj); | |
22366 | return Py_BuildValue((char *)""); | |
22367 | } | |
22368 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22369 | PyObject *resultobj; | |
22370 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22371 | int arg2 = (int) -1 ; |
d14a1e28 RD |
22372 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
22373 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22374 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22375 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22376 | long arg5 = (long) wxLC_REPORT ; | |
22377 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
22378 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
22379 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
22380 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22381 | wxListView *result; | |
22382 | wxPoint temp3 ; | |
22383 | wxSize temp4 ; | |
423f194a | 22384 | bool temp7 = False ; |
d14a1e28 | 22385 | PyObject * obj0 = 0 ; |
8edf1c75 | 22386 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22387 | PyObject * obj2 = 0 ; |
22388 | PyObject * obj3 = 0 ; | |
8edf1c75 | 22389 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
22390 | PyObject * obj5 = 0 ; |
22391 | PyObject * obj6 = 0 ; | |
22392 | char *kwnames[] = { | |
22393 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22394 | }; | |
22395 | ||
8edf1c75 | 22396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 22397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22398 | if (obj1) { |
22399 | { | |
22400 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22401 | if (PyErr_Occurred()) SWIG_fail; | |
22402 | } | |
22403 | } | |
d14a1e28 RD |
22404 | if (obj2) { |
22405 | { | |
22406 | arg3 = &temp3; | |
22407 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22408 | } | |
22409 | } | |
22410 | if (obj3) { | |
22411 | { | |
22412 | arg4 = &temp4; | |
22413 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22414 | } | |
22415 | } | |
8edf1c75 RD |
22416 | if (obj4) { |
22417 | { | |
22418 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
22419 | if (PyErr_Occurred()) SWIG_fail; | |
22420 | } | |
22421 | } | |
d14a1e28 RD |
22422 | if (obj5) { |
22423 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22424 | if (arg6 == NULL) { | |
22425 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22426 | } | |
22427 | } | |
22428 | if (obj6) { | |
22429 | { | |
22430 | arg7 = wxString_in_helper(obj6); | |
22431 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 22432 | temp7 = True; |
d14a1e28 RD |
22433 | } |
22434 | } | |
22435 | { | |
22436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22437 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
22438 | ||
22439 | wxPyEndAllowThreads(__tstate); | |
22440 | if (PyErr_Occurred()) SWIG_fail; | |
22441 | } | |
22442 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
22443 | { | |
22444 | if (temp7) | |
22445 | delete arg7; | |
22446 | } | |
22447 | return resultobj; | |
22448 | fail: | |
22449 | { | |
22450 | if (temp7) | |
22451 | delete arg7; | |
22452 | } | |
22453 | return NULL; | |
22454 | } | |
22455 | ||
22456 | ||
22457 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22458 | PyObject *resultobj; | |
22459 | wxListView *result; | |
22460 | char *kwnames[] = { | |
22461 | NULL | |
22462 | }; | |
22463 | ||
22464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
22465 | { | |
22466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22467 | result = (wxListView *)new wxListView(); | |
22468 | ||
22469 | wxPyEndAllowThreads(__tstate); | |
22470 | if (PyErr_Occurred()) SWIG_fail; | |
22471 | } | |
22472 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
22473 | return resultobj; | |
22474 | fail: | |
22475 | return NULL; | |
22476 | } | |
22477 | ||
22478 | ||
22479 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22480 | PyObject *resultobj; | |
22481 | wxListView *arg1 = (wxListView *) 0 ; | |
22482 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 22483 | int arg3 = (int) -1 ; |
d14a1e28 RD |
22484 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
22485 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22486 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22487 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22488 | long arg6 = (long) wxLC_REPORT ; | |
22489 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
22490 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
22491 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
22492 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
22493 | bool result; | |
22494 | wxPoint temp4 ; | |
22495 | wxSize temp5 ; | |
423f194a | 22496 | bool temp8 = False ; |
d14a1e28 RD |
22497 | PyObject * obj0 = 0 ; |
22498 | PyObject * obj1 = 0 ; | |
8edf1c75 | 22499 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22500 | PyObject * obj3 = 0 ; |
22501 | PyObject * obj4 = 0 ; | |
8edf1c75 | 22502 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22503 | PyObject * obj6 = 0 ; |
22504 | PyObject * obj7 = 0 ; | |
22505 | char *kwnames[] = { | |
22506 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22507 | }; | |
22508 | ||
8edf1c75 | 22509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
22510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
22511 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
22512 | if (obj2) { |
22513 | { | |
22514 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22515 | if (PyErr_Occurred()) SWIG_fail; | |
22516 | } | |
22517 | } | |
d14a1e28 RD |
22518 | if (obj3) { |
22519 | { | |
22520 | arg4 = &temp4; | |
22521 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22522 | } | |
22523 | } | |
22524 | if (obj4) { | |
22525 | { | |
22526 | arg5 = &temp5; | |
22527 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22528 | } | |
22529 | } | |
8edf1c75 RD |
22530 | if (obj5) { |
22531 | { | |
22532 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
22533 | if (PyErr_Occurred()) SWIG_fail; | |
22534 | } | |
22535 | } | |
d14a1e28 RD |
22536 | if (obj6) { |
22537 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22538 | if (arg7 == NULL) { | |
22539 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22540 | } | |
22541 | } | |
22542 | if (obj7) { | |
22543 | { | |
22544 | arg8 = wxString_in_helper(obj7); | |
22545 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 22546 | temp8 = True; |
d14a1e28 RD |
22547 | } |
22548 | } | |
22549 | { | |
22550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22551 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
22552 | ||
22553 | wxPyEndAllowThreads(__tstate); | |
22554 | if (PyErr_Occurred()) SWIG_fail; | |
22555 | } | |
4e760a36 | 22556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22557 | { |
22558 | if (temp8) | |
22559 | delete arg8; | |
22560 | } | |
22561 | return resultobj; | |
22562 | fail: | |
22563 | { | |
22564 | if (temp8) | |
22565 | delete arg8; | |
22566 | } | |
22567 | return NULL; | |
22568 | } | |
22569 | ||
22570 | ||
22571 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22572 | PyObject *resultobj; | |
22573 | wxListView *arg1 = (wxListView *) 0 ; | |
22574 | long arg2 ; | |
423f194a | 22575 | bool arg3 = (bool) True ; |
d14a1e28 | 22576 | PyObject * obj0 = 0 ; |
8edf1c75 | 22577 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22578 | PyObject * obj2 = 0 ; |
22579 | char *kwnames[] = { | |
22580 | (char *) "self",(char *) "n",(char *) "on", NULL | |
22581 | }; | |
22582 | ||
8edf1c75 | 22583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22585 | { |
22586 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22587 | if (PyErr_Occurred()) SWIG_fail; | |
22588 | } | |
d14a1e28 | 22589 | if (obj2) { |
83448d71 | 22590 | { |
8edf1c75 | 22591 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
22592 | if (PyErr_Occurred()) SWIG_fail; |
22593 | } | |
d14a1e28 RD |
22594 | } |
22595 | { | |
22596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22597 | (arg1)->Select(arg2,arg3); | |
22598 | ||
22599 | wxPyEndAllowThreads(__tstate); | |
22600 | if (PyErr_Occurred()) SWIG_fail; | |
22601 | } | |
22602 | Py_INCREF(Py_None); resultobj = Py_None; | |
22603 | return resultobj; | |
22604 | fail: | |
22605 | return NULL; | |
22606 | } | |
22607 | ||
22608 | ||
22609 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22610 | PyObject *resultobj; | |
22611 | wxListView *arg1 = (wxListView *) 0 ; | |
22612 | long arg2 ; | |
22613 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22614 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22615 | char *kwnames[] = { |
22616 | (char *) "self",(char *) "index", NULL | |
22617 | }; | |
22618 | ||
8edf1c75 | 22619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22621 | { |
22622 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22623 | if (PyErr_Occurred()) SWIG_fail; | |
22624 | } | |
d14a1e28 RD |
22625 | { |
22626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22627 | (arg1)->Focus(arg2); | |
22628 | ||
22629 | wxPyEndAllowThreads(__tstate); | |
22630 | if (PyErr_Occurred()) SWIG_fail; | |
22631 | } | |
22632 | Py_INCREF(Py_None); resultobj = Py_None; | |
22633 | return resultobj; | |
22634 | fail: | |
22635 | return NULL; | |
22636 | } | |
22637 | ||
22638 | ||
22639 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22640 | PyObject *resultobj; | |
22641 | wxListView *arg1 = (wxListView *) 0 ; | |
22642 | long result; | |
22643 | PyObject * obj0 = 0 ; | |
22644 | char *kwnames[] = { | |
22645 | (char *) "self", NULL | |
22646 | }; | |
22647 | ||
22648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
22649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22650 | { | |
22651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22652 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
22653 | ||
22654 | wxPyEndAllowThreads(__tstate); | |
22655 | if (PyErr_Occurred()) SWIG_fail; | |
22656 | } | |
8edf1c75 | 22657 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22658 | return resultobj; |
22659 | fail: | |
22660 | return NULL; | |
22661 | } | |
22662 | ||
22663 | ||
22664 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22665 | PyObject *resultobj; | |
22666 | wxListView *arg1 = (wxListView *) 0 ; | |
22667 | long arg2 ; | |
22668 | long result; | |
22669 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22670 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22671 | char *kwnames[] = { |
22672 | (char *) "self",(char *) "item", NULL | |
22673 | }; | |
22674 | ||
8edf1c75 | 22675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22677 | { |
22678 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22679 | if (PyErr_Occurred()) SWIG_fail; | |
22680 | } | |
d14a1e28 RD |
22681 | { |
22682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22683 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
22684 | ||
22685 | wxPyEndAllowThreads(__tstate); | |
22686 | if (PyErr_Occurred()) SWIG_fail; | |
22687 | } | |
8edf1c75 | 22688 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22689 | return resultobj; |
22690 | fail: | |
22691 | return NULL; | |
22692 | } | |
22693 | ||
22694 | ||
22695 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22696 | PyObject *resultobj; | |
22697 | wxListView *arg1 = (wxListView *) 0 ; | |
22698 | long result; | |
22699 | PyObject * obj0 = 0 ; | |
22700 | char *kwnames[] = { | |
22701 | (char *) "self", NULL | |
22702 | }; | |
22703 | ||
22704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
22705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22706 | { | |
22707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22708 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
22709 | ||
22710 | wxPyEndAllowThreads(__tstate); | |
22711 | if (PyErr_Occurred()) SWIG_fail; | |
22712 | } | |
8edf1c75 | 22713 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22714 | return resultobj; |
22715 | fail: | |
22716 | return NULL; | |
22717 | } | |
22718 | ||
22719 | ||
22720 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22721 | PyObject *resultobj; | |
22722 | wxListView *arg1 = (wxListView *) 0 ; | |
22723 | long arg2 ; | |
22724 | bool result; | |
22725 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22726 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22727 | char *kwnames[] = { |
22728 | (char *) "self",(char *) "index", NULL | |
22729 | }; | |
22730 | ||
8edf1c75 | 22731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22733 | { |
22734 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22735 | if (PyErr_Occurred()) SWIG_fail; | |
22736 | } | |
d14a1e28 RD |
22737 | { |
22738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22739 | result = (bool)(arg1)->IsSelected(arg2); | |
22740 | ||
22741 | wxPyEndAllowThreads(__tstate); | |
22742 | if (PyErr_Occurred()) SWIG_fail; | |
22743 | } | |
4e760a36 | 22744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22745 | return resultobj; |
22746 | fail: | |
22747 | return NULL; | |
22748 | } | |
22749 | ||
22750 | ||
22751 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22752 | PyObject *resultobj; | |
22753 | wxListView *arg1 = (wxListView *) 0 ; | |
22754 | int arg2 ; | |
22755 | int arg3 ; | |
22756 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22757 | PyObject * obj1 = 0 ; |
22758 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22759 | char *kwnames[] = { |
22760 | (char *) "self",(char *) "col",(char *) "image", NULL | |
22761 | }; | |
22762 | ||
8edf1c75 | 22763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22765 | { |
22766 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22767 | if (PyErr_Occurred()) SWIG_fail; | |
22768 | } | |
22769 | { | |
22770 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22771 | if (PyErr_Occurred()) SWIG_fail; | |
22772 | } | |
d14a1e28 RD |
22773 | { |
22774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22775 | (arg1)->SetColumnImage(arg2,arg3); | |
22776 | ||
22777 | wxPyEndAllowThreads(__tstate); | |
22778 | if (PyErr_Occurred()) SWIG_fail; | |
22779 | } | |
22780 | Py_INCREF(Py_None); resultobj = Py_None; | |
22781 | return resultobj; | |
22782 | fail: | |
22783 | return NULL; | |
22784 | } | |
22785 | ||
22786 | ||
22787 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22788 | PyObject *resultobj; | |
22789 | wxListView *arg1 = (wxListView *) 0 ; | |
22790 | int arg2 ; | |
22791 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22792 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22793 | char *kwnames[] = { |
22794 | (char *) "self",(char *) "col", NULL | |
22795 | }; | |
22796 | ||
8edf1c75 | 22797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22799 | { |
22800 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22801 | if (PyErr_Occurred()) SWIG_fail; | |
22802 | } | |
d14a1e28 RD |
22803 | { |
22804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22805 | (arg1)->ClearColumnImage(arg2); | |
22806 | ||
22807 | wxPyEndAllowThreads(__tstate); | |
22808 | if (PyErr_Occurred()) SWIG_fail; | |
22809 | } | |
22810 | Py_INCREF(Py_None); resultobj = Py_None; | |
22811 | return resultobj; | |
22812 | fail: | |
22813 | return NULL; | |
22814 | } | |
22815 | ||
22816 | ||
22817 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
22818 | PyObject *obj; | |
22819 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22820 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
22821 | Py_INCREF(obj); | |
22822 | return Py_BuildValue((char *)""); | |
22823 | } | |
8edf1c75 | 22824 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
d03fd34d RD |
22825 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
22826 | return 1; | |
22827 | } | |
22828 | ||
22829 | ||
22830 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
22831 | PyObject *pyobj; | |
22832 | ||
22833 | { | |
22834 | #if wxUSE_UNICODE | |
22835 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22836 | #else | |
22837 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22838 | #endif | |
22839 | } | |
22840 | return pyobj; | |
22841 | } | |
22842 | ||
22843 | ||
d14a1e28 RD |
22844 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
22845 | PyObject *resultobj; | |
22846 | wxTreeItemId *result; | |
22847 | char *kwnames[] = { | |
22848 | NULL | |
22849 | }; | |
22850 | ||
22851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
22852 | { | |
22853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22854 | result = (wxTreeItemId *)new wxTreeItemId(); | |
22855 | ||
22856 | wxPyEndAllowThreads(__tstate); | |
22857 | if (PyErr_Occurred()) SWIG_fail; | |
22858 | } | |
22859 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 1); | |
22860 | return resultobj; | |
22861 | fail: | |
22862 | return NULL; | |
22863 | } | |
22864 | ||
22865 | ||
22866 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22867 | PyObject *resultobj; | |
22868 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22869 | PyObject * obj0 = 0 ; | |
22870 | char *kwnames[] = { | |
22871 | (char *) "self", NULL | |
22872 | }; | |
22873 | ||
22874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
22875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22876 | { | |
22877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22878 | delete arg1; | |
22879 | ||
22880 | wxPyEndAllowThreads(__tstate); | |
22881 | if (PyErr_Occurred()) SWIG_fail; | |
22882 | } | |
22883 | Py_INCREF(Py_None); resultobj = Py_None; | |
22884 | return resultobj; | |
22885 | fail: | |
22886 | return NULL; | |
22887 | } | |
22888 | ||
22889 | ||
22890 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22891 | PyObject *resultobj; | |
22892 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22893 | bool result; | |
22894 | PyObject * obj0 = 0 ; | |
22895 | char *kwnames[] = { | |
22896 | (char *) "self", NULL | |
22897 | }; | |
22898 | ||
22899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
22900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22901 | { | |
22902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22903 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
22904 | ||
22905 | wxPyEndAllowThreads(__tstate); | |
22906 | if (PyErr_Occurred()) SWIG_fail; | |
22907 | } | |
4e760a36 | 22908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22909 | return resultobj; |
22910 | fail: | |
22911 | return NULL; | |
22912 | } | |
22913 | ||
22914 | ||
22915 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22916 | PyObject *resultobj; | |
22917 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22918 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
22919 | bool result; | |
22920 | PyObject * obj0 = 0 ; | |
22921 | PyObject * obj1 = 0 ; | |
22922 | char *kwnames[] = { | |
22923 | (char *) "self",(char *) "other", NULL | |
22924 | }; | |
22925 | ||
22926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22928 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22929 | { | |
22930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 22931 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
22932 | |
22933 | wxPyEndAllowThreads(__tstate); | |
22934 | if (PyErr_Occurred()) SWIG_fail; | |
22935 | } | |
4e760a36 | 22936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22937 | return resultobj; |
22938 | fail: | |
22939 | return NULL; | |
22940 | } | |
22941 | ||
22942 | ||
22943 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22944 | PyObject *resultobj; | |
22945 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22946 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
22947 | bool result; | |
22948 | PyObject * obj0 = 0 ; | |
22949 | PyObject * obj1 = 0 ; | |
22950 | char *kwnames[] = { | |
22951 | (char *) "self",(char *) "other", NULL | |
22952 | }; | |
22953 | ||
22954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22956 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22957 | { | |
22958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 22959 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
22960 | |
22961 | wxPyEndAllowThreads(__tstate); | |
22962 | if (PyErr_Occurred()) SWIG_fail; | |
22963 | } | |
4e760a36 | 22964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22965 | return resultobj; |
22966 | fail: | |
22967 | return NULL; | |
22968 | } | |
22969 | ||
22970 | ||
22971 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22972 | PyObject *resultobj; | |
22973 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 22974 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
22975 | PyObject * obj0 = 0 ; |
22976 | PyObject * obj1 = 0 ; | |
22977 | char *kwnames[] = { | |
22978 | (char *) "self",(char *) "m_pItem", NULL | |
22979 | }; | |
22980 | ||
22981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
22982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22983 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
22984 | if (arg1) (arg1)->m_pItem = arg2; | |
22985 | ||
22986 | Py_INCREF(Py_None); resultobj = Py_None; | |
22987 | return resultobj; | |
22988 | fail: | |
22989 | return NULL; | |
22990 | } | |
22991 | ||
22992 | ||
22993 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22994 | PyObject *resultobj; | |
22995 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 22996 | void *result; |
d14a1e28 RD |
22997 | PyObject * obj0 = 0 ; |
22998 | char *kwnames[] = { | |
22999 | (char *) "self", NULL | |
23000 | }; | |
23001 | ||
23002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
23003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 23004 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 23005 | |
58203fa6 | 23006 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_void, 0); |
d14a1e28 RD |
23007 | return resultobj; |
23008 | fail: | |
23009 | return NULL; | |
23010 | } | |
23011 | ||
23012 | ||
23013 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
23014 | PyObject *obj; | |
23015 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23016 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
23017 | Py_INCREF(obj); | |
23018 | return Py_BuildValue((char *)""); | |
23019 | } | |
23020 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23021 | PyObject *resultobj; | |
23022 | PyObject *arg1 = (PyObject *) NULL ; | |
23023 | wxPyTreeItemData *result; | |
23024 | PyObject * obj0 = 0 ; | |
23025 | char *kwnames[] = { | |
23026 | (char *) "obj", NULL | |
23027 | }; | |
23028 | ||
23029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
23030 | if (obj0) { | |
23031 | arg1 = obj0; | |
23032 | } | |
23033 | { | |
23034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23035 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
23036 | ||
23037 | wxPyEndAllowThreads(__tstate); | |
23038 | if (PyErr_Occurred()) SWIG_fail; | |
23039 | } | |
23040 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 1); | |
23041 | return resultobj; | |
23042 | fail: | |
23043 | return NULL; | |
23044 | } | |
23045 | ||
23046 | ||
23047 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23048 | PyObject *resultobj; | |
23049 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23050 | PyObject *result; | |
23051 | PyObject * obj0 = 0 ; | |
23052 | char *kwnames[] = { | |
23053 | (char *) "self", NULL | |
23054 | }; | |
23055 | ||
23056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
23057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23058 | { | |
23059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23060 | result = (PyObject *)(arg1)->GetData(); | |
23061 | ||
23062 | wxPyEndAllowThreads(__tstate); | |
23063 | if (PyErr_Occurred()) SWIG_fail; | |
23064 | } | |
23065 | resultobj = result; | |
23066 | return resultobj; | |
23067 | fail: | |
23068 | return NULL; | |
23069 | } | |
23070 | ||
23071 | ||
23072 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23073 | PyObject *resultobj; | |
23074 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23075 | PyObject *arg2 = (PyObject *) 0 ; | |
23076 | PyObject * obj0 = 0 ; | |
23077 | PyObject * obj1 = 0 ; | |
23078 | char *kwnames[] = { | |
23079 | (char *) "self",(char *) "obj", NULL | |
23080 | }; | |
23081 | ||
23082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
23083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23084 | arg2 = obj1; | |
23085 | { | |
23086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23087 | (arg1)->SetData(arg2); | |
23088 | ||
23089 | wxPyEndAllowThreads(__tstate); | |
23090 | if (PyErr_Occurred()) SWIG_fail; | |
23091 | } | |
23092 | Py_INCREF(Py_None); resultobj = Py_None; | |
23093 | return resultobj; | |
23094 | fail: | |
23095 | return NULL; | |
23096 | } | |
23097 | ||
23098 | ||
23099 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23100 | PyObject *resultobj; | |
23101 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23102 | wxTreeItemId *result; | |
23103 | PyObject * obj0 = 0 ; | |
23104 | char *kwnames[] = { | |
23105 | (char *) "self", NULL | |
23106 | }; | |
23107 | ||
23108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
23109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23110 | { | |
23111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23112 | { | |
23113 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
23114 | result = (wxTreeItemId *) &_result_ref; | |
23115 | } | |
23116 | ||
23117 | wxPyEndAllowThreads(__tstate); | |
23118 | if (PyErr_Occurred()) SWIG_fail; | |
23119 | } | |
23120 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 0); | |
23121 | return resultobj; | |
23122 | fail: | |
23123 | return NULL; | |
23124 | } | |
23125 | ||
23126 | ||
23127 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23128 | PyObject *resultobj; | |
23129 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23130 | wxTreeItemId *arg2 = 0 ; | |
23131 | PyObject * obj0 = 0 ; | |
23132 | PyObject * obj1 = 0 ; | |
23133 | char *kwnames[] = { | |
23134 | (char *) "self",(char *) "id", NULL | |
23135 | }; | |
23136 | ||
23137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
23138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23139 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23140 | if (arg2 == NULL) { | |
23141 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23142 | } | |
23143 | { | |
23144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23145 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
23146 | ||
23147 | wxPyEndAllowThreads(__tstate); | |
23148 | if (PyErr_Occurred()) SWIG_fail; | |
23149 | } | |
23150 | Py_INCREF(Py_None); resultobj = Py_None; | |
23151 | return resultobj; | |
23152 | fail: | |
23153 | return NULL; | |
23154 | } | |
23155 | ||
23156 | ||
23157 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23158 | PyObject *resultobj; | |
23159 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23160 | PyObject * obj0 = 0 ; | |
23161 | char *kwnames[] = { | |
23162 | (char *) "self", NULL | |
23163 | }; | |
23164 | ||
23165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
23166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23167 | { | |
23168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23169 | wxPyTreeItemData_Destroy(arg1); | |
23170 | ||
23171 | wxPyEndAllowThreads(__tstate); | |
23172 | if (PyErr_Occurred()) SWIG_fail; | |
23173 | } | |
23174 | Py_INCREF(Py_None); resultobj = Py_None; | |
23175 | return resultobj; | |
23176 | fail: | |
23177 | return NULL; | |
23178 | } | |
23179 | ||
23180 | ||
23181 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
23182 | PyObject *obj; | |
23183 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23184 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
23185 | Py_INCREF(obj); | |
23186 | return Py_BuildValue((char *)""); | |
23187 | } | |
23188 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23189 | PyObject *resultobj; | |
23190 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
23191 | int arg2 = (int) 0 ; | |
23192 | wxTreeEvent *result; | |
8edf1c75 RD |
23193 | PyObject * obj0 = 0 ; |
23194 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
23195 | char *kwnames[] = { |
23196 | (char *) "commandType",(char *) "id", NULL | |
23197 | }; | |
23198 | ||
8edf1c75 RD |
23199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
23200 | if (obj0) { | |
23201 | { | |
23202 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
23203 | if (PyErr_Occurred()) SWIG_fail; | |
23204 | } | |
23205 | } | |
23206 | if (obj1) { | |
23207 | { | |
23208 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23209 | if (PyErr_Occurred()) SWIG_fail; | |
23210 | } | |
23211 | } | |
d14a1e28 RD |
23212 | { |
23213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23214 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
23215 | ||
23216 | wxPyEndAllowThreads(__tstate); | |
23217 | if (PyErr_Occurred()) SWIG_fail; | |
23218 | } | |
23219 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeEvent, 1); | |
23220 | return resultobj; | |
23221 | fail: | |
23222 | return NULL; | |
23223 | } | |
23224 | ||
23225 | ||
23226 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23227 | PyObject *resultobj; | |
23228 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23229 | wxTreeItemId result; | |
23230 | PyObject * obj0 = 0 ; | |
23231 | char *kwnames[] = { | |
23232 | (char *) "self", NULL | |
23233 | }; | |
23234 | ||
23235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
23236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23237 | { | |
23238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23239 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
23240 | ||
23241 | wxPyEndAllowThreads(__tstate); | |
23242 | if (PyErr_Occurred()) SWIG_fail; | |
23243 | } | |
23244 | { | |
23245 | wxTreeItemId * resultptr; | |
23246 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23247 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23248 | } | |
23249 | return resultobj; | |
23250 | fail: | |
23251 | return NULL; | |
23252 | } | |
23253 | ||
23254 | ||
23255 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23256 | PyObject *resultobj; | |
23257 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23258 | wxTreeItemId *arg2 = 0 ; | |
23259 | PyObject * obj0 = 0 ; | |
23260 | PyObject * obj1 = 0 ; | |
23261 | char *kwnames[] = { | |
23262 | (char *) "self",(char *) "item", NULL | |
23263 | }; | |
23264 | ||
23265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
23266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23267 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23268 | if (arg2 == NULL) { | |
23269 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23270 | } | |
23271 | { | |
23272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23273 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
23274 | ||
23275 | wxPyEndAllowThreads(__tstate); | |
23276 | if (PyErr_Occurred()) SWIG_fail; | |
23277 | } | |
23278 | Py_INCREF(Py_None); resultobj = Py_None; | |
23279 | return resultobj; | |
23280 | fail: | |
23281 | return NULL; | |
23282 | } | |
23283 | ||
23284 | ||
23285 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23286 | PyObject *resultobj; | |
23287 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23288 | wxTreeItemId result; | |
23289 | PyObject * obj0 = 0 ; | |
23290 | char *kwnames[] = { | |
23291 | (char *) "self", NULL | |
23292 | }; | |
23293 | ||
23294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
23295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23296 | { | |
23297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23298 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
23299 | ||
23300 | wxPyEndAllowThreads(__tstate); | |
23301 | if (PyErr_Occurred()) SWIG_fail; | |
23302 | } | |
23303 | { | |
23304 | wxTreeItemId * resultptr; | |
23305 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23306 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23307 | } | |
23308 | return resultobj; | |
23309 | fail: | |
23310 | return NULL; | |
23311 | } | |
23312 | ||
23313 | ||
23314 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23315 | PyObject *resultobj; | |
23316 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23317 | wxTreeItemId *arg2 = 0 ; | |
23318 | PyObject * obj0 = 0 ; | |
23319 | PyObject * obj1 = 0 ; | |
23320 | char *kwnames[] = { | |
23321 | (char *) "self",(char *) "item", NULL | |
23322 | }; | |
23323 | ||
23324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
23325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23326 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23327 | if (arg2 == NULL) { | |
23328 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23329 | } | |
23330 | { | |
23331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23332 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
23333 | ||
23334 | wxPyEndAllowThreads(__tstate); | |
23335 | if (PyErr_Occurred()) SWIG_fail; | |
23336 | } | |
23337 | Py_INCREF(Py_None); resultobj = Py_None; | |
23338 | return resultobj; | |
23339 | fail: | |
23340 | return NULL; | |
23341 | } | |
23342 | ||
23343 | ||
23344 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23345 | PyObject *resultobj; | |
23346 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23347 | wxPoint result; | |
23348 | PyObject * obj0 = 0 ; | |
23349 | char *kwnames[] = { | |
23350 | (char *) "self", NULL | |
23351 | }; | |
23352 | ||
23353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
23354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23355 | { | |
23356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23357 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
23358 | ||
23359 | wxPyEndAllowThreads(__tstate); | |
23360 | if (PyErr_Occurred()) SWIG_fail; | |
23361 | } | |
23362 | { | |
23363 | wxPoint * resultptr; | |
23364 | resultptr = new wxPoint((wxPoint &) result); | |
23365 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23366 | } | |
23367 | return resultobj; | |
23368 | fail: | |
23369 | return NULL; | |
23370 | } | |
23371 | ||
23372 | ||
23373 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23374 | PyObject *resultobj; | |
23375 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23376 | wxPoint *arg2 = 0 ; | |
23377 | wxPoint temp2 ; | |
23378 | PyObject * obj0 = 0 ; | |
23379 | PyObject * obj1 = 0 ; | |
23380 | char *kwnames[] = { | |
23381 | (char *) "self",(char *) "pt", NULL | |
23382 | }; | |
23383 | ||
23384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
23385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23386 | { | |
23387 | arg2 = &temp2; | |
23388 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23389 | } | |
23390 | { | |
23391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23392 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
23393 | ||
23394 | wxPyEndAllowThreads(__tstate); | |
23395 | if (PyErr_Occurred()) SWIG_fail; | |
23396 | } | |
23397 | Py_INCREF(Py_None); resultobj = Py_None; | |
23398 | return resultobj; | |
23399 | fail: | |
23400 | return NULL; | |
23401 | } | |
23402 | ||
23403 | ||
23404 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23405 | PyObject *resultobj; | |
23406 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23407 | wxKeyEvent *result; | |
23408 | PyObject * obj0 = 0 ; | |
23409 | char *kwnames[] = { | |
23410 | (char *) "self", NULL | |
23411 | }; | |
23412 | ||
23413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
23414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23415 | { | |
23416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23417 | { | |
23418 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
23419 | result = (wxKeyEvent *) &_result_ref; | |
23420 | } | |
23421 | ||
23422 | wxPyEndAllowThreads(__tstate); | |
23423 | if (PyErr_Occurred()) SWIG_fail; | |
23424 | } | |
23425 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 0); | |
23426 | return resultobj; | |
23427 | fail: | |
23428 | return NULL; | |
23429 | } | |
23430 | ||
23431 | ||
23432 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23433 | PyObject *resultobj; | |
23434 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23435 | int result; | |
23436 | PyObject * obj0 = 0 ; | |
23437 | char *kwnames[] = { | |
23438 | (char *) "self", NULL | |
23439 | }; | |
23440 | ||
23441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
23442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23443 | { | |
23444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23445 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
23446 | ||
23447 | wxPyEndAllowThreads(__tstate); | |
23448 | if (PyErr_Occurred()) SWIG_fail; | |
23449 | } | |
8edf1c75 | 23450 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
23451 | return resultobj; |
23452 | fail: | |
23453 | return NULL; | |
23454 | } | |
23455 | ||
23456 | ||
23457 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23458 | PyObject *resultobj; | |
23459 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23460 | wxKeyEvent *arg2 = 0 ; | |
23461 | PyObject * obj0 = 0 ; | |
23462 | PyObject * obj1 = 0 ; | |
23463 | char *kwnames[] = { | |
23464 | (char *) "self",(char *) "evt", NULL | |
23465 | }; | |
23466 | ||
23467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
23468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23469 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23470 | if (arg2 == NULL) { | |
23471 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23472 | } | |
23473 | { | |
23474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23475 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
23476 | ||
23477 | wxPyEndAllowThreads(__tstate); | |
23478 | if (PyErr_Occurred()) SWIG_fail; | |
23479 | } | |
23480 | Py_INCREF(Py_None); resultobj = Py_None; | |
23481 | return resultobj; | |
23482 | fail: | |
23483 | return NULL; | |
23484 | } | |
23485 | ||
23486 | ||
23487 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23488 | PyObject *resultobj; | |
23489 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23490 | wxString *result; | |
23491 | PyObject * obj0 = 0 ; | |
23492 | char *kwnames[] = { | |
23493 | (char *) "self", NULL | |
23494 | }; | |
23495 | ||
23496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
23497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23498 | { | |
23499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23500 | { | |
23501 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
23502 | result = (wxString *) &_result_ref; | |
23503 | } | |
23504 | ||
23505 | wxPyEndAllowThreads(__tstate); | |
23506 | if (PyErr_Occurred()) SWIG_fail; | |
23507 | } | |
f0983263 RD |
23508 | { |
23509 | #if wxUSE_UNICODE | |
23510 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23511 | #else | |
23512 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23513 | #endif | |
23514 | } | |
d14a1e28 RD |
23515 | return resultobj; |
23516 | fail: | |
23517 | return NULL; | |
23518 | } | |
23519 | ||
23520 | ||
23521 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23522 | PyObject *resultobj; | |
23523 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23524 | wxString *arg2 = 0 ; | |
423f194a | 23525 | bool temp2 = False ; |
d14a1e28 RD |
23526 | PyObject * obj0 = 0 ; |
23527 | PyObject * obj1 = 0 ; | |
23528 | char *kwnames[] = { | |
23529 | (char *) "self",(char *) "label", NULL | |
23530 | }; | |
23531 | ||
23532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
23533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23534 | { | |
23535 | arg2 = wxString_in_helper(obj1); | |
23536 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23537 | temp2 = True; |
d14a1e28 RD |
23538 | } |
23539 | { | |
23540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23541 | (arg1)->SetLabel((wxString const &)*arg2); | |
23542 | ||
23543 | wxPyEndAllowThreads(__tstate); | |
23544 | if (PyErr_Occurred()) SWIG_fail; | |
23545 | } | |
23546 | Py_INCREF(Py_None); resultobj = Py_None; | |
23547 | { | |
23548 | if (temp2) | |
23549 | delete arg2; | |
23550 | } | |
23551 | return resultobj; | |
23552 | fail: | |
23553 | { | |
23554 | if (temp2) | |
23555 | delete arg2; | |
23556 | } | |
23557 | return NULL; | |
23558 | } | |
23559 | ||
23560 | ||
23561 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23562 | PyObject *resultobj; | |
23563 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23564 | bool result; | |
23565 | PyObject * obj0 = 0 ; | |
23566 | char *kwnames[] = { | |
23567 | (char *) "self", NULL | |
23568 | }; | |
23569 | ||
23570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
23571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23572 | { | |
23573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23574 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
23575 | ||
23576 | wxPyEndAllowThreads(__tstate); | |
23577 | if (PyErr_Occurred()) SWIG_fail; | |
23578 | } | |
4e760a36 | 23579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23580 | return resultobj; |
23581 | fail: | |
23582 | return NULL; | |
23583 | } | |
23584 | ||
23585 | ||
23586 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23587 | PyObject *resultobj; | |
23588 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23589 | bool arg2 ; | |
23590 | PyObject * obj0 = 0 ; | |
23591 | PyObject * obj1 = 0 ; | |
23592 | char *kwnames[] = { | |
23593 | (char *) "self",(char *) "editCancelled", NULL | |
23594 | }; | |
23595 | ||
23596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
23597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 23598 | { |
8edf1c75 | 23599 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
23600 | if (PyErr_Occurred()) SWIG_fail; |
23601 | } | |
d14a1e28 RD |
23602 | { |
23603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23604 | (arg1)->SetEditCanceled(arg2); | |
23605 | ||
23606 | wxPyEndAllowThreads(__tstate); | |
23607 | if (PyErr_Occurred()) SWIG_fail; | |
23608 | } | |
23609 | Py_INCREF(Py_None); resultobj = Py_None; | |
23610 | return resultobj; | |
23611 | fail: | |
23612 | return NULL; | |
23613 | } | |
23614 | ||
23615 | ||
9fd4be55 RD |
23616 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
23617 | PyObject *resultobj; | |
23618 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23619 | wxString *arg2 = 0 ; | |
23620 | bool temp2 = False ; | |
23621 | PyObject * obj0 = 0 ; | |
23622 | PyObject * obj1 = 0 ; | |
23623 | char *kwnames[] = { | |
23624 | (char *) "self",(char *) "toolTip", NULL | |
23625 | }; | |
23626 | ||
23627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
23628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23629 | { | |
23630 | arg2 = wxString_in_helper(obj1); | |
23631 | if (arg2 == NULL) SWIG_fail; | |
23632 | temp2 = True; | |
23633 | } | |
23634 | { | |
23635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23636 | (arg1)->SetToolTip((wxString const &)*arg2); | |
23637 | ||
23638 | wxPyEndAllowThreads(__tstate); | |
23639 | if (PyErr_Occurred()) SWIG_fail; | |
23640 | } | |
23641 | Py_INCREF(Py_None); resultobj = Py_None; | |
23642 | { | |
23643 | if (temp2) | |
23644 | delete arg2; | |
23645 | } | |
23646 | return resultobj; | |
23647 | fail: | |
23648 | { | |
23649 | if (temp2) | |
23650 | delete arg2; | |
23651 | } | |
23652 | return NULL; | |
23653 | } | |
23654 | ||
23655 | ||
d14a1e28 RD |
23656 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
23657 | PyObject *obj; | |
23658 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23659 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
23660 | Py_INCREF(obj); | |
23661 | return Py_BuildValue((char *)""); | |
23662 | } | |
23663 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23664 | PyObject *resultobj; | |
23665 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23666 | int arg2 = (int) -1 ; |
d14a1e28 RD |
23667 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23668 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23669 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23670 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23671 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
23672 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23673 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
d03fd34d | 23674 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23675 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
23676 | wxPyTreeCtrl *result; | |
23677 | wxPoint temp3 ; | |
23678 | wxSize temp4 ; | |
423f194a | 23679 | bool temp7 = False ; |
d14a1e28 | 23680 | PyObject * obj0 = 0 ; |
8edf1c75 | 23681 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23682 | PyObject * obj2 = 0 ; |
23683 | PyObject * obj3 = 0 ; | |
8edf1c75 | 23684 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
23685 | PyObject * obj5 = 0 ; |
23686 | PyObject * obj6 = 0 ; | |
23687 | char *kwnames[] = { | |
23688 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23689 | }; | |
23690 | ||
8edf1c75 | 23691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 23692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23693 | if (obj1) { |
23694 | { | |
23695 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23696 | if (PyErr_Occurred()) SWIG_fail; | |
23697 | } | |
23698 | } | |
d14a1e28 RD |
23699 | if (obj2) { |
23700 | { | |
23701 | arg3 = &temp3; | |
23702 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23703 | } | |
23704 | } | |
23705 | if (obj3) { | |
23706 | { | |
8edf1c75 RD |
23707 | arg4 = &temp4; |
23708 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23709 | } | |
23710 | } | |
23711 | if (obj4) { | |
23712 | { | |
23713 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
23714 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23715 | } |
23716 | } | |
23717 | if (obj5) { | |
23718 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23719 | if (arg6 == NULL) { | |
23720 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23721 | } | |
23722 | } | |
23723 | if (obj6) { | |
23724 | { | |
23725 | arg7 = wxString_in_helper(obj6); | |
23726 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 23727 | temp7 = True; |
d14a1e28 RD |
23728 | } |
23729 | } | |
23730 | { | |
23731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23732 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23733 | ||
23734 | wxPyEndAllowThreads(__tstate); | |
23735 | if (PyErr_Occurred()) SWIG_fail; | |
23736 | } | |
d03fd34d RD |
23737 | { |
23738 | resultobj = wxPyMake_wxObject(result); | |
23739 | } | |
d14a1e28 RD |
23740 | { |
23741 | if (temp7) | |
23742 | delete arg7; | |
23743 | } | |
23744 | return resultobj; | |
23745 | fail: | |
23746 | { | |
23747 | if (temp7) | |
23748 | delete arg7; | |
23749 | } | |
23750 | return NULL; | |
23751 | } | |
23752 | ||
23753 | ||
23754 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23755 | PyObject *resultobj; | |
23756 | wxPyTreeCtrl *result; | |
23757 | char *kwnames[] = { | |
23758 | NULL | |
23759 | }; | |
23760 | ||
23761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
23762 | { | |
23763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23764 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
23765 | ||
23766 | wxPyEndAllowThreads(__tstate); | |
23767 | if (PyErr_Occurred()) SWIG_fail; | |
23768 | } | |
d03fd34d RD |
23769 | { |
23770 | resultobj = wxPyMake_wxObject(result); | |
23771 | } | |
d14a1e28 RD |
23772 | return resultobj; |
23773 | fail: | |
23774 | return NULL; | |
23775 | } | |
23776 | ||
23777 | ||
23778 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23779 | PyObject *resultobj; | |
23780 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23781 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 23782 | int arg3 = (int) -1 ; |
d14a1e28 RD |
23783 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23784 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23785 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23786 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23787 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
23788 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23789 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
d03fd34d | 23790 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23791 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
23792 | bool result; | |
23793 | wxPoint temp4 ; | |
23794 | wxSize temp5 ; | |
423f194a | 23795 | bool temp8 = False ; |
d14a1e28 RD |
23796 | PyObject * obj0 = 0 ; |
23797 | PyObject * obj1 = 0 ; | |
8edf1c75 | 23798 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23799 | PyObject * obj3 = 0 ; |
23800 | PyObject * obj4 = 0 ; | |
8edf1c75 | 23801 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
23802 | PyObject * obj6 = 0 ; |
23803 | PyObject * obj7 = 0 ; | |
23804 | char *kwnames[] = { | |
23805 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23806 | }; | |
23807 | ||
8edf1c75 | 23808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
23809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
23810 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
23811 | if (obj2) { |
23812 | { | |
23813 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
23814 | if (PyErr_Occurred()) SWIG_fail; | |
23815 | } | |
23816 | } | |
d14a1e28 RD |
23817 | if (obj3) { |
23818 | { | |
23819 | arg4 = &temp4; | |
23820 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23821 | } | |
23822 | } | |
23823 | if (obj4) { | |
23824 | { | |
23825 | arg5 = &temp5; | |
23826 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23827 | } | |
23828 | } | |
8edf1c75 RD |
23829 | if (obj5) { |
23830 | { | |
23831 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
23832 | if (PyErr_Occurred()) SWIG_fail; | |
23833 | } | |
23834 | } | |
d14a1e28 RD |
23835 | if (obj6) { |
23836 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23837 | if (arg7 == NULL) { | |
23838 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23839 | } | |
23840 | } | |
23841 | if (obj7) { | |
23842 | { | |
23843 | arg8 = wxString_in_helper(obj7); | |
23844 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 23845 | temp8 = True; |
d14a1e28 RD |
23846 | } |
23847 | } | |
23848 | { | |
23849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23850 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23851 | ||
23852 | wxPyEndAllowThreads(__tstate); | |
23853 | if (PyErr_Occurred()) SWIG_fail; | |
23854 | } | |
4e760a36 | 23855 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23856 | { |
23857 | if (temp8) | |
23858 | delete arg8; | |
23859 | } | |
23860 | return resultobj; | |
23861 | fail: | |
23862 | { | |
23863 | if (temp8) | |
23864 | delete arg8; | |
23865 | } | |
23866 | return NULL; | |
23867 | } | |
23868 | ||
23869 | ||
23870 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23871 | PyObject *resultobj; | |
23872 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23873 | PyObject *arg2 = (PyObject *) 0 ; | |
23874 | PyObject *arg3 = (PyObject *) 0 ; | |
23875 | PyObject * obj0 = 0 ; | |
23876 | PyObject * obj1 = 0 ; | |
23877 | PyObject * obj2 = 0 ; | |
23878 | char *kwnames[] = { | |
23879 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23880 | }; | |
23881 | ||
23882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23884 | arg2 = obj1; | |
23885 | arg3 = obj2; | |
23886 | { | |
23887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23888 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23889 | ||
23890 | wxPyEndAllowThreads(__tstate); | |
23891 | if (PyErr_Occurred()) SWIG_fail; | |
23892 | } | |
23893 | Py_INCREF(Py_None); resultobj = Py_None; | |
23894 | return resultobj; | |
23895 | fail: | |
23896 | return NULL; | |
23897 | } | |
23898 | ||
23899 | ||
23900 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23901 | PyObject *resultobj; | |
23902 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23903 | size_t result; | |
23904 | PyObject * obj0 = 0 ; | |
23905 | char *kwnames[] = { | |
23906 | (char *) "self", NULL | |
23907 | }; | |
23908 | ||
23909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
23910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23911 | { | |
23912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23913 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
23914 | ||
23915 | wxPyEndAllowThreads(__tstate); | |
23916 | if (PyErr_Occurred()) SWIG_fail; | |
23917 | } | |
8edf1c75 | 23918 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
23919 | return resultobj; |
23920 | fail: | |
23921 | return NULL; | |
23922 | } | |
23923 | ||
23924 | ||
23925 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23926 | PyObject *resultobj; | |
23927 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23928 | unsigned int result; | |
23929 | PyObject * obj0 = 0 ; | |
23930 | char *kwnames[] = { | |
23931 | (char *) "self", NULL | |
23932 | }; | |
23933 | ||
23934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
23935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23936 | { | |
23937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23938 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
23939 | ||
23940 | wxPyEndAllowThreads(__tstate); | |
23941 | if (PyErr_Occurred()) SWIG_fail; | |
23942 | } | |
8edf1c75 | 23943 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
23944 | return resultobj; |
23945 | fail: | |
23946 | return NULL; | |
23947 | } | |
23948 | ||
23949 | ||
23950 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23951 | PyObject *resultobj; | |
23952 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23953 | unsigned int arg2 ; | |
23954 | PyObject * obj0 = 0 ; | |
23955 | PyObject * obj1 = 0 ; | |
23956 | char *kwnames[] = { | |
23957 | (char *) "self",(char *) "indent", NULL | |
23958 | }; | |
23959 | ||
23960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
23961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 23962 | { |
8edf1c75 | 23963 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
83448d71 RD |
23964 | if (PyErr_Occurred()) SWIG_fail; |
23965 | } | |
d14a1e28 RD |
23966 | { |
23967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23968 | (arg1)->SetIndent(arg2); | |
23969 | ||
23970 | wxPyEndAllowThreads(__tstate); | |
23971 | if (PyErr_Occurred()) SWIG_fail; | |
23972 | } | |
23973 | Py_INCREF(Py_None); resultobj = Py_None; | |
23974 | return resultobj; | |
23975 | fail: | |
23976 | return NULL; | |
23977 | } | |
23978 | ||
23979 | ||
23980 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23981 | PyObject *resultobj; | |
23982 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23983 | unsigned int result; | |
23984 | PyObject * obj0 = 0 ; | |
23985 | char *kwnames[] = { | |
23986 | (char *) "self", NULL | |
23987 | }; | |
23988 | ||
23989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
23990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23991 | { | |
23992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23993 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
23994 | ||
23995 | wxPyEndAllowThreads(__tstate); | |
23996 | if (PyErr_Occurred()) SWIG_fail; | |
23997 | } | |
8edf1c75 | 23998 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
23999 | return resultobj; |
24000 | fail: | |
24001 | return NULL; | |
24002 | } | |
24003 | ||
24004 | ||
24005 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24006 | PyObject *resultobj; | |
24007 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24008 | unsigned int arg2 ; | |
24009 | PyObject * obj0 = 0 ; | |
24010 | PyObject * obj1 = 0 ; | |
24011 | char *kwnames[] = { | |
24012 | (char *) "self",(char *) "spacing", NULL | |
24013 | }; | |
24014 | ||
24015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
24016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 24017 | { |
8edf1c75 | 24018 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
83448d71 RD |
24019 | if (PyErr_Occurred()) SWIG_fail; |
24020 | } | |
d14a1e28 RD |
24021 | { |
24022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24023 | (arg1)->SetSpacing(arg2); | |
24024 | ||
24025 | wxPyEndAllowThreads(__tstate); | |
24026 | if (PyErr_Occurred()) SWIG_fail; | |
24027 | } | |
24028 | Py_INCREF(Py_None); resultobj = Py_None; | |
24029 | return resultobj; | |
24030 | fail: | |
24031 | return NULL; | |
24032 | } | |
24033 | ||
24034 | ||
24035 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24036 | PyObject *resultobj; | |
24037 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24038 | wxImageList *result; | |
24039 | PyObject * obj0 = 0 ; | |
24040 | char *kwnames[] = { | |
24041 | (char *) "self", NULL | |
24042 | }; | |
24043 | ||
24044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
24045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24046 | { | |
24047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24048 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
24049 | ||
24050 | wxPyEndAllowThreads(__tstate); | |
24051 | if (PyErr_Occurred()) SWIG_fail; | |
24052 | } | |
24053 | { | |
24054 | resultobj = wxPyMake_wxObject(result); | |
24055 | } | |
24056 | return resultobj; | |
24057 | fail: | |
24058 | return NULL; | |
24059 | } | |
24060 | ||
24061 | ||
24062 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24063 | PyObject *resultobj; | |
24064 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24065 | wxImageList *result; | |
24066 | PyObject * obj0 = 0 ; | |
24067 | char *kwnames[] = { | |
24068 | (char *) "self", NULL | |
24069 | }; | |
24070 | ||
24071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
24072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24073 | { | |
24074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24075 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
24076 | ||
24077 | wxPyEndAllowThreads(__tstate); | |
24078 | if (PyErr_Occurred()) SWIG_fail; | |
24079 | } | |
24080 | { | |
24081 | resultobj = wxPyMake_wxObject(result); | |
24082 | } | |
24083 | return resultobj; | |
24084 | fail: | |
24085 | return NULL; | |
24086 | } | |
24087 | ||
24088 | ||
24089 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24090 | PyObject *resultobj; | |
24091 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24092 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24093 | PyObject * obj0 = 0 ; | |
24094 | PyObject * obj1 = 0 ; | |
24095 | char *kwnames[] = { | |
24096 | (char *) "self",(char *) "imageList", NULL | |
24097 | }; | |
24098 | ||
24099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
24100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24101 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24102 | { | |
24103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24104 | (arg1)->SetImageList(arg2); | |
24105 | ||
24106 | wxPyEndAllowThreads(__tstate); | |
24107 | if (PyErr_Occurred()) SWIG_fail; | |
24108 | } | |
24109 | Py_INCREF(Py_None); resultobj = Py_None; | |
24110 | return resultobj; | |
24111 | fail: | |
24112 | return NULL; | |
24113 | } | |
24114 | ||
24115 | ||
24116 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24117 | PyObject *resultobj; | |
24118 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24119 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24120 | PyObject * obj0 = 0 ; | |
24121 | PyObject * obj1 = 0 ; | |
24122 | char *kwnames[] = { | |
24123 | (char *) "self",(char *) "imageList", NULL | |
24124 | }; | |
24125 | ||
24126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
24127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24128 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24129 | { | |
24130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24131 | (arg1)->SetStateImageList(arg2); | |
24132 | ||
24133 | wxPyEndAllowThreads(__tstate); | |
24134 | if (PyErr_Occurred()) SWIG_fail; | |
24135 | } | |
24136 | Py_INCREF(Py_None); resultobj = Py_None; | |
24137 | return resultobj; | |
24138 | fail: | |
24139 | return NULL; | |
24140 | } | |
24141 | ||
24142 | ||
24143 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24144 | PyObject *resultobj; | |
24145 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24146 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24147 | PyObject * obj0 = 0 ; | |
24148 | PyObject * obj1 = 0 ; | |
24149 | char *kwnames[] = { | |
24150 | (char *) "self",(char *) "imageList", NULL | |
24151 | }; | |
24152 | ||
24153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
24154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 24155 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
24156 | { |
24157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24158 | (arg1)->AssignImageList(arg2); | |
24159 | ||
24160 | wxPyEndAllowThreads(__tstate); | |
24161 | if (PyErr_Occurred()) SWIG_fail; | |
24162 | } | |
24163 | Py_INCREF(Py_None); resultobj = Py_None; | |
24164 | return resultobj; | |
24165 | fail: | |
24166 | return NULL; | |
24167 | } | |
24168 | ||
24169 | ||
24170 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24171 | PyObject *resultobj; | |
24172 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24173 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24174 | PyObject * obj0 = 0 ; | |
24175 | PyObject * obj1 = 0 ; | |
24176 | char *kwnames[] = { | |
24177 | (char *) "self",(char *) "imageList", NULL | |
24178 | }; | |
24179 | ||
24180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
24181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 24182 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
24183 | { |
24184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24185 | (arg1)->AssignStateImageList(arg2); | |
24186 | ||
24187 | wxPyEndAllowThreads(__tstate); | |
24188 | if (PyErr_Occurred()) SWIG_fail; | |
24189 | } | |
24190 | Py_INCREF(Py_None); resultobj = Py_None; | |
24191 | return resultobj; | |
24192 | fail: | |
24193 | return NULL; | |
24194 | } | |
24195 | ||
24196 | ||
24197 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24198 | PyObject *resultobj; | |
24199 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24200 | wxTreeItemId *arg2 = 0 ; | |
24201 | wxString result; | |
24202 | PyObject * obj0 = 0 ; | |
24203 | PyObject * obj1 = 0 ; | |
24204 | char *kwnames[] = { | |
24205 | (char *) "self",(char *) "item", NULL | |
24206 | }; | |
24207 | ||
24208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
24209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24210 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24211 | if (arg2 == NULL) { | |
24212 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24213 | } | |
24214 | { | |
24215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24216 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
24217 | ||
24218 | wxPyEndAllowThreads(__tstate); | |
24219 | if (PyErr_Occurred()) SWIG_fail; | |
24220 | } | |
24221 | { | |
24222 | #if wxUSE_UNICODE | |
24223 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24224 | #else | |
24225 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24226 | #endif | |
24227 | } | |
24228 | return resultobj; | |
24229 | fail: | |
24230 | return NULL; | |
24231 | } | |
24232 | ||
24233 | ||
24234 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24235 | PyObject *resultobj; | |
24236 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24237 | wxTreeItemId *arg2 = 0 ; | |
24238 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
24239 | int result; | |
24240 | PyObject * obj0 = 0 ; | |
24241 | PyObject * obj1 = 0 ; | |
8edf1c75 | 24242 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24243 | char *kwnames[] = { |
24244 | (char *) "self",(char *) "item",(char *) "which", NULL | |
24245 | }; | |
24246 | ||
8edf1c75 | 24247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
24248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24249 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24250 | if (arg2 == NULL) { | |
24251 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24252 | } | |
8edf1c75 RD |
24253 | if (obj2) { |
24254 | { | |
24255 | arg3 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj2); | |
24256 | if (PyErr_Occurred()) SWIG_fail; | |
24257 | } | |
24258 | } | |
d14a1e28 RD |
24259 | { |
24260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24261 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
24262 | ||
24263 | wxPyEndAllowThreads(__tstate); | |
24264 | if (PyErr_Occurred()) SWIG_fail; | |
24265 | } | |
8edf1c75 | 24266 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
24267 | return resultobj; |
24268 | fail: | |
24269 | return NULL; | |
24270 | } | |
24271 | ||
24272 | ||
24273 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24274 | PyObject *resultobj; | |
24275 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24276 | wxTreeItemId *arg2 = 0 ; | |
24277 | wxPyTreeItemData *result; | |
24278 | PyObject * obj0 = 0 ; | |
24279 | PyObject * obj1 = 0 ; | |
24280 | char *kwnames[] = { | |
24281 | (char *) "self",(char *) "item", NULL | |
24282 | }; | |
24283 | ||
24284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
24285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24286 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24287 | if (arg2 == NULL) { | |
24288 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24289 | } | |
24290 | { | |
24291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24292 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
24293 | ||
24294 | wxPyEndAllowThreads(__tstate); | |
24295 | if (PyErr_Occurred()) SWIG_fail; | |
24296 | } | |
24297 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 0); | |
24298 | return resultobj; | |
24299 | fail: | |
24300 | return NULL; | |
24301 | } | |
24302 | ||
24303 | ||
24304 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24305 | PyObject *resultobj; | |
24306 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24307 | wxTreeItemId *arg2 = 0 ; | |
24308 | PyObject *result; | |
24309 | PyObject * obj0 = 0 ; | |
24310 | PyObject * obj1 = 0 ; | |
24311 | char *kwnames[] = { | |
24312 | (char *) "self",(char *) "item", NULL | |
24313 | }; | |
24314 | ||
24315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
24316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24317 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24318 | if (arg2 == NULL) { | |
24319 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24320 | } | |
24321 | { | |
24322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24323 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
24324 | ||
24325 | wxPyEndAllowThreads(__tstate); | |
24326 | if (PyErr_Occurred()) SWIG_fail; | |
24327 | } | |
24328 | resultobj = result; | |
24329 | return resultobj; | |
24330 | fail: | |
24331 | return NULL; | |
24332 | } | |
24333 | ||
24334 | ||
24335 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24336 | PyObject *resultobj; | |
24337 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24338 | wxTreeItemId *arg2 = 0 ; | |
24339 | wxColour result; | |
24340 | PyObject * obj0 = 0 ; | |
24341 | PyObject * obj1 = 0 ; | |
24342 | char *kwnames[] = { | |
24343 | (char *) "self",(char *) "item", NULL | |
24344 | }; | |
24345 | ||
24346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
24347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24348 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24349 | if (arg2 == NULL) { | |
24350 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24351 | } | |
24352 | { | |
24353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24354 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
24355 | ||
24356 | wxPyEndAllowThreads(__tstate); | |
24357 | if (PyErr_Occurred()) SWIG_fail; | |
24358 | } | |
24359 | { | |
24360 | wxColour * resultptr; | |
24361 | resultptr = new wxColour((wxColour &) result); | |
24362 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24363 | } | |
24364 | return resultobj; | |
24365 | fail: | |
24366 | return NULL; | |
24367 | } | |
24368 | ||
24369 | ||
24370 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24371 | PyObject *resultobj; | |
24372 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24373 | wxTreeItemId *arg2 = 0 ; | |
24374 | wxColour result; | |
24375 | PyObject * obj0 = 0 ; | |
24376 | PyObject * obj1 = 0 ; | |
24377 | char *kwnames[] = { | |
24378 | (char *) "self",(char *) "item", NULL | |
24379 | }; | |
24380 | ||
24381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24389 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
24390 | ||
24391 | wxPyEndAllowThreads(__tstate); | |
24392 | if (PyErr_Occurred()) SWIG_fail; | |
24393 | } | |
24394 | { | |
24395 | wxColour * resultptr; | |
24396 | resultptr = new wxColour((wxColour &) result); | |
24397 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24398 | } | |
24399 | return resultobj; | |
24400 | fail: | |
24401 | return NULL; | |
24402 | } | |
24403 | ||
24404 | ||
24405 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24406 | PyObject *resultobj; | |
24407 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24408 | wxTreeItemId *arg2 = 0 ; | |
24409 | wxFont result; | |
24410 | PyObject * obj0 = 0 ; | |
24411 | PyObject * obj1 = 0 ; | |
24412 | char *kwnames[] = { | |
24413 | (char *) "self",(char *) "item", NULL | |
24414 | }; | |
24415 | ||
24416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
24417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24418 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24419 | if (arg2 == NULL) { | |
24420 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24421 | } | |
24422 | { | |
24423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24424 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
24425 | ||
24426 | wxPyEndAllowThreads(__tstate); | |
24427 | if (PyErr_Occurred()) SWIG_fail; | |
24428 | } | |
24429 | { | |
24430 | wxFont * resultptr; | |
24431 | resultptr = new wxFont((wxFont &) result); | |
24432 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
24433 | } | |
24434 | return resultobj; | |
24435 | fail: | |
24436 | return NULL; | |
24437 | } | |
24438 | ||
24439 | ||
24440 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24441 | PyObject *resultobj; | |
24442 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24443 | wxTreeItemId *arg2 = 0 ; | |
24444 | wxString *arg3 = 0 ; | |
423f194a | 24445 | bool temp3 = False ; |
d14a1e28 RD |
24446 | PyObject * obj0 = 0 ; |
24447 | PyObject * obj1 = 0 ; | |
24448 | PyObject * obj2 = 0 ; | |
24449 | char *kwnames[] = { | |
24450 | (char *) "self",(char *) "item",(char *) "text", NULL | |
24451 | }; | |
24452 | ||
24453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24455 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24456 | if (arg2 == NULL) { | |
24457 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24458 | } | |
24459 | { | |
24460 | arg3 = wxString_in_helper(obj2); | |
24461 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 24462 | temp3 = True; |
d14a1e28 RD |
24463 | } |
24464 | { | |
24465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24466 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
24467 | ||
24468 | wxPyEndAllowThreads(__tstate); | |
24469 | if (PyErr_Occurred()) SWIG_fail; | |
24470 | } | |
24471 | Py_INCREF(Py_None); resultobj = Py_None; | |
24472 | { | |
24473 | if (temp3) | |
24474 | delete arg3; | |
24475 | } | |
24476 | return resultobj; | |
24477 | fail: | |
24478 | { | |
24479 | if (temp3) | |
24480 | delete arg3; | |
24481 | } | |
24482 | return NULL; | |
24483 | } | |
24484 | ||
24485 | ||
24486 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24487 | PyObject *resultobj; | |
24488 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24489 | wxTreeItemId *arg2 = 0 ; | |
24490 | int arg3 ; | |
24491 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
24492 | PyObject * obj0 = 0 ; | |
24493 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24494 | PyObject * obj2 = 0 ; |
24495 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24496 | char *kwnames[] = { |
24497 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
24498 | }; | |
24499 | ||
8edf1c75 | 24500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
24501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24502 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24503 | if (arg2 == NULL) { | |
24504 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24505 | } | |
8edf1c75 RD |
24506 | { |
24507 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24508 | if (PyErr_Occurred()) SWIG_fail; | |
24509 | } | |
24510 | if (obj3) { | |
24511 | { | |
24512 | arg4 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj3); | |
24513 | if (PyErr_Occurred()) SWIG_fail; | |
24514 | } | |
24515 | } | |
d14a1e28 RD |
24516 | { |
24517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24518 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
24519 | ||
24520 | wxPyEndAllowThreads(__tstate); | |
24521 | if (PyErr_Occurred()) SWIG_fail; | |
24522 | } | |
24523 | Py_INCREF(Py_None); resultobj = Py_None; | |
24524 | return resultobj; | |
24525 | fail: | |
24526 | return NULL; | |
24527 | } | |
24528 | ||
24529 | ||
24530 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24531 | PyObject *resultobj; | |
24532 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24533 | wxTreeItemId *arg2 = 0 ; | |
24534 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
24535 | PyObject * obj0 = 0 ; | |
24536 | PyObject * obj1 = 0 ; | |
24537 | PyObject * obj2 = 0 ; | |
24538 | char *kwnames[] = { | |
24539 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24540 | }; | |
24541 | ||
24542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24544 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24545 | if (arg2 == NULL) { | |
24546 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24547 | } | |
24548 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24549 | { | |
24550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24551 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24552 | ||
24553 | wxPyEndAllowThreads(__tstate); | |
24554 | if (PyErr_Occurred()) SWIG_fail; | |
24555 | } | |
24556 | Py_INCREF(Py_None); resultobj = Py_None; | |
24557 | return resultobj; | |
24558 | fail: | |
24559 | return NULL; | |
24560 | } | |
24561 | ||
24562 | ||
24563 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24564 | PyObject *resultobj; | |
24565 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24566 | wxTreeItemId *arg2 = 0 ; | |
24567 | PyObject *arg3 = (PyObject *) 0 ; | |
24568 | PyObject * obj0 = 0 ; | |
24569 | PyObject * obj1 = 0 ; | |
24570 | PyObject * obj2 = 0 ; | |
24571 | char *kwnames[] = { | |
24572 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
24573 | }; | |
24574 | ||
24575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24577 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24578 | if (arg2 == NULL) { | |
24579 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24580 | } | |
24581 | arg3 = obj2; | |
24582 | { | |
24583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24584 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24585 | ||
24586 | wxPyEndAllowThreads(__tstate); | |
24587 | if (PyErr_Occurred()) SWIG_fail; | |
24588 | } | |
24589 | Py_INCREF(Py_None); resultobj = Py_None; | |
24590 | return resultobj; | |
24591 | fail: | |
24592 | return NULL; | |
24593 | } | |
24594 | ||
24595 | ||
24596 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(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 | PyObject * obj0 = 0 ; |
24602 | PyObject * obj1 = 0 ; | |
24603 | PyObject * obj2 = 0 ; | |
24604 | char *kwnames[] = { | |
24605 | (char *) "self",(char *) "item",(char *) "has", NULL | |
24606 | }; | |
24607 | ||
24608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24610 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24611 | if (arg2 == NULL) { | |
24612 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24613 | } | |
24614 | if (obj2) { | |
83448d71 | 24615 | { |
8edf1c75 | 24616 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
24617 | if (PyErr_Occurred()) SWIG_fail; |
24618 | } | |
d14a1e28 RD |
24619 | } |
24620 | { | |
24621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24622 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
24623 | ||
24624 | wxPyEndAllowThreads(__tstate); | |
24625 | if (PyErr_Occurred()) SWIG_fail; | |
24626 | } | |
24627 | Py_INCREF(Py_None); resultobj = Py_None; | |
24628 | return resultobj; | |
24629 | fail: | |
24630 | return NULL; | |
24631 | } | |
24632 | ||
24633 | ||
24634 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24635 | PyObject *resultobj; | |
24636 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24637 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24638 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24639 | PyObject * obj0 = 0 ; |
24640 | PyObject * obj1 = 0 ; | |
24641 | PyObject * obj2 = 0 ; | |
24642 | char *kwnames[] = { | |
24643 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
24644 | }; | |
24645 | ||
24646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24648 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24649 | if (arg2 == NULL) { | |
24650 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24651 | } | |
24652 | if (obj2) { | |
83448d71 | 24653 | { |
8edf1c75 | 24654 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
24655 | if (PyErr_Occurred()) SWIG_fail; |
24656 | } | |
d14a1e28 RD |
24657 | } |
24658 | { | |
24659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24660 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
24661 | ||
24662 | wxPyEndAllowThreads(__tstate); | |
24663 | if (PyErr_Occurred()) SWIG_fail; | |
24664 | } | |
24665 | Py_INCREF(Py_None); resultobj = Py_None; | |
24666 | return resultobj; | |
24667 | fail: | |
24668 | return NULL; | |
24669 | } | |
24670 | ||
24671 | ||
24672 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24673 | PyObject *resultobj; | |
24674 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24675 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24676 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24677 | PyObject * obj0 = 0 ; |
24678 | PyObject * obj1 = 0 ; | |
24679 | PyObject * obj2 = 0 ; | |
24680 | char *kwnames[] = { | |
24681 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
24682 | }; | |
24683 | ||
24684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24686 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24687 | if (arg2 == NULL) { | |
24688 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24689 | } | |
24690 | if (obj2) { | |
83448d71 | 24691 | { |
8edf1c75 | 24692 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
24693 | if (PyErr_Occurred()) SWIG_fail; |
24694 | } | |
d14a1e28 RD |
24695 | } |
24696 | { | |
24697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24698 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
24699 | ||
24700 | wxPyEndAllowThreads(__tstate); | |
24701 | if (PyErr_Occurred()) SWIG_fail; | |
24702 | } | |
24703 | Py_INCREF(Py_None); resultobj = Py_None; | |
24704 | return resultobj; | |
24705 | fail: | |
24706 | return NULL; | |
24707 | } | |
24708 | ||
24709 | ||
24710 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24711 | PyObject *resultobj; | |
24712 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24713 | wxTreeItemId *arg2 = 0 ; | |
24714 | wxColour *arg3 = 0 ; | |
24715 | wxColour temp3 ; | |
24716 | PyObject * obj0 = 0 ; | |
24717 | PyObject * obj1 = 0 ; | |
24718 | PyObject * obj2 = 0 ; | |
24719 | char *kwnames[] = { | |
24720 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24721 | }; | |
24722 | ||
24723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24725 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24726 | if (arg2 == NULL) { | |
24727 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24728 | } | |
24729 | { | |
24730 | arg3 = &temp3; | |
24731 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24732 | } | |
24733 | { | |
24734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24735 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24736 | ||
24737 | wxPyEndAllowThreads(__tstate); | |
24738 | if (PyErr_Occurred()) SWIG_fail; | |
24739 | } | |
24740 | Py_INCREF(Py_None); resultobj = Py_None; | |
24741 | return resultobj; | |
24742 | fail: | |
24743 | return NULL; | |
24744 | } | |
24745 | ||
24746 | ||
24747 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24748 | PyObject *resultobj; | |
24749 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24750 | wxTreeItemId *arg2 = 0 ; | |
24751 | wxColour *arg3 = 0 ; | |
24752 | wxColour temp3 ; | |
24753 | PyObject * obj0 = 0 ; | |
24754 | PyObject * obj1 = 0 ; | |
24755 | PyObject * obj2 = 0 ; | |
24756 | char *kwnames[] = { | |
24757 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24758 | }; | |
24759 | ||
24760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24762 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24763 | if (arg2 == NULL) { | |
24764 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24765 | } | |
24766 | { | |
24767 | arg3 = &temp3; | |
24768 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24769 | } | |
24770 | { | |
24771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24772 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24773 | ||
24774 | wxPyEndAllowThreads(__tstate); | |
24775 | if (PyErr_Occurred()) SWIG_fail; | |
24776 | } | |
24777 | Py_INCREF(Py_None); resultobj = Py_None; | |
24778 | return resultobj; | |
24779 | fail: | |
24780 | return NULL; | |
24781 | } | |
24782 | ||
24783 | ||
24784 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24785 | PyObject *resultobj; | |
24786 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24787 | wxTreeItemId *arg2 = 0 ; | |
24788 | wxFont *arg3 = 0 ; | |
24789 | PyObject * obj0 = 0 ; | |
24790 | PyObject * obj1 = 0 ; | |
24791 | PyObject * obj2 = 0 ; | |
24792 | char *kwnames[] = { | |
24793 | (char *) "self",(char *) "item",(char *) "font", NULL | |
24794 | }; | |
24795 | ||
24796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24798 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24799 | if (arg2 == NULL) { | |
24800 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24801 | } | |
24802 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24803 | if (arg3 == NULL) { | |
24804 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24805 | } | |
24806 | { | |
24807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24808 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
24809 | ||
24810 | wxPyEndAllowThreads(__tstate); | |
24811 | if (PyErr_Occurred()) SWIG_fail; | |
24812 | } | |
24813 | Py_INCREF(Py_None); resultobj = Py_None; | |
24814 | return resultobj; | |
24815 | fail: | |
24816 | return NULL; | |
24817 | } | |
24818 | ||
24819 | ||
24820 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24821 | PyObject *resultobj; | |
24822 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24823 | wxTreeItemId *arg2 = 0 ; | |
24824 | bool result; | |
24825 | PyObject * obj0 = 0 ; | |
24826 | PyObject * obj1 = 0 ; | |
24827 | char *kwnames[] = { | |
24828 | (char *) "self",(char *) "item", NULL | |
24829 | }; | |
24830 | ||
24831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
24832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24833 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24834 | if (arg2 == NULL) { | |
24835 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24836 | } | |
24837 | { | |
24838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24839 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
24840 | ||
24841 | wxPyEndAllowThreads(__tstate); | |
24842 | if (PyErr_Occurred()) SWIG_fail; | |
24843 | } | |
4e760a36 | 24844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24845 | return resultobj; |
24846 | fail: | |
24847 | return NULL; | |
24848 | } | |
24849 | ||
24850 | ||
24851 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24852 | PyObject *resultobj; | |
24853 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24854 | wxTreeItemId *arg2 = 0 ; | |
24855 | bool result; | |
24856 | PyObject * obj0 = 0 ; | |
24857 | PyObject * obj1 = 0 ; | |
24858 | char *kwnames[] = { | |
24859 | (char *) "self",(char *) "item", NULL | |
24860 | }; | |
24861 | ||
24862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
24863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24864 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24865 | if (arg2 == NULL) { | |
24866 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24867 | } | |
24868 | { | |
24869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24870 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
24871 | ||
24872 | wxPyEndAllowThreads(__tstate); | |
24873 | if (PyErr_Occurred()) SWIG_fail; | |
24874 | } | |
4e760a36 | 24875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24876 | return resultobj; |
24877 | fail: | |
24878 | return NULL; | |
24879 | } | |
24880 | ||
24881 | ||
24882 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24883 | PyObject *resultobj; | |
24884 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24885 | wxTreeItemId *arg2 = 0 ; | |
24886 | bool result; | |
24887 | PyObject * obj0 = 0 ; | |
24888 | PyObject * obj1 = 0 ; | |
24889 | char *kwnames[] = { | |
24890 | (char *) "self",(char *) "item", NULL | |
24891 | }; | |
24892 | ||
24893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
24894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24895 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24896 | if (arg2 == NULL) { | |
24897 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24898 | } | |
24899 | { | |
24900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24901 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
24902 | ||
24903 | wxPyEndAllowThreads(__tstate); | |
24904 | if (PyErr_Occurred()) SWIG_fail; | |
24905 | } | |
4e760a36 | 24906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24907 | return resultobj; |
24908 | fail: | |
24909 | return NULL; | |
24910 | } | |
24911 | ||
24912 | ||
24913 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24914 | PyObject *resultobj; | |
24915 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24916 | wxTreeItemId *arg2 = 0 ; | |
24917 | bool result; | |
24918 | PyObject * obj0 = 0 ; | |
24919 | PyObject * obj1 = 0 ; | |
24920 | char *kwnames[] = { | |
24921 | (char *) "self",(char *) "item", NULL | |
24922 | }; | |
24923 | ||
24924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
24925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24926 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24927 | if (arg2 == NULL) { | |
24928 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24929 | } | |
24930 | { | |
24931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24932 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
24933 | ||
24934 | wxPyEndAllowThreads(__tstate); | |
24935 | if (PyErr_Occurred()) SWIG_fail; | |
24936 | } | |
4e760a36 | 24937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24938 | return resultobj; |
24939 | fail: | |
24940 | return NULL; | |
24941 | } | |
24942 | ||
24943 | ||
24944 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24945 | PyObject *resultobj; | |
24946 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24947 | wxTreeItemId *arg2 = 0 ; | |
24948 | bool result; | |
24949 | PyObject * obj0 = 0 ; | |
24950 | PyObject * obj1 = 0 ; | |
24951 | char *kwnames[] = { | |
24952 | (char *) "self",(char *) "item", NULL | |
24953 | }; | |
24954 | ||
24955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
24956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24957 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24958 | if (arg2 == NULL) { | |
24959 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24960 | } | |
24961 | { | |
24962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24963 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
24964 | ||
24965 | wxPyEndAllowThreads(__tstate); | |
24966 | if (PyErr_Occurred()) SWIG_fail; | |
24967 | } | |
4e760a36 | 24968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24969 | return resultobj; |
24970 | fail: | |
24971 | return NULL; | |
24972 | } | |
24973 | ||
24974 | ||
24975 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24976 | PyObject *resultobj; | |
24977 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24978 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24979 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24980 | size_t result; |
24981 | PyObject * obj0 = 0 ; | |
24982 | PyObject * obj1 = 0 ; | |
24983 | PyObject * obj2 = 0 ; | |
24984 | char *kwnames[] = { | |
24985 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
24986 | }; | |
24987 | ||
24988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24990 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24991 | if (arg2 == NULL) { | |
24992 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24993 | } | |
24994 | if (obj2) { | |
83448d71 | 24995 | { |
8edf1c75 | 24996 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
24997 | if (PyErr_Occurred()) SWIG_fail; |
24998 | } | |
d14a1e28 RD |
24999 | } |
25000 | { | |
25001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25002 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
25003 | ||
25004 | wxPyEndAllowThreads(__tstate); | |
25005 | if (PyErr_Occurred()) SWIG_fail; | |
25006 | } | |
8edf1c75 | 25007 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25008 | return resultobj; |
25009 | fail: | |
25010 | return NULL; | |
25011 | } | |
25012 | ||
25013 | ||
25014 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25015 | PyObject *resultobj; | |
25016 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25017 | wxTreeItemId result; | |
25018 | PyObject * obj0 = 0 ; | |
25019 | char *kwnames[] = { | |
25020 | (char *) "self", NULL | |
25021 | }; | |
25022 | ||
25023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
25024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25025 | { | |
25026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25027 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
25028 | ||
25029 | wxPyEndAllowThreads(__tstate); | |
25030 | if (PyErr_Occurred()) SWIG_fail; | |
25031 | } | |
25032 | { | |
25033 | wxTreeItemId * resultptr; | |
25034 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25035 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25036 | } | |
25037 | return resultobj; | |
25038 | fail: | |
25039 | return NULL; | |
25040 | } | |
25041 | ||
25042 | ||
25043 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25044 | PyObject *resultobj; | |
25045 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25046 | wxTreeItemId result; | |
25047 | PyObject * obj0 = 0 ; | |
25048 | char *kwnames[] = { | |
25049 | (char *) "self", NULL | |
25050 | }; | |
25051 | ||
25052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
25053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25054 | { | |
25055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25056 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
25057 | ||
25058 | wxPyEndAllowThreads(__tstate); | |
25059 | if (PyErr_Occurred()) SWIG_fail; | |
25060 | } | |
25061 | { | |
25062 | wxTreeItemId * resultptr; | |
25063 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25064 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25065 | } | |
25066 | return resultobj; | |
25067 | fail: | |
25068 | return NULL; | |
25069 | } | |
25070 | ||
25071 | ||
25072 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25073 | PyObject *resultobj; | |
25074 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25075 | PyObject *result; | |
25076 | PyObject * obj0 = 0 ; | |
25077 | char *kwnames[] = { | |
25078 | (char *) "self", NULL | |
25079 | }; | |
25080 | ||
25081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
25082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25083 | { | |
25084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25085 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
25086 | ||
25087 | wxPyEndAllowThreads(__tstate); | |
25088 | if (PyErr_Occurred()) SWIG_fail; | |
25089 | } | |
25090 | resultobj = result; | |
25091 | return resultobj; | |
25092 | fail: | |
25093 | return NULL; | |
25094 | } | |
25095 | ||
25096 | ||
25097 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25098 | PyObject *resultobj; | |
25099 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25100 | wxTreeItemId *arg2 = 0 ; | |
25101 | wxTreeItemId result; | |
25102 | PyObject * obj0 = 0 ; | |
25103 | PyObject * obj1 = 0 ; | |
25104 | char *kwnames[] = { | |
25105 | (char *) "self",(char *) "item", NULL | |
25106 | }; | |
25107 | ||
25108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25116 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
25117 | ||
25118 | wxPyEndAllowThreads(__tstate); | |
25119 | if (PyErr_Occurred()) SWIG_fail; | |
25120 | } | |
25121 | { | |
25122 | wxTreeItemId * resultptr; | |
25123 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25124 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25125 | } | |
25126 | return resultobj; | |
25127 | fail: | |
25128 | return NULL; | |
25129 | } | |
25130 | ||
25131 | ||
25132 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25133 | PyObject *resultobj; | |
25134 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25135 | wxTreeItemId *arg2 = 0 ; | |
25136 | PyObject *result; | |
25137 | PyObject * obj0 = 0 ; | |
25138 | PyObject * obj1 = 0 ; | |
25139 | char *kwnames[] = { | |
25140 | (char *) "self",(char *) "item", NULL | |
25141 | }; | |
25142 | ||
25143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
25144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25145 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25146 | if (arg2 == NULL) { | |
25147 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25148 | } | |
25149 | { | |
25150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25151 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
25152 | ||
25153 | wxPyEndAllowThreads(__tstate); | |
25154 | if (PyErr_Occurred()) SWIG_fail; | |
25155 | } | |
25156 | resultobj = result; | |
25157 | return resultobj; | |
25158 | fail: | |
25159 | return NULL; | |
25160 | } | |
25161 | ||
25162 | ||
25163 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25164 | PyObject *resultobj; | |
25165 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25166 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 25167 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
25168 | PyObject *result; |
25169 | PyObject * obj0 = 0 ; | |
25170 | PyObject * obj1 = 0 ; | |
25171 | PyObject * obj2 = 0 ; | |
25172 | char *kwnames[] = { | |
25173 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
25174 | }; | |
25175 | ||
25176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25178 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25179 | if (arg2 == NULL) { | |
25180 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25181 | } | |
58203fa6 | 25182 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
25183 | { |
25184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 25185 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
25186 | |
25187 | wxPyEndAllowThreads(__tstate); | |
25188 | if (PyErr_Occurred()) SWIG_fail; | |
25189 | } | |
25190 | resultobj = result; | |
25191 | return resultobj; | |
25192 | fail: | |
25193 | return NULL; | |
25194 | } | |
25195 | ||
25196 | ||
25197 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25198 | PyObject *resultobj; | |
25199 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25200 | wxTreeItemId *arg2 = 0 ; | |
25201 | wxTreeItemId result; | |
25202 | PyObject * obj0 = 0 ; | |
25203 | PyObject * obj1 = 0 ; | |
25204 | char *kwnames[] = { | |
25205 | (char *) "self",(char *) "item", NULL | |
25206 | }; | |
25207 | ||
25208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
25209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25210 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25211 | if (arg2 == NULL) { | |
25212 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25213 | } | |
25214 | { | |
25215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25216 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
25217 | ||
25218 | wxPyEndAllowThreads(__tstate); | |
25219 | if (PyErr_Occurred()) SWIG_fail; | |
25220 | } | |
25221 | { | |
25222 | wxTreeItemId * resultptr; | |
25223 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25224 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25225 | } | |
25226 | return resultobj; | |
25227 | fail: | |
25228 | return NULL; | |
25229 | } | |
25230 | ||
25231 | ||
25232 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25233 | PyObject *resultobj; | |
25234 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25235 | wxTreeItemId *arg2 = 0 ; | |
25236 | wxTreeItemId result; | |
25237 | PyObject * obj0 = 0 ; | |
25238 | PyObject * obj1 = 0 ; | |
25239 | char *kwnames[] = { | |
25240 | (char *) "self",(char *) "item", NULL | |
25241 | }; | |
25242 | ||
25243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
25244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25245 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25246 | if (arg2 == NULL) { | |
25247 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25248 | } | |
25249 | { | |
25250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25251 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
25252 | ||
25253 | wxPyEndAllowThreads(__tstate); | |
25254 | if (PyErr_Occurred()) SWIG_fail; | |
25255 | } | |
25256 | { | |
25257 | wxTreeItemId * resultptr; | |
25258 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25259 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25260 | } | |
25261 | return resultobj; | |
25262 | fail: | |
25263 | return NULL; | |
25264 | } | |
25265 | ||
25266 | ||
25267 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25268 | PyObject *resultobj; | |
25269 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25270 | wxTreeItemId *arg2 = 0 ; | |
25271 | wxTreeItemId result; | |
25272 | PyObject * obj0 = 0 ; | |
25273 | PyObject * obj1 = 0 ; | |
25274 | char *kwnames[] = { | |
25275 | (char *) "self",(char *) "item", NULL | |
25276 | }; | |
25277 | ||
25278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
25279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25280 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25281 | if (arg2 == NULL) { | |
25282 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25283 | } | |
25284 | { | |
25285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25286 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
25287 | ||
25288 | wxPyEndAllowThreads(__tstate); | |
25289 | if (PyErr_Occurred()) SWIG_fail; | |
25290 | } | |
25291 | { | |
25292 | wxTreeItemId * resultptr; | |
25293 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25294 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25295 | } | |
25296 | return resultobj; | |
25297 | fail: | |
25298 | return NULL; | |
25299 | } | |
25300 | ||
25301 | ||
25302 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25303 | PyObject *resultobj; | |
25304 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25305 | wxTreeItemId result; | |
25306 | PyObject * obj0 = 0 ; | |
25307 | char *kwnames[] = { | |
25308 | (char *) "self", NULL | |
25309 | }; | |
25310 | ||
25311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
25312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25313 | { | |
25314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25315 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
25316 | ||
25317 | wxPyEndAllowThreads(__tstate); | |
25318 | if (PyErr_Occurred()) SWIG_fail; | |
25319 | } | |
25320 | { | |
25321 | wxTreeItemId * resultptr; | |
25322 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25323 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25324 | } | |
25325 | return resultobj; | |
25326 | fail: | |
25327 | return NULL; | |
25328 | } | |
25329 | ||
25330 | ||
25331 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25332 | PyObject *resultobj; | |
25333 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25334 | wxTreeItemId *arg2 = 0 ; | |
25335 | wxTreeItemId result; | |
25336 | PyObject * obj0 = 0 ; | |
25337 | PyObject * obj1 = 0 ; | |
25338 | char *kwnames[] = { | |
25339 | (char *) "self",(char *) "item", NULL | |
25340 | }; | |
25341 | ||
25342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
25343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25344 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25345 | if (arg2 == NULL) { | |
25346 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25347 | } | |
25348 | { | |
25349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25350 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
25351 | ||
25352 | wxPyEndAllowThreads(__tstate); | |
25353 | if (PyErr_Occurred()) SWIG_fail; | |
25354 | } | |
25355 | { | |
25356 | wxTreeItemId * resultptr; | |
25357 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25358 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25359 | } | |
25360 | return resultobj; | |
25361 | fail: | |
25362 | return NULL; | |
25363 | } | |
25364 | ||
25365 | ||
25366 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25367 | PyObject *resultobj; | |
25368 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25369 | wxTreeItemId *arg2 = 0 ; | |
25370 | wxTreeItemId result; | |
25371 | PyObject * obj0 = 0 ; | |
25372 | PyObject * obj1 = 0 ; | |
25373 | char *kwnames[] = { | |
25374 | (char *) "self",(char *) "item", NULL | |
25375 | }; | |
25376 | ||
25377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
25378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25379 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25380 | if (arg2 == NULL) { | |
25381 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25382 | } | |
25383 | { | |
25384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25385 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
25386 | ||
25387 | wxPyEndAllowThreads(__tstate); | |
25388 | if (PyErr_Occurred()) SWIG_fail; | |
25389 | } | |
25390 | { | |
25391 | wxTreeItemId * resultptr; | |
25392 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25393 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25394 | } | |
25395 | return resultobj; | |
25396 | fail: | |
25397 | return NULL; | |
25398 | } | |
25399 | ||
25400 | ||
25401 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25402 | PyObject *resultobj; | |
25403 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25404 | wxString *arg2 = 0 ; | |
25405 | int arg3 = (int) -1 ; | |
25406 | int arg4 = (int) -1 ; | |
25407 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
25408 | wxTreeItemId result; | |
423f194a | 25409 | bool temp2 = False ; |
d14a1e28 RD |
25410 | PyObject * obj0 = 0 ; |
25411 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
25412 | PyObject * obj2 = 0 ; |
25413 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25414 | PyObject * obj4 = 0 ; |
25415 | char *kwnames[] = { | |
25416 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25417 | }; | |
25418 | ||
8edf1c75 | 25419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
25420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25421 | { | |
25422 | arg2 = wxString_in_helper(obj1); | |
25423 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25424 | temp2 = True; |
d14a1e28 | 25425 | } |
8edf1c75 RD |
25426 | if (obj2) { |
25427 | { | |
25428 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25429 | if (PyErr_Occurred()) SWIG_fail; | |
25430 | } | |
25431 | } | |
25432 | if (obj3) { | |
25433 | { | |
25434 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25435 | if (PyErr_Occurred()) SWIG_fail; | |
25436 | } | |
25437 | } | |
d14a1e28 RD |
25438 | if (obj4) { |
25439 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25440 | } | |
25441 | { | |
25442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25443 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
25444 | ||
25445 | wxPyEndAllowThreads(__tstate); | |
25446 | if (PyErr_Occurred()) SWIG_fail; | |
25447 | } | |
25448 | { | |
25449 | wxTreeItemId * resultptr; | |
25450 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25451 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25452 | } | |
25453 | { | |
25454 | if (temp2) | |
25455 | delete arg2; | |
25456 | } | |
25457 | return resultobj; | |
25458 | fail: | |
25459 | { | |
25460 | if (temp2) | |
25461 | delete arg2; | |
25462 | } | |
25463 | return NULL; | |
25464 | } | |
25465 | ||
25466 | ||
25467 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25468 | PyObject *resultobj; | |
25469 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25470 | wxTreeItemId *arg2 = 0 ; | |
25471 | wxString *arg3 = 0 ; | |
25472 | int arg4 = (int) -1 ; | |
25473 | int arg5 = (int) -1 ; | |
25474 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25475 | wxTreeItemId result; | |
423f194a | 25476 | bool temp3 = False ; |
d14a1e28 RD |
25477 | PyObject * obj0 = 0 ; |
25478 | PyObject * obj1 = 0 ; | |
25479 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
25480 | PyObject * obj3 = 0 ; |
25481 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25482 | PyObject * obj5 = 0 ; |
25483 | char *kwnames[] = { | |
25484 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25485 | }; | |
25486 | ||
8edf1c75 | 25487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
25488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25489 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25490 | if (arg2 == NULL) { | |
25491 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25492 | } | |
25493 | { | |
25494 | arg3 = wxString_in_helper(obj2); | |
25495 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25496 | temp3 = True; |
d14a1e28 | 25497 | } |
8edf1c75 RD |
25498 | if (obj3) { |
25499 | { | |
25500 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25501 | if (PyErr_Occurred()) SWIG_fail; | |
25502 | } | |
25503 | } | |
25504 | if (obj4) { | |
25505 | { | |
25506 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25507 | if (PyErr_Occurred()) SWIG_fail; | |
25508 | } | |
25509 | } | |
d14a1e28 RD |
25510 | if (obj5) { |
25511 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25512 | } | |
25513 | { | |
25514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25515 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25516 | ||
25517 | wxPyEndAllowThreads(__tstate); | |
25518 | if (PyErr_Occurred()) SWIG_fail; | |
25519 | } | |
25520 | { | |
25521 | wxTreeItemId * resultptr; | |
25522 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25523 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25524 | } | |
25525 | { | |
25526 | if (temp3) | |
25527 | delete arg3; | |
25528 | } | |
25529 | return resultobj; | |
25530 | fail: | |
25531 | { | |
25532 | if (temp3) | |
25533 | delete arg3; | |
25534 | } | |
25535 | return NULL; | |
25536 | } | |
25537 | ||
25538 | ||
25539 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25540 | PyObject *resultobj; | |
25541 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25542 | wxTreeItemId *arg2 = 0 ; | |
25543 | wxTreeItemId *arg3 = 0 ; | |
25544 | wxString *arg4 = 0 ; | |
25545 | int arg5 = (int) -1 ; | |
25546 | int arg6 = (int) -1 ; | |
25547 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
25548 | wxTreeItemId result; | |
423f194a | 25549 | bool temp4 = False ; |
d14a1e28 RD |
25550 | PyObject * obj0 = 0 ; |
25551 | PyObject * obj1 = 0 ; | |
25552 | PyObject * obj2 = 0 ; | |
25553 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
25554 | PyObject * obj4 = 0 ; |
25555 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
25556 | PyObject * obj6 = 0 ; |
25557 | char *kwnames[] = { | |
25558 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25559 | }; | |
25560 | ||
8edf1c75 | 25561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
25562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25563 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25564 | if (arg2 == NULL) { | |
25565 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25566 | } | |
25567 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25568 | if (arg3 == NULL) { | |
25569 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25570 | } | |
25571 | { | |
25572 | arg4 = wxString_in_helper(obj3); | |
25573 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25574 | temp4 = True; |
d14a1e28 | 25575 | } |
8edf1c75 RD |
25576 | if (obj4) { |
25577 | { | |
25578 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25579 | if (PyErr_Occurred()) SWIG_fail; | |
25580 | } | |
25581 | } | |
25582 | if (obj5) { | |
25583 | { | |
25584 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
25585 | if (PyErr_Occurred()) SWIG_fail; | |
25586 | } | |
25587 | } | |
d14a1e28 RD |
25588 | if (obj6) { |
25589 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25590 | } | |
25591 | { | |
25592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25593 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25594 | ||
25595 | wxPyEndAllowThreads(__tstate); | |
25596 | if (PyErr_Occurred()) SWIG_fail; | |
25597 | } | |
25598 | { | |
25599 | wxTreeItemId * resultptr; | |
25600 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25601 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25602 | } | |
25603 | { | |
25604 | if (temp4) | |
25605 | delete arg4; | |
25606 | } | |
25607 | return resultobj; | |
25608 | fail: | |
25609 | { | |
25610 | if (temp4) | |
25611 | delete arg4; | |
25612 | } | |
25613 | return NULL; | |
25614 | } | |
25615 | ||
25616 | ||
25617 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25618 | PyObject *resultobj; | |
25619 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25620 | wxTreeItemId *arg2 = 0 ; | |
25621 | size_t arg3 ; | |
25622 | wxString *arg4 = 0 ; | |
25623 | int arg5 = (int) -1 ; | |
25624 | int arg6 = (int) -1 ; | |
25625 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
25626 | wxTreeItemId result; | |
423f194a | 25627 | bool temp4 = False ; |
d14a1e28 RD |
25628 | PyObject * obj0 = 0 ; |
25629 | PyObject * obj1 = 0 ; | |
25630 | PyObject * obj2 = 0 ; | |
25631 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
25632 | PyObject * obj4 = 0 ; |
25633 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
25634 | PyObject * obj6 = 0 ; |
25635 | char *kwnames[] = { | |
25636 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25637 | }; | |
25638 | ||
8edf1c75 | 25639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
25640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25641 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25642 | if (arg2 == NULL) { | |
25643 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25644 | } | |
83448d71 | 25645 | { |
8edf1c75 | 25646 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
83448d71 RD |
25647 | if (PyErr_Occurred()) SWIG_fail; |
25648 | } | |
d14a1e28 RD |
25649 | { |
25650 | arg4 = wxString_in_helper(obj3); | |
25651 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25652 | temp4 = True; |
d14a1e28 | 25653 | } |
8edf1c75 RD |
25654 | if (obj4) { |
25655 | { | |
25656 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25657 | if (PyErr_Occurred()) SWIG_fail; | |
25658 | } | |
25659 | } | |
25660 | if (obj5) { | |
25661 | { | |
25662 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
25663 | if (PyErr_Occurred()) SWIG_fail; | |
25664 | } | |
25665 | } | |
d14a1e28 RD |
25666 | if (obj6) { |
25667 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25668 | } | |
25669 | { | |
25670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25671 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25672 | ||
25673 | wxPyEndAllowThreads(__tstate); | |
25674 | if (PyErr_Occurred()) SWIG_fail; | |
25675 | } | |
25676 | { | |
25677 | wxTreeItemId * resultptr; | |
25678 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25679 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25680 | } | |
25681 | { | |
25682 | if (temp4) | |
25683 | delete arg4; | |
25684 | } | |
25685 | return resultobj; | |
25686 | fail: | |
25687 | { | |
25688 | if (temp4) | |
25689 | delete arg4; | |
25690 | } | |
25691 | return NULL; | |
25692 | } | |
25693 | ||
25694 | ||
25695 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25696 | PyObject *resultobj; | |
25697 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25698 | wxTreeItemId *arg2 = 0 ; | |
25699 | wxString *arg3 = 0 ; | |
25700 | int arg4 = (int) -1 ; | |
25701 | int arg5 = (int) -1 ; | |
25702 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25703 | wxTreeItemId result; | |
423f194a | 25704 | bool temp3 = False ; |
d14a1e28 RD |
25705 | PyObject * obj0 = 0 ; |
25706 | PyObject * obj1 = 0 ; | |
25707 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
25708 | PyObject * obj3 = 0 ; |
25709 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25710 | PyObject * obj5 = 0 ; |
25711 | char *kwnames[] = { | |
25712 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25713 | }; | |
25714 | ||
8edf1c75 | 25715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
25716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25717 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25718 | if (arg2 == NULL) { | |
25719 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25720 | } | |
25721 | { | |
25722 | arg3 = wxString_in_helper(obj2); | |
25723 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25724 | temp3 = True; |
d14a1e28 | 25725 | } |
8edf1c75 RD |
25726 | if (obj3) { |
25727 | { | |
25728 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25729 | if (PyErr_Occurred()) SWIG_fail; | |
25730 | } | |
25731 | } | |
25732 | if (obj4) { | |
25733 | { | |
25734 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25735 | if (PyErr_Occurred()) SWIG_fail; | |
25736 | } | |
25737 | } | |
d14a1e28 RD |
25738 | if (obj5) { |
25739 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25740 | } | |
25741 | { | |
25742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25743 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25744 | ||
25745 | wxPyEndAllowThreads(__tstate); | |
25746 | if (PyErr_Occurred()) SWIG_fail; | |
25747 | } | |
25748 | { | |
25749 | wxTreeItemId * resultptr; | |
25750 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25751 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25752 | } | |
25753 | { | |
25754 | if (temp3) | |
25755 | delete arg3; | |
25756 | } | |
25757 | return resultobj; | |
25758 | fail: | |
25759 | { | |
25760 | if (temp3) | |
25761 | delete arg3; | |
25762 | } | |
25763 | return NULL; | |
25764 | } | |
25765 | ||
25766 | ||
25767 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25768 | PyObject *resultobj; | |
25769 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25770 | wxTreeItemId *arg2 = 0 ; | |
25771 | PyObject * obj0 = 0 ; | |
25772 | PyObject * obj1 = 0 ; | |
25773 | char *kwnames[] = { | |
25774 | (char *) "self",(char *) "item", NULL | |
25775 | }; | |
25776 | ||
25777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
25778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25779 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25780 | if (arg2 == NULL) { | |
25781 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25782 | } | |
25783 | { | |
25784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25785 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
25786 | ||
25787 | wxPyEndAllowThreads(__tstate); | |
25788 | if (PyErr_Occurred()) SWIG_fail; | |
25789 | } | |
25790 | Py_INCREF(Py_None); resultobj = Py_None; | |
25791 | return resultobj; | |
25792 | fail: | |
25793 | return NULL; | |
25794 | } | |
25795 | ||
25796 | ||
25797 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25798 | PyObject *resultobj; | |
25799 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25800 | wxTreeItemId *arg2 = 0 ; | |
25801 | PyObject * obj0 = 0 ; | |
25802 | PyObject * obj1 = 0 ; | |
25803 | char *kwnames[] = { | |
25804 | (char *) "self",(char *) "item", NULL | |
25805 | }; | |
25806 | ||
25807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
25808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25809 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25810 | if (arg2 == NULL) { | |
25811 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25812 | } | |
25813 | { | |
25814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25815 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
25816 | ||
25817 | wxPyEndAllowThreads(__tstate); | |
25818 | if (PyErr_Occurred()) SWIG_fail; | |
25819 | } | |
25820 | Py_INCREF(Py_None); resultobj = Py_None; | |
25821 | return resultobj; | |
25822 | fail: | |
25823 | return NULL; | |
25824 | } | |
25825 | ||
25826 | ||
25827 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25828 | PyObject *resultobj; | |
25829 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25830 | PyObject * obj0 = 0 ; | |
25831 | char *kwnames[] = { | |
25832 | (char *) "self", NULL | |
25833 | }; | |
25834 | ||
25835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
25836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25837 | { | |
25838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25839 | (arg1)->DeleteAllItems(); | |
25840 | ||
25841 | wxPyEndAllowThreads(__tstate); | |
25842 | if (PyErr_Occurred()) SWIG_fail; | |
25843 | } | |
25844 | Py_INCREF(Py_None); resultobj = Py_None; | |
25845 | return resultobj; | |
25846 | fail: | |
25847 | return NULL; | |
25848 | } | |
25849 | ||
25850 | ||
25851 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25852 | PyObject *resultobj; | |
25853 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25854 | wxTreeItemId *arg2 = 0 ; | |
25855 | PyObject * obj0 = 0 ; | |
25856 | PyObject * obj1 = 0 ; | |
25857 | char *kwnames[] = { | |
25858 | (char *) "self",(char *) "item", NULL | |
25859 | }; | |
25860 | ||
25861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
25862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25863 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25864 | if (arg2 == NULL) { | |
25865 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25866 | } | |
25867 | { | |
25868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25869 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
25870 | ||
25871 | wxPyEndAllowThreads(__tstate); | |
25872 | if (PyErr_Occurred()) SWIG_fail; | |
25873 | } | |
25874 | Py_INCREF(Py_None); resultobj = Py_None; | |
25875 | return resultobj; | |
25876 | fail: | |
25877 | return NULL; | |
25878 | } | |
25879 | ||
25880 | ||
25881 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25882 | PyObject *resultobj; | |
25883 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25884 | wxTreeItemId *arg2 = 0 ; | |
25885 | PyObject * obj0 = 0 ; | |
25886 | PyObject * obj1 = 0 ; | |
25887 | char *kwnames[] = { | |
25888 | (char *) "self",(char *) "item", NULL | |
25889 | }; | |
25890 | ||
25891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
25892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25893 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25894 | if (arg2 == NULL) { | |
25895 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25896 | } | |
25897 | { | |
25898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25899 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
25900 | ||
25901 | wxPyEndAllowThreads(__tstate); | |
25902 | if (PyErr_Occurred()) SWIG_fail; | |
25903 | } | |
25904 | Py_INCREF(Py_None); resultobj = Py_None; | |
25905 | return resultobj; | |
25906 | fail: | |
25907 | return NULL; | |
25908 | } | |
25909 | ||
25910 | ||
25911 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25912 | PyObject *resultobj; | |
25913 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25914 | wxTreeItemId *arg2 = 0 ; | |
25915 | PyObject * obj0 = 0 ; | |
25916 | PyObject * obj1 = 0 ; | |
25917 | char *kwnames[] = { | |
25918 | (char *) "self",(char *) "item", NULL | |
25919 | }; | |
25920 | ||
25921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
25922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25923 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25924 | if (arg2 == NULL) { | |
25925 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25926 | } | |
25927 | { | |
25928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25929 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
25930 | ||
25931 | wxPyEndAllowThreads(__tstate); | |
25932 | if (PyErr_Occurred()) SWIG_fail; | |
25933 | } | |
25934 | Py_INCREF(Py_None); resultobj = Py_None; | |
25935 | return resultobj; | |
25936 | fail: | |
25937 | return NULL; | |
25938 | } | |
25939 | ||
25940 | ||
25941 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25942 | PyObject *resultobj; | |
25943 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25944 | wxTreeItemId *arg2 = 0 ; | |
25945 | PyObject * obj0 = 0 ; | |
25946 | PyObject * obj1 = 0 ; | |
25947 | char *kwnames[] = { | |
25948 | (char *) "self",(char *) "item", NULL | |
25949 | }; | |
25950 | ||
25951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
25952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25953 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25954 | if (arg2 == NULL) { | |
25955 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25956 | } | |
25957 | { | |
25958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25959 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
25960 | ||
25961 | wxPyEndAllowThreads(__tstate); | |
25962 | if (PyErr_Occurred()) SWIG_fail; | |
25963 | } | |
25964 | Py_INCREF(Py_None); resultobj = Py_None; | |
25965 | return resultobj; | |
25966 | fail: | |
25967 | return NULL; | |
25968 | } | |
25969 | ||
25970 | ||
25971 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25972 | PyObject *resultobj; | |
25973 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25974 | PyObject * obj0 = 0 ; | |
25975 | char *kwnames[] = { | |
25976 | (char *) "self", NULL | |
25977 | }; | |
25978 | ||
25979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
25980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25981 | { | |
25982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25983 | (arg1)->Unselect(); | |
25984 | ||
25985 | wxPyEndAllowThreads(__tstate); | |
25986 | if (PyErr_Occurred()) SWIG_fail; | |
25987 | } | |
25988 | Py_INCREF(Py_None); resultobj = Py_None; | |
25989 | return resultobj; | |
25990 | fail: | |
25991 | return NULL; | |
25992 | } | |
25993 | ||
25994 | ||
db914595 RD |
25995 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
25996 | PyObject *resultobj; | |
25997 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25998 | wxTreeItemId *arg2 = 0 ; | |
25999 | PyObject * obj0 = 0 ; | |
26000 | PyObject * obj1 = 0 ; | |
26001 | char *kwnames[] = { | |
26002 | (char *) "self",(char *) "item", NULL | |
26003 | }; | |
26004 | ||
26005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
26006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26007 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26008 | if (arg2 == NULL) { | |
26009 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26010 | } | |
26011 | { | |
26012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26013 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
26014 | ||
26015 | wxPyEndAllowThreads(__tstate); | |
26016 | if (PyErr_Occurred()) SWIG_fail; | |
26017 | } | |
26018 | Py_INCREF(Py_None); resultobj = Py_None; | |
26019 | return resultobj; | |
26020 | fail: | |
26021 | return NULL; | |
26022 | } | |
26023 | ||
26024 | ||
d14a1e28 RD |
26025 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
26026 | PyObject *resultobj; | |
26027 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26028 | PyObject * obj0 = 0 ; | |
26029 | char *kwnames[] = { | |
26030 | (char *) "self", NULL | |
26031 | }; | |
26032 | ||
26033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
26034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26035 | { | |
26036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26037 | (arg1)->UnselectAll(); | |
26038 | ||
26039 | wxPyEndAllowThreads(__tstate); | |
26040 | if (PyErr_Occurred()) SWIG_fail; | |
26041 | } | |
26042 | Py_INCREF(Py_None); resultobj = Py_None; | |
26043 | return resultobj; | |
26044 | fail: | |
26045 | return NULL; | |
26046 | } | |
26047 | ||
26048 | ||
26049 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
db914595 RD |
26050 | PyObject *resultobj; |
26051 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26052 | wxTreeItemId *arg2 = 0 ; | |
26053 | bool arg3 = (bool) True ; | |
26054 | PyObject * obj0 = 0 ; | |
26055 | PyObject * obj1 = 0 ; | |
26056 | PyObject * obj2 = 0 ; | |
26057 | char *kwnames[] = { | |
26058 | (char *) "self",(char *) "item",(char *) "select", NULL | |
26059 | }; | |
26060 | ||
26061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26063 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26064 | if (arg2 == NULL) { | |
26065 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26066 | } | |
26067 | if (obj2) { | |
26068 | { | |
26069 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
26070 | if (PyErr_Occurred()) SWIG_fail; | |
26071 | } | |
26072 | } | |
26073 | { | |
26074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26075 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
26076 | ||
26077 | wxPyEndAllowThreads(__tstate); | |
26078 | if (PyErr_Occurred()) SWIG_fail; | |
26079 | } | |
26080 | Py_INCREF(Py_None); resultobj = Py_None; | |
26081 | return resultobj; | |
26082 | fail: | |
26083 | return NULL; | |
26084 | } | |
26085 | ||
26086 | ||
26087 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
26088 | PyObject *resultobj; |
26089 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26090 | wxTreeItemId *arg2 = 0 ; | |
26091 | PyObject * obj0 = 0 ; | |
26092 | PyObject * obj1 = 0 ; | |
26093 | char *kwnames[] = { | |
26094 | (char *) "self",(char *) "item", NULL | |
26095 | }; | |
26096 | ||
db914595 | 26097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
26098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26099 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26100 | if (arg2 == NULL) { | |
26101 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26102 | } | |
26103 | { | |
26104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 26105 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
26106 | |
26107 | wxPyEndAllowThreads(__tstate); | |
26108 | if (PyErr_Occurred()) SWIG_fail; | |
26109 | } | |
26110 | Py_INCREF(Py_None); resultobj = Py_None; | |
26111 | return resultobj; | |
26112 | fail: | |
26113 | return NULL; | |
26114 | } | |
26115 | ||
26116 | ||
26117 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26118 | PyObject *resultobj; | |
26119 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26120 | wxTreeItemId *arg2 = 0 ; | |
26121 | PyObject * obj0 = 0 ; | |
26122 | PyObject * obj1 = 0 ; | |
26123 | char *kwnames[] = { | |
26124 | (char *) "self",(char *) "item", NULL | |
26125 | }; | |
26126 | ||
26127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
26128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26129 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26130 | if (arg2 == NULL) { | |
26131 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26132 | } | |
26133 | { | |
26134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26135 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
26136 | ||
26137 | wxPyEndAllowThreads(__tstate); | |
26138 | if (PyErr_Occurred()) SWIG_fail; | |
26139 | } | |
26140 | Py_INCREF(Py_None); resultobj = Py_None; | |
26141 | return resultobj; | |
26142 | fail: | |
26143 | return NULL; | |
26144 | } | |
26145 | ||
26146 | ||
26147 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26148 | PyObject *resultobj; | |
26149 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26150 | wxTreeItemId *arg2 = 0 ; | |
26151 | PyObject * obj0 = 0 ; | |
26152 | PyObject * obj1 = 0 ; | |
26153 | char *kwnames[] = { | |
26154 | (char *) "self",(char *) "item", NULL | |
26155 | }; | |
26156 | ||
26157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
26158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26159 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26160 | if (arg2 == NULL) { | |
26161 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26162 | } | |
26163 | { | |
26164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26165 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
26166 | ||
26167 | wxPyEndAllowThreads(__tstate); | |
26168 | if (PyErr_Occurred()) SWIG_fail; | |
26169 | } | |
26170 | Py_INCREF(Py_None); resultobj = Py_None; | |
26171 | return resultobj; | |
26172 | fail: | |
26173 | return NULL; | |
26174 | } | |
26175 | ||
26176 | ||
26177 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26178 | PyObject *resultobj; | |
26179 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26180 | wxTreeItemId *arg2 = 0 ; | |
26181 | PyObject * obj0 = 0 ; | |
26182 | PyObject * obj1 = 0 ; | |
26183 | char *kwnames[] = { | |
26184 | (char *) "self",(char *) "item", NULL | |
26185 | }; | |
26186 | ||
26187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
26188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26189 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26190 | if (arg2 == NULL) { | |
26191 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26192 | } | |
26193 | { | |
26194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26195 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
26196 | ||
26197 | wxPyEndAllowThreads(__tstate); | |
26198 | if (PyErr_Occurred()) SWIG_fail; | |
26199 | } | |
26200 | Py_INCREF(Py_None); resultobj = Py_None; | |
26201 | return resultobj; | |
26202 | fail: | |
26203 | return NULL; | |
26204 | } | |
26205 | ||
26206 | ||
26207 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26208 | PyObject *resultobj; | |
26209 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26210 | wxTextCtrl *result; | |
26211 | PyObject * obj0 = 0 ; | |
26212 | char *kwnames[] = { | |
26213 | (char *) "self", NULL | |
26214 | }; | |
26215 | ||
26216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
26217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26218 | { | |
26219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26220 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
26221 | ||
26222 | wxPyEndAllowThreads(__tstate); | |
26223 | if (PyErr_Occurred()) SWIG_fail; | |
26224 | } | |
26225 | { | |
26226 | resultobj = wxPyMake_wxObject(result); | |
26227 | } | |
26228 | return resultobj; | |
26229 | fail: | |
26230 | return NULL; | |
26231 | } | |
26232 | ||
26233 | ||
26234 | static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26235 | PyObject *resultobj; | |
26236 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26237 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 26238 | bool arg3 = (bool) False ; |
d14a1e28 RD |
26239 | PyObject * obj0 = 0 ; |
26240 | PyObject * obj1 = 0 ; | |
26241 | PyObject * obj2 = 0 ; | |
26242 | char *kwnames[] = { | |
26243 | (char *) "self",(char *) "item",(char *) "discardChanges", NULL | |
26244 | }; | |
26245 | ||
26246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26248 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26249 | if (arg2 == NULL) { | |
26250 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26251 | } | |
26252 | if (obj2) { | |
83448d71 | 26253 | { |
8edf1c75 | 26254 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
26255 | if (PyErr_Occurred()) SWIG_fail; |
26256 | } | |
d14a1e28 RD |
26257 | } |
26258 | { | |
26259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26260 | (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3); | |
26261 | ||
26262 | wxPyEndAllowThreads(__tstate); | |
26263 | if (PyErr_Occurred()) SWIG_fail; | |
26264 | } | |
26265 | Py_INCREF(Py_None); resultobj = Py_None; | |
26266 | return resultobj; | |
26267 | fail: | |
26268 | return NULL; | |
26269 | } | |
26270 | ||
26271 | ||
26272 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26273 | PyObject *resultobj; | |
26274 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26275 | wxTreeItemId *arg2 = 0 ; | |
26276 | PyObject * obj0 = 0 ; | |
26277 | PyObject * obj1 = 0 ; | |
26278 | char *kwnames[] = { | |
26279 | (char *) "self",(char *) "item", NULL | |
26280 | }; | |
26281 | ||
26282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
26283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26284 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26285 | if (arg2 == NULL) { | |
26286 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26287 | } | |
26288 | { | |
26289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26290 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
26291 | ||
26292 | wxPyEndAllowThreads(__tstate); | |
26293 | if (PyErr_Occurred()) SWIG_fail; | |
26294 | } | |
26295 | Py_INCREF(Py_None); resultobj = Py_None; | |
26296 | return resultobj; | |
26297 | fail: | |
26298 | return NULL; | |
26299 | } | |
26300 | ||
26301 | ||
26302 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26303 | PyObject *resultobj; | |
26304 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26305 | wxPoint *arg2 = 0 ; | |
26306 | int *arg3 = 0 ; | |
26307 | wxTreeItemId result; | |
26308 | wxPoint temp2 ; | |
26309 | int temp3 ; | |
26310 | PyObject * obj0 = 0 ; | |
26311 | PyObject * obj1 = 0 ; | |
26312 | char *kwnames[] = { | |
26313 | (char *) "self",(char *) "point", NULL | |
26314 | }; | |
26315 | ||
26316 | arg3 = &temp3; | |
26317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
26318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26319 | { | |
26320 | arg2 = &temp2; | |
26321 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26322 | } | |
26323 | { | |
26324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26325 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
26326 | ||
26327 | wxPyEndAllowThreads(__tstate); | |
26328 | if (PyErr_Occurred()) SWIG_fail; | |
26329 | } | |
26330 | { | |
26331 | wxTreeItemId * resultptr; | |
26332 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26333 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
26334 | } | |
26335 | { | |
26336 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26337 | resultobj = t_output_helper(resultobj,o); | |
26338 | } | |
26339 | return resultobj; | |
26340 | fail: | |
26341 | return NULL; | |
26342 | } | |
26343 | ||
26344 | ||
26345 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26346 | PyObject *resultobj; | |
26347 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26348 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 26349 | bool arg3 = (bool) False ; |
d14a1e28 RD |
26350 | PyObject *result; |
26351 | PyObject * obj0 = 0 ; | |
26352 | PyObject * obj1 = 0 ; | |
26353 | PyObject * obj2 = 0 ; | |
26354 | char *kwnames[] = { | |
26355 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
26356 | }; | |
26357 | ||
26358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26360 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26361 | if (arg2 == NULL) { | |
26362 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26363 | } | |
26364 | if (obj2) { | |
83448d71 | 26365 | { |
8edf1c75 | 26366 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
26367 | if (PyErr_Occurred()) SWIG_fail; |
26368 | } | |
d14a1e28 RD |
26369 | } |
26370 | { | |
26371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26372 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26373 | ||
26374 | wxPyEndAllowThreads(__tstate); | |
26375 | if (PyErr_Occurred()) SWIG_fail; | |
26376 | } | |
26377 | resultobj = result; | |
26378 | return resultobj; | |
26379 | fail: | |
26380 | return NULL; | |
26381 | } | |
26382 | ||
26383 | ||
26384 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
26385 | PyObject *obj; | |
26386 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26387 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
26388 | Py_INCREF(obj); | |
26389 | return Py_BuildValue((char *)""); | |
26390 | } | |
8edf1c75 | 26391 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
d03fd34d RD |
26392 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
26393 | return 1; | |
26394 | } | |
26395 | ||
26396 | ||
26397 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
26398 | PyObject *pyobj; | |
26399 | ||
26400 | { | |
26401 | #if wxUSE_UNICODE | |
26402 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
26403 | #else | |
26404 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
26405 | #endif | |
26406 | } | |
26407 | return pyobj; | |
26408 | } | |
26409 | ||
26410 | ||
d14a1e28 RD |
26411 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
26412 | PyObject *resultobj; | |
26413 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 26414 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
26415 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
26416 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
26417 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
26418 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26419 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26420 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26421 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
26422 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
26423 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
26424 | int arg8 = (int) 0 ; | |
d03fd34d | 26425 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
26426 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
26427 | wxGenericDirCtrl *result; | |
423f194a | 26428 | bool temp3 = False ; |
d14a1e28 RD |
26429 | wxPoint temp4 ; |
26430 | wxSize temp5 ; | |
423f194a RD |
26431 | bool temp7 = False ; |
26432 | bool temp9 = False ; | |
d14a1e28 | 26433 | PyObject * obj0 = 0 ; |
8edf1c75 | 26434 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26435 | PyObject * obj2 = 0 ; |
26436 | PyObject * obj3 = 0 ; | |
26437 | PyObject * obj4 = 0 ; | |
8edf1c75 | 26438 | PyObject * obj5 = 0 ; |
d14a1e28 | 26439 | PyObject * obj6 = 0 ; |
8edf1c75 | 26440 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
26441 | PyObject * obj8 = 0 ; |
26442 | char *kwnames[] = { | |
26443 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
26444 | }; | |
26445 | ||
8edf1c75 | 26446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 26447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26448 | if (obj1) { |
26449 | { | |
26450 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
26451 | if (PyErr_Occurred()) SWIG_fail; | |
26452 | } | |
26453 | } | |
d14a1e28 RD |
26454 | if (obj2) { |
26455 | { | |
26456 | arg3 = wxString_in_helper(obj2); | |
26457 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26458 | temp3 = True; |
d14a1e28 RD |
26459 | } |
26460 | } | |
26461 | if (obj3) { | |
26462 | { | |
26463 | arg4 = &temp4; | |
26464 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26465 | } | |
26466 | } | |
26467 | if (obj4) { | |
26468 | { | |
26469 | arg5 = &temp5; | |
26470 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26471 | } | |
26472 | } | |
8edf1c75 RD |
26473 | if (obj5) { |
26474 | { | |
26475 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
26476 | if (PyErr_Occurred()) SWIG_fail; | |
26477 | } | |
26478 | } | |
d14a1e28 RD |
26479 | if (obj6) { |
26480 | { | |
26481 | arg7 = wxString_in_helper(obj6); | |
26482 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 26483 | temp7 = True; |
d14a1e28 RD |
26484 | } |
26485 | } | |
8edf1c75 RD |
26486 | if (obj7) { |
26487 | { | |
26488 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
26489 | if (PyErr_Occurred()) SWIG_fail; | |
26490 | } | |
26491 | } | |
d14a1e28 RD |
26492 | if (obj8) { |
26493 | { | |
26494 | arg9 = wxString_in_helper(obj8); | |
26495 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 26496 | temp9 = True; |
d14a1e28 RD |
26497 | } |
26498 | } | |
26499 | { | |
26500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26501 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
26502 | ||
26503 | wxPyEndAllowThreads(__tstate); | |
26504 | if (PyErr_Occurred()) SWIG_fail; | |
26505 | } | |
26506 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
26507 | { | |
26508 | if (temp3) | |
26509 | delete arg3; | |
26510 | } | |
26511 | { | |
26512 | if (temp7) | |
26513 | delete arg7; | |
26514 | } | |
26515 | { | |
26516 | if (temp9) | |
26517 | delete arg9; | |
26518 | } | |
26519 | return resultobj; | |
26520 | fail: | |
26521 | { | |
26522 | if (temp3) | |
26523 | delete arg3; | |
26524 | } | |
26525 | { | |
26526 | if (temp7) | |
26527 | delete arg7; | |
26528 | } | |
26529 | { | |
26530 | if (temp9) | |
26531 | delete arg9; | |
26532 | } | |
26533 | return NULL; | |
26534 | } | |
26535 | ||
26536 | ||
26537 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26538 | PyObject *resultobj; | |
26539 | wxGenericDirCtrl *result; | |
26540 | char *kwnames[] = { | |
26541 | NULL | |
26542 | }; | |
26543 | ||
26544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
26545 | { | |
26546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26547 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
26548 | ||
26549 | wxPyEndAllowThreads(__tstate); | |
26550 | if (PyErr_Occurred()) SWIG_fail; | |
26551 | } | |
26552 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
26553 | return resultobj; | |
26554 | fail: | |
26555 | return NULL; | |
26556 | } | |
26557 | ||
26558 | ||
26559 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26560 | PyObject *resultobj; | |
26561 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26562 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 26563 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
26564 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
26565 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
26566 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
26567 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
26568 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
26569 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
26570 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
26571 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
26572 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
26573 | int arg9 = (int) 0 ; | |
d03fd34d | 26574 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
26575 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
26576 | bool result; | |
423f194a | 26577 | bool temp4 = False ; |
d14a1e28 RD |
26578 | wxPoint temp5 ; |
26579 | wxSize temp6 ; | |
423f194a RD |
26580 | bool temp8 = False ; |
26581 | bool temp10 = False ; | |
d14a1e28 RD |
26582 | PyObject * obj0 = 0 ; |
26583 | PyObject * obj1 = 0 ; | |
8edf1c75 | 26584 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26585 | PyObject * obj3 = 0 ; |
26586 | PyObject * obj4 = 0 ; | |
26587 | PyObject * obj5 = 0 ; | |
8edf1c75 | 26588 | PyObject * obj6 = 0 ; |
d14a1e28 | 26589 | PyObject * obj7 = 0 ; |
8edf1c75 | 26590 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
26591 | PyObject * obj9 = 0 ; |
26592 | char *kwnames[] = { | |
26593 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
26594 | }; | |
26595 | ||
8edf1c75 | 26596 | 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 |
26597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26598 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
26599 | if (obj2) { |
26600 | { | |
26601 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
26602 | if (PyErr_Occurred()) SWIG_fail; | |
26603 | } | |
26604 | } | |
d14a1e28 RD |
26605 | if (obj3) { |
26606 | { | |
26607 | arg4 = wxString_in_helper(obj3); | |
26608 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 26609 | temp4 = True; |
d14a1e28 RD |
26610 | } |
26611 | } | |
26612 | if (obj4) { | |
26613 | { | |
26614 | arg5 = &temp5; | |
26615 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
26616 | } | |
26617 | } | |
26618 | if (obj5) { | |
26619 | { | |
26620 | arg6 = &temp6; | |
26621 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
26622 | } | |
26623 | } | |
8edf1c75 RD |
26624 | if (obj6) { |
26625 | { | |
26626 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
26627 | if (PyErr_Occurred()) SWIG_fail; | |
26628 | } | |
26629 | } | |
d14a1e28 RD |
26630 | if (obj7) { |
26631 | { | |
26632 | arg8 = wxString_in_helper(obj7); | |
26633 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 26634 | temp8 = True; |
d14a1e28 RD |
26635 | } |
26636 | } | |
8edf1c75 RD |
26637 | if (obj8) { |
26638 | { | |
26639 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
26640 | if (PyErr_Occurred()) SWIG_fail; | |
26641 | } | |
26642 | } | |
d14a1e28 RD |
26643 | if (obj9) { |
26644 | { | |
26645 | arg10 = wxString_in_helper(obj9); | |
26646 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 26647 | temp10 = True; |
d14a1e28 RD |
26648 | } |
26649 | } | |
26650 | { | |
26651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26652 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
26653 | ||
26654 | wxPyEndAllowThreads(__tstate); | |
26655 | if (PyErr_Occurred()) SWIG_fail; | |
26656 | } | |
4e760a36 | 26657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26658 | { |
26659 | if (temp4) | |
26660 | delete arg4; | |
26661 | } | |
26662 | { | |
26663 | if (temp8) | |
26664 | delete arg8; | |
26665 | } | |
26666 | { | |
26667 | if (temp10) | |
26668 | delete arg10; | |
26669 | } | |
26670 | return resultobj; | |
26671 | fail: | |
26672 | { | |
26673 | if (temp4) | |
26674 | delete arg4; | |
26675 | } | |
26676 | { | |
26677 | if (temp8) | |
26678 | delete arg8; | |
26679 | } | |
26680 | { | |
26681 | if (temp10) | |
26682 | delete arg10; | |
26683 | } | |
26684 | return NULL; | |
26685 | } | |
26686 | ||
26687 | ||
26688 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26689 | PyObject *resultobj; | |
26690 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26691 | wxString *arg2 = 0 ; | |
26692 | bool result; | |
423f194a | 26693 | bool temp2 = False ; |
d14a1e28 RD |
26694 | PyObject * obj0 = 0 ; |
26695 | PyObject * obj1 = 0 ; | |
26696 | char *kwnames[] = { | |
26697 | (char *) "self",(char *) "path", NULL | |
26698 | }; | |
26699 | ||
26700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
26701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26702 | { | |
26703 | arg2 = wxString_in_helper(obj1); | |
26704 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26705 | temp2 = True; |
d14a1e28 RD |
26706 | } |
26707 | { | |
26708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26709 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
26710 | ||
26711 | wxPyEndAllowThreads(__tstate); | |
26712 | if (PyErr_Occurred()) SWIG_fail; | |
26713 | } | |
4e760a36 | 26714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26715 | { |
26716 | if (temp2) | |
26717 | delete arg2; | |
26718 | } | |
26719 | return resultobj; | |
26720 | fail: | |
26721 | { | |
26722 | if (temp2) | |
26723 | delete arg2; | |
26724 | } | |
26725 | return NULL; | |
26726 | } | |
26727 | ||
26728 | ||
26729 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26730 | PyObject *resultobj; | |
26731 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26732 | wxString result; | |
26733 | PyObject * obj0 = 0 ; | |
26734 | char *kwnames[] = { | |
26735 | (char *) "self", NULL | |
26736 | }; | |
26737 | ||
26738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
26739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26740 | { | |
26741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26742 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
26743 | ||
26744 | wxPyEndAllowThreads(__tstate); | |
26745 | if (PyErr_Occurred()) SWIG_fail; | |
26746 | } | |
26747 | { | |
26748 | #if wxUSE_UNICODE | |
26749 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26750 | #else | |
26751 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26752 | #endif | |
26753 | } | |
26754 | return resultobj; | |
26755 | fail: | |
26756 | return NULL; | |
26757 | } | |
26758 | ||
26759 | ||
26760 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26761 | PyObject *resultobj; | |
26762 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26763 | wxString *arg2 = 0 ; | |
423f194a | 26764 | bool temp2 = False ; |
d14a1e28 RD |
26765 | PyObject * obj0 = 0 ; |
26766 | PyObject * obj1 = 0 ; | |
26767 | char *kwnames[] = { | |
26768 | (char *) "self",(char *) "path", NULL | |
26769 | }; | |
26770 | ||
26771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
26772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26773 | { | |
26774 | arg2 = wxString_in_helper(obj1); | |
26775 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26776 | temp2 = True; |
d14a1e28 RD |
26777 | } |
26778 | { | |
26779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26780 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
26781 | ||
26782 | wxPyEndAllowThreads(__tstate); | |
26783 | if (PyErr_Occurred()) SWIG_fail; | |
26784 | } | |
26785 | Py_INCREF(Py_None); resultobj = Py_None; | |
26786 | { | |
26787 | if (temp2) | |
26788 | delete arg2; | |
26789 | } | |
26790 | return resultobj; | |
26791 | fail: | |
26792 | { | |
26793 | if (temp2) | |
26794 | delete arg2; | |
26795 | } | |
26796 | return NULL; | |
26797 | } | |
26798 | ||
26799 | ||
26800 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26801 | PyObject *resultobj; | |
26802 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26803 | wxString result; | |
26804 | PyObject * obj0 = 0 ; | |
26805 | char *kwnames[] = { | |
26806 | (char *) "self", NULL | |
26807 | }; | |
26808 | ||
26809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
26810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26811 | { | |
26812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26813 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
26814 | ||
26815 | wxPyEndAllowThreads(__tstate); | |
26816 | if (PyErr_Occurred()) SWIG_fail; | |
26817 | } | |
26818 | { | |
26819 | #if wxUSE_UNICODE | |
26820 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26821 | #else | |
26822 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26823 | #endif | |
26824 | } | |
26825 | return resultobj; | |
26826 | fail: | |
26827 | return NULL; | |
26828 | } | |
26829 | ||
26830 | ||
26831 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26832 | PyObject *resultobj; | |
26833 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26834 | wxString result; | |
26835 | PyObject * obj0 = 0 ; | |
26836 | char *kwnames[] = { | |
26837 | (char *) "self", NULL | |
26838 | }; | |
26839 | ||
26840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
26841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26842 | { | |
26843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26844 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
26845 | ||
26846 | wxPyEndAllowThreads(__tstate); | |
26847 | if (PyErr_Occurred()) SWIG_fail; | |
26848 | } | |
26849 | { | |
26850 | #if wxUSE_UNICODE | |
26851 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26852 | #else | |
26853 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26854 | #endif | |
26855 | } | |
26856 | return resultobj; | |
26857 | fail: | |
26858 | return NULL; | |
26859 | } | |
26860 | ||
26861 | ||
26862 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26863 | PyObject *resultobj; | |
26864 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26865 | wxString *arg2 = 0 ; | |
423f194a | 26866 | bool temp2 = False ; |
d14a1e28 RD |
26867 | PyObject * obj0 = 0 ; |
26868 | PyObject * obj1 = 0 ; | |
26869 | char *kwnames[] = { | |
26870 | (char *) "self",(char *) "path", NULL | |
26871 | }; | |
26872 | ||
26873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
26874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26875 | { | |
26876 | arg2 = wxString_in_helper(obj1); | |
26877 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26878 | temp2 = True; |
d14a1e28 RD |
26879 | } |
26880 | { | |
26881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26882 | (arg1)->SetPath((wxString const &)*arg2); | |
26883 | ||
26884 | wxPyEndAllowThreads(__tstate); | |
26885 | if (PyErr_Occurred()) SWIG_fail; | |
26886 | } | |
26887 | Py_INCREF(Py_None); resultobj = Py_None; | |
26888 | { | |
26889 | if (temp2) | |
26890 | delete arg2; | |
26891 | } | |
26892 | return resultobj; | |
26893 | fail: | |
26894 | { | |
26895 | if (temp2) | |
26896 | delete arg2; | |
26897 | } | |
26898 | return NULL; | |
26899 | } | |
26900 | ||
26901 | ||
26902 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26903 | PyObject *resultobj; | |
26904 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26905 | bool arg2 ; | |
26906 | PyObject * obj0 = 0 ; | |
26907 | PyObject * obj1 = 0 ; | |
26908 | char *kwnames[] = { | |
26909 | (char *) "self",(char *) "show", NULL | |
26910 | }; | |
26911 | ||
26912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
26913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 26914 | { |
8edf1c75 | 26915 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
26916 | if (PyErr_Occurred()) SWIG_fail; |
26917 | } | |
d14a1e28 RD |
26918 | { |
26919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26920 | (arg1)->ShowHidden(arg2); | |
26921 | ||
26922 | wxPyEndAllowThreads(__tstate); | |
26923 | if (PyErr_Occurred()) SWIG_fail; | |
26924 | } | |
26925 | Py_INCREF(Py_None); resultobj = Py_None; | |
26926 | return resultobj; | |
26927 | fail: | |
26928 | return NULL; | |
26929 | } | |
26930 | ||
26931 | ||
26932 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26933 | PyObject *resultobj; | |
26934 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26935 | bool result; | |
26936 | PyObject * obj0 = 0 ; | |
26937 | char *kwnames[] = { | |
26938 | (char *) "self", NULL | |
26939 | }; | |
26940 | ||
26941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
26942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26943 | { | |
26944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26945 | result = (bool)(arg1)->GetShowHidden(); | |
26946 | ||
26947 | wxPyEndAllowThreads(__tstate); | |
26948 | if (PyErr_Occurred()) SWIG_fail; | |
26949 | } | |
4e760a36 | 26950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26951 | return resultobj; |
26952 | fail: | |
26953 | return NULL; | |
26954 | } | |
26955 | ||
26956 | ||
26957 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26958 | PyObject *resultobj; | |
26959 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26960 | wxString result; | |
26961 | PyObject * obj0 = 0 ; | |
26962 | char *kwnames[] = { | |
26963 | (char *) "self", NULL | |
26964 | }; | |
26965 | ||
26966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
26967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26968 | { | |
26969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26970 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
26971 | ||
26972 | wxPyEndAllowThreads(__tstate); | |
26973 | if (PyErr_Occurred()) SWIG_fail; | |
26974 | } | |
26975 | { | |
26976 | #if wxUSE_UNICODE | |
26977 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26978 | #else | |
26979 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26980 | #endif | |
26981 | } | |
26982 | return resultobj; | |
26983 | fail: | |
26984 | return NULL; | |
26985 | } | |
26986 | ||
26987 | ||
26988 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26989 | PyObject *resultobj; | |
26990 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26991 | wxString *arg2 = 0 ; | |
423f194a | 26992 | bool temp2 = False ; |
d14a1e28 RD |
26993 | PyObject * obj0 = 0 ; |
26994 | PyObject * obj1 = 0 ; | |
26995 | char *kwnames[] = { | |
26996 | (char *) "self",(char *) "filter", NULL | |
26997 | }; | |
26998 | ||
26999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
27000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27001 | { | |
27002 | arg2 = wxString_in_helper(obj1); | |
27003 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27004 | temp2 = True; |
d14a1e28 RD |
27005 | } |
27006 | { | |
27007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27008 | (arg1)->SetFilter((wxString const &)*arg2); | |
27009 | ||
27010 | wxPyEndAllowThreads(__tstate); | |
27011 | if (PyErr_Occurred()) SWIG_fail; | |
27012 | } | |
27013 | Py_INCREF(Py_None); resultobj = Py_None; | |
27014 | { | |
27015 | if (temp2) | |
27016 | delete arg2; | |
27017 | } | |
27018 | return resultobj; | |
27019 | fail: | |
27020 | { | |
27021 | if (temp2) | |
27022 | delete arg2; | |
27023 | } | |
27024 | return NULL; | |
27025 | } | |
27026 | ||
27027 | ||
27028 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27029 | PyObject *resultobj; | |
27030 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27031 | int result; | |
27032 | PyObject * obj0 = 0 ; | |
27033 | char *kwnames[] = { | |
27034 | (char *) "self", NULL | |
27035 | }; | |
27036 | ||
27037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
27038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27039 | { | |
27040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27041 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
27042 | ||
27043 | wxPyEndAllowThreads(__tstate); | |
27044 | if (PyErr_Occurred()) SWIG_fail; | |
27045 | } | |
8edf1c75 | 27046 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
27047 | return resultobj; |
27048 | fail: | |
27049 | return NULL; | |
27050 | } | |
27051 | ||
27052 | ||
27053 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27054 | PyObject *resultobj; | |
27055 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27056 | int arg2 ; | |
27057 | PyObject * obj0 = 0 ; | |
8edf1c75 | 27058 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27059 | char *kwnames[] = { |
27060 | (char *) "self",(char *) "n", NULL | |
27061 | }; | |
27062 | ||
8edf1c75 | 27063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 27064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27065 | { |
27066 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27067 | if (PyErr_Occurred()) SWIG_fail; | |
27068 | } | |
d14a1e28 RD |
27069 | { |
27070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27071 | (arg1)->SetFilterIndex(arg2); | |
27072 | ||
27073 | wxPyEndAllowThreads(__tstate); | |
27074 | if (PyErr_Occurred()) SWIG_fail; | |
27075 | } | |
27076 | Py_INCREF(Py_None); resultobj = Py_None; | |
27077 | return resultobj; | |
27078 | fail: | |
27079 | return NULL; | |
27080 | } | |
27081 | ||
27082 | ||
27083 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27084 | PyObject *resultobj; | |
27085 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27086 | wxTreeItemId result; | |
27087 | PyObject * obj0 = 0 ; | |
27088 | char *kwnames[] = { | |
27089 | (char *) "self", NULL | |
27090 | }; | |
27091 | ||
27092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
27093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27094 | { | |
27095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27096 | result = (arg1)->GetRootId(); | |
27097 | ||
27098 | wxPyEndAllowThreads(__tstate); | |
27099 | if (PyErr_Occurred()) SWIG_fail; | |
27100 | } | |
27101 | { | |
27102 | wxTreeItemId * resultptr; | |
27103 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27104 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
27105 | } | |
27106 | return resultobj; | |
27107 | fail: | |
27108 | return NULL; | |
27109 | } | |
27110 | ||
27111 | ||
27112 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27113 | PyObject *resultobj; | |
27114 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
d03fd34d | 27115 | wxPyTreeCtrl *result; |
d14a1e28 RD |
27116 | PyObject * obj0 = 0 ; |
27117 | char *kwnames[] = { | |
27118 | (char *) "self", NULL | |
27119 | }; | |
27120 | ||
27121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
27122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27123 | { | |
27124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d03fd34d | 27125 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
27126 | |
27127 | wxPyEndAllowThreads(__tstate); | |
27128 | if (PyErr_Occurred()) SWIG_fail; | |
27129 | } | |
27130 | { | |
27131 | resultobj = wxPyMake_wxObject(result); | |
27132 | } | |
27133 | return resultobj; | |
27134 | fail: | |
27135 | return NULL; | |
27136 | } | |
27137 | ||
27138 | ||
27139 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27140 | PyObject *resultobj; | |
27141 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27142 | wxDirFilterListCtrl *result; | |
27143 | PyObject * obj0 = 0 ; | |
27144 | char *kwnames[] = { | |
27145 | (char *) "self", NULL | |
27146 | }; | |
27147 | ||
27148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
27149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27150 | { | |
27151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27152 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
27153 | ||
27154 | wxPyEndAllowThreads(__tstate); | |
27155 | if (PyErr_Occurred()) SWIG_fail; | |
27156 | } | |
27157 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
27158 | return resultobj; | |
27159 | fail: | |
27160 | return NULL; | |
27161 | } | |
27162 | ||
27163 | ||
27164 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27165 | PyObject *resultobj; | |
27166 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27167 | wxTreeItemId arg2 ; | |
27168 | wxString *arg3 = 0 ; | |
27169 | bool *arg4 = 0 ; | |
27170 | wxTreeItemId result; | |
27171 | wxTreeItemId *argp2 ; | |
423f194a | 27172 | bool temp3 = False ; |
d14a1e28 RD |
27173 | bool temp4 ; |
27174 | PyObject * obj0 = 0 ; | |
27175 | PyObject * obj1 = 0 ; | |
27176 | PyObject * obj2 = 0 ; | |
27177 | char *kwnames[] = { | |
27178 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
27179 | }; | |
27180 | ||
27181 | arg4 = &temp4; | |
27182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27184 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
27185 | arg2 = *argp2; | |
27186 | { | |
27187 | arg3 = wxString_in_helper(obj2); | |
27188 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27189 | temp3 = True; |
d14a1e28 RD |
27190 | } |
27191 | { | |
27192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27193 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
27194 | ||
27195 | wxPyEndAllowThreads(__tstate); | |
27196 | if (PyErr_Occurred()) SWIG_fail; | |
27197 | } | |
27198 | { | |
27199 | wxTreeItemId * resultptr; | |
27200 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27201 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
27202 | } | |
27203 | { | |
27204 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
27205 | resultobj = t_output_helper(resultobj,o); | |
27206 | } | |
27207 | { | |
27208 | if (temp3) | |
27209 | delete arg3; | |
27210 | } | |
27211 | return resultobj; | |
27212 | fail: | |
27213 | { | |
27214 | if (temp3) | |
27215 | delete arg3; | |
27216 | } | |
27217 | return NULL; | |
27218 | } | |
27219 | ||
27220 | ||
27221 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27222 | PyObject *resultobj; | |
27223 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27224 | PyObject * obj0 = 0 ; | |
27225 | char *kwnames[] = { | |
27226 | (char *) "self", NULL | |
27227 | }; | |
27228 | ||
27229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
27230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27231 | { | |
27232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27233 | (arg1)->DoResize(); | |
27234 | ||
27235 | wxPyEndAllowThreads(__tstate); | |
27236 | if (PyErr_Occurred()) SWIG_fail; | |
27237 | } | |
27238 | Py_INCREF(Py_None); resultobj = Py_None; | |
27239 | return resultobj; | |
27240 | fail: | |
27241 | return NULL; | |
27242 | } | |
27243 | ||
27244 | ||
27245 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27246 | PyObject *resultobj; | |
27247 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27248 | PyObject * obj0 = 0 ; | |
27249 | char *kwnames[] = { | |
27250 | (char *) "self", NULL | |
27251 | }; | |
27252 | ||
27253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
27254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27255 | { | |
27256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27257 | (arg1)->ReCreateTree(); | |
27258 | ||
27259 | wxPyEndAllowThreads(__tstate); | |
27260 | if (PyErr_Occurred()) SWIG_fail; | |
27261 | } | |
27262 | Py_INCREF(Py_None); resultobj = Py_None; | |
27263 | return resultobj; | |
27264 | fail: | |
27265 | return NULL; | |
27266 | } | |
27267 | ||
27268 | ||
27269 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
27270 | PyObject *obj; | |
27271 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27272 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
27273 | Py_INCREF(obj); | |
27274 | return Py_BuildValue((char *)""); | |
27275 | } | |
27276 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27277 | PyObject *resultobj; | |
27278 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 27279 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
27280 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27281 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27282 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27283 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27284 | long arg5 = (long) 0 ; | |
27285 | wxDirFilterListCtrl *result; | |
27286 | wxPoint temp3 ; | |
27287 | wxSize temp4 ; | |
27288 | PyObject * obj0 = 0 ; | |
8edf1c75 | 27289 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27290 | PyObject * obj2 = 0 ; |
27291 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27292 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
27293 | char *kwnames[] = { |
27294 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
27295 | }; | |
27296 | ||
8edf1c75 | 27297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27299 | if (obj1) { |
27300 | { | |
27301 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
27302 | if (PyErr_Occurred()) SWIG_fail; | |
27303 | } | |
27304 | } | |
d14a1e28 RD |
27305 | if (obj2) { |
27306 | { | |
27307 | arg3 = &temp3; | |
27308 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27309 | } | |
27310 | } | |
27311 | if (obj3) { | |
27312 | { | |
27313 | arg4 = &temp4; | |
27314 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27315 | } | |
27316 | } | |
8edf1c75 RD |
27317 | if (obj4) { |
27318 | { | |
27319 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
27320 | if (PyErr_Occurred()) SWIG_fail; | |
27321 | } | |
27322 | } | |
d14a1e28 RD |
27323 | { |
27324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27325 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
27326 | ||
27327 | wxPyEndAllowThreads(__tstate); | |
27328 | if (PyErr_Occurred()) SWIG_fail; | |
27329 | } | |
27330 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
27331 | return resultobj; | |
27332 | fail: | |
27333 | return NULL; | |
27334 | } | |
27335 | ||
27336 | ||
27337 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27338 | PyObject *resultobj; | |
27339 | wxDirFilterListCtrl *result; | |
27340 | char *kwnames[] = { | |
27341 | NULL | |
27342 | }; | |
27343 | ||
27344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
27345 | { | |
27346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27347 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
27348 | ||
27349 | wxPyEndAllowThreads(__tstate); | |
27350 | if (PyErr_Occurred()) SWIG_fail; | |
27351 | } | |
27352 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
27353 | return resultobj; | |
27354 | fail: | |
27355 | return NULL; | |
27356 | } | |
27357 | ||
27358 | ||
27359 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27360 | PyObject *resultobj; | |
27361 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
27362 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 27363 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
27364 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
27365 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27366 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27367 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27368 | long arg6 = (long) 0 ; | |
27369 | bool result; | |
27370 | wxPoint temp4 ; | |
27371 | wxSize temp5 ; | |
27372 | PyObject * obj0 = 0 ; | |
27373 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27374 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27375 | PyObject * obj3 = 0 ; |
27376 | PyObject * obj4 = 0 ; | |
8edf1c75 | 27377 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
27378 | char *kwnames[] = { |
27379 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
27380 | }; | |
27381 | ||
8edf1c75 | 27382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
27383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
27384 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
27385 | if (obj2) { |
27386 | { | |
27387 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
27388 | if (PyErr_Occurred()) SWIG_fail; | |
27389 | } | |
27390 | } | |
d14a1e28 RD |
27391 | if (obj3) { |
27392 | { | |
27393 | arg4 = &temp4; | |
27394 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27395 | } | |
27396 | } | |
27397 | if (obj4) { | |
27398 | { | |
27399 | arg5 = &temp5; | |
27400 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27401 | } | |
27402 | } | |
8edf1c75 RD |
27403 | if (obj5) { |
27404 | { | |
27405 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
27406 | if (PyErr_Occurred()) SWIG_fail; | |
27407 | } | |
27408 | } | |
d14a1e28 RD |
27409 | { |
27410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27411 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
27412 | ||
27413 | wxPyEndAllowThreads(__tstate); | |
27414 | if (PyErr_Occurred()) SWIG_fail; | |
27415 | } | |
4e760a36 | 27416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27417 | return resultobj; |
27418 | fail: | |
27419 | return NULL; | |
27420 | } | |
27421 | ||
27422 | ||
27423 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27424 | PyObject *resultobj; | |
27425 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
27426 | wxString *arg2 = 0 ; | |
27427 | int arg3 ; | |
423f194a | 27428 | bool temp2 = False ; |
d14a1e28 RD |
27429 | PyObject * obj0 = 0 ; |
27430 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27431 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27432 | char *kwnames[] = { |
27433 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
27434 | }; | |
27435 | ||
8edf1c75 | 27436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
27437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
27438 | { | |
27439 | arg2 = wxString_in_helper(obj1); | |
27440 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27441 | temp2 = True; |
d14a1e28 | 27442 | } |
8edf1c75 RD |
27443 | { |
27444 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27445 | if (PyErr_Occurred()) SWIG_fail; | |
27446 | } | |
d14a1e28 RD |
27447 | { |
27448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27449 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
27450 | ||
27451 | wxPyEndAllowThreads(__tstate); | |
27452 | if (PyErr_Occurred()) SWIG_fail; | |
27453 | } | |
27454 | Py_INCREF(Py_None); resultobj = Py_None; | |
27455 | { | |
27456 | if (temp2) | |
27457 | delete arg2; | |
27458 | } | |
27459 | return resultobj; | |
27460 | fail: | |
27461 | { | |
27462 | if (temp2) | |
27463 | delete arg2; | |
27464 | } | |
27465 | return NULL; | |
27466 | } | |
27467 | ||
27468 | ||
27469 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
27470 | PyObject *obj; | |
27471 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27472 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
27473 | Py_INCREF(obj); | |
27474 | return Py_BuildValue((char *)""); | |
27475 | } | |
27476 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27477 | PyObject *resultobj; | |
27478 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 27479 | int arg2 ; |
d14a1e28 RD |
27480 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27481 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27482 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27483 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27484 | long arg5 = (long) 0 ; | |
27485 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
27486 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
27487 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
27488 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27489 | wxPyControl *result; | |
27490 | wxPoint temp3 ; | |
27491 | wxSize temp4 ; | |
423f194a | 27492 | bool temp7 = False ; |
d14a1e28 | 27493 | PyObject * obj0 = 0 ; |
8edf1c75 | 27494 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27495 | PyObject * obj2 = 0 ; |
27496 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27497 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
27498 | PyObject * obj5 = 0 ; |
27499 | PyObject * obj6 = 0 ; | |
27500 | char *kwnames[] = { | |
27501 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
27502 | }; | |
27503 | ||
8edf1c75 | 27504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 27505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27506 | { |
27507 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
27508 | if (PyErr_Occurred()) SWIG_fail; | |
27509 | } | |
d14a1e28 RD |
27510 | if (obj2) { |
27511 | { | |
27512 | arg3 = &temp3; | |
27513 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27514 | } | |
27515 | } | |
27516 | if (obj3) { | |
27517 | { | |
27518 | arg4 = &temp4; | |
27519 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27520 | } | |
27521 | } | |
8edf1c75 RD |
27522 | if (obj4) { |
27523 | { | |
27524 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
27525 | if (PyErr_Occurred()) SWIG_fail; | |
27526 | } | |
27527 | } | |
d14a1e28 RD |
27528 | if (obj5) { |
27529 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27530 | if (arg6 == NULL) { | |
27531 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
27532 | } | |
27533 | } | |
27534 | if (obj6) { | |
27535 | { | |
27536 | arg7 = wxString_in_helper(obj6); | |
27537 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 27538 | temp7 = True; |
d14a1e28 RD |
27539 | } |
27540 | } | |
27541 | { | |
27542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27543 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
27544 | ||
27545 | wxPyEndAllowThreads(__tstate); | |
27546 | if (PyErr_Occurred()) SWIG_fail; | |
27547 | } | |
27548 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControl, 1); | |
27549 | { | |
27550 | if (temp7) | |
27551 | delete arg7; | |
27552 | } | |
27553 | return resultobj; | |
27554 | fail: | |
27555 | { | |
27556 | if (temp7) | |
27557 | delete arg7; | |
27558 | } | |
27559 | return NULL; | |
27560 | } | |
27561 | ||
27562 | ||
27563 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27564 | PyObject *resultobj; | |
27565 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27566 | PyObject *arg2 = (PyObject *) 0 ; | |
27567 | PyObject *arg3 = (PyObject *) 0 ; | |
27568 | PyObject * obj0 = 0 ; | |
27569 | PyObject * obj1 = 0 ; | |
27570 | PyObject * obj2 = 0 ; | |
27571 | char *kwnames[] = { | |
27572 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27573 | }; | |
27574 | ||
27575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27577 | arg2 = obj1; | |
27578 | arg3 = obj2; | |
27579 | { | |
27580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27581 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27582 | ||
27583 | wxPyEndAllowThreads(__tstate); | |
27584 | if (PyErr_Occurred()) SWIG_fail; | |
27585 | } | |
27586 | Py_INCREF(Py_None); resultobj = Py_None; | |
27587 | return resultobj; | |
27588 | fail: | |
27589 | return NULL; | |
27590 | } | |
27591 | ||
27592 | ||
27593 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27594 | PyObject *resultobj; | |
27595 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27596 | int arg2 ; | |
27597 | int arg3 ; | |
27598 | int arg4 ; | |
27599 | int arg5 ; | |
27600 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27601 | PyObject * obj1 = 0 ; |
27602 | PyObject * obj2 = 0 ; | |
27603 | PyObject * obj3 = 0 ; | |
27604 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27605 | char *kwnames[] = { |
27606 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
27607 | }; | |
27608 | ||
8edf1c75 | 27609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27611 | { |
27612 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27613 | if (PyErr_Occurred()) SWIG_fail; | |
27614 | } | |
27615 | { | |
27616 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27617 | if (PyErr_Occurred()) SWIG_fail; | |
27618 | } | |
27619 | { | |
27620 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
27621 | if (PyErr_Occurred()) SWIG_fail; | |
27622 | } | |
27623 | { | |
27624 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
27625 | if (PyErr_Occurred()) SWIG_fail; | |
27626 | } | |
d14a1e28 RD |
27627 | { |
27628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27629 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
27630 | ||
27631 | wxPyEndAllowThreads(__tstate); | |
27632 | if (PyErr_Occurred()) SWIG_fail; | |
27633 | } | |
27634 | Py_INCREF(Py_None); resultobj = Py_None; | |
27635 | return resultobj; | |
27636 | fail: | |
27637 | return NULL; | |
27638 | } | |
27639 | ||
27640 | ||
27641 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27642 | PyObject *resultobj; | |
27643 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27644 | int arg2 ; | |
27645 | int arg3 ; | |
27646 | int arg4 ; | |
27647 | int arg5 ; | |
27648 | int arg6 = (int) wxSIZE_AUTO ; | |
27649 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27650 | PyObject * obj1 = 0 ; |
27651 | PyObject * obj2 = 0 ; | |
27652 | PyObject * obj3 = 0 ; | |
27653 | PyObject * obj4 = 0 ; | |
27654 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
27655 | char *kwnames[] = { |
27656 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
27657 | }; | |
27658 | ||
8edf1c75 | 27659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 27660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27661 | { |
27662 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27663 | if (PyErr_Occurred()) SWIG_fail; | |
27664 | } | |
27665 | { | |
27666 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27667 | if (PyErr_Occurred()) SWIG_fail; | |
27668 | } | |
27669 | { | |
27670 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
27671 | if (PyErr_Occurred()) SWIG_fail; | |
27672 | } | |
27673 | { | |
27674 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
27675 | if (PyErr_Occurred()) SWIG_fail; | |
27676 | } | |
27677 | if (obj5) { | |
27678 | { | |
27679 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
27680 | if (PyErr_Occurred()) SWIG_fail; | |
27681 | } | |
27682 | } | |
d14a1e28 RD |
27683 | { |
27684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27685 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
27686 | ||
27687 | wxPyEndAllowThreads(__tstate); | |
27688 | if (PyErr_Occurred()) SWIG_fail; | |
27689 | } | |
27690 | Py_INCREF(Py_None); resultobj = Py_None; | |
27691 | return resultobj; | |
27692 | fail: | |
27693 | return NULL; | |
27694 | } | |
27695 | ||
27696 | ||
27697 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27698 | PyObject *resultobj; | |
27699 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27700 | int arg2 ; | |
27701 | int arg3 ; | |
27702 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27703 | PyObject * obj1 = 0 ; |
27704 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27705 | char *kwnames[] = { |
27706 | (char *) "self",(char *) "width",(char *) "height", NULL | |
27707 | }; | |
27708 | ||
8edf1c75 | 27709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 27710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27711 | { |
27712 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27713 | if (PyErr_Occurred()) SWIG_fail; | |
27714 | } | |
27715 | { | |
27716 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27717 | if (PyErr_Occurred()) SWIG_fail; | |
27718 | } | |
d14a1e28 RD |
27719 | { |
27720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27721 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
27722 | ||
27723 | wxPyEndAllowThreads(__tstate); | |
27724 | if (PyErr_Occurred()) SWIG_fail; | |
27725 | } | |
27726 | Py_INCREF(Py_None); resultobj = Py_None; | |
27727 | return resultobj; | |
27728 | fail: | |
27729 | return NULL; | |
27730 | } | |
27731 | ||
27732 | ||
27733 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27734 | PyObject *resultobj; | |
27735 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27736 | int arg2 ; | |
27737 | int arg3 ; | |
27738 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27739 | PyObject * obj1 = 0 ; |
27740 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27741 | char *kwnames[] = { |
27742 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27743 | }; | |
27744 | ||
8edf1c75 | 27745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 27746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27747 | { |
27748 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27749 | if (PyErr_Occurred()) SWIG_fail; | |
27750 | } | |
27751 | { | |
27752 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27753 | if (PyErr_Occurred()) SWIG_fail; | |
27754 | } | |
d14a1e28 RD |
27755 | { |
27756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27757 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
27758 | ||
27759 | wxPyEndAllowThreads(__tstate); | |
27760 | if (PyErr_Occurred()) SWIG_fail; | |
27761 | } | |
27762 | Py_INCREF(Py_None); resultobj = Py_None; | |
27763 | return resultobj; | |
27764 | fail: | |
27765 | return NULL; | |
27766 | } | |
27767 | ||
27768 | ||
27769 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27770 | PyObject *resultobj; | |
27771 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27772 | int *arg2 = (int *) 0 ; | |
27773 | int *arg3 = (int *) 0 ; | |
27774 | int temp2 ; | |
27775 | int temp3 ; | |
27776 | PyObject * obj0 = 0 ; | |
27777 | char *kwnames[] = { | |
27778 | (char *) "self", NULL | |
27779 | }; | |
27780 | ||
27781 | arg2 = &temp2; | |
27782 | arg3 = &temp3; | |
27783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
27784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27785 | { | |
27786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27787 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
27788 | ||
27789 | wxPyEndAllowThreads(__tstate); | |
27790 | if (PyErr_Occurred()) SWIG_fail; | |
27791 | } | |
27792 | Py_INCREF(Py_None); resultobj = Py_None; | |
27793 | { | |
27794 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27795 | resultobj = t_output_helper(resultobj,o); | |
27796 | } | |
27797 | { | |
27798 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27799 | resultobj = t_output_helper(resultobj,o); | |
27800 | } | |
27801 | return resultobj; | |
27802 | fail: | |
27803 | return NULL; | |
27804 | } | |
27805 | ||
27806 | ||
27807 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27808 | PyObject *resultobj; | |
27809 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27810 | int *arg2 = (int *) 0 ; | |
27811 | int *arg3 = (int *) 0 ; | |
27812 | int temp2 ; | |
27813 | int temp3 ; | |
27814 | PyObject * obj0 = 0 ; | |
27815 | char *kwnames[] = { | |
27816 | (char *) "self", NULL | |
27817 | }; | |
27818 | ||
27819 | arg2 = &temp2; | |
27820 | arg3 = &temp3; | |
27821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
27822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27823 | { | |
27824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27825 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
27826 | ||
27827 | wxPyEndAllowThreads(__tstate); | |
27828 | if (PyErr_Occurred()) SWIG_fail; | |
27829 | } | |
27830 | Py_INCREF(Py_None); resultobj = Py_None; | |
27831 | { | |
27832 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27833 | resultobj = t_output_helper(resultobj,o); | |
27834 | } | |
27835 | { | |
27836 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27837 | resultobj = t_output_helper(resultobj,o); | |
27838 | } | |
27839 | return resultobj; | |
27840 | fail: | |
27841 | return NULL; | |
27842 | } | |
27843 | ||
27844 | ||
27845 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27846 | PyObject *resultobj; | |
27847 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27848 | int *arg2 = (int *) 0 ; | |
27849 | int *arg3 = (int *) 0 ; | |
27850 | int temp2 ; | |
27851 | int temp3 ; | |
27852 | PyObject * obj0 = 0 ; | |
27853 | char *kwnames[] = { | |
27854 | (char *) "self", NULL | |
27855 | }; | |
27856 | ||
27857 | arg2 = &temp2; | |
27858 | arg3 = &temp3; | |
27859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
27860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27861 | { | |
27862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27863 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
27864 | ||
27865 | wxPyEndAllowThreads(__tstate); | |
27866 | if (PyErr_Occurred()) SWIG_fail; | |
27867 | } | |
27868 | Py_INCREF(Py_None); resultobj = Py_None; | |
27869 | { | |
27870 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27871 | resultobj = t_output_helper(resultobj,o); | |
27872 | } | |
27873 | { | |
27874 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27875 | resultobj = t_output_helper(resultobj,o); | |
27876 | } | |
27877 | return resultobj; | |
27878 | fail: | |
27879 | return NULL; | |
27880 | } | |
27881 | ||
27882 | ||
27883 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27884 | PyObject *resultobj; | |
27885 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27886 | wxSize result; | |
27887 | PyObject * obj0 = 0 ; | |
27888 | char *kwnames[] = { | |
27889 | (char *) "self", NULL | |
27890 | }; | |
27891 | ||
27892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
27893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27894 | { | |
27895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27896 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
27897 | ||
27898 | wxPyEndAllowThreads(__tstate); | |
27899 | if (PyErr_Occurred()) SWIG_fail; | |
27900 | } | |
27901 | { | |
27902 | wxSize * resultptr; | |
27903 | resultptr = new wxSize((wxSize &) result); | |
27904 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27905 | } | |
27906 | return resultobj; | |
27907 | fail: | |
27908 | return NULL; | |
27909 | } | |
27910 | ||
27911 | ||
27912 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27913 | PyObject *resultobj; | |
27914 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27915 | wxSize result; | |
27916 | PyObject * obj0 = 0 ; | |
27917 | char *kwnames[] = { | |
27918 | (char *) "self", NULL | |
27919 | }; | |
27920 | ||
27921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
27922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27923 | { | |
27924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27925 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
27926 | ||
27927 | wxPyEndAllowThreads(__tstate); | |
27928 | if (PyErr_Occurred()) SWIG_fail; | |
27929 | } | |
27930 | { | |
27931 | wxSize * resultptr; | |
27932 | resultptr = new wxSize((wxSize &) result); | |
27933 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27934 | } | |
27935 | return resultobj; | |
27936 | fail: | |
27937 | return NULL; | |
27938 | } | |
27939 | ||
27940 | ||
27941 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27942 | PyObject *resultobj; | |
27943 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27944 | PyObject * obj0 = 0 ; | |
27945 | char *kwnames[] = { | |
27946 | (char *) "self", NULL | |
27947 | }; | |
27948 | ||
27949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
27950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27951 | { | |
27952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27953 | (arg1)->base_InitDialog(); | |
27954 | ||
27955 | wxPyEndAllowThreads(__tstate); | |
27956 | if (PyErr_Occurred()) SWIG_fail; | |
27957 | } | |
27958 | Py_INCREF(Py_None); resultobj = Py_None; | |
27959 | return resultobj; | |
27960 | fail: | |
27961 | return NULL; | |
27962 | } | |
27963 | ||
27964 | ||
27965 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27966 | PyObject *resultobj; | |
27967 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27968 | bool result; | |
27969 | PyObject * obj0 = 0 ; | |
27970 | char *kwnames[] = { | |
27971 | (char *) "self", NULL | |
27972 | }; | |
27973 | ||
27974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
27975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27976 | { | |
27977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27978 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
27979 | ||
27980 | wxPyEndAllowThreads(__tstate); | |
27981 | if (PyErr_Occurred()) SWIG_fail; | |
27982 | } | |
4e760a36 | 27983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27984 | return resultobj; |
27985 | fail: | |
27986 | return NULL; | |
27987 | } | |
27988 | ||
27989 | ||
27990 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27991 | PyObject *resultobj; | |
27992 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27993 | bool result; | |
27994 | PyObject * obj0 = 0 ; | |
27995 | char *kwnames[] = { | |
27996 | (char *) "self", NULL | |
27997 | }; | |
27998 | ||
27999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
28000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28001 | { | |
28002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28003 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
28004 | ||
28005 | wxPyEndAllowThreads(__tstate); | |
28006 | if (PyErr_Occurred()) SWIG_fail; | |
28007 | } | |
4e760a36 | 28008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28009 | return resultobj; |
28010 | fail: | |
28011 | return NULL; | |
28012 | } | |
28013 | ||
28014 | ||
28015 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28016 | PyObject *resultobj; | |
28017 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28018 | bool result; | |
28019 | PyObject * obj0 = 0 ; | |
28020 | char *kwnames[] = { | |
28021 | (char *) "self", NULL | |
28022 | }; | |
28023 | ||
28024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
28025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28026 | { | |
28027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28028 | result = (bool)(arg1)->base_Validate(); | |
28029 | ||
28030 | wxPyEndAllowThreads(__tstate); | |
28031 | if (PyErr_Occurred()) SWIG_fail; | |
28032 | } | |
4e760a36 | 28033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28034 | return resultobj; |
28035 | fail: | |
28036 | return NULL; | |
28037 | } | |
28038 | ||
28039 | ||
28040 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28041 | PyObject *resultobj; | |
28042 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28043 | bool result; | |
28044 | PyObject * obj0 = 0 ; | |
28045 | char *kwnames[] = { | |
28046 | (char *) "self", NULL | |
28047 | }; | |
28048 | ||
28049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
28050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28051 | { | |
28052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28053 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
28054 | ||
28055 | wxPyEndAllowThreads(__tstate); | |
28056 | if (PyErr_Occurred()) SWIG_fail; | |
28057 | } | |
4e760a36 | 28058 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28059 | return resultobj; |
28060 | fail: | |
28061 | return NULL; | |
28062 | } | |
28063 | ||
28064 | ||
28065 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28066 | PyObject *resultobj; | |
28067 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28068 | bool result; | |
28069 | PyObject * obj0 = 0 ; | |
28070 | char *kwnames[] = { | |
28071 | (char *) "self", NULL | |
28072 | }; | |
28073 | ||
28074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
28075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28076 | { | |
28077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28078 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
28079 | ||
28080 | wxPyEndAllowThreads(__tstate); | |
28081 | if (PyErr_Occurred()) SWIG_fail; | |
28082 | } | |
4e760a36 | 28083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28084 | return resultobj; |
28085 | fail: | |
28086 | return NULL; | |
28087 | } | |
28088 | ||
28089 | ||
28090 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28091 | PyObject *resultobj; | |
28092 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28093 | wxSize result; | |
28094 | PyObject * obj0 = 0 ; | |
28095 | char *kwnames[] = { | |
28096 | (char *) "self", NULL | |
28097 | }; | |
28098 | ||
28099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
28100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28101 | { | |
28102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28103 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
28104 | ||
28105 | wxPyEndAllowThreads(__tstate); | |
28106 | if (PyErr_Occurred()) SWIG_fail; | |
28107 | } | |
28108 | { | |
28109 | wxSize * resultptr; | |
28110 | resultptr = new wxSize((wxSize &) result); | |
28111 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
28112 | } | |
28113 | return resultobj; | |
28114 | fail: | |
28115 | return NULL; | |
28116 | } | |
28117 | ||
28118 | ||
28119 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28120 | PyObject *resultobj; | |
28121 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28122 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28123 | PyObject * obj0 = 0 ; | |
28124 | PyObject * obj1 = 0 ; | |
28125 | char *kwnames[] = { | |
28126 | (char *) "self",(char *) "child", NULL | |
28127 | }; | |
28128 | ||
28129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
28130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28131 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28132 | { | |
28133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28134 | (arg1)->base_AddChild(arg2); | |
28135 | ||
28136 | wxPyEndAllowThreads(__tstate); | |
28137 | if (PyErr_Occurred()) SWIG_fail; | |
28138 | } | |
28139 | Py_INCREF(Py_None); resultobj = Py_None; | |
28140 | return resultobj; | |
28141 | fail: | |
28142 | return NULL; | |
28143 | } | |
28144 | ||
28145 | ||
28146 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28147 | PyObject *resultobj; | |
28148 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28149 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28150 | PyObject * obj0 = 0 ; | |
28151 | PyObject * obj1 = 0 ; | |
28152 | char *kwnames[] = { | |
28153 | (char *) "self",(char *) "child", NULL | |
28154 | }; | |
28155 | ||
28156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
28157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28158 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28159 | { | |
28160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28161 | (arg1)->base_RemoveChild(arg2); | |
28162 | ||
28163 | wxPyEndAllowThreads(__tstate); | |
28164 | if (PyErr_Occurred()) SWIG_fail; | |
28165 | } | |
28166 | Py_INCREF(Py_None); resultobj = Py_None; | |
28167 | return resultobj; | |
28168 | fail: | |
28169 | return NULL; | |
28170 | } | |
28171 | ||
28172 | ||
28173 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
28174 | PyObject *obj; | |
28175 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28176 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
28177 | Py_INCREF(obj); | |
28178 | return Py_BuildValue((char *)""); | |
28179 | } | |
28180 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28181 | PyObject *resultobj; | |
28182 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 28183 | int arg2 = (int) 0 ; |
d14a1e28 RD |
28184 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28185 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28186 | wxHelpEvent *result; | |
28187 | wxPoint temp3 ; | |
8edf1c75 RD |
28188 | PyObject * obj0 = 0 ; |
28189 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
28190 | PyObject * obj2 = 0 ; |
28191 | char *kwnames[] = { | |
28192 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
28193 | }; | |
28194 | ||
8edf1c75 RD |
28195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
28196 | if (obj0) { | |
28197 | { | |
28198 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
28199 | if (PyErr_Occurred()) SWIG_fail; | |
28200 | } | |
28201 | } | |
28202 | if (obj1) { | |
28203 | { | |
28204 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28205 | if (PyErr_Occurred()) SWIG_fail; | |
28206 | } | |
28207 | } | |
d14a1e28 RD |
28208 | if (obj2) { |
28209 | { | |
28210 | arg3 = &temp3; | |
28211 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28212 | } | |
28213 | } | |
28214 | { | |
28215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28216 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
28217 | ||
28218 | wxPyEndAllowThreads(__tstate); | |
28219 | if (PyErr_Occurred()) SWIG_fail; | |
28220 | } | |
28221 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpEvent, 1); | |
28222 | return resultobj; | |
28223 | fail: | |
28224 | return NULL; | |
28225 | } | |
28226 | ||
28227 | ||
28228 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28229 | PyObject *resultobj; | |
28230 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28231 | wxPoint *result; | |
28232 | PyObject * obj0 = 0 ; | |
28233 | char *kwnames[] = { | |
28234 | (char *) "self", NULL | |
28235 | }; | |
28236 | ||
28237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
28238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28239 | { | |
28240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28241 | { | |
28242 | wxPoint const &_result_ref = ((wxHelpEvent const *)arg1)->GetPosition(); | |
28243 | result = (wxPoint *) &_result_ref; | |
28244 | } | |
28245 | ||
28246 | wxPyEndAllowThreads(__tstate); | |
28247 | if (PyErr_Occurred()) SWIG_fail; | |
28248 | } | |
28249 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
28250 | return resultobj; | |
28251 | fail: | |
28252 | return NULL; | |
28253 | } | |
28254 | ||
28255 | ||
28256 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28257 | PyObject *resultobj; | |
28258 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28259 | wxPoint *arg2 = 0 ; | |
28260 | wxPoint temp2 ; | |
28261 | PyObject * obj0 = 0 ; | |
28262 | PyObject * obj1 = 0 ; | |
28263 | char *kwnames[] = { | |
28264 | (char *) "self",(char *) "pos", NULL | |
28265 | }; | |
28266 | ||
28267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
28268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28269 | { | |
28270 | arg2 = &temp2; | |
28271 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28272 | } | |
28273 | { | |
28274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28275 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
28276 | ||
28277 | wxPyEndAllowThreads(__tstate); | |
28278 | if (PyErr_Occurred()) SWIG_fail; | |
28279 | } | |
28280 | Py_INCREF(Py_None); resultobj = Py_None; | |
28281 | return resultobj; | |
28282 | fail: | |
28283 | return NULL; | |
28284 | } | |
28285 | ||
28286 | ||
28287 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28288 | PyObject *resultobj; | |
28289 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28290 | wxString *result; | |
28291 | PyObject * obj0 = 0 ; | |
28292 | char *kwnames[] = { | |
28293 | (char *) "self", NULL | |
28294 | }; | |
28295 | ||
28296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
28297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28298 | { | |
28299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28300 | { | |
28301 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
28302 | result = (wxString *) &_result_ref; | |
28303 | } | |
28304 | ||
28305 | wxPyEndAllowThreads(__tstate); | |
28306 | if (PyErr_Occurred()) SWIG_fail; | |
28307 | } | |
f0983263 RD |
28308 | { |
28309 | #if wxUSE_UNICODE | |
28310 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28311 | #else | |
28312 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28313 | #endif | |
28314 | } | |
d14a1e28 RD |
28315 | return resultobj; |
28316 | fail: | |
28317 | return NULL; | |
28318 | } | |
28319 | ||
28320 | ||
28321 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28322 | PyObject *resultobj; | |
28323 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28324 | wxString *arg2 = 0 ; | |
423f194a | 28325 | bool temp2 = False ; |
d14a1e28 RD |
28326 | PyObject * obj0 = 0 ; |
28327 | PyObject * obj1 = 0 ; | |
28328 | char *kwnames[] = { | |
28329 | (char *) "self",(char *) "link", NULL | |
28330 | }; | |
28331 | ||
28332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
28333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28334 | { | |
28335 | arg2 = wxString_in_helper(obj1); | |
28336 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28337 | temp2 = True; |
d14a1e28 RD |
28338 | } |
28339 | { | |
28340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28341 | (arg1)->SetLink((wxString const &)*arg2); | |
28342 | ||
28343 | wxPyEndAllowThreads(__tstate); | |
28344 | if (PyErr_Occurred()) SWIG_fail; | |
28345 | } | |
28346 | Py_INCREF(Py_None); resultobj = Py_None; | |
28347 | { | |
28348 | if (temp2) | |
28349 | delete arg2; | |
28350 | } | |
28351 | return resultobj; | |
28352 | fail: | |
28353 | { | |
28354 | if (temp2) | |
28355 | delete arg2; | |
28356 | } | |
28357 | return NULL; | |
28358 | } | |
28359 | ||
28360 | ||
28361 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28362 | PyObject *resultobj; | |
28363 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28364 | wxString *result; | |
28365 | PyObject * obj0 = 0 ; | |
28366 | char *kwnames[] = { | |
28367 | (char *) "self", NULL | |
28368 | }; | |
28369 | ||
28370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
28371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28372 | { | |
28373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28374 | { | |
28375 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
28376 | result = (wxString *) &_result_ref; | |
28377 | } | |
28378 | ||
28379 | wxPyEndAllowThreads(__tstate); | |
28380 | if (PyErr_Occurred()) SWIG_fail; | |
28381 | } | |
f0983263 RD |
28382 | { |
28383 | #if wxUSE_UNICODE | |
28384 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28385 | #else | |
28386 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28387 | #endif | |
28388 | } | |
d14a1e28 RD |
28389 | return resultobj; |
28390 | fail: | |
28391 | return NULL; | |
28392 | } | |
28393 | ||
28394 | ||
28395 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28396 | PyObject *resultobj; | |
28397 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28398 | wxString *arg2 = 0 ; | |
423f194a | 28399 | bool temp2 = False ; |
d14a1e28 RD |
28400 | PyObject * obj0 = 0 ; |
28401 | PyObject * obj1 = 0 ; | |
28402 | char *kwnames[] = { | |
28403 | (char *) "self",(char *) "target", NULL | |
28404 | }; | |
28405 | ||
28406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
28407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28408 | { | |
28409 | arg2 = wxString_in_helper(obj1); | |
28410 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28411 | temp2 = True; |
d14a1e28 RD |
28412 | } |
28413 | { | |
28414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28415 | (arg1)->SetTarget((wxString const &)*arg2); | |
28416 | ||
28417 | wxPyEndAllowThreads(__tstate); | |
28418 | if (PyErr_Occurred()) SWIG_fail; | |
28419 | } | |
28420 | Py_INCREF(Py_None); resultobj = Py_None; | |
28421 | { | |
28422 | if (temp2) | |
28423 | delete arg2; | |
28424 | } | |
28425 | return resultobj; | |
28426 | fail: | |
28427 | { | |
28428 | if (temp2) | |
28429 | delete arg2; | |
28430 | } | |
28431 | return NULL; | |
28432 | } | |
28433 | ||
28434 | ||
28435 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
28436 | PyObject *obj; | |
28437 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28438 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
28439 | Py_INCREF(obj); | |
28440 | return Py_BuildValue((char *)""); | |
28441 | } | |
28442 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28443 | PyObject *resultobj; | |
28444 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 28445 | bool arg2 = (bool) True ; |
d14a1e28 RD |
28446 | wxContextHelp *result; |
28447 | PyObject * obj0 = 0 ; | |
28448 | PyObject * obj1 = 0 ; | |
28449 | char *kwnames[] = { | |
28450 | (char *) "window",(char *) "doNow", NULL | |
28451 | }; | |
28452 | ||
28453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
28454 | if (obj0) { | |
28455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28456 | } | |
28457 | if (obj1) { | |
83448d71 | 28458 | { |
8edf1c75 | 28459 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
28460 | if (PyErr_Occurred()) SWIG_fail; |
28461 | } | |
d14a1e28 RD |
28462 | } |
28463 | { | |
28464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28465 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
28466 | ||
28467 | wxPyEndAllowThreads(__tstate); | |
28468 | if (PyErr_Occurred()) SWIG_fail; | |
28469 | } | |
28470 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelp, 1); | |
28471 | return resultobj; | |
28472 | fail: | |
28473 | return NULL; | |
28474 | } | |
28475 | ||
28476 | ||
28477 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28478 | PyObject *resultobj; | |
28479 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28480 | PyObject * obj0 = 0 ; | |
28481 | char *kwnames[] = { | |
28482 | (char *) "self", NULL | |
28483 | }; | |
28484 | ||
28485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
28486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28487 | { | |
28488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28489 | delete arg1; | |
28490 | ||
28491 | wxPyEndAllowThreads(__tstate); | |
28492 | if (PyErr_Occurred()) SWIG_fail; | |
28493 | } | |
28494 | Py_INCREF(Py_None); resultobj = Py_None; | |
28495 | return resultobj; | |
28496 | fail: | |
28497 | return NULL; | |
28498 | } | |
28499 | ||
28500 | ||
28501 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28502 | PyObject *resultobj; | |
28503 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28504 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28505 | bool result; | |
28506 | PyObject * obj0 = 0 ; | |
28507 | PyObject * obj1 = 0 ; | |
28508 | char *kwnames[] = { | |
28509 | (char *) "self",(char *) "window", NULL | |
28510 | }; | |
28511 | ||
28512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
28513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28514 | if (obj1) { | |
28515 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28516 | } | |
28517 | { | |
28518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28519 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
28520 | ||
28521 | wxPyEndAllowThreads(__tstate); | |
28522 | if (PyErr_Occurred()) SWIG_fail; | |
28523 | } | |
4e760a36 | 28524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28525 | return resultobj; |
28526 | fail: | |
28527 | return NULL; | |
28528 | } | |
28529 | ||
28530 | ||
28531 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28532 | PyObject *resultobj; | |
28533 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28534 | bool result; | |
28535 | PyObject * obj0 = 0 ; | |
28536 | char *kwnames[] = { | |
28537 | (char *) "self", NULL | |
28538 | }; | |
28539 | ||
28540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
28541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28542 | { | |
28543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28544 | result = (bool)(arg1)->EndContextHelp(); | |
28545 | ||
28546 | wxPyEndAllowThreads(__tstate); | |
28547 | if (PyErr_Occurred()) SWIG_fail; | |
28548 | } | |
4e760a36 | 28549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28550 | return resultobj; |
28551 | fail: | |
28552 | return NULL; | |
28553 | } | |
28554 | ||
28555 | ||
28556 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
28557 | PyObject *obj; | |
28558 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28559 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
28560 | Py_INCREF(obj); | |
28561 | return Py_BuildValue((char *)""); | |
28562 | } | |
28563 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28564 | PyObject *resultobj; | |
28565 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 28566 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
28567 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28568 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28569 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28570 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28571 | long arg5 = (long) wxBU_AUTODRAW ; | |
28572 | wxContextHelpButton *result; | |
28573 | wxPoint temp3 ; | |
28574 | wxSize temp4 ; | |
28575 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28576 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28577 | PyObject * obj2 = 0 ; |
28578 | PyObject * obj3 = 0 ; | |
8edf1c75 | 28579 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28580 | char *kwnames[] = { |
28581 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28582 | }; | |
28583 | ||
8edf1c75 | 28584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 28585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28586 | if (obj1) { |
28587 | { | |
28588 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28589 | if (PyErr_Occurred()) SWIG_fail; | |
28590 | } | |
28591 | } | |
d14a1e28 RD |
28592 | if (obj2) { |
28593 | { | |
28594 | arg3 = &temp3; | |
28595 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28596 | } | |
28597 | } | |
28598 | if (obj3) { | |
28599 | { | |
28600 | arg4 = &temp4; | |
28601 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28602 | } | |
28603 | } | |
8edf1c75 RD |
28604 | if (obj4) { |
28605 | { | |
28606 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
28607 | if (PyErr_Occurred()) SWIG_fail; | |
28608 | } | |
28609 | } | |
d14a1e28 RD |
28610 | { |
28611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28612 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28613 | ||
28614 | wxPyEndAllowThreads(__tstate); | |
28615 | if (PyErr_Occurred()) SWIG_fail; | |
28616 | } | |
28617 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelpButton, 1); | |
28618 | return resultobj; | |
28619 | fail: | |
28620 | return NULL; | |
28621 | } | |
28622 | ||
28623 | ||
28624 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
28625 | PyObject *obj; | |
28626 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28627 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
28628 | Py_INCREF(obj); | |
28629 | return Py_BuildValue((char *)""); | |
28630 | } | |
28631 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28632 | PyObject *resultobj; | |
28633 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28634 | wxHelpProvider *result; | |
28635 | PyObject * obj0 = 0 ; | |
28636 | char *kwnames[] = { | |
28637 | (char *) "helpProvider", NULL | |
28638 | }; | |
28639 | ||
28640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
28641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28642 | { | |
28643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28644 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
28645 | ||
28646 | wxPyEndAllowThreads(__tstate); | |
28647 | if (PyErr_Occurred()) SWIG_fail; | |
28648 | } | |
28649 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
28650 | return resultobj; | |
28651 | fail: | |
28652 | return NULL; | |
28653 | } | |
28654 | ||
28655 | ||
28656 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28657 | PyObject *resultobj; | |
28658 | wxHelpProvider *result; | |
28659 | char *kwnames[] = { | |
28660 | NULL | |
28661 | }; | |
28662 | ||
28663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
28664 | { | |
28665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28666 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
28667 | ||
28668 | wxPyEndAllowThreads(__tstate); | |
28669 | if (PyErr_Occurred()) SWIG_fail; | |
28670 | } | |
28671 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
28672 | return resultobj; | |
28673 | fail: | |
28674 | return NULL; | |
28675 | } | |
28676 | ||
28677 | ||
28678 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28679 | PyObject *resultobj; | |
28680 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28681 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28682 | wxString result; | |
28683 | PyObject * obj0 = 0 ; | |
28684 | PyObject * obj1 = 0 ; | |
28685 | char *kwnames[] = { | |
28686 | (char *) "self",(char *) "window", NULL | |
28687 | }; | |
28688 | ||
28689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
28690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28691 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28692 | { | |
28693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28694 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
28695 | ||
28696 | wxPyEndAllowThreads(__tstate); | |
28697 | if (PyErr_Occurred()) SWIG_fail; | |
28698 | } | |
28699 | { | |
28700 | #if wxUSE_UNICODE | |
28701 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28702 | #else | |
28703 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28704 | #endif | |
28705 | } | |
28706 | return resultobj; | |
28707 | fail: | |
28708 | return NULL; | |
28709 | } | |
28710 | ||
28711 | ||
28712 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28713 | PyObject *resultobj; | |
28714 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28715 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28716 | bool result; | |
28717 | PyObject * obj0 = 0 ; | |
28718 | PyObject * obj1 = 0 ; | |
28719 | char *kwnames[] = { | |
28720 | (char *) "self",(char *) "window", NULL | |
28721 | }; | |
28722 | ||
28723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
28724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28725 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28726 | { | |
28727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28728 | result = (bool)(arg1)->ShowHelp(arg2); | |
28729 | ||
28730 | wxPyEndAllowThreads(__tstate); | |
28731 | if (PyErr_Occurred()) SWIG_fail; | |
28732 | } | |
4e760a36 | 28733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28734 | return resultobj; |
28735 | fail: | |
28736 | return NULL; | |
28737 | } | |
28738 | ||
28739 | ||
28740 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28741 | PyObject *resultobj; | |
28742 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28743 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28744 | wxString *arg3 = 0 ; | |
423f194a | 28745 | bool temp3 = False ; |
d14a1e28 RD |
28746 | PyObject * obj0 = 0 ; |
28747 | PyObject * obj1 = 0 ; | |
28748 | PyObject * obj2 = 0 ; | |
28749 | char *kwnames[] = { | |
28750 | (char *) "self",(char *) "window",(char *) "text", NULL | |
28751 | }; | |
28752 | ||
28753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28755 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28756 | { | |
28757 | arg3 = wxString_in_helper(obj2); | |
28758 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28759 | temp3 = True; |
d14a1e28 RD |
28760 | } |
28761 | { | |
28762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28763 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28764 | ||
28765 | wxPyEndAllowThreads(__tstate); | |
28766 | if (PyErr_Occurred()) SWIG_fail; | |
28767 | } | |
28768 | Py_INCREF(Py_None); resultobj = Py_None; | |
28769 | { | |
28770 | if (temp3) | |
28771 | delete arg3; | |
28772 | } | |
28773 | return resultobj; | |
28774 | fail: | |
28775 | { | |
28776 | if (temp3) | |
28777 | delete arg3; | |
28778 | } | |
28779 | return NULL; | |
28780 | } | |
28781 | ||
28782 | ||
28783 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28784 | PyObject *resultobj; | |
28785 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
423f194a | 28786 | int arg2 ; |
d14a1e28 | 28787 | wxString *arg3 = 0 ; |
423f194a | 28788 | bool temp3 = False ; |
d14a1e28 | 28789 | PyObject * obj0 = 0 ; |
8edf1c75 | 28790 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28791 | PyObject * obj2 = 0 ; |
28792 | char *kwnames[] = { | |
28793 | (char *) "self",(char *) "id",(char *) "text", NULL | |
28794 | }; | |
28795 | ||
8edf1c75 | 28796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28798 | { |
28799 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28800 | if (PyErr_Occurred()) SWIG_fail; | |
28801 | } | |
d14a1e28 RD |
28802 | { |
28803 | arg3 = wxString_in_helper(obj2); | |
28804 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28805 | temp3 = True; |
d14a1e28 RD |
28806 | } |
28807 | { | |
28808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28809 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28810 | ||
28811 | wxPyEndAllowThreads(__tstate); | |
28812 | if (PyErr_Occurred()) SWIG_fail; | |
28813 | } | |
28814 | Py_INCREF(Py_None); resultobj = Py_None; | |
28815 | { | |
28816 | if (temp3) | |
28817 | delete arg3; | |
28818 | } | |
28819 | return resultobj; | |
28820 | fail: | |
28821 | { | |
28822 | if (temp3) | |
28823 | delete arg3; | |
28824 | } | |
28825 | return NULL; | |
28826 | } | |
28827 | ||
28828 | ||
28829 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28830 | PyObject *resultobj; | |
28831 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28832 | PyObject * obj0 = 0 ; | |
28833 | char *kwnames[] = { | |
28834 | (char *) "self", NULL | |
28835 | }; | |
28836 | ||
28837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
28838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28839 | { | |
28840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28841 | wxHelpProvider_Destroy(arg1); | |
28842 | ||
28843 | wxPyEndAllowThreads(__tstate); | |
28844 | if (PyErr_Occurred()) SWIG_fail; | |
28845 | } | |
28846 | Py_INCREF(Py_None); resultobj = Py_None; | |
28847 | return resultobj; | |
28848 | fail: | |
28849 | return NULL; | |
28850 | } | |
28851 | ||
28852 | ||
28853 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
28854 | PyObject *obj; | |
28855 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28856 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
28857 | Py_INCREF(obj); | |
28858 | return Py_BuildValue((char *)""); | |
28859 | } | |
28860 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28861 | PyObject *resultobj; | |
28862 | wxSimpleHelpProvider *result; | |
28863 | char *kwnames[] = { | |
28864 | NULL | |
28865 | }; | |
28866 | ||
28867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
28868 | { | |
28869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28870 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
28871 | ||
28872 | wxPyEndAllowThreads(__tstate); | |
28873 | if (PyErr_Occurred()) SWIG_fail; | |
28874 | } | |
28875 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
28876 | return resultobj; | |
28877 | fail: | |
28878 | return NULL; | |
28879 | } | |
28880 | ||
28881 | ||
28882 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
28883 | PyObject *obj; | |
28884 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28885 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
28886 | Py_INCREF(obj); | |
28887 | return Py_BuildValue((char *)""); | |
28888 | } | |
423f194a RD |
28889 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
28890 | PyObject *resultobj; | |
28891 | wxBitmap *arg1 = 0 ; | |
28892 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28893 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28894 | wxGenericDragImage *result; | |
28895 | PyObject * obj0 = 0 ; | |
28896 | PyObject * obj1 = 0 ; | |
28897 | char *kwnames[] = { | |
28898 | (char *) "image",(char *) "cursor", NULL | |
28899 | }; | |
28900 | ||
28901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
28902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28903 | if (arg1 == NULL) { | |
28904 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28905 | } | |
28906 | if (obj1) { | |
28907 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28908 | if (arg2 == NULL) { | |
28909 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28910 | } | |
28911 | } | |
28912 | { | |
28913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28914 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
28915 | ||
28916 | wxPyEndAllowThreads(__tstate); | |
28917 | if (PyErr_Occurred()) SWIG_fail; | |
28918 | } | |
28919 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28920 | return resultobj; | |
28921 | fail: | |
28922 | return NULL; | |
28923 | } | |
28924 | ||
28925 | ||
28926 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28927 | PyObject *resultobj; | |
28928 | wxIcon *arg1 = 0 ; | |
28929 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28930 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28931 | wxGenericDragImage *result; | |
28932 | PyObject * obj0 = 0 ; | |
28933 | PyObject * obj1 = 0 ; | |
28934 | char *kwnames[] = { | |
28935 | (char *) "image",(char *) "cursor", NULL | |
28936 | }; | |
28937 | ||
28938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
28939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28940 | if (arg1 == NULL) { | |
28941 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28942 | } | |
28943 | if (obj1) { | |
28944 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28945 | if (arg2 == NULL) { | |
28946 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28947 | } | |
28948 | } | |
28949 | { | |
28950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28951 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
28952 | ||
28953 | wxPyEndAllowThreads(__tstate); | |
28954 | if (PyErr_Occurred()) SWIG_fail; | |
28955 | } | |
28956 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28957 | return resultobj; | |
28958 | fail: | |
28959 | return NULL; | |
28960 | } | |
28961 | ||
28962 | ||
28963 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28964 | PyObject *resultobj; | |
28965 | wxString *arg1 = 0 ; | |
28966 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28967 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28968 | wxGenericDragImage *result; | |
28969 | bool temp1 = False ; | |
28970 | PyObject * obj0 = 0 ; | |
28971 | PyObject * obj1 = 0 ; | |
28972 | char *kwnames[] = { | |
28973 | (char *) "str",(char *) "cursor", NULL | |
28974 | }; | |
28975 | ||
28976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
28977 | { | |
28978 | arg1 = wxString_in_helper(obj0); | |
28979 | if (arg1 == NULL) SWIG_fail; | |
28980 | temp1 = True; | |
28981 | } | |
28982 | if (obj1) { | |
28983 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28984 | if (arg2 == NULL) { | |
28985 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28986 | } | |
28987 | } | |
28988 | { | |
28989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28990 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
28991 | ||
28992 | wxPyEndAllowThreads(__tstate); | |
28993 | if (PyErr_Occurred()) SWIG_fail; | |
28994 | } | |
28995 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28996 | { | |
28997 | if (temp1) | |
28998 | delete arg1; | |
28999 | } | |
29000 | return resultobj; | |
29001 | fail: | |
29002 | { | |
29003 | if (temp1) | |
29004 | delete arg1; | |
29005 | } | |
29006 | return NULL; | |
29007 | } | |
29008 | ||
29009 | ||
29010 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29011 | PyObject *resultobj; | |
29012 | wxPyTreeCtrl *arg1 = 0 ; | |
29013 | wxTreeItemId *arg2 = 0 ; | |
29014 | wxGenericDragImage *result; | |
29015 | PyObject * obj0 = 0 ; | |
29016 | PyObject * obj1 = 0 ; | |
29017 | char *kwnames[] = { | |
29018 | (char *) "treeCtrl",(char *) "id", NULL | |
29019 | }; | |
29020 | ||
29021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
29022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29023 | if (arg1 == NULL) { | |
29024 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29025 | } | |
29026 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29027 | if (arg2 == NULL) { | |
29028 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29029 | } | |
29030 | { | |
29031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29032 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
29033 | ||
29034 | wxPyEndAllowThreads(__tstate); | |
29035 | if (PyErr_Occurred()) SWIG_fail; | |
29036 | } | |
29037 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
29038 | return resultobj; | |
29039 | fail: | |
29040 | return NULL; | |
29041 | } | |
29042 | ||
29043 | ||
29044 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29045 | PyObject *resultobj; | |
29046 | wxPyListCtrl *arg1 = 0 ; | |
29047 | long arg2 ; | |
29048 | wxGenericDragImage *result; | |
29049 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29050 | PyObject * obj1 = 0 ; |
423f194a RD |
29051 | char *kwnames[] = { |
29052 | (char *) "listCtrl",(char *) "id", NULL | |
29053 | }; | |
29054 | ||
8edf1c75 | 29055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
423f194a RD |
29056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
29057 | if (arg1 == NULL) { | |
29058 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29059 | } | |
8edf1c75 RD |
29060 | { |
29061 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
29062 | if (PyErr_Occurred()) SWIG_fail; | |
29063 | } | |
423f194a RD |
29064 | { |
29065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29066 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
29067 | ||
29068 | wxPyEndAllowThreads(__tstate); | |
29069 | if (PyErr_Occurred()) SWIG_fail; | |
29070 | } | |
29071 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
29072 | return resultobj; | |
29073 | fail: | |
29074 | return NULL; | |
29075 | } | |
29076 | ||
29077 | ||
29078 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29079 | PyObject *resultobj; | |
29080 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29081 | PyObject * obj0 = 0 ; | |
29082 | char *kwnames[] = { | |
29083 | (char *) "self", NULL | |
29084 | }; | |
29085 | ||
29086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
29087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29088 | { | |
29089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29090 | delete arg1; | |
29091 | ||
29092 | wxPyEndAllowThreads(__tstate); | |
29093 | if (PyErr_Occurred()) SWIG_fail; | |
29094 | } | |
29095 | Py_INCREF(Py_None); resultobj = Py_None; | |
29096 | return resultobj; | |
29097 | fail: | |
29098 | return NULL; | |
29099 | } | |
29100 | ||
29101 | ||
29102 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29103 | PyObject *resultobj; | |
29104 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29105 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
29106 | PyObject * obj0 = 0 ; | |
29107 | PyObject * obj1 = 0 ; | |
29108 | char *kwnames[] = { | |
29109 | (char *) "self",(char *) "bitmap", NULL | |
29110 | }; | |
29111 | ||
29112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
29113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29114 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29115 | { | |
29116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29117 | (arg1)->SetBackingBitmap(arg2); | |
29118 | ||
29119 | wxPyEndAllowThreads(__tstate); | |
29120 | if (PyErr_Occurred()) SWIG_fail; | |
29121 | } | |
29122 | Py_INCREF(Py_None); resultobj = Py_None; | |
29123 | return resultobj; | |
29124 | fail: | |
29125 | return NULL; | |
29126 | } | |
29127 | ||
29128 | ||
29129 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29130 | PyObject *resultobj; | |
29131 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29132 | wxPoint *arg2 = 0 ; | |
29133 | wxWindow *arg3 = (wxWindow *) 0 ; | |
29134 | bool arg4 = (bool) False ; | |
29135 | wxRect *arg5 = (wxRect *) NULL ; | |
29136 | bool result; | |
29137 | wxPoint temp2 ; | |
29138 | PyObject * obj0 = 0 ; | |
29139 | PyObject * obj1 = 0 ; | |
29140 | PyObject * obj2 = 0 ; | |
29141 | PyObject * obj3 = 0 ; | |
29142 | PyObject * obj4 = 0 ; | |
29143 | char *kwnames[] = { | |
29144 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
29145 | }; | |
29146 | ||
29147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29149 | { | |
29150 | arg2 = &temp2; | |
29151 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29152 | } | |
29153 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29154 | if (obj3) { | |
83448d71 | 29155 | { |
8edf1c75 | 29156 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
29157 | if (PyErr_Occurred()) SWIG_fail; |
29158 | } | |
423f194a RD |
29159 | } |
29160 | if (obj4) { | |
29161 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29162 | } | |
29163 | { | |
29164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29165 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
29166 | ||
29167 | wxPyEndAllowThreads(__tstate); | |
29168 | if (PyErr_Occurred()) SWIG_fail; | |
29169 | } | |
4e760a36 | 29170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29171 | return resultobj; |
29172 | fail: | |
29173 | return NULL; | |
29174 | } | |
29175 | ||
29176 | ||
29177 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29178 | PyObject *resultobj; | |
29179 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29180 | wxPoint *arg2 = 0 ; | |
29181 | wxWindow *arg3 = (wxWindow *) 0 ; | |
29182 | wxWindow *arg4 = (wxWindow *) 0 ; | |
29183 | bool result; | |
29184 | wxPoint temp2 ; | |
29185 | PyObject * obj0 = 0 ; | |
29186 | PyObject * obj1 = 0 ; | |
29187 | PyObject * obj2 = 0 ; | |
29188 | PyObject * obj3 = 0 ; | |
29189 | char *kwnames[] = { | |
29190 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
29191 | }; | |
29192 | ||
29193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29195 | { | |
29196 | arg2 = &temp2; | |
29197 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29198 | } | |
29199 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29200 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29201 | { | |
29202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29203 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
29204 | ||
29205 | wxPyEndAllowThreads(__tstate); | |
29206 | if (PyErr_Occurred()) SWIG_fail; | |
29207 | } | |
4e760a36 | 29208 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29209 | return resultobj; |
29210 | fail: | |
29211 | return NULL; | |
29212 | } | |
29213 | ||
29214 | ||
29215 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29216 | PyObject *resultobj; | |
29217 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29218 | bool result; | |
29219 | PyObject * obj0 = 0 ; | |
29220 | char *kwnames[] = { | |
29221 | (char *) "self", NULL | |
29222 | }; | |
29223 | ||
29224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
29225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29226 | { | |
29227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29228 | result = (bool)(arg1)->EndDrag(); | |
29229 | ||
29230 | wxPyEndAllowThreads(__tstate); | |
29231 | if (PyErr_Occurred()) SWIG_fail; | |
29232 | } | |
4e760a36 | 29233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29234 | return resultobj; |
29235 | fail: | |
29236 | return NULL; | |
29237 | } | |
29238 | ||
29239 | ||
29240 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29241 | PyObject *resultobj; | |
29242 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29243 | wxPoint *arg2 = 0 ; | |
29244 | bool result; | |
29245 | wxPoint temp2 ; | |
29246 | PyObject * obj0 = 0 ; | |
29247 | PyObject * obj1 = 0 ; | |
29248 | char *kwnames[] = { | |
29249 | (char *) "self",(char *) "pt", NULL | |
29250 | }; | |
29251 | ||
29252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
29253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29254 | { | |
29255 | arg2 = &temp2; | |
29256 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29257 | } | |
29258 | { | |
29259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29260 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
29261 | ||
29262 | wxPyEndAllowThreads(__tstate); | |
29263 | if (PyErr_Occurred()) SWIG_fail; | |
29264 | } | |
4e760a36 | 29265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29266 | return resultobj; |
29267 | fail: | |
29268 | return NULL; | |
29269 | } | |
29270 | ||
29271 | ||
29272 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29273 | PyObject *resultobj; | |
29274 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29275 | bool result; | |
29276 | PyObject * obj0 = 0 ; | |
29277 | char *kwnames[] = { | |
29278 | (char *) "self", NULL | |
29279 | }; | |
29280 | ||
29281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
29282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29283 | { | |
29284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29285 | result = (bool)(arg1)->Show(); | |
29286 | ||
29287 | wxPyEndAllowThreads(__tstate); | |
29288 | if (PyErr_Occurred()) SWIG_fail; | |
29289 | } | |
4e760a36 | 29290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29291 | return resultobj; |
29292 | fail: | |
29293 | return NULL; | |
29294 | } | |
29295 | ||
29296 | ||
29297 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29298 | PyObject *resultobj; | |
29299 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29300 | bool result; | |
29301 | PyObject * obj0 = 0 ; | |
29302 | char *kwnames[] = { | |
29303 | (char *) "self", NULL | |
29304 | }; | |
29305 | ||
29306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
29307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29308 | { | |
29309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29310 | result = (bool)(arg1)->Hide(); | |
29311 | ||
29312 | wxPyEndAllowThreads(__tstate); | |
29313 | if (PyErr_Occurred()) SWIG_fail; | |
29314 | } | |
4e760a36 | 29315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29316 | return resultobj; |
29317 | fail: | |
29318 | return NULL; | |
29319 | } | |
29320 | ||
29321 | ||
29322 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29323 | PyObject *resultobj; | |
29324 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29325 | wxPoint *arg2 = 0 ; | |
29326 | wxRect result; | |
29327 | wxPoint temp2 ; | |
29328 | PyObject * obj0 = 0 ; | |
29329 | PyObject * obj1 = 0 ; | |
29330 | char *kwnames[] = { | |
29331 | (char *) "self",(char *) "pos", NULL | |
29332 | }; | |
29333 | ||
29334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
29335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29336 | { | |
29337 | arg2 = &temp2; | |
29338 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29339 | } | |
29340 | { | |
29341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29342 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
29343 | ||
29344 | wxPyEndAllowThreads(__tstate); | |
29345 | if (PyErr_Occurred()) SWIG_fail; | |
29346 | } | |
29347 | { | |
29348 | wxRect * resultptr; | |
29349 | resultptr = new wxRect((wxRect &) result); | |
29350 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
29351 | } | |
29352 | return resultobj; | |
29353 | fail: | |
29354 | return NULL; | |
29355 | } | |
29356 | ||
29357 | ||
29358 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29359 | PyObject *resultobj; | |
29360 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29361 | wxDC *arg2 = 0 ; | |
29362 | wxPoint *arg3 = 0 ; | |
29363 | bool result; | |
29364 | wxPoint temp3 ; | |
29365 | PyObject * obj0 = 0 ; | |
29366 | PyObject * obj1 = 0 ; | |
29367 | PyObject * obj2 = 0 ; | |
29368 | char *kwnames[] = { | |
29369 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
29370 | }; | |
29371 | ||
29372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29374 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29375 | if (arg2 == NULL) { | |
29376 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29377 | } | |
29378 | { | |
29379 | arg3 = &temp3; | |
29380 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29381 | } | |
29382 | { | |
29383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29384 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
29385 | ||
29386 | wxPyEndAllowThreads(__tstate); | |
29387 | if (PyErr_Occurred()) SWIG_fail; | |
29388 | } | |
4e760a36 | 29389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29390 | return resultobj; |
29391 | fail: | |
29392 | return NULL; | |
29393 | } | |
29394 | ||
29395 | ||
29396 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29397 | PyObject *resultobj; | |
29398 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29399 | wxDC *arg2 = 0 ; | |
29400 | wxMemoryDC *arg3 = 0 ; | |
29401 | wxRect *arg4 = 0 ; | |
29402 | wxRect *arg5 = 0 ; | |
29403 | bool result; | |
29404 | wxRect temp4 ; | |
29405 | wxRect temp5 ; | |
29406 | PyObject * obj0 = 0 ; | |
29407 | PyObject * obj1 = 0 ; | |
29408 | PyObject * obj2 = 0 ; | |
29409 | PyObject * obj3 = 0 ; | |
29410 | PyObject * obj4 = 0 ; | |
29411 | char *kwnames[] = { | |
29412 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
29413 | }; | |
29414 | ||
29415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29417 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29418 | if (arg2 == NULL) { | |
29419 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29420 | } | |
29421 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29422 | if (arg3 == NULL) { | |
29423 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29424 | } | |
29425 | { | |
29426 | arg4 = &temp4; | |
29427 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
29428 | } | |
29429 | { | |
29430 | arg5 = &temp5; | |
29431 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
29432 | } | |
29433 | { | |
29434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29435 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
29436 | ||
29437 | wxPyEndAllowThreads(__tstate); | |
29438 | if (PyErr_Occurred()) SWIG_fail; | |
29439 | } | |
4e760a36 | 29440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29441 | return resultobj; |
29442 | fail: | |
29443 | return NULL; | |
29444 | } | |
29445 | ||
29446 | ||
29447 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29448 | PyObject *resultobj; | |
29449 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29450 | wxPoint *arg2 = 0 ; | |
29451 | wxPoint *arg3 = 0 ; | |
29452 | bool arg4 ; | |
29453 | bool arg5 ; | |
29454 | bool result; | |
29455 | wxPoint temp2 ; | |
29456 | wxPoint temp3 ; | |
29457 | PyObject * obj0 = 0 ; | |
29458 | PyObject * obj1 = 0 ; | |
29459 | PyObject * obj2 = 0 ; | |
29460 | PyObject * obj3 = 0 ; | |
29461 | PyObject * obj4 = 0 ; | |
29462 | char *kwnames[] = { | |
29463 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
29464 | }; | |
29465 | ||
29466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29468 | { | |
29469 | arg2 = &temp2; | |
29470 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29471 | } | |
29472 | { | |
29473 | arg3 = &temp3; | |
29474 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29475 | } | |
83448d71 | 29476 | { |
8edf1c75 | 29477 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
29478 | if (PyErr_Occurred()) SWIG_fail; |
29479 | } | |
29480 | { | |
8edf1c75 | 29481 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
83448d71 RD |
29482 | if (PyErr_Occurred()) SWIG_fail; |
29483 | } | |
423f194a RD |
29484 | { |
29485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29486 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
29487 | ||
29488 | wxPyEndAllowThreads(__tstate); | |
29489 | if (PyErr_Occurred()) SWIG_fail; | |
29490 | } | |
4e760a36 | 29491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29492 | return resultobj; |
29493 | fail: | |
29494 | return NULL; | |
29495 | } | |
29496 | ||
29497 | ||
29498 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
29499 | PyObject *obj; | |
29500 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29501 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
29502 | Py_INCREF(obj); | |
29503 | return Py_BuildValue((char *)""); | |
29504 | } | |
29505 | static PyMethodDef SwigMethods[] = { | |
29506 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
29507 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
29508 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
29509 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
29510 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, |
29511 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
29512 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
29513 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
29514 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29515 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
29516 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
29517 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
29518 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
29519 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
29520 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
29521 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
29522 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
29523 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29524 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
29525 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
29526 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
29527 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
29528 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
29529 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29530 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29531 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
29532 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29533 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
29534 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
29535 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
29536 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
29537 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
29538 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
29539 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
29540 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
29541 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
29542 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29543 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
29544 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
29545 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
29546 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
29547 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29548 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29549 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29550 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
29551 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
29552 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
29553 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29554 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29555 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
29556 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
8a0b029b | 29557 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
29558 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
29559 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
29560 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
29561 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
29562 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
29563 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
29564 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
29565 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
29566 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29567 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29568 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29569 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29570 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29571 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
29572 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
29573 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
29574 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
29575 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
29576 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
29577 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
29578 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29579 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
29580 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
29581 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
29582 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
29583 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29584 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
29585 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
29586 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
29587 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
29588 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
29589 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
29590 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29591 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29592 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
29593 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29594 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29595 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
29596 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
29597 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
29598 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
29599 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29600 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
29601 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
29602 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
29603 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29604 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29605 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
29606 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
29607 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
29608 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29609 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
29610 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
29611 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
29612 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29613 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29614 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
0ffb2aa6 RD |
29615 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
29616 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29617 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
29618 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, |
29619 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
29620 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
29621 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29622 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
29623 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
29624 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
29625 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29626 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
29627 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
29628 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
8edf1c75 | 29629 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
29630 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, |
29631 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29632 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29633 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29634 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29635 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
29636 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29637 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29638 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
29639 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29640 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29641 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
29642 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29643 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
29644 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29645 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29646 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
29647 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29648 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29649 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29650 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29651 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
29652 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29653 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29654 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
29655 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
29656 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
29657 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
29658 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29659 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29660 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29661 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29662 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29663 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29664 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
29665 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
29666 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
29667 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
29668 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
29669 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
29670 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
29671 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29672 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29673 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
29674 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
29675 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
29676 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
29677 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
29678 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
29679 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
29680 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
29681 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
29682 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
29683 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
29684 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29685 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29686 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
29687 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
29688 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
29689 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
29690 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
4e760a36 | 29691 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
423f194a | 29692 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29693 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, |
29694 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
29695 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
29696 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
29697 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
29698 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
29699 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
29700 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
29701 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
29702 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29703 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
29704 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29705 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
29706 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29707 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
29708 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
29709 | { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
29710 | { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
29711 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
29712 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
29713 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
29714 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
29715 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
29716 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
29717 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
29718 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
29719 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
29720 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
29721 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
29722 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
29723 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
29724 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29725 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29726 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29727 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
29728 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
29729 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
29730 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
29731 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
29732 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29733 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29734 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29735 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29736 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29737 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
29738 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
29739 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29740 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29741 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
29742 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29743 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29744 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29745 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29746 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29747 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
29748 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29749 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29750 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29751 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29752 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
eb9b6107 RD |
29753 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
29754 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29755 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29756 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
29757 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
29758 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
29759 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29760 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29761 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29762 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29763 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29764 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
29765 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
29766 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
29767 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
29768 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
29769 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
29770 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
29771 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29772 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
29773 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
29774 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29775 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29776 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29777 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29778 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29779 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
29780 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
29781 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
29782 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
29783 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29784 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29785 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29786 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29787 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29788 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
29789 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
29790 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29791 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29792 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29793 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29794 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29795 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29796 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29797 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29798 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
29799 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
29800 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
29801 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
29802 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
29803 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29804 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
29805 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29806 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29807 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29808 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29809 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29810 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29811 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
29812 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
29813 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
29814 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29815 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29816 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29817 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29818 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29819 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29820 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29821 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29822 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29823 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29824 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
29825 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
29826 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
29827 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
29828 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
29829 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29830 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
29831 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
29832 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
29833 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29834 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29835 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29836 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29837 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
29838 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
29839 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29840 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29841 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29842 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
29843 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
29844 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29845 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29846 | { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
29847 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
29848 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29849 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
29850 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
29851 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
29852 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29853 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29854 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
29855 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29856 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
29857 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
29858 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29859 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29860 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
29861 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
29862 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
29863 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29864 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29865 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29866 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
29867 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29868 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
29869 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29870 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
29871 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
29872 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29873 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29874 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
29875 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
29876 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
29877 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
29878 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29879 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29880 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29881 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29882 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29883 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29884 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
29885 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
29886 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
29887 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29888 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29889 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29890 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29891 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29892 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
29893 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
29894 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
29895 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
29896 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
29897 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
29898 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
d03fd34d RD |
29899 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
29900 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
29901 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
29902 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
29903 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
29904 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29905 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29906 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
29907 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
29908 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
29909 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
29910 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
29911 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
29912 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
29913 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
29914 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
29915 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
29916 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
29917 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
29918 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
29919 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29920 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29921 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29922 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29923 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
29924 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29925 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
29926 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
29927 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
29928 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29929 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
29930 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
29931 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
29932 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
29933 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
29934 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
29935 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
29936 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
29937 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
29938 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
d03fd34d | 29939 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29940 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
29941 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
29942 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29943 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29944 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
29945 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
29946 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
29947 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
29948 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29949 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29950 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29951 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29952 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29953 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
29954 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29955 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29956 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29957 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
29958 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
29959 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
29960 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
29961 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
29962 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29963 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
29964 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
29965 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29966 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
29967 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
29968 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
29969 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
29970 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
29971 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
29972 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
29973 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29974 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29975 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29976 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
29977 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29978 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29979 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
29980 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
29981 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
29982 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29983 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
29984 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
29985 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29986 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29987 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29988 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29989 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29990 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
29991 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
29992 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
29993 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
29994 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
29995 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
29996 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
29997 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
29998 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
29999 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
30000 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
30001 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
30002 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
30003 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
30004 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
30005 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
30006 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
30007 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
30008 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
30009 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
30010 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
30011 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
30012 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
30013 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
30014 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
30015 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
30016 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
30017 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
30018 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
30019 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
30020 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
30021 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
30022 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
30023 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
30024 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
30025 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30026 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30027 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30028 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
30029 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
30030 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30031 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
30032 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30033 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
30034 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
30035 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
30036 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
30037 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
30038 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30039 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30040 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30041 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30042 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30043 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30044 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30045 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30046 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
30047 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
30048 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
30049 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
30050 | { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
30051 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30052 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
30053 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30054 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
30055 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
30056 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30057 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30058 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30059 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30060 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30061 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
30062 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
30063 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
30064 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30065 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
30066 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30067 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30068 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30069 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30070 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
30071 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
30072 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
30073 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
30074 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30075 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30076 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
30077 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
30078 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
30079 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
30080 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
30081 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
30082 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
30083 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
30084 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
30085 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
30086 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30087 | { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30088 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30089 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
30090 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
30091 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
30092 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30093 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
30094 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30095 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
30096 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30097 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
30098 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
30099 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30100 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
30101 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30102 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30103 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30104 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30105 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
30106 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
30107 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
30108 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
30109 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
30110 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
30111 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
30112 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
30113 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
30114 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
30115 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
30116 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30117 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
30118 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
30119 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
30120 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
30121 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
30122 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
30123 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
30124 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
30125 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
30126 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
30127 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
30128 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
30129 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30130 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
30131 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30132 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
30133 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30134 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
30135 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
30136 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30137 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
30138 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
30139 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
30140 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30141 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30142 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
30143 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
30144 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
30145 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30146 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30147 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
30148 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 30149 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30150 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
30151 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30152 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30153 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30154 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30155 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
30156 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
30157 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
30158 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30159 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30160 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30161 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30162 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30163 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30164 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
30165 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30166 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30167 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30168 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30169 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
30170 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30171 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30172 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
30173 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30174 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30175 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30176 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
30177 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
30178 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
30179 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, | |
30180 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30181 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30182 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
30183 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
30184 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
30185 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
30186 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30187 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
30188 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
30189 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
30190 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30191 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
30192 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
30193 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
30194 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
30195 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
30196 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
30197 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
30198 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
30199 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
30200 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
30201 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
30202 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
30203 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
30204 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
30205 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
30206 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
30207 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
30208 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
30209 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
30210 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
30211 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
30212 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
30213 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 30214 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30215 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, |
30216 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 30217 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30218 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, |
30219 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
30220 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30221 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
30222 | { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30223 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
30224 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30225 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
30226 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
30227 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30228 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30229 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30230 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
30231 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
30232 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
30233 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
30234 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
30235 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
30236 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
30237 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
30238 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
30239 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
30240 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
30241 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
30242 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
30243 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30244 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30245 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
30246 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
30247 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
30248 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
30249 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30250 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30251 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30252 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
30253 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
30254 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
30255 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30256 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
30257 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
30258 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
30259 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
30260 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
30261 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
30262 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30263 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
30264 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
30265 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
30266 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
30267 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
30268 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
30269 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
30270 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
30271 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
30272 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
30273 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
30274 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
30275 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
30276 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30277 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30278 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
30279 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
30280 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
30281 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
30282 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
30283 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30284 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30285 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30286 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30287 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
30288 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
30289 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
30290 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
30291 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
30292 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
30293 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
30294 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
30295 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
30296 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30297 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
30298 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
30299 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
423f194a RD |
30300 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
30301 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
30302 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
30303 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
30304 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
30305 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
30306 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30307 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
30308 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
30309 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
30310 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
30311 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
30312 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
30313 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
30314 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
30315 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
30316 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
30317 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
30318 | { NULL, NULL } |
30319 | }; | |
30320 | ||
30321 | ||
30322 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
30323 | ||
30324 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
30325 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30326 | } | |
30327 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
30328 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30329 | } | |
30330 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
30331 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
30332 | } | |
30333 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
30334 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
30335 | } | |
30336 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
30337 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
30338 | } | |
30339 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
30340 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
30341 | } | |
30342 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
30343 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30344 | } | |
30345 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
30346 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
30347 | } | |
30348 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
30349 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
30350 | } | |
30351 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
30352 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
30353 | } | |
30354 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
30355 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30356 | } | |
30357 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
30358 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
30359 | } | |
30360 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
30361 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
30362 | } | |
30363 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
30364 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
30365 | } | |
30366 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
30367 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
30368 | } | |
30369 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
30370 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30371 | } | |
30372 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
30373 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
30374 | } | |
30375 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
30376 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
30377 | } | |
30378 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
30379 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
30380 | } | |
30381 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
30382 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30383 | } | |
30384 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
30385 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30386 | } | |
30387 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
30388 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
30389 | } | |
30390 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
30391 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30392 | } | |
30393 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
30394 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
30395 | } | |
30396 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
30397 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30398 | } | |
30399 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
30400 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30401 | } | |
30402 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
30403 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
30404 | } | |
30405 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
30406 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
30407 | } | |
30408 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
30409 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30410 | } | |
30411 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
30412 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30413 | } | |
30414 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
30415 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
30416 | } | |
30417 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
30418 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
30419 | } | |
30420 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
30421 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
30422 | } | |
30423 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
30424 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
30425 | } | |
30426 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
30427 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
30428 | } | |
30429 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
30430 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
30431 | } | |
30432 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
30433 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
30434 | } | |
30435 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
30436 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30437 | } | |
30438 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
30439 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30440 | } | |
30441 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
30442 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30443 | } | |
30444 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
30445 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30446 | } | |
30447 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
30448 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30449 | } | |
30450 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
30451 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
30452 | } | |
30453 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
30454 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
30455 | } | |
30456 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
30457 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30458 | } | |
30459 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
30460 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
30461 | } | |
30462 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
30463 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
30464 | } | |
30465 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
30466 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30467 | } | |
30468 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
30469 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30470 | } | |
30471 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
30472 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30473 | } | |
30474 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
30475 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
30476 | } | |
30477 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
30478 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
30479 | } | |
eb9b6107 RD |
30480 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
30481 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30482 | } | |
d14a1e28 RD |
30483 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
30484 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
30485 | } | |
30486 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
30487 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30488 | } | |
30489 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
30490 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
30491 | } | |
30492 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
30493 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
30494 | } | |
30495 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
30496 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
30497 | } | |
30498 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
30499 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30500 | } | |
30501 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
30502 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
30503 | } | |
30504 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
30505 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30506 | } | |
30507 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
30508 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
30509 | } | |
30510 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
30511 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
30512 | } | |
30513 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
30514 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
30515 | } | |
30516 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
30517 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
30518 | } | |
30519 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
30520 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
30521 | } | |
30522 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
30523 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
30524 | } | |
30525 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
30526 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
30527 | } | |
30528 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
30529 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
30530 | } | |
30531 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
30532 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
30533 | } | |
30534 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
30535 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30536 | } | |
30537 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
30538 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
30539 | } | |
30540 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
30541 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
30542 | } | |
30543 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
30544 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
30545 | } | |
30546 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
30547 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
30548 | } | |
30549 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
30550 | return (void *)((wxControl *) ((wxGauge *) x)); | |
30551 | } | |
30552 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
30553 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
30554 | } | |
30555 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
30556 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
30557 | } | |
30558 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
30559 | return (void *)((wxControl *) ((wxButton *) x)); | |
30560 | } | |
30561 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
30562 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
30563 | } | |
30564 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
30565 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30566 | } | |
30567 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
30568 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
30569 | } | |
30570 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
30571 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
30572 | } | |
30573 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
30574 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
30575 | } | |
30576 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
30577 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
30578 | } | |
30579 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
30580 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
30581 | } | |
30582 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
30583 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
30584 | } | |
30585 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
30586 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
30587 | } | |
30588 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
30589 | return (void *)((wxControl *) ((wxSlider *) x)); | |
30590 | } | |
30591 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
30592 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
30593 | } | |
30594 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
30595 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
30596 | } | |
30597 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
30598 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
30599 | } | |
30600 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
30601 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
30602 | } | |
30603 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
30604 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
30605 | } | |
30606 | static void *_p_wxComboBoxTo_p_wxChoice(void *x) { | |
30607 | return (void *)((wxChoice *) ((wxComboBox *) x)); | |
30608 | } | |
30609 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
30610 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30611 | } | |
30612 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
30613 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30614 | } | |
30615 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
30616 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30617 | } | |
30618 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
30619 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
30620 | } | |
eb9b6107 RD |
30621 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
30622 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30623 | } | |
d14a1e28 RD |
30624 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
30625 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30626 | } | |
30627 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
30628 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30629 | } | |
30630 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
30631 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
30632 | } | |
30633 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
30634 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
30635 | } | |
30636 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
30637 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
30638 | } | |
30639 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
30640 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
30641 | } | |
30642 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
30643 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30644 | } | |
30645 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
30646 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
30647 | } | |
30648 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
30649 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
30650 | } | |
30651 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
30652 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
30653 | } | |
30654 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
30655 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
30656 | } | |
30657 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
30658 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
30659 | } | |
30660 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
30661 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
30662 | } | |
30663 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
30664 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
30665 | } | |
30666 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
30667 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
30668 | } | |
30669 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
30670 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30671 | } | |
30672 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
30673 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
30674 | } | |
30675 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
30676 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
30677 | } | |
30678 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
30679 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
30680 | } | |
30681 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
30682 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
30683 | } | |
30684 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
30685 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30686 | } | |
30687 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
30688 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
30689 | } | |
30690 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
30691 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
30692 | } | |
30693 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
30694 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30695 | } | |
30696 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
30697 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
30698 | } | |
30699 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
30700 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
30701 | } | |
30702 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
30703 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
30704 | } | |
30705 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
30706 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30707 | } | |
30708 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
30709 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30710 | } | |
30711 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
30712 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30713 | } | |
30714 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
30715 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30716 | } | |
30717 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
30718 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
30719 | } | |
30720 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
30721 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30722 | } | |
30723 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
30724 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
30725 | } | |
30726 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
30727 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
30728 | } | |
30729 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
30730 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
30731 | } | |
30732 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
30733 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
30734 | } | |
30735 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
30736 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
30737 | } | |
30738 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
30739 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
30740 | } | |
30741 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
30742 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30743 | } | |
30744 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
30745 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30746 | } | |
30747 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
30748 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
30749 | } | |
30750 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
30751 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
30752 | } | |
30753 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
30754 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
30755 | } | |
30756 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
30757 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
30758 | } | |
30759 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
30760 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
30761 | } | |
30762 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
30763 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30764 | } | |
30765 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
30766 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30767 | } | |
30768 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
30769 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
30770 | } | |
30771 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
30772 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
30773 | } | |
30774 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
30775 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
30776 | } | |
30777 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
30778 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
30779 | } | |
30780 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
30781 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
30782 | } | |
30783 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
30784 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
30785 | } | |
30786 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
30787 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30788 | } | |
30789 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
30790 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30791 | } | |
30792 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
30793 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
30794 | } | |
30795 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
30796 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
30797 | } | |
30798 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
30799 | return (void *)((wxObject *) ((wxSizer *) x)); | |
30800 | } | |
30801 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
30802 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
30803 | } | |
30804 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
30805 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
30806 | } | |
30807 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
30808 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
30809 | } | |
30810 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
30811 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30812 | } | |
30813 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
30814 | return (void *)((wxObject *) ((wxEvent *) x)); | |
30815 | } | |
30816 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
30817 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30818 | } | |
30819 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
30820 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
30821 | } | |
30822 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
30823 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
30824 | } | |
30825 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
30826 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
30827 | } | |
30828 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
30829 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
30830 | } | |
30831 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
30832 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30833 | } | |
30834 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
30835 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
30836 | } | |
30837 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
30838 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
30839 | } | |
30840 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
30841 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30842 | } | |
30843 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
30844 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30845 | } | |
30846 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
30847 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30848 | } | |
30849 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
30850 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30851 | } | |
30852 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
30853 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
30854 | } | |
30855 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
30856 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
30857 | } | |
30858 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
30859 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
30860 | } | |
30861 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
30862 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
30863 | } | |
30864 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
30865 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
30866 | } | |
30867 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
30868 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
30869 | } | |
30870 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
30871 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
30872 | } | |
30873 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
30874 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
30875 | } | |
30876 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
30877 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30878 | } | |
30879 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
30880 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
30881 | } | |
30882 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
30883 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
30884 | } | |
30885 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
30886 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30887 | } | |
30888 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
30889 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
30890 | } | |
30891 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
30892 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30893 | } | |
30894 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
30895 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
30896 | } | |
30897 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
30898 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30899 | } | |
30900 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
30901 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30902 | } | |
30903 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
30904 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
30905 | } | |
30906 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
30907 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
30908 | } | |
30909 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
30910 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
30911 | } | |
30912 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
30913 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
30914 | } | |
30915 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
30916 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
30917 | } | |
30918 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
30919 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30920 | } | |
30921 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
30922 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30923 | } | |
30924 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
30925 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
30926 | } | |
30927 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
30928 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
30929 | } | |
30930 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
30931 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
30932 | } | |
30933 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
30934 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
30935 | } | |
30936 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
30937 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
30938 | } | |
30939 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
30940 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
30941 | } | |
30942 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
30943 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
30944 | } | |
30945 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
30946 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
30947 | } | |
30948 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
30949 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
30950 | } | |
30951 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
30952 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
30953 | } | |
30954 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
30955 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
30956 | } | |
30957 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
30958 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
30959 | } | |
30960 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
30961 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
30962 | } | |
30963 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
30964 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
30965 | } | |
30966 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
30967 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
30968 | } | |
30969 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
30970 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
30971 | } | |
30972 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
30973 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
30974 | } | |
30975 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
30976 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
30977 | } | |
30978 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
30979 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
30980 | } | |
30981 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
30982 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
30983 | } | |
30984 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
30985 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
30986 | } | |
30987 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
30988 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30989 | } | |
30990 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
30991 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30992 | } | |
30993 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
30994 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
30995 | } | |
d14a1e28 RD |
30996 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
30997 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
30998 | } | |
41f1cec7 RD |
30999 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
31000 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31001 | } | |
d14a1e28 RD |
31002 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
31003 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
31004 | } | |
31005 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
31006 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31007 | } | |
41f1cec7 RD |
31008 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
31009 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
31010 | } | |
d14a1e28 RD |
31011 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
31012 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
31013 | } | |
31014 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
31015 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
31016 | } | |
31017 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
31018 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31019 | } | |
31020 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
31021 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
31022 | } | |
31023 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
31024 | return (void *)((wxObject *) ((wxListItem *) x)); | |
31025 | } | |
31026 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
31027 | return (void *)((wxObject *) ((wxImage *) x)); | |
31028 | } | |
31029 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
31030 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
31031 | } | |
31032 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
31033 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
31034 | } | |
eb9b6107 RD |
31035 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
31036 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31037 | } | |
423f194a RD |
31038 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
31039 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
31040 | } | |
d14a1e28 RD |
31041 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
31042 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
31043 | } | |
31044 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
31045 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31046 | } | |
31047 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
31048 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31049 | } | |
31050 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
31051 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31052 | } | |
31053 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
31054 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31055 | } | |
31056 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
31057 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
31058 | } | |
31059 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
31060 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
31061 | } | |
31062 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
31063 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
31064 | } | |
31065 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
31066 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
31067 | } | |
31068 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
31069 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
31070 | } | |
31071 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
31072 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31073 | } | |
31074 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
31075 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
31076 | } | |
31077 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
31078 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
31079 | } | |
31080 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
31081 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
31082 | } | |
31083 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
31084 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
31085 | } | |
31086 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
31087 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
31088 | } | |
31089 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
31090 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31091 | } | |
31092 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
31093 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31094 | } | |
31095 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
31096 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
31097 | } | |
31098 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
31099 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
31100 | } | |
31101 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
31102 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
31103 | } | |
31104 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
31105 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
31106 | } | |
31107 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
31108 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31109 | } | |
31110 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
31111 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31112 | } | |
31113 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
31114 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
31115 | } | |
31116 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
31117 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31118 | } | |
31119 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
31120 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
31121 | } | |
31122 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
31123 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
31124 | } | |
31125 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
31126 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
31127 | } | |
31128 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
31129 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
31130 | } | |
31131 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
31132 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
31133 | } | |
31134 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
31135 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31136 | } | |
31137 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
31138 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
31139 | } | |
31140 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
31141 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
31142 | } | |
31143 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
31144 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
31145 | } | |
31146 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
31147 | return (void *)((wxWindow *) ((wxControl *) x)); | |
31148 | } | |
31149 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
31150 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
31151 | } | |
31152 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
31153 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31154 | } | |
31155 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
31156 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
31157 | } | |
31158 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
31159 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31160 | } | |
31161 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
31162 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
31163 | } | |
31164 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
31165 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
31166 | } | |
31167 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
31168 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
31169 | } | |
31170 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
31171 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
31172 | } | |
31173 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
31174 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
31175 | } | |
31176 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
31177 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31178 | } | |
31179 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
31180 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
31181 | } | |
31182 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
31183 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
31184 | } | |
31185 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
31186 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
31187 | } | |
31188 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
31189 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31190 | } | |
31191 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
31192 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31193 | } | |
31194 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
31195 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31196 | } | |
31197 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
31198 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31199 | } | |
31200 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
31201 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31202 | } | |
31203 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
31204 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
31205 | } | |
31206 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
31207 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
31208 | } | |
31209 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
31210 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
31211 | } | |
31212 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
31213 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
31214 | } | |
31215 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
31216 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
31217 | } | |
31218 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
31219 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
31220 | } | |
31221 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
31222 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
31223 | } | |
31224 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
31225 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31226 | } | |
31227 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
31228 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31229 | } | |
31230 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
31231 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
31232 | } | |
31233 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
31234 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31235 | } | |
31236 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
31237 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31238 | } | |
31239 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
31240 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31241 | } | |
31242 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
31243 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
31244 | } | |
31245 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
31246 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31247 | } | |
31248 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
31249 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31250 | } | |
31251 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
31252 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31253 | } | |
31254 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
31255 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31256 | } | |
31257 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
31258 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31259 | } | |
31260 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
31261 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
31262 | } | |
31263 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
31264 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31265 | } | |
31266 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
31267 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31268 | } | |
eb9b6107 RD |
31269 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
31270 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31271 | } | |
d14a1e28 RD |
31272 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
31273 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
31274 | } | |
31275 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
31276 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31277 | } | |
31278 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
31279 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31280 | } | |
31281 | static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) { | |
31282 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x)); | |
31283 | } | |
31284 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
31285 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31286 | } | |
31287 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
31288 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
31289 | } | |
31290 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
31291 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
31292 | } | |
31293 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
31294 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
31295 | } | |
31296 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
31297 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
31298 | } | |
31299 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0},{"_p_wxTextUrlEvent"},{0}}; | |
31300 | 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}}; | |
31301 | 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 |
31302 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0},{"_p_wxCheckBox"},{0}}; |
31303 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0},{"_p_wxPyTreeCtrl"},{0}}; | |
eb9b6107 | 31304 | 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 |
31305 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0},{"_p_wxGenericDirCtrl"},{0}}; |
31306 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}}; | |
31307 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0},{"_p_wxPyTreeItemData"},{0}}; | |
31308 | 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}}; | |
31309 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0},{"_p_wxDirFilterListCtrl"},{0}}; | |
31310 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0},{"_p_wxPyListCtrl"},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl},{0}}; | |
31311 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0},{"_p_wxStaticLine"},{0}}; | |
31312 | 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}}; | |
31313 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0},{"_p_wxPyControl"},{0}}; | |
31314 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0},{"_p_wxGauge"},{0}}; | |
31315 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0},{"_p_wxToolBarBase"},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase},{0}}; | |
31316 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
31317 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0},{"_p_wxToggleButton"},{0}}; | |
31318 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0},{"_p_wxRadioButton"},{0}}; | |
31319 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxChoice},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice},{"_p_wxChoice"},{0}}; | |
423f194a | 31320 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxMemoryDC"},{0}}; |
d14a1e28 | 31321 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0},{"_p_wxListItemAttr"},{0}}; |
58203fa6 | 31322 | static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0},{"_p_void"},{0}}; |
d14a1e28 RD |
31323 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
31324 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
423f194a | 31325 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; |
d14a1e28 RD |
31326 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0},{"_p_wxListView"},{0}}; |
31327 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
31328 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
31329 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0},{"_p_wxNotebook"},{0}}; | |
eb9b6107 | 31330 | 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 |
31331 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; |
31332 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0},{"_p_wxListbook"},{0}}; | |
31333 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0},{"_p_wxStaticBitmap"},{0}}; | |
31334 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0},{"_p_wxSlider"},{0}}; | |
31335 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
31336 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}}; | |
31337 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0},{"_p_wxContextHelp"},{0}}; | |
31338 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
31339 | 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}}; | |
31340 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0},{"_p_wxListEvent"},{0}}; | |
31341 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0},{"_p_wxListBox"},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox},{0}}; | |
31342 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0},{"_p_wxCheckListBox"},{0}}; | |
31343 | 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}}; | |
31344 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0},{"_p_wxSpinButton"},{0}}; | |
31345 | 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}}; | |
31346 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0},{"_p_wxBitmapButton"},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton},{0}}; | |
31347 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
31348 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0},{"_p_wxContextHelpButton"},{0}}; | |
31349 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0},{"_p_wxRadioBox"},{0}}; | |
31350 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0},{"_p_wxScrollBar"},{0}}; | |
8edf1c75 | 31351 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
31352 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}}; |
31353 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0},{"_p_wxComboBox"},{0}}; | |
31354 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0},{"_p_wxHelpEvent"},{0}}; | |
31355 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0},{"_p_wxListItem"},{0}}; | |
31356 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0},{"_p_wxNotebookSizer"},{0}}; | |
eb9b6107 | 31357 | static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0},{"_p_wxSpinEvent"},{0}}; |
423f194a | 31358 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}}; |
d14a1e28 RD |
31359 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0},{"_p_wxSpinCtrl"},{0}}; |
31360 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
31361 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0},{"_p_wxHelpProvider"},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider},{0}}; | |
31362 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0},{"_p_wxTextAttr"},{0}}; | |
31363 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0},{"_p_wxSimpleHelpProvider"},{0}}; | |
31364 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
31365 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0},{"_p_wxListbookEvent"},{0}}; | |
31366 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0},{"_p_wxNotebookEvent"},{0}}; | |
eb9b6107 | 31367 | 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 | 31368 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; |
d14a1e28 RD |
31369 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; |
31370 | 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}}; | |
31371 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
31372 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
31373 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0},{"_p_wxTreeEvent"},{0}}; | |
31374 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
eb9b6107 | 31375 | 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 |
31376 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0},{"_p_wxStaticText"},{0}}; |
31377 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControlWithItems},{"_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}}; | |
31378 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0},{"_p_wxToolBarToolBase"},{0}}; | |
31379 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
31380 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}}; | |
31381 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0},{"_p_wxBookCtrlSizer"},{0}}; | |
31382 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
31383 | ||
31384 | static swig_type_info *swig_types_initial[] = { | |
31385 | _swigt__p_wxTextUrlEvent, | |
31386 | _swigt__p_wxBookCtrlEvent, | |
31387 | _swigt__p_wxSizer, | |
d14a1e28 RD |
31388 | _swigt__p_wxCheckBox, |
31389 | _swigt__p_wxPyTreeCtrl, | |
31390 | _swigt__p_wxEvent, | |
31391 | _swigt__p_wxGenericDirCtrl, | |
31392 | _swigt__p_bool, | |
31393 | _swigt__p_wxPyTreeItemData, | |
31394 | _swigt__p_wxItemContainer, | |
31395 | _swigt__p_wxDirFilterListCtrl, | |
31396 | _swigt__p_wxPyListCtrl, | |
31397 | _swigt__p_wxStaticLine, | |
31398 | _swigt__p_wxControl, | |
31399 | _swigt__p_wxPyControl, | |
31400 | _swigt__p_wxGauge, | |
31401 | _swigt__p_wxToolBarBase, | |
31402 | _swigt__p_wxFont, | |
31403 | _swigt__p_wxToggleButton, | |
31404 | _swigt__p_wxRadioButton, | |
31405 | _swigt__p_wxChoice, | |
423f194a | 31406 | _swigt__p_wxMemoryDC, |
d14a1e28 | 31407 | _swigt__p_wxListItemAttr, |
58203fa6 | 31408 | _swigt__p_void, |
d14a1e28 RD |
31409 | _swigt__p_int, |
31410 | _swigt__p_wxSize, | |
423f194a | 31411 | _swigt__p_wxDC, |
d14a1e28 RD |
31412 | _swigt__p_wxListView, |
31413 | _swigt__p_wxIcon, | |
31414 | _swigt__p_wxTextCtrl, | |
31415 | _swigt__p_wxNotebook, | |
31416 | _swigt__p_wxNotifyEvent, | |
31417 | _swigt__p_wxArrayString, | |
31418 | _swigt__p_wxListbook, | |
31419 | _swigt__p_wxStaticBitmap, | |
31420 | _swigt__p_wxSlider, | |
31421 | _swigt__p_wxStaticBox, | |
31422 | _swigt__p_wxArrayInt, | |
31423 | _swigt__p_wxContextHelp, | |
31424 | _swigt__p_long, | |
31425 | _swigt__p_wxEvtHandler, | |
31426 | _swigt__p_wxListEvent, | |
31427 | _swigt__p_wxListBox, | |
31428 | _swigt__p_wxCheckListBox, | |
31429 | _swigt__p_wxBookCtrl, | |
31430 | _swigt__p_wxSpinButton, | |
31431 | _swigt__p_wxButton, | |
31432 | _swigt__p_wxBitmapButton, | |
31433 | _swigt__p_wxRect, | |
31434 | _swigt__p_wxContextHelpButton, | |
31435 | _swigt__p_wxRadioBox, | |
31436 | _swigt__p_wxScrollBar, | |
8edf1c75 | 31437 | _swigt__p_char, |
d14a1e28 RD |
31438 | _swigt__p_wxTreeItemId, |
31439 | _swigt__p_wxComboBox, | |
31440 | _swigt__p_wxHelpEvent, | |
31441 | _swigt__p_wxListItem, | |
31442 | _swigt__p_wxNotebookSizer, | |
eb9b6107 | 31443 | _swigt__p_wxSpinEvent, |
423f194a | 31444 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
31445 | _swigt__p_wxSpinCtrl, |
31446 | _swigt__p_wxImageList, | |
31447 | _swigt__p_wxHelpProvider, | |
31448 | _swigt__p_wxTextAttr, | |
31449 | _swigt__p_wxSimpleHelpProvider, | |
31450 | _swigt__p_wxPoint, | |
31451 | _swigt__p_wxListbookEvent, | |
31452 | _swigt__p_wxNotebookEvent, | |
31453 | _swigt__p_wxObject, | |
423f194a | 31454 | _swigt__p_wxCursor, |
d14a1e28 RD |
31455 | _swigt__p_wxKeyEvent, |
31456 | _swigt__p_wxWindow, | |
31457 | _swigt__p_wxString, | |
31458 | _swigt__p_wxBitmap, | |
31459 | _swigt__p_wxTreeEvent, | |
31460 | _swigt__p_wxMouseEvent, | |
31461 | _swigt__p_wxCommandEvent, | |
31462 | _swigt__p_wxStaticText, | |
31463 | _swigt__p_wxControlWithItems, | |
31464 | _swigt__p_wxToolBarToolBase, | |
31465 | _swigt__p_wxColour, | |
31466 | _swigt__p_wxToolBar, | |
31467 | _swigt__p_wxBookCtrlSizer, | |
31468 | _swigt__p_wxValidator, | |
31469 | 0 | |
31470 | }; | |
31471 | ||
31472 | ||
31473 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
31474 | ||
31475 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
31476 | {0}}; |
31477 | ||
31478 | #ifdef __cplusplus | |
31479 | } | |
31480 | #endif | |
31481 | ||
31482 | #ifdef __cplusplus | |
31483 | extern "C" | |
31484 | #endif | |
31485 | SWIGEXPORT(void) SWIG_init(void) { | |
31486 | static PyObject *SWIG_globals = 0; | |
31487 | static int typeinit = 0; | |
31488 | PyObject *m, *d; | |
31489 | int i; | |
31490 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
31491 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
31492 | d = PyModule_GetDict(m); | |
31493 | ||
31494 | if (!typeinit) { | |
31495 | for (i = 0; swig_types_initial[i]; i++) { | |
31496 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
31497 | } | |
31498 | typeinit = 1; | |
31499 | } | |
31500 | SWIG_InstallConstants(d,swig_const_table); | |
31501 | ||
d03fd34d RD |
31502 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
31503 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
8edf1c75 RD |
31504 | PyDict_SetItemString(d,"BU_LEFT", SWIG_PyObj_FromInt((int)wxBU_LEFT)); |
31505 | PyDict_SetItemString(d,"BU_TOP", SWIG_PyObj_FromInt((int)wxBU_TOP)); | |
31506 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_PyObj_FromInt((int)wxBU_RIGHT)); | |
31507 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_PyObj_FromInt((int)wxBU_BOTTOM)); | |
31508 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_PyObj_FromInt((int)wxBU_EXACTFIT)); | |
31509 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_PyObj_FromInt((int)wxBU_AUTODRAW)); | |
d03fd34d | 31510 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
8edf1c75 RD |
31511 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_PyObj_FromInt((int)wxCHK_2STATE)); |
31512 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_PyObj_FromInt((int)wxCHK_3STATE)); | |
31513 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_PyObj_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
31514 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_PyObj_FromInt((int)wxCHK_UNCHECKED)); | |
31515 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_PyObj_FromInt((int)wxCHK_CHECKED)); | |
31516 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_PyObj_FromInt((int)wxCHK_UNDETERMINED)); | |
d03fd34d RD |
31517 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
31518 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
31519 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
8edf1c75 RD |
31520 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_PyObj_FromInt((int)wxGA_HORIZONTAL)); |
31521 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_PyObj_FromInt((int)wxGA_VERTICAL)); | |
31522 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_PyObj_FromInt((int)wxGA_SMOOTH)); | |
31523 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_PyObj_FromInt((int)wxGA_PROGRESSBAR)); | |
d03fd34d RD |
31524 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
31525 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
31526 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
31527 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
31528 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
8edf1c75 RD |
31529 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_PyObj_FromInt((int)wxTE_NO_VSCROLL)); |
31530 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_PyObj_FromInt((int)wxTE_AUTO_SCROLL)); | |
31531 | PyDict_SetItemString(d,"TE_READONLY", SWIG_PyObj_FromInt((int)wxTE_READONLY)); | |
31532 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_PyObj_FromInt((int)wxTE_MULTILINE)); | |
31533 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_PyObj_FromInt((int)wxTE_PROCESS_TAB)); | |
31534 | PyDict_SetItemString(d,"TE_LEFT", SWIG_PyObj_FromInt((int)wxTE_LEFT)); | |
31535 | PyDict_SetItemString(d,"TE_CENTER", SWIG_PyObj_FromInt((int)wxTE_CENTER)); | |
31536 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_PyObj_FromInt((int)wxTE_RIGHT)); | |
31537 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_PyObj_FromInt((int)wxTE_CENTRE)); | |
31538 | PyDict_SetItemString(d,"TE_RICH", SWIG_PyObj_FromInt((int)wxTE_RICH)); | |
31539 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_PyObj_FromInt((int)wxTE_PROCESS_ENTER)); | |
31540 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_PyObj_FromInt((int)wxTE_PASSWORD)); | |
31541 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_PyObj_FromInt((int)wxTE_AUTO_URL)); | |
31542 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_PyObj_FromInt((int)wxTE_NOHIDESEL)); | |
31543 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_PyObj_FromInt((int)wxTE_DONTWRAP)); | |
31544 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_PyObj_FromInt((int)wxTE_LINEWRAP)); | |
31545 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_PyObj_FromInt((int)wxTE_WORDWRAP)); | |
31546 | PyDict_SetItemString(d,"TE_RICH2", SWIG_PyObj_FromInt((int)wxTE_RICH2)); | |
31547 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
31548 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
31549 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
31550 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
31551 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
31552 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
31553 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
31554 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
31555 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
31556 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
31557 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
31558 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
31559 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
31560 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT)); | |
31561 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
31562 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
31563 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
31564 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TABS)); | |
4e760a36 RD |
31565 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_PyObj_FromInt((int)wxTE_HT_UNKNOWN)); |
31566 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_PyObj_FromInt((int)wxTE_HT_BEFORE)); | |
31567 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_PyObj_FromInt((int)wxTE_HT_ON_TEXT)); | |
31568 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_PyObj_FromInt((int)wxTE_HT_BELOW)); | |
31569 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_PyObj_FromInt((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
31570 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
31571 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
31572 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
31573 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
d03fd34d RD |
31574 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
31575 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
31576 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
8edf1c75 RD |
31577 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSP_HORIZONTAL)); |
31578 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_PyObj_FromInt((int)wxSP_VERTICAL)); | |
31579 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_PyObj_FromInt((int)wxSP_ARROW_KEYS)); | |
31580 | PyDict_SetItemString(d,"SP_WRAP", SWIG_PyObj_FromInt((int)wxSP_WRAP)); | |
d14a1e28 | 31581 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
d03fd34d RD |
31582 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
31583 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
31584 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
31585 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 31586 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
d03fd34d | 31587 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
8edf1c75 RD |
31588 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_PyObj_FromInt((int)wxNB_FIXEDWIDTH)); |
31589 | PyDict_SetItemString(d,"NB_TOP", SWIG_PyObj_FromInt((int)wxNB_TOP)); | |
31590 | PyDict_SetItemString(d,"NB_LEFT", SWIG_PyObj_FromInt((int)wxNB_LEFT)); | |
31591 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_PyObj_FromInt((int)wxNB_RIGHT)); | |
31592 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_PyObj_FromInt((int)wxNB_BOTTOM)); | |
31593 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_PyObj_FromInt((int)wxNB_MULTILINE)); | |
31594 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
31595 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONICON)); | |
31596 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
31597 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
31598 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
31599 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
8edf1c75 RD |
31600 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_PyObj_FromInt((int)wxLB_DEFAULT)); |
31601 | PyDict_SetItemString(d,"LB_TOP", SWIG_PyObj_FromInt((int)wxLB_TOP)); | |
31602 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_PyObj_FromInt((int)wxLB_BOTTOM)); | |
31603 | PyDict_SetItemString(d,"LB_LEFT", SWIG_PyObj_FromInt((int)wxLB_LEFT)); | |
31604 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_PyObj_FromInt((int)wxLB_RIGHT)); | |
31605 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_PyObj_FromInt((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
31606 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
31607 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
8edf1c75 RD |
31608 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_BUTTON)); |
31609 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
31610 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
31611 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_PyObj_FromInt((int)wxTB_HORIZONTAL)); | |
31612 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_PyObj_FromInt((int)wxTB_VERTICAL)); | |
31613 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_PyObj_FromInt((int)wxTB_3DBUTTONS)); | |
31614 | PyDict_SetItemString(d,"TB_FLAT", SWIG_PyObj_FromInt((int)wxTB_FLAT)); | |
31615 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_PyObj_FromInt((int)wxTB_DOCKABLE)); | |
31616 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_PyObj_FromInt((int)wxTB_NOICONS)); | |
31617 | PyDict_SetItemString(d,"TB_TEXT", SWIG_PyObj_FromInt((int)wxTB_TEXT)); | |
31618 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_PyObj_FromInt((int)wxTB_NODIVIDER)); | |
31619 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_PyObj_FromInt((int)wxTB_NOALIGN)); | |
31620 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_PyObj_FromInt((int)wxTB_HORZ_LAYOUT)); | |
31621 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_PyObj_FromInt((int)wxTB_HORZ_TEXT)); | |
d03fd34d | 31622 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
8edf1c75 RD |
31623 | PyDict_SetItemString(d,"LC_VRULES", SWIG_PyObj_FromInt((int)wxLC_VRULES)); |
31624 | PyDict_SetItemString(d,"LC_HRULES", SWIG_PyObj_FromInt((int)wxLC_HRULES)); | |
31625 | PyDict_SetItemString(d,"LC_ICON", SWIG_PyObj_FromInt((int)wxLC_ICON)); | |
31626 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_PyObj_FromInt((int)wxLC_SMALL_ICON)); | |
31627 | PyDict_SetItemString(d,"LC_LIST", SWIG_PyObj_FromInt((int)wxLC_LIST)); | |
31628 | PyDict_SetItemString(d,"LC_REPORT", SWIG_PyObj_FromInt((int)wxLC_REPORT)); | |
31629 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLC_ALIGN_TOP)); | |
31630 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLC_ALIGN_LEFT)); | |
31631 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_PyObj_FromInt((int)wxLC_AUTOARRANGE)); | |
31632 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_PyObj_FromInt((int)wxLC_VIRTUAL)); | |
31633 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxLC_EDIT_LABELS)); | |
31634 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_HEADER)); | |
31635 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_SORT_HEADER)); | |
31636 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_PyObj_FromInt((int)wxLC_SINGLE_SEL)); | |
31637 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_ASCENDING)); | |
31638 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_DESCENDING)); | |
31639 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_PyObj_FromInt((int)wxLC_MASK_TYPE)); | |
31640 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_PyObj_FromInt((int)wxLC_MASK_ALIGN)); | |
31641 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_PyObj_FromInt((int)wxLC_MASK_SORT)); | |
31642 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_PyObj_FromInt((int)wxLIST_MASK_STATE)); | |
31643 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_PyObj_FromInt((int)wxLIST_MASK_TEXT)); | |
31644 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_PyObj_FromInt((int)wxLIST_MASK_IMAGE)); | |
31645 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_PyObj_FromInt((int)wxLIST_MASK_DATA)); | |
31646 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_PyObj_FromInt((int)wxLIST_SET_ITEM)); | |
31647 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_PyObj_FromInt((int)wxLIST_MASK_WIDTH)); | |
31648 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_PyObj_FromInt((int)wxLIST_MASK_FORMAT)); | |
31649 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_PyObj_FromInt((int)wxLIST_STATE_DONTCARE)); | |
31650 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
31651 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FOCUSED)); | |
31652 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_PyObj_FromInt((int)wxLIST_STATE_SELECTED)); | |
31653 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_PyObj_FromInt((int)wxLIST_STATE_CUT)); | |
31654 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DISABLED)); | |
31655 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FILTERED)); | |
31656 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_PyObj_FromInt((int)wxLIST_STATE_INUSE)); | |
31657 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_PyObj_FromInt((int)wxLIST_STATE_PICKED)); | |
31658 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_PyObj_FromInt((int)wxLIST_STATE_SOURCE)); | |
31659 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
31660 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_BELOW)); | |
31661 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
31662 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
31663 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
31664 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
31665 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
31666 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
31667 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
31668 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
31669 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ABOVE)); | |
31670 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ALL)); | |
31671 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_PyObj_FromInt((int)wxLIST_NEXT_BELOW)); | |
31672 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_LEFT)); | |
31673 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_RIGHT)); | |
31674 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
31675 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_LEFT)); | |
31676 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_TOP)); | |
31677 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
31678 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_LEFT)); | |
31679 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
31680 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
31681 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTER)); | |
31682 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE)); | |
31683 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
31684 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_PyObj_FromInt((int)wxLIST_RECT_BOUNDS)); | |
31685 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_PyObj_FromInt((int)wxLIST_RECT_ICON)); | |
31686 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_PyObj_FromInt((int)wxLIST_RECT_LABEL)); | |
31687 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_PyObj_FromInt((int)wxLIST_FIND_UP)); | |
31688 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_PyObj_FromInt((int)wxLIST_FIND_DOWN)); | |
31689 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FIND_LEFT)); | |
31690 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
31691 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
31692 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
31693 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
31694 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
31695 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
31696 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
31697 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
31698 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
31699 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
31700 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
31701 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
31702 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
31703 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
31704 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
31705 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
31706 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
31707 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
31708 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
31709 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
31710 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
31711 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
31712 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
31713 | ||
31714 | // Map renamed classes back to their common name for OOR | |
31715 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
31716 | ||
d03fd34d | 31717 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
8edf1c75 RD |
31718 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_NO_BUTTONS)); |
31719 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_HAS_BUTTONS)); | |
31720 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_PyObj_FromInt((int)wxTR_NO_LINES)); | |
31721 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_PyObj_FromInt((int)wxTR_LINES_AT_ROOT)); | |
31722 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_PyObj_FromInt((int)wxTR_SINGLE)); | |
31723 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_PyObj_FromInt((int)wxTR_MULTIPLE)); | |
31724 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_PyObj_FromInt((int)wxTR_EXTENDED)); | |
31725 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_PyObj_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
31726 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxTR_EDIT_LABELS)); | |
31727 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_PyObj_FromInt((int)wxTR_HIDE_ROOT)); | |
31728 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_PyObj_FromInt((int)wxTR_ROW_LINES)); | |
31729 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_PyObj_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
31730 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_PyObj_FromInt((int)wxTR_DEFAULT_STYLE)); | |
31731 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_TWIST_BUTTONS)); | |
31732 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_MAC_BUTTONS)); | |
31733 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_AQUA_BUTTONS)); | |
31734 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Normal)); | |
31735 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Selected)); | |
31736 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Expanded)); | |
31737 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
31738 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Max)); | |
31739 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
31740 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_BELOW)); | |
31741 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
31742 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
31743 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
31744 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
31745 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
31746 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
31747 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
31748 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
31749 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
31750 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
31751 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
31752 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
31753 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
31754 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
31755 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
31756 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
31757 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
31758 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
31759 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
31760 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
31761 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
31762 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
31763 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
31764 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
31765 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
31766 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
31767 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
31768 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
31769 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
31770 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
31771 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
9fd4be55 | 31772 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
31773 | |
31774 | // Map renamed classes back to their common name for OOR | |
31775 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
31776 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
31777 | ||
d03fd34d | 31778 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
8edf1c75 RD |
31779 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_PyObj_FromInt((int)wxDIRCTRL_DIR_ONLY)); |
31780 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_PyObj_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
31781 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_PyObj_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
31782 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_PyObj_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
31783 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
31784 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
31785 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
31786 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
31787 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
423f194a RD |
31788 | |
31789 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
31790 | ||
d14a1e28 RD |
31791 | } |
31792 |