]>
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")); |
d14a1e28 | 668 | bool wxTreeItemId_operator_ee___(wxTreeItemId *self,wxTreeItemId const *other){ |
423f194a | 669 | if (!other) return False; |
d14a1e28 RD |
670 | return *self == *other; |
671 | } | |
672 | bool wxTreeItemId_operator_Ne___(wxTreeItemId *self,wxTreeItemId const *other){ | |
423f194a | 673 | if (!other) return True; |
d14a1e28 RD |
674 | return *self != *other; |
675 | } | |
676 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
677 | // C++ version of Python aware wxTreeCtrl | |
678 | class wxPyTreeCtrl : public wxTreeCtrl { | |
679 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
680 | public: | |
681 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
682 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
683 | const wxPoint& pos, | |
684 | const wxSize& size, | |
685 | long style, | |
686 | const wxValidator& validator, | |
687 | const wxString& name) : | |
688 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
689 | ||
690 | bool Create(wxWindow *parent, wxWindowID id, | |
691 | const wxPoint& pos, | |
692 | const wxSize& size, | |
693 | long style, | |
694 | const wxValidator& validator, | |
695 | const wxString& name) { | |
696 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
697 | } | |
698 | ||
699 | ||
700 | int OnCompareItems(const wxTreeItemId& item1, | |
701 | const wxTreeItemId& item2) { | |
702 | int rval = 0; | |
703 | bool found; | |
704 | wxPyBeginBlockThreads(); | |
705 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
423f194a RD |
706 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
707 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
708 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
709 | Py_DECREF(o1); | |
710 | Py_DECREF(o2); | |
711 | } | |
712 | wxPyEndBlockThreads(); | |
713 | if (! found) | |
714 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
715 | return rval; | |
716 | } | |
717 | PYPRIVATE; | |
718 | }; | |
719 | ||
720 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
721 | ||
722 | ||
8edf1c75 RD |
723 | |
724 | #define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong | |
725 | ||
726 | ||
727 | SWIGSTATIC(unsigned int) | |
728 | SWIG_PyObj_AsUnsignedInt(PyObject *obj) | |
729 | { | |
730 | return numeric_cast(unsigned int, | |
731 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX)); | |
732 | } | |
733 | ||
d14a1e28 RD |
734 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
735 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
736 | if (data == NULL) { | |
737 | data = new wxPyTreeItemData(); | |
738 | data->SetId(item); // set the id | |
739 | self->SetItemData(item, data); | |
740 | } | |
741 | return data; | |
742 | } | |
743 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
744 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
745 | if (data == NULL) { | |
746 | data = new wxPyTreeItemData(); | |
747 | data->SetId(item); // set the id | |
748 | self->SetItemData(item, data); | |
749 | } | |
750 | return data->GetData(); | |
751 | } | |
752 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
753 | data->SetId(item); // set the id | |
754 | self->SetItemData(item, data); | |
755 | } | |
756 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
757 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
758 | if (data == NULL) { | |
759 | data = new wxPyTreeItemData(obj); | |
760 | data->SetId(item); // set the id | |
761 | self->SetItemData(item, data); | |
762 | } else | |
763 | data->SetData(obj); | |
764 | } | |
765 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
766 | wxPyBeginBlockThreads(); | |
767 | PyObject* rval = PyList_New(0); | |
768 | wxArrayTreeItemIds array; | |
769 | size_t num, x; | |
770 | num = self->GetSelections(array); | |
771 | for (x=0; x < num; x++) { | |
772 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
423f194a | 773 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 RD |
774 | PyList_Append(rval, item); |
775 | } | |
776 | wxPyEndBlockThreads(); | |
777 | return rval; | |
778 | } | |
779 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
58203fa6 RD |
780 | void* cookie = 0; |
781 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
d14a1e28 RD |
782 | wxPyBeginBlockThreads(); |
783 | PyObject* tup = PyTuple_New(2); | |
58203fa6 RD |
784 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
785 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
d14a1e28 RD |
786 | wxPyEndBlockThreads(); |
787 | return tup; | |
788 | } | |
58203fa6 RD |
789 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
790 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
d14a1e28 RD |
791 | wxPyBeginBlockThreads(); |
792 | PyObject* tup = PyTuple_New(2); | |
58203fa6 RD |
793 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
794 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
d14a1e28 RD |
795 | wxPyEndBlockThreads(); |
796 | return tup; | |
797 | } | |
798 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
799 | wxRect rect; | |
800 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
801 | wxPyBeginBlockThreads(); | |
802 | wxRect* r = new wxRect(rect); | |
423f194a | 803 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
d14a1e28 RD |
804 | wxPyEndBlockThreads(); |
805 | return val; | |
806 | } | |
807 | else | |
808 | RETURN_NONE(); | |
809 | } | |
d03fd34d | 810 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
d14a1e28 RD |
811 | // C++ version of Python aware wxControl |
812 | class wxPyControl : public wxControl | |
813 | { | |
814 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
815 | public: | |
816 | wxPyControl() : wxControl() {} | |
817 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
818 | const wxPoint& pos = wxDefaultPosition, | |
819 | const wxSize& size = wxDefaultSize, | |
820 | long style = 0, | |
821 | const wxValidator& validator=wxDefaultValidator, | |
822 | const wxString& name = wxPyControlNameStr) | |
823 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
824 | ||
825 | ||
826 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
827 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
828 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
829 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
830 | ||
831 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
832 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
833 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
834 | ||
835 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
836 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
837 | ||
838 | DEC_PYCALLBACK__(InitDialog); | |
839 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
840 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
841 | DEC_PYCALLBACK_BOOL_(Validate); | |
842 | ||
843 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
844 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
845 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
846 | ||
847 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
848 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
849 | ||
850 | PYPRIVATE; | |
851 | }; | |
852 | ||
853 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
854 | ||
855 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
856 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
857 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
858 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
859 | ||
860 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
861 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
862 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
863 | ||
864 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
865 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
866 | ||
867 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
868 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
869 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
870 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
871 | ||
872 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
873 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
874 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
875 | ||
876 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
877 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
878 | ||
879 | ||
880 | ||
881 | ||
882 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
423f194a RD |
883 | |
884 | #include <wx/generic/dragimgg.h> | |
885 | ||
d14a1e28 RD |
886 | #ifdef __cplusplus |
887 | extern "C" { | |
888 | #endif | |
8edf1c75 | 889 | static int _wrap_ButtonNameStr_set(PyObject *) { |
d03fd34d RD |
890 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
891 | return 1; | |
892 | } | |
893 | ||
894 | ||
895 | static PyObject *_wrap_ButtonNameStr_get() { | |
896 | PyObject *pyobj; | |
897 | ||
898 | { | |
899 | #if wxUSE_UNICODE | |
900 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
901 | #else | |
902 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
903 | #endif | |
904 | } | |
905 | return pyobj; | |
906 | } | |
907 | ||
908 | ||
d14a1e28 RD |
909 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { |
910 | PyObject *resultobj; | |
911 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 912 | int arg2 ; |
d14a1e28 RD |
913 | wxString *arg3 = 0 ; |
914 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
915 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
916 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
917 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
918 | long arg6 = (long) 0 ; | |
919 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
920 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
921 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
922 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
923 | wxButton *result; | |
423f194a | 924 | bool temp3 = False ; |
d14a1e28 RD |
925 | wxPoint temp4 ; |
926 | wxSize temp5 ; | |
423f194a | 927 | bool temp8 = False ; |
d14a1e28 | 928 | PyObject * obj0 = 0 ; |
8edf1c75 | 929 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
930 | PyObject * obj2 = 0 ; |
931 | PyObject * obj3 = 0 ; | |
932 | PyObject * obj4 = 0 ; | |
8edf1c75 | 933 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
934 | PyObject * obj6 = 0 ; |
935 | PyObject * obj7 = 0 ; | |
936 | char *kwnames[] = { | |
937 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
938 | }; | |
939 | ||
8edf1c75 | 940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
942 | { |
943 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
944 | if (PyErr_Occurred()) SWIG_fail; | |
945 | } | |
d14a1e28 RD |
946 | { |
947 | arg3 = wxString_in_helper(obj2); | |
948 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 949 | temp3 = True; |
d14a1e28 RD |
950 | } |
951 | if (obj3) { | |
952 | { | |
953 | arg4 = &temp4; | |
954 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
955 | } | |
956 | } | |
957 | if (obj4) { | |
958 | { | |
959 | arg5 = &temp5; | |
960 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
961 | } | |
962 | } | |
8edf1c75 RD |
963 | if (obj5) { |
964 | { | |
965 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
966 | if (PyErr_Occurred()) SWIG_fail; | |
967 | } | |
968 | } | |
d14a1e28 RD |
969 | if (obj6) { |
970 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
971 | if (arg7 == NULL) { | |
972 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
973 | } | |
974 | } | |
975 | if (obj7) { | |
976 | { | |
977 | arg8 = wxString_in_helper(obj7); | |
978 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 979 | temp8 = True; |
d14a1e28 RD |
980 | } |
981 | } | |
982 | { | |
983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
984 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
985 | ||
986 | wxPyEndAllowThreads(__tstate); | |
987 | if (PyErr_Occurred()) SWIG_fail; | |
988 | } | |
989 | { | |
990 | resultobj = wxPyMake_wxObject(result); | |
991 | } | |
992 | { | |
993 | if (temp3) | |
994 | delete arg3; | |
995 | } | |
996 | { | |
997 | if (temp8) | |
998 | delete arg8; | |
999 | } | |
1000 | return resultobj; | |
1001 | fail: | |
1002 | { | |
1003 | if (temp3) | |
1004 | delete arg3; | |
1005 | } | |
1006 | { | |
1007 | if (temp8) | |
1008 | delete arg8; | |
1009 | } | |
1010 | return NULL; | |
1011 | } | |
1012 | ||
1013 | ||
1014 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1015 | PyObject *resultobj; | |
1016 | wxButton *result; | |
1017 | char *kwnames[] = { | |
1018 | NULL | |
1019 | }; | |
1020 | ||
1021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1022 | { | |
1023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1024 | result = (wxButton *)new wxButton(); | |
1025 | ||
1026 | wxPyEndAllowThreads(__tstate); | |
1027 | if (PyErr_Occurred()) SWIG_fail; | |
1028 | } | |
1029 | { | |
1030 | resultobj = wxPyMake_wxObject(result); | |
1031 | } | |
1032 | return resultobj; | |
1033 | fail: | |
1034 | return NULL; | |
1035 | } | |
1036 | ||
1037 | ||
1038 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1039 | PyObject *resultobj; | |
1040 | wxButton *arg1 = (wxButton *) 0 ; | |
1041 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1042 | int arg3 ; |
d14a1e28 RD |
1043 | wxString *arg4 = 0 ; |
1044 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1045 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1046 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1047 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1048 | long arg7 = (long) 0 ; | |
1049 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1050 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1051 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1052 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1053 | bool result; | |
423f194a | 1054 | bool temp4 = False ; |
d14a1e28 RD |
1055 | wxPoint temp5 ; |
1056 | wxSize temp6 ; | |
423f194a | 1057 | bool temp9 = False ; |
d14a1e28 RD |
1058 | PyObject * obj0 = 0 ; |
1059 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1060 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1061 | PyObject * obj3 = 0 ; |
1062 | PyObject * obj4 = 0 ; | |
1063 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1064 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1065 | PyObject * obj7 = 0 ; |
1066 | PyObject * obj8 = 0 ; | |
1067 | char *kwnames[] = { | |
1068 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1069 | }; | |
1070 | ||
8edf1c75 | 1071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1073 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
1074 | { |
1075 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1076 | if (PyErr_Occurred()) SWIG_fail; | |
1077 | } | |
d14a1e28 RD |
1078 | { |
1079 | arg4 = wxString_in_helper(obj3); | |
1080 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 1081 | temp4 = True; |
d14a1e28 RD |
1082 | } |
1083 | if (obj4) { | |
1084 | { | |
1085 | arg5 = &temp5; | |
1086 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1087 | } | |
1088 | } | |
1089 | if (obj5) { | |
1090 | { | |
1091 | arg6 = &temp6; | |
1092 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1093 | } | |
1094 | } | |
8edf1c75 RD |
1095 | if (obj6) { |
1096 | { | |
1097 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1098 | if (PyErr_Occurred()) SWIG_fail; | |
1099 | } | |
1100 | } | |
d14a1e28 RD |
1101 | if (obj7) { |
1102 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1103 | if (arg8 == NULL) { | |
1104 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1105 | } | |
1106 | } | |
1107 | if (obj8) { | |
1108 | { | |
1109 | arg9 = wxString_in_helper(obj8); | |
1110 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1111 | temp9 = True; |
d14a1e28 RD |
1112 | } |
1113 | } | |
1114 | { | |
1115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1116 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1117 | ||
1118 | wxPyEndAllowThreads(__tstate); | |
1119 | if (PyErr_Occurred()) SWIG_fail; | |
1120 | } | |
4e760a36 | 1121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1122 | { |
1123 | if (temp4) | |
1124 | delete arg4; | |
1125 | } | |
1126 | { | |
1127 | if (temp9) | |
1128 | delete arg9; | |
1129 | } | |
1130 | return resultobj; | |
1131 | fail: | |
1132 | { | |
1133 | if (temp4) | |
1134 | delete arg4; | |
1135 | } | |
1136 | { | |
1137 | if (temp9) | |
1138 | delete arg9; | |
1139 | } | |
1140 | return NULL; | |
1141 | } | |
1142 | ||
1143 | ||
1144 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1145 | PyObject *resultobj; | |
1146 | wxButton *arg1 = (wxButton *) 0 ; | |
1147 | PyObject * obj0 = 0 ; | |
1148 | char *kwnames[] = { | |
1149 | (char *) "self", NULL | |
1150 | }; | |
1151 | ||
1152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1154 | { | |
1155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1156 | (arg1)->SetDefault(); | |
1157 | ||
1158 | wxPyEndAllowThreads(__tstate); | |
1159 | if (PyErr_Occurred()) SWIG_fail; | |
1160 | } | |
1161 | Py_INCREF(Py_None); resultobj = Py_None; | |
1162 | return resultobj; | |
1163 | fail: | |
1164 | return NULL; | |
1165 | } | |
1166 | ||
1167 | ||
1168 | static PyObject *_wrap_Button_SetImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1169 | PyObject *resultobj; | |
1170 | wxButton *arg1 = (wxButton *) 0 ; | |
1171 | wxBitmap *arg2 = 0 ; | |
1172 | PyObject * obj0 = 0 ; | |
1173 | PyObject * obj1 = 0 ; | |
1174 | char *kwnames[] = { | |
1175 | (char *) "self",(char *) "bitmap", NULL | |
1176 | }; | |
1177 | ||
1178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Button_SetImageLabel",kwnames,&obj0,&obj1)) goto fail; | |
1179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1180 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1181 | if (arg2 == NULL) { | |
1182 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1183 | } | |
1184 | { | |
1185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1186 | (arg1)->SetImageLabel((wxBitmap const &)*arg2); | |
1187 | ||
1188 | wxPyEndAllowThreads(__tstate); | |
1189 | if (PyErr_Occurred()) SWIG_fail; | |
1190 | } | |
1191 | Py_INCREF(Py_None); resultobj = Py_None; | |
1192 | return resultobj; | |
1193 | fail: | |
1194 | return NULL; | |
1195 | } | |
1196 | ||
1197 | ||
1198 | static PyObject *_wrap_Button_SetImageMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1199 | PyObject *resultobj; | |
1200 | wxButton *arg1 = (wxButton *) 0 ; | |
423f194a RD |
1201 | int arg2 ; |
1202 | int arg3 ; | |
d14a1e28 | 1203 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
1204 | PyObject * obj1 = 0 ; |
1205 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1206 | char *kwnames[] = { |
1207 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1208 | }; | |
1209 | ||
8edf1c75 | 1210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Button_SetImageMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1212 | { |
1213 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1214 | if (PyErr_Occurred()) SWIG_fail; | |
1215 | } | |
1216 | { | |
1217 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1218 | if (PyErr_Occurred()) SWIG_fail; | |
1219 | } | |
d14a1e28 RD |
1220 | { |
1221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1222 | (arg1)->SetImageMargins(arg2,arg3); | |
1223 | ||
1224 | wxPyEndAllowThreads(__tstate); | |
1225 | if (PyErr_Occurred()) SWIG_fail; | |
1226 | } | |
1227 | Py_INCREF(Py_None); resultobj = Py_None; | |
1228 | return resultobj; | |
1229 | fail: | |
1230 | return NULL; | |
1231 | } | |
1232 | ||
1233 | ||
1234 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1235 | PyObject *resultobj; | |
1236 | wxSize result; | |
1237 | char *kwnames[] = { | |
1238 | NULL | |
1239 | }; | |
1240 | ||
1241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1242 | { | |
1243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1244 | result = wxButton::GetDefaultSize(); | |
1245 | ||
1246 | wxPyEndAllowThreads(__tstate); | |
1247 | if (PyErr_Occurred()) SWIG_fail; | |
1248 | } | |
1249 | { | |
1250 | wxSize * resultptr; | |
1251 | resultptr = new wxSize((wxSize &) result); | |
1252 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1253 | } | |
1254 | return resultobj; | |
1255 | fail: | |
1256 | return NULL; | |
1257 | } | |
1258 | ||
1259 | ||
1260 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { | |
1261 | PyObject *obj; | |
1262 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1263 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1264 | Py_INCREF(obj); | |
1265 | return Py_BuildValue((char *)""); | |
1266 | } | |
1267 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1268 | PyObject *resultobj; | |
1269 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1270 | int arg2 ; |
d14a1e28 RD |
1271 | wxBitmap *arg3 = 0 ; |
1272 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1273 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1274 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1275 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1276 | long arg6 = (long) wxBU_AUTODRAW ; | |
1277 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1278 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1279 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1280 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1281 | wxBitmapButton *result; | |
1282 | wxPoint temp4 ; | |
1283 | wxSize temp5 ; | |
423f194a | 1284 | bool temp8 = False ; |
d14a1e28 | 1285 | PyObject * obj0 = 0 ; |
8edf1c75 | 1286 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1287 | PyObject * obj2 = 0 ; |
1288 | PyObject * obj3 = 0 ; | |
1289 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1290 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1291 | PyObject * obj6 = 0 ; |
1292 | PyObject * obj7 = 0 ; | |
1293 | char *kwnames[] = { | |
1294 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1295 | }; | |
1296 | ||
8edf1c75 | 1297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 1298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1299 | { |
1300 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1301 | if (PyErr_Occurred()) SWIG_fail; | |
1302 | } | |
d14a1e28 RD |
1303 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1304 | if (arg3 == NULL) { | |
1305 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1306 | } | |
1307 | if (obj3) { | |
1308 | { | |
1309 | arg4 = &temp4; | |
1310 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1311 | } | |
1312 | } | |
1313 | if (obj4) { | |
1314 | { | |
1315 | arg5 = &temp5; | |
1316 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1317 | } | |
1318 | } | |
8edf1c75 RD |
1319 | if (obj5) { |
1320 | { | |
1321 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1322 | if (PyErr_Occurred()) SWIG_fail; | |
1323 | } | |
1324 | } | |
d14a1e28 RD |
1325 | if (obj6) { |
1326 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1327 | if (arg7 == NULL) { | |
1328 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1329 | } | |
1330 | } | |
1331 | if (obj7) { | |
1332 | { | |
1333 | arg8 = wxString_in_helper(obj7); | |
1334 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1335 | temp8 = True; |
d14a1e28 RD |
1336 | } |
1337 | } | |
1338 | { | |
1339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1340 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1341 | ||
1342 | wxPyEndAllowThreads(__tstate); | |
1343 | if (PyErr_Occurred()) SWIG_fail; | |
1344 | } | |
1345 | { | |
1346 | resultobj = wxPyMake_wxObject(result); | |
1347 | } | |
1348 | { | |
1349 | if (temp8) | |
1350 | delete arg8; | |
1351 | } | |
1352 | return resultobj; | |
1353 | fail: | |
1354 | { | |
1355 | if (temp8) | |
1356 | delete arg8; | |
1357 | } | |
1358 | return NULL; | |
1359 | } | |
1360 | ||
1361 | ||
1362 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1363 | PyObject *resultobj; | |
1364 | wxBitmapButton *result; | |
1365 | char *kwnames[] = { | |
1366 | NULL | |
1367 | }; | |
1368 | ||
1369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1370 | { | |
1371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1372 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1373 | ||
1374 | wxPyEndAllowThreads(__tstate); | |
1375 | if (PyErr_Occurred()) SWIG_fail; | |
1376 | } | |
1377 | { | |
1378 | resultobj = wxPyMake_wxObject(result); | |
1379 | } | |
1380 | return resultobj; | |
1381 | fail: | |
1382 | return NULL; | |
1383 | } | |
1384 | ||
1385 | ||
1386 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1387 | PyObject *resultobj; | |
1388 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1389 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1390 | int arg3 ; |
d14a1e28 RD |
1391 | wxBitmap *arg4 = 0 ; |
1392 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1393 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1394 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1395 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1396 | long arg7 = (long) wxBU_AUTODRAW ; | |
1397 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1398 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1399 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1400 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1401 | bool result; | |
1402 | wxPoint temp5 ; | |
1403 | wxSize temp6 ; | |
423f194a | 1404 | bool temp9 = False ; |
d14a1e28 RD |
1405 | PyObject * obj0 = 0 ; |
1406 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1407 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1408 | PyObject * obj3 = 0 ; |
1409 | PyObject * obj4 = 0 ; | |
1410 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1411 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1412 | PyObject * obj7 = 0 ; |
1413 | PyObject * obj8 = 0 ; | |
1414 | char *kwnames[] = { | |
1415 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1416 | }; | |
1417 | ||
8edf1c75 | 1418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1420 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
1421 | { |
1422 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1423 | if (PyErr_Occurred()) SWIG_fail; | |
1424 | } | |
d14a1e28 RD |
1425 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1426 | if (arg4 == NULL) { | |
1427 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1428 | } | |
1429 | if (obj4) { | |
1430 | { | |
1431 | arg5 = &temp5; | |
1432 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1433 | } | |
1434 | } | |
1435 | if (obj5) { | |
1436 | { | |
1437 | arg6 = &temp6; | |
1438 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1439 | } | |
1440 | } | |
8edf1c75 RD |
1441 | if (obj6) { |
1442 | { | |
1443 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1444 | if (PyErr_Occurred()) SWIG_fail; | |
1445 | } | |
1446 | } | |
d14a1e28 RD |
1447 | if (obj7) { |
1448 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1449 | if (arg8 == NULL) { | |
1450 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1451 | } | |
1452 | } | |
1453 | if (obj8) { | |
1454 | { | |
1455 | arg9 = wxString_in_helper(obj8); | |
1456 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1457 | temp9 = True; |
d14a1e28 RD |
1458 | } |
1459 | } | |
1460 | { | |
1461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1462 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1463 | ||
1464 | wxPyEndAllowThreads(__tstate); | |
1465 | if (PyErr_Occurred()) SWIG_fail; | |
1466 | } | |
4e760a36 | 1467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1468 | { |
1469 | if (temp9) | |
1470 | delete arg9; | |
1471 | } | |
1472 | return resultobj; | |
1473 | fail: | |
1474 | { | |
1475 | if (temp9) | |
1476 | delete arg9; | |
1477 | } | |
1478 | return NULL; | |
1479 | } | |
1480 | ||
1481 | ||
1482 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1483 | PyObject *resultobj; | |
1484 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1485 | wxBitmap result; | |
1486 | PyObject * obj0 = 0 ; | |
1487 | char *kwnames[] = { | |
1488 | (char *) "self", NULL | |
1489 | }; | |
1490 | ||
1491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1493 | { | |
1494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1495 | result = (arg1)->GetBitmapLabel(); | |
1496 | ||
1497 | wxPyEndAllowThreads(__tstate); | |
1498 | if (PyErr_Occurred()) SWIG_fail; | |
1499 | } | |
1500 | { | |
1501 | wxBitmap * resultptr; | |
1502 | resultptr = new wxBitmap((wxBitmap &) result); | |
1503 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1504 | } | |
1505 | return resultobj; | |
1506 | fail: | |
1507 | return NULL; | |
1508 | } | |
1509 | ||
1510 | ||
1511 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1512 | PyObject *resultobj; | |
1513 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1514 | wxBitmap result; | |
1515 | PyObject * obj0 = 0 ; | |
1516 | char *kwnames[] = { | |
1517 | (char *) "self", NULL | |
1518 | }; | |
1519 | ||
1520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1522 | { | |
1523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1524 | result = (arg1)->GetBitmapDisabled(); | |
1525 | ||
1526 | wxPyEndAllowThreads(__tstate); | |
1527 | if (PyErr_Occurred()) SWIG_fail; | |
1528 | } | |
1529 | { | |
1530 | wxBitmap * resultptr; | |
1531 | resultptr = new wxBitmap((wxBitmap &) result); | |
1532 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1533 | } | |
1534 | return resultobj; | |
1535 | fail: | |
1536 | return NULL; | |
1537 | } | |
1538 | ||
1539 | ||
1540 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1541 | PyObject *resultobj; | |
1542 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1543 | wxBitmap result; | |
1544 | PyObject * obj0 = 0 ; | |
1545 | char *kwnames[] = { | |
1546 | (char *) "self", NULL | |
1547 | }; | |
1548 | ||
1549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1551 | { | |
1552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1553 | result = (arg1)->GetBitmapFocus(); | |
1554 | ||
1555 | wxPyEndAllowThreads(__tstate); | |
1556 | if (PyErr_Occurred()) SWIG_fail; | |
1557 | } | |
1558 | { | |
1559 | wxBitmap * resultptr; | |
1560 | resultptr = new wxBitmap((wxBitmap &) result); | |
1561 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1562 | } | |
1563 | return resultobj; | |
1564 | fail: | |
1565 | return NULL; | |
1566 | } | |
1567 | ||
1568 | ||
1569 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1570 | PyObject *resultobj; | |
1571 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1572 | wxBitmap result; | |
1573 | PyObject * obj0 = 0 ; | |
1574 | char *kwnames[] = { | |
1575 | (char *) "self", NULL | |
1576 | }; | |
1577 | ||
1578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1580 | { | |
1581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1582 | result = (arg1)->GetBitmapSelected(); | |
1583 | ||
1584 | wxPyEndAllowThreads(__tstate); | |
1585 | if (PyErr_Occurred()) SWIG_fail; | |
1586 | } | |
1587 | { | |
1588 | wxBitmap * resultptr; | |
1589 | resultptr = new wxBitmap((wxBitmap &) result); | |
1590 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1591 | } | |
1592 | return resultobj; | |
1593 | fail: | |
1594 | return NULL; | |
1595 | } | |
1596 | ||
1597 | ||
1598 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1599 | PyObject *resultobj; | |
1600 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1601 | wxBitmap *arg2 = 0 ; | |
1602 | PyObject * obj0 = 0 ; | |
1603 | PyObject * obj1 = 0 ; | |
1604 | char *kwnames[] = { | |
1605 | (char *) "self",(char *) "bitmap", NULL | |
1606 | }; | |
1607 | ||
1608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1610 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1611 | if (arg2 == NULL) { | |
1612 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1613 | } | |
1614 | { | |
1615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1616 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1617 | ||
1618 | wxPyEndAllowThreads(__tstate); | |
1619 | if (PyErr_Occurred()) SWIG_fail; | |
1620 | } | |
1621 | Py_INCREF(Py_None); resultobj = Py_None; | |
1622 | return resultobj; | |
1623 | fail: | |
1624 | return NULL; | |
1625 | } | |
1626 | ||
1627 | ||
1628 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1629 | PyObject *resultobj; | |
1630 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1631 | wxBitmap *arg2 = 0 ; | |
1632 | PyObject * obj0 = 0 ; | |
1633 | PyObject * obj1 = 0 ; | |
1634 | char *kwnames[] = { | |
1635 | (char *) "self",(char *) "bitmap", NULL | |
1636 | }; | |
1637 | ||
1638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1640 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1641 | if (arg2 == NULL) { | |
1642 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1643 | } | |
1644 | { | |
1645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1646 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1647 | ||
1648 | wxPyEndAllowThreads(__tstate); | |
1649 | if (PyErr_Occurred()) SWIG_fail; | |
1650 | } | |
1651 | Py_INCREF(Py_None); resultobj = Py_None; | |
1652 | return resultobj; | |
1653 | fail: | |
1654 | return NULL; | |
1655 | } | |
1656 | ||
1657 | ||
1658 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1659 | PyObject *resultobj; | |
1660 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1661 | wxBitmap *arg2 = 0 ; | |
1662 | PyObject * obj0 = 0 ; | |
1663 | PyObject * obj1 = 0 ; | |
1664 | char *kwnames[] = { | |
1665 | (char *) "self",(char *) "bitmap", NULL | |
1666 | }; | |
1667 | ||
1668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1670 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1671 | if (arg2 == NULL) { | |
1672 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1673 | } | |
1674 | { | |
1675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1676 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1677 | ||
1678 | wxPyEndAllowThreads(__tstate); | |
1679 | if (PyErr_Occurred()) SWIG_fail; | |
1680 | } | |
1681 | Py_INCREF(Py_None); resultobj = Py_None; | |
1682 | return resultobj; | |
1683 | fail: | |
1684 | return NULL; | |
1685 | } | |
1686 | ||
1687 | ||
1688 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1689 | PyObject *resultobj; | |
1690 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1691 | wxBitmap *arg2 = 0 ; | |
1692 | PyObject * obj0 = 0 ; | |
1693 | PyObject * obj1 = 0 ; | |
1694 | char *kwnames[] = { | |
1695 | (char *) "self",(char *) "bitmap", NULL | |
1696 | }; | |
1697 | ||
1698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1700 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1701 | if (arg2 == NULL) { | |
1702 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1703 | } | |
1704 | { | |
1705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1706 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1707 | ||
1708 | wxPyEndAllowThreads(__tstate); | |
1709 | if (PyErr_Occurred()) SWIG_fail; | |
1710 | } | |
1711 | Py_INCREF(Py_None); resultobj = Py_None; | |
1712 | return resultobj; | |
1713 | fail: | |
1714 | return NULL; | |
1715 | } | |
1716 | ||
1717 | ||
1718 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1719 | PyObject *resultobj; | |
1720 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1721 | int arg2 ; | |
1722 | int arg3 ; | |
1723 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1724 | PyObject * obj1 = 0 ; |
1725 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1726 | char *kwnames[] = { |
1727 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1728 | }; | |
1729 | ||
8edf1c75 | 1730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1732 | { |
1733 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1734 | if (PyErr_Occurred()) SWIG_fail; | |
1735 | } | |
1736 | { | |
1737 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1738 | if (PyErr_Occurred()) SWIG_fail; | |
1739 | } | |
d14a1e28 RD |
1740 | { |
1741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1742 | (arg1)->SetMargins(arg2,arg3); | |
1743 | ||
1744 | wxPyEndAllowThreads(__tstate); | |
1745 | if (PyErr_Occurred()) SWIG_fail; | |
1746 | } | |
1747 | Py_INCREF(Py_None); resultobj = Py_None; | |
1748 | return resultobj; | |
1749 | fail: | |
1750 | return NULL; | |
1751 | } | |
1752 | ||
1753 | ||
1754 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1755 | PyObject *resultobj; | |
1756 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1757 | int result; | |
1758 | PyObject * obj0 = 0 ; | |
1759 | char *kwnames[] = { | |
1760 | (char *) "self", NULL | |
1761 | }; | |
1762 | ||
1763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
1764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1765 | { | |
1766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1767 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1768 | ||
1769 | wxPyEndAllowThreads(__tstate); | |
1770 | if (PyErr_Occurred()) SWIG_fail; | |
1771 | } | |
8edf1c75 | 1772 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1773 | return resultobj; |
1774 | fail: | |
1775 | return NULL; | |
1776 | } | |
1777 | ||
1778 | ||
1779 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1780 | PyObject *resultobj; | |
1781 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1782 | int result; | |
1783 | PyObject * obj0 = 0 ; | |
1784 | char *kwnames[] = { | |
1785 | (char *) "self", NULL | |
1786 | }; | |
1787 | ||
1788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
1789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1790 | { | |
1791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1792 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1793 | ||
1794 | wxPyEndAllowThreads(__tstate); | |
1795 | if (PyErr_Occurred()) SWIG_fail; | |
1796 | } | |
8edf1c75 | 1797 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1798 | return resultobj; |
1799 | fail: | |
1800 | return NULL; | |
1801 | } | |
1802 | ||
1803 | ||
1804 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1805 | PyObject *obj; | |
1806 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1807 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1808 | Py_INCREF(obj); | |
1809 | return Py_BuildValue((char *)""); | |
1810 | } | |
8edf1c75 | 1811 | static int _wrap_CheckBoxNameStr_set(PyObject *) { |
d03fd34d RD |
1812 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
1813 | return 1; | |
1814 | } | |
1815 | ||
1816 | ||
1817 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1818 | PyObject *pyobj; | |
1819 | ||
1820 | { | |
1821 | #if wxUSE_UNICODE | |
1822 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1823 | #else | |
1824 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1825 | #endif | |
1826 | } | |
1827 | return pyobj; | |
1828 | } | |
1829 | ||
1830 | ||
d14a1e28 RD |
1831 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
1832 | PyObject *resultobj; | |
1833 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1834 | int arg2 ; |
d14a1e28 RD |
1835 | wxString *arg3 = 0 ; |
1836 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1837 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1838 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1839 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1840 | long arg6 = (long) 0 ; | |
1841 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1842 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1843 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1844 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1845 | wxCheckBox *result; | |
423f194a | 1846 | bool temp3 = False ; |
d14a1e28 RD |
1847 | wxPoint temp4 ; |
1848 | wxSize temp5 ; | |
423f194a | 1849 | bool temp8 = False ; |
d14a1e28 | 1850 | PyObject * obj0 = 0 ; |
8edf1c75 | 1851 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1852 | PyObject * obj2 = 0 ; |
1853 | PyObject * obj3 = 0 ; | |
1854 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1855 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1856 | PyObject * obj6 = 0 ; |
1857 | PyObject * obj7 = 0 ; | |
1858 | char *kwnames[] = { | |
1859 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1860 | }; | |
1861 | ||
8edf1c75 | 1862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 1863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1864 | { |
1865 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1866 | if (PyErr_Occurred()) SWIG_fail; | |
1867 | } | |
d14a1e28 RD |
1868 | { |
1869 | arg3 = wxString_in_helper(obj2); | |
1870 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 1871 | temp3 = True; |
d14a1e28 RD |
1872 | } |
1873 | if (obj3) { | |
1874 | { | |
1875 | arg4 = &temp4; | |
1876 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1877 | } | |
1878 | } | |
1879 | if (obj4) { | |
1880 | { | |
1881 | arg5 = &temp5; | |
1882 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1883 | } | |
1884 | } | |
8edf1c75 RD |
1885 | if (obj5) { |
1886 | { | |
1887 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1888 | if (PyErr_Occurred()) SWIG_fail; | |
1889 | } | |
1890 | } | |
d14a1e28 RD |
1891 | if (obj6) { |
1892 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1893 | if (arg7 == NULL) { | |
1894 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1895 | } | |
1896 | } | |
1897 | if (obj7) { | |
1898 | { | |
1899 | arg8 = wxString_in_helper(obj7); | |
1900 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1901 | temp8 = True; |
d14a1e28 RD |
1902 | } |
1903 | } | |
1904 | { | |
1905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1906 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1907 | ||
1908 | wxPyEndAllowThreads(__tstate); | |
1909 | if (PyErr_Occurred()) SWIG_fail; | |
1910 | } | |
1911 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1912 | { | |
1913 | if (temp3) | |
1914 | delete arg3; | |
1915 | } | |
1916 | { | |
1917 | if (temp8) | |
1918 | delete arg8; | |
1919 | } | |
1920 | return resultobj; | |
1921 | fail: | |
1922 | { | |
1923 | if (temp3) | |
1924 | delete arg3; | |
1925 | } | |
1926 | { | |
1927 | if (temp8) | |
1928 | delete arg8; | |
1929 | } | |
1930 | return NULL; | |
1931 | } | |
1932 | ||
1933 | ||
1934 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1935 | PyObject *resultobj; | |
1936 | wxCheckBox *result; | |
1937 | char *kwnames[] = { | |
1938 | NULL | |
1939 | }; | |
1940 | ||
1941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
1942 | { | |
1943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1944 | result = (wxCheckBox *)new wxCheckBox(); | |
1945 | ||
1946 | wxPyEndAllowThreads(__tstate); | |
1947 | if (PyErr_Occurred()) SWIG_fail; | |
1948 | } | |
1949 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1950 | return resultobj; | |
1951 | fail: | |
1952 | return NULL; | |
1953 | } | |
1954 | ||
1955 | ||
1956 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1957 | PyObject *resultobj; | |
1958 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1959 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1960 | int arg3 ; |
d14a1e28 RD |
1961 | wxString *arg4 = 0 ; |
1962 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1963 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1964 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1965 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1966 | long arg7 = (long) 0 ; | |
1967 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1968 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1969 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
1970 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1971 | bool result; | |
423f194a | 1972 | bool temp4 = False ; |
d14a1e28 RD |
1973 | wxPoint temp5 ; |
1974 | wxSize temp6 ; | |
423f194a | 1975 | bool temp9 = False ; |
d14a1e28 RD |
1976 | PyObject * obj0 = 0 ; |
1977 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1978 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1979 | PyObject * obj3 = 0 ; |
1980 | PyObject * obj4 = 0 ; | |
1981 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1982 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1983 | PyObject * obj7 = 0 ; |
1984 | PyObject * obj8 = 0 ; | |
1985 | char *kwnames[] = { | |
1986 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1987 | }; | |
1988 | ||
8edf1c75 | 1989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1991 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
1992 | { |
1993 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1994 | if (PyErr_Occurred()) SWIG_fail; | |
1995 | } | |
d14a1e28 RD |
1996 | { |
1997 | arg4 = wxString_in_helper(obj3); | |
1998 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 1999 | temp4 = True; |
d14a1e28 RD |
2000 | } |
2001 | if (obj4) { | |
2002 | { | |
2003 | arg5 = &temp5; | |
2004 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2005 | } | |
2006 | } | |
2007 | if (obj5) { | |
2008 | { | |
2009 | arg6 = &temp6; | |
2010 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2011 | } | |
2012 | } | |
8edf1c75 RD |
2013 | if (obj6) { |
2014 | { | |
2015 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
2016 | if (PyErr_Occurred()) SWIG_fail; | |
2017 | } | |
2018 | } | |
d14a1e28 RD |
2019 | if (obj7) { |
2020 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2021 | if (arg8 == NULL) { | |
2022 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2023 | } | |
2024 | } | |
2025 | if (obj8) { | |
2026 | { | |
2027 | arg9 = wxString_in_helper(obj8); | |
2028 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2029 | temp9 = True; |
d14a1e28 RD |
2030 | } |
2031 | } | |
2032 | { | |
2033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2034 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2035 | ||
2036 | wxPyEndAllowThreads(__tstate); | |
2037 | if (PyErr_Occurred()) SWIG_fail; | |
2038 | } | |
4e760a36 | 2039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2040 | { |
2041 | if (temp4) | |
2042 | delete arg4; | |
2043 | } | |
2044 | { | |
2045 | if (temp9) | |
2046 | delete arg9; | |
2047 | } | |
2048 | return resultobj; | |
2049 | fail: | |
2050 | { | |
2051 | if (temp4) | |
2052 | delete arg4; | |
2053 | } | |
2054 | { | |
2055 | if (temp9) | |
2056 | delete arg9; | |
2057 | } | |
2058 | return NULL; | |
2059 | } | |
2060 | ||
2061 | ||
2062 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2063 | PyObject *resultobj; | |
2064 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2065 | bool result; | |
2066 | PyObject * obj0 = 0 ; | |
2067 | char *kwnames[] = { | |
2068 | (char *) "self", NULL | |
2069 | }; | |
2070 | ||
2071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
2072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2073 | { | |
2074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2075 | result = (bool)(arg1)->GetValue(); | |
2076 | ||
2077 | wxPyEndAllowThreads(__tstate); | |
2078 | if (PyErr_Occurred()) SWIG_fail; | |
2079 | } | |
4e760a36 | 2080 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2081 | return resultobj; |
2082 | fail: | |
2083 | return NULL; | |
2084 | } | |
2085 | ||
2086 | ||
2087 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2088 | PyObject *resultobj; | |
2089 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2090 | bool result; | |
2091 | PyObject * obj0 = 0 ; | |
2092 | char *kwnames[] = { | |
2093 | (char *) "self", NULL | |
2094 | }; | |
2095 | ||
2096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2098 | { | |
2099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2100 | result = (bool)(arg1)->IsChecked(); | |
2101 | ||
2102 | wxPyEndAllowThreads(__tstate); | |
2103 | if (PyErr_Occurred()) SWIG_fail; | |
2104 | } | |
4e760a36 | 2105 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2106 | return resultobj; |
2107 | fail: | |
2108 | return NULL; | |
2109 | } | |
2110 | ||
2111 | ||
2112 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2113 | PyObject *resultobj; | |
2114 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2115 | bool arg2 ; | |
2116 | PyObject * obj0 = 0 ; | |
2117 | PyObject * obj1 = 0 ; | |
2118 | char *kwnames[] = { | |
2119 | (char *) "self",(char *) "state", NULL | |
2120 | }; | |
2121 | ||
2122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 2124 | { |
8edf1c75 | 2125 | arg2 = (bool const) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
2126 | if (PyErr_Occurred()) SWIG_fail; |
2127 | } | |
d14a1e28 RD |
2128 | { |
2129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2130 | (arg1)->SetValue(arg2); | |
2131 | ||
2132 | wxPyEndAllowThreads(__tstate); | |
2133 | if (PyErr_Occurred()) SWIG_fail; | |
2134 | } | |
2135 | Py_INCREF(Py_None); resultobj = Py_None; | |
2136 | return resultobj; | |
2137 | fail: | |
2138 | return NULL; | |
2139 | } | |
2140 | ||
2141 | ||
2142 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2143 | PyObject *resultobj; | |
2144 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2145 | int result; | |
2146 | PyObject * obj0 = 0 ; | |
2147 | char *kwnames[] = { | |
2148 | (char *) "self", NULL | |
2149 | }; | |
2150 | ||
2151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2153 | { | |
2154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2155 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2156 | ||
2157 | wxPyEndAllowThreads(__tstate); | |
2158 | if (PyErr_Occurred()) SWIG_fail; | |
2159 | } | |
8edf1c75 | 2160 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2161 | return resultobj; |
2162 | fail: | |
2163 | return NULL; | |
2164 | } | |
2165 | ||
2166 | ||
2167 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2168 | PyObject *resultobj; | |
2169 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2170 | int arg2 ; | |
2171 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2172 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2173 | char *kwnames[] = { |
2174 | (char *) "self",(char *) "state", NULL | |
2175 | }; | |
2176 | ||
8edf1c75 | 2177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2179 | { |
2180 | arg2 = (wxCheckBoxState) SWIG_PyObj_AsInt(obj1); | |
2181 | if (PyErr_Occurred()) SWIG_fail; | |
2182 | } | |
d14a1e28 RD |
2183 | { |
2184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2185 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2186 | ||
2187 | wxPyEndAllowThreads(__tstate); | |
2188 | if (PyErr_Occurred()) SWIG_fail; | |
2189 | } | |
2190 | Py_INCREF(Py_None); resultobj = Py_None; | |
2191 | return resultobj; | |
2192 | fail: | |
2193 | return NULL; | |
2194 | } | |
2195 | ||
2196 | ||
2197 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2198 | PyObject *resultobj; | |
2199 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2200 | bool result; | |
2201 | PyObject * obj0 = 0 ; | |
2202 | char *kwnames[] = { | |
2203 | (char *) "self", NULL | |
2204 | }; | |
2205 | ||
2206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2208 | { | |
2209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2210 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2211 | ||
2212 | wxPyEndAllowThreads(__tstate); | |
2213 | if (PyErr_Occurred()) SWIG_fail; | |
2214 | } | |
4e760a36 | 2215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2216 | return resultobj; |
2217 | fail: | |
2218 | return NULL; | |
2219 | } | |
2220 | ||
2221 | ||
2222 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2223 | PyObject *resultobj; | |
2224 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2225 | bool result; | |
2226 | PyObject * obj0 = 0 ; | |
2227 | char *kwnames[] = { | |
2228 | (char *) "self", NULL | |
2229 | }; | |
2230 | ||
2231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2233 | { | |
2234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2235 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2236 | ||
2237 | wxPyEndAllowThreads(__tstate); | |
2238 | if (PyErr_Occurred()) SWIG_fail; | |
2239 | } | |
4e760a36 | 2240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2241 | return resultobj; |
2242 | fail: | |
2243 | return NULL; | |
2244 | } | |
2245 | ||
2246 | ||
2247 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { | |
2248 | PyObject *obj; | |
2249 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2250 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2251 | Py_INCREF(obj); | |
2252 | return Py_BuildValue((char *)""); | |
2253 | } | |
8edf1c75 | 2254 | static int _wrap_ChoiceNameStr_set(PyObject *) { |
d03fd34d RD |
2255 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
2256 | return 1; | |
2257 | } | |
2258 | ||
2259 | ||
2260 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2261 | PyObject *pyobj; | |
2262 | ||
2263 | { | |
2264 | #if wxUSE_UNICODE | |
2265 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2266 | #else | |
2267 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2268 | #endif | |
2269 | } | |
2270 | return pyobj; | |
2271 | } | |
2272 | ||
2273 | ||
d14a1e28 RD |
2274 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { |
2275 | PyObject *resultobj; | |
2276 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2277 | int arg2 ; |
d14a1e28 RD |
2278 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2279 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2280 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2281 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4e760a36 RD |
2282 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
2283 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2284 | long arg6 = (long) 0 ; | |
2285 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2286 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2287 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2288 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
2289 | wxChoice *result; |
2290 | wxPoint temp3 ; | |
2291 | wxSize temp4 ; | |
db914595 | 2292 | bool temp5 = False ; |
423f194a | 2293 | bool temp8 = False ; |
d14a1e28 | 2294 | PyObject * obj0 = 0 ; |
8edf1c75 | 2295 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2296 | PyObject * obj2 = 0 ; |
2297 | PyObject * obj3 = 0 ; | |
2298 | PyObject * obj4 = 0 ; | |
8edf1c75 | 2299 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2300 | PyObject * obj6 = 0 ; |
2301 | PyObject * obj7 = 0 ; | |
2302 | char *kwnames[] = { | |
2303 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2304 | }; | |
2305 | ||
8edf1c75 | 2306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 2307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2308 | { |
2309 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2310 | if (PyErr_Occurred()) SWIG_fail; | |
2311 | } | |
d14a1e28 RD |
2312 | if (obj2) { |
2313 | { | |
2314 | arg3 = &temp3; | |
2315 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2316 | } | |
2317 | } | |
2318 | if (obj3) { | |
2319 | { | |
2320 | arg4 = &temp4; | |
2321 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2322 | } | |
2323 | } | |
2324 | if (obj4) { | |
2325 | { | |
4e760a36 RD |
2326 | if (! PySequence_Check(obj4)) { |
2327 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2328 | SWIG_fail; | |
2329 | } | |
2330 | arg5 = new wxArrayString; | |
db914595 | 2331 | temp5 = True; |
4e760a36 RD |
2332 | int i, len=PySequence_Length(obj4); |
2333 | for (i=0; i<len; i++) { | |
2334 | PyObject* item = PySequence_GetItem(obj4, i); | |
2335 | #if wxUSE_UNICODE | |
2336 | PyObject* str = PyObject_Unicode(item); | |
2337 | #else | |
2338 | PyObject* str = PyObject_Str(item); | |
2339 | #endif | |
2340 | arg5->Add(Py2wxString(str)); | |
2341 | Py_DECREF(item); | |
2342 | Py_DECREF(str); | |
2343 | } | |
d14a1e28 RD |
2344 | } |
2345 | } | |
8edf1c75 RD |
2346 | if (obj5) { |
2347 | { | |
4e760a36 | 2348 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
2349 | if (PyErr_Occurred()) SWIG_fail; |
2350 | } | |
2351 | } | |
d14a1e28 | 2352 | if (obj6) { |
4e760a36 RD |
2353 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2354 | if (arg7 == NULL) { | |
d14a1e28 RD |
2355 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2356 | } | |
2357 | } | |
2358 | if (obj7) { | |
2359 | { | |
4e760a36 RD |
2360 | arg8 = wxString_in_helper(obj7); |
2361 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 2362 | temp8 = True; |
d14a1e28 RD |
2363 | } |
2364 | } | |
2365 | { | |
2366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 2367 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
2368 | |
2369 | wxPyEndAllowThreads(__tstate); | |
2370 | if (PyErr_Occurred()) SWIG_fail; | |
2371 | } | |
2372 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2373 | { | |
db914595 | 2374 | if (temp5) delete arg5; |
d14a1e28 RD |
2375 | } |
2376 | { | |
2377 | if (temp8) | |
4e760a36 | 2378 | delete arg8; |
d14a1e28 RD |
2379 | } |
2380 | return resultobj; | |
2381 | fail: | |
2382 | { | |
db914595 | 2383 | if (temp5) delete arg5; |
d14a1e28 RD |
2384 | } |
2385 | { | |
2386 | if (temp8) | |
4e760a36 | 2387 | delete arg8; |
d14a1e28 RD |
2388 | } |
2389 | return NULL; | |
2390 | } | |
2391 | ||
2392 | ||
2393 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2394 | PyObject *resultobj; | |
2395 | wxChoice *result; | |
2396 | char *kwnames[] = { | |
2397 | NULL | |
2398 | }; | |
2399 | ||
2400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2401 | { | |
2402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2403 | result = (wxChoice *)new wxChoice(); | |
2404 | ||
2405 | wxPyEndAllowThreads(__tstate); | |
2406 | if (PyErr_Occurred()) SWIG_fail; | |
2407 | } | |
2408 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2409 | return resultobj; | |
2410 | fail: | |
2411 | return NULL; | |
2412 | } | |
2413 | ||
2414 | ||
2415 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2416 | PyObject *resultobj; | |
2417 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2418 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2419 | int arg3 ; |
d14a1e28 RD |
2420 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2421 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2422 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2423 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
2424 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2425 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2426 | long arg7 = (long) 0 ; | |
2427 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2428 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2429 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2430 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
2431 | bool result; |
2432 | wxPoint temp4 ; | |
2433 | wxSize temp5 ; | |
db914595 | 2434 | bool temp6 = False ; |
423f194a | 2435 | bool temp9 = False ; |
d14a1e28 RD |
2436 | PyObject * obj0 = 0 ; |
2437 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2438 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2439 | PyObject * obj3 = 0 ; |
2440 | PyObject * obj4 = 0 ; | |
2441 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2442 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2443 | PyObject * obj7 = 0 ; |
2444 | PyObject * obj8 = 0 ; | |
2445 | char *kwnames[] = { | |
2446 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2447 | }; | |
2448 | ||
8edf1c75 | 2449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
2450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2451 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
2452 | { |
2453 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2454 | if (PyErr_Occurred()) SWIG_fail; | |
2455 | } | |
d14a1e28 RD |
2456 | if (obj3) { |
2457 | { | |
2458 | arg4 = &temp4; | |
2459 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2460 | } | |
2461 | } | |
2462 | if (obj4) { | |
2463 | { | |
2464 | arg5 = &temp5; | |
2465 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2466 | } | |
2467 | } | |
2468 | if (obj5) { | |
2469 | { | |
4e760a36 RD |
2470 | if (! PySequence_Check(obj5)) { |
2471 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2472 | SWIG_fail; | |
2473 | } | |
2474 | arg6 = new wxArrayString; | |
db914595 | 2475 | temp6 = True; |
4e760a36 RD |
2476 | int i, len=PySequence_Length(obj5); |
2477 | for (i=0; i<len; i++) { | |
2478 | PyObject* item = PySequence_GetItem(obj5, i); | |
2479 | #if wxUSE_UNICODE | |
2480 | PyObject* str = PyObject_Unicode(item); | |
2481 | #else | |
2482 | PyObject* str = PyObject_Str(item); | |
2483 | #endif | |
2484 | arg6->Add(Py2wxString(str)); | |
2485 | Py_DECREF(item); | |
2486 | Py_DECREF(str); | |
2487 | } | |
d14a1e28 RD |
2488 | } |
2489 | } | |
8edf1c75 RD |
2490 | if (obj6) { |
2491 | { | |
4e760a36 | 2492 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
2493 | if (PyErr_Occurred()) SWIG_fail; |
2494 | } | |
2495 | } | |
d14a1e28 | 2496 | if (obj7) { |
4e760a36 RD |
2497 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2498 | if (arg8 == NULL) { | |
d14a1e28 RD |
2499 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2500 | } | |
2501 | } | |
2502 | if (obj8) { | |
2503 | { | |
4e760a36 RD |
2504 | arg9 = wxString_in_helper(obj8); |
2505 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2506 | temp9 = True; |
d14a1e28 RD |
2507 | } |
2508 | } | |
2509 | { | |
2510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 2511 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
2512 | |
2513 | wxPyEndAllowThreads(__tstate); | |
2514 | if (PyErr_Occurred()) SWIG_fail; | |
2515 | } | |
4e760a36 | 2516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 2517 | { |
db914595 | 2518 | if (temp6) delete arg6; |
d14a1e28 RD |
2519 | } |
2520 | { | |
2521 | if (temp9) | |
4e760a36 | 2522 | delete arg9; |
d14a1e28 RD |
2523 | } |
2524 | return resultobj; | |
2525 | fail: | |
2526 | { | |
db914595 | 2527 | if (temp6) delete arg6; |
d14a1e28 RD |
2528 | } |
2529 | { | |
2530 | if (temp9) | |
4e760a36 | 2531 | delete arg9; |
d14a1e28 RD |
2532 | } |
2533 | return NULL; | |
2534 | } | |
2535 | ||
2536 | ||
2537 | static PyObject *_wrap_Choice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2538 | PyObject *resultobj; | |
2539 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2540 | int result; | |
2541 | PyObject * obj0 = 0 ; | |
2542 | char *kwnames[] = { | |
2543 | (char *) "self", NULL | |
2544 | }; | |
2545 | ||
2546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choice_GetColumns",kwnames,&obj0)) goto fail; | |
2547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2548 | { | |
2549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2550 | result = (int)(arg1)->GetColumns(); | |
2551 | ||
2552 | wxPyEndAllowThreads(__tstate); | |
2553 | if (PyErr_Occurred()) SWIG_fail; | |
2554 | } | |
8edf1c75 | 2555 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2556 | return resultobj; |
2557 | fail: | |
2558 | return NULL; | |
2559 | } | |
2560 | ||
2561 | ||
2562 | static PyObject *_wrap_Choice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2563 | PyObject *resultobj; | |
2564 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2565 | int arg2 = (int) (int)1 ; | |
2566 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2567 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2568 | char *kwnames[] = { |
2569 | (char *) "self",(char *) "n", NULL | |
2570 | }; | |
2571 | ||
8edf1c75 | 2572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Choice_SetColumns",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2574 | if (obj1) { |
2575 | { | |
2576 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
2577 | if (PyErr_Occurred()) SWIG_fail; | |
2578 | } | |
2579 | } | |
d14a1e28 RD |
2580 | { |
2581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2582 | (arg1)->SetColumns(arg2); | |
2583 | ||
2584 | wxPyEndAllowThreads(__tstate); | |
2585 | if (PyErr_Occurred()) SWIG_fail; | |
2586 | } | |
2587 | Py_INCREF(Py_None); resultobj = Py_None; | |
2588 | return resultobj; | |
2589 | fail: | |
2590 | return NULL; | |
2591 | } | |
2592 | ||
2593 | ||
2594 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2595 | PyObject *resultobj; | |
2596 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2597 | int arg2 ; | |
2598 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2599 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2600 | char *kwnames[] = { |
2601 | (char *) "self",(char *) "n", NULL | |
2602 | }; | |
2603 | ||
8edf1c75 | 2604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2606 | { |
2607 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
2608 | if (PyErr_Occurred()) SWIG_fail; | |
2609 | } | |
d14a1e28 RD |
2610 | { |
2611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2612 | (arg1)->SetSelection(arg2); | |
2613 | ||
2614 | wxPyEndAllowThreads(__tstate); | |
2615 | if (PyErr_Occurred()) SWIG_fail; | |
2616 | } | |
2617 | Py_INCREF(Py_None); resultobj = Py_None; | |
2618 | return resultobj; | |
2619 | fail: | |
2620 | return NULL; | |
2621 | } | |
2622 | ||
2623 | ||
2624 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2625 | PyObject *resultobj; | |
2626 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2627 | wxString *arg2 = 0 ; | |
423f194a | 2628 | bool temp2 = False ; |
d14a1e28 RD |
2629 | PyObject * obj0 = 0 ; |
2630 | PyObject * obj1 = 0 ; | |
2631 | char *kwnames[] = { | |
2632 | (char *) "self",(char *) "string", NULL | |
2633 | }; | |
2634 | ||
2635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2637 | { | |
2638 | arg2 = wxString_in_helper(obj1); | |
2639 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2640 | temp2 = True; |
d14a1e28 RD |
2641 | } |
2642 | { | |
2643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2644 | (arg1)->SetStringSelection((wxString const &)*arg2); | |
2645 | ||
2646 | wxPyEndAllowThreads(__tstate); | |
2647 | if (PyErr_Occurred()) SWIG_fail; | |
2648 | } | |
2649 | Py_INCREF(Py_None); resultobj = Py_None; | |
2650 | { | |
2651 | if (temp2) | |
2652 | delete arg2; | |
2653 | } | |
2654 | return resultobj; | |
2655 | fail: | |
2656 | { | |
2657 | if (temp2) | |
2658 | delete arg2; | |
2659 | } | |
2660 | return NULL; | |
2661 | } | |
2662 | ||
2663 | ||
2664 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2665 | PyObject *resultobj; | |
2666 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2667 | int arg2 ; | |
2668 | wxString *arg3 = 0 ; | |
423f194a | 2669 | bool temp3 = False ; |
d14a1e28 | 2670 | PyObject * obj0 = 0 ; |
8edf1c75 | 2671 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2672 | PyObject * obj2 = 0 ; |
2673 | char *kwnames[] = { | |
2674 | (char *) "self",(char *) "n",(char *) "s", NULL | |
2675 | }; | |
2676 | ||
8edf1c75 | 2677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2679 | { |
2680 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2681 | if (PyErr_Occurred()) SWIG_fail; | |
2682 | } | |
d14a1e28 RD |
2683 | { |
2684 | arg3 = wxString_in_helper(obj2); | |
2685 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2686 | temp3 = True; |
d14a1e28 RD |
2687 | } |
2688 | { | |
2689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2690 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2691 | ||
2692 | wxPyEndAllowThreads(__tstate); | |
2693 | if (PyErr_Occurred()) SWIG_fail; | |
2694 | } | |
2695 | Py_INCREF(Py_None); resultobj = Py_None; | |
2696 | { | |
2697 | if (temp3) | |
2698 | delete arg3; | |
2699 | } | |
2700 | return resultobj; | |
2701 | fail: | |
2702 | { | |
2703 | if (temp3) | |
2704 | delete arg3; | |
2705 | } | |
2706 | return NULL; | |
2707 | } | |
2708 | ||
2709 | ||
2710 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2711 | PyObject *obj; | |
2712 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2713 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2714 | Py_INCREF(obj); | |
2715 | return Py_BuildValue((char *)""); | |
2716 | } | |
8edf1c75 | 2717 | static int _wrap_ComboBoxNameStr_set(PyObject *) { |
d03fd34d RD |
2718 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
2719 | return 1; | |
2720 | } | |
2721 | ||
2722 | ||
2723 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2724 | PyObject *pyobj; | |
2725 | ||
2726 | { | |
2727 | #if wxUSE_UNICODE | |
2728 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2729 | #else | |
2730 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2731 | #endif | |
2732 | } | |
2733 | return pyobj; | |
2734 | } | |
2735 | ||
2736 | ||
d14a1e28 RD |
2737 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2738 | PyObject *resultobj; | |
2739 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2740 | int arg2 ; |
d14a1e28 RD |
2741 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2742 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2743 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2744 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2745 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2746 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
2747 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2748 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2749 | long arg7 = (long) 0 ; | |
2750 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2751 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2752 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2753 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 2754 | wxComboBox *result; |
423f194a | 2755 | bool temp3 = False ; |
d14a1e28 RD |
2756 | wxPoint temp4 ; |
2757 | wxSize temp5 ; | |
db914595 | 2758 | bool temp6 = False ; |
423f194a | 2759 | bool temp9 = False ; |
d14a1e28 | 2760 | PyObject * obj0 = 0 ; |
8edf1c75 | 2761 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2762 | PyObject * obj2 = 0 ; |
2763 | PyObject * obj3 = 0 ; | |
2764 | PyObject * obj4 = 0 ; | |
2765 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2766 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2767 | PyObject * obj7 = 0 ; |
2768 | PyObject * obj8 = 0 ; | |
2769 | char *kwnames[] = { | |
2770 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2771 | }; | |
2772 | ||
8edf1c75 | 2773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 2774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2775 | { |
2776 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2777 | if (PyErr_Occurred()) SWIG_fail; | |
2778 | } | |
d14a1e28 RD |
2779 | if (obj2) { |
2780 | { | |
2781 | arg3 = wxString_in_helper(obj2); | |
2782 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2783 | temp3 = True; |
d14a1e28 RD |
2784 | } |
2785 | } | |
2786 | if (obj3) { | |
2787 | { | |
2788 | arg4 = &temp4; | |
2789 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2790 | } | |
2791 | } | |
2792 | if (obj4) { | |
2793 | { | |
2794 | arg5 = &temp5; | |
2795 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2796 | } | |
2797 | } | |
2798 | if (obj5) { | |
2799 | { | |
4e760a36 RD |
2800 | if (! PySequence_Check(obj5)) { |
2801 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2802 | SWIG_fail; | |
2803 | } | |
2804 | arg6 = new wxArrayString; | |
db914595 | 2805 | temp6 = True; |
4e760a36 RD |
2806 | int i, len=PySequence_Length(obj5); |
2807 | for (i=0; i<len; i++) { | |
2808 | PyObject* item = PySequence_GetItem(obj5, i); | |
2809 | #if wxUSE_UNICODE | |
2810 | PyObject* str = PyObject_Unicode(item); | |
2811 | #else | |
2812 | PyObject* str = PyObject_Str(item); | |
2813 | #endif | |
2814 | arg6->Add(Py2wxString(str)); | |
2815 | Py_DECREF(item); | |
2816 | Py_DECREF(str); | |
2817 | } | |
d14a1e28 RD |
2818 | } |
2819 | } | |
8edf1c75 RD |
2820 | if (obj6) { |
2821 | { | |
4e760a36 | 2822 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
2823 | if (PyErr_Occurred()) SWIG_fail; |
2824 | } | |
2825 | } | |
d14a1e28 | 2826 | if (obj7) { |
4e760a36 RD |
2827 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2828 | if (arg8 == NULL) { | |
d14a1e28 RD |
2829 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2830 | } | |
2831 | } | |
2832 | if (obj8) { | |
2833 | { | |
4e760a36 RD |
2834 | arg9 = wxString_in_helper(obj8); |
2835 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2836 | temp9 = True; |
d14a1e28 RD |
2837 | } |
2838 | } | |
2839 | { | |
2840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 2841 | 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 |
2842 | |
2843 | wxPyEndAllowThreads(__tstate); | |
2844 | if (PyErr_Occurred()) SWIG_fail; | |
2845 | } | |
2846 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2847 | { | |
2848 | if (temp3) | |
2849 | delete arg3; | |
2850 | } | |
2851 | { | |
db914595 | 2852 | if (temp6) delete arg6; |
d14a1e28 RD |
2853 | } |
2854 | { | |
2855 | if (temp9) | |
4e760a36 | 2856 | delete arg9; |
d14a1e28 RD |
2857 | } |
2858 | return resultobj; | |
2859 | fail: | |
2860 | { | |
2861 | if (temp3) | |
2862 | delete arg3; | |
2863 | } | |
2864 | { | |
db914595 | 2865 | if (temp6) delete arg6; |
d14a1e28 RD |
2866 | } |
2867 | { | |
2868 | if (temp9) | |
4e760a36 | 2869 | delete arg9; |
d14a1e28 RD |
2870 | } |
2871 | return NULL; | |
2872 | } | |
2873 | ||
2874 | ||
2875 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2876 | PyObject *resultobj; | |
2877 | wxComboBox *result; | |
2878 | char *kwnames[] = { | |
2879 | NULL | |
2880 | }; | |
2881 | ||
2882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2883 | { | |
2884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2885 | result = (wxComboBox *)new wxComboBox(); | |
2886 | ||
2887 | wxPyEndAllowThreads(__tstate); | |
2888 | if (PyErr_Occurred()) SWIG_fail; | |
2889 | } | |
2890 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2891 | return resultobj; | |
2892 | fail: | |
2893 | return NULL; | |
2894 | } | |
2895 | ||
2896 | ||
2897 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2898 | PyObject *resultobj; | |
2899 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2900 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2901 | int arg3 ; |
d14a1e28 RD |
2902 | wxString const &arg4_defvalue = wxPyEmptyString ; |
2903 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2904 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2905 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2906 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2907 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4e760a36 RD |
2908 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
2909 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
2910 | long arg8 = (long) 0 ; | |
2911 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2912 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2913 | wxString const &arg10_defvalue = wxPyComboBoxNameStr ; | |
2914 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 2915 | bool result; |
423f194a | 2916 | bool temp4 = False ; |
d14a1e28 RD |
2917 | wxPoint temp5 ; |
2918 | wxSize temp6 ; | |
db914595 | 2919 | bool temp7 = False ; |
423f194a | 2920 | bool temp10 = False ; |
d14a1e28 RD |
2921 | PyObject * obj0 = 0 ; |
2922 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2923 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2924 | PyObject * obj3 = 0 ; |
2925 | PyObject * obj4 = 0 ; | |
2926 | PyObject * obj5 = 0 ; | |
2927 | PyObject * obj6 = 0 ; | |
8edf1c75 | 2928 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
2929 | PyObject * obj8 = 0 ; |
2930 | PyObject * obj9 = 0 ; | |
2931 | char *kwnames[] = { | |
2932 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2933 | }; | |
2934 | ||
8edf1c75 | 2935 | 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 |
2936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2937 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
2938 | { |
2939 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2940 | if (PyErr_Occurred()) SWIG_fail; | |
2941 | } | |
d14a1e28 RD |
2942 | if (obj3) { |
2943 | { | |
2944 | arg4 = wxString_in_helper(obj3); | |
2945 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2946 | temp4 = True; |
d14a1e28 RD |
2947 | } |
2948 | } | |
2949 | if (obj4) { | |
2950 | { | |
2951 | arg5 = &temp5; | |
2952 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2953 | } | |
2954 | } | |
2955 | if (obj5) { | |
2956 | { | |
2957 | arg6 = &temp6; | |
2958 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2959 | } | |
2960 | } | |
2961 | if (obj6) { | |
2962 | { | |
4e760a36 RD |
2963 | if (! PySequence_Check(obj6)) { |
2964 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2965 | SWIG_fail; | |
2966 | } | |
2967 | arg7 = new wxArrayString; | |
db914595 | 2968 | temp7 = True; |
4e760a36 RD |
2969 | int i, len=PySequence_Length(obj6); |
2970 | for (i=0; i<len; i++) { | |
2971 | PyObject* item = PySequence_GetItem(obj6, i); | |
2972 | #if wxUSE_UNICODE | |
2973 | PyObject* str = PyObject_Unicode(item); | |
2974 | #else | |
2975 | PyObject* str = PyObject_Str(item); | |
2976 | #endif | |
2977 | arg7->Add(Py2wxString(str)); | |
2978 | Py_DECREF(item); | |
2979 | Py_DECREF(str); | |
2980 | } | |
d14a1e28 RD |
2981 | } |
2982 | } | |
8edf1c75 RD |
2983 | if (obj7) { |
2984 | { | |
4e760a36 | 2985 | arg8 = (long) SWIG_PyObj_AsLong(obj7); |
8edf1c75 RD |
2986 | if (PyErr_Occurred()) SWIG_fail; |
2987 | } | |
2988 | } | |
d14a1e28 | 2989 | if (obj8) { |
4e760a36 RD |
2990 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2991 | if (arg9 == NULL) { | |
d14a1e28 RD |
2992 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2993 | } | |
2994 | } | |
2995 | if (obj9) { | |
2996 | { | |
4e760a36 RD |
2997 | arg10 = wxString_in_helper(obj9); |
2998 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 2999 | temp10 = True; |
d14a1e28 RD |
3000 | } |
3001 | } | |
3002 | { | |
3003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 3004 | 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 |
3005 | |
3006 | wxPyEndAllowThreads(__tstate); | |
3007 | if (PyErr_Occurred()) SWIG_fail; | |
3008 | } | |
4e760a36 | 3009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3010 | { |
3011 | if (temp4) | |
3012 | delete arg4; | |
3013 | } | |
3014 | { | |
db914595 | 3015 | if (temp7) delete arg7; |
d14a1e28 RD |
3016 | } |
3017 | { | |
3018 | if (temp10) | |
4e760a36 | 3019 | delete arg10; |
d14a1e28 RD |
3020 | } |
3021 | return resultobj; | |
3022 | fail: | |
3023 | { | |
3024 | if (temp4) | |
3025 | delete arg4; | |
3026 | } | |
3027 | { | |
db914595 | 3028 | if (temp7) delete arg7; |
d14a1e28 RD |
3029 | } |
3030 | { | |
3031 | if (temp10) | |
4e760a36 | 3032 | delete arg10; |
d14a1e28 RD |
3033 | } |
3034 | return NULL; | |
3035 | } | |
3036 | ||
3037 | ||
3038 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3039 | PyObject *resultobj; | |
3040 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3041 | wxString result; | |
3042 | PyObject * obj0 = 0 ; | |
3043 | char *kwnames[] = { | |
3044 | (char *) "self", NULL | |
3045 | }; | |
3046 | ||
3047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
3048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3049 | { | |
3050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3051 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3052 | ||
3053 | wxPyEndAllowThreads(__tstate); | |
3054 | if (PyErr_Occurred()) SWIG_fail; | |
3055 | } | |
3056 | { | |
3057 | #if wxUSE_UNICODE | |
3058 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3059 | #else | |
3060 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3061 | #endif | |
3062 | } | |
3063 | return resultobj; | |
3064 | fail: | |
3065 | return NULL; | |
3066 | } | |
3067 | ||
3068 | ||
3069 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3070 | PyObject *resultobj; | |
3071 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3072 | wxString *arg2 = 0 ; | |
423f194a | 3073 | bool temp2 = False ; |
d14a1e28 RD |
3074 | PyObject * obj0 = 0 ; |
3075 | PyObject * obj1 = 0 ; | |
3076 | char *kwnames[] = { | |
3077 | (char *) "self",(char *) "value", NULL | |
3078 | }; | |
3079 | ||
3080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
3081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3082 | { | |
3083 | arg2 = wxString_in_helper(obj1); | |
3084 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3085 | temp2 = True; |
d14a1e28 RD |
3086 | } |
3087 | { | |
3088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3089 | (arg1)->SetValue((wxString const &)*arg2); | |
3090 | ||
3091 | wxPyEndAllowThreads(__tstate); | |
3092 | if (PyErr_Occurred()) SWIG_fail; | |
3093 | } | |
3094 | Py_INCREF(Py_None); resultobj = Py_None; | |
3095 | { | |
3096 | if (temp2) | |
3097 | delete arg2; | |
3098 | } | |
3099 | return resultobj; | |
3100 | fail: | |
3101 | { | |
3102 | if (temp2) | |
3103 | delete arg2; | |
3104 | } | |
3105 | return NULL; | |
3106 | } | |
3107 | ||
3108 | ||
3109 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3110 | PyObject *resultobj; | |
3111 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3112 | PyObject * obj0 = 0 ; | |
3113 | char *kwnames[] = { | |
3114 | (char *) "self", NULL | |
3115 | }; | |
3116 | ||
3117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
3118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3119 | { | |
3120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3121 | (arg1)->Copy(); | |
3122 | ||
3123 | wxPyEndAllowThreads(__tstate); | |
3124 | if (PyErr_Occurred()) SWIG_fail; | |
3125 | } | |
3126 | Py_INCREF(Py_None); resultobj = Py_None; | |
3127 | return resultobj; | |
3128 | fail: | |
3129 | return NULL; | |
3130 | } | |
3131 | ||
3132 | ||
3133 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3134 | PyObject *resultobj; | |
3135 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3136 | PyObject * obj0 = 0 ; | |
3137 | char *kwnames[] = { | |
3138 | (char *) "self", NULL | |
3139 | }; | |
3140 | ||
3141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
3142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3143 | { | |
3144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3145 | (arg1)->Cut(); | |
3146 | ||
3147 | wxPyEndAllowThreads(__tstate); | |
3148 | if (PyErr_Occurred()) SWIG_fail; | |
3149 | } | |
3150 | Py_INCREF(Py_None); resultobj = Py_None; | |
3151 | return resultobj; | |
3152 | fail: | |
3153 | return NULL; | |
3154 | } | |
3155 | ||
3156 | ||
3157 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3158 | PyObject *resultobj; | |
3159 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3160 | PyObject * obj0 = 0 ; | |
3161 | char *kwnames[] = { | |
3162 | (char *) "self", NULL | |
3163 | }; | |
3164 | ||
3165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
3166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3167 | { | |
3168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3169 | (arg1)->Paste(); | |
3170 | ||
3171 | wxPyEndAllowThreads(__tstate); | |
3172 | if (PyErr_Occurred()) SWIG_fail; | |
3173 | } | |
3174 | Py_INCREF(Py_None); resultobj = Py_None; | |
3175 | return resultobj; | |
3176 | fail: | |
3177 | return NULL; | |
3178 | } | |
3179 | ||
3180 | ||
3181 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3182 | PyObject *resultobj; | |
3183 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3184 | long arg2 ; | |
3185 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3186 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3187 | char *kwnames[] = { |
3188 | (char *) "self",(char *) "pos", NULL | |
3189 | }; | |
3190 | ||
8edf1c75 | 3191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3193 | { |
3194 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3195 | if (PyErr_Occurred()) SWIG_fail; | |
3196 | } | |
d14a1e28 RD |
3197 | { |
3198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3199 | (arg1)->SetInsertionPoint(arg2); | |
3200 | ||
3201 | wxPyEndAllowThreads(__tstate); | |
3202 | if (PyErr_Occurred()) SWIG_fail; | |
3203 | } | |
3204 | Py_INCREF(Py_None); resultobj = Py_None; | |
3205 | return resultobj; | |
3206 | fail: | |
3207 | return NULL; | |
3208 | } | |
3209 | ||
3210 | ||
3211 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3212 | PyObject *resultobj; | |
3213 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3214 | long result; | |
3215 | PyObject * obj0 = 0 ; | |
3216 | char *kwnames[] = { | |
3217 | (char *) "self", NULL | |
3218 | }; | |
3219 | ||
3220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
3221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3222 | { | |
3223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3224 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3225 | ||
3226 | wxPyEndAllowThreads(__tstate); | |
3227 | if (PyErr_Occurred()) SWIG_fail; | |
3228 | } | |
8edf1c75 | 3229 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
3230 | return resultobj; |
3231 | fail: | |
3232 | return NULL; | |
3233 | } | |
3234 | ||
3235 | ||
3236 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3237 | PyObject *resultobj; | |
3238 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3239 | long result; | |
3240 | PyObject * obj0 = 0 ; | |
3241 | char *kwnames[] = { | |
3242 | (char *) "self", NULL | |
3243 | }; | |
3244 | ||
3245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
3246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3247 | { | |
3248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3249 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3250 | ||
3251 | wxPyEndAllowThreads(__tstate); | |
3252 | if (PyErr_Occurred()) SWIG_fail; | |
3253 | } | |
8edf1c75 | 3254 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
3255 | return resultobj; |
3256 | fail: | |
3257 | return NULL; | |
3258 | } | |
3259 | ||
3260 | ||
3261 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3262 | PyObject *resultobj; | |
3263 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3264 | long arg2 ; | |
3265 | long arg3 ; | |
3266 | wxString *arg4 = 0 ; | |
423f194a | 3267 | bool temp4 = False ; |
d14a1e28 | 3268 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3269 | PyObject * obj1 = 0 ; |
3270 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3271 | PyObject * obj3 = 0 ; |
3272 | char *kwnames[] = { | |
3273 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3274 | }; | |
3275 | ||
8edf1c75 | 3276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3278 | { | |
8edf1c75 RD |
3279 | arg2 = (long) SWIG_PyObj_AsLong(obj1); |
3280 | if (PyErr_Occurred()) SWIG_fail; | |
3281 | } | |
3282 | { | |
3283 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3284 | if (PyErr_Occurred()) SWIG_fail; | |
3285 | } | |
3286 | { | |
3287 | arg4 = wxString_in_helper(obj3); | |
3288 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 3289 | temp4 = True; |
d14a1e28 RD |
3290 | } |
3291 | { | |
3292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3293 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3294 | ||
3295 | wxPyEndAllowThreads(__tstate); | |
3296 | if (PyErr_Occurred()) SWIG_fail; | |
3297 | } | |
3298 | Py_INCREF(Py_None); resultobj = Py_None; | |
3299 | { | |
3300 | if (temp4) | |
3301 | delete arg4; | |
3302 | } | |
3303 | return resultobj; | |
3304 | fail: | |
3305 | { | |
3306 | if (temp4) | |
3307 | delete arg4; | |
3308 | } | |
3309 | return NULL; | |
3310 | } | |
3311 | ||
3312 | ||
8a0b029b RD |
3313 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3314 | PyObject *resultobj; | |
3315 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3316 | int arg2 ; | |
3317 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3318 | PyObject * obj1 = 0 ; |
8a0b029b RD |
3319 | char *kwnames[] = { |
3320 | (char *) "self",(char *) "n", NULL | |
3321 | }; | |
3322 | ||
8edf1c75 | 3323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
8a0b029b | 3324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3325 | { |
3326 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3327 | if (PyErr_Occurred()) SWIG_fail; | |
3328 | } | |
8a0b029b RD |
3329 | { |
3330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3331 | (arg1)->SetSelection(arg2); | |
3332 | ||
3333 | wxPyEndAllowThreads(__tstate); | |
3334 | if (PyErr_Occurred()) SWIG_fail; | |
3335 | } | |
3336 | Py_INCREF(Py_None); resultobj = Py_None; | |
3337 | return resultobj; | |
3338 | fail: | |
3339 | return NULL; | |
3340 | } | |
3341 | ||
3342 | ||
d14a1e28 RD |
3343 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
3344 | PyObject *resultobj; | |
3345 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3346 | long arg2 ; | |
3347 | long arg3 ; | |
3348 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3349 | PyObject * obj1 = 0 ; |
3350 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3351 | char *kwnames[] = { |
3352 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3353 | }; | |
3354 | ||
8edf1c75 | 3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3357 | { |
3358 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3359 | if (PyErr_Occurred()) SWIG_fail; | |
3360 | } | |
3361 | { | |
3362 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3363 | if (PyErr_Occurred()) SWIG_fail; | |
3364 | } | |
d14a1e28 RD |
3365 | { |
3366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3367 | (arg1)->SetSelection(arg2,arg3); | |
3368 | ||
3369 | wxPyEndAllowThreads(__tstate); | |
3370 | if (PyErr_Occurred()) SWIG_fail; | |
3371 | } | |
3372 | Py_INCREF(Py_None); resultobj = Py_None; | |
3373 | return resultobj; | |
3374 | fail: | |
3375 | return NULL; | |
3376 | } | |
3377 | ||
3378 | ||
3379 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3380 | PyObject *resultobj; | |
3381 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3382 | bool arg2 ; | |
3383 | PyObject * obj0 = 0 ; | |
3384 | PyObject * obj1 = 0 ; | |
3385 | char *kwnames[] = { | |
3386 | (char *) "self",(char *) "editable", NULL | |
3387 | }; | |
3388 | ||
3389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
3390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 3391 | { |
8edf1c75 | 3392 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
3393 | if (PyErr_Occurred()) SWIG_fail; |
3394 | } | |
d14a1e28 RD |
3395 | { |
3396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3397 | (arg1)->SetEditable(arg2); | |
3398 | ||
3399 | wxPyEndAllowThreads(__tstate); | |
3400 | if (PyErr_Occurred()) SWIG_fail; | |
3401 | } | |
3402 | Py_INCREF(Py_None); resultobj = Py_None; | |
3403 | return resultobj; | |
3404 | fail: | |
3405 | return NULL; | |
3406 | } | |
3407 | ||
3408 | ||
3409 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3410 | PyObject *resultobj; | |
3411 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3412 | PyObject * obj0 = 0 ; | |
3413 | char *kwnames[] = { | |
3414 | (char *) "self", NULL | |
3415 | }; | |
3416 | ||
3417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
3418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3419 | { | |
3420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3421 | (arg1)->SetInsertionPointEnd(); | |
3422 | ||
3423 | wxPyEndAllowThreads(__tstate); | |
3424 | if (PyErr_Occurred()) SWIG_fail; | |
3425 | } | |
3426 | Py_INCREF(Py_None); resultobj = Py_None; | |
3427 | return resultobj; | |
3428 | fail: | |
3429 | return NULL; | |
3430 | } | |
3431 | ||
3432 | ||
3433 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3434 | PyObject *resultobj; | |
3435 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3436 | long arg2 ; | |
3437 | long arg3 ; | |
3438 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3439 | PyObject * obj1 = 0 ; |
3440 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3441 | char *kwnames[] = { |
3442 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3443 | }; | |
3444 | ||
8edf1c75 | 3445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3447 | { |
3448 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3449 | if (PyErr_Occurred()) SWIG_fail; | |
3450 | } | |
3451 | { | |
3452 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3453 | if (PyErr_Occurred()) SWIG_fail; | |
3454 | } | |
d14a1e28 RD |
3455 | { |
3456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3457 | (arg1)->Remove(arg2,arg3); | |
3458 | ||
3459 | wxPyEndAllowThreads(__tstate); | |
3460 | if (PyErr_Occurred()) SWIG_fail; | |
3461 | } | |
3462 | Py_INCREF(Py_None); resultobj = Py_None; | |
3463 | return resultobj; | |
3464 | fail: | |
3465 | return NULL; | |
3466 | } | |
3467 | ||
3468 | ||
3469 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
3470 | PyObject *obj; | |
3471 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3472 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3473 | Py_INCREF(obj); | |
3474 | return Py_BuildValue((char *)""); | |
3475 | } | |
8edf1c75 | 3476 | static int _wrap_GaugeNameStr_set(PyObject *) { |
d03fd34d RD |
3477 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
3478 | return 1; | |
3479 | } | |
3480 | ||
3481 | ||
3482 | static PyObject *_wrap_GaugeNameStr_get() { | |
3483 | PyObject *pyobj; | |
3484 | ||
3485 | { | |
3486 | #if wxUSE_UNICODE | |
3487 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3488 | #else | |
3489 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3490 | #endif | |
3491 | } | |
3492 | return pyobj; | |
3493 | } | |
3494 | ||
3495 | ||
d14a1e28 RD |
3496 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3497 | PyObject *resultobj; | |
3498 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3499 | int arg2 ; |
d14a1e28 RD |
3500 | int arg3 ; |
3501 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3502 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3503 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3504 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3505 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3506 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3507 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3508 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3509 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3510 | wxGauge *result; | |
3511 | wxPoint temp4 ; | |
3512 | wxSize temp5 ; | |
423f194a | 3513 | bool temp8 = False ; |
d14a1e28 | 3514 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3515 | PyObject * obj1 = 0 ; |
3516 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3517 | PyObject * obj3 = 0 ; |
3518 | PyObject * obj4 = 0 ; | |
8edf1c75 | 3519 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3520 | PyObject * obj6 = 0 ; |
3521 | PyObject * obj7 = 0 ; | |
3522 | char *kwnames[] = { | |
3523 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3524 | }; | |
3525 | ||
8edf1c75 | 3526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 3527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3528 | { |
3529 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3530 | if (PyErr_Occurred()) SWIG_fail; | |
3531 | } | |
3532 | { | |
3533 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3534 | if (PyErr_Occurred()) SWIG_fail; | |
3535 | } | |
d14a1e28 RD |
3536 | if (obj3) { |
3537 | { | |
3538 | arg4 = &temp4; | |
3539 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3540 | } | |
3541 | } | |
3542 | if (obj4) { | |
3543 | { | |
3544 | arg5 = &temp5; | |
3545 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3546 | } | |
3547 | } | |
8edf1c75 RD |
3548 | if (obj5) { |
3549 | { | |
3550 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3551 | if (PyErr_Occurred()) SWIG_fail; | |
3552 | } | |
3553 | } | |
d14a1e28 RD |
3554 | if (obj6) { |
3555 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3556 | if (arg7 == NULL) { | |
3557 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3558 | } | |
3559 | } | |
3560 | if (obj7) { | |
3561 | { | |
3562 | arg8 = wxString_in_helper(obj7); | |
3563 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 3564 | temp8 = True; |
d14a1e28 RD |
3565 | } |
3566 | } | |
3567 | { | |
3568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3569 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3570 | ||
3571 | wxPyEndAllowThreads(__tstate); | |
3572 | if (PyErr_Occurred()) SWIG_fail; | |
3573 | } | |
3574 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3575 | { | |
3576 | if (temp8) | |
3577 | delete arg8; | |
3578 | } | |
3579 | return resultobj; | |
3580 | fail: | |
3581 | { | |
3582 | if (temp8) | |
3583 | delete arg8; | |
3584 | } | |
3585 | return NULL; | |
3586 | } | |
3587 | ||
3588 | ||
3589 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3590 | PyObject *resultobj; | |
3591 | wxGauge *result; | |
3592 | char *kwnames[] = { | |
3593 | NULL | |
3594 | }; | |
3595 | ||
3596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3597 | { | |
3598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3599 | result = (wxGauge *)new wxGauge(); | |
3600 | ||
3601 | wxPyEndAllowThreads(__tstate); | |
3602 | if (PyErr_Occurred()) SWIG_fail; | |
3603 | } | |
3604 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3605 | return resultobj; | |
3606 | fail: | |
3607 | return NULL; | |
3608 | } | |
3609 | ||
3610 | ||
3611 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3612 | PyObject *resultobj; | |
3613 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3614 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 3615 | int arg3 ; |
d14a1e28 RD |
3616 | int arg4 ; |
3617 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3618 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3619 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3620 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3621 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3622 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3623 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3624 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3625 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3626 | bool result; | |
3627 | wxPoint temp5 ; | |
3628 | wxSize temp6 ; | |
423f194a | 3629 | bool temp9 = False ; |
d14a1e28 RD |
3630 | PyObject * obj0 = 0 ; |
3631 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
3632 | PyObject * obj2 = 0 ; |
3633 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3634 | PyObject * obj4 = 0 ; |
3635 | PyObject * obj5 = 0 ; | |
8edf1c75 | 3636 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3637 | PyObject * obj7 = 0 ; |
3638 | PyObject * obj8 = 0 ; | |
3639 | char *kwnames[] = { | |
3640 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3641 | }; | |
3642 | ||
8edf1c75 | 3643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3645 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
3646 | { |
3647 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3648 | if (PyErr_Occurred()) SWIG_fail; | |
3649 | } | |
3650 | { | |
3651 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
3652 | if (PyErr_Occurred()) SWIG_fail; | |
3653 | } | |
d14a1e28 RD |
3654 | if (obj4) { |
3655 | { | |
3656 | arg5 = &temp5; | |
3657 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3658 | } | |
3659 | } | |
3660 | if (obj5) { | |
3661 | { | |
3662 | arg6 = &temp6; | |
3663 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3664 | } | |
3665 | } | |
8edf1c75 RD |
3666 | if (obj6) { |
3667 | { | |
3668 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
3669 | if (PyErr_Occurred()) SWIG_fail; | |
3670 | } | |
3671 | } | |
d14a1e28 RD |
3672 | if (obj7) { |
3673 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3674 | if (arg8 == NULL) { | |
3675 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3676 | } | |
3677 | } | |
3678 | if (obj8) { | |
3679 | { | |
3680 | arg9 = wxString_in_helper(obj8); | |
3681 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 3682 | temp9 = True; |
d14a1e28 RD |
3683 | } |
3684 | } | |
3685 | { | |
3686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3687 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3688 | ||
3689 | wxPyEndAllowThreads(__tstate); | |
3690 | if (PyErr_Occurred()) SWIG_fail; | |
3691 | } | |
4e760a36 | 3692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3693 | { |
3694 | if (temp9) | |
3695 | delete arg9; | |
3696 | } | |
3697 | return resultobj; | |
3698 | fail: | |
3699 | { | |
3700 | if (temp9) | |
3701 | delete arg9; | |
3702 | } | |
3703 | return NULL; | |
3704 | } | |
3705 | ||
3706 | ||
3707 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3708 | PyObject *resultobj; | |
3709 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3710 | int arg2 ; | |
3711 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3712 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3713 | char *kwnames[] = { |
3714 | (char *) "self",(char *) "range", NULL | |
3715 | }; | |
3716 | ||
8edf1c75 | 3717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3719 | { |
3720 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3721 | if (PyErr_Occurred()) SWIG_fail; | |
3722 | } | |
d14a1e28 RD |
3723 | { |
3724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3725 | (arg1)->SetRange(arg2); | |
3726 | ||
3727 | wxPyEndAllowThreads(__tstate); | |
3728 | if (PyErr_Occurred()) SWIG_fail; | |
3729 | } | |
3730 | Py_INCREF(Py_None); resultobj = Py_None; | |
3731 | return resultobj; | |
3732 | fail: | |
3733 | return NULL; | |
3734 | } | |
3735 | ||
3736 | ||
3737 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3738 | PyObject *resultobj; | |
3739 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3740 | int result; | |
3741 | PyObject * obj0 = 0 ; | |
3742 | char *kwnames[] = { | |
3743 | (char *) "self", NULL | |
3744 | }; | |
3745 | ||
3746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
3747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3748 | { | |
3749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3750 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3751 | ||
3752 | wxPyEndAllowThreads(__tstate); | |
3753 | if (PyErr_Occurred()) SWIG_fail; | |
3754 | } | |
8edf1c75 | 3755 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3756 | return resultobj; |
3757 | fail: | |
3758 | return NULL; | |
3759 | } | |
3760 | ||
3761 | ||
3762 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3763 | PyObject *resultobj; | |
3764 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3765 | int arg2 ; | |
3766 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3767 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3768 | char *kwnames[] = { |
3769 | (char *) "self",(char *) "pos", NULL | |
3770 | }; | |
3771 | ||
8edf1c75 | 3772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3774 | { |
3775 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3776 | if (PyErr_Occurred()) SWIG_fail; | |
3777 | } | |
d14a1e28 RD |
3778 | { |
3779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3780 | (arg1)->SetValue(arg2); | |
3781 | ||
3782 | wxPyEndAllowThreads(__tstate); | |
3783 | if (PyErr_Occurred()) SWIG_fail; | |
3784 | } | |
3785 | Py_INCREF(Py_None); resultobj = Py_None; | |
3786 | return resultobj; | |
3787 | fail: | |
3788 | return NULL; | |
3789 | } | |
3790 | ||
3791 | ||
3792 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3793 | PyObject *resultobj; | |
3794 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3795 | int result; | |
3796 | PyObject * obj0 = 0 ; | |
3797 | char *kwnames[] = { | |
3798 | (char *) "self", NULL | |
3799 | }; | |
3800 | ||
3801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
3802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3803 | { | |
3804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3805 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3806 | ||
3807 | wxPyEndAllowThreads(__tstate); | |
3808 | if (PyErr_Occurred()) SWIG_fail; | |
3809 | } | |
8edf1c75 | 3810 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3811 | return resultobj; |
3812 | fail: | |
3813 | return NULL; | |
3814 | } | |
3815 | ||
3816 | ||
3817 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3818 | PyObject *resultobj; | |
3819 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3820 | bool result; | |
3821 | PyObject * obj0 = 0 ; | |
3822 | char *kwnames[] = { | |
3823 | (char *) "self", NULL | |
3824 | }; | |
3825 | ||
3826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
3827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3828 | { | |
3829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3830 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3831 | ||
3832 | wxPyEndAllowThreads(__tstate); | |
3833 | if (PyErr_Occurred()) SWIG_fail; | |
3834 | } | |
4e760a36 | 3835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3836 | return resultobj; |
3837 | fail: | |
3838 | return NULL; | |
3839 | } | |
3840 | ||
3841 | ||
3842 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3843 | PyObject *resultobj; | |
3844 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3845 | int arg2 ; | |
3846 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3847 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3848 | char *kwnames[] = { |
3849 | (char *) "self",(char *) "w", NULL | |
3850 | }; | |
3851 | ||
8edf1c75 | 3852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3854 | { |
3855 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3856 | if (PyErr_Occurred()) SWIG_fail; | |
3857 | } | |
d14a1e28 RD |
3858 | { |
3859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3860 | (arg1)->SetShadowWidth(arg2); | |
3861 | ||
3862 | wxPyEndAllowThreads(__tstate); | |
3863 | if (PyErr_Occurred()) SWIG_fail; | |
3864 | } | |
3865 | Py_INCREF(Py_None); resultobj = Py_None; | |
3866 | return resultobj; | |
3867 | fail: | |
3868 | return NULL; | |
3869 | } | |
3870 | ||
3871 | ||
3872 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3873 | PyObject *resultobj; | |
3874 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3875 | int result; | |
3876 | PyObject * obj0 = 0 ; | |
3877 | char *kwnames[] = { | |
3878 | (char *) "self", NULL | |
3879 | }; | |
3880 | ||
3881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
3882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3883 | { | |
3884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3885 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3886 | ||
3887 | wxPyEndAllowThreads(__tstate); | |
3888 | if (PyErr_Occurred()) SWIG_fail; | |
3889 | } | |
8edf1c75 | 3890 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3891 | return resultobj; |
3892 | fail: | |
3893 | return NULL; | |
3894 | } | |
3895 | ||
3896 | ||
3897 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3898 | PyObject *resultobj; | |
3899 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3900 | int arg2 ; | |
3901 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3902 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3903 | char *kwnames[] = { |
3904 | (char *) "self",(char *) "w", NULL | |
3905 | }; | |
3906 | ||
8edf1c75 | 3907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3909 | { |
3910 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3911 | if (PyErr_Occurred()) SWIG_fail; | |
3912 | } | |
d14a1e28 RD |
3913 | { |
3914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3915 | (arg1)->SetBezelFace(arg2); | |
3916 | ||
3917 | wxPyEndAllowThreads(__tstate); | |
3918 | if (PyErr_Occurred()) SWIG_fail; | |
3919 | } | |
3920 | Py_INCREF(Py_None); resultobj = Py_None; | |
3921 | return resultobj; | |
3922 | fail: | |
3923 | return NULL; | |
3924 | } | |
3925 | ||
3926 | ||
3927 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3928 | PyObject *resultobj; | |
3929 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3930 | int result; | |
3931 | PyObject * obj0 = 0 ; | |
3932 | char *kwnames[] = { | |
3933 | (char *) "self", NULL | |
3934 | }; | |
3935 | ||
3936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
3937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3938 | { | |
3939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3940 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3941 | ||
3942 | wxPyEndAllowThreads(__tstate); | |
3943 | if (PyErr_Occurred()) SWIG_fail; | |
3944 | } | |
8edf1c75 | 3945 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3946 | return resultobj; |
3947 | fail: | |
3948 | return NULL; | |
3949 | } | |
3950 | ||
3951 | ||
3952 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
3953 | PyObject *obj; | |
3954 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3955 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
3956 | Py_INCREF(obj); | |
3957 | return Py_BuildValue((char *)""); | |
3958 | } | |
8edf1c75 | 3959 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
d03fd34d RD |
3960 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
3961 | return 1; | |
3962 | } | |
3963 | ||
3964 | ||
3965 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
3966 | PyObject *pyobj; | |
3967 | ||
3968 | { | |
3969 | #if wxUSE_UNICODE | |
3970 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3971 | #else | |
3972 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3973 | #endif | |
3974 | } | |
3975 | return pyobj; | |
3976 | } | |
3977 | ||
3978 | ||
8edf1c75 | 3979 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
d03fd34d RD |
3980 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
3981 | return 1; | |
3982 | } | |
3983 | ||
3984 | ||
3985 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
3986 | PyObject *pyobj; | |
3987 | ||
3988 | { | |
3989 | #if wxUSE_UNICODE | |
3990 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3991 | #else | |
3992 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3993 | #endif | |
3994 | } | |
3995 | return pyobj; | |
3996 | } | |
3997 | ||
3998 | ||
8edf1c75 | 3999 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
d03fd34d RD |
4000 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
4001 | return 1; | |
4002 | } | |
4003 | ||
4004 | ||
4005 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4006 | PyObject *pyobj; | |
4007 | ||
4008 | { | |
4009 | #if wxUSE_UNICODE | |
4010 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4011 | #else | |
4012 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4013 | #endif | |
4014 | } | |
4015 | return pyobj; | |
4016 | } | |
4017 | ||
4018 | ||
d14a1e28 RD |
4019 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4020 | PyObject *resultobj; | |
4021 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4022 | int arg2 ; |
d14a1e28 RD |
4023 | wxString *arg3 = 0 ; |
4024 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4025 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4026 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4027 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4028 | long arg6 = (long) 0 ; | |
4029 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4030 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4031 | wxStaticBox *result; | |
423f194a | 4032 | bool temp3 = False ; |
d14a1e28 RD |
4033 | wxPoint temp4 ; |
4034 | wxSize temp5 ; | |
423f194a | 4035 | bool temp7 = False ; |
d14a1e28 | 4036 | PyObject * obj0 = 0 ; |
8edf1c75 | 4037 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4038 | PyObject * obj2 = 0 ; |
4039 | PyObject * obj3 = 0 ; | |
4040 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4041 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4042 | PyObject * obj6 = 0 ; |
4043 | char *kwnames[] = { | |
4044 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4045 | }; | |
4046 | ||
8edf1c75 | 4047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 4048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4049 | { |
4050 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4051 | if (PyErr_Occurred()) SWIG_fail; | |
4052 | } | |
d14a1e28 RD |
4053 | { |
4054 | arg3 = wxString_in_helper(obj2); | |
4055 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 4056 | temp3 = True; |
d14a1e28 RD |
4057 | } |
4058 | if (obj3) { | |
4059 | { | |
4060 | arg4 = &temp4; | |
4061 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4062 | } | |
4063 | } | |
4064 | if (obj4) { | |
4065 | { | |
4066 | arg5 = &temp5; | |
4067 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4068 | } | |
4069 | } | |
8edf1c75 RD |
4070 | if (obj5) { |
4071 | { | |
4072 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4073 | if (PyErr_Occurred()) SWIG_fail; | |
4074 | } | |
4075 | } | |
d14a1e28 RD |
4076 | if (obj6) { |
4077 | { | |
4078 | arg7 = wxString_in_helper(obj6); | |
4079 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4080 | temp7 = True; |
d14a1e28 RD |
4081 | } |
4082 | } | |
4083 | { | |
4084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4085 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4086 | ||
4087 | wxPyEndAllowThreads(__tstate); | |
4088 | if (PyErr_Occurred()) SWIG_fail; | |
4089 | } | |
4090 | { | |
4091 | resultobj = wxPyMake_wxObject(result); | |
4092 | } | |
4093 | { | |
4094 | if (temp3) | |
4095 | delete arg3; | |
4096 | } | |
4097 | { | |
4098 | if (temp7) | |
4099 | delete arg7; | |
4100 | } | |
4101 | return resultobj; | |
4102 | fail: | |
4103 | { | |
4104 | if (temp3) | |
4105 | delete arg3; | |
4106 | } | |
4107 | { | |
4108 | if (temp7) | |
4109 | delete arg7; | |
4110 | } | |
4111 | return NULL; | |
4112 | } | |
4113 | ||
4114 | ||
4115 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4116 | PyObject *resultobj; | |
4117 | wxStaticBox *result; | |
4118 | char *kwnames[] = { | |
4119 | NULL | |
4120 | }; | |
4121 | ||
4122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4123 | { | |
4124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4125 | result = (wxStaticBox *)new wxStaticBox(); | |
4126 | ||
4127 | wxPyEndAllowThreads(__tstate); | |
4128 | if (PyErr_Occurred()) SWIG_fail; | |
4129 | } | |
4130 | { | |
4131 | resultobj = wxPyMake_wxObject(result); | |
4132 | } | |
4133 | return resultobj; | |
4134 | fail: | |
4135 | return NULL; | |
4136 | } | |
4137 | ||
4138 | ||
4139 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4140 | PyObject *resultobj; | |
4141 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4142 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4143 | int arg3 ; |
d14a1e28 RD |
4144 | wxString *arg4 = 0 ; |
4145 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4146 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4147 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4148 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4149 | long arg7 = (long) 0 ; | |
4150 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4151 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4152 | bool result; | |
423f194a | 4153 | bool temp4 = False ; |
d14a1e28 RD |
4154 | wxPoint temp5 ; |
4155 | wxSize temp6 ; | |
423f194a | 4156 | bool temp8 = False ; |
d14a1e28 RD |
4157 | PyObject * obj0 = 0 ; |
4158 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4159 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4160 | PyObject * obj3 = 0 ; |
4161 | PyObject * obj4 = 0 ; | |
4162 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4163 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4164 | PyObject * obj7 = 0 ; |
4165 | char *kwnames[] = { | |
4166 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4167 | }; | |
4168 | ||
8edf1c75 | 4169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4171 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4172 | { |
4173 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4174 | if (PyErr_Occurred()) SWIG_fail; | |
4175 | } | |
d14a1e28 RD |
4176 | { |
4177 | arg4 = wxString_in_helper(obj3); | |
4178 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4179 | temp4 = True; |
d14a1e28 RD |
4180 | } |
4181 | if (obj4) { | |
4182 | { | |
4183 | arg5 = &temp5; | |
4184 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4185 | } | |
4186 | } | |
4187 | if (obj5) { | |
4188 | { | |
4189 | arg6 = &temp6; | |
4190 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4191 | } | |
4192 | } | |
8edf1c75 RD |
4193 | if (obj6) { |
4194 | { | |
4195 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4196 | if (PyErr_Occurred()) SWIG_fail; | |
4197 | } | |
4198 | } | |
d14a1e28 RD |
4199 | if (obj7) { |
4200 | { | |
4201 | arg8 = wxString_in_helper(obj7); | |
4202 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4203 | temp8 = True; |
d14a1e28 RD |
4204 | } |
4205 | } | |
4206 | { | |
4207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4208 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4209 | ||
4210 | wxPyEndAllowThreads(__tstate); | |
4211 | if (PyErr_Occurred()) SWIG_fail; | |
4212 | } | |
4e760a36 | 4213 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4214 | { |
4215 | if (temp4) | |
4216 | delete arg4; | |
4217 | } | |
4218 | { | |
4219 | if (temp8) | |
4220 | delete arg8; | |
4221 | } | |
4222 | return resultobj; | |
4223 | fail: | |
4224 | { | |
4225 | if (temp4) | |
4226 | delete arg4; | |
4227 | } | |
4228 | { | |
4229 | if (temp8) | |
4230 | delete arg8; | |
4231 | } | |
4232 | return NULL; | |
4233 | } | |
4234 | ||
4235 | ||
4236 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
4237 | PyObject *obj; | |
4238 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4239 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4240 | Py_INCREF(obj); | |
4241 | return Py_BuildValue((char *)""); | |
4242 | } | |
4243 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4244 | PyObject *resultobj; | |
4245 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4246 | int arg2 ; |
d14a1e28 RD |
4247 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4248 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4249 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4250 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4251 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4252 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4253 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4254 | wxStaticLine *result; | |
4255 | wxPoint temp3 ; | |
4256 | wxSize temp4 ; | |
423f194a | 4257 | bool temp6 = False ; |
d14a1e28 | 4258 | PyObject * obj0 = 0 ; |
8edf1c75 | 4259 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4260 | PyObject * obj2 = 0 ; |
4261 | PyObject * obj3 = 0 ; | |
8edf1c75 | 4262 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4263 | PyObject * obj5 = 0 ; |
4264 | char *kwnames[] = { | |
4265 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4266 | }; | |
4267 | ||
8edf1c75 | 4268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 4269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4270 | { |
4271 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4272 | if (PyErr_Occurred()) SWIG_fail; | |
4273 | } | |
d14a1e28 RD |
4274 | if (obj2) { |
4275 | { | |
4276 | arg3 = &temp3; | |
4277 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4278 | } | |
4279 | } | |
4280 | if (obj3) { | |
4281 | { | |
4282 | arg4 = &temp4; | |
4283 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4284 | } | |
4285 | } | |
8edf1c75 RD |
4286 | if (obj4) { |
4287 | { | |
4288 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
4289 | if (PyErr_Occurred()) SWIG_fail; | |
4290 | } | |
4291 | } | |
d14a1e28 RD |
4292 | if (obj5) { |
4293 | { | |
4294 | arg6 = wxString_in_helper(obj5); | |
4295 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 4296 | temp6 = True; |
d14a1e28 RD |
4297 | } |
4298 | } | |
4299 | { | |
4300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4301 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4302 | ||
4303 | wxPyEndAllowThreads(__tstate); | |
4304 | if (PyErr_Occurred()) SWIG_fail; | |
4305 | } | |
4306 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
4307 | { | |
4308 | if (temp6) | |
4309 | delete arg6; | |
4310 | } | |
4311 | return resultobj; | |
4312 | fail: | |
4313 | { | |
4314 | if (temp6) | |
4315 | delete arg6; | |
4316 | } | |
4317 | return NULL; | |
4318 | } | |
4319 | ||
4320 | ||
4321 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4322 | PyObject *resultobj; | |
4323 | wxStaticLine *result; | |
4324 | char *kwnames[] = { | |
4325 | NULL | |
4326 | }; | |
4327 | ||
4328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4329 | { | |
4330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4331 | result = (wxStaticLine *)new wxStaticLine(); | |
4332 | ||
4333 | wxPyEndAllowThreads(__tstate); | |
4334 | if (PyErr_Occurred()) SWIG_fail; | |
4335 | } | |
4336 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
4337 | return resultobj; | |
4338 | fail: | |
4339 | return NULL; | |
4340 | } | |
4341 | ||
4342 | ||
4343 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4344 | PyObject *resultobj; | |
4345 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4346 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4347 | int arg3 ; |
d14a1e28 RD |
4348 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4349 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4350 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4351 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4352 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4353 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4354 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4355 | bool result; | |
4356 | wxPoint temp4 ; | |
4357 | wxSize temp5 ; | |
423f194a | 4358 | bool temp7 = False ; |
d14a1e28 RD |
4359 | PyObject * obj0 = 0 ; |
4360 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4361 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4362 | PyObject * obj3 = 0 ; |
4363 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4364 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4365 | PyObject * obj6 = 0 ; |
4366 | char *kwnames[] = { | |
4367 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4368 | }; | |
4369 | ||
8edf1c75 | 4370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
4371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4372 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4373 | { |
4374 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4375 | if (PyErr_Occurred()) SWIG_fail; | |
4376 | } | |
d14a1e28 RD |
4377 | if (obj3) { |
4378 | { | |
4379 | arg4 = &temp4; | |
4380 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4381 | } | |
4382 | } | |
4383 | if (obj4) { | |
4384 | { | |
4385 | arg5 = &temp5; | |
4386 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4387 | } | |
4388 | } | |
8edf1c75 RD |
4389 | if (obj5) { |
4390 | { | |
4391 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4392 | if (PyErr_Occurred()) SWIG_fail; | |
4393 | } | |
4394 | } | |
d14a1e28 RD |
4395 | if (obj6) { |
4396 | { | |
4397 | arg7 = wxString_in_helper(obj6); | |
4398 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4399 | temp7 = True; |
d14a1e28 RD |
4400 | } |
4401 | } | |
4402 | { | |
4403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4404 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4405 | ||
4406 | wxPyEndAllowThreads(__tstate); | |
4407 | if (PyErr_Occurred()) SWIG_fail; | |
4408 | } | |
4e760a36 | 4409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4410 | { |
4411 | if (temp7) | |
4412 | delete arg7; | |
4413 | } | |
4414 | return resultobj; | |
4415 | fail: | |
4416 | { | |
4417 | if (temp7) | |
4418 | delete arg7; | |
4419 | } | |
4420 | return NULL; | |
4421 | } | |
4422 | ||
4423 | ||
4424 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4425 | PyObject *resultobj; | |
4426 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4427 | bool result; | |
4428 | PyObject * obj0 = 0 ; | |
4429 | char *kwnames[] = { | |
4430 | (char *) "self", NULL | |
4431 | }; | |
4432 | ||
4433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
4434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4435 | { | |
4436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4437 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4438 | ||
4439 | wxPyEndAllowThreads(__tstate); | |
4440 | if (PyErr_Occurred()) SWIG_fail; | |
4441 | } | |
4e760a36 | 4442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4443 | return resultobj; |
4444 | fail: | |
4445 | return NULL; | |
4446 | } | |
4447 | ||
4448 | ||
4449 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4450 | PyObject *resultobj; | |
4451 | int result; | |
4452 | char *kwnames[] = { | |
4453 | NULL | |
4454 | }; | |
4455 | ||
4456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4457 | { | |
4458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4459 | result = (int)wxStaticLine::GetDefaultSize(); | |
4460 | ||
4461 | wxPyEndAllowThreads(__tstate); | |
4462 | if (PyErr_Occurred()) SWIG_fail; | |
4463 | } | |
8edf1c75 | 4464 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4465 | return resultobj; |
4466 | fail: | |
4467 | return NULL; | |
4468 | } | |
4469 | ||
4470 | ||
4471 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
4472 | PyObject *obj; | |
4473 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4474 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4475 | Py_INCREF(obj); | |
4476 | return Py_BuildValue((char *)""); | |
4477 | } | |
4478 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4479 | PyObject *resultobj; | |
4480 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4481 | int arg2 ; |
d14a1e28 RD |
4482 | wxString *arg3 = 0 ; |
4483 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4484 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4485 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4486 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4487 | long arg6 = (long) 0 ; | |
4488 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4489 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4490 | wxStaticText *result; | |
423f194a | 4491 | bool temp3 = False ; |
d14a1e28 RD |
4492 | wxPoint temp4 ; |
4493 | wxSize temp5 ; | |
423f194a | 4494 | bool temp7 = False ; |
d14a1e28 | 4495 | PyObject * obj0 = 0 ; |
8edf1c75 | 4496 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4497 | PyObject * obj2 = 0 ; |
4498 | PyObject * obj3 = 0 ; | |
4499 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4500 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4501 | PyObject * obj6 = 0 ; |
4502 | char *kwnames[] = { | |
4503 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4504 | }; | |
4505 | ||
8edf1c75 | 4506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 4507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4508 | { |
4509 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4510 | if (PyErr_Occurred()) SWIG_fail; | |
4511 | } | |
d14a1e28 RD |
4512 | { |
4513 | arg3 = wxString_in_helper(obj2); | |
4514 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 4515 | temp3 = True; |
d14a1e28 RD |
4516 | } |
4517 | if (obj3) { | |
4518 | { | |
4519 | arg4 = &temp4; | |
4520 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4521 | } | |
4522 | } | |
4523 | if (obj4) { | |
4524 | { | |
4525 | arg5 = &temp5; | |
4526 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4527 | } | |
4528 | } | |
8edf1c75 RD |
4529 | if (obj5) { |
4530 | { | |
4531 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4532 | if (PyErr_Occurred()) SWIG_fail; | |
4533 | } | |
4534 | } | |
d14a1e28 RD |
4535 | if (obj6) { |
4536 | { | |
4537 | arg7 = wxString_in_helper(obj6); | |
4538 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4539 | temp7 = True; |
d14a1e28 RD |
4540 | } |
4541 | } | |
4542 | { | |
4543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4544 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4545 | ||
4546 | wxPyEndAllowThreads(__tstate); | |
4547 | if (PyErr_Occurred()) SWIG_fail; | |
4548 | } | |
4549 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4550 | { | |
4551 | if (temp3) | |
4552 | delete arg3; | |
4553 | } | |
4554 | { | |
4555 | if (temp7) | |
4556 | delete arg7; | |
4557 | } | |
4558 | return resultobj; | |
4559 | fail: | |
4560 | { | |
4561 | if (temp3) | |
4562 | delete arg3; | |
4563 | } | |
4564 | { | |
4565 | if (temp7) | |
4566 | delete arg7; | |
4567 | } | |
4568 | return NULL; | |
4569 | } | |
4570 | ||
4571 | ||
4572 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4573 | PyObject *resultobj; | |
4574 | wxStaticText *result; | |
4575 | char *kwnames[] = { | |
4576 | NULL | |
4577 | }; | |
4578 | ||
4579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4580 | { | |
4581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4582 | result = (wxStaticText *)new wxStaticText(); | |
4583 | ||
4584 | wxPyEndAllowThreads(__tstate); | |
4585 | if (PyErr_Occurred()) SWIG_fail; | |
4586 | } | |
4587 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4588 | return resultobj; | |
4589 | fail: | |
4590 | return NULL; | |
4591 | } | |
4592 | ||
4593 | ||
4594 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4595 | PyObject *resultobj; | |
4596 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4597 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4598 | int arg3 ; |
d14a1e28 RD |
4599 | wxString *arg4 = 0 ; |
4600 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4601 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4602 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4603 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4604 | long arg7 = (long) 0 ; | |
4605 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4606 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4607 | bool result; | |
423f194a | 4608 | bool temp4 = False ; |
d14a1e28 RD |
4609 | wxPoint temp5 ; |
4610 | wxSize temp6 ; | |
423f194a | 4611 | bool temp8 = False ; |
d14a1e28 RD |
4612 | PyObject * obj0 = 0 ; |
4613 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4614 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4615 | PyObject * obj3 = 0 ; |
4616 | PyObject * obj4 = 0 ; | |
4617 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4618 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4619 | PyObject * obj7 = 0 ; |
4620 | char *kwnames[] = { | |
4621 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4622 | }; | |
4623 | ||
8edf1c75 | 4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticText,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4626 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4627 | { |
4628 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4629 | if (PyErr_Occurred()) SWIG_fail; | |
4630 | } | |
d14a1e28 RD |
4631 | { |
4632 | arg4 = wxString_in_helper(obj3); | |
4633 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4634 | temp4 = True; |
d14a1e28 RD |
4635 | } |
4636 | if (obj4) { | |
4637 | { | |
4638 | arg5 = &temp5; | |
4639 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4640 | } | |
4641 | } | |
4642 | if (obj5) { | |
4643 | { | |
4644 | arg6 = &temp6; | |
4645 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4646 | } | |
4647 | } | |
8edf1c75 RD |
4648 | if (obj6) { |
4649 | { | |
4650 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4651 | if (PyErr_Occurred()) SWIG_fail; | |
4652 | } | |
4653 | } | |
d14a1e28 RD |
4654 | if (obj7) { |
4655 | { | |
4656 | arg8 = wxString_in_helper(obj7); | |
4657 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4658 | temp8 = True; |
d14a1e28 RD |
4659 | } |
4660 | } | |
4661 | { | |
4662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4663 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4664 | ||
4665 | wxPyEndAllowThreads(__tstate); | |
4666 | if (PyErr_Occurred()) SWIG_fail; | |
4667 | } | |
4e760a36 | 4668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4669 | { |
4670 | if (temp4) | |
4671 | delete arg4; | |
4672 | } | |
4673 | { | |
4674 | if (temp8) | |
4675 | delete arg8; | |
4676 | } | |
4677 | return resultobj; | |
4678 | fail: | |
4679 | { | |
4680 | if (temp4) | |
4681 | delete arg4; | |
4682 | } | |
4683 | { | |
4684 | if (temp8) | |
4685 | delete arg8; | |
4686 | } | |
4687 | return NULL; | |
4688 | } | |
4689 | ||
4690 | ||
4691 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4692 | PyObject *obj; | |
4693 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4694 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4695 | Py_INCREF(obj); | |
4696 | return Py_BuildValue((char *)""); | |
4697 | } | |
4698 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4699 | PyObject *resultobj; | |
4700 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4701 | int arg2 ; |
d14a1e28 RD |
4702 | wxBitmap *arg3 = 0 ; |
4703 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4704 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4705 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4706 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4707 | long arg6 = (long) 0 ; | |
4708 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4709 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4710 | wxStaticBitmap *result; | |
4711 | wxPoint temp4 ; | |
4712 | wxSize temp5 ; | |
423f194a | 4713 | bool temp7 = False ; |
d14a1e28 | 4714 | PyObject * obj0 = 0 ; |
8edf1c75 | 4715 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4716 | PyObject * obj2 = 0 ; |
4717 | PyObject * obj3 = 0 ; | |
4718 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4719 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4720 | PyObject * obj6 = 0 ; |
4721 | char *kwnames[] = { | |
4722 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4723 | }; | |
4724 | ||
8edf1c75 | 4725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 4726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4727 | { |
4728 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4729 | if (PyErr_Occurred()) SWIG_fail; | |
4730 | } | |
d14a1e28 RD |
4731 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4732 | if (arg3 == NULL) { | |
4733 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4734 | } | |
4735 | if (obj3) { | |
4736 | { | |
4737 | arg4 = &temp4; | |
4738 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4739 | } | |
4740 | } | |
4741 | if (obj4) { | |
4742 | { | |
4743 | arg5 = &temp5; | |
4744 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4745 | } | |
4746 | } | |
8edf1c75 RD |
4747 | if (obj5) { |
4748 | { | |
4749 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4750 | if (PyErr_Occurred()) SWIG_fail; | |
4751 | } | |
4752 | } | |
d14a1e28 RD |
4753 | if (obj6) { |
4754 | { | |
4755 | arg7 = wxString_in_helper(obj6); | |
4756 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4757 | temp7 = True; |
d14a1e28 RD |
4758 | } |
4759 | } | |
4760 | { | |
4761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4762 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4763 | ||
4764 | wxPyEndAllowThreads(__tstate); | |
4765 | if (PyErr_Occurred()) SWIG_fail; | |
4766 | } | |
4767 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4768 | { | |
4769 | if (temp7) | |
4770 | delete arg7; | |
4771 | } | |
4772 | return resultobj; | |
4773 | fail: | |
4774 | { | |
4775 | if (temp7) | |
4776 | delete arg7; | |
4777 | } | |
4778 | return NULL; | |
4779 | } | |
4780 | ||
4781 | ||
4782 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4783 | PyObject *resultobj; | |
4784 | wxStaticBitmap *result; | |
4785 | char *kwnames[] = { | |
4786 | NULL | |
4787 | }; | |
4788 | ||
4789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4790 | { | |
4791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4792 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4793 | ||
4794 | wxPyEndAllowThreads(__tstate); | |
4795 | if (PyErr_Occurred()) SWIG_fail; | |
4796 | } | |
4797 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4798 | return resultobj; | |
4799 | fail: | |
4800 | return NULL; | |
4801 | } | |
4802 | ||
4803 | ||
4804 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4805 | PyObject *resultobj; | |
4806 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4807 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4808 | int arg3 ; |
d14a1e28 RD |
4809 | wxBitmap *arg4 = 0 ; |
4810 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4811 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4812 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4813 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4814 | long arg7 = (long) 0 ; | |
4815 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4816 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4817 | bool result; | |
4818 | wxPoint temp5 ; | |
4819 | wxSize temp6 ; | |
423f194a | 4820 | bool temp8 = False ; |
d14a1e28 RD |
4821 | PyObject * obj0 = 0 ; |
4822 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4823 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4824 | PyObject * obj3 = 0 ; |
4825 | PyObject * obj4 = 0 ; | |
4826 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4827 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4828 | PyObject * obj7 = 0 ; |
4829 | char *kwnames[] = { | |
4830 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4831 | }; | |
4832 | ||
8edf1c75 | 4833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4835 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4836 | { |
4837 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4838 | if (PyErr_Occurred()) SWIG_fail; | |
4839 | } | |
d14a1e28 RD |
4840 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4841 | if (arg4 == NULL) { | |
4842 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4843 | } | |
4844 | if (obj4) { | |
4845 | { | |
4846 | arg5 = &temp5; | |
4847 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4848 | } | |
4849 | } | |
4850 | if (obj5) { | |
4851 | { | |
4852 | arg6 = &temp6; | |
4853 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4854 | } | |
4855 | } | |
8edf1c75 RD |
4856 | if (obj6) { |
4857 | { | |
4858 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4859 | if (PyErr_Occurred()) SWIG_fail; | |
4860 | } | |
4861 | } | |
d14a1e28 RD |
4862 | if (obj7) { |
4863 | { | |
4864 | arg8 = wxString_in_helper(obj7); | |
4865 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4866 | temp8 = True; |
d14a1e28 RD |
4867 | } |
4868 | } | |
4869 | { | |
4870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4871 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4872 | ||
4873 | wxPyEndAllowThreads(__tstate); | |
4874 | if (PyErr_Occurred()) SWIG_fail; | |
4875 | } | |
4e760a36 | 4876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4877 | { |
4878 | if (temp8) | |
4879 | delete arg8; | |
4880 | } | |
4881 | return resultobj; | |
4882 | fail: | |
4883 | { | |
4884 | if (temp8) | |
4885 | delete arg8; | |
4886 | } | |
4887 | return NULL; | |
4888 | } | |
4889 | ||
4890 | ||
4891 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4892 | PyObject *resultobj; | |
4893 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4894 | wxBitmap result; | |
4895 | PyObject * obj0 = 0 ; | |
4896 | char *kwnames[] = { | |
4897 | (char *) "self", NULL | |
4898 | }; | |
4899 | ||
4900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
4901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4902 | { | |
4903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4904 | result = (arg1)->GetBitmap(); | |
4905 | ||
4906 | wxPyEndAllowThreads(__tstate); | |
4907 | if (PyErr_Occurred()) SWIG_fail; | |
4908 | } | |
4909 | { | |
4910 | wxBitmap * resultptr; | |
4911 | resultptr = new wxBitmap((wxBitmap &) result); | |
4912 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
4913 | } | |
4914 | return resultobj; | |
4915 | fail: | |
4916 | return NULL; | |
4917 | } | |
4918 | ||
4919 | ||
4920 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4921 | PyObject *resultobj; | |
4922 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4923 | wxBitmap *arg2 = 0 ; | |
4924 | PyObject * obj0 = 0 ; | |
4925 | PyObject * obj1 = 0 ; | |
4926 | char *kwnames[] = { | |
4927 | (char *) "self",(char *) "bitmap", NULL | |
4928 | }; | |
4929 | ||
4930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4932 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4933 | if (arg2 == NULL) { | |
4934 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4935 | } | |
4936 | { | |
4937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4938 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4939 | ||
4940 | wxPyEndAllowThreads(__tstate); | |
4941 | if (PyErr_Occurred()) SWIG_fail; | |
4942 | } | |
4943 | Py_INCREF(Py_None); resultobj = Py_None; | |
4944 | return resultobj; | |
4945 | fail: | |
4946 | return NULL; | |
4947 | } | |
4948 | ||
4949 | ||
4950 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4951 | PyObject *resultobj; | |
4952 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4953 | wxIcon *arg2 = 0 ; | |
4954 | PyObject * obj0 = 0 ; | |
4955 | PyObject * obj1 = 0 ; | |
4956 | char *kwnames[] = { | |
4957 | (char *) "self",(char *) "icon", NULL | |
4958 | }; | |
4959 | ||
4960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4962 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4963 | if (arg2 == NULL) { | |
4964 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4965 | } | |
4966 | { | |
4967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4968 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
4969 | ||
4970 | wxPyEndAllowThreads(__tstate); | |
4971 | if (PyErr_Occurred()) SWIG_fail; | |
4972 | } | |
4973 | Py_INCREF(Py_None); resultobj = Py_None; | |
4974 | return resultobj; | |
4975 | fail: | |
4976 | return NULL; | |
4977 | } | |
4978 | ||
4979 | ||
4980 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
4981 | PyObject *obj; | |
4982 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4983 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
4984 | Py_INCREF(obj); | |
4985 | return Py_BuildValue((char *)""); | |
4986 | } | |
8edf1c75 | 4987 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
d03fd34d RD |
4988 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
4989 | return 1; | |
4990 | } | |
4991 | ||
4992 | ||
4993 | static PyObject *_wrap_ListBoxNameStr_get() { | |
4994 | PyObject *pyobj; | |
4995 | ||
4996 | { | |
4997 | #if wxUSE_UNICODE | |
4998 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4999 | #else | |
5000 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5001 | #endif | |
5002 | } | |
5003 | return pyobj; | |
5004 | } | |
5005 | ||
5006 | ||
d14a1e28 RD |
5007 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
5008 | PyObject *resultobj; | |
5009 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 5010 | int arg2 ; |
d14a1e28 RD |
5011 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5012 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5013 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5014 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4e760a36 RD |
5015 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5016 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5017 | long arg6 = (long) 0 ; | |
5018 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5019 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5020 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5021 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5022 | wxListBox *result; |
5023 | wxPoint temp3 ; | |
5024 | wxSize temp4 ; | |
db914595 | 5025 | bool temp5 = False ; |
423f194a | 5026 | bool temp8 = False ; |
d14a1e28 | 5027 | PyObject * obj0 = 0 ; |
8edf1c75 | 5028 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5029 | PyObject * obj2 = 0 ; |
5030 | PyObject * obj3 = 0 ; | |
5031 | PyObject * obj4 = 0 ; | |
8edf1c75 | 5032 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5033 | PyObject * obj6 = 0 ; |
5034 | PyObject * obj7 = 0 ; | |
5035 | char *kwnames[] = { | |
5036 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5037 | }; | |
5038 | ||
8edf1c75 | 5039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 5040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5041 | { |
5042 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5043 | if (PyErr_Occurred()) SWIG_fail; | |
5044 | } | |
d14a1e28 RD |
5045 | if (obj2) { |
5046 | { | |
5047 | arg3 = &temp3; | |
5048 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5049 | } | |
5050 | } | |
5051 | if (obj3) { | |
5052 | { | |
5053 | arg4 = &temp4; | |
5054 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5055 | } | |
5056 | } | |
5057 | if (obj4) { | |
5058 | { | |
4e760a36 RD |
5059 | if (! PySequence_Check(obj4)) { |
5060 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5061 | SWIG_fail; | |
5062 | } | |
5063 | arg5 = new wxArrayString; | |
db914595 | 5064 | temp5 = True; |
4e760a36 RD |
5065 | int i, len=PySequence_Length(obj4); |
5066 | for (i=0; i<len; i++) { | |
5067 | PyObject* item = PySequence_GetItem(obj4, i); | |
5068 | #if wxUSE_UNICODE | |
5069 | PyObject* str = PyObject_Unicode(item); | |
5070 | #else | |
5071 | PyObject* str = PyObject_Str(item); | |
5072 | #endif | |
5073 | arg5->Add(Py2wxString(str)); | |
5074 | Py_DECREF(item); | |
5075 | Py_DECREF(str); | |
5076 | } | |
d14a1e28 RD |
5077 | } |
5078 | } | |
8edf1c75 RD |
5079 | if (obj5) { |
5080 | { | |
4e760a36 | 5081 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
5082 | if (PyErr_Occurred()) SWIG_fail; |
5083 | } | |
5084 | } | |
d14a1e28 | 5085 | if (obj6) { |
4e760a36 RD |
5086 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5087 | if (arg7 == NULL) { | |
d14a1e28 RD |
5088 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5089 | } | |
5090 | } | |
5091 | if (obj7) { | |
5092 | { | |
4e760a36 RD |
5093 | arg8 = wxString_in_helper(obj7); |
5094 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 5095 | temp8 = True; |
d14a1e28 RD |
5096 | } |
5097 | } | |
5098 | { | |
5099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 5100 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5101 | |
5102 | wxPyEndAllowThreads(__tstate); | |
5103 | if (PyErr_Occurred()) SWIG_fail; | |
5104 | } | |
5105 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
5106 | { | |
db914595 | 5107 | if (temp5) delete arg5; |
d14a1e28 RD |
5108 | } |
5109 | { | |
5110 | if (temp8) | |
4e760a36 | 5111 | delete arg8; |
d14a1e28 RD |
5112 | } |
5113 | return resultobj; | |
5114 | fail: | |
5115 | { | |
db914595 | 5116 | if (temp5) delete arg5; |
d14a1e28 RD |
5117 | } |
5118 | { | |
5119 | if (temp8) | |
4e760a36 | 5120 | delete arg8; |
d14a1e28 RD |
5121 | } |
5122 | return NULL; | |
5123 | } | |
5124 | ||
5125 | ||
5126 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5127 | PyObject *resultobj; | |
5128 | wxListBox *result; | |
5129 | char *kwnames[] = { | |
5130 | NULL | |
5131 | }; | |
5132 | ||
5133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5134 | { | |
5135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5136 | result = (wxListBox *)new wxListBox(); | |
5137 | ||
5138 | wxPyEndAllowThreads(__tstate); | |
5139 | if (PyErr_Occurred()) SWIG_fail; | |
5140 | } | |
5141 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
5142 | return resultobj; | |
5143 | fail: | |
5144 | return NULL; | |
5145 | } | |
5146 | ||
5147 | ||
5148 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5149 | PyObject *resultobj; | |
5150 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5151 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 5152 | int arg3 ; |
d14a1e28 RD |
5153 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5154 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5155 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5156 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
5157 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5158 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5159 | long arg7 = (long) 0 ; | |
5160 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5161 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5162 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5163 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5164 | bool result; |
5165 | wxPoint temp4 ; | |
5166 | wxSize temp5 ; | |
db914595 | 5167 | bool temp6 = False ; |
423f194a | 5168 | bool temp9 = False ; |
d14a1e28 RD |
5169 | PyObject * obj0 = 0 ; |
5170 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5171 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5172 | PyObject * obj3 = 0 ; |
5173 | PyObject * obj4 = 0 ; | |
5174 | PyObject * obj5 = 0 ; | |
8edf1c75 | 5175 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5176 | PyObject * obj7 = 0 ; |
5177 | PyObject * obj8 = 0 ; | |
5178 | char *kwnames[] = { | |
5179 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5180 | }; | |
5181 | ||
8edf1c75 | 5182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
5183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5184 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
5185 | { |
5186 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5187 | if (PyErr_Occurred()) SWIG_fail; | |
5188 | } | |
d14a1e28 RD |
5189 | if (obj3) { |
5190 | { | |
5191 | arg4 = &temp4; | |
5192 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5193 | } | |
5194 | } | |
5195 | if (obj4) { | |
5196 | { | |
5197 | arg5 = &temp5; | |
5198 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5199 | } | |
5200 | } | |
5201 | if (obj5) { | |
5202 | { | |
4e760a36 RD |
5203 | if (! PySequence_Check(obj5)) { |
5204 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5205 | SWIG_fail; | |
5206 | } | |
5207 | arg6 = new wxArrayString; | |
db914595 | 5208 | temp6 = True; |
4e760a36 RD |
5209 | int i, len=PySequence_Length(obj5); |
5210 | for (i=0; i<len; i++) { | |
5211 | PyObject* item = PySequence_GetItem(obj5, i); | |
5212 | #if wxUSE_UNICODE | |
5213 | PyObject* str = PyObject_Unicode(item); | |
5214 | #else | |
5215 | PyObject* str = PyObject_Str(item); | |
5216 | #endif | |
5217 | arg6->Add(Py2wxString(str)); | |
5218 | Py_DECREF(item); | |
5219 | Py_DECREF(str); | |
5220 | } | |
d14a1e28 RD |
5221 | } |
5222 | } | |
8edf1c75 RD |
5223 | if (obj6) { |
5224 | { | |
4e760a36 | 5225 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
5226 | if (PyErr_Occurred()) SWIG_fail; |
5227 | } | |
5228 | } | |
d14a1e28 | 5229 | if (obj7) { |
4e760a36 RD |
5230 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5231 | if (arg8 == NULL) { | |
d14a1e28 RD |
5232 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5233 | } | |
5234 | } | |
5235 | if (obj8) { | |
5236 | { | |
4e760a36 RD |
5237 | arg9 = wxString_in_helper(obj8); |
5238 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 5239 | temp9 = True; |
d14a1e28 RD |
5240 | } |
5241 | } | |
5242 | { | |
5243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 5244 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5245 | |
5246 | wxPyEndAllowThreads(__tstate); | |
5247 | if (PyErr_Occurred()) SWIG_fail; | |
5248 | } | |
4e760a36 | 5249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 5250 | { |
db914595 | 5251 | if (temp6) delete arg6; |
d14a1e28 RD |
5252 | } |
5253 | { | |
5254 | if (temp9) | |
4e760a36 | 5255 | delete arg9; |
d14a1e28 RD |
5256 | } |
5257 | return resultobj; | |
5258 | fail: | |
5259 | { | |
db914595 | 5260 | if (temp6) delete arg6; |
d14a1e28 RD |
5261 | } |
5262 | { | |
5263 | if (temp9) | |
4e760a36 | 5264 | delete arg9; |
d14a1e28 RD |
5265 | } |
5266 | return NULL; | |
5267 | } | |
5268 | ||
5269 | ||
5270 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5271 | PyObject *resultobj; | |
5272 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5273 | wxString *arg2 = 0 ; | |
5274 | int arg3 ; | |
5275 | PyObject *arg4 = (PyObject *) NULL ; | |
423f194a | 5276 | bool temp2 = False ; |
d14a1e28 RD |
5277 | PyObject * obj0 = 0 ; |
5278 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5279 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5280 | PyObject * obj3 = 0 ; |
5281 | char *kwnames[] = { | |
5282 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5283 | }; | |
5284 | ||
8edf1c75 | 5285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5287 | { | |
5288 | arg2 = wxString_in_helper(obj1); | |
5289 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5290 | temp2 = True; |
d14a1e28 | 5291 | } |
8edf1c75 RD |
5292 | { |
5293 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5294 | if (PyErr_Occurred()) SWIG_fail; | |
5295 | } | |
d14a1e28 RD |
5296 | if (obj3) { |
5297 | arg4 = obj3; | |
5298 | } | |
5299 | { | |
5300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5301 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5302 | ||
5303 | wxPyEndAllowThreads(__tstate); | |
5304 | if (PyErr_Occurred()) SWIG_fail; | |
5305 | } | |
5306 | Py_INCREF(Py_None); resultobj = Py_None; | |
5307 | { | |
5308 | if (temp2) | |
5309 | delete arg2; | |
5310 | } | |
5311 | return resultobj; | |
5312 | fail: | |
5313 | { | |
5314 | if (temp2) | |
5315 | delete arg2; | |
5316 | } | |
5317 | return NULL; | |
5318 | } | |
5319 | ||
5320 | ||
5321 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5322 | PyObject *resultobj; | |
5323 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5324 | wxArrayString *arg2 = 0 ; | |
5325 | int arg3 ; | |
db914595 | 5326 | bool temp2 = False ; |
d14a1e28 RD |
5327 | PyObject * obj0 = 0 ; |
5328 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5329 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5330 | char *kwnames[] = { |
5331 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5332 | }; | |
5333 | ||
8edf1c75 | 5334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
5335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5336 | { | |
5337 | if (! PySequence_Check(obj1)) { | |
5338 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5339 | SWIG_fail; | |
5340 | } | |
5341 | arg2 = new wxArrayString; | |
db914595 | 5342 | temp2 = True; |
d14a1e28 RD |
5343 | int i, len=PySequence_Length(obj1); |
5344 | for (i=0; i<len; i++) { | |
5345 | PyObject* item = PySequence_GetItem(obj1, i); | |
5346 | #if wxUSE_UNICODE | |
5347 | PyObject* str = PyObject_Unicode(item); | |
5348 | #else | |
5349 | PyObject* str = PyObject_Str(item); | |
5350 | #endif | |
5351 | arg2->Add(Py2wxString(str)); | |
5352 | Py_DECREF(item); | |
5353 | Py_DECREF(str); | |
5354 | } | |
5355 | } | |
8edf1c75 RD |
5356 | { |
5357 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5358 | if (PyErr_Occurred()) SWIG_fail; | |
5359 | } | |
d14a1e28 RD |
5360 | { |
5361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5362 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5363 | ||
5364 | wxPyEndAllowThreads(__tstate); | |
5365 | if (PyErr_Occurred()) SWIG_fail; | |
5366 | } | |
5367 | Py_INCREF(Py_None); resultobj = Py_None; | |
5368 | { | |
db914595 | 5369 | if (temp2) delete arg2; |
d14a1e28 RD |
5370 | } |
5371 | return resultobj; | |
5372 | fail: | |
5373 | { | |
db914595 | 5374 | if (temp2) delete arg2; |
d14a1e28 RD |
5375 | } |
5376 | return NULL; | |
5377 | } | |
5378 | ||
5379 | ||
5380 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5381 | PyObject *resultobj; | |
5382 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5383 | wxArrayString *arg2 = 0 ; | |
db914595 | 5384 | bool temp2 = False ; |
d14a1e28 RD |
5385 | PyObject * obj0 = 0 ; |
5386 | PyObject * obj1 = 0 ; | |
5387 | char *kwnames[] = { | |
5388 | (char *) "self",(char *) "items", NULL | |
5389 | }; | |
5390 | ||
5391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
5392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5393 | { | |
5394 | if (! PySequence_Check(obj1)) { | |
5395 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5396 | SWIG_fail; | |
5397 | } | |
5398 | arg2 = new wxArrayString; | |
db914595 | 5399 | temp2 = True; |
d14a1e28 RD |
5400 | int i, len=PySequence_Length(obj1); |
5401 | for (i=0; i<len; i++) { | |
5402 | PyObject* item = PySequence_GetItem(obj1, i); | |
5403 | #if wxUSE_UNICODE | |
5404 | PyObject* str = PyObject_Unicode(item); | |
5405 | #else | |
5406 | PyObject* str = PyObject_Str(item); | |
5407 | #endif | |
5408 | arg2->Add(Py2wxString(str)); | |
5409 | Py_DECREF(item); | |
5410 | Py_DECREF(str); | |
5411 | } | |
5412 | } | |
5413 | { | |
5414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5415 | (arg1)->Set((wxArrayString const &)*arg2); | |
5416 | ||
5417 | wxPyEndAllowThreads(__tstate); | |
5418 | if (PyErr_Occurred()) SWIG_fail; | |
5419 | } | |
5420 | Py_INCREF(Py_None); resultobj = Py_None; | |
5421 | { | |
db914595 | 5422 | if (temp2) delete arg2; |
d14a1e28 RD |
5423 | } |
5424 | return resultobj; | |
5425 | fail: | |
5426 | { | |
db914595 | 5427 | if (temp2) delete arg2; |
d14a1e28 RD |
5428 | } |
5429 | return NULL; | |
5430 | } | |
5431 | ||
5432 | ||
5433 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5434 | PyObject *resultobj; | |
5435 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5436 | int arg2 ; | |
5437 | bool result; | |
5438 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5439 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5440 | char *kwnames[] = { |
5441 | (char *) "self",(char *) "n", NULL | |
5442 | }; | |
5443 | ||
8edf1c75 | 5444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5446 | { |
5447 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5448 | if (PyErr_Occurred()) SWIG_fail; | |
5449 | } | |
d14a1e28 RD |
5450 | { |
5451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5452 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
5453 | ||
5454 | wxPyEndAllowThreads(__tstate); | |
5455 | if (PyErr_Occurred()) SWIG_fail; | |
5456 | } | |
4e760a36 | 5457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5458 | return resultobj; |
5459 | fail: | |
5460 | return NULL; | |
5461 | } | |
5462 | ||
5463 | ||
5464 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5465 | PyObject *resultobj; | |
5466 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5467 | int arg2 ; | |
423f194a | 5468 | bool arg3 = (bool) True ; |
d14a1e28 | 5469 | PyObject * obj0 = 0 ; |
8edf1c75 | 5470 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5471 | PyObject * obj2 = 0 ; |
5472 | char *kwnames[] = { | |
5473 | (char *) "self",(char *) "n",(char *) "select", NULL | |
5474 | }; | |
5475 | ||
8edf1c75 | 5476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5478 | { |
5479 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5480 | if (PyErr_Occurred()) SWIG_fail; | |
5481 | } | |
d14a1e28 | 5482 | if (obj2) { |
83448d71 | 5483 | { |
8edf1c75 | 5484 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
5485 | if (PyErr_Occurred()) SWIG_fail; |
5486 | } | |
d14a1e28 RD |
5487 | } |
5488 | { | |
5489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5490 | (arg1)->SetSelection(arg2,arg3); | |
5491 | ||
5492 | wxPyEndAllowThreads(__tstate); | |
5493 | if (PyErr_Occurred()) SWIG_fail; | |
5494 | } | |
5495 | Py_INCREF(Py_None); resultobj = Py_None; | |
5496 | return resultobj; | |
5497 | fail: | |
5498 | return NULL; | |
5499 | } | |
5500 | ||
5501 | ||
5502 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5503 | PyObject *resultobj; | |
5504 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5505 | int arg2 ; | |
5506 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5507 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5508 | char *kwnames[] = { |
5509 | (char *) "self",(char *) "n", NULL | |
5510 | }; | |
5511 | ||
8edf1c75 | 5512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5514 | { |
5515 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5516 | if (PyErr_Occurred()) SWIG_fail; | |
5517 | } | |
d14a1e28 RD |
5518 | { |
5519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5520 | (arg1)->Select(arg2); | |
5521 | ||
5522 | wxPyEndAllowThreads(__tstate); | |
5523 | if (PyErr_Occurred()) SWIG_fail; | |
5524 | } | |
5525 | Py_INCREF(Py_None); resultobj = Py_None; | |
5526 | return resultobj; | |
5527 | fail: | |
5528 | return NULL; | |
5529 | } | |
5530 | ||
5531 | ||
5532 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5533 | PyObject *resultobj; | |
5534 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5535 | int arg2 ; | |
5536 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5537 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5538 | char *kwnames[] = { |
5539 | (char *) "self",(char *) "n", NULL | |
5540 | }; | |
5541 | ||
8edf1c75 | 5542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5544 | { |
5545 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5546 | if (PyErr_Occurred()) SWIG_fail; | |
5547 | } | |
d14a1e28 RD |
5548 | { |
5549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5550 | (arg1)->Deselect(arg2); | |
5551 | ||
5552 | wxPyEndAllowThreads(__tstate); | |
5553 | if (PyErr_Occurred()) SWIG_fail; | |
5554 | } | |
5555 | Py_INCREF(Py_None); resultobj = Py_None; | |
5556 | return resultobj; | |
5557 | fail: | |
5558 | return NULL; | |
5559 | } | |
5560 | ||
5561 | ||
5562 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5563 | PyObject *resultobj; | |
5564 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5565 | int arg2 = (int) -1 ; | |
5566 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5567 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5568 | char *kwnames[] = { |
5569 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
5570 | }; | |
5571 | ||
8edf1c75 | 5572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5574 | if (obj1) { |
5575 | { | |
5576 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5577 | if (PyErr_Occurred()) SWIG_fail; | |
5578 | } | |
5579 | } | |
d14a1e28 RD |
5580 | { |
5581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5582 | (arg1)->DeselectAll(arg2); | |
5583 | ||
5584 | wxPyEndAllowThreads(__tstate); | |
5585 | if (PyErr_Occurred()) SWIG_fail; | |
5586 | } | |
5587 | Py_INCREF(Py_None); resultobj = Py_None; | |
5588 | return resultobj; | |
5589 | fail: | |
5590 | return NULL; | |
5591 | } | |
5592 | ||
5593 | ||
5594 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5595 | PyObject *resultobj; | |
5596 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5597 | wxString *arg2 = 0 ; | |
423f194a | 5598 | bool arg3 = (bool) True ; |
d14a1e28 | 5599 | bool result; |
423f194a | 5600 | bool temp2 = False ; |
d14a1e28 RD |
5601 | PyObject * obj0 = 0 ; |
5602 | PyObject * obj1 = 0 ; | |
5603 | PyObject * obj2 = 0 ; | |
5604 | char *kwnames[] = { | |
5605 | (char *) "self",(char *) "s",(char *) "select", NULL | |
5606 | }; | |
5607 | ||
5608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5610 | { | |
5611 | arg2 = wxString_in_helper(obj1); | |
5612 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5613 | temp2 = True; |
d14a1e28 RD |
5614 | } |
5615 | if (obj2) { | |
83448d71 | 5616 | { |
8edf1c75 | 5617 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
5618 | if (PyErr_Occurred()) SWIG_fail; |
5619 | } | |
d14a1e28 RD |
5620 | } |
5621 | { | |
5622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5623 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
5624 | ||
5625 | wxPyEndAllowThreads(__tstate); | |
5626 | if (PyErr_Occurred()) SWIG_fail; | |
5627 | } | |
4e760a36 | 5628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5629 | { |
5630 | if (temp2) | |
5631 | delete arg2; | |
5632 | } | |
5633 | return resultobj; | |
5634 | fail: | |
5635 | { | |
5636 | if (temp2) | |
5637 | delete arg2; | |
5638 | } | |
5639 | return NULL; | |
5640 | } | |
5641 | ||
5642 | ||
5643 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5644 | PyObject *resultobj; | |
5645 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5646 | PyObject *result; | |
5647 | PyObject * obj0 = 0 ; | |
5648 | char *kwnames[] = { | |
5649 | (char *) "self", NULL | |
5650 | }; | |
5651 | ||
5652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
5653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5654 | { | |
5655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5656 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
5657 | ||
5658 | wxPyEndAllowThreads(__tstate); | |
5659 | if (PyErr_Occurred()) SWIG_fail; | |
5660 | } | |
5661 | resultobj = result; | |
5662 | return resultobj; | |
5663 | fail: | |
5664 | return NULL; | |
5665 | } | |
5666 | ||
5667 | ||
5668 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5669 | PyObject *resultobj; | |
5670 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5671 | int arg2 ; | |
5672 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5673 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5674 | char *kwnames[] = { |
5675 | (char *) "self",(char *) "n", NULL | |
5676 | }; | |
5677 | ||
8edf1c75 | 5678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5680 | { |
5681 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5682 | if (PyErr_Occurred()) SWIG_fail; | |
5683 | } | |
d14a1e28 RD |
5684 | { |
5685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5686 | (arg1)->SetFirstItem(arg2); | |
5687 | ||
5688 | wxPyEndAllowThreads(__tstate); | |
5689 | if (PyErr_Occurred()) SWIG_fail; | |
5690 | } | |
5691 | Py_INCREF(Py_None); resultobj = Py_None; | |
5692 | return resultobj; | |
5693 | fail: | |
5694 | return NULL; | |
5695 | } | |
5696 | ||
5697 | ||
5698 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5699 | PyObject *resultobj; | |
5700 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5701 | wxString *arg2 = 0 ; | |
423f194a | 5702 | bool temp2 = False ; |
d14a1e28 RD |
5703 | PyObject * obj0 = 0 ; |
5704 | PyObject * obj1 = 0 ; | |
5705 | char *kwnames[] = { | |
5706 | (char *) "self",(char *) "s", NULL | |
5707 | }; | |
5708 | ||
5709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
5710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5711 | { | |
5712 | arg2 = wxString_in_helper(obj1); | |
5713 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5714 | temp2 = True; |
d14a1e28 RD |
5715 | } |
5716 | { | |
5717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5718 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
5719 | ||
5720 | wxPyEndAllowThreads(__tstate); | |
5721 | if (PyErr_Occurred()) SWIG_fail; | |
5722 | } | |
5723 | Py_INCREF(Py_None); resultobj = Py_None; | |
5724 | { | |
5725 | if (temp2) | |
5726 | delete arg2; | |
5727 | } | |
5728 | return resultobj; | |
5729 | fail: | |
5730 | { | |
5731 | if (temp2) | |
5732 | delete arg2; | |
5733 | } | |
5734 | return NULL; | |
5735 | } | |
5736 | ||
5737 | ||
5738 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5739 | PyObject *resultobj; | |
5740 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5741 | int arg2 ; | |
5742 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5743 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5744 | char *kwnames[] = { |
5745 | (char *) "self",(char *) "n", NULL | |
5746 | }; | |
5747 | ||
8edf1c75 | 5748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5750 | { |
5751 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5752 | if (PyErr_Occurred()) SWIG_fail; | |
5753 | } | |
d14a1e28 RD |
5754 | { |
5755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5756 | (arg1)->EnsureVisible(arg2); | |
5757 | ||
5758 | wxPyEndAllowThreads(__tstate); | |
5759 | if (PyErr_Occurred()) SWIG_fail; | |
5760 | } | |
5761 | Py_INCREF(Py_None); resultobj = Py_None; | |
5762 | return resultobj; | |
5763 | fail: | |
5764 | return NULL; | |
5765 | } | |
5766 | ||
5767 | ||
5768 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5769 | PyObject *resultobj; | |
5770 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5771 | wxString *arg2 = 0 ; | |
423f194a | 5772 | bool temp2 = False ; |
d14a1e28 RD |
5773 | PyObject * obj0 = 0 ; |
5774 | PyObject * obj1 = 0 ; | |
5775 | char *kwnames[] = { | |
5776 | (char *) "self",(char *) "s", NULL | |
5777 | }; | |
5778 | ||
5779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
5780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5781 | { | |
5782 | arg2 = wxString_in_helper(obj1); | |
5783 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5784 | temp2 = True; |
d14a1e28 RD |
5785 | } |
5786 | { | |
5787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5788 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
5789 | ||
5790 | wxPyEndAllowThreads(__tstate); | |
5791 | if (PyErr_Occurred()) SWIG_fail; | |
5792 | } | |
5793 | Py_INCREF(Py_None); resultobj = Py_None; | |
5794 | { | |
5795 | if (temp2) | |
5796 | delete arg2; | |
5797 | } | |
5798 | return resultobj; | |
5799 | fail: | |
5800 | { | |
5801 | if (temp2) | |
5802 | delete arg2; | |
5803 | } | |
5804 | return NULL; | |
5805 | } | |
5806 | ||
5807 | ||
5808 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5809 | PyObject *resultobj; | |
5810 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5811 | bool result; | |
5812 | PyObject * obj0 = 0 ; | |
5813 | char *kwnames[] = { | |
5814 | (char *) "self", NULL | |
5815 | }; | |
5816 | ||
5817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
5818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5819 | { | |
5820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5821 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
5822 | ||
5823 | wxPyEndAllowThreads(__tstate); | |
5824 | if (PyErr_Occurred()) SWIG_fail; | |
5825 | } | |
4e760a36 | 5826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5827 | return resultobj; |
5828 | fail: | |
5829 | return NULL; | |
5830 | } | |
5831 | ||
5832 | ||
0ffb2aa6 RD |
5833 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
5834 | PyObject *resultobj; | |
5835 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5836 | int arg2 ; | |
5837 | wxColour *arg3 = 0 ; | |
5838 | wxColour temp3 ; | |
5839 | PyObject * obj0 = 0 ; | |
5840 | PyObject * obj1 = 0 ; | |
5841 | PyObject * obj2 = 0 ; | |
5842 | char *kwnames[] = { | |
5843 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5844 | }; | |
5845 | ||
5846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5848 | { | |
5849 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5850 | if (PyErr_Occurred()) SWIG_fail; | |
5851 | } | |
5852 | { | |
5853 | arg3 = &temp3; | |
5854 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5855 | } | |
5856 | { | |
5857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5858 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5859 | ||
5860 | wxPyEndAllowThreads(__tstate); | |
5861 | if (PyErr_Occurred()) SWIG_fail; | |
5862 | } | |
5863 | Py_INCREF(Py_None); resultobj = Py_None; | |
5864 | return resultobj; | |
5865 | fail: | |
5866 | return NULL; | |
5867 | } | |
5868 | ||
5869 | ||
5870 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5871 | PyObject *resultobj; | |
5872 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5873 | int arg2 ; | |
5874 | wxColour *arg3 = 0 ; | |
5875 | wxColour temp3 ; | |
5876 | PyObject * obj0 = 0 ; | |
5877 | PyObject * obj1 = 0 ; | |
5878 | PyObject * obj2 = 0 ; | |
5879 | char *kwnames[] = { | |
5880 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5881 | }; | |
5882 | ||
5883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5885 | { | |
5886 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5887 | if (PyErr_Occurred()) SWIG_fail; | |
5888 | } | |
5889 | { | |
5890 | arg3 = &temp3; | |
5891 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5892 | } | |
5893 | { | |
5894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5895 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5896 | ||
5897 | wxPyEndAllowThreads(__tstate); | |
5898 | if (PyErr_Occurred()) SWIG_fail; | |
5899 | } | |
5900 | Py_INCREF(Py_None); resultobj = Py_None; | |
5901 | return resultobj; | |
5902 | fail: | |
5903 | return NULL; | |
5904 | } | |
5905 | ||
5906 | ||
5907 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5908 | PyObject *resultobj; | |
5909 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5910 | int arg2 ; | |
5911 | wxFont *arg3 = 0 ; | |
5912 | PyObject * obj0 = 0 ; | |
5913 | PyObject * obj1 = 0 ; | |
5914 | PyObject * obj2 = 0 ; | |
5915 | char *kwnames[] = { | |
5916 | (char *) "self",(char *) "item",(char *) "f", NULL | |
5917 | }; | |
5918 | ||
5919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5921 | { | |
5922 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5923 | if (PyErr_Occurred()) SWIG_fail; | |
5924 | } | |
5925 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5926 | if (arg3 == NULL) { | |
5927 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5928 | } | |
5929 | { | |
5930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5931 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
5932 | ||
5933 | wxPyEndAllowThreads(__tstate); | |
5934 | if (PyErr_Occurred()) SWIG_fail; | |
5935 | } | |
5936 | Py_INCREF(Py_None); resultobj = Py_None; | |
5937 | return resultobj; | |
5938 | fail: | |
5939 | return NULL; | |
5940 | } | |
5941 | ||
5942 | ||
d14a1e28 RD |
5943 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { |
5944 | PyObject *obj; | |
5945 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5946 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
5947 | Py_INCREF(obj); | |
5948 | return Py_BuildValue((char *)""); | |
5949 | } | |
5950 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5951 | PyObject *resultobj; | |
5952 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 5953 | int arg2 ; |
d14a1e28 RD |
5954 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5955 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5956 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5957 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4e760a36 RD |
5958 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5959 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5960 | long arg6 = (long) 0 ; | |
5961 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5962 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5963 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5964 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5965 | wxCheckListBox *result; |
5966 | wxPoint temp3 ; | |
5967 | wxSize temp4 ; | |
db914595 | 5968 | bool temp5 = False ; |
423f194a | 5969 | bool temp8 = False ; |
d14a1e28 | 5970 | PyObject * obj0 = 0 ; |
8edf1c75 | 5971 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5972 | PyObject * obj2 = 0 ; |
5973 | PyObject * obj3 = 0 ; | |
5974 | PyObject * obj4 = 0 ; | |
8edf1c75 | 5975 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5976 | PyObject * obj6 = 0 ; |
5977 | PyObject * obj7 = 0 ; | |
5978 | char *kwnames[] = { | |
5979 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5980 | }; | |
5981 | ||
8edf1c75 | 5982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 5983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5984 | { |
5985 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5986 | if (PyErr_Occurred()) SWIG_fail; | |
5987 | } | |
d14a1e28 RD |
5988 | if (obj2) { |
5989 | { | |
5990 | arg3 = &temp3; | |
5991 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5992 | } | |
5993 | } | |
5994 | if (obj3) { | |
5995 | { | |
5996 | arg4 = &temp4; | |
5997 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5998 | } | |
5999 | } | |
6000 | if (obj4) { | |
6001 | { | |
4e760a36 RD |
6002 | if (! PySequence_Check(obj4)) { |
6003 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6004 | SWIG_fail; | |
6005 | } | |
6006 | arg5 = new wxArrayString; | |
db914595 | 6007 | temp5 = True; |
4e760a36 RD |
6008 | int i, len=PySequence_Length(obj4); |
6009 | for (i=0; i<len; i++) { | |
6010 | PyObject* item = PySequence_GetItem(obj4, i); | |
6011 | #if wxUSE_UNICODE | |
6012 | PyObject* str = PyObject_Unicode(item); | |
6013 | #else | |
6014 | PyObject* str = PyObject_Str(item); | |
6015 | #endif | |
6016 | arg5->Add(Py2wxString(str)); | |
6017 | Py_DECREF(item); | |
6018 | Py_DECREF(str); | |
6019 | } | |
d14a1e28 RD |
6020 | } |
6021 | } | |
8edf1c75 RD |
6022 | if (obj5) { |
6023 | { | |
4e760a36 | 6024 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
6025 | if (PyErr_Occurred()) SWIG_fail; |
6026 | } | |
6027 | } | |
d14a1e28 | 6028 | if (obj6) { |
4e760a36 RD |
6029 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6030 | if (arg7 == NULL) { | |
d14a1e28 RD |
6031 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
6032 | } | |
6033 | } | |
6034 | if (obj7) { | |
6035 | { | |
4e760a36 RD |
6036 | arg8 = wxString_in_helper(obj7); |
6037 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 6038 | temp8 = True; |
d14a1e28 RD |
6039 | } |
6040 | } | |
6041 | { | |
6042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 6043 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
6044 | |
6045 | wxPyEndAllowThreads(__tstate); | |
6046 | if (PyErr_Occurred()) SWIG_fail; | |
6047 | } | |
6048 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
6049 | { | |
db914595 | 6050 | if (temp5) delete arg5; |
d14a1e28 RD |
6051 | } |
6052 | { | |
6053 | if (temp8) | |
4e760a36 | 6054 | delete arg8; |
d14a1e28 RD |
6055 | } |
6056 | return resultobj; | |
6057 | fail: | |
6058 | { | |
db914595 | 6059 | if (temp5) delete arg5; |
d14a1e28 RD |
6060 | } |
6061 | { | |
6062 | if (temp8) | |
4e760a36 | 6063 | delete arg8; |
d14a1e28 RD |
6064 | } |
6065 | return NULL; | |
6066 | } | |
6067 | ||
6068 | ||
6069 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6070 | PyObject *resultobj; | |
6071 | wxCheckListBox *result; | |
6072 | char *kwnames[] = { | |
6073 | NULL | |
6074 | }; | |
6075 | ||
6076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6077 | { | |
6078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6079 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6080 | ||
6081 | wxPyEndAllowThreads(__tstate); | |
6082 | if (PyErr_Occurred()) SWIG_fail; | |
6083 | } | |
6084 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
6085 | return resultobj; | |
6086 | fail: | |
6087 | return NULL; | |
6088 | } | |
6089 | ||
6090 | ||
6091 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6092 | PyObject *resultobj; | |
6093 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6094 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 6095 | int arg3 ; |
d14a1e28 RD |
6096 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6097 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6098 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6099 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
6100 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
6101 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6102 | long arg7 = (long) 0 ; | |
6103 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6104 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6105 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6106 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
6107 | bool result; |
6108 | wxPoint temp4 ; | |
6109 | wxSize temp5 ; | |
db914595 | 6110 | bool temp6 = False ; |
423f194a | 6111 | bool temp9 = False ; |
d14a1e28 RD |
6112 | PyObject * obj0 = 0 ; |
6113 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6114 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6115 | PyObject * obj3 = 0 ; |
6116 | PyObject * obj4 = 0 ; | |
6117 | PyObject * obj5 = 0 ; | |
8edf1c75 | 6118 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6119 | PyObject * obj7 = 0 ; |
6120 | PyObject * obj8 = 0 ; | |
6121 | char *kwnames[] = { | |
6122 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6123 | }; | |
6124 | ||
8edf1c75 | 6125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
6126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6127 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
6128 | { |
6129 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6130 | if (PyErr_Occurred()) SWIG_fail; | |
6131 | } | |
d14a1e28 RD |
6132 | if (obj3) { |
6133 | { | |
6134 | arg4 = &temp4; | |
6135 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6136 | } | |
6137 | } | |
6138 | if (obj4) { | |
6139 | { | |
6140 | arg5 = &temp5; | |
6141 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6142 | } | |
6143 | } | |
6144 | if (obj5) { | |
6145 | { | |
4e760a36 RD |
6146 | if (! PySequence_Check(obj5)) { |
6147 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6148 | SWIG_fail; | |
6149 | } | |
6150 | arg6 = new wxArrayString; | |
db914595 | 6151 | temp6 = True; |
4e760a36 RD |
6152 | int i, len=PySequence_Length(obj5); |
6153 | for (i=0; i<len; i++) { | |
6154 | PyObject* item = PySequence_GetItem(obj5, i); | |
6155 | #if wxUSE_UNICODE | |
6156 | PyObject* str = PyObject_Unicode(item); | |
6157 | #else | |
6158 | PyObject* str = PyObject_Str(item); | |
6159 | #endif | |
6160 | arg6->Add(Py2wxString(str)); | |
6161 | Py_DECREF(item); | |
6162 | Py_DECREF(str); | |
6163 | } | |
d14a1e28 RD |
6164 | } |
6165 | } | |
8edf1c75 RD |
6166 | if (obj6) { |
6167 | { | |
4e760a36 | 6168 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
6169 | if (PyErr_Occurred()) SWIG_fail; |
6170 | } | |
6171 | } | |
d14a1e28 | 6172 | if (obj7) { |
4e760a36 RD |
6173 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6174 | if (arg8 == NULL) { | |
d14a1e28 RD |
6175 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
6176 | } | |
6177 | } | |
6178 | if (obj8) { | |
6179 | { | |
4e760a36 RD |
6180 | arg9 = wxString_in_helper(obj8); |
6181 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 6182 | temp9 = True; |
d14a1e28 RD |
6183 | } |
6184 | } | |
6185 | { | |
6186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 6187 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
6188 | |
6189 | wxPyEndAllowThreads(__tstate); | |
6190 | if (PyErr_Occurred()) SWIG_fail; | |
6191 | } | |
4e760a36 | 6192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 6193 | { |
db914595 | 6194 | if (temp6) delete arg6; |
d14a1e28 RD |
6195 | } |
6196 | { | |
6197 | if (temp9) | |
4e760a36 | 6198 | delete arg9; |
d14a1e28 RD |
6199 | } |
6200 | return resultobj; | |
6201 | fail: | |
6202 | { | |
db914595 | 6203 | if (temp6) delete arg6; |
d14a1e28 RD |
6204 | } |
6205 | { | |
6206 | if (temp9) | |
4e760a36 | 6207 | delete arg9; |
d14a1e28 RD |
6208 | } |
6209 | return NULL; | |
6210 | } | |
6211 | ||
6212 | ||
6213 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6214 | PyObject *resultobj; | |
6215 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6216 | int arg2 ; | |
6217 | bool result; | |
6218 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6219 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6220 | char *kwnames[] = { |
6221 | (char *) "self",(char *) "index", NULL | |
6222 | }; | |
6223 | ||
8edf1c75 | 6224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6226 | { |
6227 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6228 | if (PyErr_Occurred()) SWIG_fail; | |
6229 | } | |
d14a1e28 RD |
6230 | { |
6231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6232 | result = (bool)(arg1)->IsChecked(arg2); | |
6233 | ||
6234 | wxPyEndAllowThreads(__tstate); | |
6235 | if (PyErr_Occurred()) SWIG_fail; | |
6236 | } | |
4e760a36 | 6237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6238 | return resultobj; |
6239 | fail: | |
6240 | return NULL; | |
6241 | } | |
6242 | ||
6243 | ||
6244 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6245 | PyObject *resultobj; | |
6246 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6247 | int arg2 ; | |
423f194a | 6248 | int arg3 = (int) True ; |
d14a1e28 | 6249 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
6250 | PyObject * obj1 = 0 ; |
6251 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6252 | char *kwnames[] = { |
6253 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6254 | }; | |
6255 | ||
8edf1c75 | 6256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6258 | { |
6259 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6260 | if (PyErr_Occurred()) SWIG_fail; | |
6261 | } | |
6262 | if (obj2) { | |
6263 | { | |
6264 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6265 | if (PyErr_Occurred()) SWIG_fail; | |
6266 | } | |
6267 | } | |
d14a1e28 RD |
6268 | { |
6269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6270 | (arg1)->Check(arg2,arg3); | |
6271 | ||
6272 | wxPyEndAllowThreads(__tstate); | |
6273 | if (PyErr_Occurred()) SWIG_fail; | |
6274 | } | |
6275 | Py_INCREF(Py_None); resultobj = Py_None; | |
6276 | return resultobj; | |
6277 | fail: | |
6278 | return NULL; | |
6279 | } | |
6280 | ||
6281 | ||
6282 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6283 | PyObject *resultobj; | |
6284 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6285 | int result; | |
6286 | PyObject * obj0 = 0 ; | |
6287 | char *kwnames[] = { | |
6288 | (char *) "self", NULL | |
6289 | }; | |
6290 | ||
6291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
6292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6293 | { | |
6294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6295 | result = (int)(arg1)->GetItemHeight(); | |
6296 | ||
6297 | wxPyEndAllowThreads(__tstate); | |
6298 | if (PyErr_Occurred()) SWIG_fail; | |
6299 | } | |
8edf1c75 | 6300 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6301 | return resultobj; |
6302 | fail: | |
6303 | return NULL; | |
6304 | } | |
6305 | ||
6306 | ||
6307 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6308 | PyObject *resultobj; | |
6309 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6310 | wxPoint *arg2 = 0 ; | |
6311 | int result; | |
6312 | wxPoint temp2 ; | |
6313 | PyObject * obj0 = 0 ; | |
6314 | PyObject * obj1 = 0 ; | |
6315 | char *kwnames[] = { | |
6316 | (char *) "self",(char *) "pt", NULL | |
6317 | }; | |
6318 | ||
6319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
6320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6321 | { | |
6322 | arg2 = &temp2; | |
6323 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6324 | } | |
6325 | { | |
6326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6327 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6328 | ||
6329 | wxPyEndAllowThreads(__tstate); | |
6330 | if (PyErr_Occurred()) SWIG_fail; | |
6331 | } | |
8edf1c75 | 6332 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6333 | return resultobj; |
6334 | fail: | |
6335 | return NULL; | |
6336 | } | |
6337 | ||
6338 | ||
6339 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6340 | PyObject *resultobj; | |
6341 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
423f194a RD |
6342 | int arg2 ; |
6343 | int arg3 ; | |
d14a1e28 RD |
6344 | int result; |
6345 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6346 | PyObject * obj1 = 0 ; |
6347 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6348 | char *kwnames[] = { |
6349 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6350 | }; | |
6351 | ||
8edf1c75 | 6352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6354 | { |
6355 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6356 | if (PyErr_Occurred()) SWIG_fail; | |
6357 | } | |
6358 | { | |
6359 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6360 | if (PyErr_Occurred()) SWIG_fail; | |
6361 | } | |
d14a1e28 RD |
6362 | { |
6363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6364 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6365 | ||
6366 | wxPyEndAllowThreads(__tstate); | |
6367 | if (PyErr_Occurred()) SWIG_fail; | |
6368 | } | |
8edf1c75 | 6369 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6370 | return resultobj; |
6371 | fail: | |
6372 | return NULL; | |
6373 | } | |
6374 | ||
6375 | ||
6376 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6377 | PyObject *obj; | |
6378 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6379 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6380 | Py_INCREF(obj); | |
6381 | return Py_BuildValue((char *)""); | |
6382 | } | |
8edf1c75 | 6383 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
d03fd34d RD |
6384 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
6385 | return 1; | |
6386 | } | |
6387 | ||
6388 | ||
6389 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6390 | PyObject *pyobj; | |
6391 | ||
6392 | { | |
6393 | #if wxUSE_UNICODE | |
6394 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6395 | #else | |
6396 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6397 | #endif | |
6398 | } | |
6399 | return pyobj; | |
6400 | } | |
6401 | ||
6402 | ||
d14a1e28 RD |
6403 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { |
6404 | PyObject *resultobj; | |
6405 | wxTextAttr *result; | |
6406 | ||
6407 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
6408 | { | |
6409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6410 | result = (wxTextAttr *)new wxTextAttr(); | |
6411 | ||
6412 | wxPyEndAllowThreads(__tstate); | |
6413 | if (PyErr_Occurred()) SWIG_fail; | |
6414 | } | |
6415 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6416 | return resultobj; | |
6417 | fail: | |
6418 | return NULL; | |
6419 | } | |
6420 | ||
6421 | ||
6422 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
6423 | PyObject *resultobj; | |
6424 | wxColour *arg1 = 0 ; | |
6425 | wxColour const &arg2_defvalue = wxNullColour ; | |
6426 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6427 | wxFont const &arg3_defvalue = wxNullFont ; | |
6428 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6429 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6430 | wxTextAttr *result; | |
6431 | wxColour temp1 ; | |
6432 | wxColour temp2 ; | |
6433 | PyObject * obj0 = 0 ; | |
6434 | PyObject * obj1 = 0 ; | |
6435 | PyObject * obj2 = 0 ; | |
8edf1c75 | 6436 | PyObject * obj3 = 0 ; |
d14a1e28 | 6437 | |
8edf1c75 | 6438 | if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
6439 | { |
6440 | arg1 = &temp1; | |
6441 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
6442 | } | |
6443 | if (obj1) { | |
6444 | { | |
6445 | arg2 = &temp2; | |
6446 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6447 | } | |
6448 | } | |
6449 | if (obj2) { | |
6450 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6451 | if (arg3 == NULL) { | |
6452 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6453 | } | |
6454 | } | |
8edf1c75 RD |
6455 | if (obj3) { |
6456 | { | |
6457 | arg4 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj3); | |
6458 | if (PyErr_Occurred()) SWIG_fail; | |
6459 | } | |
6460 | } | |
6461 | { | |
6462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6463 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
d14a1e28 RD |
6464 | |
6465 | wxPyEndAllowThreads(__tstate); | |
6466 | if (PyErr_Occurred()) SWIG_fail; | |
6467 | } | |
6468 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6469 | return resultobj; | |
6470 | fail: | |
6471 | return NULL; | |
6472 | } | |
6473 | ||
6474 | ||
6475 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
6476 | int argc; | |
6477 | PyObject *argv[5]; | |
6478 | int ii; | |
6479 | ||
6480 | argc = PyObject_Length(args); | |
6481 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
6482 | argv[ii] = PyTuple_GetItem(args,ii); | |
6483 | } | |
6484 | if (argc == 0) { | |
6485 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
6486 | } | |
6487 | if ((argc >= 1) && (argc <= 4)) { | |
6488 | int _v; | |
6489 | { | |
6490 | _v = wxColour_typecheck(argv[0]); | |
6491 | } | |
6492 | if (_v) { | |
6493 | if (argc <= 1) { | |
6494 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6495 | } | |
6496 | { | |
6497 | _v = wxColour_typecheck(argv[1]); | |
6498 | } | |
6499 | if (_v) { | |
6500 | if (argc <= 2) { | |
6501 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6502 | } | |
6503 | { | |
6504 | void *ptr; | |
6505 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxFont, 0) == -1) { | |
6506 | _v = 0; | |
6507 | PyErr_Clear(); | |
6508 | } else { | |
6509 | _v = 1; | |
6510 | } | |
6511 | } | |
6512 | if (_v) { | |
6513 | if (argc <= 3) { | |
6514 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6515 | } | |
8edf1c75 RD |
6516 | { |
6517 | SWIG_PyObj_AsInt(argv[3]); | |
6518 | if (PyErr_Occurred()) { | |
6519 | _v = 0; | |
6520 | PyErr_Clear(); | |
6521 | } else { | |
6522 | _v = 1; | |
6523 | } | |
6524 | } | |
6525 | if (_v) { | |
6526 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6527 | } | |
d14a1e28 RD |
6528 | } |
6529 | } | |
6530 | } | |
6531 | } | |
6532 | ||
6533 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
6534 | return NULL; | |
6535 | } | |
6536 | ||
6537 | ||
8edf1c75 RD |
6538 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
6539 | PyObject *resultobj; | |
6540 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6541 | PyObject * obj0 = 0 ; | |
6542 | char *kwnames[] = { | |
6543 | (char *) "self", NULL | |
6544 | }; | |
6545 | ||
6546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
6547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6548 | { | |
6549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6550 | delete arg1; | |
6551 | ||
6552 | wxPyEndAllowThreads(__tstate); | |
6553 | if (PyErr_Occurred()) SWIG_fail; | |
6554 | } | |
6555 | Py_INCREF(Py_None); resultobj = Py_None; | |
6556 | return resultobj; | |
6557 | fail: | |
6558 | return NULL; | |
6559 | } | |
6560 | ||
6561 | ||
d14a1e28 RD |
6562 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { |
6563 | PyObject *resultobj; | |
6564 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6565 | PyObject * obj0 = 0 ; | |
6566 | char *kwnames[] = { | |
6567 | (char *) "self", NULL | |
6568 | }; | |
6569 | ||
6570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
6571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6572 | { | |
6573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6574 | (arg1)->Init(); | |
6575 | ||
6576 | wxPyEndAllowThreads(__tstate); | |
6577 | if (PyErr_Occurred()) SWIG_fail; | |
6578 | } | |
6579 | Py_INCREF(Py_None); resultobj = Py_None; | |
6580 | return resultobj; | |
6581 | fail: | |
6582 | return NULL; | |
6583 | } | |
6584 | ||
6585 | ||
6586 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6587 | PyObject *resultobj; | |
6588 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6589 | wxColour *arg2 = 0 ; | |
6590 | wxColour temp2 ; | |
6591 | PyObject * obj0 = 0 ; | |
6592 | PyObject * obj1 = 0 ; | |
6593 | char *kwnames[] = { | |
6594 | (char *) "self",(char *) "colText", NULL | |
6595 | }; | |
6596 | ||
6597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
6598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6599 | { | |
6600 | arg2 = &temp2; | |
6601 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6602 | } | |
6603 | { | |
6604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6605 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
6606 | ||
6607 | wxPyEndAllowThreads(__tstate); | |
6608 | if (PyErr_Occurred()) SWIG_fail; | |
6609 | } | |
6610 | Py_INCREF(Py_None); resultobj = Py_None; | |
6611 | return resultobj; | |
6612 | fail: | |
6613 | return NULL; | |
6614 | } | |
6615 | ||
6616 | ||
6617 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6618 | PyObject *resultobj; | |
6619 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6620 | wxColour *arg2 = 0 ; | |
6621 | wxColour temp2 ; | |
6622 | PyObject * obj0 = 0 ; | |
6623 | PyObject * obj1 = 0 ; | |
6624 | char *kwnames[] = { | |
6625 | (char *) "self",(char *) "colBack", NULL | |
6626 | }; | |
6627 | ||
6628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
6629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6630 | { | |
6631 | arg2 = &temp2; | |
6632 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6633 | } | |
6634 | { | |
6635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6636 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
6637 | ||
6638 | wxPyEndAllowThreads(__tstate); | |
6639 | if (PyErr_Occurred()) SWIG_fail; | |
6640 | } | |
6641 | Py_INCREF(Py_None); resultobj = Py_None; | |
6642 | return resultobj; | |
6643 | fail: | |
6644 | return NULL; | |
6645 | } | |
6646 | ||
6647 | ||
6648 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6649 | PyObject *resultobj; | |
6650 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6651 | wxFont *arg2 = 0 ; | |
6652 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
6653 | PyObject * obj0 = 0 ; | |
6654 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6655 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6656 | char *kwnames[] = { |
6657 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
6658 | }; | |
6659 | ||
8edf1c75 | 6660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6662 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6663 | if (arg2 == NULL) { | |
6664 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6665 | } | |
8edf1c75 RD |
6666 | if (obj2) { |
6667 | { | |
6668 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
6669 | if (PyErr_Occurred()) SWIG_fail; | |
6670 | } | |
6671 | } | |
d14a1e28 RD |
6672 | { |
6673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6674 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
6675 | ||
6676 | wxPyEndAllowThreads(__tstate); | |
6677 | if (PyErr_Occurred()) SWIG_fail; | |
6678 | } | |
6679 | Py_INCREF(Py_None); resultobj = Py_None; | |
6680 | return resultobj; | |
6681 | fail: | |
6682 | return NULL; | |
6683 | } | |
6684 | ||
6685 | ||
6686 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6687 | PyObject *resultobj; | |
6688 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6689 | int arg2 ; | |
6690 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6691 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6692 | char *kwnames[] = { |
6693 | (char *) "self",(char *) "alignment", NULL | |
6694 | }; | |
6695 | ||
8edf1c75 | 6696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6698 | { |
6699 | arg2 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj1); | |
6700 | if (PyErr_Occurred()) SWIG_fail; | |
6701 | } | |
d14a1e28 RD |
6702 | { |
6703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6704 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
6705 | ||
6706 | wxPyEndAllowThreads(__tstate); | |
6707 | if (PyErr_Occurred()) SWIG_fail; | |
6708 | } | |
6709 | Py_INCREF(Py_None); resultobj = Py_None; | |
6710 | return resultobj; | |
6711 | fail: | |
6712 | return NULL; | |
6713 | } | |
6714 | ||
6715 | ||
6716 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6717 | PyObject *resultobj; | |
6718 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6719 | wxArrayInt *arg2 = 0 ; | |
db914595 | 6720 | bool temp2 = False ; |
d14a1e28 RD |
6721 | PyObject * obj0 = 0 ; |
6722 | PyObject * obj1 = 0 ; | |
6723 | char *kwnames[] = { | |
6724 | (char *) "self",(char *) "tabs", NULL | |
6725 | }; | |
6726 | ||
6727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
6728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6729 | { | |
6730 | if (! PySequence_Check(obj1)) { | |
6731 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
6732 | SWIG_fail; | |
6733 | } | |
6734 | arg2 = new wxArrayInt; | |
db914595 | 6735 | temp2 = True; |
d14a1e28 RD |
6736 | int i, len=PySequence_Length(obj1); |
6737 | for (i=0; i<len; i++) { | |
6738 | PyObject* item = PySequence_GetItem(obj1, i); | |
6739 | PyObject* number = PyNumber_Int(item); | |
6740 | arg2->Add(PyInt_AS_LONG(number)); | |
6741 | Py_DECREF(item); | |
6742 | Py_DECREF(number); | |
6743 | } | |
6744 | } | |
6745 | { | |
6746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6747 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
6748 | ||
6749 | wxPyEndAllowThreads(__tstate); | |
6750 | if (PyErr_Occurred()) SWIG_fail; | |
6751 | } | |
6752 | Py_INCREF(Py_None); resultobj = Py_None; | |
6753 | { | |
db914595 | 6754 | if (temp2) delete arg2; |
d14a1e28 RD |
6755 | } |
6756 | return resultobj; | |
6757 | fail: | |
6758 | { | |
db914595 | 6759 | if (temp2) delete arg2; |
d14a1e28 RD |
6760 | } |
6761 | return NULL; | |
6762 | } | |
6763 | ||
6764 | ||
6765 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6766 | PyObject *resultobj; | |
6767 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6768 | int arg2 ; | |
6769 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6770 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6771 | char *kwnames[] = { |
6772 | (char *) "self",(char *) "indent", NULL | |
6773 | }; | |
6774 | ||
8edf1c75 | 6775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6777 | { |
6778 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6779 | if (PyErr_Occurred()) SWIG_fail; | |
6780 | } | |
d14a1e28 RD |
6781 | { |
6782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6783 | (arg1)->SetLeftIndent(arg2); | |
6784 | ||
6785 | wxPyEndAllowThreads(__tstate); | |
6786 | if (PyErr_Occurred()) SWIG_fail; | |
6787 | } | |
6788 | Py_INCREF(Py_None); resultobj = Py_None; | |
6789 | return resultobj; | |
6790 | fail: | |
6791 | return NULL; | |
6792 | } | |
6793 | ||
6794 | ||
6795 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6796 | PyObject *resultobj; | |
6797 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6798 | int arg2 ; | |
6799 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6800 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6801 | char *kwnames[] = { |
6802 | (char *) "self",(char *) "indent", NULL | |
6803 | }; | |
6804 | ||
8edf1c75 | 6805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6807 | { |
6808 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6809 | if (PyErr_Occurred()) SWIG_fail; | |
6810 | } | |
d14a1e28 RD |
6811 | { |
6812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6813 | (arg1)->SetRightIndent(arg2); | |
6814 | ||
6815 | wxPyEndAllowThreads(__tstate); | |
6816 | if (PyErr_Occurred()) SWIG_fail; | |
6817 | } | |
6818 | Py_INCREF(Py_None); resultobj = Py_None; | |
6819 | return resultobj; | |
6820 | fail: | |
6821 | return NULL; | |
6822 | } | |
6823 | ||
6824 | ||
6825 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6826 | PyObject *resultobj; | |
6827 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6828 | long arg2 ; | |
6829 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6830 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6831 | char *kwnames[] = { |
6832 | (char *) "self",(char *) "flags", NULL | |
6833 | }; | |
6834 | ||
8edf1c75 | 6835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6837 | { |
6838 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
6839 | if (PyErr_Occurred()) SWIG_fail; | |
6840 | } | |
d14a1e28 RD |
6841 | { |
6842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6843 | (arg1)->SetFlags(arg2); | |
6844 | ||
6845 | wxPyEndAllowThreads(__tstate); | |
6846 | if (PyErr_Occurred()) SWIG_fail; | |
6847 | } | |
6848 | Py_INCREF(Py_None); resultobj = Py_None; | |
6849 | return resultobj; | |
6850 | fail: | |
6851 | return NULL; | |
6852 | } | |
6853 | ||
6854 | ||
6855 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6856 | PyObject *resultobj; | |
6857 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6858 | bool result; | |
6859 | PyObject * obj0 = 0 ; | |
6860 | char *kwnames[] = { | |
6861 | (char *) "self", NULL | |
6862 | }; | |
6863 | ||
6864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
6865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6866 | { | |
6867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6868 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
6869 | ||
6870 | wxPyEndAllowThreads(__tstate); | |
6871 | if (PyErr_Occurred()) SWIG_fail; | |
6872 | } | |
4e760a36 | 6873 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6874 | return resultobj; |
6875 | fail: | |
6876 | return NULL; | |
6877 | } | |
6878 | ||
6879 | ||
6880 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6881 | PyObject *resultobj; | |
6882 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6883 | bool result; | |
6884 | PyObject * obj0 = 0 ; | |
6885 | char *kwnames[] = { | |
6886 | (char *) "self", NULL | |
6887 | }; | |
6888 | ||
6889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
6890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6891 | { | |
6892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6893 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
6894 | ||
6895 | wxPyEndAllowThreads(__tstate); | |
6896 | if (PyErr_Occurred()) SWIG_fail; | |
6897 | } | |
4e760a36 | 6898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6899 | return resultobj; |
6900 | fail: | |
6901 | return NULL; | |
6902 | } | |
6903 | ||
6904 | ||
6905 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6906 | PyObject *resultobj; | |
6907 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6908 | bool result; | |
6909 | PyObject * obj0 = 0 ; | |
6910 | char *kwnames[] = { | |
6911 | (char *) "self", NULL | |
6912 | }; | |
6913 | ||
6914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
6915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6916 | { | |
6917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6918 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
6919 | ||
6920 | wxPyEndAllowThreads(__tstate); | |
6921 | if (PyErr_Occurred()) SWIG_fail; | |
6922 | } | |
4e760a36 | 6923 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6924 | return resultobj; |
6925 | fail: | |
6926 | return NULL; | |
6927 | } | |
6928 | ||
6929 | ||
6930 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6931 | PyObject *resultobj; | |
6932 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6933 | bool result; | |
6934 | PyObject * obj0 = 0 ; | |
6935 | char *kwnames[] = { | |
6936 | (char *) "self", NULL | |
6937 | }; | |
6938 | ||
6939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
6940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6941 | { | |
6942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6943 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
6944 | ||
6945 | wxPyEndAllowThreads(__tstate); | |
6946 | if (PyErr_Occurred()) SWIG_fail; | |
6947 | } | |
4e760a36 | 6948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6949 | return resultobj; |
6950 | fail: | |
6951 | return NULL; | |
6952 | } | |
6953 | ||
6954 | ||
6955 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6956 | PyObject *resultobj; | |
6957 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6958 | bool result; | |
6959 | PyObject * obj0 = 0 ; | |
6960 | char *kwnames[] = { | |
6961 | (char *) "self", NULL | |
6962 | }; | |
6963 | ||
6964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
6965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6966 | { | |
6967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6968 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
6969 | ||
6970 | wxPyEndAllowThreads(__tstate); | |
6971 | if (PyErr_Occurred()) SWIG_fail; | |
6972 | } | |
4e760a36 | 6973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6974 | return resultobj; |
6975 | fail: | |
6976 | return NULL; | |
6977 | } | |
6978 | ||
6979 | ||
6980 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6981 | PyObject *resultobj; | |
6982 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6983 | bool result; | |
6984 | PyObject * obj0 = 0 ; | |
6985 | char *kwnames[] = { | |
6986 | (char *) "self", NULL | |
6987 | }; | |
6988 | ||
6989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
6990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6991 | { | |
6992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6993 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
6994 | ||
6995 | wxPyEndAllowThreads(__tstate); | |
6996 | if (PyErr_Occurred()) SWIG_fail; | |
6997 | } | |
4e760a36 | 6998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6999 | return resultobj; |
7000 | fail: | |
7001 | return NULL; | |
7002 | } | |
7003 | ||
7004 | ||
7005 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7006 | PyObject *resultobj; | |
7007 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7008 | bool result; | |
7009 | PyObject * obj0 = 0 ; | |
7010 | char *kwnames[] = { | |
7011 | (char *) "self", NULL | |
7012 | }; | |
7013 | ||
7014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
7015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7016 | { | |
7017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7018 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7019 | ||
7020 | wxPyEndAllowThreads(__tstate); | |
7021 | if (PyErr_Occurred()) SWIG_fail; | |
7022 | } | |
4e760a36 | 7023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7024 | return resultobj; |
7025 | fail: | |
7026 | return NULL; | |
7027 | } | |
7028 | ||
7029 | ||
7030 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7031 | PyObject *resultobj; | |
7032 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7033 | long arg2 ; | |
7034 | bool result; | |
7035 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7036 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7037 | char *kwnames[] = { |
7038 | (char *) "self",(char *) "flag", NULL | |
7039 | }; | |
7040 | ||
8edf1c75 | 7041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7043 | { |
7044 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7045 | if (PyErr_Occurred()) SWIG_fail; | |
7046 | } | |
d14a1e28 RD |
7047 | { |
7048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7049 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7050 | ||
7051 | wxPyEndAllowThreads(__tstate); | |
7052 | if (PyErr_Occurred()) SWIG_fail; | |
7053 | } | |
4e760a36 | 7054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7055 | return resultobj; |
7056 | fail: | |
7057 | return NULL; | |
7058 | } | |
7059 | ||
7060 | ||
7061 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7062 | PyObject *resultobj; | |
7063 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7064 | wxColour *result; | |
7065 | PyObject * obj0 = 0 ; | |
7066 | char *kwnames[] = { | |
7067 | (char *) "self", NULL | |
7068 | }; | |
7069 | ||
7070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
7071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7072 | { | |
7073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7074 | { | |
7075 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7076 | result = (wxColour *) &_result_ref; | |
7077 | } | |
7078 | ||
7079 | wxPyEndAllowThreads(__tstate); | |
7080 | if (PyErr_Occurred()) SWIG_fail; | |
7081 | } | |
7082 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
7083 | return resultobj; | |
7084 | fail: | |
7085 | return NULL; | |
7086 | } | |
7087 | ||
7088 | ||
7089 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7090 | PyObject *resultobj; | |
7091 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7092 | wxColour *result; | |
7093 | PyObject * obj0 = 0 ; | |
7094 | char *kwnames[] = { | |
7095 | (char *) "self", NULL | |
7096 | }; | |
7097 | ||
7098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
7099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7100 | { | |
7101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7102 | { | |
7103 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7104 | result = (wxColour *) &_result_ref; | |
7105 | } | |
7106 | ||
7107 | wxPyEndAllowThreads(__tstate); | |
7108 | if (PyErr_Occurred()) SWIG_fail; | |
7109 | } | |
7110 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
7111 | return resultobj; | |
7112 | fail: | |
7113 | return NULL; | |
7114 | } | |
7115 | ||
7116 | ||
7117 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7118 | PyObject *resultobj; | |
7119 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7120 | wxFont *result; | |
7121 | PyObject * obj0 = 0 ; | |
7122 | char *kwnames[] = { | |
7123 | (char *) "self", NULL | |
7124 | }; | |
7125 | ||
7126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
7127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7128 | { | |
7129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7130 | { | |
7131 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7132 | result = (wxFont *) &_result_ref; | |
7133 | } | |
7134 | ||
7135 | wxPyEndAllowThreads(__tstate); | |
7136 | if (PyErr_Occurred()) SWIG_fail; | |
7137 | } | |
7138 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
7139 | return resultobj; | |
7140 | fail: | |
7141 | return NULL; | |
7142 | } | |
7143 | ||
7144 | ||
7145 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7146 | PyObject *resultobj; | |
7147 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7148 | int result; | |
7149 | PyObject * obj0 = 0 ; | |
7150 | char *kwnames[] = { | |
7151 | (char *) "self", NULL | |
7152 | }; | |
7153 | ||
7154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
7155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7156 | { | |
7157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7158 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7159 | ||
7160 | wxPyEndAllowThreads(__tstate); | |
7161 | if (PyErr_Occurred()) SWIG_fail; | |
7162 | } | |
8edf1c75 | 7163 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7164 | return resultobj; |
7165 | fail: | |
7166 | return NULL; | |
7167 | } | |
7168 | ||
7169 | ||
7170 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7171 | PyObject *resultobj; | |
7172 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7173 | wxArrayInt *result; | |
7174 | PyObject * obj0 = 0 ; | |
7175 | char *kwnames[] = { | |
7176 | (char *) "self", NULL | |
7177 | }; | |
7178 | ||
7179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
7180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7181 | { | |
7182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7183 | { | |
7184 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7185 | result = (wxArrayInt *) &_result_ref; | |
7186 | } | |
7187 | ||
7188 | wxPyEndAllowThreads(__tstate); | |
7189 | if (PyErr_Occurred()) SWIG_fail; | |
7190 | } | |
7191 | { | |
7192 | resultobj = PyList_New(0); | |
7193 | size_t idx; | |
7194 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7195 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7196 | PyList_Append(resultobj, val); | |
7197 | Py_DECREF(val); | |
7198 | } | |
7199 | } | |
7200 | return resultobj; | |
7201 | fail: | |
7202 | return NULL; | |
7203 | } | |
7204 | ||
7205 | ||
7206 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7207 | PyObject *resultobj; | |
7208 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7209 | long result; | |
7210 | PyObject * obj0 = 0 ; | |
7211 | char *kwnames[] = { | |
7212 | (char *) "self", NULL | |
7213 | }; | |
7214 | ||
7215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
7216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7217 | { | |
7218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7219 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7220 | ||
7221 | wxPyEndAllowThreads(__tstate); | |
7222 | if (PyErr_Occurred()) SWIG_fail; | |
7223 | } | |
8edf1c75 | 7224 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7225 | return resultobj; |
7226 | fail: | |
7227 | return NULL; | |
7228 | } | |
7229 | ||
7230 | ||
7231 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7232 | PyObject *resultobj; | |
7233 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7234 | long result; | |
7235 | PyObject * obj0 = 0 ; | |
7236 | char *kwnames[] = { | |
7237 | (char *) "self", NULL | |
7238 | }; | |
7239 | ||
7240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
7241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7242 | { | |
7243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7244 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7245 | ||
7246 | wxPyEndAllowThreads(__tstate); | |
7247 | if (PyErr_Occurred()) SWIG_fail; | |
7248 | } | |
8edf1c75 | 7249 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7250 | return resultobj; |
7251 | fail: | |
7252 | return NULL; | |
7253 | } | |
7254 | ||
7255 | ||
7256 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7257 | PyObject *resultobj; | |
7258 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7259 | long result; | |
7260 | PyObject * obj0 = 0 ; | |
7261 | char *kwnames[] = { | |
7262 | (char *) "self", NULL | |
7263 | }; | |
7264 | ||
7265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
7266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7267 | { | |
7268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7269 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7270 | ||
7271 | wxPyEndAllowThreads(__tstate); | |
7272 | if (PyErr_Occurred()) SWIG_fail; | |
7273 | } | |
8edf1c75 | 7274 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7275 | return resultobj; |
7276 | fail: | |
7277 | return NULL; | |
7278 | } | |
7279 | ||
7280 | ||
7281 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7282 | PyObject *resultobj; | |
7283 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7284 | bool result; | |
7285 | PyObject * obj0 = 0 ; | |
7286 | char *kwnames[] = { | |
7287 | (char *) "self", NULL | |
7288 | }; | |
7289 | ||
7290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
7291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7292 | { | |
7293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7294 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7295 | ||
7296 | wxPyEndAllowThreads(__tstate); | |
7297 | if (PyErr_Occurred()) SWIG_fail; | |
7298 | } | |
4e760a36 | 7299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7300 | return resultobj; |
7301 | fail: | |
7302 | return NULL; | |
7303 | } | |
7304 | ||
7305 | ||
7306 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7307 | PyObject *resultobj; | |
7308 | wxTextAttr *arg1 = 0 ; | |
7309 | wxTextAttr *arg2 = 0 ; | |
7310 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7311 | wxTextAttr result; | |
7312 | PyObject * obj0 = 0 ; | |
7313 | PyObject * obj1 = 0 ; | |
7314 | PyObject * obj2 = 0 ; | |
7315 | char *kwnames[] = { | |
7316 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7317 | }; | |
7318 | ||
7319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7321 | if (arg1 == NULL) { | |
7322 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7323 | } | |
7324 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7325 | if (arg2 == NULL) { | |
7326 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7327 | } | |
7328 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7329 | { | |
7330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7331 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7332 | ||
7333 | wxPyEndAllowThreads(__tstate); | |
7334 | if (PyErr_Occurred()) SWIG_fail; | |
7335 | } | |
7336 | { | |
7337 | wxTextAttr * resultptr; | |
7338 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
7339 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTextAttr, 1); | |
7340 | } | |
7341 | return resultobj; | |
7342 | fail: | |
7343 | return NULL; | |
7344 | } | |
7345 | ||
7346 | ||
7347 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7348 | PyObject *obj; | |
7349 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7350 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7351 | Py_INCREF(obj); | |
7352 | return Py_BuildValue((char *)""); | |
7353 | } | |
7354 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7355 | PyObject *resultobj; | |
7356 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 7357 | int arg2 ; |
d14a1e28 RD |
7358 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7359 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7360 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7361 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7362 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7363 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7364 | long arg6 = (long) 0 ; | |
7365 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7366 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7367 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7368 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7369 | wxTextCtrl *result; | |
423f194a | 7370 | bool temp3 = False ; |
d14a1e28 RD |
7371 | wxPoint temp4 ; |
7372 | wxSize temp5 ; | |
423f194a | 7373 | bool temp8 = False ; |
d14a1e28 | 7374 | PyObject * obj0 = 0 ; |
8edf1c75 | 7375 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7376 | PyObject * obj2 = 0 ; |
7377 | PyObject * obj3 = 0 ; | |
7378 | PyObject * obj4 = 0 ; | |
8edf1c75 | 7379 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7380 | PyObject * obj6 = 0 ; |
7381 | PyObject * obj7 = 0 ; | |
7382 | char *kwnames[] = { | |
7383 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7384 | }; | |
7385 | ||
8edf1c75 | 7386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 7387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7388 | { |
7389 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7390 | if (PyErr_Occurred()) SWIG_fail; | |
7391 | } | |
d14a1e28 RD |
7392 | if (obj2) { |
7393 | { | |
7394 | arg3 = wxString_in_helper(obj2); | |
7395 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7396 | temp3 = True; |
d14a1e28 RD |
7397 | } |
7398 | } | |
7399 | if (obj3) { | |
7400 | { | |
7401 | arg4 = &temp4; | |
7402 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7403 | } | |
7404 | } | |
7405 | if (obj4) { | |
7406 | { | |
7407 | arg5 = &temp5; | |
7408 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7409 | } | |
7410 | } | |
8edf1c75 RD |
7411 | if (obj5) { |
7412 | { | |
7413 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
7414 | if (PyErr_Occurred()) SWIG_fail; | |
7415 | } | |
7416 | } | |
d14a1e28 RD |
7417 | if (obj6) { |
7418 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7419 | if (arg7 == NULL) { | |
7420 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7421 | } | |
7422 | } | |
7423 | if (obj7) { | |
7424 | { | |
7425 | arg8 = wxString_in_helper(obj7); | |
7426 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 7427 | temp8 = True; |
d14a1e28 RD |
7428 | } |
7429 | } | |
7430 | { | |
7431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7432 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7433 | ||
7434 | wxPyEndAllowThreads(__tstate); | |
7435 | if (PyErr_Occurred()) SWIG_fail; | |
7436 | } | |
7437 | { | |
7438 | resultobj = wxPyMake_wxObject(result); | |
7439 | } | |
7440 | { | |
7441 | if (temp3) | |
7442 | delete arg3; | |
7443 | } | |
7444 | { | |
7445 | if (temp8) | |
7446 | delete arg8; | |
7447 | } | |
7448 | return resultobj; | |
7449 | fail: | |
7450 | { | |
7451 | if (temp3) | |
7452 | delete arg3; | |
7453 | } | |
7454 | { | |
7455 | if (temp8) | |
7456 | delete arg8; | |
7457 | } | |
7458 | return NULL; | |
7459 | } | |
7460 | ||
7461 | ||
7462 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7463 | PyObject *resultobj; | |
7464 | wxTextCtrl *result; | |
7465 | char *kwnames[] = { | |
7466 | NULL | |
7467 | }; | |
7468 | ||
7469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
7470 | { | |
7471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7472 | result = (wxTextCtrl *)new wxTextCtrl(); | |
7473 | ||
7474 | wxPyEndAllowThreads(__tstate); | |
7475 | if (PyErr_Occurred()) SWIG_fail; | |
7476 | } | |
7477 | { | |
7478 | resultobj = wxPyMake_wxObject(result); | |
7479 | } | |
7480 | return resultobj; | |
7481 | fail: | |
7482 | return NULL; | |
7483 | } | |
7484 | ||
7485 | ||
7486 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7487 | PyObject *resultobj; | |
7488 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7489 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 7490 | int arg3 ; |
d14a1e28 RD |
7491 | wxString const &arg4_defvalue = wxPyEmptyString ; |
7492 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7493 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7494 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7495 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7496 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7497 | long arg7 = (long) 0 ; | |
7498 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7499 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7500 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
7501 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7502 | bool result; | |
423f194a | 7503 | bool temp4 = False ; |
d14a1e28 RD |
7504 | wxPoint temp5 ; |
7505 | wxSize temp6 ; | |
423f194a | 7506 | bool temp9 = False ; |
d14a1e28 RD |
7507 | PyObject * obj0 = 0 ; |
7508 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7509 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7510 | PyObject * obj3 = 0 ; |
7511 | PyObject * obj4 = 0 ; | |
7512 | PyObject * obj5 = 0 ; | |
8edf1c75 | 7513 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7514 | PyObject * obj7 = 0 ; |
7515 | PyObject * obj8 = 0 ; | |
7516 | char *kwnames[] = { | |
7517 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7518 | }; | |
7519 | ||
8edf1c75 | 7520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
7521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7522 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
7523 | { |
7524 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7525 | if (PyErr_Occurred()) SWIG_fail; | |
7526 | } | |
d14a1e28 RD |
7527 | if (obj3) { |
7528 | { | |
7529 | arg4 = wxString_in_helper(obj3); | |
7530 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7531 | temp4 = True; |
d14a1e28 RD |
7532 | } |
7533 | } | |
7534 | if (obj4) { | |
7535 | { | |
7536 | arg5 = &temp5; | |
7537 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
7538 | } | |
7539 | } | |
7540 | if (obj5) { | |
7541 | { | |
7542 | arg6 = &temp6; | |
7543 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7544 | } | |
7545 | } | |
8edf1c75 RD |
7546 | if (obj6) { |
7547 | { | |
7548 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
7549 | if (PyErr_Occurred()) SWIG_fail; | |
7550 | } | |
7551 | } | |
d14a1e28 RD |
7552 | if (obj7) { |
7553 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7554 | if (arg8 == NULL) { | |
7555 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7556 | } | |
7557 | } | |
7558 | if (obj8) { | |
7559 | { | |
7560 | arg9 = wxString_in_helper(obj8); | |
7561 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 7562 | temp9 = True; |
d14a1e28 RD |
7563 | } |
7564 | } | |
7565 | { | |
7566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7567 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7568 | ||
7569 | wxPyEndAllowThreads(__tstate); | |
7570 | if (PyErr_Occurred()) SWIG_fail; | |
7571 | } | |
4e760a36 | 7572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7573 | { |
7574 | if (temp4) | |
7575 | delete arg4; | |
7576 | } | |
7577 | { | |
7578 | if (temp9) | |
7579 | delete arg9; | |
7580 | } | |
7581 | return resultobj; | |
7582 | fail: | |
7583 | { | |
7584 | if (temp4) | |
7585 | delete arg4; | |
7586 | } | |
7587 | { | |
7588 | if (temp9) | |
7589 | delete arg9; | |
7590 | } | |
7591 | return NULL; | |
7592 | } | |
7593 | ||
7594 | ||
7595 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7596 | PyObject *resultobj; | |
7597 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7598 | wxString result; | |
7599 | PyObject * obj0 = 0 ; | |
7600 | char *kwnames[] = { | |
7601 | (char *) "self", NULL | |
7602 | }; | |
7603 | ||
7604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
7605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7606 | { | |
7607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7608 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
7609 | ||
7610 | wxPyEndAllowThreads(__tstate); | |
7611 | if (PyErr_Occurred()) SWIG_fail; | |
7612 | } | |
7613 | { | |
7614 | #if wxUSE_UNICODE | |
7615 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7616 | #else | |
7617 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7618 | #endif | |
7619 | } | |
7620 | return resultobj; | |
7621 | fail: | |
7622 | return NULL; | |
7623 | } | |
7624 | ||
7625 | ||
7626 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7627 | PyObject *resultobj; | |
7628 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7629 | wxString *arg2 = 0 ; | |
423f194a | 7630 | bool temp2 = False ; |
d14a1e28 RD |
7631 | PyObject * obj0 = 0 ; |
7632 | PyObject * obj1 = 0 ; | |
7633 | char *kwnames[] = { | |
7634 | (char *) "self",(char *) "value", NULL | |
7635 | }; | |
7636 | ||
7637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
7638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7639 | { | |
7640 | arg2 = wxString_in_helper(obj1); | |
7641 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7642 | temp2 = True; |
d14a1e28 RD |
7643 | } |
7644 | { | |
7645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7646 | (arg1)->SetValue((wxString const &)*arg2); | |
7647 | ||
7648 | wxPyEndAllowThreads(__tstate); | |
7649 | if (PyErr_Occurred()) SWIG_fail; | |
7650 | } | |
7651 | Py_INCREF(Py_None); resultobj = Py_None; | |
7652 | { | |
7653 | if (temp2) | |
7654 | delete arg2; | |
7655 | } | |
7656 | return resultobj; | |
7657 | fail: | |
7658 | { | |
7659 | if (temp2) | |
7660 | delete arg2; | |
7661 | } | |
7662 | return NULL; | |
7663 | } | |
7664 | ||
7665 | ||
7666 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7667 | PyObject *resultobj; | |
7668 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7669 | long arg2 ; | |
7670 | long arg3 ; | |
7671 | wxString result; | |
7672 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7673 | PyObject * obj1 = 0 ; |
7674 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7675 | char *kwnames[] = { |
7676 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7677 | }; | |
7678 | ||
8edf1c75 | 7679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7681 | { |
7682 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7683 | if (PyErr_Occurred()) SWIG_fail; | |
7684 | } | |
7685 | { | |
7686 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7687 | if (PyErr_Occurred()) SWIG_fail; | |
7688 | } | |
d14a1e28 RD |
7689 | { |
7690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7691 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
7692 | ||
7693 | wxPyEndAllowThreads(__tstate); | |
7694 | if (PyErr_Occurred()) SWIG_fail; | |
7695 | } | |
7696 | { | |
7697 | #if wxUSE_UNICODE | |
7698 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7699 | #else | |
7700 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7701 | #endif | |
7702 | } | |
7703 | return resultobj; | |
7704 | fail: | |
7705 | return NULL; | |
7706 | } | |
7707 | ||
7708 | ||
7709 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7710 | PyObject *resultobj; | |
7711 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7712 | long arg2 ; | |
7713 | int result; | |
7714 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7715 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7716 | char *kwnames[] = { |
7717 | (char *) "self",(char *) "lineNo", NULL | |
7718 | }; | |
7719 | ||
8edf1c75 | 7720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7722 | { |
7723 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7724 | if (PyErr_Occurred()) SWIG_fail; | |
7725 | } | |
d14a1e28 RD |
7726 | { |
7727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7728 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
7729 | ||
7730 | wxPyEndAllowThreads(__tstate); | |
7731 | if (PyErr_Occurred()) SWIG_fail; | |
7732 | } | |
8edf1c75 | 7733 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7734 | return resultobj; |
7735 | fail: | |
7736 | return NULL; | |
7737 | } | |
7738 | ||
7739 | ||
7740 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7741 | PyObject *resultobj; | |
7742 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7743 | long arg2 ; | |
7744 | wxString result; | |
7745 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7746 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7747 | char *kwnames[] = { |
7748 | (char *) "self",(char *) "lineNo", NULL | |
7749 | }; | |
7750 | ||
8edf1c75 | 7751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7753 | { |
7754 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7755 | if (PyErr_Occurred()) SWIG_fail; | |
7756 | } | |
d14a1e28 RD |
7757 | { |
7758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7759 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
7760 | ||
7761 | wxPyEndAllowThreads(__tstate); | |
7762 | if (PyErr_Occurred()) SWIG_fail; | |
7763 | } | |
7764 | { | |
7765 | #if wxUSE_UNICODE | |
7766 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7767 | #else | |
7768 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7769 | #endif | |
7770 | } | |
7771 | return resultobj; | |
7772 | fail: | |
7773 | return NULL; | |
7774 | } | |
7775 | ||
7776 | ||
7777 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7778 | PyObject *resultobj; | |
7779 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7780 | int result; | |
7781 | PyObject * obj0 = 0 ; | |
7782 | char *kwnames[] = { | |
7783 | (char *) "self", NULL | |
7784 | }; | |
7785 | ||
7786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
7787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7788 | { | |
7789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7790 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
7791 | ||
7792 | wxPyEndAllowThreads(__tstate); | |
7793 | if (PyErr_Occurred()) SWIG_fail; | |
7794 | } | |
8edf1c75 | 7795 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7796 | return resultobj; |
7797 | fail: | |
7798 | return NULL; | |
7799 | } | |
7800 | ||
7801 | ||
7802 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7803 | PyObject *resultobj; | |
7804 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7805 | bool result; | |
7806 | PyObject * obj0 = 0 ; | |
7807 | char *kwnames[] = { | |
7808 | (char *) "self", NULL | |
7809 | }; | |
7810 | ||
7811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
7812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7813 | { | |
7814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7815 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
7816 | ||
7817 | wxPyEndAllowThreads(__tstate); | |
7818 | if (PyErr_Occurred()) SWIG_fail; | |
7819 | } | |
4e760a36 | 7820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7821 | return resultobj; |
7822 | fail: | |
7823 | return NULL; | |
7824 | } | |
7825 | ||
7826 | ||
7827 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7828 | PyObject *resultobj; | |
7829 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7830 | bool result; | |
7831 | PyObject * obj0 = 0 ; | |
7832 | char *kwnames[] = { | |
7833 | (char *) "self", NULL | |
7834 | }; | |
7835 | ||
7836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
7837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7838 | { | |
7839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7840 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
7841 | ||
7842 | wxPyEndAllowThreads(__tstate); | |
7843 | if (PyErr_Occurred()) SWIG_fail; | |
7844 | } | |
4e760a36 | 7845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7846 | return resultobj; |
7847 | fail: | |
7848 | return NULL; | |
7849 | } | |
7850 | ||
7851 | ||
7852 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7853 | PyObject *resultobj; | |
7854 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7855 | bool result; | |
7856 | PyObject * obj0 = 0 ; | |
7857 | char *kwnames[] = { | |
7858 | (char *) "self", NULL | |
7859 | }; | |
7860 | ||
7861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
7862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7863 | { | |
7864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7865 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
7866 | ||
7867 | wxPyEndAllowThreads(__tstate); | |
7868 | if (PyErr_Occurred()) SWIG_fail; | |
7869 | } | |
4e760a36 | 7870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7871 | return resultobj; |
7872 | fail: | |
7873 | return NULL; | |
7874 | } | |
7875 | ||
7876 | ||
7877 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7878 | PyObject *resultobj; | |
7879 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7880 | bool result; | |
7881 | PyObject * obj0 = 0 ; | |
7882 | char *kwnames[] = { | |
7883 | (char *) "self", NULL | |
7884 | }; | |
7885 | ||
7886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
7887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7888 | { | |
7889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7890 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
7891 | ||
7892 | wxPyEndAllowThreads(__tstate); | |
7893 | if (PyErr_Occurred()) SWIG_fail; | |
7894 | } | |
4e760a36 | 7895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7896 | return resultobj; |
7897 | fail: | |
7898 | return NULL; | |
7899 | } | |
7900 | ||
7901 | ||
7902 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7903 | PyObject *resultobj; | |
7904 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7905 | long *arg2 = (long *) 0 ; | |
7906 | long *arg3 = (long *) 0 ; | |
7907 | long temp2 ; | |
7908 | long temp3 ; | |
7909 | PyObject * obj0 = 0 ; | |
7910 | char *kwnames[] = { | |
7911 | (char *) "self", NULL | |
7912 | }; | |
7913 | ||
7914 | arg2 = &temp2; | |
7915 | arg3 = &temp3; | |
7916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
7917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7918 | { | |
7919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7920 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
7921 | ||
7922 | wxPyEndAllowThreads(__tstate); | |
7923 | if (PyErr_Occurred()) SWIG_fail; | |
7924 | } | |
7925 | Py_INCREF(Py_None); resultobj = Py_None; | |
7926 | { | |
7927 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
7928 | resultobj = t_output_helper(resultobj,o); | |
7929 | } | |
7930 | { | |
7931 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7932 | resultobj = t_output_helper(resultobj,o); | |
7933 | } | |
7934 | return resultobj; | |
7935 | fail: | |
7936 | return NULL; | |
7937 | } | |
7938 | ||
7939 | ||
7940 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7941 | PyObject *resultobj; | |
7942 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7943 | wxString result; | |
7944 | PyObject * obj0 = 0 ; | |
7945 | char *kwnames[] = { | |
7946 | (char *) "self", NULL | |
7947 | }; | |
7948 | ||
7949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
7950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7951 | { | |
7952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7953 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
7954 | ||
7955 | wxPyEndAllowThreads(__tstate); | |
7956 | if (PyErr_Occurred()) SWIG_fail; | |
7957 | } | |
7958 | { | |
7959 | #if wxUSE_UNICODE | |
7960 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7961 | #else | |
7962 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7963 | #endif | |
7964 | } | |
7965 | return resultobj; | |
7966 | fail: | |
7967 | return NULL; | |
7968 | } | |
7969 | ||
7970 | ||
7971 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7972 | PyObject *resultobj; | |
7973 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7974 | PyObject * obj0 = 0 ; | |
7975 | char *kwnames[] = { | |
7976 | (char *) "self", NULL | |
7977 | }; | |
7978 | ||
7979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
7980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7981 | { | |
7982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7983 | (arg1)->Clear(); | |
7984 | ||
7985 | wxPyEndAllowThreads(__tstate); | |
7986 | if (PyErr_Occurred()) SWIG_fail; | |
7987 | } | |
7988 | Py_INCREF(Py_None); resultobj = Py_None; | |
7989 | return resultobj; | |
7990 | fail: | |
7991 | return NULL; | |
7992 | } | |
7993 | ||
7994 | ||
7995 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7996 | PyObject *resultobj; | |
7997 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7998 | long arg2 ; | |
7999 | long arg3 ; | |
8000 | wxString *arg4 = 0 ; | |
423f194a | 8001 | bool temp4 = False ; |
d14a1e28 | 8002 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
8003 | PyObject * obj1 = 0 ; |
8004 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8005 | PyObject * obj3 = 0 ; |
8006 | char *kwnames[] = { | |
8007 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8008 | }; | |
8009 | ||
8edf1c75 | 8010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8012 | { |
8013 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8014 | if (PyErr_Occurred()) SWIG_fail; | |
8015 | } | |
8016 | { | |
8017 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8018 | if (PyErr_Occurred()) SWIG_fail; | |
8019 | } | |
d14a1e28 RD |
8020 | { |
8021 | arg4 = wxString_in_helper(obj3); | |
8022 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 8023 | temp4 = True; |
d14a1e28 RD |
8024 | } |
8025 | { | |
8026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8027 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8028 | ||
8029 | wxPyEndAllowThreads(__tstate); | |
8030 | if (PyErr_Occurred()) SWIG_fail; | |
8031 | } | |
8032 | Py_INCREF(Py_None); resultobj = Py_None; | |
8033 | { | |
8034 | if (temp4) | |
8035 | delete arg4; | |
8036 | } | |
8037 | return resultobj; | |
8038 | fail: | |
8039 | { | |
8040 | if (temp4) | |
8041 | delete arg4; | |
8042 | } | |
8043 | return NULL; | |
8044 | } | |
8045 | ||
8046 | ||
8047 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8048 | PyObject *resultobj; | |
8049 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8050 | long arg2 ; | |
8051 | long arg3 ; | |
8052 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8053 | PyObject * obj1 = 0 ; |
8054 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8055 | char *kwnames[] = { |
8056 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8057 | }; | |
8058 | ||
8edf1c75 | 8059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8061 | { |
8062 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8063 | if (PyErr_Occurred()) SWIG_fail; | |
8064 | } | |
8065 | { | |
8066 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8067 | if (PyErr_Occurred()) SWIG_fail; | |
8068 | } | |
d14a1e28 RD |
8069 | { |
8070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8071 | (arg1)->Remove(arg2,arg3); | |
8072 | ||
8073 | wxPyEndAllowThreads(__tstate); | |
8074 | if (PyErr_Occurred()) SWIG_fail; | |
8075 | } | |
8076 | Py_INCREF(Py_None); resultobj = Py_None; | |
8077 | return resultobj; | |
8078 | fail: | |
8079 | return NULL; | |
8080 | } | |
8081 | ||
8082 | ||
8083 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8084 | PyObject *resultobj; | |
8085 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8086 | wxString *arg2 = 0 ; | |
8087 | bool result; | |
423f194a | 8088 | bool temp2 = False ; |
d14a1e28 RD |
8089 | PyObject * obj0 = 0 ; |
8090 | PyObject * obj1 = 0 ; | |
8091 | char *kwnames[] = { | |
8092 | (char *) "self",(char *) "file", NULL | |
8093 | }; | |
8094 | ||
8095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
8096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8097 | { | |
8098 | arg2 = wxString_in_helper(obj1); | |
8099 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8100 | temp2 = True; |
d14a1e28 RD |
8101 | } |
8102 | { | |
8103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8104 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8105 | ||
8106 | wxPyEndAllowThreads(__tstate); | |
8107 | if (PyErr_Occurred()) SWIG_fail; | |
8108 | } | |
4e760a36 | 8109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8110 | { |
8111 | if (temp2) | |
8112 | delete arg2; | |
8113 | } | |
8114 | return resultobj; | |
8115 | fail: | |
8116 | { | |
8117 | if (temp2) | |
8118 | delete arg2; | |
8119 | } | |
8120 | return NULL; | |
8121 | } | |
8122 | ||
8123 | ||
8124 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8125 | PyObject *resultobj; | |
8126 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8127 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8128 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8129 | bool result; | |
423f194a | 8130 | bool temp2 = False ; |
d14a1e28 RD |
8131 | PyObject * obj0 = 0 ; |
8132 | PyObject * obj1 = 0 ; | |
8133 | char *kwnames[] = { | |
8134 | (char *) "self",(char *) "file", NULL | |
8135 | }; | |
8136 | ||
8137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
8138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8139 | if (obj1) { | |
8140 | { | |
8141 | arg2 = wxString_in_helper(obj1); | |
8142 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8143 | temp2 = True; |
d14a1e28 RD |
8144 | } |
8145 | } | |
8146 | { | |
8147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8148 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8149 | ||
8150 | wxPyEndAllowThreads(__tstate); | |
8151 | if (PyErr_Occurred()) SWIG_fail; | |
8152 | } | |
4e760a36 | 8153 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8154 | { |
8155 | if (temp2) | |
8156 | delete arg2; | |
8157 | } | |
8158 | return resultobj; | |
8159 | fail: | |
8160 | { | |
8161 | if (temp2) | |
8162 | delete arg2; | |
8163 | } | |
8164 | return NULL; | |
8165 | } | |
8166 | ||
8167 | ||
8168 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8169 | PyObject *resultobj; | |
8170 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8171 | PyObject * obj0 = 0 ; | |
8172 | char *kwnames[] = { | |
8173 | (char *) "self", NULL | |
8174 | }; | |
8175 | ||
8176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
8177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8178 | { | |
8179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8180 | (arg1)->MarkDirty(); | |
8181 | ||
8182 | wxPyEndAllowThreads(__tstate); | |
8183 | if (PyErr_Occurred()) SWIG_fail; | |
8184 | } | |
8185 | Py_INCREF(Py_None); resultobj = Py_None; | |
8186 | return resultobj; | |
8187 | fail: | |
8188 | return NULL; | |
8189 | } | |
8190 | ||
8191 | ||
8192 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8193 | PyObject *resultobj; | |
8194 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8195 | PyObject * obj0 = 0 ; | |
8196 | char *kwnames[] = { | |
8197 | (char *) "self", NULL | |
8198 | }; | |
8199 | ||
8200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
8201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8202 | { | |
8203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8204 | (arg1)->DiscardEdits(); | |
8205 | ||
8206 | wxPyEndAllowThreads(__tstate); | |
8207 | if (PyErr_Occurred()) SWIG_fail; | |
8208 | } | |
8209 | Py_INCREF(Py_None); resultobj = Py_None; | |
8210 | return resultobj; | |
8211 | fail: | |
8212 | return NULL; | |
8213 | } | |
8214 | ||
8215 | ||
8216 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8217 | PyObject *resultobj; | |
8218 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8219 | unsigned long arg2 ; | |
8220 | PyObject * obj0 = 0 ; | |
8221 | PyObject * obj1 = 0 ; | |
8222 | char *kwnames[] = { | |
8223 | (char *) "self",(char *) "len", NULL | |
8224 | }; | |
8225 | ||
8226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
8227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 8228 | { |
8edf1c75 | 8229 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
8230 | if (PyErr_Occurred()) SWIG_fail; |
8231 | } | |
d14a1e28 RD |
8232 | { |
8233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8234 | (arg1)->SetMaxLength(arg2); | |
8235 | ||
8236 | wxPyEndAllowThreads(__tstate); | |
8237 | if (PyErr_Occurred()) SWIG_fail; | |
8238 | } | |
8239 | Py_INCREF(Py_None); resultobj = Py_None; | |
8240 | return resultobj; | |
8241 | fail: | |
8242 | return NULL; | |
8243 | } | |
8244 | ||
8245 | ||
8246 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8247 | PyObject *resultobj; | |
8248 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8249 | wxString *arg2 = 0 ; | |
423f194a | 8250 | bool temp2 = False ; |
d14a1e28 RD |
8251 | PyObject * obj0 = 0 ; |
8252 | PyObject * obj1 = 0 ; | |
8253 | char *kwnames[] = { | |
8254 | (char *) "self",(char *) "text", NULL | |
8255 | }; | |
8256 | ||
8257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
8258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8259 | { | |
8260 | arg2 = wxString_in_helper(obj1); | |
8261 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8262 | temp2 = True; |
d14a1e28 RD |
8263 | } |
8264 | { | |
8265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8266 | (arg1)->WriteText((wxString const &)*arg2); | |
8267 | ||
8268 | wxPyEndAllowThreads(__tstate); | |
8269 | if (PyErr_Occurred()) SWIG_fail; | |
8270 | } | |
8271 | Py_INCREF(Py_None); resultobj = Py_None; | |
8272 | { | |
8273 | if (temp2) | |
8274 | delete arg2; | |
8275 | } | |
8276 | return resultobj; | |
8277 | fail: | |
8278 | { | |
8279 | if (temp2) | |
8280 | delete arg2; | |
8281 | } | |
8282 | return NULL; | |
8283 | } | |
8284 | ||
8285 | ||
8286 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8287 | PyObject *resultobj; | |
8288 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8289 | wxString *arg2 = 0 ; | |
423f194a | 8290 | bool temp2 = False ; |
d14a1e28 RD |
8291 | PyObject * obj0 = 0 ; |
8292 | PyObject * obj1 = 0 ; | |
8293 | char *kwnames[] = { | |
8294 | (char *) "self",(char *) "text", NULL | |
8295 | }; | |
8296 | ||
8297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
8298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8299 | { | |
8300 | arg2 = wxString_in_helper(obj1); | |
8301 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8302 | temp2 = True; |
d14a1e28 RD |
8303 | } |
8304 | { | |
8305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8306 | (arg1)->AppendText((wxString const &)*arg2); | |
8307 | ||
8308 | wxPyEndAllowThreads(__tstate); | |
8309 | if (PyErr_Occurred()) SWIG_fail; | |
8310 | } | |
8311 | Py_INCREF(Py_None); resultobj = Py_None; | |
8312 | { | |
8313 | if (temp2) | |
8314 | delete arg2; | |
8315 | } | |
8316 | return resultobj; | |
8317 | fail: | |
8318 | { | |
8319 | if (temp2) | |
8320 | delete arg2; | |
8321 | } | |
8322 | return NULL; | |
8323 | } | |
8324 | ||
8325 | ||
8326 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8327 | PyObject *resultobj; | |
8328 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8329 | wxKeyEvent *arg2 = 0 ; | |
8330 | bool result; | |
8331 | PyObject * obj0 = 0 ; | |
8332 | PyObject * obj1 = 0 ; | |
8333 | char *kwnames[] = { | |
8334 | (char *) "self",(char *) "event", NULL | |
8335 | }; | |
8336 | ||
8337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
8338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8339 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8340 | if (arg2 == NULL) { | |
8341 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8342 | } | |
8343 | { | |
8344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8345 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8346 | ||
8347 | wxPyEndAllowThreads(__tstate); | |
8348 | if (PyErr_Occurred()) SWIG_fail; | |
8349 | } | |
4e760a36 | 8350 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8351 | return resultobj; |
8352 | fail: | |
8353 | return NULL; | |
8354 | } | |
8355 | ||
8356 | ||
8357 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8358 | PyObject *resultobj; | |
8359 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8360 | long arg2 ; | |
8361 | long arg3 ; | |
8362 | wxTextAttr *arg4 = 0 ; | |
8363 | bool result; | |
8364 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8365 | PyObject * obj1 = 0 ; |
8366 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8367 | PyObject * obj3 = 0 ; |
8368 | char *kwnames[] = { | |
8369 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8370 | }; | |
8371 | ||
8edf1c75 | 8372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8374 | { |
8375 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8376 | if (PyErr_Occurred()) SWIG_fail; | |
8377 | } | |
8378 | { | |
8379 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8380 | if (PyErr_Occurred()) SWIG_fail; | |
8381 | } | |
d14a1e28 RD |
8382 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8383 | if (arg4 == NULL) { | |
8384 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8385 | } | |
8386 | { | |
8387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8388 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
8389 | ||
8390 | wxPyEndAllowThreads(__tstate); | |
8391 | if (PyErr_Occurred()) SWIG_fail; | |
8392 | } | |
4e760a36 | 8393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8394 | return resultobj; |
8395 | fail: | |
8396 | return NULL; | |
8397 | } | |
8398 | ||
8399 | ||
8400 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8401 | PyObject *resultobj; | |
8402 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8403 | long arg2 ; | |
8404 | wxTextAttr *arg3 = 0 ; | |
8405 | bool result; | |
8406 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8407 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8408 | PyObject * obj2 = 0 ; |
8409 | char *kwnames[] = { | |
8410 | (char *) "self",(char *) "position",(char *) "style", NULL | |
8411 | }; | |
8412 | ||
8edf1c75 | 8413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8415 | { |
8416 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8417 | if (PyErr_Occurred()) SWIG_fail; | |
8418 | } | |
d14a1e28 RD |
8419 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8420 | if (arg3 == NULL) { | |
8421 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8422 | } | |
8423 | { | |
8424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8425 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
8426 | ||
8427 | wxPyEndAllowThreads(__tstate); | |
8428 | if (PyErr_Occurred()) SWIG_fail; | |
8429 | } | |
4e760a36 | 8430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8431 | return resultobj; |
8432 | fail: | |
8433 | return NULL; | |
8434 | } | |
8435 | ||
8436 | ||
8437 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8438 | PyObject *resultobj; | |
8439 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8440 | wxTextAttr *arg2 = 0 ; | |
8441 | bool result; | |
8442 | PyObject * obj0 = 0 ; | |
8443 | PyObject * obj1 = 0 ; | |
8444 | char *kwnames[] = { | |
8445 | (char *) "self",(char *) "style", NULL | |
8446 | }; | |
8447 | ||
8448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
8449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8450 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8451 | if (arg2 == NULL) { | |
8452 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8453 | } | |
8454 | { | |
8455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8456 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
8457 | ||
8458 | wxPyEndAllowThreads(__tstate); | |
8459 | if (PyErr_Occurred()) SWIG_fail; | |
8460 | } | |
4e760a36 | 8461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8462 | return resultobj; |
8463 | fail: | |
8464 | return NULL; | |
8465 | } | |
8466 | ||
8467 | ||
8468 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8469 | PyObject *resultobj; | |
8470 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8471 | wxTextAttr *result; | |
8472 | PyObject * obj0 = 0 ; | |
8473 | char *kwnames[] = { | |
8474 | (char *) "self", NULL | |
8475 | }; | |
8476 | ||
8477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
8478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8479 | { | |
8480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8481 | { | |
8482 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
8483 | result = (wxTextAttr *) &_result_ref; | |
8484 | } | |
8485 | ||
8486 | wxPyEndAllowThreads(__tstate); | |
8487 | if (PyErr_Occurred()) SWIG_fail; | |
8488 | } | |
8489 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 0); | |
8490 | return resultobj; | |
8491 | fail: | |
8492 | return NULL; | |
8493 | } | |
8494 | ||
8495 | ||
8496 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8497 | PyObject *resultobj; | |
8498 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8499 | long arg2 ; | |
8500 | long arg3 ; | |
8501 | long result; | |
8502 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8503 | PyObject * obj1 = 0 ; |
8504 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8505 | char *kwnames[] = { |
8506 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8507 | }; | |
8508 | ||
8edf1c75 | 8509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8511 | { |
8512 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8513 | if (PyErr_Occurred()) SWIG_fail; | |
8514 | } | |
8515 | { | |
8516 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8517 | if (PyErr_Occurred()) SWIG_fail; | |
8518 | } | |
d14a1e28 RD |
8519 | { |
8520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8521 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
8522 | ||
8523 | wxPyEndAllowThreads(__tstate); | |
8524 | if (PyErr_Occurred()) SWIG_fail; | |
8525 | } | |
8edf1c75 | 8526 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8527 | return resultobj; |
8528 | fail: | |
8529 | return NULL; | |
8530 | } | |
8531 | ||
8532 | ||
8533 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8534 | PyObject *resultobj; | |
8535 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8536 | long arg2 ; | |
8537 | long *arg3 = (long *) 0 ; | |
8538 | long *arg4 = (long *) 0 ; | |
8539 | long temp3 ; | |
8540 | long temp4 ; | |
8541 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8542 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8543 | char *kwnames[] = { |
8544 | (char *) "self",(char *) "pos", NULL | |
8545 | }; | |
8546 | ||
8547 | arg3 = &temp3; | |
8548 | arg4 = &temp4; | |
8edf1c75 | 8549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8551 | { |
8552 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8553 | if (PyErr_Occurred()) SWIG_fail; | |
8554 | } | |
d14a1e28 RD |
8555 | { |
8556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8557 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
8558 | ||
8559 | wxPyEndAllowThreads(__tstate); | |
8560 | if (PyErr_Occurred()) SWIG_fail; | |
8561 | } | |
8562 | Py_INCREF(Py_None); resultobj = Py_None; | |
8563 | { | |
8564 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8565 | resultobj = t_output_helper(resultobj,o); | |
8566 | } | |
8567 | { | |
8568 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8569 | resultobj = t_output_helper(resultobj,o); | |
8570 | } | |
8571 | return resultobj; | |
8572 | fail: | |
8573 | return NULL; | |
8574 | } | |
8575 | ||
8576 | ||
8577 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8578 | PyObject *resultobj; | |
8579 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8580 | long arg2 ; | |
8581 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8582 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8583 | char *kwnames[] = { |
8584 | (char *) "self",(char *) "pos", NULL | |
8585 | }; | |
8586 | ||
8edf1c75 | 8587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8589 | { |
8590 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8591 | if (PyErr_Occurred()) SWIG_fail; | |
8592 | } | |
d14a1e28 RD |
8593 | { |
8594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8595 | (arg1)->ShowPosition(arg2); | |
8596 | ||
8597 | wxPyEndAllowThreads(__tstate); | |
8598 | if (PyErr_Occurred()) SWIG_fail; | |
8599 | } | |
8600 | Py_INCREF(Py_None); resultobj = Py_None; | |
8601 | return resultobj; | |
8602 | fail: | |
8603 | return NULL; | |
8604 | } | |
8605 | ||
8606 | ||
4e760a36 RD |
8607 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8608 | PyObject *resultobj; | |
8609 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8610 | wxPoint *arg2 = 0 ; | |
8611 | long *arg3 = (long *) 0 ; | |
8612 | long *arg4 = (long *) 0 ; | |
8613 | int result; | |
8614 | wxPoint temp2 ; | |
8615 | long temp3 ; | |
8616 | long temp4 ; | |
8617 | PyObject * obj0 = 0 ; | |
8618 | PyObject * obj1 = 0 ; | |
8619 | char *kwnames[] = { | |
8620 | (char *) "self",(char *) "pt", NULL | |
8621 | }; | |
8622 | ||
8623 | arg3 = &temp3; | |
8624 | arg4 = &temp4; | |
8625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
8626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8627 | { | |
8628 | arg2 = &temp2; | |
8629 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8630 | } | |
8631 | { | |
8632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8633 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
8634 | ||
8635 | wxPyEndAllowThreads(__tstate); | |
8636 | if (PyErr_Occurred()) SWIG_fail; | |
8637 | } | |
8638 | resultobj = SWIG_PyObj_FromInt((int)result); | |
8639 | { | |
8640 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8641 | resultobj = t_output_helper(resultobj,o); | |
8642 | } | |
8643 | { | |
8644 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8645 | resultobj = t_output_helper(resultobj,o); | |
8646 | } | |
8647 | return resultobj; | |
8648 | fail: | |
8649 | return NULL; | |
8650 | } | |
8651 | ||
8652 | ||
d14a1e28 RD |
8653 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8654 | PyObject *resultobj; | |
8655 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8656 | PyObject * obj0 = 0 ; | |
8657 | char *kwnames[] = { | |
8658 | (char *) "self", NULL | |
8659 | }; | |
8660 | ||
8661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
8662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8663 | { | |
8664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8665 | (arg1)->Copy(); | |
8666 | ||
8667 | wxPyEndAllowThreads(__tstate); | |
8668 | if (PyErr_Occurred()) SWIG_fail; | |
8669 | } | |
8670 | Py_INCREF(Py_None); resultobj = Py_None; | |
8671 | return resultobj; | |
8672 | fail: | |
8673 | return NULL; | |
8674 | } | |
8675 | ||
8676 | ||
8677 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8678 | PyObject *resultobj; | |
8679 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8680 | PyObject * obj0 = 0 ; | |
8681 | char *kwnames[] = { | |
8682 | (char *) "self", NULL | |
8683 | }; | |
8684 | ||
8685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
8686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8687 | { | |
8688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8689 | (arg1)->Cut(); | |
8690 | ||
8691 | wxPyEndAllowThreads(__tstate); | |
8692 | if (PyErr_Occurred()) SWIG_fail; | |
8693 | } | |
8694 | Py_INCREF(Py_None); resultobj = Py_None; | |
8695 | return resultobj; | |
8696 | fail: | |
8697 | return NULL; | |
8698 | } | |
8699 | ||
8700 | ||
8701 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8702 | PyObject *resultobj; | |
8703 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8704 | PyObject * obj0 = 0 ; | |
8705 | char *kwnames[] = { | |
8706 | (char *) "self", NULL | |
8707 | }; | |
8708 | ||
8709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
8710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8711 | { | |
8712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8713 | (arg1)->Paste(); | |
8714 | ||
8715 | wxPyEndAllowThreads(__tstate); | |
8716 | if (PyErr_Occurred()) SWIG_fail; | |
8717 | } | |
8718 | Py_INCREF(Py_None); resultobj = Py_None; | |
8719 | return resultobj; | |
8720 | fail: | |
8721 | return NULL; | |
8722 | } | |
8723 | ||
8724 | ||
8725 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8726 | PyObject *resultobj; | |
8727 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8728 | bool result; | |
8729 | PyObject * obj0 = 0 ; | |
8730 | char *kwnames[] = { | |
8731 | (char *) "self", NULL | |
8732 | }; | |
8733 | ||
8734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
8735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8736 | { | |
8737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8738 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
8739 | ||
8740 | wxPyEndAllowThreads(__tstate); | |
8741 | if (PyErr_Occurred()) SWIG_fail; | |
8742 | } | |
4e760a36 | 8743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8744 | return resultobj; |
8745 | fail: | |
8746 | return NULL; | |
8747 | } | |
8748 | ||
8749 | ||
8750 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8751 | PyObject *resultobj; | |
8752 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8753 | bool result; | |
8754 | PyObject * obj0 = 0 ; | |
8755 | char *kwnames[] = { | |
8756 | (char *) "self", NULL | |
8757 | }; | |
8758 | ||
8759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
8760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8761 | { | |
8762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8763 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
8764 | ||
8765 | wxPyEndAllowThreads(__tstate); | |
8766 | if (PyErr_Occurred()) SWIG_fail; | |
8767 | } | |
4e760a36 | 8768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8769 | return resultobj; |
8770 | fail: | |
8771 | return NULL; | |
8772 | } | |
8773 | ||
8774 | ||
8775 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8776 | PyObject *resultobj; | |
8777 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8778 | bool result; | |
8779 | PyObject * obj0 = 0 ; | |
8780 | char *kwnames[] = { | |
8781 | (char *) "self", NULL | |
8782 | }; | |
8783 | ||
8784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
8785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8786 | { | |
8787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8788 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
8789 | ||
8790 | wxPyEndAllowThreads(__tstate); | |
8791 | if (PyErr_Occurred()) SWIG_fail; | |
8792 | } | |
4e760a36 | 8793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8794 | return resultobj; |
8795 | fail: | |
8796 | return NULL; | |
8797 | } | |
8798 | ||
8799 | ||
8800 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8801 | PyObject *resultobj; | |
8802 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8803 | PyObject * obj0 = 0 ; | |
8804 | char *kwnames[] = { | |
8805 | (char *) "self", NULL | |
8806 | }; | |
8807 | ||
8808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
8809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8810 | { | |
8811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8812 | (arg1)->Undo(); | |
8813 | ||
8814 | wxPyEndAllowThreads(__tstate); | |
8815 | if (PyErr_Occurred()) SWIG_fail; | |
8816 | } | |
8817 | Py_INCREF(Py_None); resultobj = Py_None; | |
8818 | return resultobj; | |
8819 | fail: | |
8820 | return NULL; | |
8821 | } | |
8822 | ||
8823 | ||
8824 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8825 | PyObject *resultobj; | |
8826 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8827 | PyObject * obj0 = 0 ; | |
8828 | char *kwnames[] = { | |
8829 | (char *) "self", NULL | |
8830 | }; | |
8831 | ||
8832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",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 | (arg1)->Redo(); | |
8837 | ||
8838 | wxPyEndAllowThreads(__tstate); | |
8839 | if (PyErr_Occurred()) SWIG_fail; | |
8840 | } | |
8841 | Py_INCREF(Py_None); resultobj = Py_None; | |
8842 | return resultobj; | |
8843 | fail: | |
8844 | return NULL; | |
8845 | } | |
8846 | ||
8847 | ||
8848 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8849 | PyObject *resultobj; | |
8850 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8851 | bool result; | |
8852 | PyObject * obj0 = 0 ; | |
8853 | char *kwnames[] = { | |
8854 | (char *) "self", NULL | |
8855 | }; | |
8856 | ||
8857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",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 = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
8862 | ||
8863 | wxPyEndAllowThreads(__tstate); | |
8864 | if (PyErr_Occurred()) SWIG_fail; | |
8865 | } | |
4e760a36 | 8866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8867 | return resultobj; |
8868 | fail: | |
8869 | return NULL; | |
8870 | } | |
8871 | ||
8872 | ||
8873 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8874 | PyObject *resultobj; | |
8875 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8876 | bool result; | |
8877 | PyObject * obj0 = 0 ; | |
8878 | char *kwnames[] = { | |
8879 | (char *) "self", NULL | |
8880 | }; | |
8881 | ||
8882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
8883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8884 | { | |
8885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8886 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
8887 | ||
8888 | wxPyEndAllowThreads(__tstate); | |
8889 | if (PyErr_Occurred()) SWIG_fail; | |
8890 | } | |
4e760a36 | 8891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8892 | return resultobj; |
8893 | fail: | |
8894 | return NULL; | |
8895 | } | |
8896 | ||
8897 | ||
8898 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8899 | PyObject *resultobj; | |
8900 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8901 | long arg2 ; | |
8902 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8903 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8904 | char *kwnames[] = { |
8905 | (char *) "self",(char *) "pos", NULL | |
8906 | }; | |
8907 | ||
8edf1c75 | 8908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8910 | { |
8911 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8912 | if (PyErr_Occurred()) SWIG_fail; | |
8913 | } | |
d14a1e28 RD |
8914 | { |
8915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8916 | (arg1)->SetInsertionPoint(arg2); | |
8917 | ||
8918 | wxPyEndAllowThreads(__tstate); | |
8919 | if (PyErr_Occurred()) SWIG_fail; | |
8920 | } | |
8921 | Py_INCREF(Py_None); resultobj = Py_None; | |
8922 | return resultobj; | |
8923 | fail: | |
8924 | return NULL; | |
8925 | } | |
8926 | ||
8927 | ||
8928 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8929 | PyObject *resultobj; | |
8930 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8931 | PyObject * obj0 = 0 ; | |
8932 | char *kwnames[] = { | |
8933 | (char *) "self", NULL | |
8934 | }; | |
8935 | ||
8936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
8937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8938 | { | |
8939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8940 | (arg1)->SetInsertionPointEnd(); | |
8941 | ||
8942 | wxPyEndAllowThreads(__tstate); | |
8943 | if (PyErr_Occurred()) SWIG_fail; | |
8944 | } | |
8945 | Py_INCREF(Py_None); resultobj = Py_None; | |
8946 | return resultobj; | |
8947 | fail: | |
8948 | return NULL; | |
8949 | } | |
8950 | ||
8951 | ||
8952 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8953 | PyObject *resultobj; | |
8954 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8955 | long result; | |
8956 | PyObject * obj0 = 0 ; | |
8957 | char *kwnames[] = { | |
8958 | (char *) "self", NULL | |
8959 | }; | |
8960 | ||
8961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
8962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8963 | { | |
8964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8965 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
8966 | ||
8967 | wxPyEndAllowThreads(__tstate); | |
8968 | if (PyErr_Occurred()) SWIG_fail; | |
8969 | } | |
8edf1c75 | 8970 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8971 | return resultobj; |
8972 | fail: | |
8973 | return NULL; | |
8974 | } | |
8975 | ||
8976 | ||
8977 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8978 | PyObject *resultobj; | |
8979 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8980 | long result; | |
8981 | PyObject * obj0 = 0 ; | |
8982 | char *kwnames[] = { | |
8983 | (char *) "self", NULL | |
8984 | }; | |
8985 | ||
8986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
8987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8988 | { | |
8989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8990 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
8991 | ||
8992 | wxPyEndAllowThreads(__tstate); | |
8993 | if (PyErr_Occurred()) SWIG_fail; | |
8994 | } | |
8edf1c75 | 8995 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8996 | return resultobj; |
8997 | fail: | |
8998 | return NULL; | |
8999 | } | |
9000 | ||
9001 | ||
9002 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9003 | PyObject *resultobj; | |
9004 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9005 | long arg2 ; | |
9006 | long arg3 ; | |
9007 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9008 | PyObject * obj1 = 0 ; |
9009 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9010 | char *kwnames[] = { |
9011 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9012 | }; | |
9013 | ||
8edf1c75 | 9014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 9015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9016 | { |
9017 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
9018 | if (PyErr_Occurred()) SWIG_fail; | |
9019 | } | |
9020 | { | |
9021 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9022 | if (PyErr_Occurred()) SWIG_fail; | |
9023 | } | |
d14a1e28 RD |
9024 | { |
9025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9026 | (arg1)->SetSelection(arg2,arg3); | |
9027 | ||
9028 | wxPyEndAllowThreads(__tstate); | |
9029 | if (PyErr_Occurred()) SWIG_fail; | |
9030 | } | |
9031 | Py_INCREF(Py_None); resultobj = Py_None; | |
9032 | return resultobj; | |
9033 | fail: | |
9034 | return NULL; | |
9035 | } | |
9036 | ||
9037 | ||
9038 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9039 | PyObject *resultobj; | |
9040 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9041 | PyObject * obj0 = 0 ; | |
9042 | char *kwnames[] = { | |
9043 | (char *) "self", NULL | |
9044 | }; | |
9045 | ||
9046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
9047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9048 | { | |
9049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9050 | (arg1)->SelectAll(); | |
9051 | ||
9052 | wxPyEndAllowThreads(__tstate); | |
9053 | if (PyErr_Occurred()) SWIG_fail; | |
9054 | } | |
9055 | Py_INCREF(Py_None); resultobj = Py_None; | |
9056 | return resultobj; | |
9057 | fail: | |
9058 | return NULL; | |
9059 | } | |
9060 | ||
9061 | ||
9062 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9063 | PyObject *resultobj; | |
9064 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9065 | bool arg2 ; | |
9066 | PyObject * obj0 = 0 ; | |
9067 | PyObject * obj1 = 0 ; | |
9068 | char *kwnames[] = { | |
9069 | (char *) "self",(char *) "editable", NULL | |
9070 | }; | |
9071 | ||
9072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
9073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 9074 | { |
8edf1c75 | 9075 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
9076 | if (PyErr_Occurred()) SWIG_fail; |
9077 | } | |
d14a1e28 RD |
9078 | { |
9079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9080 | (arg1)->SetEditable(arg2); | |
9081 | ||
9082 | wxPyEndAllowThreads(__tstate); | |
9083 | if (PyErr_Occurred()) SWIG_fail; | |
9084 | } | |
9085 | Py_INCREF(Py_None); resultobj = Py_None; | |
9086 | return resultobj; | |
9087 | fail: | |
9088 | return NULL; | |
9089 | } | |
9090 | ||
9091 | ||
9092 | static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9093 | PyObject *resultobj; | |
9094 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
423f194a | 9095 | bool arg2 = (bool) True ; |
d14a1e28 RD |
9096 | bool result; |
9097 | PyObject * obj0 = 0 ; | |
9098 | PyObject * obj1 = 0 ; | |
9099 | char *kwnames[] = { | |
9100 | (char *) "self",(char *) "show", NULL | |
9101 | }; | |
9102 | ||
9103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail; | |
9104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9105 | if (obj1) { | |
83448d71 | 9106 | { |
8edf1c75 | 9107 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
9108 | if (PyErr_Occurred()) SWIG_fail; |
9109 | } | |
d14a1e28 RD |
9110 | } |
9111 | { | |
9112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9113 | result = (bool)(arg1)->ShowNativeCaret(arg2); | |
9114 | ||
9115 | wxPyEndAllowThreads(__tstate); | |
9116 | if (PyErr_Occurred()) SWIG_fail; | |
9117 | } | |
4e760a36 | 9118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9119 | return resultobj; |
9120 | fail: | |
9121 | return NULL; | |
9122 | } | |
9123 | ||
9124 | ||
9125 | static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9126 | PyObject *resultobj; | |
9127 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9128 | bool result; | |
9129 | PyObject * obj0 = 0 ; | |
9130 | char *kwnames[] = { | |
9131 | (char *) "self", NULL | |
9132 | }; | |
9133 | ||
9134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail; | |
9135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9136 | { | |
9137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9138 | result = (bool)(arg1)->HideNativeCaret(); | |
9139 | ||
9140 | wxPyEndAllowThreads(__tstate); | |
9141 | if (PyErr_Occurred()) SWIG_fail; | |
9142 | } | |
4e760a36 | 9143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9144 | return resultobj; |
9145 | fail: | |
9146 | return NULL; | |
9147 | } | |
9148 | ||
9149 | ||
9150 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9151 | PyObject *resultobj; | |
9152 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9153 | wxString *arg2 = 0 ; | |
423f194a | 9154 | bool temp2 = False ; |
d14a1e28 RD |
9155 | PyObject * obj0 = 0 ; |
9156 | PyObject * obj1 = 0 ; | |
9157 | char *kwnames[] = { | |
9158 | (char *) "self",(char *) "text", NULL | |
9159 | }; | |
9160 | ||
9161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
9162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9163 | { | |
9164 | arg2 = wxString_in_helper(obj1); | |
9165 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9166 | temp2 = True; |
d14a1e28 RD |
9167 | } |
9168 | { | |
9169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9170 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9171 | ||
9172 | wxPyEndAllowThreads(__tstate); | |
9173 | if (PyErr_Occurred()) SWIG_fail; | |
9174 | } | |
9175 | Py_INCREF(Py_None); resultobj = Py_None; | |
9176 | { | |
9177 | if (temp2) | |
9178 | delete arg2; | |
9179 | } | |
9180 | return resultobj; | |
9181 | fail: | |
9182 | { | |
9183 | if (temp2) | |
9184 | delete arg2; | |
9185 | } | |
9186 | return NULL; | |
9187 | } | |
9188 | ||
9189 | ||
9190 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9191 | PyObject *resultobj; | |
9192 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9193 | long arg2 ; | |
9194 | long arg3 ; | |
9195 | wxString result; | |
9196 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9197 | PyObject * obj1 = 0 ; |
9198 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9199 | char *kwnames[] = { |
9200 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9201 | }; | |
9202 | ||
8edf1c75 | 9203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 9204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9205 | { |
9206 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
9207 | if (PyErr_Occurred()) SWIG_fail; | |
9208 | } | |
9209 | { | |
9210 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9211 | if (PyErr_Occurred()) SWIG_fail; | |
9212 | } | |
d14a1e28 RD |
9213 | { |
9214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9215 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9216 | ||
9217 | wxPyEndAllowThreads(__tstate); | |
9218 | if (PyErr_Occurred()) SWIG_fail; | |
9219 | } | |
9220 | { | |
9221 | #if wxUSE_UNICODE | |
9222 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9223 | #else | |
9224 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9225 | #endif | |
9226 | } | |
9227 | return resultobj; | |
9228 | fail: | |
9229 | return NULL; | |
9230 | } | |
9231 | ||
9232 | ||
9233 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
9234 | PyObject *obj; | |
9235 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9236 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9237 | Py_INCREF(obj); | |
9238 | return Py_BuildValue((char *)""); | |
9239 | } | |
9240 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9241 | PyObject *resultobj; | |
9242 | int arg1 ; | |
9243 | wxMouseEvent *arg2 = 0 ; | |
9244 | long arg3 ; | |
9245 | long arg4 ; | |
9246 | wxTextUrlEvent *result; | |
8edf1c75 | 9247 | PyObject * obj0 = 0 ; |
d14a1e28 | 9248 | PyObject * obj1 = 0 ; |
8edf1c75 RD |
9249 | PyObject * obj2 = 0 ; |
9250 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9251 | char *kwnames[] = { |
9252 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9253 | }; | |
9254 | ||
8edf1c75 RD |
9255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
9256 | { | |
9257 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9258 | if (PyErr_Occurred()) SWIG_fail; | |
9259 | } | |
d14a1e28 RD |
9260 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9261 | if (arg2 == NULL) { | |
9262 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9263 | } | |
8edf1c75 RD |
9264 | { |
9265 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9266 | if (PyErr_Occurred()) SWIG_fail; | |
9267 | } | |
9268 | { | |
9269 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
9270 | if (PyErr_Occurred()) SWIG_fail; | |
9271 | } | |
d14a1e28 RD |
9272 | { |
9273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9274 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9275 | ||
9276 | wxPyEndAllowThreads(__tstate); | |
9277 | if (PyErr_Occurred()) SWIG_fail; | |
9278 | } | |
9279 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextUrlEvent, 1); | |
9280 | return resultobj; | |
9281 | fail: | |
9282 | return NULL; | |
9283 | } | |
9284 | ||
9285 | ||
9286 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9287 | PyObject *resultobj; | |
9288 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9289 | wxMouseEvent *result; | |
9290 | PyObject * obj0 = 0 ; | |
9291 | char *kwnames[] = { | |
9292 | (char *) "self", NULL | |
9293 | }; | |
9294 | ||
9295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
9296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9297 | { | |
9298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9299 | { | |
9300 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9301 | result = (wxMouseEvent *) &_result_ref; | |
9302 | } | |
9303 | ||
9304 | wxPyEndAllowThreads(__tstate); | |
9305 | if (PyErr_Occurred()) SWIG_fail; | |
9306 | } | |
9307 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseEvent, 0); | |
9308 | return resultobj; | |
9309 | fail: | |
9310 | return NULL; | |
9311 | } | |
9312 | ||
9313 | ||
9314 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9315 | PyObject *resultobj; | |
9316 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9317 | long result; | |
9318 | PyObject * obj0 = 0 ; | |
9319 | char *kwnames[] = { | |
9320 | (char *) "self", NULL | |
9321 | }; | |
9322 | ||
9323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
9324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9325 | { | |
9326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9327 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9328 | ||
9329 | wxPyEndAllowThreads(__tstate); | |
9330 | if (PyErr_Occurred()) SWIG_fail; | |
9331 | } | |
8edf1c75 | 9332 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9333 | return resultobj; |
9334 | fail: | |
9335 | return NULL; | |
9336 | } | |
9337 | ||
9338 | ||
9339 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9340 | PyObject *resultobj; | |
9341 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9342 | long result; | |
9343 | PyObject * obj0 = 0 ; | |
9344 | char *kwnames[] = { | |
9345 | (char *) "self", NULL | |
9346 | }; | |
9347 | ||
9348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
9349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9350 | { | |
9351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9352 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
9353 | ||
9354 | wxPyEndAllowThreads(__tstate); | |
9355 | if (PyErr_Occurred()) SWIG_fail; | |
9356 | } | |
8edf1c75 | 9357 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9358 | return resultobj; |
9359 | fail: | |
9360 | return NULL; | |
9361 | } | |
9362 | ||
9363 | ||
9364 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
9365 | PyObject *obj; | |
9366 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9367 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
9368 | Py_INCREF(obj); | |
9369 | return Py_BuildValue((char *)""); | |
9370 | } | |
8edf1c75 | 9371 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
d03fd34d RD |
9372 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
9373 | return 1; | |
9374 | } | |
9375 | ||
9376 | ||
9377 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
9378 | PyObject *pyobj; | |
9379 | ||
9380 | { | |
9381 | #if wxUSE_UNICODE | |
9382 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9383 | #else | |
9384 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9385 | #endif | |
9386 | } | |
9387 | return pyobj; | |
9388 | } | |
9389 | ||
9390 | ||
d14a1e28 RD |
9391 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9392 | PyObject *resultobj; | |
9393 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9394 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9395 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9396 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9397 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9398 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9399 | long arg5 = (long) wxSB_HORIZONTAL ; | |
9400 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
9401 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
9402 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
9403 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9404 | wxScrollBar *result; | |
9405 | wxPoint temp3 ; | |
9406 | wxSize temp4 ; | |
423f194a | 9407 | bool temp7 = False ; |
d14a1e28 | 9408 | PyObject * obj0 = 0 ; |
8edf1c75 | 9409 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9410 | PyObject * obj2 = 0 ; |
9411 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9412 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9413 | PyObject * obj5 = 0 ; |
9414 | PyObject * obj6 = 0 ; | |
9415 | char *kwnames[] = { | |
9416 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9417 | }; | |
9418 | ||
8edf1c75 | 9419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 9420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9421 | if (obj1) { |
9422 | { | |
9423 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9424 | if (PyErr_Occurred()) SWIG_fail; | |
9425 | } | |
9426 | } | |
d14a1e28 RD |
9427 | if (obj2) { |
9428 | { | |
9429 | arg3 = &temp3; | |
9430 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9431 | } | |
9432 | } | |
9433 | if (obj3) { | |
9434 | { | |
9435 | arg4 = &temp4; | |
9436 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9437 | } | |
9438 | } | |
8edf1c75 RD |
9439 | if (obj4) { |
9440 | { | |
9441 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9442 | if (PyErr_Occurred()) SWIG_fail; | |
9443 | } | |
9444 | } | |
d14a1e28 RD |
9445 | if (obj5) { |
9446 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9447 | if (arg6 == NULL) { | |
9448 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9449 | } | |
9450 | } | |
9451 | if (obj6) { | |
9452 | { | |
9453 | arg7 = wxString_in_helper(obj6); | |
9454 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 9455 | temp7 = True; |
d14a1e28 RD |
9456 | } |
9457 | } | |
9458 | { | |
9459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9460 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
9461 | ||
9462 | wxPyEndAllowThreads(__tstate); | |
9463 | if (PyErr_Occurred()) SWIG_fail; | |
9464 | } | |
9465 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9466 | { | |
9467 | if (temp7) | |
9468 | delete arg7; | |
9469 | } | |
9470 | return resultobj; | |
9471 | fail: | |
9472 | { | |
9473 | if (temp7) | |
9474 | delete arg7; | |
9475 | } | |
9476 | return NULL; | |
9477 | } | |
9478 | ||
9479 | ||
9480 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9481 | PyObject *resultobj; | |
9482 | wxScrollBar *result; | |
9483 | char *kwnames[] = { | |
9484 | NULL | |
9485 | }; | |
9486 | ||
9487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
9488 | { | |
9489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9490 | result = (wxScrollBar *)new wxScrollBar(); | |
9491 | ||
9492 | wxPyEndAllowThreads(__tstate); | |
9493 | if (PyErr_Occurred()) SWIG_fail; | |
9494 | } | |
9495 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9496 | return resultobj; | |
9497 | fail: | |
9498 | return NULL; | |
9499 | } | |
9500 | ||
9501 | ||
9502 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9503 | PyObject *resultobj; | |
9504 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9505 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9506 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9507 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9508 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9509 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9510 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9511 | long arg6 = (long) wxSB_HORIZONTAL ; | |
9512 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9513 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9514 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
9515 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9516 | bool result; | |
9517 | wxPoint temp4 ; | |
9518 | wxSize temp5 ; | |
423f194a | 9519 | bool temp8 = False ; |
d14a1e28 RD |
9520 | PyObject * obj0 = 0 ; |
9521 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9522 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9523 | PyObject * obj3 = 0 ; |
9524 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9525 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9526 | PyObject * obj6 = 0 ; |
9527 | PyObject * obj7 = 0 ; | |
9528 | char *kwnames[] = { | |
9529 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9530 | }; | |
9531 | ||
8edf1c75 | 9532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
9533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9534 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
9535 | if (obj2) { |
9536 | { | |
9537 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9538 | if (PyErr_Occurred()) SWIG_fail; | |
9539 | } | |
9540 | } | |
d14a1e28 RD |
9541 | if (obj3) { |
9542 | { | |
9543 | arg4 = &temp4; | |
9544 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9545 | } | |
9546 | } | |
9547 | if (obj4) { | |
9548 | { | |
9549 | arg5 = &temp5; | |
9550 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9551 | } | |
9552 | } | |
8edf1c75 RD |
9553 | if (obj5) { |
9554 | { | |
9555 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9556 | if (PyErr_Occurred()) SWIG_fail; | |
9557 | } | |
9558 | } | |
d14a1e28 RD |
9559 | if (obj6) { |
9560 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9561 | if (arg7 == NULL) { | |
9562 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9563 | } | |
9564 | } | |
9565 | if (obj7) { | |
9566 | { | |
9567 | arg8 = wxString_in_helper(obj7); | |
9568 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 9569 | temp8 = True; |
d14a1e28 RD |
9570 | } |
9571 | } | |
9572 | { | |
9573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9574 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9575 | ||
9576 | wxPyEndAllowThreads(__tstate); | |
9577 | if (PyErr_Occurred()) SWIG_fail; | |
9578 | } | |
4e760a36 | 9579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9580 | { |
9581 | if (temp8) | |
9582 | delete arg8; | |
9583 | } | |
9584 | return resultobj; | |
9585 | fail: | |
9586 | { | |
9587 | if (temp8) | |
9588 | delete arg8; | |
9589 | } | |
9590 | return NULL; | |
9591 | } | |
9592 | ||
9593 | ||
9594 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9595 | PyObject *resultobj; | |
9596 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9597 | int result; | |
9598 | PyObject * obj0 = 0 ; | |
9599 | char *kwnames[] = { | |
9600 | (char *) "self", NULL | |
9601 | }; | |
9602 | ||
9603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
9604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9605 | { | |
9606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9607 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
9608 | ||
9609 | wxPyEndAllowThreads(__tstate); | |
9610 | if (PyErr_Occurred()) SWIG_fail; | |
9611 | } | |
8edf1c75 | 9612 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9613 | return resultobj; |
9614 | fail: | |
9615 | return NULL; | |
9616 | } | |
9617 | ||
9618 | ||
9619 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9620 | PyObject *resultobj; | |
9621 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9622 | int result; | |
9623 | PyObject * obj0 = 0 ; | |
9624 | char *kwnames[] = { | |
9625 | (char *) "self", NULL | |
9626 | }; | |
9627 | ||
9628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
9629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9630 | { | |
9631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9632 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
9633 | ||
9634 | wxPyEndAllowThreads(__tstate); | |
9635 | if (PyErr_Occurred()) SWIG_fail; | |
9636 | } | |
8edf1c75 | 9637 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9638 | return resultobj; |
9639 | fail: | |
9640 | return NULL; | |
9641 | } | |
9642 | ||
9643 | ||
9644 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9645 | PyObject *resultobj; | |
9646 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9647 | int result; | |
9648 | PyObject * obj0 = 0 ; | |
9649 | char *kwnames[] = { | |
9650 | (char *) "self", NULL | |
9651 | }; | |
9652 | ||
9653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
9654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9655 | { | |
9656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9657 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
9658 | ||
9659 | wxPyEndAllowThreads(__tstate); | |
9660 | if (PyErr_Occurred()) SWIG_fail; | |
9661 | } | |
8edf1c75 | 9662 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9663 | return resultobj; |
9664 | fail: | |
9665 | return NULL; | |
9666 | } | |
9667 | ||
9668 | ||
9669 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9670 | PyObject *resultobj; | |
9671 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9672 | int result; | |
9673 | PyObject * obj0 = 0 ; | |
9674 | char *kwnames[] = { | |
9675 | (char *) "self", NULL | |
9676 | }; | |
9677 | ||
9678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
9679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9680 | { | |
9681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9682 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
9683 | ||
9684 | wxPyEndAllowThreads(__tstate); | |
9685 | if (PyErr_Occurred()) SWIG_fail; | |
9686 | } | |
8edf1c75 | 9687 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9688 | return resultobj; |
9689 | fail: | |
9690 | return NULL; | |
9691 | } | |
9692 | ||
9693 | ||
9694 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9695 | PyObject *resultobj; | |
9696 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9697 | bool result; | |
9698 | PyObject * obj0 = 0 ; | |
9699 | char *kwnames[] = { | |
9700 | (char *) "self", NULL | |
9701 | }; | |
9702 | ||
9703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
9704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9705 | { | |
9706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9707 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
9708 | ||
9709 | wxPyEndAllowThreads(__tstate); | |
9710 | if (PyErr_Occurred()) SWIG_fail; | |
9711 | } | |
4e760a36 | 9712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9713 | return resultobj; |
9714 | fail: | |
9715 | return NULL; | |
9716 | } | |
9717 | ||
9718 | ||
9719 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9720 | PyObject *resultobj; | |
9721 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9722 | int arg2 ; | |
9723 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9724 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9725 | char *kwnames[] = { |
9726 | (char *) "self",(char *) "viewStart", NULL | |
9727 | }; | |
9728 | ||
8edf1c75 | 9729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9731 | { |
9732 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9733 | if (PyErr_Occurred()) SWIG_fail; | |
9734 | } | |
d14a1e28 RD |
9735 | { |
9736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9737 | (arg1)->SetThumbPosition(arg2); | |
9738 | ||
9739 | wxPyEndAllowThreads(__tstate); | |
9740 | if (PyErr_Occurred()) SWIG_fail; | |
9741 | } | |
9742 | Py_INCREF(Py_None); resultobj = Py_None; | |
9743 | return resultobj; | |
9744 | fail: | |
9745 | return NULL; | |
9746 | } | |
9747 | ||
9748 | ||
9749 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9750 | PyObject *resultobj; | |
9751 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9752 | int arg2 ; | |
9753 | int arg3 ; | |
9754 | int arg4 ; | |
9755 | int arg5 ; | |
423f194a | 9756 | bool arg6 = (bool) True ; |
d14a1e28 | 9757 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
9758 | PyObject * obj1 = 0 ; |
9759 | PyObject * obj2 = 0 ; | |
9760 | PyObject * obj3 = 0 ; | |
9761 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
9762 | PyObject * obj5 = 0 ; |
9763 | char *kwnames[] = { | |
9764 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
9765 | }; | |
9766 | ||
8edf1c75 | 9767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9769 | { |
9770 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9771 | if (PyErr_Occurred()) SWIG_fail; | |
9772 | } | |
9773 | { | |
9774 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9775 | if (PyErr_Occurred()) SWIG_fail; | |
9776 | } | |
9777 | { | |
9778 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9779 | if (PyErr_Occurred()) SWIG_fail; | |
9780 | } | |
9781 | { | |
9782 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
9783 | if (PyErr_Occurred()) SWIG_fail; | |
9784 | } | |
d14a1e28 | 9785 | if (obj5) { |
83448d71 | 9786 | { |
8edf1c75 | 9787 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
83448d71 RD |
9788 | if (PyErr_Occurred()) SWIG_fail; |
9789 | } | |
d14a1e28 RD |
9790 | } |
9791 | { | |
9792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9793 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
9794 | ||
9795 | wxPyEndAllowThreads(__tstate); | |
9796 | if (PyErr_Occurred()) SWIG_fail; | |
9797 | } | |
9798 | Py_INCREF(Py_None); resultobj = Py_None; | |
9799 | return resultobj; | |
9800 | fail: | |
9801 | return NULL; | |
9802 | } | |
9803 | ||
9804 | ||
9805 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
9806 | PyObject *obj; | |
9807 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9808 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
9809 | Py_INCREF(obj); | |
9810 | return Py_BuildValue((char *)""); | |
9811 | } | |
8edf1c75 | 9812 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
d03fd34d RD |
9813 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
9814 | return 1; | |
9815 | } | |
9816 | ||
9817 | ||
9818 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
9819 | PyObject *pyobj; | |
9820 | ||
9821 | { | |
9822 | #if wxUSE_UNICODE | |
9823 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9824 | #else | |
9825 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9826 | #endif | |
9827 | } | |
9828 | return pyobj; | |
9829 | } | |
9830 | ||
9831 | ||
8edf1c75 | 9832 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
d03fd34d RD |
9833 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
9834 | return 1; | |
9835 | } | |
9836 | ||
9837 | ||
9838 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
9839 | PyObject *pyobj; | |
9840 | ||
9841 | { | |
9842 | #if wxUSE_UNICODE | |
9843 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9844 | #else | |
9845 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9846 | #endif | |
9847 | } | |
9848 | return pyobj; | |
9849 | } | |
9850 | ||
9851 | ||
d14a1e28 RD |
9852 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
9853 | PyObject *resultobj; | |
9854 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9855 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9856 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9857 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9858 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9859 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9860 | long arg5 = (long) wxSP_HORIZONTAL ; | |
9861 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
9862 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9863 | wxSpinButton *result; | |
9864 | wxPoint temp3 ; | |
9865 | wxSize temp4 ; | |
423f194a | 9866 | bool temp6 = False ; |
d14a1e28 | 9867 | PyObject * obj0 = 0 ; |
8edf1c75 | 9868 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9869 | PyObject * obj2 = 0 ; |
9870 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9871 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9872 | PyObject * obj5 = 0 ; |
9873 | char *kwnames[] = { | |
9874 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9875 | }; | |
9876 | ||
8edf1c75 | 9877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9879 | if (obj1) { |
9880 | { | |
9881 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9882 | if (PyErr_Occurred()) SWIG_fail; | |
9883 | } | |
9884 | } | |
d14a1e28 RD |
9885 | if (obj2) { |
9886 | { | |
9887 | arg3 = &temp3; | |
9888 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9889 | } | |
9890 | } | |
9891 | if (obj3) { | |
9892 | { | |
9893 | arg4 = &temp4; | |
9894 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9895 | } | |
9896 | } | |
8edf1c75 RD |
9897 | if (obj4) { |
9898 | { | |
9899 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9900 | if (PyErr_Occurred()) SWIG_fail; | |
9901 | } | |
9902 | } | |
d14a1e28 RD |
9903 | if (obj5) { |
9904 | { | |
9905 | arg6 = wxString_in_helper(obj5); | |
9906 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 9907 | temp6 = True; |
d14a1e28 RD |
9908 | } |
9909 | } | |
9910 | { | |
9911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9912 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9913 | ||
9914 | wxPyEndAllowThreads(__tstate); | |
9915 | if (PyErr_Occurred()) SWIG_fail; | |
9916 | } | |
9917 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9918 | { | |
9919 | if (temp6) | |
9920 | delete arg6; | |
9921 | } | |
9922 | return resultobj; | |
9923 | fail: | |
9924 | { | |
9925 | if (temp6) | |
9926 | delete arg6; | |
9927 | } | |
9928 | return NULL; | |
9929 | } | |
9930 | ||
9931 | ||
9932 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9933 | PyObject *resultobj; | |
9934 | wxSpinButton *result; | |
9935 | char *kwnames[] = { | |
9936 | NULL | |
9937 | }; | |
9938 | ||
9939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
9940 | { | |
9941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9942 | result = (wxSpinButton *)new wxSpinButton(); | |
9943 | ||
9944 | wxPyEndAllowThreads(__tstate); | |
9945 | if (PyErr_Occurred()) SWIG_fail; | |
9946 | } | |
9947 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9948 | return resultobj; | |
9949 | fail: | |
9950 | return NULL; | |
9951 | } | |
9952 | ||
9953 | ||
9954 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9955 | PyObject *resultobj; | |
9956 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9957 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9958 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9959 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9960 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9961 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9962 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9963 | long arg6 = (long) wxSP_HORIZONTAL ; | |
9964 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
9965 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9966 | bool result; | |
9967 | wxPoint temp4 ; | |
9968 | wxSize temp5 ; | |
423f194a | 9969 | bool temp7 = False ; |
d14a1e28 RD |
9970 | PyObject * obj0 = 0 ; |
9971 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9972 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9973 | PyObject * obj3 = 0 ; |
9974 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9975 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9976 | PyObject * obj6 = 0 ; |
9977 | char *kwnames[] = { | |
9978 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9979 | }; | |
9980 | ||
8edf1c75 | 9981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
9982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9983 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
9984 | if (obj2) { |
9985 | { | |
9986 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9987 | if (PyErr_Occurred()) SWIG_fail; | |
9988 | } | |
9989 | } | |
d14a1e28 RD |
9990 | if (obj3) { |
9991 | { | |
9992 | arg4 = &temp4; | |
9993 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9994 | } | |
9995 | } | |
9996 | if (obj4) { | |
9997 | { | |
9998 | arg5 = &temp5; | |
9999 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10000 | } | |
10001 | } | |
8edf1c75 RD |
10002 | if (obj5) { |
10003 | { | |
10004 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
10005 | if (PyErr_Occurred()) SWIG_fail; | |
10006 | } | |
10007 | } | |
d14a1e28 RD |
10008 | if (obj6) { |
10009 | { | |
10010 | arg7 = wxString_in_helper(obj6); | |
10011 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 10012 | temp7 = True; |
d14a1e28 RD |
10013 | } |
10014 | } | |
10015 | { | |
10016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10017 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10018 | ||
10019 | wxPyEndAllowThreads(__tstate); | |
10020 | if (PyErr_Occurred()) SWIG_fail; | |
10021 | } | |
4e760a36 | 10022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10023 | { |
10024 | if (temp7) | |
10025 | delete arg7; | |
10026 | } | |
10027 | return resultobj; | |
10028 | fail: | |
10029 | { | |
10030 | if (temp7) | |
10031 | delete arg7; | |
10032 | } | |
10033 | return NULL; | |
10034 | } | |
10035 | ||
10036 | ||
10037 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10038 | PyObject *resultobj; | |
10039 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10040 | int result; | |
10041 | PyObject * obj0 = 0 ; | |
10042 | char *kwnames[] = { | |
10043 | (char *) "self", NULL | |
10044 | }; | |
10045 | ||
10046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
10047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10048 | { | |
10049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10050 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10051 | ||
10052 | wxPyEndAllowThreads(__tstate); | |
10053 | if (PyErr_Occurred()) SWIG_fail; | |
10054 | } | |
8edf1c75 | 10055 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10056 | return resultobj; |
10057 | fail: | |
10058 | return NULL; | |
10059 | } | |
10060 | ||
10061 | ||
10062 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10063 | PyObject *resultobj; | |
10064 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10065 | int result; | |
10066 | PyObject * obj0 = 0 ; | |
10067 | char *kwnames[] = { | |
10068 | (char *) "self", NULL | |
10069 | }; | |
10070 | ||
10071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
10072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10073 | { | |
10074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10075 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10076 | ||
10077 | wxPyEndAllowThreads(__tstate); | |
10078 | if (PyErr_Occurred()) SWIG_fail; | |
10079 | } | |
8edf1c75 | 10080 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10081 | return resultobj; |
10082 | fail: | |
10083 | return NULL; | |
10084 | } | |
10085 | ||
10086 | ||
10087 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10088 | PyObject *resultobj; | |
10089 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10090 | int result; | |
10091 | PyObject * obj0 = 0 ; | |
10092 | char *kwnames[] = { | |
10093 | (char *) "self", NULL | |
10094 | }; | |
10095 | ||
10096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
10097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10098 | { | |
10099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10100 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10101 | ||
10102 | wxPyEndAllowThreads(__tstate); | |
10103 | if (PyErr_Occurred()) SWIG_fail; | |
10104 | } | |
8edf1c75 | 10105 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10106 | return resultobj; |
10107 | fail: | |
10108 | return NULL; | |
10109 | } | |
10110 | ||
10111 | ||
10112 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10113 | PyObject *resultobj; | |
10114 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10115 | int arg2 ; | |
10116 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10117 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10118 | char *kwnames[] = { |
10119 | (char *) "self",(char *) "val", NULL | |
10120 | }; | |
10121 | ||
8edf1c75 | 10122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10124 | { |
10125 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10126 | if (PyErr_Occurred()) SWIG_fail; | |
10127 | } | |
d14a1e28 RD |
10128 | { |
10129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10130 | (arg1)->SetValue(arg2); | |
10131 | ||
10132 | wxPyEndAllowThreads(__tstate); | |
10133 | if (PyErr_Occurred()) SWIG_fail; | |
10134 | } | |
10135 | Py_INCREF(Py_None); resultobj = Py_None; | |
10136 | return resultobj; | |
10137 | fail: | |
10138 | return NULL; | |
10139 | } | |
10140 | ||
10141 | ||
10142 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10143 | PyObject *resultobj; | |
10144 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10145 | int arg2 ; | |
10146 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10147 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10148 | char *kwnames[] = { |
10149 | (char *) "self",(char *) "minVal", NULL | |
10150 | }; | |
10151 | ||
8edf1c75 | 10152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10154 | { |
10155 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10156 | if (PyErr_Occurred()) SWIG_fail; | |
10157 | } | |
d14a1e28 RD |
10158 | { |
10159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10160 | (arg1)->SetMin(arg2); | |
10161 | ||
10162 | wxPyEndAllowThreads(__tstate); | |
10163 | if (PyErr_Occurred()) SWIG_fail; | |
10164 | } | |
10165 | Py_INCREF(Py_None); resultobj = Py_None; | |
10166 | return resultobj; | |
10167 | fail: | |
10168 | return NULL; | |
10169 | } | |
10170 | ||
10171 | ||
10172 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10173 | PyObject *resultobj; | |
10174 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10175 | int arg2 ; | |
10176 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10177 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10178 | char *kwnames[] = { |
10179 | (char *) "self",(char *) "maxVal", NULL | |
10180 | }; | |
10181 | ||
8edf1c75 | 10182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10184 | { |
10185 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10186 | if (PyErr_Occurred()) SWIG_fail; | |
10187 | } | |
d14a1e28 RD |
10188 | { |
10189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10190 | (arg1)->SetMax(arg2); | |
10191 | ||
10192 | wxPyEndAllowThreads(__tstate); | |
10193 | if (PyErr_Occurred()) SWIG_fail; | |
10194 | } | |
10195 | Py_INCREF(Py_None); resultobj = Py_None; | |
10196 | return resultobj; | |
10197 | fail: | |
10198 | return NULL; | |
10199 | } | |
10200 | ||
10201 | ||
10202 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10203 | PyObject *resultobj; | |
10204 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10205 | int arg2 ; | |
10206 | int arg3 ; | |
10207 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10208 | PyObject * obj1 = 0 ; |
10209 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10210 | char *kwnames[] = { |
10211 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10212 | }; | |
10213 | ||
8edf1c75 | 10214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10216 | { | |
8edf1c75 RD |
10217 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
10218 | if (PyErr_Occurred()) SWIG_fail; | |
10219 | } | |
10220 | { | |
10221 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10222 | if (PyErr_Occurred()) SWIG_fail; | |
10223 | } | |
10224 | { | |
10225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10226 | (arg1)->SetRange(arg2,arg3); | |
d14a1e28 RD |
10227 | |
10228 | wxPyEndAllowThreads(__tstate); | |
10229 | if (PyErr_Occurred()) SWIG_fail; | |
10230 | } | |
10231 | Py_INCREF(Py_None); resultobj = Py_None; | |
10232 | return resultobj; | |
10233 | fail: | |
10234 | return NULL; | |
10235 | } | |
10236 | ||
10237 | ||
10238 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10239 | PyObject *resultobj; | |
10240 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10241 | bool result; | |
10242 | PyObject * obj0 = 0 ; | |
10243 | char *kwnames[] = { | |
10244 | (char *) "self", NULL | |
10245 | }; | |
10246 | ||
10247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
10248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10249 | { | |
10250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10251 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10252 | ||
10253 | wxPyEndAllowThreads(__tstate); | |
10254 | if (PyErr_Occurred()) SWIG_fail; | |
10255 | } | |
4e760a36 | 10256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10257 | return resultobj; |
10258 | fail: | |
10259 | return NULL; | |
10260 | } | |
10261 | ||
10262 | ||
10263 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
10264 | PyObject *obj; | |
10265 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10266 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
10267 | Py_INCREF(obj); | |
10268 | return Py_BuildValue((char *)""); | |
10269 | } | |
10270 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10271 | PyObject *resultobj; | |
10272 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10273 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10274 | wxString const &arg3_defvalue = wxPyEmptyString ; |
10275 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10276 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10277 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10278 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10279 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10280 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
10281 | int arg7 = (int) 0 ; | |
10282 | int arg8 = (int) 100 ; | |
10283 | int arg9 = (int) 0 ; | |
10284 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
10285 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10286 | wxSpinCtrl *result; | |
423f194a | 10287 | bool temp3 = False ; |
d14a1e28 RD |
10288 | wxPoint temp4 ; |
10289 | wxSize temp5 ; | |
423f194a | 10290 | bool temp10 = False ; |
d14a1e28 | 10291 | PyObject * obj0 = 0 ; |
8edf1c75 | 10292 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10293 | PyObject * obj2 = 0 ; |
10294 | PyObject * obj3 = 0 ; | |
10295 | PyObject * obj4 = 0 ; | |
8edf1c75 RD |
10296 | PyObject * obj5 = 0 ; |
10297 | PyObject * obj6 = 0 ; | |
10298 | PyObject * obj7 = 0 ; | |
10299 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10300 | PyObject * obj9 = 0 ; |
10301 | char *kwnames[] = { | |
10302 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10303 | }; | |
10304 | ||
8edf1c75 | 10305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 10306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10307 | if (obj1) { |
10308 | { | |
10309 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10310 | if (PyErr_Occurred()) SWIG_fail; | |
10311 | } | |
10312 | } | |
d14a1e28 RD |
10313 | if (obj2) { |
10314 | { | |
10315 | arg3 = wxString_in_helper(obj2); | |
10316 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10317 | temp3 = True; |
d14a1e28 RD |
10318 | } |
10319 | } | |
10320 | if (obj3) { | |
10321 | { | |
10322 | arg4 = &temp4; | |
10323 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10324 | } | |
10325 | } | |
10326 | if (obj4) { | |
10327 | { | |
10328 | arg5 = &temp5; | |
10329 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10330 | } | |
10331 | } | |
8edf1c75 RD |
10332 | if (obj5) { |
10333 | { | |
10334 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
10335 | if (PyErr_Occurred()) SWIG_fail; | |
10336 | } | |
10337 | } | |
10338 | if (obj6) { | |
10339 | { | |
10340 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
10341 | if (PyErr_Occurred()) SWIG_fail; | |
10342 | } | |
10343 | } | |
10344 | if (obj7) { | |
10345 | { | |
10346 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
10347 | if (PyErr_Occurred()) SWIG_fail; | |
10348 | } | |
10349 | } | |
10350 | if (obj8) { | |
10351 | { | |
10352 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
10353 | if (PyErr_Occurred()) SWIG_fail; | |
10354 | } | |
10355 | } | |
d14a1e28 RD |
10356 | if (obj9) { |
10357 | { | |
10358 | arg10 = wxString_in_helper(obj9); | |
10359 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10360 | temp10 = True; |
d14a1e28 RD |
10361 | } |
10362 | } | |
10363 | { | |
10364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10365 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
10366 | ||
10367 | wxPyEndAllowThreads(__tstate); | |
10368 | if (PyErr_Occurred()) SWIG_fail; | |
10369 | } | |
10370 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
10371 | { | |
10372 | if (temp3) | |
10373 | delete arg3; | |
10374 | } | |
10375 | { | |
10376 | if (temp10) | |
10377 | delete arg10; | |
10378 | } | |
10379 | return resultobj; | |
10380 | fail: | |
10381 | { | |
10382 | if (temp3) | |
10383 | delete arg3; | |
10384 | } | |
10385 | { | |
10386 | if (temp10) | |
10387 | delete arg10; | |
10388 | } | |
10389 | return NULL; | |
10390 | } | |
10391 | ||
10392 | ||
10393 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10394 | PyObject *resultobj; | |
10395 | wxSpinCtrl *result; | |
10396 | char *kwnames[] = { | |
10397 | NULL | |
10398 | }; | |
10399 | ||
10400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
10401 | { | |
10402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10403 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
10404 | ||
10405 | wxPyEndAllowThreads(__tstate); | |
10406 | if (PyErr_Occurred()) SWIG_fail; | |
10407 | } | |
10408 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
10409 | return resultobj; | |
10410 | fail: | |
10411 | return NULL; | |
10412 | } | |
10413 | ||
10414 | ||
10415 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10416 | PyObject *resultobj; | |
10417 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10418 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10419 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10420 | wxString const &arg4_defvalue = wxPyEmptyString ; |
10421 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
10422 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10423 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10424 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10425 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10426 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
10427 | int arg8 = (int) 0 ; | |
10428 | int arg9 = (int) 100 ; | |
10429 | int arg10 = (int) 0 ; | |
10430 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
10431 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10432 | bool result; | |
423f194a | 10433 | bool temp4 = False ; |
d14a1e28 RD |
10434 | wxPoint temp5 ; |
10435 | wxSize temp6 ; | |
423f194a | 10436 | bool temp11 = False ; |
d14a1e28 RD |
10437 | PyObject * obj0 = 0 ; |
10438 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10439 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10440 | PyObject * obj3 = 0 ; |
10441 | PyObject * obj4 = 0 ; | |
10442 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
10443 | PyObject * obj6 = 0 ; |
10444 | PyObject * obj7 = 0 ; | |
10445 | PyObject * obj8 = 0 ; | |
10446 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
10447 | PyObject * obj10 = 0 ; |
10448 | char *kwnames[] = { | |
10449 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10450 | }; | |
10451 | ||
8edf1c75 | 10452 | 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 |
10453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10454 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
10455 | if (obj2) { |
10456 | { | |
10457 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10458 | if (PyErr_Occurred()) SWIG_fail; | |
10459 | } | |
10460 | } | |
d14a1e28 RD |
10461 | if (obj3) { |
10462 | { | |
10463 | arg4 = wxString_in_helper(obj3); | |
10464 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10465 | temp4 = True; |
d14a1e28 RD |
10466 | } |
10467 | } | |
10468 | if (obj4) { | |
10469 | { | |
10470 | arg5 = &temp5; | |
10471 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10472 | } | |
10473 | } | |
10474 | if (obj5) { | |
10475 | { | |
10476 | arg6 = &temp6; | |
10477 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10478 | } | |
10479 | } | |
8edf1c75 RD |
10480 | if (obj6) { |
10481 | { | |
10482 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
10483 | if (PyErr_Occurred()) SWIG_fail; | |
10484 | } | |
10485 | } | |
10486 | if (obj7) { | |
10487 | { | |
10488 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
10489 | if (PyErr_Occurred()) SWIG_fail; | |
10490 | } | |
10491 | } | |
10492 | if (obj8) { | |
10493 | { | |
10494 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
10495 | if (PyErr_Occurred()) SWIG_fail; | |
10496 | } | |
10497 | } | |
10498 | if (obj9) { | |
10499 | { | |
10500 | arg10 = (int) SWIG_PyObj_AsInt(obj9); | |
10501 | if (PyErr_Occurred()) SWIG_fail; | |
10502 | } | |
10503 | } | |
d14a1e28 RD |
10504 | if (obj10) { |
10505 | { | |
10506 | arg11 = wxString_in_helper(obj10); | |
10507 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 10508 | temp11 = True; |
d14a1e28 RD |
10509 | } |
10510 | } | |
10511 | { | |
10512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10513 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
10514 | ||
10515 | wxPyEndAllowThreads(__tstate); | |
10516 | if (PyErr_Occurred()) SWIG_fail; | |
10517 | } | |
4e760a36 | 10518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10519 | { |
10520 | if (temp4) | |
10521 | delete arg4; | |
10522 | } | |
10523 | { | |
10524 | if (temp11) | |
10525 | delete arg11; | |
10526 | } | |
10527 | return resultobj; | |
10528 | fail: | |
10529 | { | |
10530 | if (temp4) | |
10531 | delete arg4; | |
10532 | } | |
10533 | { | |
10534 | if (temp11) | |
10535 | delete arg11; | |
10536 | } | |
10537 | return NULL; | |
10538 | } | |
10539 | ||
10540 | ||
10541 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10542 | PyObject *resultobj; | |
10543 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10544 | int result; | |
10545 | PyObject * obj0 = 0 ; | |
10546 | char *kwnames[] = { | |
10547 | (char *) "self", NULL | |
10548 | }; | |
10549 | ||
10550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
10551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10552 | { | |
10553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10554 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
10555 | ||
10556 | wxPyEndAllowThreads(__tstate); | |
10557 | if (PyErr_Occurred()) SWIG_fail; | |
10558 | } | |
8edf1c75 | 10559 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10560 | return resultobj; |
10561 | fail: | |
10562 | return NULL; | |
10563 | } | |
10564 | ||
10565 | ||
10566 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10567 | PyObject *resultobj; | |
10568 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10569 | int arg2 ; | |
10570 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10571 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10572 | char *kwnames[] = { |
10573 | (char *) "self",(char *) "value", NULL | |
10574 | }; | |
10575 | ||
8edf1c75 | 10576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10578 | { |
10579 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10580 | if (PyErr_Occurred()) SWIG_fail; | |
10581 | } | |
d14a1e28 RD |
10582 | { |
10583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10584 | (arg1)->SetValue(arg2); | |
10585 | ||
10586 | wxPyEndAllowThreads(__tstate); | |
10587 | if (PyErr_Occurred()) SWIG_fail; | |
10588 | } | |
10589 | Py_INCREF(Py_None); resultobj = Py_None; | |
10590 | return resultobj; | |
10591 | fail: | |
10592 | return NULL; | |
10593 | } | |
10594 | ||
10595 | ||
10596 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10597 | PyObject *resultobj; | |
10598 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10599 | wxString *arg2 = 0 ; | |
423f194a | 10600 | bool temp2 = False ; |
d14a1e28 RD |
10601 | PyObject * obj0 = 0 ; |
10602 | PyObject * obj1 = 0 ; | |
10603 | char *kwnames[] = { | |
10604 | (char *) "self",(char *) "text", NULL | |
10605 | }; | |
10606 | ||
10607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
10608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10609 | { | |
10610 | arg2 = wxString_in_helper(obj1); | |
10611 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10612 | temp2 = True; |
d14a1e28 RD |
10613 | } |
10614 | { | |
10615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10616 | (arg1)->SetValue((wxString const &)*arg2); | |
10617 | ||
10618 | wxPyEndAllowThreads(__tstate); | |
10619 | if (PyErr_Occurred()) SWIG_fail; | |
10620 | } | |
10621 | Py_INCREF(Py_None); resultobj = Py_None; | |
10622 | { | |
10623 | if (temp2) | |
10624 | delete arg2; | |
10625 | } | |
10626 | return resultobj; | |
10627 | fail: | |
10628 | { | |
10629 | if (temp2) | |
10630 | delete arg2; | |
10631 | } | |
10632 | return NULL; | |
10633 | } | |
10634 | ||
10635 | ||
10636 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10637 | PyObject *resultobj; | |
10638 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10639 | int arg2 ; | |
10640 | int arg3 ; | |
10641 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10642 | PyObject * obj1 = 0 ; |
10643 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10644 | char *kwnames[] = { |
10645 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10646 | }; | |
10647 | ||
8edf1c75 | 10648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10650 | { |
10651 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10652 | if (PyErr_Occurred()) SWIG_fail; | |
10653 | } | |
10654 | { | |
10655 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10656 | if (PyErr_Occurred()) SWIG_fail; | |
10657 | } | |
d14a1e28 RD |
10658 | { |
10659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10660 | (arg1)->SetRange(arg2,arg3); | |
10661 | ||
10662 | wxPyEndAllowThreads(__tstate); | |
10663 | if (PyErr_Occurred()) SWIG_fail; | |
10664 | } | |
10665 | Py_INCREF(Py_None); resultobj = Py_None; | |
10666 | return resultobj; | |
10667 | fail: | |
10668 | return NULL; | |
10669 | } | |
10670 | ||
10671 | ||
10672 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10673 | PyObject *resultobj; | |
10674 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10675 | int result; | |
10676 | PyObject * obj0 = 0 ; | |
10677 | char *kwnames[] = { | |
10678 | (char *) "self", NULL | |
10679 | }; | |
10680 | ||
10681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
10682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10683 | { | |
10684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10685 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
10686 | ||
10687 | wxPyEndAllowThreads(__tstate); | |
10688 | if (PyErr_Occurred()) SWIG_fail; | |
10689 | } | |
8edf1c75 | 10690 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10691 | return resultobj; |
10692 | fail: | |
10693 | return NULL; | |
10694 | } | |
10695 | ||
10696 | ||
10697 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10698 | PyObject *resultobj; | |
10699 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10700 | int result; | |
10701 | PyObject * obj0 = 0 ; | |
10702 | char *kwnames[] = { | |
10703 | (char *) "self", NULL | |
10704 | }; | |
10705 | ||
10706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
10707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10708 | { | |
10709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10710 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
10711 | ||
10712 | wxPyEndAllowThreads(__tstate); | |
10713 | if (PyErr_Occurred()) SWIG_fail; | |
10714 | } | |
8edf1c75 | 10715 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10716 | return resultobj; |
10717 | fail: | |
10718 | return NULL; | |
10719 | } | |
10720 | ||
10721 | ||
10722 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10723 | PyObject *resultobj; | |
10724 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10725 | long arg2 ; | |
10726 | long arg3 ; | |
10727 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10728 | PyObject * obj1 = 0 ; |
10729 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10730 | char *kwnames[] = { |
10731 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10732 | }; | |
10733 | ||
8edf1c75 | 10734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10736 | { |
10737 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
10738 | if (PyErr_Occurred()) SWIG_fail; | |
10739 | } | |
10740 | { | |
10741 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
10742 | if (PyErr_Occurred()) SWIG_fail; | |
10743 | } | |
d14a1e28 RD |
10744 | { |
10745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10746 | (arg1)->SetSelection(arg2,arg3); | |
10747 | ||
10748 | wxPyEndAllowThreads(__tstate); | |
10749 | if (PyErr_Occurred()) SWIG_fail; | |
10750 | } | |
10751 | Py_INCREF(Py_None); resultobj = Py_None; | |
10752 | return resultobj; | |
10753 | fail: | |
10754 | return NULL; | |
10755 | } | |
10756 | ||
10757 | ||
10758 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
10759 | PyObject *obj; | |
10760 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10761 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
10762 | Py_INCREF(obj); | |
10763 | return Py_BuildValue((char *)""); | |
10764 | } | |
eb9b6107 RD |
10765 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
10766 | PyObject *resultobj; | |
10767 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10768 | int arg2 = (int) 0 ; | |
10769 | wxSpinEvent *result; | |
8edf1c75 RD |
10770 | PyObject * obj0 = 0 ; |
10771 | PyObject * obj1 = 0 ; | |
eb9b6107 RD |
10772 | char *kwnames[] = { |
10773 | (char *) "commandType",(char *) "winid", NULL | |
10774 | }; | |
10775 | ||
8edf1c75 RD |
10776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
10777 | if (obj0) { | |
10778 | { | |
10779 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
10780 | if (PyErr_Occurred()) SWIG_fail; | |
10781 | } | |
10782 | } | |
10783 | if (obj1) { | |
10784 | { | |
10785 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10786 | if (PyErr_Occurred()) SWIG_fail; | |
10787 | } | |
10788 | } | |
eb9b6107 RD |
10789 | { |
10790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10791 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
10792 | ||
10793 | wxPyEndAllowThreads(__tstate); | |
10794 | if (PyErr_Occurred()) SWIG_fail; | |
10795 | } | |
10796 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinEvent, 1); | |
10797 | return resultobj; | |
10798 | fail: | |
10799 | return NULL; | |
10800 | } | |
10801 | ||
10802 | ||
10803 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10804 | PyObject *resultobj; | |
10805 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10806 | int result; | |
10807 | PyObject * obj0 = 0 ; | |
10808 | char *kwnames[] = { | |
10809 | (char *) "self", NULL | |
10810 | }; | |
10811 | ||
10812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10814 | { | |
10815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10816 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
10817 | ||
10818 | wxPyEndAllowThreads(__tstate); | |
10819 | if (PyErr_Occurred()) SWIG_fail; | |
10820 | } | |
8edf1c75 | 10821 | resultobj = SWIG_PyObj_FromInt((int)result); |
eb9b6107 RD |
10822 | return resultobj; |
10823 | fail: | |
10824 | return NULL; | |
10825 | } | |
10826 | ||
10827 | ||
10828 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10829 | PyObject *resultobj; | |
10830 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10831 | int arg2 ; | |
10832 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10833 | PyObject * obj1 = 0 ; |
eb9b6107 RD |
10834 | char *kwnames[] = { |
10835 | (char *) "self",(char *) "pos", NULL | |
10836 | }; | |
10837 | ||
8edf1c75 | 10838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
eb9b6107 | 10839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10840 | { |
10841 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10842 | if (PyErr_Occurred()) SWIG_fail; | |
10843 | } | |
eb9b6107 RD |
10844 | { |
10845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10846 | (arg1)->SetPosition(arg2); | |
10847 | ||
10848 | wxPyEndAllowThreads(__tstate); | |
10849 | if (PyErr_Occurred()) SWIG_fail; | |
10850 | } | |
10851 | Py_INCREF(Py_None); resultobj = Py_None; | |
10852 | return resultobj; | |
10853 | fail: | |
10854 | return NULL; | |
10855 | } | |
10856 | ||
10857 | ||
10858 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
10859 | PyObject *obj; | |
10860 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10861 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
10862 | Py_INCREF(obj); | |
10863 | return Py_BuildValue((char *)""); | |
10864 | } | |
8edf1c75 | 10865 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
d03fd34d RD |
10866 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
10867 | return 1; | |
10868 | } | |
10869 | ||
10870 | ||
10871 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
10872 | PyObject *pyobj; | |
10873 | ||
10874 | { | |
10875 | #if wxUSE_UNICODE | |
10876 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10877 | #else | |
10878 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10879 | #endif | |
10880 | } | |
10881 | return pyobj; | |
10882 | } | |
10883 | ||
10884 | ||
8edf1c75 | 10885 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
d03fd34d RD |
10886 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
10887 | return 1; | |
10888 | } | |
10889 | ||
10890 | ||
10891 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
10892 | PyObject *pyobj; | |
10893 | ||
10894 | { | |
10895 | #if wxUSE_UNICODE | |
10896 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10897 | #else | |
10898 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10899 | #endif | |
10900 | } | |
10901 | return pyobj; | |
10902 | } | |
10903 | ||
10904 | ||
d14a1e28 RD |
10905 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
10906 | PyObject *resultobj; | |
10907 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10908 | int arg2 ; |
d14a1e28 RD |
10909 | wxString *arg3 = 0 ; |
10910 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10911 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10912 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10913 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
10914 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
10915 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
10916 | int arg7 = (int) 0 ; | |
10917 | long arg8 = (long) wxRA_HORIZONTAL ; | |
10918 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
10919 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
10920 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
10921 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 10922 | wxRadioBox *result; |
423f194a | 10923 | bool temp3 = False ; |
d14a1e28 RD |
10924 | wxPoint temp4 ; |
10925 | wxSize temp5 ; | |
db914595 | 10926 | bool temp6 = False ; |
423f194a | 10927 | bool temp10 = False ; |
d14a1e28 | 10928 | PyObject * obj0 = 0 ; |
8edf1c75 | 10929 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10930 | PyObject * obj2 = 0 ; |
10931 | PyObject * obj3 = 0 ; | |
10932 | PyObject * obj4 = 0 ; | |
10933 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
10934 | PyObject * obj6 = 0 ; |
10935 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
10936 | PyObject * obj8 = 0 ; |
10937 | PyObject * obj9 = 0 ; | |
10938 | char *kwnames[] = { | |
8edf1c75 | 10939 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
10940 | }; |
10941 | ||
8edf1c75 | 10942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 10943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10944 | { |
10945 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10946 | if (PyErr_Occurred()) SWIG_fail; | |
10947 | } | |
d14a1e28 RD |
10948 | { |
10949 | arg3 = wxString_in_helper(obj2); | |
10950 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10951 | temp3 = True; |
d14a1e28 RD |
10952 | } |
10953 | if (obj3) { | |
10954 | { | |
10955 | arg4 = &temp4; | |
10956 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10957 | } | |
10958 | } | |
10959 | if (obj4) { | |
10960 | { | |
10961 | arg5 = &temp5; | |
10962 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10963 | } | |
10964 | } | |
10965 | if (obj5) { | |
10966 | { | |
4e760a36 RD |
10967 | if (! PySequence_Check(obj5)) { |
10968 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10969 | SWIG_fail; | |
10970 | } | |
10971 | arg6 = new wxArrayString; | |
db914595 | 10972 | temp6 = True; |
4e760a36 RD |
10973 | int i, len=PySequence_Length(obj5); |
10974 | for (i=0; i<len; i++) { | |
10975 | PyObject* item = PySequence_GetItem(obj5, i); | |
10976 | #if wxUSE_UNICODE | |
10977 | PyObject* str = PyObject_Unicode(item); | |
10978 | #else | |
10979 | PyObject* str = PyObject_Str(item); | |
10980 | #endif | |
10981 | arg6->Add(Py2wxString(str)); | |
10982 | Py_DECREF(item); | |
10983 | Py_DECREF(str); | |
10984 | } | |
d14a1e28 RD |
10985 | } |
10986 | } | |
8edf1c75 RD |
10987 | if (obj6) { |
10988 | { | |
4e760a36 | 10989 | arg7 = (int) SWIG_PyObj_AsInt(obj6); |
8edf1c75 RD |
10990 | if (PyErr_Occurred()) SWIG_fail; |
10991 | } | |
10992 | } | |
10993 | if (obj7) { | |
10994 | { | |
4e760a36 | 10995 | arg8 = (long) SWIG_PyObj_AsLong(obj7); |
8edf1c75 RD |
10996 | if (PyErr_Occurred()) SWIG_fail; |
10997 | } | |
10998 | } | |
d14a1e28 | 10999 | if (obj8) { |
4e760a36 RD |
11000 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11001 | if (arg9 == NULL) { | |
d14a1e28 RD |
11002 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
11003 | } | |
11004 | } | |
11005 | if (obj9) { | |
11006 | { | |
4e760a36 RD |
11007 | arg10 = wxString_in_helper(obj9); |
11008 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 11009 | temp10 = True; |
d14a1e28 RD |
11010 | } |
11011 | } | |
11012 | { | |
11013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 11014 | 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 |
11015 | |
11016 | wxPyEndAllowThreads(__tstate); | |
11017 | if (PyErr_Occurred()) SWIG_fail; | |
11018 | } | |
11019 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
11020 | { | |
11021 | if (temp3) | |
11022 | delete arg3; | |
11023 | } | |
11024 | { | |
db914595 | 11025 | if (temp6) delete arg6; |
d14a1e28 RD |
11026 | } |
11027 | { | |
11028 | if (temp10) | |
4e760a36 | 11029 | delete arg10; |
d14a1e28 RD |
11030 | } |
11031 | return resultobj; | |
11032 | fail: | |
11033 | { | |
11034 | if (temp3) | |
11035 | delete arg3; | |
11036 | } | |
11037 | { | |
db914595 | 11038 | if (temp6) delete arg6; |
d14a1e28 RD |
11039 | } |
11040 | { | |
11041 | if (temp10) | |
4e760a36 | 11042 | delete arg10; |
d14a1e28 RD |
11043 | } |
11044 | return NULL; | |
11045 | } | |
11046 | ||
11047 | ||
11048 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11049 | PyObject *resultobj; | |
11050 | wxRadioBox *result; | |
11051 | char *kwnames[] = { | |
11052 | NULL | |
11053 | }; | |
11054 | ||
11055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11056 | { | |
11057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11058 | result = (wxRadioBox *)new wxRadioBox(); | |
11059 | ||
11060 | wxPyEndAllowThreads(__tstate); | |
11061 | if (PyErr_Occurred()) SWIG_fail; | |
11062 | } | |
11063 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
11064 | return resultobj; | |
11065 | fail: | |
11066 | return NULL; | |
11067 | } | |
11068 | ||
11069 | ||
11070 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11071 | PyObject *resultobj; | |
11072 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11073 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11074 | int arg3 ; |
d14a1e28 RD |
11075 | wxString *arg4 = 0 ; |
11076 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11077 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11078 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11079 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4e760a36 RD |
11080 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
11081 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11082 | int arg8 = (int) 0 ; | |
11083 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11084 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11085 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11086 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11087 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 11088 | bool result; |
423f194a | 11089 | bool temp4 = False ; |
d14a1e28 RD |
11090 | wxPoint temp5 ; |
11091 | wxSize temp6 ; | |
db914595 | 11092 | bool temp7 = False ; |
423f194a | 11093 | bool temp11 = False ; |
d14a1e28 RD |
11094 | PyObject * obj0 = 0 ; |
11095 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11096 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11097 | PyObject * obj3 = 0 ; |
11098 | PyObject * obj4 = 0 ; | |
11099 | PyObject * obj5 = 0 ; | |
11100 | PyObject * obj6 = 0 ; | |
8edf1c75 RD |
11101 | PyObject * obj7 = 0 ; |
11102 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11103 | PyObject * obj9 = 0 ; |
11104 | PyObject * obj10 = 0 ; | |
11105 | char *kwnames[] = { | |
8edf1c75 | 11106 | (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 |
11107 | }; |
11108 | ||
8edf1c75 | 11109 | 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 |
11110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11111 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
11112 | { |
11113 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11114 | if (PyErr_Occurred()) SWIG_fail; | |
11115 | } | |
d14a1e28 RD |
11116 | { |
11117 | arg4 = wxString_in_helper(obj3); | |
11118 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11119 | temp4 = True; |
d14a1e28 RD |
11120 | } |
11121 | if (obj4) { | |
11122 | { | |
11123 | arg5 = &temp5; | |
11124 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11125 | } | |
11126 | } | |
11127 | if (obj5) { | |
11128 | { | |
11129 | arg6 = &temp6; | |
11130 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11131 | } | |
11132 | } | |
11133 | if (obj6) { | |
11134 | { | |
4e760a36 RD |
11135 | if (! PySequence_Check(obj6)) { |
11136 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11137 | SWIG_fail; | |
11138 | } | |
11139 | arg7 = new wxArrayString; | |
db914595 | 11140 | temp7 = True; |
4e760a36 RD |
11141 | int i, len=PySequence_Length(obj6); |
11142 | for (i=0; i<len; i++) { | |
11143 | PyObject* item = PySequence_GetItem(obj6, i); | |
11144 | #if wxUSE_UNICODE | |
11145 | PyObject* str = PyObject_Unicode(item); | |
11146 | #else | |
11147 | PyObject* str = PyObject_Str(item); | |
11148 | #endif | |
11149 | arg7->Add(Py2wxString(str)); | |
11150 | Py_DECREF(item); | |
11151 | Py_DECREF(str); | |
11152 | } | |
d14a1e28 RD |
11153 | } |
11154 | } | |
8edf1c75 RD |
11155 | if (obj7) { |
11156 | { | |
4e760a36 | 11157 | arg8 = (int) SWIG_PyObj_AsInt(obj7); |
8edf1c75 RD |
11158 | if (PyErr_Occurred()) SWIG_fail; |
11159 | } | |
11160 | } | |
11161 | if (obj8) { | |
11162 | { | |
4e760a36 | 11163 | arg9 = (long) SWIG_PyObj_AsLong(obj8); |
8edf1c75 RD |
11164 | if (PyErr_Occurred()) SWIG_fail; |
11165 | } | |
11166 | } | |
d14a1e28 | 11167 | if (obj9) { |
4e760a36 RD |
11168 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11169 | if (arg10 == NULL) { | |
d14a1e28 RD |
11170 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
11171 | } | |
11172 | } | |
11173 | if (obj10) { | |
11174 | { | |
4e760a36 RD |
11175 | arg11 = wxString_in_helper(obj10); |
11176 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 11177 | temp11 = True; |
d14a1e28 RD |
11178 | } |
11179 | } | |
11180 | { | |
11181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 11182 | 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 |
11183 | |
11184 | wxPyEndAllowThreads(__tstate); | |
11185 | if (PyErr_Occurred()) SWIG_fail; | |
11186 | } | |
4e760a36 | 11187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11188 | { |
11189 | if (temp4) | |
11190 | delete arg4; | |
11191 | } | |
11192 | { | |
db914595 | 11193 | if (temp7) delete arg7; |
d14a1e28 RD |
11194 | } |
11195 | { | |
11196 | if (temp11) | |
4e760a36 | 11197 | delete arg11; |
d14a1e28 RD |
11198 | } |
11199 | return resultobj; | |
11200 | fail: | |
11201 | { | |
11202 | if (temp4) | |
11203 | delete arg4; | |
11204 | } | |
11205 | { | |
db914595 | 11206 | if (temp7) delete arg7; |
d14a1e28 RD |
11207 | } |
11208 | { | |
11209 | if (temp11) | |
4e760a36 | 11210 | delete arg11; |
d14a1e28 RD |
11211 | } |
11212 | return NULL; | |
11213 | } | |
11214 | ||
11215 | ||
11216 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11217 | PyObject *resultobj; | |
11218 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11219 | int arg2 ; | |
11220 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11221 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11222 | char *kwnames[] = { |
11223 | (char *) "self",(char *) "n", NULL | |
11224 | }; | |
11225 | ||
8edf1c75 | 11226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11228 | { |
11229 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11230 | if (PyErr_Occurred()) SWIG_fail; | |
11231 | } | |
d14a1e28 RD |
11232 | { |
11233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11234 | (arg1)->SetSelection(arg2); | |
11235 | ||
11236 | wxPyEndAllowThreads(__tstate); | |
11237 | if (PyErr_Occurred()) SWIG_fail; | |
11238 | } | |
11239 | Py_INCREF(Py_None); resultobj = Py_None; | |
11240 | return resultobj; | |
11241 | fail: | |
11242 | return NULL; | |
11243 | } | |
11244 | ||
11245 | ||
11246 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11247 | PyObject *resultobj; | |
11248 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11249 | int result; | |
11250 | PyObject * obj0 = 0 ; | |
11251 | char *kwnames[] = { | |
11252 | (char *) "self", NULL | |
11253 | }; | |
11254 | ||
11255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
11256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11257 | { | |
11258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11259 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
11260 | ||
11261 | wxPyEndAllowThreads(__tstate); | |
11262 | if (PyErr_Occurred()) SWIG_fail; | |
11263 | } | |
8edf1c75 | 11264 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11265 | return resultobj; |
11266 | fail: | |
11267 | return NULL; | |
11268 | } | |
11269 | ||
11270 | ||
11271 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11272 | PyObject *resultobj; | |
11273 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11274 | wxString result; | |
11275 | PyObject * obj0 = 0 ; | |
11276 | char *kwnames[] = { | |
11277 | (char *) "self", NULL | |
11278 | }; | |
11279 | ||
11280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
11281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11282 | { | |
11283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11284 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
11285 | ||
11286 | wxPyEndAllowThreads(__tstate); | |
11287 | if (PyErr_Occurred()) SWIG_fail; | |
11288 | } | |
11289 | { | |
11290 | #if wxUSE_UNICODE | |
11291 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11292 | #else | |
11293 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11294 | #endif | |
11295 | } | |
11296 | return resultobj; | |
11297 | fail: | |
11298 | return NULL; | |
11299 | } | |
11300 | ||
11301 | ||
11302 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11303 | PyObject *resultobj; | |
11304 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11305 | wxString *arg2 = 0 ; | |
11306 | bool result; | |
423f194a | 11307 | bool temp2 = False ; |
d14a1e28 RD |
11308 | PyObject * obj0 = 0 ; |
11309 | PyObject * obj1 = 0 ; | |
11310 | char *kwnames[] = { | |
11311 | (char *) "self",(char *) "s", NULL | |
11312 | }; | |
11313 | ||
11314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
11315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11316 | { | |
11317 | arg2 = wxString_in_helper(obj1); | |
11318 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11319 | temp2 = True; |
d14a1e28 RD |
11320 | } |
11321 | { | |
11322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11323 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
11324 | ||
11325 | wxPyEndAllowThreads(__tstate); | |
11326 | if (PyErr_Occurred()) SWIG_fail; | |
11327 | } | |
4e760a36 | 11328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11329 | { |
11330 | if (temp2) | |
11331 | delete arg2; | |
11332 | } | |
11333 | return resultobj; | |
11334 | fail: | |
11335 | { | |
11336 | if (temp2) | |
11337 | delete arg2; | |
11338 | } | |
11339 | return NULL; | |
11340 | } | |
11341 | ||
11342 | ||
11343 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11344 | PyObject *resultobj; | |
11345 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11346 | int result; | |
11347 | PyObject * obj0 = 0 ; | |
11348 | char *kwnames[] = { | |
11349 | (char *) "self", NULL | |
11350 | }; | |
11351 | ||
11352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
11353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11354 | { | |
11355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11356 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
11357 | ||
11358 | wxPyEndAllowThreads(__tstate); | |
11359 | if (PyErr_Occurred()) SWIG_fail; | |
11360 | } | |
8edf1c75 | 11361 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11362 | return resultobj; |
11363 | fail: | |
11364 | return NULL; | |
11365 | } | |
11366 | ||
11367 | ||
11368 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11369 | PyObject *resultobj; | |
11370 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11371 | wxString *arg2 = 0 ; | |
11372 | int result; | |
423f194a | 11373 | bool temp2 = False ; |
d14a1e28 RD |
11374 | PyObject * obj0 = 0 ; |
11375 | PyObject * obj1 = 0 ; | |
11376 | char *kwnames[] = { | |
11377 | (char *) "self",(char *) "s", NULL | |
11378 | }; | |
11379 | ||
11380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
11381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11382 | { | |
11383 | arg2 = wxString_in_helper(obj1); | |
11384 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11385 | temp2 = True; |
d14a1e28 RD |
11386 | } |
11387 | { | |
11388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11389 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
11390 | ||
11391 | wxPyEndAllowThreads(__tstate); | |
11392 | if (PyErr_Occurred()) SWIG_fail; | |
11393 | } | |
8edf1c75 | 11394 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11395 | { |
11396 | if (temp2) | |
11397 | delete arg2; | |
11398 | } | |
11399 | return resultobj; | |
11400 | fail: | |
11401 | { | |
11402 | if (temp2) | |
11403 | delete arg2; | |
11404 | } | |
11405 | return NULL; | |
11406 | } | |
11407 | ||
11408 | ||
11409 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11410 | PyObject *resultobj; | |
11411 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11412 | int arg2 ; | |
11413 | wxString result; | |
11414 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11415 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11416 | char *kwnames[] = { |
11417 | (char *) "self",(char *) "n", NULL | |
11418 | }; | |
11419 | ||
8edf1c75 | 11420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11422 | { |
11423 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11424 | if (PyErr_Occurred()) SWIG_fail; | |
11425 | } | |
d14a1e28 RD |
11426 | { |
11427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11428 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
11429 | ||
11430 | wxPyEndAllowThreads(__tstate); | |
11431 | if (PyErr_Occurred()) SWIG_fail; | |
11432 | } | |
11433 | { | |
11434 | #if wxUSE_UNICODE | |
11435 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11436 | #else | |
11437 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11438 | #endif | |
11439 | } | |
11440 | return resultobj; | |
11441 | fail: | |
11442 | return NULL; | |
11443 | } | |
11444 | ||
11445 | ||
11446 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11447 | PyObject *resultobj; | |
11448 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11449 | int arg2 ; | |
11450 | wxString *arg3 = 0 ; | |
423f194a | 11451 | bool temp3 = False ; |
d14a1e28 | 11452 | PyObject * obj0 = 0 ; |
8edf1c75 | 11453 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11454 | PyObject * obj2 = 0 ; |
11455 | char *kwnames[] = { | |
11456 | (char *) "self",(char *) "n",(char *) "label", NULL | |
11457 | }; | |
11458 | ||
8edf1c75 | 11459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11461 | { |
11462 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11463 | if (PyErr_Occurred()) SWIG_fail; | |
11464 | } | |
d14a1e28 RD |
11465 | { |
11466 | arg3 = wxString_in_helper(obj2); | |
11467 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11468 | temp3 = True; |
d14a1e28 RD |
11469 | } |
11470 | { | |
11471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11472 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
11473 | ||
11474 | wxPyEndAllowThreads(__tstate); | |
11475 | if (PyErr_Occurred()) SWIG_fail; | |
11476 | } | |
11477 | Py_INCREF(Py_None); resultobj = Py_None; | |
11478 | { | |
11479 | if (temp3) | |
11480 | delete arg3; | |
11481 | } | |
11482 | return resultobj; | |
11483 | fail: | |
11484 | { | |
11485 | if (temp3) | |
11486 | delete arg3; | |
11487 | } | |
11488 | return NULL; | |
11489 | } | |
11490 | ||
11491 | ||
11492 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11493 | PyObject *resultobj; | |
11494 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11495 | int arg2 ; | |
423f194a | 11496 | bool arg3 = (bool) True ; |
d14a1e28 | 11497 | PyObject * obj0 = 0 ; |
8edf1c75 | 11498 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11499 | PyObject * obj2 = 0 ; |
11500 | char *kwnames[] = { | |
11501 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
11502 | }; | |
11503 | ||
8edf1c75 | 11504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) 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 | } | |
d14a1e28 | 11510 | if (obj2) { |
83448d71 | 11511 | { |
8edf1c75 | 11512 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
11513 | if (PyErr_Occurred()) SWIG_fail; |
11514 | } | |
d14a1e28 RD |
11515 | } |
11516 | { | |
11517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11518 | (arg1)->Enable(arg2,arg3); | |
11519 | ||
11520 | wxPyEndAllowThreads(__tstate); | |
11521 | if (PyErr_Occurred()) SWIG_fail; | |
11522 | } | |
11523 | Py_INCREF(Py_None); resultobj = Py_None; | |
11524 | return resultobj; | |
11525 | fail: | |
11526 | return NULL; | |
11527 | } | |
11528 | ||
11529 | ||
11530 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11531 | PyObject *resultobj; | |
11532 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11533 | int arg2 ; | |
423f194a | 11534 | bool arg3 = (bool) True ; |
d14a1e28 | 11535 | PyObject * obj0 = 0 ; |
8edf1c75 | 11536 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11537 | PyObject * obj2 = 0 ; |
11538 | char *kwnames[] = { | |
11539 | (char *) "self",(char *) "n",(char *) "show", NULL | |
11540 | }; | |
11541 | ||
8edf1c75 | 11542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11544 | { |
11545 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11546 | if (PyErr_Occurred()) SWIG_fail; | |
11547 | } | |
d14a1e28 | 11548 | if (obj2) { |
83448d71 | 11549 | { |
8edf1c75 | 11550 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
11551 | if (PyErr_Occurred()) SWIG_fail; |
11552 | } | |
d14a1e28 RD |
11553 | } |
11554 | { | |
11555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11556 | (arg1)->Show(arg2,arg3); | |
11557 | ||
11558 | wxPyEndAllowThreads(__tstate); | |
11559 | if (PyErr_Occurred()) SWIG_fail; | |
11560 | } | |
11561 | Py_INCREF(Py_None); resultobj = Py_None; | |
11562 | return resultobj; | |
11563 | fail: | |
11564 | return NULL; | |
11565 | } | |
11566 | ||
11567 | ||
11568 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11569 | PyObject *resultobj; | |
11570 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11571 | int result; | |
11572 | PyObject * obj0 = 0 ; | |
11573 | char *kwnames[] = { | |
11574 | (char *) "self", NULL | |
11575 | }; | |
11576 | ||
11577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
11578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11579 | { | |
11580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11581 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
11582 | ||
11583 | wxPyEndAllowThreads(__tstate); | |
11584 | if (PyErr_Occurred()) SWIG_fail; | |
11585 | } | |
8edf1c75 | 11586 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11587 | return resultobj; |
11588 | fail: | |
11589 | return NULL; | |
11590 | } | |
11591 | ||
11592 | ||
11593 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11594 | PyObject *resultobj; | |
11595 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11596 | int result; | |
11597 | PyObject * obj0 = 0 ; | |
11598 | char *kwnames[] = { | |
11599 | (char *) "self", NULL | |
11600 | }; | |
11601 | ||
11602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
11603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11604 | { | |
11605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11606 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
11607 | ||
11608 | wxPyEndAllowThreads(__tstate); | |
11609 | if (PyErr_Occurred()) SWIG_fail; | |
11610 | } | |
8edf1c75 | 11611 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11612 | return resultobj; |
11613 | fail: | |
11614 | return NULL; | |
11615 | } | |
11616 | ||
11617 | ||
11618 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11619 | PyObject *resultobj; | |
11620 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11621 | int arg2 ; | |
11622 | int arg3 ; | |
11623 | long arg4 ; | |
11624 | int result; | |
11625 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11626 | PyObject * obj1 = 0 ; |
11627 | PyObject * obj2 = 0 ; | |
11628 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11629 | char *kwnames[] = { |
11630 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
11631 | }; | |
11632 | ||
8edf1c75 | 11633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 11634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11635 | { |
11636 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11637 | if (PyErr_Occurred()) SWIG_fail; | |
11638 | } | |
11639 | { | |
11640 | arg3 = (wxDirection) SWIG_PyObj_AsInt(obj2); | |
11641 | if (PyErr_Occurred()) SWIG_fail; | |
11642 | } | |
11643 | { | |
11644 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
11645 | if (PyErr_Occurred()) SWIG_fail; | |
11646 | } | |
d14a1e28 RD |
11647 | { |
11648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11649 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
11650 | ||
11651 | wxPyEndAllowThreads(__tstate); | |
11652 | if (PyErr_Occurred()) SWIG_fail; | |
11653 | } | |
8edf1c75 | 11654 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11655 | return resultobj; |
11656 | fail: | |
11657 | return NULL; | |
11658 | } | |
11659 | ||
11660 | ||
11661 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
11662 | PyObject *obj; | |
11663 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11664 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
11665 | Py_INCREF(obj); | |
11666 | return Py_BuildValue((char *)""); | |
11667 | } | |
11668 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11669 | PyObject *resultobj; | |
11670 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11671 | int arg2 ; |
d14a1e28 RD |
11672 | wxString *arg3 = 0 ; |
11673 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11674 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11675 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11676 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11677 | long arg6 = (long) 0 ; | |
11678 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11679 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11680 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
11681 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11682 | wxRadioButton *result; | |
423f194a | 11683 | bool temp3 = False ; |
d14a1e28 RD |
11684 | wxPoint temp4 ; |
11685 | wxSize temp5 ; | |
423f194a | 11686 | bool temp8 = False ; |
d14a1e28 | 11687 | PyObject * obj0 = 0 ; |
8edf1c75 | 11688 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11689 | PyObject * obj2 = 0 ; |
11690 | PyObject * obj3 = 0 ; | |
11691 | PyObject * obj4 = 0 ; | |
8edf1c75 | 11692 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11693 | PyObject * obj6 = 0 ; |
11694 | PyObject * obj7 = 0 ; | |
11695 | char *kwnames[] = { | |
11696 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11697 | }; | |
11698 | ||
8edf1c75 | 11699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 11700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11701 | { |
11702 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11703 | if (PyErr_Occurred()) SWIG_fail; | |
11704 | } | |
d14a1e28 RD |
11705 | { |
11706 | arg3 = wxString_in_helper(obj2); | |
11707 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11708 | temp3 = True; |
d14a1e28 RD |
11709 | } |
11710 | if (obj3) { | |
11711 | { | |
11712 | arg4 = &temp4; | |
11713 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11714 | } | |
11715 | } | |
11716 | if (obj4) { | |
11717 | { | |
11718 | arg5 = &temp5; | |
11719 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11720 | } | |
11721 | } | |
8edf1c75 RD |
11722 | if (obj5) { |
11723 | { | |
11724 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
11725 | if (PyErr_Occurred()) SWIG_fail; | |
11726 | } | |
11727 | } | |
d14a1e28 RD |
11728 | if (obj6) { |
11729 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11730 | if (arg7 == NULL) { | |
11731 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11732 | } | |
11733 | } | |
11734 | if (obj7) { | |
11735 | { | |
11736 | arg8 = wxString_in_helper(obj7); | |
11737 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 11738 | temp8 = True; |
d14a1e28 RD |
11739 | } |
11740 | } | |
11741 | { | |
11742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11743 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11744 | ||
11745 | wxPyEndAllowThreads(__tstate); | |
11746 | if (PyErr_Occurred()) SWIG_fail; | |
11747 | } | |
11748 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11749 | { | |
11750 | if (temp3) | |
11751 | delete arg3; | |
11752 | } | |
11753 | { | |
11754 | if (temp8) | |
11755 | delete arg8; | |
11756 | } | |
11757 | return resultobj; | |
11758 | fail: | |
11759 | { | |
11760 | if (temp3) | |
11761 | delete arg3; | |
11762 | } | |
11763 | { | |
11764 | if (temp8) | |
11765 | delete arg8; | |
11766 | } | |
11767 | return NULL; | |
11768 | } | |
11769 | ||
11770 | ||
11771 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11772 | PyObject *resultobj; | |
11773 | wxRadioButton *result; | |
11774 | char *kwnames[] = { | |
11775 | NULL | |
11776 | }; | |
11777 | ||
11778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
11779 | { | |
11780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11781 | result = (wxRadioButton *)new wxRadioButton(); | |
11782 | ||
11783 | wxPyEndAllowThreads(__tstate); | |
11784 | if (PyErr_Occurred()) SWIG_fail; | |
11785 | } | |
11786 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11787 | return resultobj; | |
11788 | fail: | |
11789 | return NULL; | |
11790 | } | |
11791 | ||
11792 | ||
11793 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11794 | PyObject *resultobj; | |
11795 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11796 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11797 | int arg3 ; |
d14a1e28 RD |
11798 | wxString *arg4 = 0 ; |
11799 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11800 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11801 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11802 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11803 | long arg7 = (long) 0 ; | |
11804 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11805 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11806 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
11807 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11808 | bool result; | |
423f194a | 11809 | bool temp4 = False ; |
d14a1e28 RD |
11810 | wxPoint temp5 ; |
11811 | wxSize temp6 ; | |
423f194a | 11812 | bool temp9 = False ; |
d14a1e28 RD |
11813 | PyObject * obj0 = 0 ; |
11814 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11815 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11816 | PyObject * obj3 = 0 ; |
11817 | PyObject * obj4 = 0 ; | |
11818 | PyObject * obj5 = 0 ; | |
8edf1c75 | 11819 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
11820 | PyObject * obj7 = 0 ; |
11821 | PyObject * obj8 = 0 ; | |
11822 | char *kwnames[] = { | |
11823 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11824 | }; | |
11825 | ||
8edf1c75 | 11826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
11827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11828 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
11829 | { |
11830 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11831 | if (PyErr_Occurred()) SWIG_fail; | |
11832 | } | |
d14a1e28 RD |
11833 | { |
11834 | arg4 = wxString_in_helper(obj3); | |
11835 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11836 | temp4 = True; |
d14a1e28 RD |
11837 | } |
11838 | if (obj4) { | |
11839 | { | |
11840 | arg5 = &temp5; | |
11841 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11842 | } | |
11843 | } | |
11844 | if (obj5) { | |
11845 | { | |
11846 | arg6 = &temp6; | |
11847 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11848 | } | |
11849 | } | |
8edf1c75 RD |
11850 | if (obj6) { |
11851 | { | |
11852 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
11853 | if (PyErr_Occurred()) SWIG_fail; | |
11854 | } | |
11855 | } | |
d14a1e28 RD |
11856 | if (obj7) { |
11857 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11858 | if (arg8 == NULL) { | |
11859 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11860 | } | |
11861 | } | |
11862 | if (obj8) { | |
11863 | { | |
11864 | arg9 = wxString_in_helper(obj8); | |
11865 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 11866 | temp9 = True; |
d14a1e28 RD |
11867 | } |
11868 | } | |
11869 | { | |
11870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11871 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11872 | ||
11873 | wxPyEndAllowThreads(__tstate); | |
11874 | if (PyErr_Occurred()) SWIG_fail; | |
11875 | } | |
4e760a36 | 11876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11877 | { |
11878 | if (temp4) | |
11879 | delete arg4; | |
11880 | } | |
11881 | { | |
11882 | if (temp9) | |
11883 | delete arg9; | |
11884 | } | |
11885 | return resultobj; | |
11886 | fail: | |
11887 | { | |
11888 | if (temp4) | |
11889 | delete arg4; | |
11890 | } | |
11891 | { | |
11892 | if (temp9) | |
11893 | delete arg9; | |
11894 | } | |
11895 | return NULL; | |
11896 | } | |
11897 | ||
11898 | ||
11899 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11900 | PyObject *resultobj; | |
11901 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11902 | bool result; | |
11903 | PyObject * obj0 = 0 ; | |
11904 | char *kwnames[] = { | |
11905 | (char *) "self", NULL | |
11906 | }; | |
11907 | ||
11908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
11909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11910 | { | |
11911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11912 | result = (bool)(arg1)->GetValue(); | |
11913 | ||
11914 | wxPyEndAllowThreads(__tstate); | |
11915 | if (PyErr_Occurred()) SWIG_fail; | |
11916 | } | |
4e760a36 | 11917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11918 | return resultobj; |
11919 | fail: | |
11920 | return NULL; | |
11921 | } | |
11922 | ||
11923 | ||
11924 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11925 | PyObject *resultobj; | |
11926 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11927 | bool arg2 ; | |
11928 | PyObject * obj0 = 0 ; | |
11929 | PyObject * obj1 = 0 ; | |
11930 | char *kwnames[] = { | |
11931 | (char *) "self",(char *) "value", NULL | |
11932 | }; | |
11933 | ||
11934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 11936 | { |
8edf1c75 | 11937 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
11938 | if (PyErr_Occurred()) SWIG_fail; |
11939 | } | |
d14a1e28 RD |
11940 | { |
11941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11942 | (arg1)->SetValue(arg2); | |
11943 | ||
11944 | wxPyEndAllowThreads(__tstate); | |
11945 | if (PyErr_Occurred()) SWIG_fail; | |
11946 | } | |
11947 | Py_INCREF(Py_None); resultobj = Py_None; | |
11948 | return resultobj; | |
11949 | fail: | |
11950 | return NULL; | |
11951 | } | |
11952 | ||
11953 | ||
11954 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
11955 | PyObject *obj; | |
11956 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11957 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
11958 | Py_INCREF(obj); | |
11959 | return Py_BuildValue((char *)""); | |
11960 | } | |
8edf1c75 | 11961 | static int _wrap_SliderNameStr_set(PyObject *) { |
d03fd34d RD |
11962 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
11963 | return 1; | |
11964 | } | |
11965 | ||
11966 | ||
11967 | static PyObject *_wrap_SliderNameStr_get() { | |
11968 | PyObject *pyobj; | |
11969 | ||
11970 | { | |
11971 | #if wxUSE_UNICODE | |
11972 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11973 | #else | |
11974 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11975 | #endif | |
11976 | } | |
11977 | return pyobj; | |
11978 | } | |
11979 | ||
11980 | ||
d14a1e28 RD |
11981 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
11982 | PyObject *resultobj; | |
11983 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11984 | int arg2 ; |
d14a1e28 RD |
11985 | int arg3 ; |
11986 | int arg4 ; | |
11987 | int arg5 ; | |
11988 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
11989 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
11990 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
11991 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
11992 | long arg8 = (long) wxSL_HORIZONTAL ; | |
11993 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11994 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11995 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
11996 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11997 | wxSlider *result; | |
11998 | wxPoint temp6 ; | |
11999 | wxSize temp7 ; | |
423f194a | 12000 | bool temp10 = False ; |
d14a1e28 | 12001 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12002 | PyObject * obj1 = 0 ; |
12003 | PyObject * obj2 = 0 ; | |
12004 | PyObject * obj3 = 0 ; | |
12005 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12006 | PyObject * obj5 = 0 ; |
12007 | PyObject * obj6 = 0 ; | |
8edf1c75 | 12008 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
12009 | PyObject * obj8 = 0 ; |
12010 | PyObject * obj9 = 0 ; | |
12011 | char *kwnames[] = { | |
8edf1c75 | 12012 | (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 *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 12016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12017 | { |
12018 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12019 | if (PyErr_Occurred()) SWIG_fail; | |
12020 | } | |
12021 | { | |
12022 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12023 | if (PyErr_Occurred()) SWIG_fail; | |
12024 | } | |
12025 | { | |
12026 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12027 | if (PyErr_Occurred()) SWIG_fail; | |
12028 | } | |
12029 | { | |
12030 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12031 | if (PyErr_Occurred()) SWIG_fail; | |
12032 | } | |
d14a1e28 RD |
12033 | if (obj5) { |
12034 | { | |
12035 | arg6 = &temp6; | |
12036 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12037 | } | |
12038 | } | |
12039 | if (obj6) { | |
12040 | { | |
12041 | arg7 = &temp7; | |
12042 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
12043 | } | |
12044 | } | |
8edf1c75 RD |
12045 | if (obj7) { |
12046 | { | |
12047 | arg8 = (long) SWIG_PyObj_AsLong(obj7); | |
12048 | if (PyErr_Occurred()) SWIG_fail; | |
12049 | } | |
12050 | } | |
d14a1e28 RD |
12051 | if (obj8) { |
12052 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12053 | if (arg9 == NULL) { | |
12054 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12055 | } | |
12056 | } | |
12057 | if (obj9) { | |
12058 | { | |
12059 | arg10 = wxString_in_helper(obj9); | |
12060 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 12061 | temp10 = True; |
d14a1e28 RD |
12062 | } |
12063 | } | |
12064 | { | |
12065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12066 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
12067 | ||
12068 | wxPyEndAllowThreads(__tstate); | |
12069 | if (PyErr_Occurred()) SWIG_fail; | |
12070 | } | |
12071 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
12072 | { | |
12073 | if (temp10) | |
12074 | delete arg10; | |
12075 | } | |
12076 | return resultobj; | |
12077 | fail: | |
12078 | { | |
12079 | if (temp10) | |
12080 | delete arg10; | |
12081 | } | |
12082 | return NULL; | |
12083 | } | |
12084 | ||
12085 | ||
12086 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12087 | PyObject *resultobj; | |
12088 | wxSlider *result; | |
12089 | char *kwnames[] = { | |
12090 | NULL | |
12091 | }; | |
12092 | ||
12093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
12094 | { | |
12095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12096 | result = (wxSlider *)new wxSlider(); | |
12097 | ||
12098 | wxPyEndAllowThreads(__tstate); | |
12099 | if (PyErr_Occurred()) SWIG_fail; | |
12100 | } | |
12101 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
12102 | return resultobj; | |
12103 | fail: | |
12104 | return NULL; | |
12105 | } | |
12106 | ||
12107 | ||
12108 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12109 | PyObject *resultobj; | |
12110 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12111 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 12112 | int arg3 ; |
d14a1e28 RD |
12113 | int arg4 ; |
12114 | int arg5 ; | |
12115 | int arg6 ; | |
12116 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12117 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12118 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
12119 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
12120 | long arg9 = (long) wxSL_HORIZONTAL ; | |
12121 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12122 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12123 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
12124 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12125 | bool result; | |
12126 | wxPoint temp7 ; | |
12127 | wxSize temp8 ; | |
423f194a | 12128 | bool temp11 = False ; |
d14a1e28 RD |
12129 | PyObject * obj0 = 0 ; |
12130 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12131 | PyObject * obj2 = 0 ; |
12132 | PyObject * obj3 = 0 ; | |
12133 | PyObject * obj4 = 0 ; | |
12134 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12135 | PyObject * obj6 = 0 ; |
12136 | PyObject * obj7 = 0 ; | |
8edf1c75 | 12137 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
12138 | PyObject * obj9 = 0 ; |
12139 | PyObject * obj10 = 0 ; | |
12140 | char *kwnames[] = { | |
8edf1c75 | 12141 | (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 |
12142 | }; |
12143 | ||
8edf1c75 | 12144 | 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 |
12145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12146 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
12147 | { |
12148 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12149 | if (PyErr_Occurred()) SWIG_fail; | |
12150 | } | |
12151 | { | |
12152 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12153 | if (PyErr_Occurred()) SWIG_fail; | |
12154 | } | |
12155 | { | |
12156 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12157 | if (PyErr_Occurred()) SWIG_fail; | |
12158 | } | |
12159 | { | |
12160 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
12161 | if (PyErr_Occurred()) SWIG_fail; | |
12162 | } | |
d14a1e28 RD |
12163 | if (obj6) { |
12164 | { | |
12165 | arg7 = &temp7; | |
12166 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12167 | } | |
12168 | } | |
12169 | if (obj7) { | |
12170 | { | |
12171 | arg8 = &temp8; | |
12172 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
12173 | } | |
12174 | } | |
8edf1c75 RD |
12175 | if (obj8) { |
12176 | { | |
12177 | arg9 = (long) SWIG_PyObj_AsLong(obj8); | |
12178 | if (PyErr_Occurred()) SWIG_fail; | |
12179 | } | |
12180 | } | |
d14a1e28 RD |
12181 | if (obj9) { |
12182 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12183 | if (arg10 == NULL) { | |
12184 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12185 | } | |
12186 | } | |
12187 | if (obj10) { | |
12188 | { | |
12189 | arg11 = wxString_in_helper(obj10); | |
12190 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 12191 | temp11 = True; |
d14a1e28 RD |
12192 | } |
12193 | } | |
12194 | { | |
12195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12196 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
12197 | ||
12198 | wxPyEndAllowThreads(__tstate); | |
12199 | if (PyErr_Occurred()) SWIG_fail; | |
12200 | } | |
4e760a36 | 12201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12202 | { |
12203 | if (temp11) | |
12204 | delete arg11; | |
12205 | } | |
12206 | return resultobj; | |
12207 | fail: | |
12208 | { | |
12209 | if (temp11) | |
12210 | delete arg11; | |
12211 | } | |
12212 | return NULL; | |
12213 | } | |
12214 | ||
12215 | ||
12216 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12217 | PyObject *resultobj; | |
12218 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12219 | int result; | |
12220 | PyObject * obj0 = 0 ; | |
12221 | char *kwnames[] = { | |
12222 | (char *) "self", NULL | |
12223 | }; | |
12224 | ||
12225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
12226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12227 | { | |
12228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12229 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
12230 | ||
12231 | wxPyEndAllowThreads(__tstate); | |
12232 | if (PyErr_Occurred()) SWIG_fail; | |
12233 | } | |
8edf1c75 | 12234 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12235 | return resultobj; |
12236 | fail: | |
12237 | return NULL; | |
12238 | } | |
12239 | ||
12240 | ||
12241 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12242 | PyObject *resultobj; | |
12243 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12244 | int arg2 ; | |
12245 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12246 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12247 | char *kwnames[] = { |
12248 | (char *) "self",(char *) "value", NULL | |
12249 | }; | |
12250 | ||
8edf1c75 | 12251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12253 | { |
12254 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12255 | if (PyErr_Occurred()) SWIG_fail; | |
12256 | } | |
d14a1e28 RD |
12257 | { |
12258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12259 | (arg1)->SetValue(arg2); | |
12260 | ||
12261 | wxPyEndAllowThreads(__tstate); | |
12262 | if (PyErr_Occurred()) SWIG_fail; | |
12263 | } | |
12264 | Py_INCREF(Py_None); resultobj = Py_None; | |
12265 | return resultobj; | |
12266 | fail: | |
12267 | return NULL; | |
12268 | } | |
12269 | ||
12270 | ||
12271 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12272 | PyObject *resultobj; | |
12273 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12274 | int arg2 ; | |
12275 | int arg3 ; | |
12276 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12277 | PyObject * obj1 = 0 ; |
12278 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12279 | char *kwnames[] = { |
12280 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
12281 | }; | |
12282 | ||
8edf1c75 | 12283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12285 | { |
12286 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12287 | if (PyErr_Occurred()) SWIG_fail; | |
12288 | } | |
12289 | { | |
12290 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12291 | if (PyErr_Occurred()) SWIG_fail; | |
12292 | } | |
d14a1e28 RD |
12293 | { |
12294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12295 | (arg1)->SetRange(arg2,arg3); | |
12296 | ||
12297 | wxPyEndAllowThreads(__tstate); | |
12298 | if (PyErr_Occurred()) SWIG_fail; | |
12299 | } | |
12300 | Py_INCREF(Py_None); resultobj = Py_None; | |
12301 | return resultobj; | |
12302 | fail: | |
12303 | return NULL; | |
12304 | } | |
12305 | ||
12306 | ||
12307 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12308 | PyObject *resultobj; | |
12309 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12310 | int result; | |
12311 | PyObject * obj0 = 0 ; | |
12312 | char *kwnames[] = { | |
12313 | (char *) "self", NULL | |
12314 | }; | |
12315 | ||
12316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
12317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12318 | { | |
12319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12320 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
12321 | ||
12322 | wxPyEndAllowThreads(__tstate); | |
12323 | if (PyErr_Occurred()) SWIG_fail; | |
12324 | } | |
8edf1c75 | 12325 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12326 | return resultobj; |
12327 | fail: | |
12328 | return NULL; | |
12329 | } | |
12330 | ||
12331 | ||
12332 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12333 | PyObject *resultobj; | |
12334 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12335 | int result; | |
12336 | PyObject * obj0 = 0 ; | |
12337 | char *kwnames[] = { | |
12338 | (char *) "self", NULL | |
12339 | }; | |
12340 | ||
12341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
12342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12343 | { | |
12344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12345 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
12346 | ||
12347 | wxPyEndAllowThreads(__tstate); | |
12348 | if (PyErr_Occurred()) SWIG_fail; | |
12349 | } | |
8edf1c75 | 12350 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12351 | return resultobj; |
12352 | fail: | |
12353 | return NULL; | |
12354 | } | |
12355 | ||
12356 | ||
12357 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12358 | PyObject *resultobj; | |
12359 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12360 | int arg2 ; | |
12361 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12362 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12363 | char *kwnames[] = { |
12364 | (char *) "self",(char *) "minValue", NULL | |
12365 | }; | |
12366 | ||
8edf1c75 | 12367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12369 | { |
12370 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12371 | if (PyErr_Occurred()) SWIG_fail; | |
12372 | } | |
d14a1e28 RD |
12373 | { |
12374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12375 | (arg1)->SetMin(arg2); | |
12376 | ||
12377 | wxPyEndAllowThreads(__tstate); | |
12378 | if (PyErr_Occurred()) SWIG_fail; | |
12379 | } | |
12380 | Py_INCREF(Py_None); resultobj = Py_None; | |
12381 | return resultobj; | |
12382 | fail: | |
12383 | return NULL; | |
12384 | } | |
12385 | ||
12386 | ||
12387 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12388 | PyObject *resultobj; | |
12389 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12390 | int arg2 ; | |
12391 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12392 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12393 | char *kwnames[] = { |
12394 | (char *) "self",(char *) "maxValue", NULL | |
12395 | }; | |
12396 | ||
8edf1c75 | 12397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12399 | { |
12400 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12401 | if (PyErr_Occurred()) SWIG_fail; | |
12402 | } | |
d14a1e28 RD |
12403 | { |
12404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12405 | (arg1)->SetMax(arg2); | |
12406 | ||
12407 | wxPyEndAllowThreads(__tstate); | |
12408 | if (PyErr_Occurred()) SWIG_fail; | |
12409 | } | |
12410 | Py_INCREF(Py_None); resultobj = Py_None; | |
12411 | return resultobj; | |
12412 | fail: | |
12413 | return NULL; | |
12414 | } | |
12415 | ||
12416 | ||
12417 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12418 | PyObject *resultobj; | |
12419 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12420 | int arg2 ; | |
12421 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12422 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12423 | char *kwnames[] = { |
12424 | (char *) "self",(char *) "lineSize", NULL | |
12425 | }; | |
12426 | ||
8edf1c75 | 12427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12429 | { |
12430 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12431 | if (PyErr_Occurred()) SWIG_fail; | |
12432 | } | |
d14a1e28 RD |
12433 | { |
12434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12435 | (arg1)->SetLineSize(arg2); | |
12436 | ||
12437 | wxPyEndAllowThreads(__tstate); | |
12438 | if (PyErr_Occurred()) SWIG_fail; | |
12439 | } | |
12440 | Py_INCREF(Py_None); resultobj = Py_None; | |
12441 | return resultobj; | |
12442 | fail: | |
12443 | return NULL; | |
12444 | } | |
12445 | ||
12446 | ||
12447 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12448 | PyObject *resultobj; | |
12449 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12450 | int arg2 ; | |
12451 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12452 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12453 | char *kwnames[] = { |
12454 | (char *) "self",(char *) "pageSize", NULL | |
12455 | }; | |
12456 | ||
8edf1c75 | 12457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12459 | { |
12460 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12461 | if (PyErr_Occurred()) SWIG_fail; | |
12462 | } | |
d14a1e28 RD |
12463 | { |
12464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12465 | (arg1)->SetPageSize(arg2); | |
12466 | ||
12467 | wxPyEndAllowThreads(__tstate); | |
12468 | if (PyErr_Occurred()) SWIG_fail; | |
12469 | } | |
12470 | Py_INCREF(Py_None); resultobj = Py_None; | |
12471 | return resultobj; | |
12472 | fail: | |
12473 | return NULL; | |
12474 | } | |
12475 | ||
12476 | ||
12477 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12478 | PyObject *resultobj; | |
12479 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12480 | int result; | |
12481 | PyObject * obj0 = 0 ; | |
12482 | char *kwnames[] = { | |
12483 | (char *) "self", NULL | |
12484 | }; | |
12485 | ||
12486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
12487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12488 | { | |
12489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12490 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
12491 | ||
12492 | wxPyEndAllowThreads(__tstate); | |
12493 | if (PyErr_Occurred()) SWIG_fail; | |
12494 | } | |
8edf1c75 | 12495 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12496 | return resultobj; |
12497 | fail: | |
12498 | return NULL; | |
12499 | } | |
12500 | ||
12501 | ||
12502 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12503 | PyObject *resultobj; | |
12504 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12505 | int result; | |
12506 | PyObject * obj0 = 0 ; | |
12507 | char *kwnames[] = { | |
12508 | (char *) "self", NULL | |
12509 | }; | |
12510 | ||
12511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
12512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12513 | { | |
12514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12515 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
12516 | ||
12517 | wxPyEndAllowThreads(__tstate); | |
12518 | if (PyErr_Occurred()) SWIG_fail; | |
12519 | } | |
8edf1c75 | 12520 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12521 | return resultobj; |
12522 | fail: | |
12523 | return NULL; | |
12524 | } | |
12525 | ||
12526 | ||
12527 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12528 | PyObject *resultobj; | |
12529 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12530 | int arg2 ; | |
12531 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12532 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12533 | char *kwnames[] = { |
12534 | (char *) "self",(char *) "lenPixels", NULL | |
12535 | }; | |
12536 | ||
8edf1c75 | 12537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12539 | { |
12540 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12541 | if (PyErr_Occurred()) SWIG_fail; | |
12542 | } | |
d14a1e28 RD |
12543 | { |
12544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12545 | (arg1)->SetThumbLength(arg2); | |
12546 | ||
12547 | wxPyEndAllowThreads(__tstate); | |
12548 | if (PyErr_Occurred()) SWIG_fail; | |
12549 | } | |
12550 | Py_INCREF(Py_None); resultobj = Py_None; | |
12551 | return resultobj; | |
12552 | fail: | |
12553 | return NULL; | |
12554 | } | |
12555 | ||
12556 | ||
12557 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12558 | PyObject *resultobj; | |
12559 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12560 | int result; | |
12561 | PyObject * obj0 = 0 ; | |
12562 | char *kwnames[] = { | |
12563 | (char *) "self", NULL | |
12564 | }; | |
12565 | ||
12566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
12567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12568 | { | |
12569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12570 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
12571 | ||
12572 | wxPyEndAllowThreads(__tstate); | |
12573 | if (PyErr_Occurred()) SWIG_fail; | |
12574 | } | |
8edf1c75 | 12575 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12576 | return resultobj; |
12577 | fail: | |
12578 | return NULL; | |
12579 | } | |
12580 | ||
12581 | ||
12582 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12583 | PyObject *resultobj; | |
12584 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12585 | int arg2 ; | |
8edf1c75 | 12586 | int arg3 = (int) 1 ; |
d14a1e28 | 12587 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12588 | PyObject * obj1 = 0 ; |
12589 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12590 | char *kwnames[] = { |
12591 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
12592 | }; | |
12593 | ||
8edf1c75 | 12594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12596 | { |
12597 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12598 | if (PyErr_Occurred()) SWIG_fail; | |
12599 | } | |
12600 | if (obj2) { | |
12601 | { | |
12602 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12603 | if (PyErr_Occurred()) SWIG_fail; | |
12604 | } | |
12605 | } | |
d14a1e28 RD |
12606 | { |
12607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12608 | (arg1)->SetTickFreq(arg2,arg3); | |
12609 | ||
12610 | wxPyEndAllowThreads(__tstate); | |
12611 | if (PyErr_Occurred()) SWIG_fail; | |
12612 | } | |
12613 | Py_INCREF(Py_None); resultobj = Py_None; | |
12614 | return resultobj; | |
12615 | fail: | |
12616 | return NULL; | |
12617 | } | |
12618 | ||
12619 | ||
12620 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12621 | PyObject *resultobj; | |
12622 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12623 | int result; | |
12624 | PyObject * obj0 = 0 ; | |
12625 | char *kwnames[] = { | |
12626 | (char *) "self", NULL | |
12627 | }; | |
12628 | ||
12629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
12630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12631 | { | |
12632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12633 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
12634 | ||
12635 | wxPyEndAllowThreads(__tstate); | |
12636 | if (PyErr_Occurred()) SWIG_fail; | |
12637 | } | |
8edf1c75 | 12638 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12639 | return resultobj; |
12640 | fail: | |
12641 | return NULL; | |
12642 | } | |
12643 | ||
12644 | ||
12645 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12646 | PyObject *resultobj; | |
12647 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12648 | PyObject * obj0 = 0 ; | |
12649 | char *kwnames[] = { | |
12650 | (char *) "self", NULL | |
12651 | }; | |
12652 | ||
12653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
12654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12655 | { | |
12656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12657 | (arg1)->ClearTicks(); | |
12658 | ||
12659 | wxPyEndAllowThreads(__tstate); | |
12660 | if (PyErr_Occurred()) SWIG_fail; | |
12661 | } | |
12662 | Py_INCREF(Py_None); resultobj = Py_None; | |
12663 | return resultobj; | |
12664 | fail: | |
12665 | return NULL; | |
12666 | } | |
12667 | ||
12668 | ||
12669 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12670 | PyObject *resultobj; | |
12671 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12672 | int arg2 ; | |
12673 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12674 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12675 | char *kwnames[] = { |
12676 | (char *) "self",(char *) "tickPos", NULL | |
12677 | }; | |
12678 | ||
8edf1c75 | 12679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12681 | { |
12682 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12683 | if (PyErr_Occurred()) SWIG_fail; | |
12684 | } | |
d14a1e28 RD |
12685 | { |
12686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12687 | (arg1)->SetTick(arg2); | |
12688 | ||
12689 | wxPyEndAllowThreads(__tstate); | |
12690 | if (PyErr_Occurred()) SWIG_fail; | |
12691 | } | |
12692 | Py_INCREF(Py_None); resultobj = Py_None; | |
12693 | return resultobj; | |
12694 | fail: | |
12695 | return NULL; | |
12696 | } | |
12697 | ||
12698 | ||
12699 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12700 | PyObject *resultobj; | |
12701 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12702 | PyObject * obj0 = 0 ; | |
12703 | char *kwnames[] = { | |
12704 | (char *) "self", NULL | |
12705 | }; | |
12706 | ||
12707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
12708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12709 | { | |
12710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12711 | (arg1)->ClearSel(); | |
12712 | ||
12713 | wxPyEndAllowThreads(__tstate); | |
12714 | if (PyErr_Occurred()) SWIG_fail; | |
12715 | } | |
12716 | Py_INCREF(Py_None); resultobj = Py_None; | |
12717 | return resultobj; | |
12718 | fail: | |
12719 | return NULL; | |
12720 | } | |
12721 | ||
12722 | ||
12723 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12724 | PyObject *resultobj; | |
12725 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12726 | int result; | |
12727 | PyObject * obj0 = 0 ; | |
12728 | char *kwnames[] = { | |
12729 | (char *) "self", NULL | |
12730 | }; | |
12731 | ||
12732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
12733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12734 | { | |
12735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12736 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
12737 | ||
12738 | wxPyEndAllowThreads(__tstate); | |
12739 | if (PyErr_Occurred()) SWIG_fail; | |
12740 | } | |
8edf1c75 | 12741 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12742 | return resultobj; |
12743 | fail: | |
12744 | return NULL; | |
12745 | } | |
12746 | ||
12747 | ||
12748 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12749 | PyObject *resultobj; | |
12750 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12751 | int result; | |
12752 | PyObject * obj0 = 0 ; | |
12753 | char *kwnames[] = { | |
12754 | (char *) "self", NULL | |
12755 | }; | |
12756 | ||
12757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
12758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12759 | { | |
12760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12761 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
12762 | ||
12763 | wxPyEndAllowThreads(__tstate); | |
12764 | if (PyErr_Occurred()) SWIG_fail; | |
12765 | } | |
8edf1c75 | 12766 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12767 | return resultobj; |
12768 | fail: | |
12769 | return NULL; | |
12770 | } | |
12771 | ||
12772 | ||
12773 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12774 | PyObject *resultobj; | |
12775 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12776 | int arg2 ; | |
12777 | int arg3 ; | |
12778 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12779 | PyObject * obj1 = 0 ; |
12780 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12781 | char *kwnames[] = { |
12782 | (char *) "self",(char *) "min",(char *) "max", NULL | |
12783 | }; | |
12784 | ||
8edf1c75 | 12785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12787 | { |
12788 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12789 | if (PyErr_Occurred()) SWIG_fail; | |
12790 | } | |
12791 | { | |
12792 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12793 | if (PyErr_Occurred()) SWIG_fail; | |
12794 | } | |
d14a1e28 RD |
12795 | { |
12796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12797 | (arg1)->SetSelection(arg2,arg3); | |
12798 | ||
12799 | wxPyEndAllowThreads(__tstate); | |
12800 | if (PyErr_Occurred()) SWIG_fail; | |
12801 | } | |
12802 | Py_INCREF(Py_None); resultobj = Py_None; | |
12803 | return resultobj; | |
12804 | fail: | |
12805 | return NULL; | |
12806 | } | |
12807 | ||
12808 | ||
12809 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
12810 | PyObject *obj; | |
12811 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12812 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
12813 | Py_INCREF(obj); | |
12814 | return Py_BuildValue((char *)""); | |
12815 | } | |
8edf1c75 | 12816 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
d03fd34d RD |
12817 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
12818 | return 1; | |
12819 | } | |
12820 | ||
12821 | ||
12822 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
12823 | PyObject *pyobj; | |
12824 | ||
12825 | { | |
12826 | #if wxUSE_UNICODE | |
12827 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12828 | #else | |
12829 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12830 | #endif | |
12831 | } | |
12832 | return pyobj; | |
12833 | } | |
12834 | ||
12835 | ||
d14a1e28 RD |
12836 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
12837 | PyObject *resultobj; | |
12838 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 12839 | int arg2 ; |
d14a1e28 RD |
12840 | wxString *arg3 = 0 ; |
12841 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12842 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12843 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12844 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12845 | long arg6 = (long) 0 ; | |
12846 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12847 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12848 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
12849 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12850 | wxToggleButton *result; | |
423f194a | 12851 | bool temp3 = False ; |
d14a1e28 RD |
12852 | wxPoint temp4 ; |
12853 | wxSize temp5 ; | |
423f194a | 12854 | bool temp8 = False ; |
d14a1e28 | 12855 | PyObject * obj0 = 0 ; |
8edf1c75 | 12856 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12857 | PyObject * obj2 = 0 ; |
12858 | PyObject * obj3 = 0 ; | |
12859 | PyObject * obj4 = 0 ; | |
8edf1c75 | 12860 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12861 | PyObject * obj6 = 0 ; |
12862 | PyObject * obj7 = 0 ; | |
12863 | char *kwnames[] = { | |
12864 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12865 | }; | |
12866 | ||
8edf1c75 | 12867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 12868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12869 | { |
12870 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12871 | if (PyErr_Occurred()) SWIG_fail; | |
12872 | } | |
d14a1e28 RD |
12873 | { |
12874 | arg3 = wxString_in_helper(obj2); | |
12875 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12876 | temp3 = True; |
d14a1e28 RD |
12877 | } |
12878 | if (obj3) { | |
12879 | { | |
12880 | arg4 = &temp4; | |
12881 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12882 | } | |
12883 | } | |
12884 | if (obj4) { | |
12885 | { | |
12886 | arg5 = &temp5; | |
12887 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12888 | } | |
12889 | } | |
8edf1c75 RD |
12890 | if (obj5) { |
12891 | { | |
12892 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
12893 | if (PyErr_Occurred()) SWIG_fail; | |
12894 | } | |
12895 | } | |
d14a1e28 RD |
12896 | if (obj6) { |
12897 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12898 | if (arg7 == NULL) { | |
12899 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12900 | } | |
12901 | } | |
12902 | if (obj7) { | |
12903 | { | |
12904 | arg8 = wxString_in_helper(obj7); | |
12905 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 12906 | temp8 = True; |
d14a1e28 RD |
12907 | } |
12908 | } | |
12909 | { | |
12910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12911 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12912 | ||
12913 | wxPyEndAllowThreads(__tstate); | |
12914 | if (PyErr_Occurred()) SWIG_fail; | |
12915 | } | |
12916 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12917 | { | |
12918 | if (temp3) | |
12919 | delete arg3; | |
12920 | } | |
12921 | { | |
12922 | if (temp8) | |
12923 | delete arg8; | |
12924 | } | |
12925 | return resultobj; | |
12926 | fail: | |
12927 | { | |
12928 | if (temp3) | |
12929 | delete arg3; | |
12930 | } | |
12931 | { | |
12932 | if (temp8) | |
12933 | delete arg8; | |
12934 | } | |
12935 | return NULL; | |
12936 | } | |
12937 | ||
12938 | ||
12939 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12940 | PyObject *resultobj; | |
12941 | wxToggleButton *result; | |
12942 | char *kwnames[] = { | |
12943 | NULL | |
12944 | }; | |
12945 | ||
12946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
12947 | { | |
12948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12949 | result = (wxToggleButton *)new wxToggleButton(); | |
12950 | ||
12951 | wxPyEndAllowThreads(__tstate); | |
12952 | if (PyErr_Occurred()) SWIG_fail; | |
12953 | } | |
12954 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12955 | return resultobj; | |
12956 | fail: | |
12957 | return NULL; | |
12958 | } | |
12959 | ||
12960 | ||
12961 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12962 | PyObject *resultobj; | |
12963 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
12964 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 12965 | int arg3 ; |
d14a1e28 RD |
12966 | wxString *arg4 = 0 ; |
12967 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
12968 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12969 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12970 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12971 | long arg7 = (long) 0 ; | |
12972 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12973 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12974 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
12975 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12976 | bool result; | |
423f194a | 12977 | bool temp4 = False ; |
d14a1e28 RD |
12978 | wxPoint temp5 ; |
12979 | wxSize temp6 ; | |
423f194a | 12980 | bool temp9 = False ; |
d14a1e28 RD |
12981 | PyObject * obj0 = 0 ; |
12982 | PyObject * obj1 = 0 ; | |
8edf1c75 | 12983 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12984 | PyObject * obj3 = 0 ; |
12985 | PyObject * obj4 = 0 ; | |
12986 | PyObject * obj5 = 0 ; | |
8edf1c75 | 12987 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
12988 | PyObject * obj7 = 0 ; |
12989 | PyObject * obj8 = 0 ; | |
12990 | char *kwnames[] = { | |
12991 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12992 | }; | |
12993 | ||
8edf1c75 | 12994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
12995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12996 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
12997 | { |
12998 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12999 | if (PyErr_Occurred()) SWIG_fail; | |
13000 | } | |
d14a1e28 RD |
13001 | { |
13002 | arg4 = wxString_in_helper(obj3); | |
13003 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13004 | temp4 = True; |
d14a1e28 RD |
13005 | } |
13006 | if (obj4) { | |
13007 | { | |
13008 | arg5 = &temp5; | |
13009 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13010 | } | |
13011 | } | |
13012 | if (obj5) { | |
13013 | { | |
13014 | arg6 = &temp6; | |
13015 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13016 | } | |
13017 | } | |
8edf1c75 RD |
13018 | if (obj6) { |
13019 | { | |
13020 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
13021 | if (PyErr_Occurred()) SWIG_fail; | |
13022 | } | |
13023 | } | |
d14a1e28 RD |
13024 | if (obj7) { |
13025 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13026 | if (arg8 == NULL) { | |
13027 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13028 | } | |
13029 | } | |
13030 | if (obj8) { | |
13031 | { | |
13032 | arg9 = wxString_in_helper(obj8); | |
13033 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 13034 | temp9 = True; |
d14a1e28 RD |
13035 | } |
13036 | } | |
13037 | { | |
13038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13039 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
13040 | ||
13041 | wxPyEndAllowThreads(__tstate); | |
13042 | if (PyErr_Occurred()) SWIG_fail; | |
13043 | } | |
4e760a36 | 13044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13045 | { |
13046 | if (temp4) | |
13047 | delete arg4; | |
13048 | } | |
13049 | { | |
13050 | if (temp9) | |
13051 | delete arg9; | |
13052 | } | |
13053 | return resultobj; | |
13054 | fail: | |
13055 | { | |
13056 | if (temp4) | |
13057 | delete arg4; | |
13058 | } | |
13059 | { | |
13060 | if (temp9) | |
13061 | delete arg9; | |
13062 | } | |
13063 | return NULL; | |
13064 | } | |
13065 | ||
13066 | ||
13067 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13068 | PyObject *resultobj; | |
13069 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13070 | bool arg2 ; | |
13071 | PyObject * obj0 = 0 ; | |
13072 | PyObject * obj1 = 0 ; | |
13073 | char *kwnames[] = { | |
13074 | (char *) "self",(char *) "value", NULL | |
13075 | }; | |
13076 | ||
13077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13079 | { |
8edf1c75 | 13080 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
13081 | if (PyErr_Occurred()) SWIG_fail; |
13082 | } | |
d14a1e28 RD |
13083 | { |
13084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13085 | (arg1)->SetValue(arg2); | |
13086 | ||
13087 | wxPyEndAllowThreads(__tstate); | |
13088 | if (PyErr_Occurred()) SWIG_fail; | |
13089 | } | |
13090 | Py_INCREF(Py_None); resultobj = Py_None; | |
13091 | return resultobj; | |
13092 | fail: | |
13093 | return NULL; | |
13094 | } | |
13095 | ||
13096 | ||
13097 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13098 | PyObject *resultobj; | |
13099 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13100 | bool result; | |
13101 | PyObject * obj0 = 0 ; | |
13102 | char *kwnames[] = { | |
13103 | (char *) "self", NULL | |
13104 | }; | |
13105 | ||
13106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
13107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13108 | { | |
13109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13110 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
13111 | ||
13112 | wxPyEndAllowThreads(__tstate); | |
13113 | if (PyErr_Occurred()) SWIG_fail; | |
13114 | } | |
4e760a36 | 13115 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13116 | return resultobj; |
13117 | fail: | |
13118 | return NULL; | |
13119 | } | |
13120 | ||
13121 | ||
13122 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13123 | PyObject *resultobj; | |
13124 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13125 | wxString *arg2 = 0 ; | |
423f194a | 13126 | bool temp2 = False ; |
d14a1e28 RD |
13127 | PyObject * obj0 = 0 ; |
13128 | PyObject * obj1 = 0 ; | |
13129 | char *kwnames[] = { | |
13130 | (char *) "self",(char *) "label", NULL | |
13131 | }; | |
13132 | ||
13133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
13134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13135 | { | |
13136 | arg2 = wxString_in_helper(obj1); | |
13137 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13138 | temp2 = True; |
d14a1e28 RD |
13139 | } |
13140 | { | |
13141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13142 | (arg1)->SetLabel((wxString const &)*arg2); | |
13143 | ||
13144 | wxPyEndAllowThreads(__tstate); | |
13145 | if (PyErr_Occurred()) SWIG_fail; | |
13146 | } | |
13147 | Py_INCREF(Py_None); resultobj = Py_None; | |
13148 | { | |
13149 | if (temp2) | |
13150 | delete arg2; | |
13151 | } | |
13152 | return resultobj; | |
13153 | fail: | |
13154 | { | |
13155 | if (temp2) | |
13156 | delete arg2; | |
13157 | } | |
13158 | return NULL; | |
13159 | } | |
13160 | ||
13161 | ||
13162 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
13163 | PyObject *obj; | |
13164 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13165 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
13166 | Py_INCREF(obj); | |
13167 | return Py_BuildValue((char *)""); | |
13168 | } | |
8edf1c75 | 13169 | static int _wrap_NOTEBOOK_NAME_set(PyObject *) { |
d03fd34d RD |
13170 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); |
13171 | return 1; | |
13172 | } | |
13173 | ||
13174 | ||
13175 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
13176 | PyObject *pyobj; | |
13177 | ||
13178 | { | |
13179 | #if wxUSE_UNICODE | |
13180 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13181 | #else | |
13182 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13183 | #endif | |
13184 | } | |
13185 | return pyobj; | |
13186 | } | |
13187 | ||
13188 | ||
d14a1e28 RD |
13189 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
13190 | PyObject *resultobj; | |
13191 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13192 | size_t result; | |
13193 | PyObject * obj0 = 0 ; | |
13194 | char *kwnames[] = { | |
13195 | (char *) "self", NULL | |
13196 | }; | |
13197 | ||
13198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
13199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13200 | { | |
13201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13202 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
13203 | ||
13204 | wxPyEndAllowThreads(__tstate); | |
13205 | if (PyErr_Occurred()) SWIG_fail; | |
13206 | } | |
8edf1c75 | 13207 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
13208 | return resultobj; |
13209 | fail: | |
13210 | return NULL; | |
13211 | } | |
13212 | ||
13213 | ||
13214 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13215 | PyObject *resultobj; | |
13216 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13217 | size_t arg2 ; | |
13218 | wxWindow *result; | |
13219 | PyObject * obj0 = 0 ; | |
13220 | PyObject * obj1 = 0 ; | |
13221 | char *kwnames[] = { | |
13222 | (char *) "self",(char *) "n", NULL | |
13223 | }; | |
13224 | ||
13225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
13226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13227 | { |
8edf1c75 | 13228 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13229 | if (PyErr_Occurred()) SWIG_fail; |
13230 | } | |
d14a1e28 RD |
13231 | { |
13232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13233 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
13234 | ||
13235 | wxPyEndAllowThreads(__tstate); | |
13236 | if (PyErr_Occurred()) SWIG_fail; | |
13237 | } | |
13238 | { | |
13239 | resultobj = wxPyMake_wxObject(result); | |
13240 | } | |
13241 | return resultobj; | |
13242 | fail: | |
13243 | return NULL; | |
13244 | } | |
13245 | ||
13246 | ||
13247 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13248 | PyObject *resultobj; | |
13249 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13250 | int result; | |
13251 | PyObject * obj0 = 0 ; | |
13252 | char *kwnames[] = { | |
13253 | (char *) "self", NULL | |
13254 | }; | |
13255 | ||
13256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
13257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13258 | { | |
13259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13260 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
13261 | ||
13262 | wxPyEndAllowThreads(__tstate); | |
13263 | if (PyErr_Occurred()) SWIG_fail; | |
13264 | } | |
8edf1c75 | 13265 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13266 | return resultobj; |
13267 | fail: | |
13268 | return NULL; | |
13269 | } | |
13270 | ||
13271 | ||
13272 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13273 | PyObject *resultobj; | |
13274 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13275 | size_t arg2 ; | |
13276 | wxString *arg3 = 0 ; | |
13277 | bool result; | |
423f194a | 13278 | bool temp3 = False ; |
d14a1e28 RD |
13279 | PyObject * obj0 = 0 ; |
13280 | PyObject * obj1 = 0 ; | |
13281 | PyObject * obj2 = 0 ; | |
13282 | char *kwnames[] = { | |
13283 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
13284 | }; | |
13285 | ||
13286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13288 | { |
8edf1c75 | 13289 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13290 | if (PyErr_Occurred()) SWIG_fail; |
13291 | } | |
d14a1e28 RD |
13292 | { |
13293 | arg3 = wxString_in_helper(obj2); | |
13294 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13295 | temp3 = True; |
d14a1e28 RD |
13296 | } |
13297 | { | |
13298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13299 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
13300 | ||
13301 | wxPyEndAllowThreads(__tstate); | |
13302 | if (PyErr_Occurred()) SWIG_fail; | |
13303 | } | |
4e760a36 | 13304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13305 | { |
13306 | if (temp3) | |
13307 | delete arg3; | |
13308 | } | |
13309 | return resultobj; | |
13310 | fail: | |
13311 | { | |
13312 | if (temp3) | |
13313 | delete arg3; | |
13314 | } | |
13315 | return NULL; | |
13316 | } | |
13317 | ||
13318 | ||
13319 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13320 | PyObject *resultobj; | |
13321 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13322 | size_t arg2 ; | |
13323 | wxString result; | |
13324 | PyObject * obj0 = 0 ; | |
13325 | PyObject * obj1 = 0 ; | |
13326 | char *kwnames[] = { | |
13327 | (char *) "self",(char *) "n", NULL | |
13328 | }; | |
13329 | ||
13330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
13331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13332 | { |
8edf1c75 | 13333 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13334 | if (PyErr_Occurred()) SWIG_fail; |
13335 | } | |
d14a1e28 RD |
13336 | { |
13337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13338 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
13339 | ||
13340 | wxPyEndAllowThreads(__tstate); | |
13341 | if (PyErr_Occurred()) SWIG_fail; | |
13342 | } | |
13343 | { | |
13344 | #if wxUSE_UNICODE | |
13345 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13346 | #else | |
13347 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13348 | #endif | |
13349 | } | |
13350 | return resultobj; | |
13351 | fail: | |
13352 | return NULL; | |
13353 | } | |
13354 | ||
13355 | ||
13356 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13357 | PyObject *resultobj; | |
13358 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13359 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13360 | PyObject * obj0 = 0 ; | |
13361 | PyObject * obj1 = 0 ; | |
13362 | char *kwnames[] = { | |
13363 | (char *) "self",(char *) "imageList", NULL | |
13364 | }; | |
13365 | ||
13366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
13367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13368 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13369 | { | |
13370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13371 | (arg1)->SetImageList(arg2); | |
13372 | ||
13373 | wxPyEndAllowThreads(__tstate); | |
13374 | if (PyErr_Occurred()) SWIG_fail; | |
13375 | } | |
13376 | Py_INCREF(Py_None); resultobj = Py_None; | |
13377 | return resultobj; | |
13378 | fail: | |
13379 | return NULL; | |
13380 | } | |
13381 | ||
13382 | ||
13383 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13384 | PyObject *resultobj; | |
13385 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13386 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13387 | PyObject * obj0 = 0 ; | |
13388 | PyObject * obj1 = 0 ; | |
13389 | char *kwnames[] = { | |
13390 | (char *) "self",(char *) "imageList", NULL | |
13391 | }; | |
13392 | ||
13393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
13394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 13395 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
13396 | { |
13397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13398 | (arg1)->AssignImageList(arg2); | |
13399 | ||
13400 | wxPyEndAllowThreads(__tstate); | |
13401 | if (PyErr_Occurred()) SWIG_fail; | |
13402 | } | |
13403 | Py_INCREF(Py_None); resultobj = Py_None; | |
13404 | return resultobj; | |
13405 | fail: | |
13406 | return NULL; | |
13407 | } | |
13408 | ||
13409 | ||
13410 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13411 | PyObject *resultobj; | |
13412 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13413 | wxImageList *result; | |
13414 | PyObject * obj0 = 0 ; | |
13415 | char *kwnames[] = { | |
13416 | (char *) "self", NULL | |
13417 | }; | |
13418 | ||
13419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
13420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13421 | { | |
13422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13423 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
13424 | ||
13425 | wxPyEndAllowThreads(__tstate); | |
13426 | if (PyErr_Occurred()) SWIG_fail; | |
13427 | } | |
13428 | { | |
13429 | resultobj = wxPyMake_wxObject(result); | |
13430 | } | |
13431 | return resultobj; | |
13432 | fail: | |
13433 | return NULL; | |
13434 | } | |
13435 | ||
13436 | ||
13437 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13438 | PyObject *resultobj; | |
13439 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13440 | size_t arg2 ; | |
13441 | int result; | |
13442 | PyObject * obj0 = 0 ; | |
13443 | PyObject * obj1 = 0 ; | |
13444 | char *kwnames[] = { | |
13445 | (char *) "self",(char *) "n", NULL | |
13446 | }; | |
13447 | ||
13448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
13449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13450 | { |
8edf1c75 | 13451 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13452 | if (PyErr_Occurred()) SWIG_fail; |
13453 | } | |
d14a1e28 RD |
13454 | { |
13455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13456 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
13457 | ||
13458 | wxPyEndAllowThreads(__tstate); | |
13459 | if (PyErr_Occurred()) SWIG_fail; | |
13460 | } | |
8edf1c75 | 13461 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13462 | return resultobj; |
13463 | fail: | |
13464 | return NULL; | |
13465 | } | |
13466 | ||
13467 | ||
13468 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13469 | PyObject *resultobj; | |
13470 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13471 | size_t arg2 ; | |
13472 | int arg3 ; | |
13473 | bool result; | |
13474 | PyObject * obj0 = 0 ; | |
13475 | PyObject * obj1 = 0 ; | |
8edf1c75 | 13476 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13477 | char *kwnames[] = { |
13478 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
13479 | }; | |
13480 | ||
8edf1c75 | 13481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 13483 | { |
8edf1c75 RD |
13484 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
13485 | if (PyErr_Occurred()) SWIG_fail; | |
13486 | } | |
13487 | { | |
13488 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
13489 | if (PyErr_Occurred()) SWIG_fail; |
13490 | } | |
d14a1e28 RD |
13491 | { |
13492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13493 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
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_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13506 | PyObject *resultobj; | |
13507 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13508 | wxSize *arg2 = 0 ; | |
13509 | wxSize temp2 ; | |
13510 | PyObject * obj0 = 0 ; | |
13511 | PyObject * obj1 = 0 ; | |
13512 | char *kwnames[] = { | |
13513 | (char *) "self",(char *) "size", NULL | |
13514 | }; | |
13515 | ||
13516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
13517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13518 | { | |
13519 | arg2 = &temp2; | |
13520 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13521 | } | |
13522 | { | |
13523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13524 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
13525 | ||
13526 | wxPyEndAllowThreads(__tstate); | |
13527 | if (PyErr_Occurred()) SWIG_fail; | |
13528 | } | |
13529 | Py_INCREF(Py_None); resultobj = Py_None; | |
13530 | return resultobj; | |
13531 | fail: | |
13532 | return NULL; | |
13533 | } | |
13534 | ||
13535 | ||
13536 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13537 | PyObject *resultobj; | |
13538 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13539 | wxSize *arg2 = 0 ; | |
13540 | wxSize result; | |
13541 | wxSize temp2 ; | |
13542 | PyObject * obj0 = 0 ; | |
13543 | PyObject * obj1 = 0 ; | |
13544 | char *kwnames[] = { | |
13545 | (char *) "self",(char *) "sizePage", NULL | |
13546 | }; | |
13547 | ||
13548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
13549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13550 | { | |
13551 | arg2 = &temp2; | |
13552 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13553 | } | |
13554 | { | |
13555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13556 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13557 | ||
13558 | wxPyEndAllowThreads(__tstate); | |
13559 | if (PyErr_Occurred()) SWIG_fail; | |
13560 | } | |
13561 | { | |
13562 | wxSize * resultptr; | |
13563 | resultptr = new wxSize((wxSize &) result); | |
13564 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13565 | } | |
13566 | return resultobj; | |
13567 | fail: | |
13568 | return NULL; | |
13569 | } | |
13570 | ||
13571 | ||
13572 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13573 | PyObject *resultobj; | |
13574 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13575 | size_t arg2 ; | |
13576 | bool result; | |
13577 | PyObject * obj0 = 0 ; | |
13578 | PyObject * obj1 = 0 ; | |
13579 | char *kwnames[] = { | |
13580 | (char *) "self",(char *) "n", NULL | |
13581 | }; | |
13582 | ||
13583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
13584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13585 | { |
8edf1c75 | 13586 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13587 | if (PyErr_Occurred()) SWIG_fail; |
13588 | } | |
d14a1e28 RD |
13589 | { |
13590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13591 | result = (bool)(arg1)->DeletePage(arg2); | |
13592 | ||
13593 | wxPyEndAllowThreads(__tstate); | |
13594 | if (PyErr_Occurred()) SWIG_fail; | |
13595 | } | |
4e760a36 | 13596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13597 | return resultobj; |
13598 | fail: | |
13599 | return NULL; | |
13600 | } | |
13601 | ||
13602 | ||
13603 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13604 | PyObject *resultobj; | |
13605 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13606 | size_t arg2 ; | |
13607 | bool result; | |
13608 | PyObject * obj0 = 0 ; | |
13609 | PyObject * obj1 = 0 ; | |
13610 | char *kwnames[] = { | |
13611 | (char *) "self",(char *) "n", NULL | |
13612 | }; | |
13613 | ||
13614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
13615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13616 | { |
8edf1c75 | 13617 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13618 | if (PyErr_Occurred()) SWIG_fail; |
13619 | } | |
d14a1e28 RD |
13620 | { |
13621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13622 | result = (bool)(arg1)->RemovePage(arg2); | |
13623 | ||
13624 | wxPyEndAllowThreads(__tstate); | |
13625 | if (PyErr_Occurred()) SWIG_fail; | |
13626 | } | |
4e760a36 | 13627 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13628 | return resultobj; |
13629 | fail: | |
13630 | return NULL; | |
13631 | } | |
13632 | ||
13633 | ||
13634 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13635 | PyObject *resultobj; | |
13636 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13637 | bool result; | |
13638 | PyObject * obj0 = 0 ; | |
13639 | char *kwnames[] = { | |
13640 | (char *) "self", NULL | |
13641 | }; | |
13642 | ||
13643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
13644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13645 | { | |
13646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13647 | result = (bool)(arg1)->DeleteAllPages(); | |
13648 | ||
13649 | wxPyEndAllowThreads(__tstate); | |
13650 | if (PyErr_Occurred()) SWIG_fail; | |
13651 | } | |
4e760a36 | 13652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13653 | return resultobj; |
13654 | fail: | |
13655 | return NULL; | |
13656 | } | |
13657 | ||
13658 | ||
13659 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13660 | PyObject *resultobj; | |
13661 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13662 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13663 | wxString *arg3 = 0 ; | |
423f194a | 13664 | bool arg4 = (bool) False ; |
d14a1e28 RD |
13665 | int arg5 = (int) -1 ; |
13666 | bool result; | |
423f194a | 13667 | bool temp3 = False ; |
d14a1e28 RD |
13668 | PyObject * obj0 = 0 ; |
13669 | PyObject * obj1 = 0 ; | |
13670 | PyObject * obj2 = 0 ; | |
13671 | PyObject * obj3 = 0 ; | |
8edf1c75 | 13672 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13673 | char *kwnames[] = { |
13674 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13675 | }; | |
13676 | ||
8edf1c75 | 13677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
13678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13679 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13680 | { | |
13681 | arg3 = wxString_in_helper(obj2); | |
13682 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13683 | temp3 = True; |
d14a1e28 RD |
13684 | } |
13685 | if (obj3) { | |
83448d71 | 13686 | { |
8edf1c75 RD |
13687 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
13688 | if (PyErr_Occurred()) SWIG_fail; | |
13689 | } | |
13690 | } | |
13691 | if (obj4) { | |
13692 | { | |
13693 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
83448d71 RD |
13694 | if (PyErr_Occurred()) SWIG_fail; |
13695 | } | |
d14a1e28 RD |
13696 | } |
13697 | { | |
13698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13699 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
13700 | ||
13701 | wxPyEndAllowThreads(__tstate); | |
13702 | if (PyErr_Occurred()) SWIG_fail; | |
13703 | } | |
4e760a36 | 13704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13705 | { |
13706 | if (temp3) | |
13707 | delete arg3; | |
13708 | } | |
13709 | return resultobj; | |
13710 | fail: | |
13711 | { | |
13712 | if (temp3) | |
13713 | delete arg3; | |
13714 | } | |
13715 | return NULL; | |
13716 | } | |
13717 | ||
13718 | ||
13719 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13720 | PyObject *resultobj; | |
13721 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13722 | size_t arg2 ; | |
13723 | wxWindow *arg3 = (wxWindow *) 0 ; | |
13724 | wxString *arg4 = 0 ; | |
423f194a | 13725 | bool arg5 = (bool) False ; |
d14a1e28 RD |
13726 | int arg6 = (int) -1 ; |
13727 | bool result; | |
423f194a | 13728 | bool temp4 = False ; |
d14a1e28 RD |
13729 | PyObject * obj0 = 0 ; |
13730 | PyObject * obj1 = 0 ; | |
13731 | PyObject * obj2 = 0 ; | |
13732 | PyObject * obj3 = 0 ; | |
13733 | PyObject * obj4 = 0 ; | |
8edf1c75 | 13734 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13735 | char *kwnames[] = { |
13736 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13737 | }; | |
13738 | ||
8edf1c75 | 13739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 13740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 13741 | { |
8edf1c75 | 13742 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13743 | if (PyErr_Occurred()) SWIG_fail; |
13744 | } | |
d14a1e28 RD |
13745 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13746 | { | |
13747 | arg4 = wxString_in_helper(obj3); | |
13748 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13749 | temp4 = True; |
d14a1e28 RD |
13750 | } |
13751 | if (obj4) { | |
83448d71 | 13752 | { |
8edf1c75 RD |
13753 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
13754 | if (PyErr_Occurred()) SWIG_fail; | |
13755 | } | |
13756 | } | |
13757 | if (obj5) { | |
13758 | { | |
13759 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
83448d71 RD |
13760 | if (PyErr_Occurred()) SWIG_fail; |
13761 | } | |
d14a1e28 RD |
13762 | } |
13763 | { | |
13764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13765 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
13766 | ||
13767 | wxPyEndAllowThreads(__tstate); | |
13768 | if (PyErr_Occurred()) SWIG_fail; | |
13769 | } | |
4e760a36 | 13770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13771 | { |
13772 | if (temp4) | |
13773 | delete arg4; | |
13774 | } | |
13775 | return resultobj; | |
13776 | fail: | |
13777 | { | |
13778 | if (temp4) | |
13779 | delete arg4; | |
13780 | } | |
13781 | return NULL; | |
13782 | } | |
13783 | ||
13784 | ||
13785 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13786 | PyObject *resultobj; | |
13787 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13788 | size_t arg2 ; | |
13789 | int result; | |
13790 | PyObject * obj0 = 0 ; | |
13791 | PyObject * obj1 = 0 ; | |
13792 | char *kwnames[] = { | |
13793 | (char *) "self",(char *) "n", NULL | |
13794 | }; | |
13795 | ||
13796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
13797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13798 | { |
8edf1c75 | 13799 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13800 | if (PyErr_Occurred()) SWIG_fail; |
13801 | } | |
d14a1e28 RD |
13802 | { |
13803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13804 | result = (int)(arg1)->SetSelection(arg2); | |
13805 | ||
13806 | wxPyEndAllowThreads(__tstate); | |
13807 | if (PyErr_Occurred()) SWIG_fail; | |
13808 | } | |
8edf1c75 | 13809 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13810 | return resultobj; |
13811 | fail: | |
13812 | return NULL; | |
13813 | } | |
13814 | ||
13815 | ||
13816 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13817 | PyObject *resultobj; | |
13818 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
423f194a | 13819 | bool arg2 = (bool) True ; |
d14a1e28 RD |
13820 | PyObject * obj0 = 0 ; |
13821 | PyObject * obj1 = 0 ; | |
13822 | char *kwnames[] = { | |
13823 | (char *) "self",(char *) "forward", NULL | |
13824 | }; | |
13825 | ||
13826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
13827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13828 | if (obj1) { | |
83448d71 | 13829 | { |
8edf1c75 | 13830 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
13831 | if (PyErr_Occurred()) SWIG_fail; |
13832 | } | |
d14a1e28 RD |
13833 | } |
13834 | { | |
13835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13836 | (arg1)->AdvanceSelection(arg2); | |
13837 | ||
13838 | wxPyEndAllowThreads(__tstate); | |
13839 | if (PyErr_Occurred()) SWIG_fail; | |
13840 | } | |
13841 | Py_INCREF(Py_None); resultobj = Py_None; | |
13842 | return resultobj; | |
13843 | fail: | |
13844 | return NULL; | |
13845 | } | |
13846 | ||
13847 | ||
13848 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
13849 | PyObject *obj; | |
13850 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13851 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
13852 | Py_INCREF(obj); | |
13853 | return Py_BuildValue((char *)""); | |
13854 | } | |
13855 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13856 | PyObject *resultobj; | |
13857 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13858 | int arg2 = (int) 0 ; | |
13859 | int arg3 = (int) -1 ; | |
13860 | int arg4 = (int) -1 ; | |
13861 | wxBookCtrlEvent *result; | |
8edf1c75 RD |
13862 | PyObject * obj0 = 0 ; |
13863 | PyObject * obj1 = 0 ; | |
13864 | PyObject * obj2 = 0 ; | |
13865 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13866 | char *kwnames[] = { |
13867 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13868 | }; | |
13869 | ||
8edf1c75 RD |
13870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13871 | if (obj0) { | |
13872 | { | |
13873 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13874 | if (PyErr_Occurred()) SWIG_fail; | |
13875 | } | |
13876 | } | |
13877 | if (obj1) { | |
13878 | { | |
13879 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13880 | if (PyErr_Occurred()) SWIG_fail; | |
13881 | } | |
13882 | } | |
13883 | if (obj2) { | |
13884 | { | |
13885 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13886 | if (PyErr_Occurred()) SWIG_fail; | |
13887 | } | |
13888 | } | |
13889 | if (obj3) { | |
13890 | { | |
13891 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
13892 | if (PyErr_Occurred()) SWIG_fail; | |
13893 | } | |
13894 | } | |
d14a1e28 RD |
13895 | { |
13896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13897 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
13898 | ||
13899 | wxPyEndAllowThreads(__tstate); | |
13900 | if (PyErr_Occurred()) SWIG_fail; | |
13901 | } | |
13902 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlEvent, 1); | |
13903 | return resultobj; | |
13904 | fail: | |
13905 | return NULL; | |
13906 | } | |
13907 | ||
13908 | ||
13909 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13910 | PyObject *resultobj; | |
13911 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13912 | int result; | |
13913 | PyObject * obj0 = 0 ; | |
13914 | char *kwnames[] = { | |
13915 | (char *) "self", NULL | |
13916 | }; | |
13917 | ||
13918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
13919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13920 | { | |
13921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13922 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
13923 | ||
13924 | wxPyEndAllowThreads(__tstate); | |
13925 | if (PyErr_Occurred()) SWIG_fail; | |
13926 | } | |
8edf1c75 | 13927 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13928 | return resultobj; |
13929 | fail: | |
13930 | return NULL; | |
13931 | } | |
13932 | ||
13933 | ||
13934 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13935 | PyObject *resultobj; | |
13936 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13937 | int arg2 ; | |
13938 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13939 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13940 | char *kwnames[] = { |
13941 | (char *) "self",(char *) "nSel", NULL | |
13942 | }; | |
13943 | ||
8edf1c75 | 13944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13946 | { |
13947 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13948 | if (PyErr_Occurred()) SWIG_fail; | |
13949 | } | |
d14a1e28 RD |
13950 | { |
13951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13952 | (arg1)->SetSelection(arg2); | |
13953 | ||
13954 | wxPyEndAllowThreads(__tstate); | |
13955 | if (PyErr_Occurred()) SWIG_fail; | |
13956 | } | |
13957 | Py_INCREF(Py_None); resultobj = Py_None; | |
13958 | return resultobj; | |
13959 | fail: | |
13960 | return NULL; | |
13961 | } | |
13962 | ||
13963 | ||
13964 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13965 | PyObject *resultobj; | |
13966 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13967 | int result; | |
13968 | PyObject * obj0 = 0 ; | |
13969 | char *kwnames[] = { | |
13970 | (char *) "self", NULL | |
13971 | }; | |
13972 | ||
13973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
13974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13975 | { | |
13976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13977 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
13978 | ||
13979 | wxPyEndAllowThreads(__tstate); | |
13980 | if (PyErr_Occurred()) SWIG_fail; | |
13981 | } | |
8edf1c75 | 13982 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13983 | return resultobj; |
13984 | fail: | |
13985 | return NULL; | |
13986 | } | |
13987 | ||
13988 | ||
13989 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13990 | PyObject *resultobj; | |
13991 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13992 | int arg2 ; | |
13993 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13994 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13995 | char *kwnames[] = { |
13996 | (char *) "self",(char *) "nOldSel", NULL | |
13997 | }; | |
13998 | ||
8edf1c75 | 13999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14001 | { |
14002 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14003 | if (PyErr_Occurred()) SWIG_fail; | |
14004 | } | |
d14a1e28 RD |
14005 | { |
14006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14007 | (arg1)->SetOldSelection(arg2); | |
14008 | ||
14009 | wxPyEndAllowThreads(__tstate); | |
14010 | if (PyErr_Occurred()) SWIG_fail; | |
14011 | } | |
14012 | Py_INCREF(Py_None); resultobj = Py_None; | |
14013 | return resultobj; | |
14014 | fail: | |
14015 | return NULL; | |
14016 | } | |
14017 | ||
14018 | ||
14019 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
14020 | PyObject *obj; | |
14021 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14022 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
14023 | Py_INCREF(obj); | |
14024 | return Py_BuildValue((char *)""); | |
14025 | } | |
14026 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14027 | PyObject *resultobj; | |
14028 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 14029 | int arg2 ; |
d14a1e28 RD |
14030 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14031 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14032 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14033 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14034 | long arg5 = (long) 0 ; | |
14035 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
14036 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14037 | wxNotebook *result; | |
14038 | wxPoint temp3 ; | |
14039 | wxSize temp4 ; | |
423f194a | 14040 | bool temp6 = False ; |
d14a1e28 | 14041 | PyObject * obj0 = 0 ; |
8edf1c75 | 14042 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14043 | PyObject * obj2 = 0 ; |
14044 | PyObject * obj3 = 0 ; | |
8edf1c75 | 14045 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14046 | PyObject * obj5 = 0 ; |
14047 | char *kwnames[] = { | |
14048 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14049 | }; | |
14050 | ||
8edf1c75 | 14051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 14052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14053 | { |
14054 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14055 | if (PyErr_Occurred()) SWIG_fail; | |
14056 | } | |
d14a1e28 RD |
14057 | if (obj2) { |
14058 | { | |
14059 | arg3 = &temp3; | |
14060 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14061 | } | |
14062 | } | |
14063 | if (obj3) { | |
14064 | { | |
14065 | arg4 = &temp4; | |
14066 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14067 | } | |
14068 | } | |
8edf1c75 RD |
14069 | if (obj4) { |
14070 | { | |
14071 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
14072 | if (PyErr_Occurred()) SWIG_fail; | |
14073 | } | |
14074 | } | |
d14a1e28 RD |
14075 | if (obj5) { |
14076 | { | |
14077 | arg6 = wxString_in_helper(obj5); | |
14078 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 14079 | temp6 = True; |
d14a1e28 RD |
14080 | } |
14081 | } | |
14082 | { | |
14083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14084 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14085 | ||
14086 | wxPyEndAllowThreads(__tstate); | |
14087 | if (PyErr_Occurred()) SWIG_fail; | |
14088 | } | |
14089 | { | |
14090 | resultobj = wxPyMake_wxObject(result); | |
14091 | } | |
14092 | { | |
14093 | if (temp6) | |
14094 | delete arg6; | |
14095 | } | |
14096 | return resultobj; | |
14097 | fail: | |
14098 | { | |
14099 | if (temp6) | |
14100 | delete arg6; | |
14101 | } | |
14102 | return NULL; | |
14103 | } | |
14104 | ||
14105 | ||
14106 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14107 | PyObject *resultobj; | |
14108 | wxNotebook *result; | |
14109 | char *kwnames[] = { | |
14110 | NULL | |
14111 | }; | |
14112 | ||
14113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
14114 | { | |
14115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14116 | result = (wxNotebook *)new wxNotebook(); | |
14117 | ||
14118 | wxPyEndAllowThreads(__tstate); | |
14119 | if (PyErr_Occurred()) SWIG_fail; | |
14120 | } | |
14121 | { | |
14122 | resultobj = wxPyMake_wxObject(result); | |
14123 | } | |
14124 | return resultobj; | |
14125 | fail: | |
14126 | return NULL; | |
14127 | } | |
14128 | ||
14129 | ||
14130 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14131 | PyObject *resultobj; | |
14132 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14133 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14134 | int arg3 ; |
d14a1e28 RD |
14135 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14136 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14137 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14138 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14139 | long arg6 = (long) 0 ; | |
14140 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
14141 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14142 | bool result; | |
14143 | wxPoint temp4 ; | |
14144 | wxSize temp5 ; | |
423f194a | 14145 | bool temp7 = False ; |
d14a1e28 RD |
14146 | PyObject * obj0 = 0 ; |
14147 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14148 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14149 | PyObject * obj3 = 0 ; |
14150 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14151 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14152 | PyObject * obj6 = 0 ; |
14153 | char *kwnames[] = { | |
14154 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14155 | }; | |
14156 | ||
8edf1c75 | 14157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
14158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14159 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
14160 | { |
14161 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14162 | if (PyErr_Occurred()) SWIG_fail; | |
14163 | } | |
d14a1e28 RD |
14164 | if (obj3) { |
14165 | { | |
14166 | arg4 = &temp4; | |
14167 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14168 | } | |
14169 | } | |
14170 | if (obj4) { | |
14171 | { | |
14172 | arg5 = &temp5; | |
14173 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14174 | } | |
14175 | } | |
8edf1c75 RD |
14176 | if (obj5) { |
14177 | { | |
14178 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
14179 | if (PyErr_Occurred()) SWIG_fail; | |
14180 | } | |
14181 | } | |
d14a1e28 RD |
14182 | if (obj6) { |
14183 | { | |
14184 | arg7 = wxString_in_helper(obj6); | |
14185 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14186 | temp7 = True; |
d14a1e28 RD |
14187 | } |
14188 | } | |
14189 | { | |
14190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14191 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14192 | ||
14193 | wxPyEndAllowThreads(__tstate); | |
14194 | if (PyErr_Occurred()) SWIG_fail; | |
14195 | } | |
4e760a36 | 14196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14197 | { |
14198 | if (temp7) | |
14199 | delete arg7; | |
14200 | } | |
14201 | return resultobj; | |
14202 | fail: | |
14203 | { | |
14204 | if (temp7) | |
14205 | delete arg7; | |
14206 | } | |
14207 | return NULL; | |
14208 | } | |
14209 | ||
14210 | ||
14211 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14212 | PyObject *resultobj; | |
14213 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14214 | int result; | |
14215 | PyObject * obj0 = 0 ; | |
14216 | char *kwnames[] = { | |
14217 | (char *) "self", NULL | |
14218 | }; | |
14219 | ||
14220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
14221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14222 | { | |
14223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14224 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
14225 | ||
14226 | wxPyEndAllowThreads(__tstate); | |
14227 | if (PyErr_Occurred()) SWIG_fail; | |
14228 | } | |
8edf1c75 | 14229 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14230 | return resultobj; |
14231 | fail: | |
14232 | return NULL; | |
14233 | } | |
14234 | ||
14235 | ||
14236 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14237 | PyObject *resultobj; | |
14238 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14239 | wxSize *arg2 = 0 ; | |
14240 | wxSize temp2 ; | |
14241 | PyObject * obj0 = 0 ; | |
14242 | PyObject * obj1 = 0 ; | |
14243 | char *kwnames[] = { | |
14244 | (char *) "self",(char *) "padding", NULL | |
14245 | }; | |
14246 | ||
14247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
14248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14249 | { | |
14250 | arg2 = &temp2; | |
14251 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14252 | } | |
14253 | { | |
14254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14255 | (arg1)->SetPadding((wxSize const &)*arg2); | |
14256 | ||
14257 | wxPyEndAllowThreads(__tstate); | |
14258 | if (PyErr_Occurred()) SWIG_fail; | |
14259 | } | |
14260 | Py_INCREF(Py_None); resultobj = Py_None; | |
14261 | return resultobj; | |
14262 | fail: | |
14263 | return NULL; | |
14264 | } | |
14265 | ||
14266 | ||
14267 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14268 | PyObject *resultobj; | |
14269 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14270 | wxSize *arg2 = 0 ; | |
14271 | wxSize temp2 ; | |
14272 | PyObject * obj0 = 0 ; | |
14273 | PyObject * obj1 = 0 ; | |
14274 | char *kwnames[] = { | |
14275 | (char *) "self",(char *) "sz", NULL | |
14276 | }; | |
14277 | ||
14278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
14279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14280 | { | |
14281 | arg2 = &temp2; | |
14282 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14283 | } | |
14284 | { | |
14285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14286 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
14287 | ||
14288 | wxPyEndAllowThreads(__tstate); | |
14289 | if (PyErr_Occurred()) SWIG_fail; | |
14290 | } | |
14291 | Py_INCREF(Py_None); resultobj = Py_None; | |
14292 | return resultobj; | |
14293 | fail: | |
14294 | return NULL; | |
14295 | } | |
14296 | ||
14297 | ||
14298 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14299 | PyObject *resultobj; | |
14300 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14301 | wxPoint *arg2 = 0 ; | |
14302 | long *arg3 = (long *) 0 ; | |
14303 | int result; | |
14304 | wxPoint temp2 ; | |
14305 | long temp3 ; | |
14306 | PyObject * obj0 = 0 ; | |
14307 | PyObject * obj1 = 0 ; | |
14308 | char *kwnames[] = { | |
14309 | (char *) "self",(char *) "pt", NULL | |
14310 | }; | |
14311 | ||
14312 | arg3 = &temp3; | |
14313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
14314 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14315 | { | |
14316 | arg2 = &temp2; | |
14317 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14318 | } | |
14319 | { | |
14320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14321 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
14322 | ||
14323 | wxPyEndAllowThreads(__tstate); | |
14324 | if (PyErr_Occurred()) SWIG_fail; | |
14325 | } | |
8edf1c75 | 14326 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14327 | { |
14328 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14329 | resultobj = t_output_helper(resultobj,o); | |
14330 | } | |
14331 | return resultobj; | |
14332 | fail: | |
14333 | return NULL; | |
14334 | } | |
14335 | ||
14336 | ||
14337 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14338 | PyObject *resultobj; | |
14339 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14340 | wxSize *arg2 = 0 ; | |
14341 | wxSize result; | |
14342 | wxSize temp2 ; | |
14343 | PyObject * obj0 = 0 ; | |
14344 | PyObject * obj1 = 0 ; | |
14345 | char *kwnames[] = { | |
14346 | (char *) "self",(char *) "sizePage", NULL | |
14347 | }; | |
14348 | ||
14349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
14350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14351 | { | |
14352 | arg2 = &temp2; | |
14353 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14354 | } | |
14355 | { | |
14356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14357 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14358 | ||
14359 | wxPyEndAllowThreads(__tstate); | |
14360 | if (PyErr_Occurred()) SWIG_fail; | |
14361 | } | |
14362 | { | |
14363 | wxSize * resultptr; | |
14364 | resultptr = new wxSize((wxSize &) result); | |
14365 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14366 | } | |
14367 | return resultobj; | |
14368 | fail: | |
14369 | return NULL; | |
14370 | } | |
14371 | ||
14372 | ||
14373 | static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14374 | PyObject *resultobj; | |
14375 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14376 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14377 | wxColour *arg3 = 0 ; | |
14378 | wxColour temp3 ; | |
14379 | PyObject * obj0 = 0 ; | |
14380 | PyObject * obj1 = 0 ; | |
14381 | PyObject * obj2 = 0 ; | |
14382 | char *kwnames[] = { | |
14383 | (char *) "self",(char *) "window",(char *) "colour", NULL | |
14384 | }; | |
14385 | ||
14386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14388 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14389 | { | |
14390 | arg3 = &temp3; | |
14391 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14392 | } | |
14393 | { | |
14394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14395 | (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3); | |
14396 | ||
14397 | wxPyEndAllowThreads(__tstate); | |
14398 | if (PyErr_Occurred()) SWIG_fail; | |
14399 | } | |
14400 | Py_INCREF(Py_None); resultobj = Py_None; | |
14401 | return resultobj; | |
14402 | fail: | |
14403 | return NULL; | |
14404 | } | |
14405 | ||
14406 | ||
14407 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
14408 | PyObject *obj; | |
14409 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14410 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
14411 | Py_INCREF(obj); | |
14412 | return Py_BuildValue((char *)""); | |
14413 | } | |
14414 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14415 | PyObject *resultobj; | |
14416 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14417 | int arg2 = (int) 0 ; | |
14418 | int arg3 = (int) -1 ; | |
14419 | int arg4 = (int) -1 ; | |
14420 | wxNotebookEvent *result; | |
8edf1c75 RD |
14421 | PyObject * obj0 = 0 ; |
14422 | PyObject * obj1 = 0 ; | |
14423 | PyObject * obj2 = 0 ; | |
14424 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14425 | char *kwnames[] = { |
14426 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14427 | }; | |
14428 | ||
8edf1c75 RD |
14429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14430 | if (obj0) { | |
14431 | { | |
14432 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
14433 | if (PyErr_Occurred()) SWIG_fail; | |
14434 | } | |
14435 | } | |
14436 | if (obj1) { | |
14437 | { | |
14438 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14439 | if (PyErr_Occurred()) SWIG_fail; | |
14440 | } | |
14441 | } | |
14442 | if (obj2) { | |
14443 | { | |
14444 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14445 | if (PyErr_Occurred()) SWIG_fail; | |
14446 | } | |
14447 | } | |
14448 | if (obj3) { | |
14449 | { | |
14450 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14451 | if (PyErr_Occurred()) SWIG_fail; | |
14452 | } | |
14453 | } | |
d14a1e28 RD |
14454 | { |
14455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14456 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
14457 | ||
14458 | wxPyEndAllowThreads(__tstate); | |
14459 | if (PyErr_Occurred()) SWIG_fail; | |
14460 | } | |
14461 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookEvent, 1); | |
14462 | return resultobj; | |
14463 | fail: | |
14464 | return NULL; | |
14465 | } | |
14466 | ||
14467 | ||
14468 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
14469 | PyObject *obj; | |
14470 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14471 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
14472 | Py_INCREF(obj); | |
14473 | return Py_BuildValue((char *)""); | |
14474 | } | |
14475 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14476 | PyObject *resultobj; | |
14477 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 14478 | int arg2 ; |
d14a1e28 RD |
14479 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14480 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14481 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14482 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14483 | long arg5 = (long) 0 ; | |
14484 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
14485 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14486 | wxListbook *result; | |
14487 | wxPoint temp3 ; | |
14488 | wxSize temp4 ; | |
423f194a | 14489 | bool temp6 = False ; |
d14a1e28 | 14490 | PyObject * obj0 = 0 ; |
8edf1c75 | 14491 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14492 | PyObject * obj2 = 0 ; |
14493 | PyObject * obj3 = 0 ; | |
8edf1c75 | 14494 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14495 | PyObject * obj5 = 0 ; |
14496 | char *kwnames[] = { | |
14497 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14498 | }; | |
14499 | ||
8edf1c75 | 14500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 14501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14502 | { |
14503 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14504 | if (PyErr_Occurred()) SWIG_fail; | |
14505 | } | |
d14a1e28 RD |
14506 | if (obj2) { |
14507 | { | |
14508 | arg3 = &temp3; | |
14509 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14510 | } | |
14511 | } | |
14512 | if (obj3) { | |
14513 | { | |
14514 | arg4 = &temp4; | |
14515 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14516 | } | |
14517 | } | |
8edf1c75 RD |
14518 | if (obj4) { |
14519 | { | |
14520 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
14521 | if (PyErr_Occurred()) SWIG_fail; | |
14522 | } | |
14523 | } | |
d14a1e28 RD |
14524 | if (obj5) { |
14525 | { | |
14526 | arg6 = wxString_in_helper(obj5); | |
14527 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 14528 | temp6 = True; |
d14a1e28 RD |
14529 | } |
14530 | } | |
14531 | { | |
14532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14533 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14534 | ||
14535 | wxPyEndAllowThreads(__tstate); | |
14536 | if (PyErr_Occurred()) SWIG_fail; | |
14537 | } | |
14538 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
14539 | { | |
14540 | if (temp6) | |
14541 | delete arg6; | |
14542 | } | |
14543 | return resultobj; | |
14544 | fail: | |
14545 | { | |
14546 | if (temp6) | |
14547 | delete arg6; | |
14548 | } | |
14549 | return NULL; | |
14550 | } | |
14551 | ||
14552 | ||
14553 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14554 | PyObject *resultobj; | |
14555 | wxListbook *result; | |
14556 | char *kwnames[] = { | |
14557 | NULL | |
14558 | }; | |
14559 | ||
14560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
14561 | { | |
14562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14563 | result = (wxListbook *)new wxListbook(); | |
14564 | ||
14565 | wxPyEndAllowThreads(__tstate); | |
14566 | if (PyErr_Occurred()) SWIG_fail; | |
14567 | } | |
14568 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
14569 | return resultobj; | |
14570 | fail: | |
14571 | return NULL; | |
14572 | } | |
14573 | ||
14574 | ||
14575 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14576 | PyObject *resultobj; | |
14577 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14578 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14579 | int arg3 ; |
d14a1e28 RD |
14580 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14581 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14582 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14583 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14584 | long arg6 = (long) 0 ; | |
14585 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
14586 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14587 | bool result; | |
14588 | wxPoint temp4 ; | |
14589 | wxSize temp5 ; | |
423f194a | 14590 | bool temp7 = False ; |
d14a1e28 RD |
14591 | PyObject * obj0 = 0 ; |
14592 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14593 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14594 | PyObject * obj3 = 0 ; |
14595 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14596 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14597 | PyObject * obj6 = 0 ; |
14598 | char *kwnames[] = { | |
14599 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14600 | }; | |
14601 | ||
8edf1c75 | 14602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
14603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14604 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
14605 | { |
14606 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14607 | if (PyErr_Occurred()) SWIG_fail; | |
14608 | } | |
d14a1e28 RD |
14609 | if (obj3) { |
14610 | { | |
14611 | arg4 = &temp4; | |
14612 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14613 | } | |
14614 | } | |
14615 | if (obj4) { | |
14616 | { | |
14617 | arg5 = &temp5; | |
14618 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14619 | } | |
14620 | } | |
8edf1c75 RD |
14621 | if (obj5) { |
14622 | { | |
14623 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
14624 | if (PyErr_Occurred()) SWIG_fail; | |
14625 | } | |
14626 | } | |
d14a1e28 RD |
14627 | if (obj6) { |
14628 | { | |
14629 | arg7 = wxString_in_helper(obj6); | |
14630 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14631 | temp7 = True; |
d14a1e28 RD |
14632 | } |
14633 | } | |
14634 | { | |
14635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14636 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14637 | ||
14638 | wxPyEndAllowThreads(__tstate); | |
14639 | if (PyErr_Occurred()) SWIG_fail; | |
14640 | } | |
4e760a36 | 14641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14642 | { |
14643 | if (temp7) | |
14644 | delete arg7; | |
14645 | } | |
14646 | return resultobj; | |
14647 | fail: | |
14648 | { | |
14649 | if (temp7) | |
14650 | delete arg7; | |
14651 | } | |
14652 | return NULL; | |
14653 | } | |
14654 | ||
14655 | ||
14656 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14657 | PyObject *resultobj; | |
14658 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14659 | bool result; | |
14660 | PyObject * obj0 = 0 ; | |
14661 | char *kwnames[] = { | |
14662 | (char *) "self", NULL | |
14663 | }; | |
14664 | ||
14665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
14666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14667 | { | |
14668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14669 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
14670 | ||
14671 | wxPyEndAllowThreads(__tstate); | |
14672 | if (PyErr_Occurred()) SWIG_fail; | |
14673 | } | |
4e760a36 | 14674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14675 | return resultobj; |
14676 | fail: | |
14677 | return NULL; | |
14678 | } | |
14679 | ||
14680 | ||
14681 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
14682 | PyObject *obj; | |
14683 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14684 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
14685 | Py_INCREF(obj); | |
14686 | return Py_BuildValue((char *)""); | |
14687 | } | |
14688 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14689 | PyObject *resultobj; | |
14690 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14691 | int arg2 = (int) 0 ; | |
14692 | int arg3 = (int) -1 ; | |
14693 | int arg4 = (int) -1 ; | |
14694 | wxListbookEvent *result; | |
8edf1c75 RD |
14695 | PyObject * obj0 = 0 ; |
14696 | PyObject * obj1 = 0 ; | |
14697 | PyObject * obj2 = 0 ; | |
14698 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14699 | char *kwnames[] = { |
14700 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14701 | }; | |
14702 | ||
8edf1c75 RD |
14703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14704 | if (obj0) { | |
14705 | { | |
14706 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
14707 | if (PyErr_Occurred()) SWIG_fail; | |
14708 | } | |
14709 | } | |
14710 | if (obj1) { | |
14711 | { | |
14712 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14713 | if (PyErr_Occurred()) SWIG_fail; | |
14714 | } | |
14715 | } | |
14716 | if (obj2) { | |
14717 | { | |
14718 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14719 | if (PyErr_Occurred()) SWIG_fail; | |
14720 | } | |
14721 | } | |
14722 | if (obj3) { | |
14723 | { | |
14724 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14725 | if (PyErr_Occurred()) SWIG_fail; | |
14726 | } | |
14727 | } | |
d14a1e28 RD |
14728 | { |
14729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14730 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
14731 | ||
14732 | wxPyEndAllowThreads(__tstate); | |
14733 | if (PyErr_Occurred()) SWIG_fail; | |
14734 | } | |
14735 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbookEvent, 1); | |
14736 | return resultobj; | |
14737 | fail: | |
14738 | return NULL; | |
14739 | } | |
14740 | ||
14741 | ||
14742 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
14743 | PyObject *obj; | |
14744 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14745 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
14746 | Py_INCREF(obj); | |
14747 | return Py_BuildValue((char *)""); | |
14748 | } | |
14749 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14750 | PyObject *resultobj; | |
14751 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14752 | wxBookCtrlSizer *result; | |
14753 | PyObject * obj0 = 0 ; | |
14754 | char *kwnames[] = { | |
14755 | (char *) "nb", NULL | |
14756 | }; | |
14757 | ||
14758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
14759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14760 | { | |
14761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14762 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
14763 | ||
14764 | wxPyEndAllowThreads(__tstate); | |
14765 | if (PyErr_Occurred()) SWIG_fail; | |
14766 | } | |
14767 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlSizer, 1); | |
14768 | return resultobj; | |
14769 | fail: | |
14770 | return NULL; | |
14771 | } | |
14772 | ||
14773 | ||
14774 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14775 | PyObject *resultobj; | |
14776 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14777 | PyObject * obj0 = 0 ; | |
14778 | char *kwnames[] = { | |
14779 | (char *) "self", NULL | |
14780 | }; | |
14781 | ||
14782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14784 | { | |
14785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14786 | (arg1)->RecalcSizes(); | |
14787 | ||
14788 | wxPyEndAllowThreads(__tstate); | |
14789 | if (PyErr_Occurred()) SWIG_fail; | |
14790 | } | |
14791 | Py_INCREF(Py_None); resultobj = Py_None; | |
14792 | return resultobj; | |
14793 | fail: | |
14794 | return NULL; | |
14795 | } | |
14796 | ||
14797 | ||
14798 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14799 | PyObject *resultobj; | |
14800 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14801 | wxSize result; | |
14802 | PyObject * obj0 = 0 ; | |
14803 | char *kwnames[] = { | |
14804 | (char *) "self", NULL | |
14805 | }; | |
14806 | ||
14807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14809 | { | |
14810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14811 | result = (arg1)->CalcMin(); | |
14812 | ||
14813 | wxPyEndAllowThreads(__tstate); | |
14814 | if (PyErr_Occurred()) SWIG_fail; | |
14815 | } | |
14816 | { | |
14817 | wxSize * resultptr; | |
14818 | resultptr = new wxSize((wxSize &) result); | |
14819 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14820 | } | |
14821 | return resultobj; | |
14822 | fail: | |
14823 | return NULL; | |
14824 | } | |
14825 | ||
14826 | ||
14827 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14828 | PyObject *resultobj; | |
14829 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14830 | wxBookCtrl *result; | |
14831 | PyObject * obj0 = 0 ; | |
14832 | char *kwnames[] = { | |
14833 | (char *) "self", NULL | |
14834 | }; | |
14835 | ||
14836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
14837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14838 | { | |
14839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14840 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
14841 | ||
14842 | wxPyEndAllowThreads(__tstate); | |
14843 | if (PyErr_Occurred()) SWIG_fail; | |
14844 | } | |
14845 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrl, 0); | |
14846 | return resultobj; | |
14847 | fail: | |
14848 | return NULL; | |
14849 | } | |
14850 | ||
14851 | ||
14852 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
14853 | PyObject *obj; | |
14854 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14855 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
14856 | Py_INCREF(obj); | |
14857 | return Py_BuildValue((char *)""); | |
14858 | } | |
14859 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14860 | PyObject *resultobj; | |
14861 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14862 | wxNotebookSizer *result; | |
14863 | PyObject * obj0 = 0 ; | |
14864 | char *kwnames[] = { | |
14865 | (char *) "nb", NULL | |
14866 | }; | |
14867 | ||
14868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
14869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14870 | { | |
14871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14872 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
14873 | ||
14874 | wxPyEndAllowThreads(__tstate); | |
14875 | if (PyErr_Occurred()) SWIG_fail; | |
14876 | } | |
14877 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookSizer, 1); | |
14878 | return resultobj; | |
14879 | fail: | |
14880 | return NULL; | |
14881 | } | |
14882 | ||
14883 | ||
14884 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14885 | PyObject *resultobj; | |
14886 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14887 | PyObject * obj0 = 0 ; | |
14888 | char *kwnames[] = { | |
14889 | (char *) "self", NULL | |
14890 | }; | |
14891 | ||
14892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14894 | { | |
14895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14896 | (arg1)->RecalcSizes(); | |
14897 | ||
14898 | wxPyEndAllowThreads(__tstate); | |
14899 | if (PyErr_Occurred()) SWIG_fail; | |
14900 | } | |
14901 | Py_INCREF(Py_None); resultobj = Py_None; | |
14902 | return resultobj; | |
14903 | fail: | |
14904 | return NULL; | |
14905 | } | |
14906 | ||
14907 | ||
14908 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14909 | PyObject *resultobj; | |
14910 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14911 | wxSize result; | |
14912 | PyObject * obj0 = 0 ; | |
14913 | char *kwnames[] = { | |
14914 | (char *) "self", NULL | |
14915 | }; | |
14916 | ||
14917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14919 | { | |
14920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14921 | result = (arg1)->CalcMin(); | |
14922 | ||
14923 | wxPyEndAllowThreads(__tstate); | |
14924 | if (PyErr_Occurred()) SWIG_fail; | |
14925 | } | |
14926 | { | |
14927 | wxSize * resultptr; | |
14928 | resultptr = new wxSize((wxSize &) result); | |
14929 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14930 | } | |
14931 | return resultobj; | |
14932 | fail: | |
14933 | return NULL; | |
14934 | } | |
14935 | ||
14936 | ||
14937 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14938 | PyObject *resultobj; | |
14939 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14940 | wxNotebook *result; | |
14941 | PyObject * obj0 = 0 ; | |
14942 | char *kwnames[] = { | |
14943 | (char *) "self", NULL | |
14944 | }; | |
14945 | ||
14946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
14947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14948 | { | |
14949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14950 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
14951 | ||
14952 | wxPyEndAllowThreads(__tstate); | |
14953 | if (PyErr_Occurred()) SWIG_fail; | |
14954 | } | |
14955 | { | |
14956 | resultobj = wxPyMake_wxObject(result); | |
14957 | } | |
14958 | return resultobj; | |
14959 | fail: | |
14960 | return NULL; | |
14961 | } | |
14962 | ||
14963 | ||
14964 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
14965 | PyObject *obj; | |
14966 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14967 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
14968 | Py_INCREF(obj); | |
14969 | return Py_BuildValue((char *)""); | |
14970 | } | |
14971 | static PyObject *_wrap_ToolBarToolBase_GetId(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_GetId",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)->GetId(); | |
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_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14997 | PyObject *resultobj; | |
14998 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14999 | wxControl *result; | |
15000 | PyObject * obj0 = 0 ; | |
15001 | char *kwnames[] = { | |
15002 | (char *) "self", NULL | |
15003 | }; | |
15004 | ||
15005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",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 = (wxControl *)(arg1)->GetControl(); | |
15010 | ||
15011 | wxPyEndAllowThreads(__tstate); | |
15012 | if (PyErr_Occurred()) SWIG_fail; | |
15013 | } | |
15014 | { | |
15015 | resultobj = wxPyMake_wxObject(result); | |
15016 | } | |
15017 | return resultobj; | |
15018 | fail: | |
15019 | return NULL; | |
15020 | } | |
15021 | ||
15022 | ||
15023 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15024 | PyObject *resultobj; | |
15025 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15026 | wxToolBarBase *result; | |
15027 | PyObject * obj0 = 0 ; | |
15028 | char *kwnames[] = { | |
15029 | (char *) "self", NULL | |
15030 | }; | |
15031 | ||
15032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
15033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15034 | { | |
15035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15036 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
15037 | ||
15038 | wxPyEndAllowThreads(__tstate); | |
15039 | if (PyErr_Occurred()) SWIG_fail; | |
15040 | } | |
15041 | { | |
15042 | resultobj = wxPyMake_wxObject(result); | |
15043 | } | |
15044 | return resultobj; | |
15045 | fail: | |
15046 | return NULL; | |
15047 | } | |
15048 | ||
15049 | ||
15050 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15051 | PyObject *resultobj; | |
15052 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15053 | int result; | |
15054 | PyObject * obj0 = 0 ; | |
15055 | char *kwnames[] = { | |
15056 | (char *) "self", NULL | |
15057 | }; | |
15058 | ||
15059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
15060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15061 | { | |
15062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15063 | result = (int)(arg1)->IsButton(); | |
15064 | ||
15065 | wxPyEndAllowThreads(__tstate); | |
15066 | if (PyErr_Occurred()) SWIG_fail; | |
15067 | } | |
8edf1c75 | 15068 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15069 | return resultobj; |
15070 | fail: | |
15071 | return NULL; | |
15072 | } | |
15073 | ||
15074 | ||
15075 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15076 | PyObject *resultobj; | |
15077 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15078 | int result; | |
15079 | PyObject * obj0 = 0 ; | |
15080 | char *kwnames[] = { | |
15081 | (char *) "self", NULL | |
15082 | }; | |
15083 | ||
15084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
15085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15086 | { | |
15087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15088 | result = (int)(arg1)->IsControl(); | |
15089 | ||
15090 | wxPyEndAllowThreads(__tstate); | |
15091 | if (PyErr_Occurred()) SWIG_fail; | |
15092 | } | |
8edf1c75 | 15093 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15094 | return resultobj; |
15095 | fail: | |
15096 | return NULL; | |
15097 | } | |
15098 | ||
15099 | ||
15100 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15101 | PyObject *resultobj; | |
15102 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15103 | int result; | |
15104 | PyObject * obj0 = 0 ; | |
15105 | char *kwnames[] = { | |
15106 | (char *) "self", NULL | |
15107 | }; | |
15108 | ||
15109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
15110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15111 | { | |
15112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15113 | result = (int)(arg1)->IsSeparator(); | |
15114 | ||
15115 | wxPyEndAllowThreads(__tstate); | |
15116 | if (PyErr_Occurred()) SWIG_fail; | |
15117 | } | |
8edf1c75 | 15118 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15119 | return resultobj; |
15120 | fail: | |
15121 | return NULL; | |
15122 | } | |
15123 | ||
15124 | ||
15125 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15126 | PyObject *resultobj; | |
15127 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15128 | int result; | |
15129 | PyObject * obj0 = 0 ; | |
15130 | char *kwnames[] = { | |
15131 | (char *) "self", NULL | |
15132 | }; | |
15133 | ||
15134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
15135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15136 | { | |
15137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15138 | result = (int)(arg1)->GetStyle(); | |
15139 | ||
15140 | wxPyEndAllowThreads(__tstate); | |
15141 | if (PyErr_Occurred()) SWIG_fail; | |
15142 | } | |
8edf1c75 | 15143 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15144 | return resultobj; |
15145 | fail: | |
15146 | return NULL; | |
15147 | } | |
15148 | ||
15149 | ||
15150 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15151 | PyObject *resultobj; | |
15152 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15153 | int result; | |
15154 | PyObject * obj0 = 0 ; | |
15155 | char *kwnames[] = { | |
15156 | (char *) "self", NULL | |
15157 | }; | |
15158 | ||
15159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
15160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15161 | { | |
15162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15163 | result = (int)(arg1)->GetKind(); | |
15164 | ||
15165 | wxPyEndAllowThreads(__tstate); | |
15166 | if (PyErr_Occurred()) SWIG_fail; | |
15167 | } | |
8edf1c75 | 15168 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15169 | return resultobj; |
15170 | fail: | |
15171 | return NULL; | |
15172 | } | |
15173 | ||
15174 | ||
15175 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15176 | PyObject *resultobj; | |
15177 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15178 | bool result; | |
15179 | PyObject * obj0 = 0 ; | |
15180 | char *kwnames[] = { | |
15181 | (char *) "self", NULL | |
15182 | }; | |
15183 | ||
15184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
15185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15186 | { | |
15187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15188 | result = (bool)(arg1)->IsEnabled(); | |
15189 | ||
15190 | wxPyEndAllowThreads(__tstate); | |
15191 | if (PyErr_Occurred()) SWIG_fail; | |
15192 | } | |
4e760a36 | 15193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15194 | return resultobj; |
15195 | fail: | |
15196 | return NULL; | |
15197 | } | |
15198 | ||
15199 | ||
15200 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15201 | PyObject *resultobj; | |
15202 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15203 | bool result; | |
15204 | PyObject * obj0 = 0 ; | |
15205 | char *kwnames[] = { | |
15206 | (char *) "self", NULL | |
15207 | }; | |
15208 | ||
15209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
15210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15211 | { | |
15212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15213 | result = (bool)(arg1)->IsToggled(); | |
15214 | ||
15215 | wxPyEndAllowThreads(__tstate); | |
15216 | if (PyErr_Occurred()) SWIG_fail; | |
15217 | } | |
4e760a36 | 15218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15219 | return resultobj; |
15220 | fail: | |
15221 | return NULL; | |
15222 | } | |
15223 | ||
15224 | ||
15225 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15226 | PyObject *resultobj; | |
15227 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15228 | bool result; | |
15229 | PyObject * obj0 = 0 ; | |
15230 | char *kwnames[] = { | |
15231 | (char *) "self", NULL | |
15232 | }; | |
15233 | ||
15234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
15235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15236 | { | |
15237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15238 | result = (bool)(arg1)->CanBeToggled(); | |
15239 | ||
15240 | wxPyEndAllowThreads(__tstate); | |
15241 | if (PyErr_Occurred()) SWIG_fail; | |
15242 | } | |
4e760a36 | 15243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15244 | return resultobj; |
15245 | fail: | |
15246 | return NULL; | |
15247 | } | |
15248 | ||
15249 | ||
15250 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15251 | PyObject *resultobj; | |
15252 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15253 | wxBitmap *result; | |
15254 | PyObject * obj0 = 0 ; | |
15255 | char *kwnames[] = { | |
15256 | (char *) "self", NULL | |
15257 | }; | |
15258 | ||
15259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
15260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15261 | { | |
15262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15263 | { | |
15264 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
15265 | result = (wxBitmap *) &_result_ref; | |
15266 | } | |
15267 | ||
15268 | wxPyEndAllowThreads(__tstate); | |
15269 | if (PyErr_Occurred()) SWIG_fail; | |
15270 | } | |
15271 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
15272 | return resultobj; | |
15273 | fail: | |
15274 | return NULL; | |
15275 | } | |
15276 | ||
15277 | ||
15278 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15279 | PyObject *resultobj; | |
15280 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15281 | wxBitmap *result; | |
15282 | PyObject * obj0 = 0 ; | |
15283 | char *kwnames[] = { | |
15284 | (char *) "self", NULL | |
15285 | }; | |
15286 | ||
15287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
15288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15289 | { | |
15290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15291 | { | |
15292 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
15293 | result = (wxBitmap *) &_result_ref; | |
15294 | } | |
15295 | ||
15296 | wxPyEndAllowThreads(__tstate); | |
15297 | if (PyErr_Occurred()) SWIG_fail; | |
15298 | } | |
15299 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
15300 | return resultobj; | |
15301 | fail: | |
15302 | return NULL; | |
15303 | } | |
15304 | ||
15305 | ||
15306 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15307 | PyObject *resultobj; | |
15308 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15309 | wxBitmap result; | |
15310 | PyObject * obj0 = 0 ; | |
15311 | char *kwnames[] = { | |
15312 | (char *) "self", NULL | |
15313 | }; | |
15314 | ||
15315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
15316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15317 | { | |
15318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15319 | result = (arg1)->GetBitmap(); | |
15320 | ||
15321 | wxPyEndAllowThreads(__tstate); | |
15322 | if (PyErr_Occurred()) SWIG_fail; | |
15323 | } | |
15324 | { | |
15325 | wxBitmap * resultptr; | |
15326 | resultptr = new wxBitmap((wxBitmap &) result); | |
15327 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
15328 | } | |
15329 | return resultobj; | |
15330 | fail: | |
15331 | return NULL; | |
15332 | } | |
15333 | ||
15334 | ||
15335 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15336 | PyObject *resultobj; | |
15337 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15338 | wxString result; | |
15339 | PyObject * obj0 = 0 ; | |
15340 | char *kwnames[] = { | |
15341 | (char *) "self", NULL | |
15342 | }; | |
15343 | ||
15344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
15345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15346 | { | |
15347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15348 | result = (arg1)->GetLabel(); | |
15349 | ||
15350 | wxPyEndAllowThreads(__tstate); | |
15351 | if (PyErr_Occurred()) SWIG_fail; | |
15352 | } | |
15353 | { | |
15354 | #if wxUSE_UNICODE | |
15355 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15356 | #else | |
15357 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15358 | #endif | |
15359 | } | |
15360 | return resultobj; | |
15361 | fail: | |
15362 | return NULL; | |
15363 | } | |
15364 | ||
15365 | ||
15366 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15367 | PyObject *resultobj; | |
15368 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15369 | wxString result; | |
15370 | PyObject * obj0 = 0 ; | |
15371 | char *kwnames[] = { | |
15372 | (char *) "self", NULL | |
15373 | }; | |
15374 | ||
15375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
15376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15377 | { | |
15378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15379 | result = (arg1)->GetShortHelp(); | |
15380 | ||
15381 | wxPyEndAllowThreads(__tstate); | |
15382 | if (PyErr_Occurred()) SWIG_fail; | |
15383 | } | |
15384 | { | |
15385 | #if wxUSE_UNICODE | |
15386 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15387 | #else | |
15388 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15389 | #endif | |
15390 | } | |
15391 | return resultobj; | |
15392 | fail: | |
15393 | return NULL; | |
15394 | } | |
15395 | ||
15396 | ||
15397 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15398 | PyObject *resultobj; | |
15399 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15400 | wxString result; | |
15401 | PyObject * obj0 = 0 ; | |
15402 | char *kwnames[] = { | |
15403 | (char *) "self", NULL | |
15404 | }; | |
15405 | ||
15406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
15407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15408 | { | |
15409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15410 | result = (arg1)->GetLongHelp(); | |
15411 | ||
15412 | wxPyEndAllowThreads(__tstate); | |
15413 | if (PyErr_Occurred()) SWIG_fail; | |
15414 | } | |
15415 | { | |
15416 | #if wxUSE_UNICODE | |
15417 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15418 | #else | |
15419 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15420 | #endif | |
15421 | } | |
15422 | return resultobj; | |
15423 | fail: | |
15424 | return NULL; | |
15425 | } | |
15426 | ||
15427 | ||
15428 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15429 | PyObject *resultobj; | |
15430 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15431 | bool arg2 ; | |
15432 | bool result; | |
15433 | PyObject * obj0 = 0 ; | |
15434 | PyObject * obj1 = 0 ; | |
15435 | char *kwnames[] = { | |
15436 | (char *) "self",(char *) "enable", NULL | |
15437 | }; | |
15438 | ||
15439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15441 | { |
8edf1c75 | 15442 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15443 | if (PyErr_Occurred()) SWIG_fail; |
15444 | } | |
d14a1e28 RD |
15445 | { |
15446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15447 | result = (bool)(arg1)->Enable(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 | return resultobj; |
15454 | fail: | |
15455 | return NULL; | |
15456 | } | |
15457 | ||
15458 | ||
15459 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15460 | PyObject *resultobj; | |
15461 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15462 | PyObject * obj0 = 0 ; | |
15463 | char *kwnames[] = { | |
15464 | (char *) "self", NULL | |
15465 | }; | |
15466 | ||
15467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
15468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15469 | { | |
15470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15471 | (arg1)->Toggle(); | |
15472 | ||
15473 | wxPyEndAllowThreads(__tstate); | |
15474 | if (PyErr_Occurred()) SWIG_fail; | |
15475 | } | |
15476 | Py_INCREF(Py_None); resultobj = Py_None; | |
15477 | return resultobj; | |
15478 | fail: | |
15479 | return NULL; | |
15480 | } | |
15481 | ||
15482 | ||
15483 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15484 | PyObject *resultobj; | |
15485 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15486 | bool arg2 ; | |
15487 | bool result; | |
15488 | PyObject * obj0 = 0 ; | |
15489 | PyObject * obj1 = 0 ; | |
15490 | char *kwnames[] = { | |
15491 | (char *) "self",(char *) "toggle", NULL | |
15492 | }; | |
15493 | ||
15494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
15495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15496 | { |
8edf1c75 | 15497 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15498 | if (PyErr_Occurred()) SWIG_fail; |
15499 | } | |
d14a1e28 RD |
15500 | { |
15501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15502 | result = (bool)(arg1)->SetToggle(arg2); | |
15503 | ||
15504 | wxPyEndAllowThreads(__tstate); | |
15505 | if (PyErr_Occurred()) SWIG_fail; | |
15506 | } | |
4e760a36 | 15507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15508 | return resultobj; |
15509 | fail: | |
15510 | return NULL; | |
15511 | } | |
15512 | ||
15513 | ||
15514 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15515 | PyObject *resultobj; | |
15516 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15517 | wxString *arg2 = 0 ; | |
15518 | bool result; | |
423f194a | 15519 | bool temp2 = False ; |
d14a1e28 RD |
15520 | PyObject * obj0 = 0 ; |
15521 | PyObject * obj1 = 0 ; | |
15522 | char *kwnames[] = { | |
15523 | (char *) "self",(char *) "help", NULL | |
15524 | }; | |
15525 | ||
15526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
15527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15528 | { | |
15529 | arg2 = wxString_in_helper(obj1); | |
15530 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15531 | temp2 = True; |
d14a1e28 RD |
15532 | } |
15533 | { | |
15534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15535 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
15536 | ||
15537 | wxPyEndAllowThreads(__tstate); | |
15538 | if (PyErr_Occurred()) SWIG_fail; | |
15539 | } | |
4e760a36 | 15540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15541 | { |
15542 | if (temp2) | |
15543 | delete arg2; | |
15544 | } | |
15545 | return resultobj; | |
15546 | fail: | |
15547 | { | |
15548 | if (temp2) | |
15549 | delete arg2; | |
15550 | } | |
15551 | return NULL; | |
15552 | } | |
15553 | ||
15554 | ||
15555 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15556 | PyObject *resultobj; | |
15557 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15558 | wxString *arg2 = 0 ; | |
15559 | bool result; | |
423f194a | 15560 | bool temp2 = False ; |
d14a1e28 RD |
15561 | PyObject * obj0 = 0 ; |
15562 | PyObject * obj1 = 0 ; | |
15563 | char *kwnames[] = { | |
15564 | (char *) "self",(char *) "help", NULL | |
15565 | }; | |
15566 | ||
15567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15569 | { | |
15570 | arg2 = wxString_in_helper(obj1); | |
15571 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15572 | temp2 = True; |
d14a1e28 RD |
15573 | } |
15574 | { | |
15575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15576 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
15577 | ||
15578 | wxPyEndAllowThreads(__tstate); | |
15579 | if (PyErr_Occurred()) SWIG_fail; | |
15580 | } | |
4e760a36 | 15581 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15582 | { |
15583 | if (temp2) | |
15584 | delete arg2; | |
15585 | } | |
15586 | return resultobj; | |
15587 | fail: | |
15588 | { | |
15589 | if (temp2) | |
15590 | delete arg2; | |
15591 | } | |
15592 | return NULL; | |
15593 | } | |
15594 | ||
15595 | ||
15596 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15597 | PyObject *resultobj; | |
15598 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15599 | wxBitmap *arg2 = 0 ; | |
15600 | PyObject * obj0 = 0 ; | |
15601 | PyObject * obj1 = 0 ; | |
15602 | char *kwnames[] = { | |
15603 | (char *) "self",(char *) "bmp", NULL | |
15604 | }; | |
15605 | ||
15606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15608 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15609 | if (arg2 == NULL) { | |
15610 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15611 | } | |
15612 | { | |
15613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15614 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
15615 | ||
15616 | wxPyEndAllowThreads(__tstate); | |
15617 | if (PyErr_Occurred()) SWIG_fail; | |
15618 | } | |
15619 | Py_INCREF(Py_None); resultobj = Py_None; | |
15620 | return resultobj; | |
15621 | fail: | |
15622 | return NULL; | |
15623 | } | |
15624 | ||
15625 | ||
15626 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15627 | PyObject *resultobj; | |
15628 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15629 | wxBitmap *arg2 = 0 ; | |
15630 | PyObject * obj0 = 0 ; | |
15631 | PyObject * obj1 = 0 ; | |
15632 | char *kwnames[] = { | |
15633 | (char *) "self",(char *) "bmp", NULL | |
15634 | }; | |
15635 | ||
15636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15638 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15639 | if (arg2 == NULL) { | |
15640 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15641 | } | |
15642 | { | |
15643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15644 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
15645 | ||
15646 | wxPyEndAllowThreads(__tstate); | |
15647 | if (PyErr_Occurred()) SWIG_fail; | |
15648 | } | |
15649 | Py_INCREF(Py_None); resultobj = Py_None; | |
15650 | return resultobj; | |
15651 | fail: | |
15652 | return NULL; | |
15653 | } | |
15654 | ||
15655 | ||
15656 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15657 | PyObject *resultobj; | |
15658 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15659 | wxString *arg2 = 0 ; | |
423f194a | 15660 | bool temp2 = False ; |
d14a1e28 RD |
15661 | PyObject * obj0 = 0 ; |
15662 | PyObject * obj1 = 0 ; | |
15663 | char *kwnames[] = { | |
15664 | (char *) "self",(char *) "label", NULL | |
15665 | }; | |
15666 | ||
15667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15669 | { | |
15670 | arg2 = wxString_in_helper(obj1); | |
15671 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15672 | temp2 = True; |
d14a1e28 RD |
15673 | } |
15674 | { | |
15675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15676 | (arg1)->SetLabel((wxString const &)*arg2); | |
15677 | ||
15678 | wxPyEndAllowThreads(__tstate); | |
15679 | if (PyErr_Occurred()) SWIG_fail; | |
15680 | } | |
15681 | Py_INCREF(Py_None); resultobj = Py_None; | |
15682 | { | |
15683 | if (temp2) | |
15684 | delete arg2; | |
15685 | } | |
15686 | return resultobj; | |
15687 | fail: | |
15688 | { | |
15689 | if (temp2) | |
15690 | delete arg2; | |
15691 | } | |
15692 | return NULL; | |
15693 | } | |
15694 | ||
15695 | ||
15696 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15697 | PyObject *resultobj; | |
15698 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15699 | PyObject * obj0 = 0 ; | |
15700 | char *kwnames[] = { | |
15701 | (char *) "self", NULL | |
15702 | }; | |
15703 | ||
15704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
15705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15706 | { | |
15707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15708 | (arg1)->Detach(); | |
15709 | ||
15710 | wxPyEndAllowThreads(__tstate); | |
15711 | if (PyErr_Occurred()) SWIG_fail; | |
15712 | } | |
15713 | Py_INCREF(Py_None); resultobj = Py_None; | |
15714 | return resultobj; | |
15715 | fail: | |
15716 | return NULL; | |
15717 | } | |
15718 | ||
15719 | ||
15720 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15721 | PyObject *resultobj; | |
15722 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15723 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
15724 | PyObject * obj0 = 0 ; | |
15725 | PyObject * obj1 = 0 ; | |
15726 | char *kwnames[] = { | |
15727 | (char *) "self",(char *) "tbar", NULL | |
15728 | }; | |
15729 | ||
15730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15732 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15733 | { | |
15734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15735 | (arg1)->Attach(arg2); | |
15736 | ||
15737 | wxPyEndAllowThreads(__tstate); | |
15738 | if (PyErr_Occurred()) SWIG_fail; | |
15739 | } | |
15740 | Py_INCREF(Py_None); resultobj = Py_None; | |
15741 | return resultobj; | |
15742 | fail: | |
15743 | return NULL; | |
15744 | } | |
15745 | ||
15746 | ||
15747 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15748 | PyObject *resultobj; | |
15749 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15750 | PyObject *result; | |
15751 | PyObject * obj0 = 0 ; | |
15752 | char *kwnames[] = { | |
15753 | (char *) "self", NULL | |
15754 | }; | |
15755 | ||
15756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15758 | { | |
15759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15760 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
15761 | ||
15762 | wxPyEndAllowThreads(__tstate); | |
15763 | if (PyErr_Occurred()) SWIG_fail; | |
15764 | } | |
15765 | resultobj = result; | |
15766 | return resultobj; | |
15767 | fail: | |
15768 | return NULL; | |
15769 | } | |
15770 | ||
15771 | ||
15772 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15773 | PyObject *resultobj; | |
15774 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15775 | PyObject *arg2 = (PyObject *) 0 ; | |
15776 | PyObject * obj0 = 0 ; | |
15777 | PyObject * obj1 = 0 ; | |
15778 | char *kwnames[] = { | |
15779 | (char *) "self",(char *) "clientData", NULL | |
15780 | }; | |
15781 | ||
15782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15784 | arg2 = obj1; | |
15785 | { | |
15786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15787 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
15788 | ||
15789 | wxPyEndAllowThreads(__tstate); | |
15790 | if (PyErr_Occurred()) SWIG_fail; | |
15791 | } | |
15792 | Py_INCREF(Py_None); resultobj = Py_None; | |
15793 | return resultobj; | |
15794 | fail: | |
15795 | return NULL; | |
15796 | } | |
15797 | ||
15798 | ||
15799 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
15800 | PyObject *obj; | |
15801 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15802 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
15803 | Py_INCREF(obj); | |
15804 | return Py_BuildValue((char *)""); | |
15805 | } | |
15806 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15807 | PyObject *resultobj; | |
15808 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15809 | int arg2 ; | |
15810 | wxString *arg3 = 0 ; | |
15811 | wxBitmap *arg4 = 0 ; | |
15812 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
15813 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
15814 | int arg6 = (int) wxITEM_NORMAL ; | |
15815 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15816 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15817 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15818 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15819 | PyObject *arg9 = (PyObject *) NULL ; | |
15820 | wxToolBarToolBase *result; | |
423f194a RD |
15821 | bool temp3 = False ; |
15822 | bool temp7 = False ; | |
15823 | bool temp8 = False ; | |
d14a1e28 | 15824 | PyObject * obj0 = 0 ; |
8edf1c75 | 15825 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15826 | PyObject * obj2 = 0 ; |
15827 | PyObject * obj3 = 0 ; | |
15828 | PyObject * obj4 = 0 ; | |
8edf1c75 | 15829 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15830 | PyObject * obj6 = 0 ; |
15831 | PyObject * obj7 = 0 ; | |
15832 | PyObject * obj8 = 0 ; | |
15833 | char *kwnames[] = { | |
15834 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15835 | }; | |
15836 | ||
8edf1c75 | 15837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 15838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15839 | { |
15840 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15841 | if (PyErr_Occurred()) SWIG_fail; | |
15842 | } | |
d14a1e28 RD |
15843 | { |
15844 | arg3 = wxString_in_helper(obj2); | |
15845 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 15846 | temp3 = True; |
d14a1e28 RD |
15847 | } |
15848 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15849 | if (arg4 == NULL) { | |
15850 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15851 | } | |
15852 | if (obj4) { | |
15853 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15854 | if (arg5 == NULL) { | |
15855 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15856 | } | |
15857 | } | |
8edf1c75 RD |
15858 | if (obj5) { |
15859 | { | |
15860 | arg6 = (wxItemKind) SWIG_PyObj_AsInt(obj5); | |
15861 | if (PyErr_Occurred()) SWIG_fail; | |
15862 | } | |
15863 | } | |
d14a1e28 RD |
15864 | if (obj6) { |
15865 | { | |
15866 | arg7 = wxString_in_helper(obj6); | |
15867 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 15868 | temp7 = True; |
d14a1e28 RD |
15869 | } |
15870 | } | |
15871 | if (obj7) { | |
15872 | { | |
15873 | arg8 = wxString_in_helper(obj7); | |
15874 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 15875 | temp8 = True; |
d14a1e28 RD |
15876 | } |
15877 | } | |
15878 | if (obj8) { | |
15879 | arg9 = obj8; | |
15880 | } | |
15881 | { | |
15882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15883 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
15884 | ||
15885 | wxPyEndAllowThreads(__tstate); | |
15886 | if (PyErr_Occurred()) SWIG_fail; | |
15887 | } | |
15888 | { | |
15889 | resultobj = wxPyMake_wxObject(result); | |
15890 | } | |
15891 | { | |
15892 | if (temp3) | |
15893 | delete arg3; | |
15894 | } | |
15895 | { | |
15896 | if (temp7) | |
15897 | delete arg7; | |
15898 | } | |
15899 | { | |
15900 | if (temp8) | |
15901 | delete arg8; | |
15902 | } | |
15903 | return resultobj; | |
15904 | fail: | |
15905 | { | |
15906 | if (temp3) | |
15907 | delete arg3; | |
15908 | } | |
15909 | { | |
15910 | if (temp7) | |
15911 | delete arg7; | |
15912 | } | |
15913 | { | |
15914 | if (temp8) | |
15915 | delete arg8; | |
15916 | } | |
15917 | return NULL; | |
15918 | } | |
15919 | ||
15920 | ||
15921 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15922 | PyObject *resultobj; | |
15923 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15924 | size_t arg2 ; | |
15925 | int arg3 ; | |
15926 | wxString *arg4 = 0 ; | |
15927 | wxBitmap *arg5 = 0 ; | |
15928 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
15929 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
15930 | int arg7 = (int) wxITEM_NORMAL ; | |
15931 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15932 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15933 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
15934 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
15935 | PyObject *arg10 = (PyObject *) NULL ; | |
15936 | wxToolBarToolBase *result; | |
423f194a RD |
15937 | bool temp4 = False ; |
15938 | bool temp8 = False ; | |
15939 | bool temp9 = False ; | |
d14a1e28 RD |
15940 | PyObject * obj0 = 0 ; |
15941 | PyObject * obj1 = 0 ; | |
8edf1c75 | 15942 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15943 | PyObject * obj3 = 0 ; |
15944 | PyObject * obj4 = 0 ; | |
15945 | PyObject * obj5 = 0 ; | |
8edf1c75 | 15946 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
15947 | PyObject * obj7 = 0 ; |
15948 | PyObject * obj8 = 0 ; | |
15949 | PyObject * obj9 = 0 ; | |
15950 | char *kwnames[] = { | |
15951 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15952 | }; | |
15953 | ||
8edf1c75 | 15954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 15955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 15956 | { |
8edf1c75 RD |
15957 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
15958 | if (PyErr_Occurred()) SWIG_fail; | |
15959 | } | |
15960 | { | |
15961 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
15962 | if (PyErr_Occurred()) SWIG_fail; |
15963 | } | |
d14a1e28 RD |
15964 | { |
15965 | arg4 = wxString_in_helper(obj3); | |
15966 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 15967 | temp4 = True; |
d14a1e28 RD |
15968 | } |
15969 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15970 | if (arg5 == NULL) { | |
15971 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15972 | } | |
15973 | if (obj5) { | |
15974 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15975 | if (arg6 == NULL) { | |
15976 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15977 | } | |
15978 | } | |
8edf1c75 RD |
15979 | if (obj6) { |
15980 | { | |
15981 | arg7 = (wxItemKind) SWIG_PyObj_AsInt(obj6); | |
15982 | if (PyErr_Occurred()) SWIG_fail; | |
15983 | } | |
15984 | } | |
d14a1e28 RD |
15985 | if (obj7) { |
15986 | { | |
15987 | arg8 = wxString_in_helper(obj7); | |
15988 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 15989 | temp8 = True; |
d14a1e28 RD |
15990 | } |
15991 | } | |
15992 | if (obj8) { | |
15993 | { | |
15994 | arg9 = wxString_in_helper(obj8); | |
15995 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 15996 | temp9 = True; |
d14a1e28 RD |
15997 | } |
15998 | } | |
15999 | if (obj9) { | |
16000 | arg10 = obj9; | |
16001 | } | |
16002 | { | |
16003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16004 | 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); | |
16005 | ||
16006 | wxPyEndAllowThreads(__tstate); | |
16007 | if (PyErr_Occurred()) SWIG_fail; | |
16008 | } | |
16009 | { | |
16010 | resultobj = wxPyMake_wxObject(result); | |
16011 | } | |
16012 | { | |
16013 | if (temp4) | |
16014 | delete arg4; | |
16015 | } | |
16016 | { | |
16017 | if (temp8) | |
16018 | delete arg8; | |
16019 | } | |
16020 | { | |
16021 | if (temp9) | |
16022 | delete arg9; | |
16023 | } | |
16024 | return resultobj; | |
16025 | fail: | |
16026 | { | |
16027 | if (temp4) | |
16028 | delete arg4; | |
16029 | } | |
16030 | { | |
16031 | if (temp8) | |
16032 | delete arg8; | |
16033 | } | |
16034 | { | |
16035 | if (temp9) | |
16036 | delete arg9; | |
16037 | } | |
16038 | return NULL; | |
16039 | } | |
16040 | ||
16041 | ||
d03fd34d RD |
16042 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
16043 | PyObject *resultobj; | |
16044 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16045 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
16046 | wxToolBarToolBase *result; | |
16047 | PyObject * obj0 = 0 ; | |
16048 | PyObject * obj1 = 0 ; | |
16049 | char *kwnames[] = { | |
16050 | (char *) "self",(char *) "tool", NULL | |
16051 | }; | |
16052 | ||
16053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
16054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16055 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16056 | { | |
16057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16058 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
16059 | ||
16060 | wxPyEndAllowThreads(__tstate); | |
16061 | if (PyErr_Occurred()) SWIG_fail; | |
16062 | } | |
16063 | { | |
16064 | resultobj = wxPyMake_wxObject(result); | |
16065 | } | |
16066 | return resultobj; | |
16067 | fail: | |
16068 | return NULL; | |
16069 | } | |
16070 | ||
16071 | ||
16072 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16073 | PyObject *resultobj; | |
16074 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16075 | size_t arg2 ; | |
16076 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
16077 | wxToolBarToolBase *result; | |
16078 | PyObject * obj0 = 0 ; | |
16079 | PyObject * obj1 = 0 ; | |
16080 | PyObject * obj2 = 0 ; | |
16081 | char *kwnames[] = { | |
16082 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
16083 | }; | |
16084 | ||
16085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16087 | { |
8edf1c75 | 16088 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
16089 | if (PyErr_Occurred()) SWIG_fail; |
16090 | } | |
d03fd34d RD |
16091 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
16092 | { | |
16093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16094 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
16095 | ||
16096 | wxPyEndAllowThreads(__tstate); | |
16097 | if (PyErr_Occurred()) SWIG_fail; | |
16098 | } | |
16099 | { | |
16100 | resultobj = wxPyMake_wxObject(result); | |
16101 | } | |
16102 | return resultobj; | |
16103 | fail: | |
16104 | return NULL; | |
16105 | } | |
16106 | ||
16107 | ||
d14a1e28 RD |
16108 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
16109 | PyObject *resultobj; | |
16110 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16111 | wxControl *arg2 = (wxControl *) 0 ; | |
16112 | wxToolBarToolBase *result; | |
16113 | PyObject * obj0 = 0 ; | |
16114 | PyObject * obj1 = 0 ; | |
16115 | char *kwnames[] = { | |
16116 | (char *) "self",(char *) "control", NULL | |
16117 | }; | |
16118 | ||
16119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
16120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16121 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16122 | { | |
16123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16124 | result = (wxToolBarToolBase *)(arg1)->AddControl(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_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16139 | PyObject *resultobj; | |
16140 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16141 | size_t arg2 ; | |
16142 | wxControl *arg3 = (wxControl *) 0 ; | |
16143 | wxToolBarToolBase *result; | |
16144 | PyObject * obj0 = 0 ; | |
16145 | PyObject * obj1 = 0 ; | |
16146 | PyObject * obj2 = 0 ; | |
16147 | char *kwnames[] = { | |
16148 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
16149 | }; | |
16150 | ||
16151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16153 | { |
8edf1c75 | 16154 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
16155 | if (PyErr_Occurred()) SWIG_fail; |
16156 | } | |
d14a1e28 RD |
16157 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
16158 | { | |
16159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16160 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
16161 | ||
16162 | wxPyEndAllowThreads(__tstate); | |
16163 | if (PyErr_Occurred()) SWIG_fail; | |
16164 | } | |
16165 | { | |
16166 | resultobj = wxPyMake_wxObject(result); | |
16167 | } | |
16168 | return resultobj; | |
16169 | fail: | |
16170 | return NULL; | |
16171 | } | |
16172 | ||
16173 | ||
16174 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16175 | PyObject *resultobj; | |
16176 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16177 | int arg2 ; | |
16178 | wxControl *result; | |
16179 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16180 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16181 | char *kwnames[] = { |
16182 | (char *) "self",(char *) "id", NULL | |
16183 | }; | |
16184 | ||
8edf1c75 | 16185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16187 | { |
16188 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16189 | if (PyErr_Occurred()) SWIG_fail; | |
16190 | } | |
d14a1e28 RD |
16191 | { |
16192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16193 | result = (wxControl *)(arg1)->FindControl(arg2); | |
16194 | ||
16195 | wxPyEndAllowThreads(__tstate); | |
16196 | if (PyErr_Occurred()) SWIG_fail; | |
16197 | } | |
16198 | { | |
16199 | resultobj = wxPyMake_wxObject(result); | |
16200 | } | |
16201 | return resultobj; | |
16202 | fail: | |
16203 | return NULL; | |
16204 | } | |
16205 | ||
16206 | ||
16207 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16208 | PyObject *resultobj; | |
16209 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16210 | wxToolBarToolBase *result; | |
16211 | PyObject * obj0 = 0 ; | |
16212 | char *kwnames[] = { | |
16213 | (char *) "self", NULL | |
16214 | }; | |
16215 | ||
16216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
16217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16218 | { | |
16219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16220 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
16221 | ||
16222 | wxPyEndAllowThreads(__tstate); | |
16223 | if (PyErr_Occurred()) SWIG_fail; | |
16224 | } | |
16225 | { | |
16226 | resultobj = wxPyMake_wxObject(result); | |
16227 | } | |
16228 | return resultobj; | |
16229 | fail: | |
16230 | return NULL; | |
16231 | } | |
16232 | ||
16233 | ||
16234 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16235 | PyObject *resultobj; | |
16236 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16237 | size_t arg2 ; | |
16238 | wxToolBarToolBase *result; | |
16239 | PyObject * obj0 = 0 ; | |
16240 | PyObject * obj1 = 0 ; | |
16241 | char *kwnames[] = { | |
16242 | (char *) "self",(char *) "pos", NULL | |
16243 | }; | |
16244 | ||
16245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
16246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16247 | { |
8edf1c75 | 16248 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
16249 | if (PyErr_Occurred()) SWIG_fail; |
16250 | } | |
d14a1e28 RD |
16251 | { |
16252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16253 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
16254 | ||
16255 | wxPyEndAllowThreads(__tstate); | |
16256 | if (PyErr_Occurred()) SWIG_fail; | |
16257 | } | |
16258 | { | |
16259 | resultobj = wxPyMake_wxObject(result); | |
16260 | } | |
16261 | return resultobj; | |
16262 | fail: | |
16263 | return NULL; | |
16264 | } | |
16265 | ||
16266 | ||
16267 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16268 | PyObject *resultobj; | |
16269 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16270 | int arg2 ; | |
16271 | wxToolBarToolBase *result; | |
16272 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16273 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16274 | char *kwnames[] = { |
16275 | (char *) "self",(char *) "id", NULL | |
16276 | }; | |
16277 | ||
8edf1c75 | 16278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16280 | { |
16281 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16282 | if (PyErr_Occurred()) SWIG_fail; | |
16283 | } | |
d14a1e28 RD |
16284 | { |
16285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16286 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
16287 | ||
16288 | wxPyEndAllowThreads(__tstate); | |
16289 | if (PyErr_Occurred()) SWIG_fail; | |
16290 | } | |
16291 | { | |
16292 | resultobj = wxPyMake_wxObject(result); | |
16293 | } | |
16294 | return resultobj; | |
16295 | fail: | |
16296 | return NULL; | |
16297 | } | |
16298 | ||
16299 | ||
16300 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16301 | PyObject *resultobj; | |
16302 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16303 | size_t arg2 ; | |
16304 | bool result; | |
16305 | PyObject * obj0 = 0 ; | |
16306 | PyObject * obj1 = 0 ; | |
16307 | char *kwnames[] = { | |
16308 | (char *) "self",(char *) "pos", NULL | |
16309 | }; | |
16310 | ||
16311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
16312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16313 | { |
8edf1c75 | 16314 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
16315 | if (PyErr_Occurred()) SWIG_fail; |
16316 | } | |
d14a1e28 RD |
16317 | { |
16318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16319 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
16320 | ||
16321 | wxPyEndAllowThreads(__tstate); | |
16322 | if (PyErr_Occurred()) SWIG_fail; | |
16323 | } | |
4e760a36 | 16324 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16325 | return resultobj; |
16326 | fail: | |
16327 | return NULL; | |
16328 | } | |
16329 | ||
16330 | ||
16331 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16332 | PyObject *resultobj; | |
16333 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16334 | int arg2 ; | |
16335 | bool result; | |
16336 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16337 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16338 | char *kwnames[] = { |
16339 | (char *) "self",(char *) "id", NULL | |
16340 | }; | |
16341 | ||
8edf1c75 | 16342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16344 | { |
16345 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16346 | if (PyErr_Occurred()) SWIG_fail; | |
16347 | } | |
d14a1e28 RD |
16348 | { |
16349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16350 | result = (bool)(arg1)->DeleteTool(arg2); | |
16351 | ||
16352 | wxPyEndAllowThreads(__tstate); | |
16353 | if (PyErr_Occurred()) SWIG_fail; | |
16354 | } | |
4e760a36 | 16355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16356 | return resultobj; |
16357 | fail: | |
16358 | return NULL; | |
16359 | } | |
16360 | ||
16361 | ||
16362 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16363 | PyObject *resultobj; | |
16364 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16365 | PyObject * obj0 = 0 ; | |
16366 | char *kwnames[] = { | |
16367 | (char *) "self", NULL | |
16368 | }; | |
16369 | ||
16370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
16371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16372 | { | |
16373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16374 | (arg1)->ClearTools(); | |
16375 | ||
16376 | wxPyEndAllowThreads(__tstate); | |
16377 | if (PyErr_Occurred()) SWIG_fail; | |
16378 | } | |
16379 | Py_INCREF(Py_None); resultobj = Py_None; | |
16380 | return resultobj; | |
16381 | fail: | |
16382 | return NULL; | |
16383 | } | |
16384 | ||
16385 | ||
16386 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16387 | PyObject *resultobj; | |
16388 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16389 | bool result; | |
16390 | PyObject * obj0 = 0 ; | |
16391 | char *kwnames[] = { | |
16392 | (char *) "self", NULL | |
16393 | }; | |
16394 | ||
16395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
16396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16397 | { | |
16398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16399 | result = (bool)(arg1)->Realize(); | |
16400 | ||
16401 | wxPyEndAllowThreads(__tstate); | |
16402 | if (PyErr_Occurred()) SWIG_fail; | |
16403 | } | |
4e760a36 | 16404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16405 | return resultobj; |
16406 | fail: | |
16407 | return NULL; | |
16408 | } | |
16409 | ||
16410 | ||
16411 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16412 | PyObject *resultobj; | |
16413 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16414 | int arg2 ; | |
16415 | bool arg3 ; | |
16416 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16417 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16418 | PyObject * obj2 = 0 ; |
16419 | char *kwnames[] = { | |
16420 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
16421 | }; | |
16422 | ||
8edf1c75 | 16423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 16425 | { |
8edf1c75 RD |
16426 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16427 | if (PyErr_Occurred()) SWIG_fail; | |
16428 | } | |
16429 | { | |
16430 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
16431 | if (PyErr_Occurred()) SWIG_fail; |
16432 | } | |
d14a1e28 RD |
16433 | { |
16434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16435 | (arg1)->EnableTool(arg2,arg3); | |
16436 | ||
16437 | wxPyEndAllowThreads(__tstate); | |
16438 | if (PyErr_Occurred()) SWIG_fail; | |
16439 | } | |
16440 | Py_INCREF(Py_None); resultobj = Py_None; | |
16441 | return resultobj; | |
16442 | fail: | |
16443 | return NULL; | |
16444 | } | |
16445 | ||
16446 | ||
16447 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16448 | PyObject *resultobj; | |
16449 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16450 | int arg2 ; | |
16451 | bool arg3 ; | |
16452 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16453 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16454 | PyObject * obj2 = 0 ; |
16455 | char *kwnames[] = { | |
16456 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16457 | }; | |
16458 | ||
8edf1c75 | 16459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 16461 | { |
8edf1c75 RD |
16462 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16463 | if (PyErr_Occurred()) SWIG_fail; | |
16464 | } | |
16465 | { | |
16466 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
16467 | if (PyErr_Occurred()) SWIG_fail; |
16468 | } | |
d14a1e28 RD |
16469 | { |
16470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16471 | (arg1)->ToggleTool(arg2,arg3); | |
16472 | ||
16473 | wxPyEndAllowThreads(__tstate); | |
16474 | if (PyErr_Occurred()) SWIG_fail; | |
16475 | } | |
16476 | Py_INCREF(Py_None); resultobj = Py_None; | |
16477 | return resultobj; | |
16478 | fail: | |
16479 | return NULL; | |
16480 | } | |
16481 | ||
16482 | ||
16483 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16484 | PyObject *resultobj; | |
16485 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16486 | int arg2 ; | |
16487 | bool arg3 ; | |
16488 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16489 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16490 | PyObject * obj2 = 0 ; |
16491 | char *kwnames[] = { | |
16492 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16493 | }; | |
16494 | ||
8edf1c75 | 16495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 16497 | { |
8edf1c75 RD |
16498 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16499 | if (PyErr_Occurred()) SWIG_fail; | |
16500 | } | |
16501 | { | |
16502 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
16503 | if (PyErr_Occurred()) SWIG_fail; |
16504 | } | |
d14a1e28 RD |
16505 | { |
16506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16507 | (arg1)->SetToggle(arg2,arg3); | |
16508 | ||
16509 | wxPyEndAllowThreads(__tstate); | |
16510 | if (PyErr_Occurred()) SWIG_fail; | |
16511 | } | |
16512 | Py_INCREF(Py_None); resultobj = Py_None; | |
16513 | return resultobj; | |
16514 | fail: | |
16515 | return NULL; | |
16516 | } | |
16517 | ||
16518 | ||
16519 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16520 | PyObject *resultobj; | |
16521 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16522 | int arg2 ; | |
16523 | PyObject *result; | |
16524 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16525 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16526 | char *kwnames[] = { |
16527 | (char *) "self",(char *) "id", NULL | |
16528 | }; | |
16529 | ||
8edf1c75 | 16530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16532 | { |
16533 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16534 | if (PyErr_Occurred()) SWIG_fail; | |
16535 | } | |
d14a1e28 RD |
16536 | { |
16537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16538 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
16539 | ||
16540 | wxPyEndAllowThreads(__tstate); | |
16541 | if (PyErr_Occurred()) SWIG_fail; | |
16542 | } | |
16543 | resultobj = result; | |
16544 | return resultobj; | |
16545 | fail: | |
16546 | return NULL; | |
16547 | } | |
16548 | ||
16549 | ||
16550 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16551 | PyObject *resultobj; | |
16552 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16553 | int arg2 ; | |
16554 | PyObject *arg3 = (PyObject *) 0 ; | |
16555 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16556 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16557 | PyObject * obj2 = 0 ; |
16558 | char *kwnames[] = { | |
16559 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
16560 | }; | |
16561 | ||
8edf1c75 | 16562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16564 | { |
16565 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16566 | if (PyErr_Occurred()) SWIG_fail; | |
16567 | } | |
d14a1e28 RD |
16568 | arg3 = obj2; |
16569 | { | |
16570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16571 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
16572 | ||
16573 | wxPyEndAllowThreads(__tstate); | |
16574 | if (PyErr_Occurred()) SWIG_fail; | |
16575 | } | |
16576 | Py_INCREF(Py_None); resultobj = Py_None; | |
16577 | return resultobj; | |
16578 | fail: | |
16579 | return NULL; | |
16580 | } | |
16581 | ||
16582 | ||
16583 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16584 | PyObject *resultobj; | |
16585 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16586 | int arg2 ; | |
16587 | int result; | |
16588 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16589 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16590 | char *kwnames[] = { |
16591 | (char *) "self",(char *) "id", NULL | |
16592 | }; | |
16593 | ||
8edf1c75 | 16594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16596 | { |
16597 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16598 | if (PyErr_Occurred()) SWIG_fail; | |
16599 | } | |
d14a1e28 RD |
16600 | { |
16601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16602 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
16603 | ||
16604 | wxPyEndAllowThreads(__tstate); | |
16605 | if (PyErr_Occurred()) SWIG_fail; | |
16606 | } | |
8edf1c75 | 16607 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16608 | return resultobj; |
16609 | fail: | |
16610 | return NULL; | |
16611 | } | |
16612 | ||
16613 | ||
16614 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16615 | PyObject *resultobj; | |
16616 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16617 | int arg2 ; | |
16618 | bool result; | |
16619 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16620 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16621 | char *kwnames[] = { |
16622 | (char *) "self",(char *) "id", NULL | |
16623 | }; | |
16624 | ||
8edf1c75 | 16625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16627 | { |
16628 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16629 | if (PyErr_Occurred()) SWIG_fail; | |
16630 | } | |
d14a1e28 RD |
16631 | { |
16632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16633 | result = (bool)(arg1)->GetToolState(arg2); | |
16634 | ||
16635 | wxPyEndAllowThreads(__tstate); | |
16636 | if (PyErr_Occurred()) SWIG_fail; | |
16637 | } | |
4e760a36 | 16638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16639 | return resultobj; |
16640 | fail: | |
16641 | return NULL; | |
16642 | } | |
16643 | ||
16644 | ||
16645 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16646 | PyObject *resultobj; | |
16647 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16648 | int arg2 ; | |
16649 | bool result; | |
16650 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16651 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16652 | char *kwnames[] = { |
16653 | (char *) "self",(char *) "id", NULL | |
16654 | }; | |
16655 | ||
8edf1c75 | 16656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16658 | { |
16659 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16660 | if (PyErr_Occurred()) SWIG_fail; | |
16661 | } | |
d14a1e28 RD |
16662 | { |
16663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16664 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
16665 | ||
16666 | wxPyEndAllowThreads(__tstate); | |
16667 | if (PyErr_Occurred()) SWIG_fail; | |
16668 | } | |
4e760a36 | 16669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16670 | return resultobj; |
16671 | fail: | |
16672 | return NULL; | |
16673 | } | |
16674 | ||
16675 | ||
16676 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16677 | PyObject *resultobj; | |
16678 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16679 | int arg2 ; | |
16680 | wxString *arg3 = 0 ; | |
423f194a | 16681 | bool temp3 = False ; |
d14a1e28 | 16682 | PyObject * obj0 = 0 ; |
8edf1c75 | 16683 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16684 | PyObject * obj2 = 0 ; |
16685 | char *kwnames[] = { | |
16686 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16687 | }; | |
16688 | ||
8edf1c75 | 16689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16691 | { |
16692 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16693 | if (PyErr_Occurred()) SWIG_fail; | |
16694 | } | |
d14a1e28 RD |
16695 | { |
16696 | arg3 = wxString_in_helper(obj2); | |
16697 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16698 | temp3 = True; |
d14a1e28 RD |
16699 | } |
16700 | { | |
16701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16702 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
16703 | ||
16704 | wxPyEndAllowThreads(__tstate); | |
16705 | if (PyErr_Occurred()) SWIG_fail; | |
16706 | } | |
16707 | Py_INCREF(Py_None); resultobj = Py_None; | |
16708 | { | |
16709 | if (temp3) | |
16710 | delete arg3; | |
16711 | } | |
16712 | return resultobj; | |
16713 | fail: | |
16714 | { | |
16715 | if (temp3) | |
16716 | delete arg3; | |
16717 | } | |
16718 | return NULL; | |
16719 | } | |
16720 | ||
16721 | ||
16722 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16723 | PyObject *resultobj; | |
16724 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16725 | int arg2 ; | |
16726 | wxString result; | |
16727 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16728 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16729 | char *kwnames[] = { |
16730 | (char *) "self",(char *) "id", NULL | |
16731 | }; | |
16732 | ||
8edf1c75 | 16733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16735 | { |
16736 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16737 | if (PyErr_Occurred()) SWIG_fail; | |
16738 | } | |
d14a1e28 RD |
16739 | { |
16740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16741 | result = (arg1)->GetToolShortHelp(arg2); | |
16742 | ||
16743 | wxPyEndAllowThreads(__tstate); | |
16744 | if (PyErr_Occurred()) SWIG_fail; | |
16745 | } | |
16746 | { | |
16747 | #if wxUSE_UNICODE | |
16748 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16749 | #else | |
16750 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16751 | #endif | |
16752 | } | |
16753 | return resultobj; | |
16754 | fail: | |
16755 | return NULL; | |
16756 | } | |
16757 | ||
16758 | ||
16759 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16760 | PyObject *resultobj; | |
16761 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16762 | int arg2 ; | |
16763 | wxString *arg3 = 0 ; | |
423f194a | 16764 | bool temp3 = False ; |
d14a1e28 | 16765 | PyObject * obj0 = 0 ; |
8edf1c75 | 16766 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16767 | PyObject * obj2 = 0 ; |
16768 | char *kwnames[] = { | |
16769 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16770 | }; | |
16771 | ||
8edf1c75 | 16772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16774 | { |
16775 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16776 | if (PyErr_Occurred()) SWIG_fail; | |
16777 | } | |
d14a1e28 RD |
16778 | { |
16779 | arg3 = wxString_in_helper(obj2); | |
16780 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16781 | temp3 = True; |
d14a1e28 RD |
16782 | } |
16783 | { | |
16784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16785 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
16786 | ||
16787 | wxPyEndAllowThreads(__tstate); | |
16788 | if (PyErr_Occurred()) SWIG_fail; | |
16789 | } | |
16790 | Py_INCREF(Py_None); resultobj = Py_None; | |
16791 | { | |
16792 | if (temp3) | |
16793 | delete arg3; | |
16794 | } | |
16795 | return resultobj; | |
16796 | fail: | |
16797 | { | |
16798 | if (temp3) | |
16799 | delete arg3; | |
16800 | } | |
16801 | return NULL; | |
16802 | } | |
16803 | ||
16804 | ||
16805 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16806 | PyObject *resultobj; | |
16807 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16808 | int arg2 ; | |
16809 | wxString result; | |
16810 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16811 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16812 | char *kwnames[] = { |
16813 | (char *) "self",(char *) "id", NULL | |
16814 | }; | |
16815 | ||
8edf1c75 | 16816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16818 | { |
16819 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16820 | if (PyErr_Occurred()) SWIG_fail; | |
16821 | } | |
d14a1e28 RD |
16822 | { |
16823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16824 | result = (arg1)->GetToolLongHelp(arg2); | |
16825 | ||
16826 | wxPyEndAllowThreads(__tstate); | |
16827 | if (PyErr_Occurred()) SWIG_fail; | |
16828 | } | |
16829 | { | |
16830 | #if wxUSE_UNICODE | |
16831 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16832 | #else | |
16833 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16834 | #endif | |
16835 | } | |
16836 | return resultobj; | |
16837 | fail: | |
16838 | return NULL; | |
16839 | } | |
16840 | ||
16841 | ||
16842 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16843 | PyObject *resultobj; | |
16844 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16845 | int arg2 ; | |
16846 | int arg3 ; | |
16847 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16848 | PyObject * obj1 = 0 ; |
16849 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16850 | char *kwnames[] = { |
16851 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16852 | }; | |
16853 | ||
8edf1c75 | 16854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16856 | { |
16857 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16858 | if (PyErr_Occurred()) SWIG_fail; | |
16859 | } | |
16860 | { | |
16861 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16862 | if (PyErr_Occurred()) SWIG_fail; | |
16863 | } | |
d14a1e28 RD |
16864 | { |
16865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16866 | (arg1)->SetMargins(arg2,arg3); | |
16867 | ||
16868 | wxPyEndAllowThreads(__tstate); | |
16869 | if (PyErr_Occurred()) SWIG_fail; | |
16870 | } | |
16871 | Py_INCREF(Py_None); resultobj = Py_None; | |
16872 | return resultobj; | |
16873 | fail: | |
16874 | return NULL; | |
16875 | } | |
16876 | ||
16877 | ||
16878 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16879 | PyObject *resultobj; | |
16880 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16881 | wxSize *arg2 = 0 ; | |
16882 | wxSize temp2 ; | |
16883 | PyObject * obj0 = 0 ; | |
16884 | PyObject * obj1 = 0 ; | |
16885 | char *kwnames[] = { | |
16886 | (char *) "self",(char *) "size", NULL | |
16887 | }; | |
16888 | ||
16889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
16890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16891 | { | |
16892 | arg2 = &temp2; | |
16893 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16894 | } | |
16895 | { | |
16896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16897 | (arg1)->SetMargins((wxSize const &)*arg2); | |
16898 | ||
16899 | wxPyEndAllowThreads(__tstate); | |
16900 | if (PyErr_Occurred()) SWIG_fail; | |
16901 | } | |
16902 | Py_INCREF(Py_None); resultobj = Py_None; | |
16903 | return resultobj; | |
16904 | fail: | |
16905 | return NULL; | |
16906 | } | |
16907 | ||
16908 | ||
16909 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16910 | PyObject *resultobj; | |
16911 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16912 | int arg2 ; | |
16913 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16914 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16915 | char *kwnames[] = { |
16916 | (char *) "self",(char *) "packing", NULL | |
16917 | }; | |
16918 | ||
8edf1c75 | 16919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16921 | { |
16922 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16923 | if (PyErr_Occurred()) SWIG_fail; | |
16924 | } | |
d14a1e28 RD |
16925 | { |
16926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16927 | (arg1)->SetToolPacking(arg2); | |
16928 | ||
16929 | wxPyEndAllowThreads(__tstate); | |
16930 | if (PyErr_Occurred()) SWIG_fail; | |
16931 | } | |
16932 | Py_INCREF(Py_None); resultobj = Py_None; | |
16933 | return resultobj; | |
16934 | fail: | |
16935 | return NULL; | |
16936 | } | |
16937 | ||
16938 | ||
16939 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16940 | PyObject *resultobj; | |
16941 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16942 | int arg2 ; | |
16943 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16944 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16945 | char *kwnames[] = { |
16946 | (char *) "self",(char *) "separation", NULL | |
16947 | }; | |
16948 | ||
8edf1c75 | 16949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16951 | { |
16952 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16953 | if (PyErr_Occurred()) SWIG_fail; | |
16954 | } | |
d14a1e28 RD |
16955 | { |
16956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16957 | (arg1)->SetToolSeparation(arg2); | |
16958 | ||
16959 | wxPyEndAllowThreads(__tstate); | |
16960 | if (PyErr_Occurred()) SWIG_fail; | |
16961 | } | |
16962 | Py_INCREF(Py_None); resultobj = Py_None; | |
16963 | return resultobj; | |
16964 | fail: | |
16965 | return NULL; | |
16966 | } | |
16967 | ||
16968 | ||
16969 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16970 | PyObject *resultobj; | |
16971 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16972 | wxSize result; | |
16973 | PyObject * obj0 = 0 ; | |
16974 | char *kwnames[] = { | |
16975 | (char *) "self", NULL | |
16976 | }; | |
16977 | ||
16978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
16979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16980 | { | |
16981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16982 | result = (arg1)->GetToolMargins(); | |
16983 | ||
16984 | wxPyEndAllowThreads(__tstate); | |
16985 | if (PyErr_Occurred()) SWIG_fail; | |
16986 | } | |
16987 | { | |
16988 | wxSize * resultptr; | |
16989 | resultptr = new wxSize((wxSize &) result); | |
16990 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16991 | } | |
16992 | return resultobj; | |
16993 | fail: | |
16994 | return NULL; | |
16995 | } | |
16996 | ||
16997 | ||
16998 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16999 | PyObject *resultobj; | |
17000 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17001 | wxSize result; | |
17002 | PyObject * obj0 = 0 ; | |
17003 | char *kwnames[] = { | |
17004 | (char *) "self", NULL | |
17005 | }; | |
17006 | ||
17007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
17008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17009 | { | |
17010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17011 | result = (arg1)->GetMargins(); | |
17012 | ||
17013 | wxPyEndAllowThreads(__tstate); | |
17014 | if (PyErr_Occurred()) SWIG_fail; | |
17015 | } | |
17016 | { | |
17017 | wxSize * resultptr; | |
17018 | resultptr = new wxSize((wxSize &) result); | |
17019 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
17020 | } | |
17021 | return resultobj; | |
17022 | fail: | |
17023 | return NULL; | |
17024 | } | |
17025 | ||
17026 | ||
17027 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17028 | PyObject *resultobj; | |
17029 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17030 | int result; | |
17031 | PyObject * obj0 = 0 ; | |
17032 | char *kwnames[] = { | |
17033 | (char *) "self", NULL | |
17034 | }; | |
17035 | ||
17036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
17037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17038 | { | |
17039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17040 | result = (int)(arg1)->GetToolPacking(); | |
17041 | ||
17042 | wxPyEndAllowThreads(__tstate); | |
17043 | if (PyErr_Occurred()) SWIG_fail; | |
17044 | } | |
8edf1c75 | 17045 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17046 | return resultobj; |
17047 | fail: | |
17048 | return NULL; | |
17049 | } | |
17050 | ||
17051 | ||
17052 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17053 | PyObject *resultobj; | |
17054 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17055 | int result; | |
17056 | PyObject * obj0 = 0 ; | |
17057 | char *kwnames[] = { | |
17058 | (char *) "self", NULL | |
17059 | }; | |
17060 | ||
17061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
17062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17063 | { | |
17064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17065 | result = (int)(arg1)->GetToolSeparation(); | |
17066 | ||
17067 | wxPyEndAllowThreads(__tstate); | |
17068 | if (PyErr_Occurred()) SWIG_fail; | |
17069 | } | |
8edf1c75 | 17070 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17071 | return resultobj; |
17072 | fail: | |
17073 | return NULL; | |
17074 | } | |
17075 | ||
17076 | ||
17077 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17078 | PyObject *resultobj; | |
17079 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17080 | int arg2 ; | |
17081 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17082 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17083 | char *kwnames[] = { |
17084 | (char *) "self",(char *) "nRows", NULL | |
17085 | }; | |
17086 | ||
8edf1c75 | 17087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17089 | { |
17090 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17091 | if (PyErr_Occurred()) SWIG_fail; | |
17092 | } | |
d14a1e28 RD |
17093 | { |
17094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17095 | (arg1)->SetRows(arg2); | |
17096 | ||
17097 | wxPyEndAllowThreads(__tstate); | |
17098 | if (PyErr_Occurred()) SWIG_fail; | |
17099 | } | |
17100 | Py_INCREF(Py_None); resultobj = Py_None; | |
17101 | return resultobj; | |
17102 | fail: | |
17103 | return NULL; | |
17104 | } | |
17105 | ||
17106 | ||
17107 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17108 | PyObject *resultobj; | |
17109 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17110 | int arg2 ; | |
17111 | int arg3 ; | |
17112 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17113 | PyObject * obj1 = 0 ; |
17114 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17115 | char *kwnames[] = { |
17116 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
17117 | }; | |
17118 | ||
8edf1c75 | 17119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17121 | { |
17122 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17123 | if (PyErr_Occurred()) SWIG_fail; | |
17124 | } | |
17125 | { | |
17126 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17127 | if (PyErr_Occurred()) SWIG_fail; | |
17128 | } | |
d14a1e28 RD |
17129 | { |
17130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17131 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
17132 | ||
17133 | wxPyEndAllowThreads(__tstate); | |
17134 | if (PyErr_Occurred()) SWIG_fail; | |
17135 | } | |
17136 | Py_INCREF(Py_None); resultobj = Py_None; | |
17137 | return resultobj; | |
17138 | fail: | |
17139 | return NULL; | |
17140 | } | |
17141 | ||
17142 | ||
17143 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17144 | PyObject *resultobj; | |
17145 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17146 | int result; | |
17147 | PyObject * obj0 = 0 ; | |
17148 | char *kwnames[] = { | |
17149 | (char *) "self", NULL | |
17150 | }; | |
17151 | ||
17152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
17153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17154 | { | |
17155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17156 | result = (int)(arg1)->GetMaxRows(); | |
17157 | ||
17158 | wxPyEndAllowThreads(__tstate); | |
17159 | if (PyErr_Occurred()) SWIG_fail; | |
17160 | } | |
8edf1c75 | 17161 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17162 | return resultobj; |
17163 | fail: | |
17164 | return NULL; | |
17165 | } | |
17166 | ||
17167 | ||
17168 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17169 | PyObject *resultobj; | |
17170 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17171 | int result; | |
17172 | PyObject * obj0 = 0 ; | |
17173 | char *kwnames[] = { | |
17174 | (char *) "self", NULL | |
17175 | }; | |
17176 | ||
17177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
17178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17179 | { | |
17180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17181 | result = (int)(arg1)->GetMaxCols(); | |
17182 | ||
17183 | wxPyEndAllowThreads(__tstate); | |
17184 | if (PyErr_Occurred()) SWIG_fail; | |
17185 | } | |
8edf1c75 | 17186 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17187 | return resultobj; |
17188 | fail: | |
17189 | return NULL; | |
17190 | } | |
17191 | ||
17192 | ||
17193 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17194 | PyObject *resultobj; | |
17195 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17196 | wxSize *arg2 = 0 ; | |
17197 | wxSize temp2 ; | |
17198 | PyObject * obj0 = 0 ; | |
17199 | PyObject * obj1 = 0 ; | |
17200 | char *kwnames[] = { | |
17201 | (char *) "self",(char *) "size", NULL | |
17202 | }; | |
17203 | ||
17204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
17205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17206 | { | |
17207 | arg2 = &temp2; | |
17208 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17209 | } | |
17210 | { | |
17211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17212 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
17213 | ||
17214 | wxPyEndAllowThreads(__tstate); | |
17215 | if (PyErr_Occurred()) SWIG_fail; | |
17216 | } | |
17217 | Py_INCREF(Py_None); resultobj = Py_None; | |
17218 | return resultobj; | |
17219 | fail: | |
17220 | return NULL; | |
17221 | } | |
17222 | ||
17223 | ||
17224 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17225 | PyObject *resultobj; | |
17226 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17227 | wxSize result; | |
17228 | PyObject * obj0 = 0 ; | |
17229 | char *kwnames[] = { | |
17230 | (char *) "self", NULL | |
17231 | }; | |
17232 | ||
17233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
17234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17235 | { | |
17236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17237 | result = (arg1)->GetToolBitmapSize(); | |
17238 | ||
17239 | wxPyEndAllowThreads(__tstate); | |
17240 | if (PyErr_Occurred()) SWIG_fail; | |
17241 | } | |
17242 | { | |
17243 | wxSize * resultptr; | |
17244 | resultptr = new wxSize((wxSize &) result); | |
17245 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
17246 | } | |
17247 | return resultobj; | |
17248 | fail: | |
17249 | return NULL; | |
17250 | } | |
17251 | ||
17252 | ||
17253 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17254 | PyObject *resultobj; | |
17255 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17256 | wxSize result; | |
17257 | PyObject * obj0 = 0 ; | |
17258 | char *kwnames[] = { | |
17259 | (char *) "self", NULL | |
17260 | }; | |
17261 | ||
17262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
17263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17264 | { | |
17265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17266 | result = (arg1)->GetToolSize(); | |
17267 | ||
17268 | wxPyEndAllowThreads(__tstate); | |
17269 | if (PyErr_Occurred()) SWIG_fail; | |
17270 | } | |
17271 | { | |
17272 | wxSize * resultptr; | |
17273 | resultptr = new wxSize((wxSize &) result); | |
17274 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
17275 | } | |
17276 | return resultobj; | |
17277 | fail: | |
17278 | return NULL; | |
17279 | } | |
17280 | ||
17281 | ||
17282 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17283 | PyObject *resultobj; | |
17284 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
423f194a RD |
17285 | int arg2 ; |
17286 | int arg3 ; | |
d14a1e28 RD |
17287 | wxToolBarToolBase *result; |
17288 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17289 | PyObject * obj1 = 0 ; |
17290 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17291 | char *kwnames[] = { |
17292 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17293 | }; | |
17294 | ||
8edf1c75 | 17295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17297 | { |
17298 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17299 | if (PyErr_Occurred()) SWIG_fail; | |
17300 | } | |
17301 | { | |
17302 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17303 | if (PyErr_Occurred()) SWIG_fail; | |
17304 | } | |
d14a1e28 RD |
17305 | { |
17306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17307 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17308 | ||
17309 | wxPyEndAllowThreads(__tstate); | |
17310 | if (PyErr_Occurred()) SWIG_fail; | |
17311 | } | |
17312 | { | |
17313 | resultobj = wxPyMake_wxObject(result); | |
17314 | } | |
17315 | return resultobj; | |
17316 | fail: | |
17317 | return NULL; | |
17318 | } | |
17319 | ||
17320 | ||
d03fd34d RD |
17321 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
17322 | PyObject *resultobj; | |
17323 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17324 | int arg2 ; | |
17325 | wxToolBarToolBase *result; | |
17326 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17327 | PyObject * obj1 = 0 ; |
d03fd34d RD |
17328 | char *kwnames[] = { |
17329 | (char *) "self",(char *) "toolid", NULL | |
17330 | }; | |
17331 | ||
8edf1c75 | 17332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
d03fd34d | 17333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17334 | { |
17335 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17336 | if (PyErr_Occurred()) SWIG_fail; | |
17337 | } | |
d03fd34d RD |
17338 | { |
17339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17340 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
17341 | ||
17342 | wxPyEndAllowThreads(__tstate); | |
17343 | if (PyErr_Occurred()) SWIG_fail; | |
17344 | } | |
17345 | { | |
17346 | resultobj = wxPyMake_wxObject(result); | |
17347 | } | |
17348 | return resultobj; | |
17349 | fail: | |
17350 | return NULL; | |
17351 | } | |
17352 | ||
17353 | ||
d14a1e28 RD |
17354 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
17355 | PyObject *resultobj; | |
17356 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17357 | bool result; | |
17358 | PyObject * obj0 = 0 ; | |
17359 | char *kwnames[] = { | |
17360 | (char *) "self", NULL | |
17361 | }; | |
17362 | ||
17363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
17364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17365 | { | |
17366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17367 | result = (bool)(arg1)->IsVertical(); | |
17368 | ||
17369 | wxPyEndAllowThreads(__tstate); | |
17370 | if (PyErr_Occurred()) SWIG_fail; | |
17371 | } | |
4e760a36 | 17372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17373 | return resultobj; |
17374 | fail: | |
17375 | return NULL; | |
17376 | } | |
17377 | ||
17378 | ||
17379 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
17380 | PyObject *obj; | |
17381 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17382 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
17383 | Py_INCREF(obj); | |
17384 | return Py_BuildValue((char *)""); | |
17385 | } | |
17386 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17387 | PyObject *resultobj; | |
17388 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 17389 | int arg2 ; |
d14a1e28 RD |
17390 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17391 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17392 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17393 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17394 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17395 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
17396 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17397 | wxToolBar *result; | |
17398 | wxPoint temp3 ; | |
17399 | wxSize temp4 ; | |
423f194a | 17400 | bool temp6 = False ; |
d14a1e28 | 17401 | PyObject * obj0 = 0 ; |
8edf1c75 | 17402 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17403 | PyObject * obj2 = 0 ; |
17404 | PyObject * obj3 = 0 ; | |
8edf1c75 | 17405 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17406 | PyObject * obj5 = 0 ; |
17407 | char *kwnames[] = { | |
17408 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17409 | }; | |
17410 | ||
8edf1c75 | 17411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 17412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17413 | { |
17414 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17415 | if (PyErr_Occurred()) SWIG_fail; | |
17416 | } | |
d14a1e28 RD |
17417 | if (obj2) { |
17418 | { | |
17419 | arg3 = &temp3; | |
17420 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17421 | } | |
17422 | } | |
17423 | if (obj3) { | |
17424 | { | |
17425 | arg4 = &temp4; | |
17426 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17427 | } | |
17428 | } | |
8edf1c75 RD |
17429 | if (obj4) { |
17430 | { | |
17431 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
17432 | if (PyErr_Occurred()) SWIG_fail; | |
17433 | } | |
17434 | } | |
d14a1e28 RD |
17435 | if (obj5) { |
17436 | { | |
17437 | arg6 = wxString_in_helper(obj5); | |
17438 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 17439 | temp6 = True; |
d14a1e28 RD |
17440 | } |
17441 | } | |
17442 | { | |
17443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17444 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17445 | ||
17446 | wxPyEndAllowThreads(__tstate); | |
17447 | if (PyErr_Occurred()) SWIG_fail; | |
17448 | } | |
17449 | { | |
17450 | resultobj = wxPyMake_wxObject(result); | |
17451 | } | |
17452 | { | |
17453 | if (temp6) | |
17454 | delete arg6; | |
17455 | } | |
17456 | return resultobj; | |
17457 | fail: | |
17458 | { | |
17459 | if (temp6) | |
17460 | delete arg6; | |
17461 | } | |
17462 | return NULL; | |
17463 | } | |
17464 | ||
17465 | ||
17466 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17467 | PyObject *resultobj; | |
17468 | wxToolBar *result; | |
17469 | char *kwnames[] = { | |
17470 | NULL | |
17471 | }; | |
17472 | ||
17473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
17474 | { | |
17475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17476 | result = (wxToolBar *)new wxToolBar(); | |
17477 | ||
17478 | wxPyEndAllowThreads(__tstate); | |
17479 | if (PyErr_Occurred()) SWIG_fail; | |
17480 | } | |
17481 | { | |
17482 | resultobj = wxPyMake_wxObject(result); | |
17483 | } | |
17484 | return resultobj; | |
17485 | fail: | |
17486 | return NULL; | |
17487 | } | |
17488 | ||
17489 | ||
17490 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17491 | PyObject *resultobj; | |
17492 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
17493 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 17494 | int arg3 ; |
d14a1e28 RD |
17495 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17496 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17497 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17498 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17499 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17500 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
17501 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17502 | bool result; | |
17503 | wxPoint temp4 ; | |
17504 | wxSize temp5 ; | |
423f194a | 17505 | bool temp7 = False ; |
d14a1e28 RD |
17506 | PyObject * obj0 = 0 ; |
17507 | PyObject * obj1 = 0 ; | |
8edf1c75 | 17508 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17509 | PyObject * obj3 = 0 ; |
17510 | PyObject * obj4 = 0 ; | |
8edf1c75 | 17511 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17512 | PyObject * obj6 = 0 ; |
17513 | char *kwnames[] = { | |
17514 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17515 | }; | |
17516 | ||
8edf1c75 | 17517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
17518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
17519 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
17520 | { |
17521 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17522 | if (PyErr_Occurred()) SWIG_fail; | |
17523 | } | |
d14a1e28 RD |
17524 | if (obj3) { |
17525 | { | |
17526 | arg4 = &temp4; | |
17527 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17528 | } | |
17529 | } | |
17530 | if (obj4) { | |
17531 | { | |
17532 | arg5 = &temp5; | |
17533 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17534 | } | |
17535 | } | |
8edf1c75 RD |
17536 | if (obj5) { |
17537 | { | |
17538 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
17539 | if (PyErr_Occurred()) SWIG_fail; | |
17540 | } | |
17541 | } | |
d14a1e28 RD |
17542 | if (obj6) { |
17543 | { | |
17544 | arg7 = wxString_in_helper(obj6); | |
17545 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 17546 | temp7 = True; |
d14a1e28 RD |
17547 | } |
17548 | } | |
17549 | { | |
17550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17551 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17552 | ||
17553 | wxPyEndAllowThreads(__tstate); | |
17554 | if (PyErr_Occurred()) SWIG_fail; | |
17555 | } | |
4e760a36 | 17556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17557 | { |
17558 | if (temp7) | |
17559 | delete arg7; | |
17560 | } | |
17561 | return resultobj; | |
17562 | fail: | |
17563 | { | |
17564 | if (temp7) | |
17565 | delete arg7; | |
17566 | } | |
17567 | return NULL; | |
17568 | } | |
17569 | ||
17570 | ||
17571 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17572 | PyObject *resultobj; | |
17573 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
423f194a RD |
17574 | int arg2 ; |
17575 | int arg3 ; | |
d14a1e28 RD |
17576 | wxToolBarToolBase *result; |
17577 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17578 | PyObject * obj1 = 0 ; |
17579 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17580 | char *kwnames[] = { |
17581 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17582 | }; | |
17583 | ||
8edf1c75 | 17584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17586 | { |
17587 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17588 | if (PyErr_Occurred()) SWIG_fail; | |
17589 | } | |
17590 | { | |
17591 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17592 | if (PyErr_Occurred()) SWIG_fail; | |
17593 | } | |
d14a1e28 RD |
17594 | { |
17595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17596 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17597 | ||
17598 | wxPyEndAllowThreads(__tstate); | |
17599 | if (PyErr_Occurred()) SWIG_fail; | |
17600 | } | |
17601 | { | |
17602 | resultobj = wxPyMake_wxObject(result); | |
17603 | } | |
17604 | return resultobj; | |
17605 | fail: | |
17606 | return NULL; | |
17607 | } | |
17608 | ||
17609 | ||
17610 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
17611 | PyObject *obj; | |
17612 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17613 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
17614 | Py_INCREF(obj); | |
17615 | return Py_BuildValue((char *)""); | |
17616 | } | |
8edf1c75 | 17617 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
d03fd34d RD |
17618 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
17619 | return 1; | |
17620 | } | |
17621 | ||
17622 | ||
17623 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
17624 | PyObject *pyobj; | |
17625 | ||
17626 | { | |
17627 | #if wxUSE_UNICODE | |
17628 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17629 | #else | |
17630 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17631 | #endif | |
17632 | } | |
17633 | return pyobj; | |
17634 | } | |
17635 | ||
17636 | ||
d14a1e28 RD |
17637 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
17638 | PyObject *resultobj; | |
17639 | wxColour const &arg1_defvalue = wxNullColour ; | |
17640 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
17641 | wxColour const &arg2_defvalue = wxNullColour ; | |
17642 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
17643 | wxFont const &arg3_defvalue = wxNullFont ; | |
17644 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
17645 | wxListItemAttr *result; | |
17646 | wxColour temp1 ; | |
17647 | wxColour temp2 ; | |
17648 | PyObject * obj0 = 0 ; | |
17649 | PyObject * obj1 = 0 ; | |
17650 | PyObject * obj2 = 0 ; | |
17651 | char *kwnames[] = { | |
17652 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
17653 | }; | |
17654 | ||
17655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17656 | if (obj0) { | |
17657 | { | |
17658 | arg1 = &temp1; | |
17659 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
17660 | } | |
17661 | } | |
17662 | if (obj1) { | |
17663 | { | |
17664 | arg2 = &temp2; | |
17665 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17666 | } | |
17667 | } | |
17668 | if (obj2) { | |
17669 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17670 | if (arg3 == NULL) { | |
17671 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17672 | } | |
17673 | } | |
17674 | { | |
17675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17676 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
17677 | ||
17678 | wxPyEndAllowThreads(__tstate); | |
17679 | if (PyErr_Occurred()) SWIG_fail; | |
17680 | } | |
17681 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 1); | |
17682 | return resultobj; | |
17683 | fail: | |
17684 | return NULL; | |
17685 | } | |
17686 | ||
17687 | ||
17688 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17689 | PyObject *resultobj; | |
17690 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17691 | wxColour *arg2 = 0 ; | |
17692 | wxColour temp2 ; | |
17693 | PyObject * obj0 = 0 ; | |
17694 | PyObject * obj1 = 0 ; | |
17695 | char *kwnames[] = { | |
17696 | (char *) "self",(char *) "colText", NULL | |
17697 | }; | |
17698 | ||
17699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
17700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17701 | { | |
17702 | arg2 = &temp2; | |
17703 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17704 | } | |
17705 | { | |
17706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17707 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
17708 | ||
17709 | wxPyEndAllowThreads(__tstate); | |
17710 | if (PyErr_Occurred()) SWIG_fail; | |
17711 | } | |
17712 | Py_INCREF(Py_None); resultobj = Py_None; | |
17713 | return resultobj; | |
17714 | fail: | |
17715 | return NULL; | |
17716 | } | |
17717 | ||
17718 | ||
17719 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17720 | PyObject *resultobj; | |
17721 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17722 | wxColour *arg2 = 0 ; | |
17723 | wxColour temp2 ; | |
17724 | PyObject * obj0 = 0 ; | |
17725 | PyObject * obj1 = 0 ; | |
17726 | char *kwnames[] = { | |
17727 | (char *) "self",(char *) "colBack", NULL | |
17728 | }; | |
17729 | ||
17730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17732 | { | |
17733 | arg2 = &temp2; | |
17734 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17735 | } | |
17736 | { | |
17737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17738 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17739 | ||
17740 | wxPyEndAllowThreads(__tstate); | |
17741 | if (PyErr_Occurred()) SWIG_fail; | |
17742 | } | |
17743 | Py_INCREF(Py_None); resultobj = Py_None; | |
17744 | return resultobj; | |
17745 | fail: | |
17746 | return NULL; | |
17747 | } | |
17748 | ||
17749 | ||
17750 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17751 | PyObject *resultobj; | |
17752 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17753 | wxFont *arg2 = 0 ; | |
17754 | PyObject * obj0 = 0 ; | |
17755 | PyObject * obj1 = 0 ; | |
17756 | char *kwnames[] = { | |
17757 | (char *) "self",(char *) "font", NULL | |
17758 | }; | |
17759 | ||
17760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
17761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17762 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17763 | if (arg2 == NULL) { | |
17764 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17765 | } | |
17766 | { | |
17767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17768 | (arg1)->SetFont((wxFont const &)*arg2); | |
17769 | ||
17770 | wxPyEndAllowThreads(__tstate); | |
17771 | if (PyErr_Occurred()) SWIG_fail; | |
17772 | } | |
17773 | Py_INCREF(Py_None); resultobj = Py_None; | |
17774 | return resultobj; | |
17775 | fail: | |
17776 | return NULL; | |
17777 | } | |
17778 | ||
17779 | ||
17780 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17781 | PyObject *resultobj; | |
17782 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17783 | bool result; | |
17784 | PyObject * obj0 = 0 ; | |
17785 | char *kwnames[] = { | |
17786 | (char *) "self", NULL | |
17787 | }; | |
17788 | ||
17789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
17790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17791 | { | |
17792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17793 | result = (bool)(arg1)->HasTextColour(); | |
17794 | ||
17795 | wxPyEndAllowThreads(__tstate); | |
17796 | if (PyErr_Occurred()) SWIG_fail; | |
17797 | } | |
4e760a36 | 17798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17799 | return resultobj; |
17800 | fail: | |
17801 | return NULL; | |
17802 | } | |
17803 | ||
17804 | ||
17805 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17806 | PyObject *resultobj; | |
17807 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17808 | bool result; | |
17809 | PyObject * obj0 = 0 ; | |
17810 | char *kwnames[] = { | |
17811 | (char *) "self", NULL | |
17812 | }; | |
17813 | ||
17814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
17815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17816 | { | |
17817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17818 | result = (bool)(arg1)->HasBackgroundColour(); | |
17819 | ||
17820 | wxPyEndAllowThreads(__tstate); | |
17821 | if (PyErr_Occurred()) SWIG_fail; | |
17822 | } | |
4e760a36 | 17823 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17824 | return resultobj; |
17825 | fail: | |
17826 | return NULL; | |
17827 | } | |
17828 | ||
17829 | ||
17830 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17831 | PyObject *resultobj; | |
17832 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17833 | bool result; | |
17834 | PyObject * obj0 = 0 ; | |
17835 | char *kwnames[] = { | |
17836 | (char *) "self", NULL | |
17837 | }; | |
17838 | ||
17839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
17840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17841 | { | |
17842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17843 | result = (bool)(arg1)->HasFont(); | |
17844 | ||
17845 | wxPyEndAllowThreads(__tstate); | |
17846 | if (PyErr_Occurred()) SWIG_fail; | |
17847 | } | |
4e760a36 | 17848 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17849 | return resultobj; |
17850 | fail: | |
17851 | return NULL; | |
17852 | } | |
17853 | ||
17854 | ||
17855 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17856 | PyObject *resultobj; | |
17857 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17858 | wxColour result; | |
17859 | PyObject * obj0 = 0 ; | |
17860 | char *kwnames[] = { | |
17861 | (char *) "self", NULL | |
17862 | }; | |
17863 | ||
17864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
17865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17866 | { | |
17867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17868 | result = (arg1)->GetTextColour(); | |
17869 | ||
17870 | wxPyEndAllowThreads(__tstate); | |
17871 | if (PyErr_Occurred()) SWIG_fail; | |
17872 | } | |
17873 | { | |
17874 | wxColour * resultptr; | |
17875 | resultptr = new wxColour((wxColour &) result); | |
17876 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17877 | } | |
17878 | return resultobj; | |
17879 | fail: | |
17880 | return NULL; | |
17881 | } | |
17882 | ||
17883 | ||
17884 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17885 | PyObject *resultobj; | |
17886 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17887 | wxColour result; | |
17888 | PyObject * obj0 = 0 ; | |
17889 | char *kwnames[] = { | |
17890 | (char *) "self", NULL | |
17891 | }; | |
17892 | ||
17893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
17894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17895 | { | |
17896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17897 | result = (arg1)->GetBackgroundColour(); | |
17898 | ||
17899 | wxPyEndAllowThreads(__tstate); | |
17900 | if (PyErr_Occurred()) SWIG_fail; | |
17901 | } | |
17902 | { | |
17903 | wxColour * resultptr; | |
17904 | resultptr = new wxColour((wxColour &) result); | |
17905 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17906 | } | |
17907 | return resultobj; | |
17908 | fail: | |
17909 | return NULL; | |
17910 | } | |
17911 | ||
17912 | ||
17913 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17914 | PyObject *resultobj; | |
17915 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17916 | wxFont result; | |
17917 | PyObject * obj0 = 0 ; | |
17918 | char *kwnames[] = { | |
17919 | (char *) "self", NULL | |
17920 | }; | |
17921 | ||
17922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
17923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17924 | { | |
17925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17926 | result = (arg1)->GetFont(); | |
17927 | ||
17928 | wxPyEndAllowThreads(__tstate); | |
17929 | if (PyErr_Occurred()) SWIG_fail; | |
17930 | } | |
17931 | { | |
17932 | wxFont * resultptr; | |
17933 | resultptr = new wxFont((wxFont &) result); | |
17934 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
17935 | } | |
17936 | return resultobj; | |
17937 | fail: | |
17938 | return NULL; | |
17939 | } | |
17940 | ||
17941 | ||
17942 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17943 | PyObject *resultobj; | |
17944 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17945 | PyObject * obj0 = 0 ; | |
17946 | char *kwnames[] = { | |
17947 | (char *) "self", NULL | |
17948 | }; | |
17949 | ||
17950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
17951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17952 | { | |
17953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17954 | wxListItemAttr_Destroy(arg1); | |
17955 | ||
17956 | wxPyEndAllowThreads(__tstate); | |
17957 | if (PyErr_Occurred()) SWIG_fail; | |
17958 | } | |
17959 | Py_INCREF(Py_None); resultobj = Py_None; | |
17960 | return resultobj; | |
17961 | fail: | |
17962 | return NULL; | |
17963 | } | |
17964 | ||
17965 | ||
17966 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
17967 | PyObject *obj; | |
17968 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17969 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
17970 | Py_INCREF(obj); | |
17971 | return Py_BuildValue((char *)""); | |
17972 | } | |
17973 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17974 | PyObject *resultobj; | |
17975 | wxListItem *result; | |
17976 | char *kwnames[] = { | |
17977 | NULL | |
17978 | }; | |
17979 | ||
17980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
17981 | { | |
17982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17983 | result = (wxListItem *)new wxListItem(); | |
17984 | ||
17985 | wxPyEndAllowThreads(__tstate); | |
17986 | if (PyErr_Occurred()) SWIG_fail; | |
17987 | } | |
17988 | { | |
17989 | resultobj = wxPyMake_wxObject(result); | |
17990 | } | |
17991 | return resultobj; | |
17992 | fail: | |
17993 | return NULL; | |
17994 | } | |
17995 | ||
17996 | ||
17997 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17998 | PyObject *resultobj; | |
17999 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18000 | PyObject * obj0 = 0 ; | |
18001 | char *kwnames[] = { | |
18002 | (char *) "self", NULL | |
18003 | }; | |
18004 | ||
18005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
18006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18007 | { | |
18008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18009 | delete arg1; | |
18010 | ||
18011 | wxPyEndAllowThreads(__tstate); | |
18012 | if (PyErr_Occurred()) SWIG_fail; | |
18013 | } | |
18014 | Py_INCREF(Py_None); resultobj = Py_None; | |
18015 | return resultobj; | |
18016 | fail: | |
18017 | return NULL; | |
18018 | } | |
18019 | ||
18020 | ||
18021 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18022 | PyObject *resultobj; | |
18023 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18024 | PyObject * obj0 = 0 ; | |
18025 | char *kwnames[] = { | |
18026 | (char *) "self", NULL | |
18027 | }; | |
18028 | ||
18029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
18030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18031 | { | |
18032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18033 | (arg1)->Clear(); | |
18034 | ||
18035 | wxPyEndAllowThreads(__tstate); | |
18036 | if (PyErr_Occurred()) SWIG_fail; | |
18037 | } | |
18038 | Py_INCREF(Py_None); resultobj = Py_None; | |
18039 | return resultobj; | |
18040 | fail: | |
18041 | return NULL; | |
18042 | } | |
18043 | ||
18044 | ||
18045 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18046 | PyObject *resultobj; | |
18047 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18048 | PyObject * obj0 = 0 ; | |
18049 | char *kwnames[] = { | |
18050 | (char *) "self", NULL | |
18051 | }; | |
18052 | ||
18053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
18054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18055 | { | |
18056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18057 | (arg1)->ClearAttributes(); | |
18058 | ||
18059 | wxPyEndAllowThreads(__tstate); | |
18060 | if (PyErr_Occurred()) SWIG_fail; | |
18061 | } | |
18062 | Py_INCREF(Py_None); resultobj = Py_None; | |
18063 | return resultobj; | |
18064 | fail: | |
18065 | return NULL; | |
18066 | } | |
18067 | ||
18068 | ||
18069 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18070 | PyObject *resultobj; | |
18071 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18072 | long arg2 ; | |
18073 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18074 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18075 | char *kwnames[] = { |
18076 | (char *) "self",(char *) "mask", NULL | |
18077 | }; | |
18078 | ||
8edf1c75 | 18079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18081 | { |
18082 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18083 | if (PyErr_Occurred()) SWIG_fail; | |
18084 | } | |
d14a1e28 RD |
18085 | { |
18086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18087 | (arg1)->SetMask(arg2); | |
18088 | ||
18089 | wxPyEndAllowThreads(__tstate); | |
18090 | if (PyErr_Occurred()) SWIG_fail; | |
18091 | } | |
18092 | Py_INCREF(Py_None); resultobj = Py_None; | |
18093 | return resultobj; | |
18094 | fail: | |
18095 | return NULL; | |
18096 | } | |
18097 | ||
18098 | ||
18099 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18100 | PyObject *resultobj; | |
18101 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18102 | long arg2 ; | |
18103 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18104 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18105 | char *kwnames[] = { |
18106 | (char *) "self",(char *) "id", NULL | |
18107 | }; | |
18108 | ||
8edf1c75 | 18109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18111 | { |
18112 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18113 | if (PyErr_Occurred()) SWIG_fail; | |
18114 | } | |
d14a1e28 RD |
18115 | { |
18116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18117 | (arg1)->SetId(arg2); | |
18118 | ||
18119 | wxPyEndAllowThreads(__tstate); | |
18120 | if (PyErr_Occurred()) SWIG_fail; | |
18121 | } | |
18122 | Py_INCREF(Py_None); resultobj = Py_None; | |
18123 | return resultobj; | |
18124 | fail: | |
18125 | return NULL; | |
18126 | } | |
18127 | ||
18128 | ||
18129 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18130 | PyObject *resultobj; | |
18131 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18132 | int arg2 ; | |
18133 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18134 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18135 | char *kwnames[] = { |
18136 | (char *) "self",(char *) "col", NULL | |
18137 | }; | |
18138 | ||
8edf1c75 | 18139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18141 | { |
18142 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18143 | if (PyErr_Occurred()) SWIG_fail; | |
18144 | } | |
d14a1e28 RD |
18145 | { |
18146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18147 | (arg1)->SetColumn(arg2); | |
18148 | ||
18149 | wxPyEndAllowThreads(__tstate); | |
18150 | if (PyErr_Occurred()) SWIG_fail; | |
18151 | } | |
18152 | Py_INCREF(Py_None); resultobj = Py_None; | |
18153 | return resultobj; | |
18154 | fail: | |
18155 | return NULL; | |
18156 | } | |
18157 | ||
18158 | ||
18159 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18160 | PyObject *resultobj; | |
18161 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18162 | long arg2 ; | |
18163 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18164 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18165 | char *kwnames[] = { |
18166 | (char *) "self",(char *) "state", NULL | |
18167 | }; | |
18168 | ||
8edf1c75 | 18169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18171 | { |
18172 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18173 | if (PyErr_Occurred()) SWIG_fail; | |
18174 | } | |
d14a1e28 RD |
18175 | { |
18176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18177 | (arg1)->SetState(arg2); | |
18178 | ||
18179 | wxPyEndAllowThreads(__tstate); | |
18180 | if (PyErr_Occurred()) SWIG_fail; | |
18181 | } | |
18182 | Py_INCREF(Py_None); resultobj = Py_None; | |
18183 | return resultobj; | |
18184 | fail: | |
18185 | return NULL; | |
18186 | } | |
18187 | ||
18188 | ||
18189 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18190 | PyObject *resultobj; | |
18191 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18192 | long arg2 ; | |
18193 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18194 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18195 | char *kwnames[] = { |
18196 | (char *) "self",(char *) "stateMask", NULL | |
18197 | }; | |
18198 | ||
8edf1c75 | 18199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18201 | { |
18202 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18203 | if (PyErr_Occurred()) SWIG_fail; | |
18204 | } | |
d14a1e28 RD |
18205 | { |
18206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18207 | (arg1)->SetStateMask(arg2); | |
18208 | ||
18209 | wxPyEndAllowThreads(__tstate); | |
18210 | if (PyErr_Occurred()) SWIG_fail; | |
18211 | } | |
18212 | Py_INCREF(Py_None); resultobj = Py_None; | |
18213 | return resultobj; | |
18214 | fail: | |
18215 | return NULL; | |
18216 | } | |
18217 | ||
18218 | ||
18219 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18220 | PyObject *resultobj; | |
18221 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18222 | wxString *arg2 = 0 ; | |
423f194a | 18223 | bool temp2 = False ; |
d14a1e28 RD |
18224 | PyObject * obj0 = 0 ; |
18225 | PyObject * obj1 = 0 ; | |
18226 | char *kwnames[] = { | |
18227 | (char *) "self",(char *) "text", NULL | |
18228 | }; | |
18229 | ||
18230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18232 | { | |
18233 | arg2 = wxString_in_helper(obj1); | |
18234 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18235 | temp2 = True; |
d14a1e28 RD |
18236 | } |
18237 | { | |
18238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18239 | (arg1)->SetText((wxString const &)*arg2); | |
18240 | ||
18241 | wxPyEndAllowThreads(__tstate); | |
18242 | if (PyErr_Occurred()) SWIG_fail; | |
18243 | } | |
18244 | Py_INCREF(Py_None); resultobj = Py_None; | |
18245 | { | |
18246 | if (temp2) | |
18247 | delete arg2; | |
18248 | } | |
18249 | return resultobj; | |
18250 | fail: | |
18251 | { | |
18252 | if (temp2) | |
18253 | delete arg2; | |
18254 | } | |
18255 | return NULL; | |
18256 | } | |
18257 | ||
18258 | ||
18259 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18260 | PyObject *resultobj; | |
18261 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18262 | int arg2 ; | |
18263 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18264 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18265 | char *kwnames[] = { |
18266 | (char *) "self",(char *) "image", NULL | |
18267 | }; | |
18268 | ||
8edf1c75 | 18269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18271 | { |
18272 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18273 | if (PyErr_Occurred()) SWIG_fail; | |
18274 | } | |
d14a1e28 RD |
18275 | { |
18276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18277 | (arg1)->SetImage(arg2); | |
18278 | ||
18279 | wxPyEndAllowThreads(__tstate); | |
18280 | if (PyErr_Occurred()) SWIG_fail; | |
18281 | } | |
18282 | Py_INCREF(Py_None); resultobj = Py_None; | |
18283 | return resultobj; | |
18284 | fail: | |
18285 | return NULL; | |
18286 | } | |
18287 | ||
18288 | ||
18289 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18290 | PyObject *resultobj; | |
18291 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18292 | long arg2 ; | |
18293 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18294 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18295 | char *kwnames[] = { |
18296 | (char *) "self",(char *) "data", NULL | |
18297 | }; | |
18298 | ||
8edf1c75 | 18299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18301 | { |
18302 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18303 | if (PyErr_Occurred()) SWIG_fail; | |
18304 | } | |
d14a1e28 RD |
18305 | { |
18306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18307 | (arg1)->SetData(arg2); | |
18308 | ||
18309 | wxPyEndAllowThreads(__tstate); | |
18310 | if (PyErr_Occurred()) SWIG_fail; | |
18311 | } | |
18312 | Py_INCREF(Py_None); resultobj = Py_None; | |
18313 | return resultobj; | |
18314 | fail: | |
18315 | return NULL; | |
18316 | } | |
18317 | ||
18318 | ||
18319 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18320 | PyObject *resultobj; | |
18321 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18322 | int arg2 ; | |
18323 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18324 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18325 | char *kwnames[] = { |
18326 | (char *) "self",(char *) "width", NULL | |
18327 | }; | |
18328 | ||
8edf1c75 | 18329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18331 | { |
18332 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18333 | if (PyErr_Occurred()) SWIG_fail; | |
18334 | } | |
d14a1e28 RD |
18335 | { |
18336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18337 | (arg1)->SetWidth(arg2); | |
18338 | ||
18339 | wxPyEndAllowThreads(__tstate); | |
18340 | if (PyErr_Occurred()) SWIG_fail; | |
18341 | } | |
18342 | Py_INCREF(Py_None); resultobj = Py_None; | |
18343 | return resultobj; | |
18344 | fail: | |
18345 | return NULL; | |
18346 | } | |
18347 | ||
18348 | ||
18349 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18350 | PyObject *resultobj; | |
18351 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18352 | int arg2 ; | |
18353 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18354 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18355 | char *kwnames[] = { |
18356 | (char *) "self",(char *) "align", NULL | |
18357 | }; | |
18358 | ||
8edf1c75 | 18359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18361 | { |
18362 | arg2 = (wxListColumnFormat) SWIG_PyObj_AsInt(obj1); | |
18363 | if (PyErr_Occurred()) SWIG_fail; | |
18364 | } | |
d14a1e28 RD |
18365 | { |
18366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18367 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
18368 | ||
18369 | wxPyEndAllowThreads(__tstate); | |
18370 | if (PyErr_Occurred()) SWIG_fail; | |
18371 | } | |
18372 | Py_INCREF(Py_None); resultobj = Py_None; | |
18373 | return resultobj; | |
18374 | fail: | |
18375 | return NULL; | |
18376 | } | |
18377 | ||
18378 | ||
18379 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18380 | PyObject *resultobj; | |
18381 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18382 | wxColour *arg2 = 0 ; | |
18383 | wxColour temp2 ; | |
18384 | PyObject * obj0 = 0 ; | |
18385 | PyObject * obj1 = 0 ; | |
18386 | char *kwnames[] = { | |
18387 | (char *) "self",(char *) "colText", NULL | |
18388 | }; | |
18389 | ||
18390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18392 | { | |
18393 | arg2 = &temp2; | |
18394 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18395 | } | |
18396 | { | |
18397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18398 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18399 | ||
18400 | wxPyEndAllowThreads(__tstate); | |
18401 | if (PyErr_Occurred()) SWIG_fail; | |
18402 | } | |
18403 | Py_INCREF(Py_None); resultobj = Py_None; | |
18404 | return resultobj; | |
18405 | fail: | |
18406 | return NULL; | |
18407 | } | |
18408 | ||
18409 | ||
18410 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18411 | PyObject *resultobj; | |
18412 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18413 | wxColour *arg2 = 0 ; | |
18414 | wxColour temp2 ; | |
18415 | PyObject * obj0 = 0 ; | |
18416 | PyObject * obj1 = 0 ; | |
18417 | char *kwnames[] = { | |
18418 | (char *) "self",(char *) "colBack", NULL | |
18419 | }; | |
18420 | ||
18421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
18422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18423 | { | |
18424 | arg2 = &temp2; | |
18425 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18426 | } | |
18427 | { | |
18428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18429 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18430 | ||
18431 | wxPyEndAllowThreads(__tstate); | |
18432 | if (PyErr_Occurred()) SWIG_fail; | |
18433 | } | |
18434 | Py_INCREF(Py_None); resultobj = Py_None; | |
18435 | return resultobj; | |
18436 | fail: | |
18437 | return NULL; | |
18438 | } | |
18439 | ||
18440 | ||
18441 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18442 | PyObject *resultobj; | |
18443 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18444 | wxFont *arg2 = 0 ; | |
18445 | PyObject * obj0 = 0 ; | |
18446 | PyObject * obj1 = 0 ; | |
18447 | char *kwnames[] = { | |
18448 | (char *) "self",(char *) "font", NULL | |
18449 | }; | |
18450 | ||
18451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
18452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18453 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18454 | if (arg2 == NULL) { | |
18455 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18456 | } | |
18457 | { | |
18458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18459 | (arg1)->SetFont((wxFont const &)*arg2); | |
18460 | ||
18461 | wxPyEndAllowThreads(__tstate); | |
18462 | if (PyErr_Occurred()) SWIG_fail; | |
18463 | } | |
18464 | Py_INCREF(Py_None); resultobj = Py_None; | |
18465 | return resultobj; | |
18466 | fail: | |
18467 | return NULL; | |
18468 | } | |
18469 | ||
18470 | ||
18471 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18472 | PyObject *resultobj; | |
18473 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18474 | long result; | |
18475 | PyObject * obj0 = 0 ; | |
18476 | char *kwnames[] = { | |
18477 | (char *) "self", NULL | |
18478 | }; | |
18479 | ||
18480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
18481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18482 | { | |
18483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18484 | result = (long)(arg1)->GetMask(); | |
18485 | ||
18486 | wxPyEndAllowThreads(__tstate); | |
18487 | if (PyErr_Occurred()) SWIG_fail; | |
18488 | } | |
8edf1c75 | 18489 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18490 | return resultobj; |
18491 | fail: | |
18492 | return NULL; | |
18493 | } | |
18494 | ||
18495 | ||
18496 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18497 | PyObject *resultobj; | |
18498 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18499 | long result; | |
18500 | PyObject * obj0 = 0 ; | |
18501 | char *kwnames[] = { | |
18502 | (char *) "self", NULL | |
18503 | }; | |
18504 | ||
18505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
18506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18507 | { | |
18508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18509 | result = (long)(arg1)->GetId(); | |
18510 | ||
18511 | wxPyEndAllowThreads(__tstate); | |
18512 | if (PyErr_Occurred()) SWIG_fail; | |
18513 | } | |
8edf1c75 | 18514 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18515 | return resultobj; |
18516 | fail: | |
18517 | return NULL; | |
18518 | } | |
18519 | ||
18520 | ||
18521 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18522 | PyObject *resultobj; | |
18523 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18524 | int result; | |
18525 | PyObject * obj0 = 0 ; | |
18526 | char *kwnames[] = { | |
18527 | (char *) "self", NULL | |
18528 | }; | |
18529 | ||
18530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
18531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18532 | { | |
18533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18534 | result = (int)(arg1)->GetColumn(); | |
18535 | ||
18536 | wxPyEndAllowThreads(__tstate); | |
18537 | if (PyErr_Occurred()) SWIG_fail; | |
18538 | } | |
8edf1c75 | 18539 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18540 | return resultobj; |
18541 | fail: | |
18542 | return NULL; | |
18543 | } | |
18544 | ||
18545 | ||
18546 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18547 | PyObject *resultobj; | |
18548 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18549 | long result; | |
18550 | PyObject * obj0 = 0 ; | |
18551 | char *kwnames[] = { | |
18552 | (char *) "self", NULL | |
18553 | }; | |
18554 | ||
18555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
18556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18557 | { | |
18558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18559 | result = (long)(arg1)->GetState(); | |
18560 | ||
18561 | wxPyEndAllowThreads(__tstate); | |
18562 | if (PyErr_Occurred()) SWIG_fail; | |
18563 | } | |
8edf1c75 | 18564 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18565 | return resultobj; |
18566 | fail: | |
18567 | return NULL; | |
18568 | } | |
18569 | ||
18570 | ||
18571 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18572 | PyObject *resultobj; | |
18573 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18574 | wxString *result; | |
18575 | PyObject * obj0 = 0 ; | |
18576 | char *kwnames[] = { | |
18577 | (char *) "self", NULL | |
18578 | }; | |
18579 | ||
18580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
18581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18582 | { | |
18583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18584 | { | |
18585 | wxString const &_result_ref = (arg1)->GetText(); | |
18586 | result = (wxString *) &_result_ref; | |
18587 | } | |
18588 | ||
18589 | wxPyEndAllowThreads(__tstate); | |
18590 | if (PyErr_Occurred()) SWIG_fail; | |
18591 | } | |
f0983263 RD |
18592 | { |
18593 | #if wxUSE_UNICODE | |
18594 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18595 | #else | |
18596 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18597 | #endif | |
18598 | } | |
d14a1e28 RD |
18599 | return resultobj; |
18600 | fail: | |
18601 | return NULL; | |
18602 | } | |
18603 | ||
18604 | ||
18605 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18606 | PyObject *resultobj; | |
18607 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18608 | int result; | |
18609 | PyObject * obj0 = 0 ; | |
18610 | char *kwnames[] = { | |
18611 | (char *) "self", NULL | |
18612 | }; | |
18613 | ||
18614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
18615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18616 | { | |
18617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18618 | result = (int)(arg1)->GetImage(); | |
18619 | ||
18620 | wxPyEndAllowThreads(__tstate); | |
18621 | if (PyErr_Occurred()) SWIG_fail; | |
18622 | } | |
8edf1c75 | 18623 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18624 | return resultobj; |
18625 | fail: | |
18626 | return NULL; | |
18627 | } | |
18628 | ||
18629 | ||
18630 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18631 | PyObject *resultobj; | |
18632 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18633 | long result; | |
18634 | PyObject * obj0 = 0 ; | |
18635 | char *kwnames[] = { | |
18636 | (char *) "self", NULL | |
18637 | }; | |
18638 | ||
18639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
18640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18641 | { | |
18642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18643 | result = (long)(arg1)->GetData(); | |
18644 | ||
18645 | wxPyEndAllowThreads(__tstate); | |
18646 | if (PyErr_Occurred()) SWIG_fail; | |
18647 | } | |
8edf1c75 | 18648 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18649 | return resultobj; |
18650 | fail: | |
18651 | return NULL; | |
18652 | } | |
18653 | ||
18654 | ||
18655 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18656 | PyObject *resultobj; | |
18657 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18658 | int result; | |
18659 | PyObject * obj0 = 0 ; | |
18660 | char *kwnames[] = { | |
18661 | (char *) "self", NULL | |
18662 | }; | |
18663 | ||
18664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",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 = (int)(arg1)->GetWidth(); | |
18669 | ||
18670 | wxPyEndAllowThreads(__tstate); | |
18671 | if (PyErr_Occurred()) SWIG_fail; | |
18672 | } | |
8edf1c75 | 18673 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18674 | return resultobj; |
18675 | fail: | |
18676 | return NULL; | |
18677 | } | |
18678 | ||
18679 | ||
18680 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18681 | PyObject *resultobj; | |
18682 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18683 | int result; | |
18684 | PyObject * obj0 = 0 ; | |
18685 | char *kwnames[] = { | |
18686 | (char *) "self", NULL | |
18687 | }; | |
18688 | ||
18689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
18690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18691 | { | |
18692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18693 | result = (int)(arg1)->GetAlign(); | |
18694 | ||
18695 | wxPyEndAllowThreads(__tstate); | |
18696 | if (PyErr_Occurred()) SWIG_fail; | |
18697 | } | |
8edf1c75 | 18698 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18699 | return resultobj; |
18700 | fail: | |
18701 | return NULL; | |
18702 | } | |
18703 | ||
18704 | ||
18705 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18706 | PyObject *resultobj; | |
18707 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18708 | wxListItemAttr *result; | |
18709 | PyObject * obj0 = 0 ; | |
18710 | char *kwnames[] = { | |
18711 | (char *) "self", NULL | |
18712 | }; | |
18713 | ||
18714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
18715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18716 | { | |
18717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18718 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
18719 | ||
18720 | wxPyEndAllowThreads(__tstate); | |
18721 | if (PyErr_Occurred()) SWIG_fail; | |
18722 | } | |
18723 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 0); | |
18724 | return resultobj; | |
18725 | fail: | |
18726 | return NULL; | |
18727 | } | |
18728 | ||
18729 | ||
18730 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18731 | PyObject *resultobj; | |
18732 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18733 | bool result; | |
18734 | PyObject * obj0 = 0 ; | |
18735 | char *kwnames[] = { | |
18736 | (char *) "self", NULL | |
18737 | }; | |
18738 | ||
18739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
18740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18741 | { | |
18742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18743 | result = (bool)(arg1)->HasAttributes(); | |
18744 | ||
18745 | wxPyEndAllowThreads(__tstate); | |
18746 | if (PyErr_Occurred()) SWIG_fail; | |
18747 | } | |
4e760a36 | 18748 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18749 | return resultobj; |
18750 | fail: | |
18751 | return NULL; | |
18752 | } | |
18753 | ||
18754 | ||
18755 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18756 | PyObject *resultobj; | |
18757 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18758 | wxColour result; | |
18759 | PyObject * obj0 = 0 ; | |
18760 | char *kwnames[] = { | |
18761 | (char *) "self", NULL | |
18762 | }; | |
18763 | ||
18764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
18765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18766 | { | |
18767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18768 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
18769 | ||
18770 | wxPyEndAllowThreads(__tstate); | |
18771 | if (PyErr_Occurred()) SWIG_fail; | |
18772 | } | |
18773 | { | |
18774 | wxColour * resultptr; | |
18775 | resultptr = new wxColour((wxColour &) result); | |
18776 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18777 | } | |
18778 | return resultobj; | |
18779 | fail: | |
18780 | return NULL; | |
18781 | } | |
18782 | ||
18783 | ||
18784 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18785 | PyObject *resultobj; | |
18786 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18787 | wxColour result; | |
18788 | PyObject * obj0 = 0 ; | |
18789 | char *kwnames[] = { | |
18790 | (char *) "self", NULL | |
18791 | }; | |
18792 | ||
18793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
18794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18795 | { | |
18796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18797 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
18798 | ||
18799 | wxPyEndAllowThreads(__tstate); | |
18800 | if (PyErr_Occurred()) SWIG_fail; | |
18801 | } | |
18802 | { | |
18803 | wxColour * resultptr; | |
18804 | resultptr = new wxColour((wxColour &) result); | |
18805 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18806 | } | |
18807 | return resultobj; | |
18808 | fail: | |
18809 | return NULL; | |
18810 | } | |
18811 | ||
18812 | ||
18813 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18814 | PyObject *resultobj; | |
18815 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18816 | wxFont result; | |
18817 | PyObject * obj0 = 0 ; | |
18818 | char *kwnames[] = { | |
18819 | (char *) "self", NULL | |
18820 | }; | |
18821 | ||
18822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
18823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18824 | { | |
18825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18826 | result = ((wxListItem const *)arg1)->GetFont(); | |
18827 | ||
18828 | wxPyEndAllowThreads(__tstate); | |
18829 | if (PyErr_Occurred()) SWIG_fail; | |
18830 | } | |
18831 | { | |
18832 | wxFont * resultptr; | |
18833 | resultptr = new wxFont((wxFont &) result); | |
18834 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
18835 | } | |
18836 | return resultobj; | |
18837 | fail: | |
18838 | return NULL; | |
18839 | } | |
18840 | ||
18841 | ||
18842 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18843 | PyObject *resultobj; | |
18844 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18845 | long arg2 ; | |
18846 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18847 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18848 | char *kwnames[] = { |
18849 | (char *) "self",(char *) "m_mask", NULL | |
18850 | }; | |
18851 | ||
8edf1c75 | 18852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18854 | { |
18855 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18856 | if (PyErr_Occurred()) SWIG_fail; | |
18857 | } | |
d14a1e28 RD |
18858 | if (arg1) (arg1)->m_mask = arg2; |
18859 | ||
18860 | Py_INCREF(Py_None); resultobj = Py_None; | |
18861 | return resultobj; | |
18862 | fail: | |
18863 | return NULL; | |
18864 | } | |
18865 | ||
18866 | ||
18867 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18868 | PyObject *resultobj; | |
18869 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18870 | long result; | |
18871 | PyObject * obj0 = 0 ; | |
18872 | char *kwnames[] = { | |
18873 | (char *) "self", NULL | |
18874 | }; | |
18875 | ||
18876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
18877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18878 | result = (long) ((arg1)->m_mask); | |
18879 | ||
8edf1c75 | 18880 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18881 | return resultobj; |
18882 | fail: | |
18883 | return NULL; | |
18884 | } | |
18885 | ||
18886 | ||
18887 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18888 | PyObject *resultobj; | |
18889 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18890 | long arg2 ; | |
18891 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18892 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18893 | char *kwnames[] = { |
18894 | (char *) "self",(char *) "m_itemId", NULL | |
18895 | }; | |
18896 | ||
8edf1c75 | 18897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18899 | { |
18900 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18901 | if (PyErr_Occurred()) SWIG_fail; | |
18902 | } | |
d14a1e28 RD |
18903 | if (arg1) (arg1)->m_itemId = arg2; |
18904 | ||
18905 | Py_INCREF(Py_None); resultobj = Py_None; | |
18906 | return resultobj; | |
18907 | fail: | |
18908 | return NULL; | |
18909 | } | |
18910 | ||
18911 | ||
18912 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18913 | PyObject *resultobj; | |
18914 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18915 | long result; | |
18916 | PyObject * obj0 = 0 ; | |
18917 | char *kwnames[] = { | |
18918 | (char *) "self", NULL | |
18919 | }; | |
18920 | ||
18921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
18922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18923 | result = (long) ((arg1)->m_itemId); | |
18924 | ||
8edf1c75 | 18925 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18926 | return resultobj; |
18927 | fail: | |
18928 | return NULL; | |
18929 | } | |
18930 | ||
18931 | ||
18932 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18933 | PyObject *resultobj; | |
18934 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18935 | int arg2 ; | |
18936 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18937 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18938 | char *kwnames[] = { |
18939 | (char *) "self",(char *) "m_col", NULL | |
18940 | }; | |
18941 | ||
8edf1c75 | 18942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18944 | { |
18945 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18946 | if (PyErr_Occurred()) SWIG_fail; | |
18947 | } | |
d14a1e28 RD |
18948 | if (arg1) (arg1)->m_col = arg2; |
18949 | ||
18950 | Py_INCREF(Py_None); resultobj = Py_None; | |
18951 | return resultobj; | |
18952 | fail: | |
18953 | return NULL; | |
18954 | } | |
18955 | ||
18956 | ||
18957 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18958 | PyObject *resultobj; | |
18959 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18960 | int result; | |
18961 | PyObject * obj0 = 0 ; | |
18962 | char *kwnames[] = { | |
18963 | (char *) "self", NULL | |
18964 | }; | |
18965 | ||
18966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
18967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18968 | result = (int) ((arg1)->m_col); | |
18969 | ||
8edf1c75 | 18970 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18971 | return resultobj; |
18972 | fail: | |
18973 | return NULL; | |
18974 | } | |
18975 | ||
18976 | ||
18977 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18978 | PyObject *resultobj; | |
18979 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18980 | long arg2 ; | |
18981 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18982 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18983 | char *kwnames[] = { |
18984 | (char *) "self",(char *) "m_state", NULL | |
18985 | }; | |
18986 | ||
8edf1c75 | 18987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18989 | { |
18990 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18991 | if (PyErr_Occurred()) SWIG_fail; | |
18992 | } | |
d14a1e28 RD |
18993 | if (arg1) (arg1)->m_state = arg2; |
18994 | ||
18995 | Py_INCREF(Py_None); resultobj = Py_None; | |
18996 | return resultobj; | |
18997 | fail: | |
18998 | return NULL; | |
18999 | } | |
19000 | ||
19001 | ||
19002 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19003 | PyObject *resultobj; | |
19004 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19005 | long result; | |
19006 | PyObject * obj0 = 0 ; | |
19007 | char *kwnames[] = { | |
19008 | (char *) "self", NULL | |
19009 | }; | |
19010 | ||
19011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
19012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19013 | result = (long) ((arg1)->m_state); | |
19014 | ||
8edf1c75 | 19015 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19016 | return resultobj; |
19017 | fail: | |
19018 | return NULL; | |
19019 | } | |
19020 | ||
19021 | ||
19022 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19023 | PyObject *resultobj; | |
19024 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19025 | long arg2 ; | |
19026 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19027 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19028 | char *kwnames[] = { |
19029 | (char *) "self",(char *) "m_stateMask", NULL | |
19030 | }; | |
19031 | ||
8edf1c75 | 19032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19034 | { |
19035 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19036 | if (PyErr_Occurred()) SWIG_fail; | |
19037 | } | |
d14a1e28 RD |
19038 | if (arg1) (arg1)->m_stateMask = arg2; |
19039 | ||
19040 | Py_INCREF(Py_None); resultobj = Py_None; | |
19041 | return resultobj; | |
19042 | fail: | |
19043 | return NULL; | |
19044 | } | |
19045 | ||
19046 | ||
19047 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19048 | PyObject *resultobj; | |
19049 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19050 | long result; | |
19051 | PyObject * obj0 = 0 ; | |
19052 | char *kwnames[] = { | |
19053 | (char *) "self", NULL | |
19054 | }; | |
19055 | ||
19056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
19057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19058 | result = (long) ((arg1)->m_stateMask); | |
19059 | ||
8edf1c75 | 19060 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19061 | return resultobj; |
19062 | fail: | |
19063 | return NULL; | |
19064 | } | |
19065 | ||
19066 | ||
19067 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19068 | PyObject *resultobj; | |
19069 | wxListItem *arg1 = (wxListItem *) 0 ; | |
d03fd34d | 19070 | wxString *arg2 = (wxString *) 0 ; |
f775c30d | 19071 | bool temp2 = False ; |
d14a1e28 RD |
19072 | PyObject * obj0 = 0 ; |
19073 | PyObject * obj1 = 0 ; | |
19074 | char *kwnames[] = { | |
19075 | (char *) "self",(char *) "m_text", NULL | |
19076 | }; | |
19077 | ||
19078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
19079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
f775c30d RD |
19080 | { |
19081 | arg2 = wxString_in_helper(obj1); | |
19082 | if (arg2 == NULL) SWIG_fail; | |
19083 | temp2 = True; | |
19084 | } | |
d03fd34d | 19085 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
19086 | |
19087 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
19088 | { |
19089 | if (temp2) | |
19090 | delete arg2; | |
19091 | } | |
d14a1e28 RD |
19092 | return resultobj; |
19093 | fail: | |
f775c30d RD |
19094 | { |
19095 | if (temp2) | |
19096 | delete arg2; | |
19097 | } | |
d14a1e28 RD |
19098 | return NULL; |
19099 | } | |
19100 | ||
19101 | ||
19102 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19103 | PyObject *resultobj; | |
19104 | wxListItem *arg1 = (wxListItem *) 0 ; | |
d03fd34d | 19105 | wxString *result; |
d14a1e28 RD |
19106 | PyObject * obj0 = 0 ; |
19107 | char *kwnames[] = { | |
19108 | (char *) "self", NULL | |
19109 | }; | |
19110 | ||
19111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
19112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d03fd34d | 19113 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
19114 | |
19115 | { | |
19116 | #if wxUSE_UNICODE | |
d03fd34d | 19117 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 19118 | #else |
d03fd34d | 19119 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
19120 | #endif |
19121 | } | |
19122 | return resultobj; | |
19123 | fail: | |
19124 | return NULL; | |
19125 | } | |
19126 | ||
19127 | ||
19128 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19129 | PyObject *resultobj; | |
19130 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19131 | int arg2 ; | |
19132 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19133 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19134 | char *kwnames[] = { |
19135 | (char *) "self",(char *) "m_image", NULL | |
19136 | }; | |
19137 | ||
8edf1c75 | 19138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19140 | { |
19141 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19142 | if (PyErr_Occurred()) SWIG_fail; | |
19143 | } | |
d14a1e28 RD |
19144 | if (arg1) (arg1)->m_image = arg2; |
19145 | ||
19146 | Py_INCREF(Py_None); resultobj = Py_None; | |
19147 | return resultobj; | |
19148 | fail: | |
19149 | return NULL; | |
19150 | } | |
19151 | ||
19152 | ||
19153 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19154 | PyObject *resultobj; | |
19155 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19156 | int result; | |
19157 | PyObject * obj0 = 0 ; | |
19158 | char *kwnames[] = { | |
19159 | (char *) "self", NULL | |
19160 | }; | |
19161 | ||
19162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
19163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19164 | result = (int) ((arg1)->m_image); | |
19165 | ||
8edf1c75 | 19166 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19167 | return resultobj; |
19168 | fail: | |
19169 | return NULL; | |
19170 | } | |
19171 | ||
19172 | ||
19173 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19174 | PyObject *resultobj; | |
19175 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19176 | long arg2 ; | |
19177 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19178 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19179 | char *kwnames[] = { |
19180 | (char *) "self",(char *) "m_data", NULL | |
19181 | }; | |
19182 | ||
8edf1c75 | 19183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19185 | { |
19186 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19187 | if (PyErr_Occurred()) SWIG_fail; | |
19188 | } | |
d14a1e28 RD |
19189 | if (arg1) (arg1)->m_data = arg2; |
19190 | ||
19191 | Py_INCREF(Py_None); resultobj = Py_None; | |
19192 | return resultobj; | |
19193 | fail: | |
19194 | return NULL; | |
19195 | } | |
19196 | ||
19197 | ||
19198 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19199 | PyObject *resultobj; | |
19200 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19201 | long result; | |
19202 | PyObject * obj0 = 0 ; | |
19203 | char *kwnames[] = { | |
19204 | (char *) "self", NULL | |
19205 | }; | |
19206 | ||
19207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
19208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19209 | result = (long) ((arg1)->m_data); | |
19210 | ||
8edf1c75 | 19211 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19212 | return resultobj; |
19213 | fail: | |
19214 | return NULL; | |
19215 | } | |
19216 | ||
19217 | ||
19218 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19219 | PyObject *resultobj; | |
19220 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19221 | int arg2 ; | |
19222 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19223 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19224 | char *kwnames[] = { |
19225 | (char *) "self",(char *) "m_format", NULL | |
19226 | }; | |
19227 | ||
8edf1c75 | 19228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19230 | { |
19231 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19232 | if (PyErr_Occurred()) SWIG_fail; | |
19233 | } | |
d14a1e28 RD |
19234 | if (arg1) (arg1)->m_format = arg2; |
19235 | ||
19236 | Py_INCREF(Py_None); resultobj = Py_None; | |
19237 | return resultobj; | |
19238 | fail: | |
19239 | return NULL; | |
19240 | } | |
19241 | ||
19242 | ||
19243 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19244 | PyObject *resultobj; | |
19245 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19246 | int result; | |
19247 | PyObject * obj0 = 0 ; | |
19248 | char *kwnames[] = { | |
19249 | (char *) "self", NULL | |
19250 | }; | |
19251 | ||
19252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
19253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19254 | result = (int) ((arg1)->m_format); | |
19255 | ||
8edf1c75 | 19256 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19257 | return resultobj; |
19258 | fail: | |
19259 | return NULL; | |
19260 | } | |
19261 | ||
19262 | ||
19263 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19264 | PyObject *resultobj; | |
19265 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19266 | int arg2 ; | |
19267 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19268 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19269 | char *kwnames[] = { |
19270 | (char *) "self",(char *) "m_width", NULL | |
19271 | }; | |
19272 | ||
8edf1c75 | 19273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19275 | { |
19276 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19277 | if (PyErr_Occurred()) SWIG_fail; | |
19278 | } | |
d14a1e28 RD |
19279 | if (arg1) (arg1)->m_width = arg2; |
19280 | ||
19281 | Py_INCREF(Py_None); resultobj = Py_None; | |
19282 | return resultobj; | |
19283 | fail: | |
19284 | return NULL; | |
19285 | } | |
19286 | ||
19287 | ||
19288 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19289 | PyObject *resultobj; | |
19290 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19291 | int result; | |
19292 | PyObject * obj0 = 0 ; | |
19293 | char *kwnames[] = { | |
19294 | (char *) "self", NULL | |
19295 | }; | |
19296 | ||
19297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
19298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19299 | result = (int) ((arg1)->m_width); | |
19300 | ||
8edf1c75 | 19301 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19302 | return resultobj; |
19303 | fail: | |
19304 | return NULL; | |
19305 | } | |
19306 | ||
19307 | ||
19308 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
19309 | PyObject *obj; | |
19310 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19311 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
19312 | Py_INCREF(obj); | |
19313 | return Py_BuildValue((char *)""); | |
19314 | } | |
19315 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19316 | PyObject *resultobj; | |
19317 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19318 | int arg2 = (int) 0 ; | |
19319 | wxListEvent *result; | |
8edf1c75 RD |
19320 | PyObject * obj0 = 0 ; |
19321 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19322 | char *kwnames[] = { |
19323 | (char *) "commandType",(char *) "id", NULL | |
19324 | }; | |
19325 | ||
8edf1c75 RD |
19326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
19327 | if (obj0) { | |
19328 | { | |
19329 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
19330 | if (PyErr_Occurred()) SWIG_fail; | |
19331 | } | |
19332 | } | |
19333 | if (obj1) { | |
19334 | { | |
19335 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19336 | if (PyErr_Occurred()) SWIG_fail; | |
19337 | } | |
19338 | } | |
d14a1e28 RD |
19339 | { |
19340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19341 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
19342 | ||
19343 | wxPyEndAllowThreads(__tstate); | |
19344 | if (PyErr_Occurred()) SWIG_fail; | |
19345 | } | |
19346 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListEvent, 1); | |
19347 | return resultobj; | |
19348 | fail: | |
19349 | return NULL; | |
19350 | } | |
19351 | ||
19352 | ||
19353 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19354 | PyObject *resultobj; | |
19355 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19356 | int arg2 ; | |
19357 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19358 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19359 | char *kwnames[] = { |
19360 | (char *) "self",(char *) "m_code", NULL | |
19361 | }; | |
19362 | ||
8edf1c75 | 19363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19365 | { |
19366 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19367 | if (PyErr_Occurred()) SWIG_fail; | |
19368 | } | |
d14a1e28 RD |
19369 | if (arg1) (arg1)->m_code = arg2; |
19370 | ||
19371 | Py_INCREF(Py_None); resultobj = Py_None; | |
19372 | return resultobj; | |
19373 | fail: | |
19374 | return NULL; | |
19375 | } | |
19376 | ||
19377 | ||
19378 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19379 | PyObject *resultobj; | |
19380 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19381 | int result; | |
19382 | PyObject * obj0 = 0 ; | |
19383 | char *kwnames[] = { | |
19384 | (char *) "self", NULL | |
19385 | }; | |
19386 | ||
19387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
19388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19389 | result = (int) ((arg1)->m_code); | |
19390 | ||
8edf1c75 | 19391 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19392 | return resultobj; |
19393 | fail: | |
19394 | return NULL; | |
19395 | } | |
19396 | ||
19397 | ||
19398 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19399 | PyObject *resultobj; | |
19400 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19401 | long arg2 ; | |
19402 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19403 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19404 | char *kwnames[] = { |
19405 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
19406 | }; | |
19407 | ||
8edf1c75 | 19408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19410 | { |
19411 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19412 | if (PyErr_Occurred()) SWIG_fail; | |
19413 | } | |
d14a1e28 RD |
19414 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
19415 | ||
19416 | Py_INCREF(Py_None); resultobj = Py_None; | |
19417 | return resultobj; | |
19418 | fail: | |
19419 | return NULL; | |
19420 | } | |
19421 | ||
19422 | ||
19423 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19424 | PyObject *resultobj; | |
19425 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19426 | long result; | |
19427 | PyObject * obj0 = 0 ; | |
19428 | char *kwnames[] = { | |
19429 | (char *) "self", NULL | |
19430 | }; | |
19431 | ||
19432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
19433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19434 | result = (long) ((arg1)->m_oldItemIndex); | |
19435 | ||
8edf1c75 | 19436 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19437 | return resultobj; |
19438 | fail: | |
19439 | return NULL; | |
19440 | } | |
19441 | ||
19442 | ||
19443 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19444 | PyObject *resultobj; | |
19445 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19446 | long arg2 ; | |
19447 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19448 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19449 | char *kwnames[] = { |
19450 | (char *) "self",(char *) "m_itemIndex", NULL | |
19451 | }; | |
19452 | ||
8edf1c75 | 19453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19455 | { |
19456 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19457 | if (PyErr_Occurred()) SWIG_fail; | |
19458 | } | |
d14a1e28 RD |
19459 | if (arg1) (arg1)->m_itemIndex = arg2; |
19460 | ||
19461 | Py_INCREF(Py_None); resultobj = Py_None; | |
19462 | return resultobj; | |
19463 | fail: | |
19464 | return NULL; | |
19465 | } | |
19466 | ||
19467 | ||
19468 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19469 | PyObject *resultobj; | |
19470 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19471 | long result; | |
19472 | PyObject * obj0 = 0 ; | |
19473 | char *kwnames[] = { | |
19474 | (char *) "self", NULL | |
19475 | }; | |
19476 | ||
19477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
19478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19479 | result = (long) ((arg1)->m_itemIndex); | |
19480 | ||
8edf1c75 | 19481 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19482 | return resultobj; |
19483 | fail: | |
19484 | return NULL; | |
19485 | } | |
19486 | ||
19487 | ||
19488 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19489 | PyObject *resultobj; | |
19490 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19491 | int arg2 ; | |
19492 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19493 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19494 | char *kwnames[] = { |
19495 | (char *) "self",(char *) "m_col", NULL | |
19496 | }; | |
19497 | ||
8edf1c75 | 19498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19500 | { |
19501 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19502 | if (PyErr_Occurred()) SWIG_fail; | |
19503 | } | |
d14a1e28 RD |
19504 | if (arg1) (arg1)->m_col = arg2; |
19505 | ||
19506 | Py_INCREF(Py_None); resultobj = Py_None; | |
19507 | return resultobj; | |
19508 | fail: | |
19509 | return NULL; | |
19510 | } | |
19511 | ||
19512 | ||
19513 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19514 | PyObject *resultobj; | |
19515 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19516 | int result; | |
19517 | PyObject * obj0 = 0 ; | |
19518 | char *kwnames[] = { | |
19519 | (char *) "self", NULL | |
19520 | }; | |
19521 | ||
19522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
19523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19524 | result = (int) ((arg1)->m_col); | |
19525 | ||
8edf1c75 | 19526 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19527 | return resultobj; |
19528 | fail: | |
19529 | return NULL; | |
19530 | } | |
19531 | ||
19532 | ||
19533 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19534 | PyObject *resultobj; | |
19535 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19536 | wxPoint *arg2 = (wxPoint *) 0 ; | |
19537 | PyObject * obj0 = 0 ; | |
19538 | PyObject * obj1 = 0 ; | |
19539 | char *kwnames[] = { | |
19540 | (char *) "self",(char *) "m_pointDrag", NULL | |
19541 | }; | |
19542 | ||
19543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
19544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19545 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19546 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
19547 | ||
19548 | Py_INCREF(Py_None); resultobj = Py_None; | |
19549 | return resultobj; | |
19550 | fail: | |
19551 | return NULL; | |
19552 | } | |
19553 | ||
19554 | ||
19555 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19556 | PyObject *resultobj; | |
19557 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19558 | wxPoint *result; | |
19559 | PyObject * obj0 = 0 ; | |
19560 | char *kwnames[] = { | |
19561 | (char *) "self", NULL | |
19562 | }; | |
19563 | ||
19564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
19565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19566 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
19567 | ||
19568 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
19569 | return resultobj; | |
19570 | fail: | |
19571 | return NULL; | |
19572 | } | |
19573 | ||
19574 | ||
19575 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19576 | PyObject *resultobj; | |
19577 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19578 | wxListItem *result; | |
19579 | PyObject * obj0 = 0 ; | |
19580 | char *kwnames[] = { | |
19581 | (char *) "self", NULL | |
19582 | }; | |
19583 | ||
19584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
19585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19586 | result = (wxListItem *)& ((arg1)->m_item); | |
19587 | ||
19588 | { | |
19589 | resultobj = wxPyMake_wxObject(result); | |
19590 | } | |
19591 | return resultobj; | |
19592 | fail: | |
19593 | return NULL; | |
19594 | } | |
19595 | ||
19596 | ||
19597 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19598 | PyObject *resultobj; | |
19599 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19600 | int result; | |
19601 | PyObject * obj0 = 0 ; | |
19602 | char *kwnames[] = { | |
19603 | (char *) "self", NULL | |
19604 | }; | |
19605 | ||
19606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
19607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19608 | { | |
19609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19610 | result = (int)(arg1)->GetKeyCode(); | |
19611 | ||
19612 | wxPyEndAllowThreads(__tstate); | |
19613 | if (PyErr_Occurred()) SWIG_fail; | |
19614 | } | |
8edf1c75 | 19615 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19616 | return resultobj; |
19617 | fail: | |
19618 | return NULL; | |
19619 | } | |
19620 | ||
19621 | ||
19622 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19623 | PyObject *resultobj; | |
19624 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19625 | long result; | |
19626 | PyObject * obj0 = 0 ; | |
19627 | char *kwnames[] = { | |
19628 | (char *) "self", NULL | |
19629 | }; | |
19630 | ||
19631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
19632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19633 | { | |
19634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19635 | result = (long)(arg1)->GetIndex(); | |
19636 | ||
19637 | wxPyEndAllowThreads(__tstate); | |
19638 | if (PyErr_Occurred()) SWIG_fail; | |
19639 | } | |
8edf1c75 | 19640 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19641 | return resultobj; |
19642 | fail: | |
19643 | return NULL; | |
19644 | } | |
19645 | ||
19646 | ||
19647 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19648 | PyObject *resultobj; | |
19649 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19650 | int result; | |
19651 | PyObject * obj0 = 0 ; | |
19652 | char *kwnames[] = { | |
19653 | (char *) "self", NULL | |
19654 | }; | |
19655 | ||
19656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
19657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19658 | { | |
19659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19660 | result = (int)(arg1)->GetColumn(); | |
19661 | ||
19662 | wxPyEndAllowThreads(__tstate); | |
19663 | if (PyErr_Occurred()) SWIG_fail; | |
19664 | } | |
8edf1c75 | 19665 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19666 | return resultobj; |
19667 | fail: | |
19668 | return NULL; | |
19669 | } | |
19670 | ||
19671 | ||
19672 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19673 | PyObject *resultobj; | |
19674 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19675 | wxPoint result; | |
19676 | PyObject * obj0 = 0 ; | |
19677 | char *kwnames[] = { | |
19678 | (char *) "self", NULL | |
19679 | }; | |
19680 | ||
19681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
19682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19683 | { | |
19684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19685 | result = (arg1)->GetPoint(); | |
19686 | ||
19687 | wxPyEndAllowThreads(__tstate); | |
19688 | if (PyErr_Occurred()) SWIG_fail; | |
19689 | } | |
19690 | { | |
19691 | wxPoint * resultptr; | |
19692 | resultptr = new wxPoint((wxPoint &) result); | |
19693 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
19694 | } | |
19695 | return resultobj; | |
19696 | fail: | |
19697 | return NULL; | |
19698 | } | |
19699 | ||
19700 | ||
19701 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19702 | PyObject *resultobj; | |
19703 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19704 | wxString *result; | |
19705 | PyObject * obj0 = 0 ; | |
19706 | char *kwnames[] = { | |
19707 | (char *) "self", NULL | |
19708 | }; | |
19709 | ||
19710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
19711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19712 | { | |
19713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19714 | { | |
19715 | wxString const &_result_ref = (arg1)->GetLabel(); | |
19716 | result = (wxString *) &_result_ref; | |
19717 | } | |
19718 | ||
19719 | wxPyEndAllowThreads(__tstate); | |
19720 | if (PyErr_Occurred()) SWIG_fail; | |
19721 | } | |
f0983263 RD |
19722 | { |
19723 | #if wxUSE_UNICODE | |
19724 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19725 | #else | |
19726 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19727 | #endif | |
19728 | } | |
d14a1e28 RD |
19729 | return resultobj; |
19730 | fail: | |
19731 | return NULL; | |
19732 | } | |
19733 | ||
19734 | ||
19735 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19736 | PyObject *resultobj; | |
19737 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19738 | wxString *result; | |
19739 | PyObject * obj0 = 0 ; | |
19740 | char *kwnames[] = { | |
19741 | (char *) "self", NULL | |
19742 | }; | |
19743 | ||
19744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
19745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19746 | { | |
19747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19748 | { | |
19749 | wxString const &_result_ref = (arg1)->GetText(); | |
19750 | result = (wxString *) &_result_ref; | |
19751 | } | |
19752 | ||
19753 | wxPyEndAllowThreads(__tstate); | |
19754 | if (PyErr_Occurred()) SWIG_fail; | |
19755 | } | |
f0983263 RD |
19756 | { |
19757 | #if wxUSE_UNICODE | |
19758 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19759 | #else | |
19760 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19761 | #endif | |
19762 | } | |
d14a1e28 RD |
19763 | return resultobj; |
19764 | fail: | |
19765 | return NULL; | |
19766 | } | |
19767 | ||
19768 | ||
19769 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19770 | PyObject *resultobj; | |
19771 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19772 | int result; | |
19773 | PyObject * obj0 = 0 ; | |
19774 | char *kwnames[] = { | |
19775 | (char *) "self", NULL | |
19776 | }; | |
19777 | ||
19778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
19779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19780 | { | |
19781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19782 | result = (int)(arg1)->GetImage(); | |
19783 | ||
19784 | wxPyEndAllowThreads(__tstate); | |
19785 | if (PyErr_Occurred()) SWIG_fail; | |
19786 | } | |
8edf1c75 | 19787 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19788 | return resultobj; |
19789 | fail: | |
19790 | return NULL; | |
19791 | } | |
19792 | ||
19793 | ||
19794 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19795 | PyObject *resultobj; | |
19796 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19797 | long result; | |
19798 | PyObject * obj0 = 0 ; | |
19799 | char *kwnames[] = { | |
19800 | (char *) "self", NULL | |
19801 | }; | |
19802 | ||
19803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
19804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19805 | { | |
19806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19807 | result = (long)(arg1)->GetData(); | |
19808 | ||
19809 | wxPyEndAllowThreads(__tstate); | |
19810 | if (PyErr_Occurred()) SWIG_fail; | |
19811 | } | |
8edf1c75 | 19812 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19813 | return resultobj; |
19814 | fail: | |
19815 | return NULL; | |
19816 | } | |
19817 | ||
19818 | ||
19819 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19820 | PyObject *resultobj; | |
19821 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19822 | long result; | |
19823 | PyObject * obj0 = 0 ; | |
19824 | char *kwnames[] = { | |
19825 | (char *) "self", NULL | |
19826 | }; | |
19827 | ||
19828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
19829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19830 | { | |
19831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19832 | result = (long)(arg1)->GetMask(); | |
19833 | ||
19834 | wxPyEndAllowThreads(__tstate); | |
19835 | if (PyErr_Occurred()) SWIG_fail; | |
19836 | } | |
8edf1c75 | 19837 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19838 | return resultobj; |
19839 | fail: | |
19840 | return NULL; | |
19841 | } | |
19842 | ||
19843 | ||
19844 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19845 | PyObject *resultobj; | |
19846 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19847 | wxListItem *result; | |
19848 | PyObject * obj0 = 0 ; | |
19849 | char *kwnames[] = { | |
19850 | (char *) "self", NULL | |
19851 | }; | |
19852 | ||
19853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
19854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19855 | { | |
19856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19857 | { | |
19858 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
19859 | result = (wxListItem *) &_result_ref; | |
19860 | } | |
19861 | ||
19862 | wxPyEndAllowThreads(__tstate); | |
19863 | if (PyErr_Occurred()) SWIG_fail; | |
19864 | } | |
19865 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItem, 0); | |
19866 | return resultobj; | |
19867 | fail: | |
19868 | return NULL; | |
19869 | } | |
19870 | ||
19871 | ||
19872 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19873 | PyObject *resultobj; | |
19874 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19875 | long result; | |
19876 | PyObject * obj0 = 0 ; | |
19877 | char *kwnames[] = { | |
19878 | (char *) "self", NULL | |
19879 | }; | |
19880 | ||
19881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
19882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19883 | { | |
19884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19885 | result = (long)(arg1)->GetCacheFrom(); | |
19886 | ||
19887 | wxPyEndAllowThreads(__tstate); | |
19888 | if (PyErr_Occurred()) SWIG_fail; | |
19889 | } | |
8edf1c75 | 19890 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19891 | return resultobj; |
19892 | fail: | |
19893 | return NULL; | |
19894 | } | |
19895 | ||
19896 | ||
19897 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19898 | PyObject *resultobj; | |
19899 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19900 | long result; | |
19901 | PyObject * obj0 = 0 ; | |
19902 | char *kwnames[] = { | |
19903 | (char *) "self", NULL | |
19904 | }; | |
19905 | ||
19906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
19907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19908 | { | |
19909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19910 | result = (long)(arg1)->GetCacheTo(); | |
19911 | ||
19912 | wxPyEndAllowThreads(__tstate); | |
19913 | if (PyErr_Occurred()) SWIG_fail; | |
19914 | } | |
8edf1c75 | 19915 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19916 | return resultobj; |
19917 | fail: | |
19918 | return NULL; | |
19919 | } | |
19920 | ||
19921 | ||
19922 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19923 | PyObject *resultobj; | |
19924 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19925 | bool result; | |
19926 | PyObject * obj0 = 0 ; | |
19927 | char *kwnames[] = { | |
19928 | (char *) "self", NULL | |
19929 | }; | |
19930 | ||
19931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
19932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19933 | { | |
19934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19935 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
19936 | ||
19937 | wxPyEndAllowThreads(__tstate); | |
19938 | if (PyErr_Occurred()) SWIG_fail; | |
19939 | } | |
4e760a36 | 19940 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19941 | return resultobj; |
19942 | fail: | |
19943 | return NULL; | |
19944 | } | |
19945 | ||
19946 | ||
19947 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19948 | PyObject *resultobj; | |
19949 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19950 | bool arg2 ; | |
19951 | PyObject * obj0 = 0 ; | |
19952 | PyObject * obj1 = 0 ; | |
19953 | char *kwnames[] = { | |
19954 | (char *) "self",(char *) "editCancelled", NULL | |
19955 | }; | |
19956 | ||
19957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
19958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19959 | { |
8edf1c75 | 19960 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19961 | if (PyErr_Occurred()) SWIG_fail; |
19962 | } | |
d14a1e28 RD |
19963 | { |
19964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19965 | (arg1)->SetEditCanceled(arg2); | |
19966 | ||
19967 | wxPyEndAllowThreads(__tstate); | |
19968 | if (PyErr_Occurred()) SWIG_fail; | |
19969 | } | |
19970 | Py_INCREF(Py_None); resultobj = Py_None; | |
19971 | return resultobj; | |
19972 | fail: | |
19973 | return NULL; | |
19974 | } | |
19975 | ||
19976 | ||
19977 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
19978 | PyObject *obj; | |
19979 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19980 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
19981 | Py_INCREF(obj); | |
19982 | return Py_BuildValue((char *)""); | |
19983 | } | |
19984 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19985 | PyObject *resultobj; | |
19986 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19987 | int arg2 = (int) -1 ; |
d14a1e28 RD |
19988 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19989 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19990 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19991 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19992 | long arg5 = (long) wxLC_ICON ; | |
19993 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
19994 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
19995 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
19996 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19997 | wxPyListCtrl *result; | |
19998 | wxPoint temp3 ; | |
19999 | wxSize temp4 ; | |
423f194a | 20000 | bool temp7 = False ; |
d14a1e28 | 20001 | PyObject * obj0 = 0 ; |
8edf1c75 | 20002 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20003 | PyObject * obj2 = 0 ; |
20004 | PyObject * obj3 = 0 ; | |
8edf1c75 | 20005 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20006 | PyObject * obj5 = 0 ; |
20007 | PyObject * obj6 = 0 ; | |
20008 | char *kwnames[] = { | |
20009 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20010 | }; | |
20011 | ||
8edf1c75 | 20012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 20013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20014 | if (obj1) { |
20015 | { | |
20016 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20017 | if (PyErr_Occurred()) SWIG_fail; | |
20018 | } | |
20019 | } | |
d14a1e28 RD |
20020 | if (obj2) { |
20021 | { | |
20022 | arg3 = &temp3; | |
20023 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20024 | } | |
20025 | } | |
20026 | if (obj3) { | |
20027 | { | |
20028 | arg4 = &temp4; | |
20029 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20030 | } | |
20031 | } | |
8edf1c75 RD |
20032 | if (obj4) { |
20033 | { | |
20034 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
20035 | if (PyErr_Occurred()) SWIG_fail; | |
20036 | } | |
20037 | } | |
d14a1e28 RD |
20038 | if (obj5) { |
20039 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20040 | if (arg6 == NULL) { | |
20041 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20042 | } | |
20043 | } | |
20044 | if (obj6) { | |
20045 | { | |
20046 | arg7 = wxString_in_helper(obj6); | |
20047 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 20048 | temp7 = True; |
d14a1e28 RD |
20049 | } |
20050 | } | |
20051 | { | |
20052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20053 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
20054 | ||
20055 | wxPyEndAllowThreads(__tstate); | |
20056 | if (PyErr_Occurred()) SWIG_fail; | |
20057 | } | |
20058 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
20059 | { | |
20060 | if (temp7) | |
20061 | delete arg7; | |
20062 | } | |
20063 | return resultobj; | |
20064 | fail: | |
20065 | { | |
20066 | if (temp7) | |
20067 | delete arg7; | |
20068 | } | |
20069 | return NULL; | |
20070 | } | |
20071 | ||
20072 | ||
20073 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20074 | PyObject *resultobj; | |
20075 | wxPyListCtrl *result; | |
20076 | char *kwnames[] = { | |
20077 | NULL | |
20078 | }; | |
20079 | ||
20080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
20081 | { | |
20082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20083 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
20084 | ||
20085 | wxPyEndAllowThreads(__tstate); | |
20086 | if (PyErr_Occurred()) SWIG_fail; | |
20087 | } | |
20088 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
20089 | return resultobj; | |
20090 | fail: | |
20091 | return NULL; | |
20092 | } | |
20093 | ||
20094 | ||
20095 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20096 | PyObject *resultobj; | |
20097 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20098 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 20099 | int arg3 = (int) -1 ; |
d14a1e28 RD |
20100 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20101 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20102 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20103 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20104 | long arg6 = (long) wxLC_ICON ; | |
20105 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
20106 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
20107 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
20108 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20109 | bool result; | |
20110 | wxPoint temp4 ; | |
20111 | wxSize temp5 ; | |
423f194a | 20112 | bool temp8 = False ; |
d14a1e28 RD |
20113 | PyObject * obj0 = 0 ; |
20114 | PyObject * obj1 = 0 ; | |
8edf1c75 | 20115 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20116 | PyObject * obj3 = 0 ; |
20117 | PyObject * obj4 = 0 ; | |
8edf1c75 | 20118 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
20119 | PyObject * obj6 = 0 ; |
20120 | PyObject * obj7 = 0 ; | |
20121 | char *kwnames[] = { | |
20122 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20123 | }; | |
20124 | ||
8edf1c75 | 20125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
20126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20127 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
20128 | if (obj2) { |
20129 | { | |
20130 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20131 | if (PyErr_Occurred()) SWIG_fail; | |
20132 | } | |
20133 | } | |
d14a1e28 RD |
20134 | if (obj3) { |
20135 | { | |
20136 | arg4 = &temp4; | |
20137 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20138 | } | |
20139 | } | |
20140 | if (obj4) { | |
20141 | { | |
20142 | arg5 = &temp5; | |
20143 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20144 | } | |
20145 | } | |
8edf1c75 RD |
20146 | if (obj5) { |
20147 | { | |
20148 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
20149 | if (PyErr_Occurred()) SWIG_fail; | |
20150 | } | |
20151 | } | |
d14a1e28 RD |
20152 | if (obj6) { |
20153 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20154 | if (arg7 == NULL) { | |
20155 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20156 | } | |
20157 | } | |
20158 | if (obj7) { | |
20159 | { | |
20160 | arg8 = wxString_in_helper(obj7); | |
20161 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 20162 | temp8 = True; |
d14a1e28 RD |
20163 | } |
20164 | } | |
20165 | { | |
20166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20167 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
20168 | ||
20169 | wxPyEndAllowThreads(__tstate); | |
20170 | if (PyErr_Occurred()) SWIG_fail; | |
20171 | } | |
4e760a36 | 20172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20173 | { |
20174 | if (temp8) | |
20175 | delete arg8; | |
20176 | } | |
20177 | return resultobj; | |
20178 | fail: | |
20179 | { | |
20180 | if (temp8) | |
20181 | delete arg8; | |
20182 | } | |
20183 | return NULL; | |
20184 | } | |
20185 | ||
20186 | ||
20187 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20188 | PyObject *resultobj; | |
20189 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20190 | PyObject *arg2 = (PyObject *) 0 ; | |
20191 | PyObject *arg3 = (PyObject *) 0 ; | |
20192 | PyObject * obj0 = 0 ; | |
20193 | PyObject * obj1 = 0 ; | |
20194 | PyObject * obj2 = 0 ; | |
20195 | char *kwnames[] = { | |
20196 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20197 | }; | |
20198 | ||
20199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20201 | arg2 = obj1; | |
20202 | arg3 = obj2; | |
20203 | { | |
20204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20205 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20206 | ||
20207 | wxPyEndAllowThreads(__tstate); | |
20208 | if (PyErr_Occurred()) SWIG_fail; | |
20209 | } | |
20210 | Py_INCREF(Py_None); resultobj = Py_None; | |
20211 | return resultobj; | |
20212 | fail: | |
20213 | return NULL; | |
20214 | } | |
20215 | ||
20216 | ||
20217 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20218 | PyObject *resultobj; | |
20219 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20220 | wxColour *arg2 = 0 ; | |
20221 | bool result; | |
20222 | wxColour temp2 ; | |
20223 | PyObject * obj0 = 0 ; | |
20224 | PyObject * obj1 = 0 ; | |
20225 | char *kwnames[] = { | |
20226 | (char *) "self",(char *) "col", NULL | |
20227 | }; | |
20228 | ||
20229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
20230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20231 | { | |
20232 | arg2 = &temp2; | |
20233 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20234 | } | |
20235 | { | |
20236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20237 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
20238 | ||
20239 | wxPyEndAllowThreads(__tstate); | |
20240 | if (PyErr_Occurred()) SWIG_fail; | |
20241 | } | |
4e760a36 | 20242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20243 | return resultobj; |
20244 | fail: | |
20245 | return NULL; | |
20246 | } | |
20247 | ||
20248 | ||
20249 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20250 | PyObject *resultobj; | |
20251 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20252 | wxColour *arg2 = 0 ; | |
20253 | bool result; | |
20254 | wxColour temp2 ; | |
20255 | PyObject * obj0 = 0 ; | |
20256 | PyObject * obj1 = 0 ; | |
20257 | char *kwnames[] = { | |
20258 | (char *) "self",(char *) "col", NULL | |
20259 | }; | |
20260 | ||
20261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
20262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20263 | { | |
20264 | arg2 = &temp2; | |
20265 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20266 | } | |
20267 | { | |
20268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20269 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
20270 | ||
20271 | wxPyEndAllowThreads(__tstate); | |
20272 | if (PyErr_Occurred()) SWIG_fail; | |
20273 | } | |
4e760a36 | 20274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20275 | return resultobj; |
20276 | fail: | |
20277 | return NULL; | |
20278 | } | |
20279 | ||
20280 | ||
20281 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20282 | PyObject *resultobj; | |
20283 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20284 | int arg2 ; | |
20285 | wxListItem *result; | |
20286 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20287 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20288 | char *kwnames[] = { |
20289 | (char *) "self",(char *) "col", NULL | |
20290 | }; | |
20291 | ||
8edf1c75 | 20292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20294 | { |
20295 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20296 | if (PyErr_Occurred()) SWIG_fail; | |
20297 | } | |
d14a1e28 RD |
20298 | { |
20299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20300 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
20301 | ||
20302 | wxPyEndAllowThreads(__tstate); | |
20303 | if (PyErr_Occurred()) SWIG_fail; | |
20304 | } | |
20305 | { | |
20306 | resultobj = wxPyMake_wxObject(result); | |
20307 | } | |
20308 | return resultobj; | |
20309 | fail: | |
20310 | return NULL; | |
20311 | } | |
20312 | ||
20313 | ||
20314 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20315 | PyObject *resultobj; | |
20316 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20317 | int arg2 ; | |
20318 | wxListItem *arg3 = 0 ; | |
20319 | bool result; | |
20320 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20321 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20322 | PyObject * obj2 = 0 ; |
20323 | char *kwnames[] = { | |
20324 | (char *) "self",(char *) "col",(char *) "item", NULL | |
20325 | }; | |
20326 | ||
8edf1c75 | 20327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20329 | { |
20330 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20331 | if (PyErr_Occurred()) SWIG_fail; | |
20332 | } | |
d14a1e28 RD |
20333 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20334 | if (arg3 == NULL) { | |
20335 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20336 | } | |
20337 | { | |
20338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20339 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
20340 | ||
20341 | wxPyEndAllowThreads(__tstate); | |
20342 | if (PyErr_Occurred()) SWIG_fail; | |
20343 | } | |
4e760a36 | 20344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20345 | return resultobj; |
20346 | fail: | |
20347 | return NULL; | |
20348 | } | |
20349 | ||
20350 | ||
20351 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20352 | PyObject *resultobj; | |
20353 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20354 | int arg2 ; | |
20355 | int result; | |
20356 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20357 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20358 | char *kwnames[] = { |
20359 | (char *) "self",(char *) "col", NULL | |
20360 | }; | |
20361 | ||
8edf1c75 | 20362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20364 | { |
20365 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20366 | if (PyErr_Occurred()) SWIG_fail; | |
20367 | } | |
d14a1e28 RD |
20368 | { |
20369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20370 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
20371 | ||
20372 | wxPyEndAllowThreads(__tstate); | |
20373 | if (PyErr_Occurred()) SWIG_fail; | |
20374 | } | |
8edf1c75 | 20375 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20376 | return resultobj; |
20377 | fail: | |
20378 | return NULL; | |
20379 | } | |
20380 | ||
20381 | ||
20382 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20383 | PyObject *resultobj; | |
20384 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20385 | int arg2 ; | |
20386 | int arg3 ; | |
20387 | bool result; | |
20388 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20389 | PyObject * obj1 = 0 ; |
20390 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20391 | char *kwnames[] = { |
20392 | (char *) "self",(char *) "col",(char *) "width", NULL | |
20393 | }; | |
20394 | ||
8edf1c75 | 20395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20397 | { |
20398 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20399 | if (PyErr_Occurred()) SWIG_fail; | |
20400 | } | |
20401 | { | |
20402 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20403 | if (PyErr_Occurred()) SWIG_fail; | |
20404 | } | |
d14a1e28 RD |
20405 | { |
20406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20407 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
20408 | ||
20409 | wxPyEndAllowThreads(__tstate); | |
20410 | if (PyErr_Occurred()) SWIG_fail; | |
20411 | } | |
4e760a36 | 20412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20413 | return resultobj; |
20414 | fail: | |
20415 | return NULL; | |
20416 | } | |
20417 | ||
20418 | ||
20419 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20420 | PyObject *resultobj; | |
20421 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20422 | int result; | |
20423 | PyObject * obj0 = 0 ; | |
20424 | char *kwnames[] = { | |
20425 | (char *) "self", NULL | |
20426 | }; | |
20427 | ||
20428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
20429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20430 | { | |
20431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20432 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
20433 | ||
20434 | wxPyEndAllowThreads(__tstate); | |
20435 | if (PyErr_Occurred()) SWIG_fail; | |
20436 | } | |
8edf1c75 | 20437 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20438 | return resultobj; |
20439 | fail: | |
20440 | return NULL; | |
20441 | } | |
20442 | ||
20443 | ||
20444 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20445 | PyObject *resultobj; | |
20446 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20447 | wxRect result; | |
20448 | PyObject * obj0 = 0 ; | |
20449 | char *kwnames[] = { | |
20450 | (char *) "self", NULL | |
20451 | }; | |
20452 | ||
20453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
20454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20455 | { | |
20456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20457 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
20458 | ||
20459 | wxPyEndAllowThreads(__tstate); | |
20460 | if (PyErr_Occurred()) SWIG_fail; | |
20461 | } | |
20462 | { | |
20463 | wxRect * resultptr; | |
20464 | resultptr = new wxRect((wxRect &) result); | |
20465 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20466 | } | |
20467 | return resultobj; | |
20468 | fail: | |
20469 | return NULL; | |
20470 | } | |
20471 | ||
20472 | ||
20473 | static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20474 | PyObject *resultobj; | |
20475 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20476 | wxTextCtrl *result; | |
20477 | PyObject * obj0 = 0 ; | |
20478 | char *kwnames[] = { | |
20479 | (char *) "self", NULL | |
20480 | }; | |
20481 | ||
20482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
20483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20484 | { | |
20485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20486 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
20487 | ||
20488 | wxPyEndAllowThreads(__tstate); | |
20489 | if (PyErr_Occurred()) SWIG_fail; | |
20490 | } | |
20491 | { | |
20492 | resultobj = wxPyMake_wxObject(result); | |
20493 | } | |
20494 | return resultobj; | |
20495 | fail: | |
20496 | return NULL; | |
20497 | } | |
20498 | ||
20499 | ||
20500 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20501 | PyObject *resultobj; | |
20502 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20503 | long arg2 ; | |
20504 | int arg3 = (int) 0 ; | |
20505 | wxListItem *result; | |
20506 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20507 | PyObject * obj1 = 0 ; |
20508 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20509 | char *kwnames[] = { |
20510 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
20511 | }; | |
20512 | ||
8edf1c75 | 20513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20515 | { |
20516 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20517 | if (PyErr_Occurred()) SWIG_fail; | |
20518 | } | |
20519 | if (obj2) { | |
20520 | { | |
20521 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20522 | if (PyErr_Occurred()) SWIG_fail; | |
20523 | } | |
20524 | } | |
d14a1e28 RD |
20525 | { |
20526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20527 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
20528 | ||
20529 | wxPyEndAllowThreads(__tstate); | |
20530 | if (PyErr_Occurred()) SWIG_fail; | |
20531 | } | |
20532 | { | |
20533 | resultobj = wxPyMake_wxObject(result); | |
20534 | } | |
20535 | return resultobj; | |
20536 | fail: | |
20537 | return NULL; | |
20538 | } | |
20539 | ||
20540 | ||
20541 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20542 | PyObject *resultobj; | |
20543 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20544 | wxListItem *arg2 = 0 ; | |
20545 | bool result; | |
20546 | PyObject * obj0 = 0 ; | |
20547 | PyObject * obj1 = 0 ; | |
20548 | char *kwnames[] = { | |
20549 | (char *) "self",(char *) "info", NULL | |
20550 | }; | |
20551 | ||
20552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
20553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20554 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20555 | if (arg2 == NULL) { | |
20556 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20557 | } | |
20558 | { | |
20559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20560 | result = (bool)(arg1)->SetItem(*arg2); | |
20561 | ||
20562 | wxPyEndAllowThreads(__tstate); | |
20563 | if (PyErr_Occurred()) SWIG_fail; | |
20564 | } | |
4e760a36 | 20565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20566 | return resultobj; |
20567 | fail: | |
20568 | return NULL; | |
20569 | } | |
20570 | ||
20571 | ||
20572 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20573 | PyObject *resultobj; | |
20574 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20575 | long arg2 ; | |
20576 | int arg3 ; | |
20577 | wxString *arg4 = 0 ; | |
20578 | int arg5 = (int) -1 ; | |
20579 | long result; | |
423f194a | 20580 | bool temp4 = False ; |
d14a1e28 | 20581 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
20582 | PyObject * obj1 = 0 ; |
20583 | PyObject * obj2 = 0 ; | |
d14a1e28 | 20584 | PyObject * obj3 = 0 ; |
8edf1c75 | 20585 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20586 | char *kwnames[] = { |
20587 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
20588 | }; | |
20589 | ||
8edf1c75 | 20590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 20591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20592 | { |
20593 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20594 | if (PyErr_Occurred()) SWIG_fail; | |
20595 | } | |
20596 | { | |
20597 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20598 | if (PyErr_Occurred()) SWIG_fail; | |
20599 | } | |
d14a1e28 RD |
20600 | { |
20601 | arg4 = wxString_in_helper(obj3); | |
20602 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 20603 | temp4 = True; |
d14a1e28 | 20604 | } |
8edf1c75 RD |
20605 | if (obj4) { |
20606 | { | |
20607 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
20608 | if (PyErr_Occurred()) SWIG_fail; | |
20609 | } | |
20610 | } | |
d14a1e28 RD |
20611 | { |
20612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20613 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
20614 | ||
20615 | wxPyEndAllowThreads(__tstate); | |
20616 | if (PyErr_Occurred()) SWIG_fail; | |
20617 | } | |
8edf1c75 | 20618 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20619 | { |
20620 | if (temp4) | |
20621 | delete arg4; | |
20622 | } | |
20623 | return resultobj; | |
20624 | fail: | |
20625 | { | |
20626 | if (temp4) | |
20627 | delete arg4; | |
20628 | } | |
20629 | return NULL; | |
20630 | } | |
20631 | ||
20632 | ||
20633 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20634 | PyObject *resultobj; | |
20635 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20636 | long arg2 ; | |
20637 | long arg3 ; | |
20638 | int result; | |
20639 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20640 | PyObject * obj1 = 0 ; |
20641 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20642 | char *kwnames[] = { |
20643 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
20644 | }; | |
20645 | ||
8edf1c75 | 20646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20648 | { |
20649 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20650 | if (PyErr_Occurred()) SWIG_fail; | |
20651 | } | |
20652 | { | |
20653 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20654 | if (PyErr_Occurred()) SWIG_fail; | |
20655 | } | |
d14a1e28 RD |
20656 | { |
20657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20658 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
20659 | ||
20660 | wxPyEndAllowThreads(__tstate); | |
20661 | if (PyErr_Occurred()) SWIG_fail; | |
20662 | } | |
8edf1c75 | 20663 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20664 | return resultobj; |
20665 | fail: | |
20666 | return NULL; | |
20667 | } | |
20668 | ||
20669 | ||
20670 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20671 | PyObject *resultobj; | |
20672 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20673 | long arg2 ; | |
20674 | long arg3 ; | |
20675 | long arg4 ; | |
20676 | bool result; | |
20677 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20678 | PyObject * obj1 = 0 ; |
20679 | PyObject * obj2 = 0 ; | |
20680 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20681 | char *kwnames[] = { |
20682 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
20683 | }; | |
20684 | ||
8edf1c75 | 20685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20687 | { |
20688 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20689 | if (PyErr_Occurred()) SWIG_fail; | |
20690 | } | |
20691 | { | |
20692 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20693 | if (PyErr_Occurred()) SWIG_fail; | |
20694 | } | |
20695 | { | |
20696 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
20697 | if (PyErr_Occurred()) SWIG_fail; | |
20698 | } | |
d14a1e28 RD |
20699 | { |
20700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20701 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
20702 | ||
20703 | wxPyEndAllowThreads(__tstate); | |
20704 | if (PyErr_Occurred()) SWIG_fail; | |
20705 | } | |
4e760a36 | 20706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20707 | return resultobj; |
20708 | fail: | |
20709 | return NULL; | |
20710 | } | |
20711 | ||
20712 | ||
20713 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20714 | PyObject *resultobj; | |
20715 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20716 | long arg2 ; | |
20717 | int arg3 ; | |
20718 | int arg4 ; | |
20719 | bool result; | |
20720 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20721 | PyObject * obj1 = 0 ; |
20722 | PyObject * obj2 = 0 ; | |
20723 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20724 | char *kwnames[] = { |
20725 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
20726 | }; | |
20727 | ||
8edf1c75 | 20728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20730 | { |
20731 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20732 | if (PyErr_Occurred()) SWIG_fail; | |
20733 | } | |
20734 | { | |
20735 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20736 | if (PyErr_Occurred()) SWIG_fail; | |
20737 | } | |
20738 | { | |
20739 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
20740 | if (PyErr_Occurred()) SWIG_fail; | |
20741 | } | |
d14a1e28 RD |
20742 | { |
20743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20744 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
20745 | ||
20746 | wxPyEndAllowThreads(__tstate); | |
20747 | if (PyErr_Occurred()) SWIG_fail; | |
20748 | } | |
4e760a36 | 20749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20750 | return resultobj; |
20751 | fail: | |
20752 | return NULL; | |
20753 | } | |
20754 | ||
20755 | ||
20756 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20757 | PyObject *resultobj; | |
20758 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20759 | long arg2 ; | |
20760 | wxString result; | |
20761 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20762 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20763 | char *kwnames[] = { |
20764 | (char *) "self",(char *) "item", NULL | |
20765 | }; | |
20766 | ||
8edf1c75 | 20767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20769 | { |
20770 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20771 | if (PyErr_Occurred()) SWIG_fail; | |
20772 | } | |
d14a1e28 RD |
20773 | { |
20774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20775 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
20776 | ||
20777 | wxPyEndAllowThreads(__tstate); | |
20778 | if (PyErr_Occurred()) SWIG_fail; | |
20779 | } | |
20780 | { | |
20781 | #if wxUSE_UNICODE | |
20782 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20783 | #else | |
20784 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20785 | #endif | |
20786 | } | |
20787 | return resultobj; | |
20788 | fail: | |
20789 | return NULL; | |
20790 | } | |
20791 | ||
20792 | ||
20793 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20794 | PyObject *resultobj; | |
20795 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20796 | long arg2 ; | |
20797 | wxString *arg3 = 0 ; | |
423f194a | 20798 | bool temp3 = False ; |
d14a1e28 | 20799 | PyObject * obj0 = 0 ; |
8edf1c75 | 20800 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20801 | PyObject * obj2 = 0 ; |
20802 | char *kwnames[] = { | |
20803 | (char *) "self",(char *) "item",(char *) "str", NULL | |
20804 | }; | |
20805 | ||
8edf1c75 | 20806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20808 | { |
20809 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20810 | if (PyErr_Occurred()) SWIG_fail; | |
20811 | } | |
d14a1e28 RD |
20812 | { |
20813 | arg3 = wxString_in_helper(obj2); | |
20814 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 20815 | temp3 = True; |
d14a1e28 RD |
20816 | } |
20817 | { | |
20818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20819 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
20820 | ||
20821 | wxPyEndAllowThreads(__tstate); | |
20822 | if (PyErr_Occurred()) SWIG_fail; | |
20823 | } | |
20824 | Py_INCREF(Py_None); resultobj = Py_None; | |
20825 | { | |
20826 | if (temp3) | |
20827 | delete arg3; | |
20828 | } | |
20829 | return resultobj; | |
20830 | fail: | |
20831 | { | |
20832 | if (temp3) | |
20833 | delete arg3; | |
20834 | } | |
20835 | return NULL; | |
20836 | } | |
20837 | ||
20838 | ||
20839 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20840 | PyObject *resultobj; | |
20841 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20842 | long arg2 ; | |
20843 | long result; | |
20844 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20845 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20846 | char *kwnames[] = { |
20847 | (char *) "self",(char *) "item", NULL | |
20848 | }; | |
20849 | ||
8edf1c75 | 20850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20852 | { |
20853 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20854 | if (PyErr_Occurred()) SWIG_fail; | |
20855 | } | |
d14a1e28 RD |
20856 | { |
20857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20858 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
20859 | ||
20860 | wxPyEndAllowThreads(__tstate); | |
20861 | if (PyErr_Occurred()) SWIG_fail; | |
20862 | } | |
8edf1c75 | 20863 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20864 | return resultobj; |
20865 | fail: | |
20866 | return NULL; | |
20867 | } | |
20868 | ||
20869 | ||
20870 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20871 | PyObject *resultobj; | |
20872 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20873 | long arg2 ; | |
20874 | long arg3 ; | |
20875 | bool result; | |
20876 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20877 | PyObject * obj1 = 0 ; |
20878 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20879 | char *kwnames[] = { |
20880 | (char *) "self",(char *) "item",(char *) "data", NULL | |
20881 | }; | |
20882 | ||
8edf1c75 | 20883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20885 | { |
20886 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20887 | if (PyErr_Occurred()) SWIG_fail; | |
20888 | } | |
20889 | { | |
20890 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20891 | if (PyErr_Occurred()) SWIG_fail; | |
20892 | } | |
d14a1e28 RD |
20893 | { |
20894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20895 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
20896 | ||
20897 | wxPyEndAllowThreads(__tstate); | |
20898 | if (PyErr_Occurred()) SWIG_fail; | |
20899 | } | |
4e760a36 | 20900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20901 | return resultobj; |
20902 | fail: | |
20903 | return NULL; | |
20904 | } | |
20905 | ||
20906 | ||
20907 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20908 | PyObject *resultobj; | |
20909 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20910 | long arg2 ; | |
20911 | wxPoint result; | |
20912 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20913 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20914 | char *kwnames[] = { |
20915 | (char *) "self",(char *) "item", NULL | |
20916 | }; | |
20917 | ||
8edf1c75 | 20918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20920 | { |
20921 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20922 | if (PyErr_Occurred()) SWIG_fail; | |
20923 | } | |
d14a1e28 RD |
20924 | { |
20925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20926 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
20927 | ||
20928 | wxPyEndAllowThreads(__tstate); | |
20929 | if (PyErr_Occurred()) SWIG_fail; | |
20930 | } | |
20931 | { | |
20932 | wxPoint * resultptr; | |
20933 | resultptr = new wxPoint((wxPoint &) result); | |
20934 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20935 | } | |
20936 | return resultobj; | |
20937 | fail: | |
20938 | return NULL; | |
20939 | } | |
20940 | ||
20941 | ||
20942 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20943 | PyObject *resultobj; | |
20944 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20945 | long arg2 ; | |
20946 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
20947 | wxRect result; | |
20948 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20949 | PyObject * obj1 = 0 ; |
20950 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20951 | char *kwnames[] = { |
20952 | (char *) "self",(char *) "item",(char *) "code", NULL | |
20953 | }; | |
20954 | ||
8edf1c75 | 20955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20957 | { |
20958 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20959 | if (PyErr_Occurred()) SWIG_fail; | |
20960 | } | |
20961 | if (obj2) { | |
20962 | { | |
20963 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20964 | if (PyErr_Occurred()) SWIG_fail; | |
20965 | } | |
20966 | } | |
d14a1e28 RD |
20967 | { |
20968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20969 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
20970 | ||
20971 | wxPyEndAllowThreads(__tstate); | |
20972 | if (PyErr_Occurred()) SWIG_fail; | |
20973 | } | |
20974 | { | |
20975 | wxRect * resultptr; | |
20976 | resultptr = new wxRect((wxRect &) result); | |
20977 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20978 | } | |
20979 | return resultobj; | |
20980 | fail: | |
20981 | return NULL; | |
20982 | } | |
20983 | ||
20984 | ||
20985 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20986 | PyObject *resultobj; | |
20987 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20988 | long arg2 ; | |
20989 | wxPoint *arg3 = 0 ; | |
20990 | bool result; | |
20991 | wxPoint temp3 ; | |
20992 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20993 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20994 | PyObject * obj2 = 0 ; |
20995 | char *kwnames[] = { | |
20996 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
20997 | }; | |
20998 | ||
8edf1c75 | 20999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21001 | { |
21002 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21003 | if (PyErr_Occurred()) SWIG_fail; | |
21004 | } | |
d14a1e28 RD |
21005 | { |
21006 | arg3 = &temp3; | |
21007 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21008 | } | |
21009 | { | |
21010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21011 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
21012 | ||
21013 | wxPyEndAllowThreads(__tstate); | |
21014 | if (PyErr_Occurred()) SWIG_fail; | |
21015 | } | |
4e760a36 | 21016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21017 | return resultobj; |
21018 | fail: | |
21019 | return NULL; | |
21020 | } | |
21021 | ||
21022 | ||
21023 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21024 | PyObject *resultobj; | |
21025 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21026 | int result; | |
21027 | PyObject * obj0 = 0 ; | |
21028 | char *kwnames[] = { | |
21029 | (char *) "self", NULL | |
21030 | }; | |
21031 | ||
21032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
21033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21034 | { | |
21035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21036 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
21037 | ||
21038 | wxPyEndAllowThreads(__tstate); | |
21039 | if (PyErr_Occurred()) SWIG_fail; | |
21040 | } | |
8edf1c75 | 21041 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21042 | return resultobj; |
21043 | fail: | |
21044 | return NULL; | |
21045 | } | |
21046 | ||
21047 | ||
21048 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21049 | PyObject *resultobj; | |
21050 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21051 | int result; | |
21052 | PyObject * obj0 = 0 ; | |
21053 | char *kwnames[] = { | |
21054 | (char *) "self", NULL | |
21055 | }; | |
21056 | ||
21057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
21058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21059 | { | |
21060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21061 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
21062 | ||
21063 | wxPyEndAllowThreads(__tstate); | |
21064 | if (PyErr_Occurred()) SWIG_fail; | |
21065 | } | |
8edf1c75 | 21066 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21067 | return resultobj; |
21068 | fail: | |
21069 | return NULL; | |
21070 | } | |
21071 | ||
21072 | ||
21073 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21074 | PyObject *resultobj; | |
21075 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21076 | wxSize result; | |
21077 | PyObject * obj0 = 0 ; | |
21078 | char *kwnames[] = { | |
21079 | (char *) "self", NULL | |
21080 | }; | |
21081 | ||
21082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
21083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21084 | { | |
21085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21086 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
21087 | ||
21088 | wxPyEndAllowThreads(__tstate); | |
21089 | if (PyErr_Occurred()) SWIG_fail; | |
21090 | } | |
21091 | { | |
21092 | wxSize * resultptr; | |
21093 | resultptr = new wxSize((wxSize &) result); | |
21094 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21095 | } | |
21096 | return resultobj; | |
21097 | fail: | |
21098 | return NULL; | |
21099 | } | |
21100 | ||
21101 | ||
21102 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21103 | PyObject *resultobj; | |
21104 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21105 | int result; | |
21106 | PyObject * obj0 = 0 ; | |
21107 | char *kwnames[] = { | |
21108 | (char *) "self", NULL | |
21109 | }; | |
21110 | ||
21111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
21112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21113 | { | |
21114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21115 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
21116 | ||
21117 | wxPyEndAllowThreads(__tstate); | |
21118 | if (PyErr_Occurred()) SWIG_fail; | |
21119 | } | |
8edf1c75 | 21120 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21121 | return resultobj; |
21122 | fail: | |
21123 | return NULL; | |
21124 | } | |
21125 | ||
21126 | ||
21127 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21128 | PyObject *resultobj; | |
21129 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21130 | wxColour result; | |
21131 | PyObject * obj0 = 0 ; | |
21132 | char *kwnames[] = { | |
21133 | (char *) "self", NULL | |
21134 | }; | |
21135 | ||
21136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
21137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21138 | { | |
21139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21140 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
21141 | ||
21142 | wxPyEndAllowThreads(__tstate); | |
21143 | if (PyErr_Occurred()) SWIG_fail; | |
21144 | } | |
21145 | { | |
21146 | wxColour * resultptr; | |
21147 | resultptr = new wxColour((wxColour &) result); | |
21148 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21149 | } | |
21150 | return resultobj; | |
21151 | fail: | |
21152 | return NULL; | |
21153 | } | |
21154 | ||
21155 | ||
21156 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21157 | PyObject *resultobj; | |
21158 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21159 | wxColour *arg2 = 0 ; | |
21160 | wxColour temp2 ; | |
21161 | PyObject * obj0 = 0 ; | |
21162 | PyObject * obj1 = 0 ; | |
21163 | char *kwnames[] = { | |
21164 | (char *) "self",(char *) "col", NULL | |
21165 | }; | |
21166 | ||
21167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
21168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21169 | { | |
21170 | arg2 = &temp2; | |
21171 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21172 | } | |
21173 | { | |
21174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21175 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21176 | ||
21177 | wxPyEndAllowThreads(__tstate); | |
21178 | if (PyErr_Occurred()) SWIG_fail; | |
21179 | } | |
21180 | Py_INCREF(Py_None); resultobj = Py_None; | |
21181 | return resultobj; | |
21182 | fail: | |
21183 | return NULL; | |
21184 | } | |
21185 | ||
21186 | ||
21187 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21188 | PyObject *resultobj; | |
21189 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21190 | long result; | |
21191 | PyObject * obj0 = 0 ; | |
21192 | char *kwnames[] = { | |
21193 | (char *) "self", NULL | |
21194 | }; | |
21195 | ||
21196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
21197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21198 | { | |
21199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21200 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
21201 | ||
21202 | wxPyEndAllowThreads(__tstate); | |
21203 | if (PyErr_Occurred()) SWIG_fail; | |
21204 | } | |
8edf1c75 | 21205 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21206 | return resultobj; |
21207 | fail: | |
21208 | return NULL; | |
21209 | } | |
21210 | ||
21211 | ||
21212 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21213 | PyObject *resultobj; | |
21214 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21215 | long arg2 ; | |
423f194a | 21216 | bool arg3 = (bool) True ; |
d14a1e28 | 21217 | PyObject * obj0 = 0 ; |
8edf1c75 | 21218 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21219 | PyObject * obj2 = 0 ; |
21220 | char *kwnames[] = { | |
21221 | (char *) "self",(char *) "style",(char *) "add", NULL | |
21222 | }; | |
21223 | ||
8edf1c75 | 21224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21226 | { |
21227 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21228 | if (PyErr_Occurred()) SWIG_fail; | |
21229 | } | |
d14a1e28 | 21230 | if (obj2) { |
83448d71 | 21231 | { |
8edf1c75 | 21232 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
21233 | if (PyErr_Occurred()) SWIG_fail; |
21234 | } | |
d14a1e28 RD |
21235 | } |
21236 | { | |
21237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21238 | (arg1)->SetSingleStyle(arg2,arg3); | |
21239 | ||
21240 | wxPyEndAllowThreads(__tstate); | |
21241 | if (PyErr_Occurred()) SWIG_fail; | |
21242 | } | |
21243 | Py_INCREF(Py_None); resultobj = Py_None; | |
21244 | return resultobj; | |
21245 | fail: | |
21246 | return NULL; | |
21247 | } | |
21248 | ||
21249 | ||
21250 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21251 | PyObject *resultobj; | |
21252 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21253 | long arg2 ; | |
21254 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21255 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21256 | char *kwnames[] = { |
21257 | (char *) "self",(char *) "style", NULL | |
21258 | }; | |
21259 | ||
8edf1c75 | 21260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21262 | { |
21263 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21264 | if (PyErr_Occurred()) SWIG_fail; | |
21265 | } | |
d14a1e28 RD |
21266 | { |
21267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21268 | (arg1)->SetWindowStyleFlag(arg2); | |
21269 | ||
21270 | wxPyEndAllowThreads(__tstate); | |
21271 | if (PyErr_Occurred()) SWIG_fail; | |
21272 | } | |
21273 | Py_INCREF(Py_None); resultobj = Py_None; | |
21274 | return resultobj; | |
21275 | fail: | |
21276 | return NULL; | |
21277 | } | |
21278 | ||
21279 | ||
21280 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21281 | PyObject *resultobj; | |
21282 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21283 | long arg2 ; | |
21284 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
21285 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
21286 | long result; | |
21287 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21288 | PyObject * obj1 = 0 ; |
21289 | PyObject * obj2 = 0 ; | |
21290 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21291 | char *kwnames[] = { |
21292 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
21293 | }; | |
21294 | ||
8edf1c75 | 21295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21297 | { |
21298 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21299 | if (PyErr_Occurred()) SWIG_fail; | |
21300 | } | |
21301 | if (obj2) { | |
21302 | { | |
21303 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21304 | if (PyErr_Occurred()) SWIG_fail; | |
21305 | } | |
21306 | } | |
21307 | if (obj3) { | |
21308 | { | |
21309 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21310 | if (PyErr_Occurred()) SWIG_fail; | |
21311 | } | |
21312 | } | |
d14a1e28 RD |
21313 | { |
21314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21315 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
21316 | ||
21317 | wxPyEndAllowThreads(__tstate); | |
21318 | if (PyErr_Occurred()) SWIG_fail; | |
21319 | } | |
8edf1c75 | 21320 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21321 | return resultobj; |
21322 | fail: | |
21323 | return NULL; | |
21324 | } | |
21325 | ||
21326 | ||
21327 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21328 | PyObject *resultobj; | |
21329 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21330 | int arg2 ; | |
21331 | wxImageList *result; | |
21332 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21333 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21334 | char *kwnames[] = { |
21335 | (char *) "self",(char *) "which", NULL | |
21336 | }; | |
21337 | ||
8edf1c75 | 21338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21340 | { |
21341 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21342 | if (PyErr_Occurred()) SWIG_fail; | |
21343 | } | |
d14a1e28 RD |
21344 | { |
21345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21346 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
21347 | ||
21348 | wxPyEndAllowThreads(__tstate); | |
21349 | if (PyErr_Occurred()) SWIG_fail; | |
21350 | } | |
21351 | { | |
21352 | resultobj = wxPyMake_wxObject(result); | |
21353 | } | |
21354 | return resultobj; | |
21355 | fail: | |
21356 | return NULL; | |
21357 | } | |
21358 | ||
21359 | ||
21360 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21361 | PyObject *resultobj; | |
21362 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21363 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21364 | int arg3 ; | |
21365 | PyObject * obj0 = 0 ; | |
21366 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21367 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21368 | char *kwnames[] = { |
21369 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21370 | }; | |
21371 | ||
8edf1c75 | 21372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
21373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
21374 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
21375 | { |
21376 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21377 | if (PyErr_Occurred()) SWIG_fail; | |
21378 | } | |
d14a1e28 RD |
21379 | { |
21380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21381 | (arg1)->SetImageList(arg2,arg3); | |
21382 | ||
21383 | wxPyEndAllowThreads(__tstate); | |
21384 | if (PyErr_Occurred()) SWIG_fail; | |
21385 | } | |
21386 | Py_INCREF(Py_None); resultobj = Py_None; | |
21387 | return resultobj; | |
21388 | fail: | |
21389 | return NULL; | |
21390 | } | |
21391 | ||
21392 | ||
21393 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21394 | PyObject *resultobj; | |
21395 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21396 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21397 | int arg3 ; | |
21398 | PyObject * obj0 = 0 ; | |
21399 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21400 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21401 | char *kwnames[] = { |
21402 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21403 | }; | |
21404 | ||
8edf1c75 | 21405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
58203fa6 | 21407 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
8edf1c75 RD |
21408 | { |
21409 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21410 | if (PyErr_Occurred()) SWIG_fail; | |
21411 | } | |
d14a1e28 RD |
21412 | { |
21413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21414 | (arg1)->AssignImageList(arg2,arg3); | |
21415 | ||
21416 | wxPyEndAllowThreads(__tstate); | |
21417 | if (PyErr_Occurred()) SWIG_fail; | |
21418 | } | |
21419 | Py_INCREF(Py_None); resultobj = Py_None; | |
21420 | return resultobj; | |
21421 | fail: | |
21422 | return NULL; | |
21423 | } | |
21424 | ||
21425 | ||
21426 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21427 | PyObject *resultobj; | |
21428 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21429 | bool result; | |
21430 | PyObject * obj0 = 0 ; | |
21431 | char *kwnames[] = { | |
21432 | (char *) "self", NULL | |
21433 | }; | |
21434 | ||
21435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
21436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21437 | { | |
21438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21439 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
21440 | ||
21441 | wxPyEndAllowThreads(__tstate); | |
21442 | if (PyErr_Occurred()) SWIG_fail; | |
21443 | } | |
4e760a36 | 21444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21445 | return resultobj; |
21446 | fail: | |
21447 | return NULL; | |
21448 | } | |
21449 | ||
21450 | ||
21451 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21452 | PyObject *resultobj; | |
21453 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21454 | long arg2 ; | |
21455 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21456 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21457 | char *kwnames[] = { |
21458 | (char *) "self",(char *) "item", NULL | |
21459 | }; | |
21460 | ||
8edf1c75 | 21461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21463 | { |
21464 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21465 | if (PyErr_Occurred()) SWIG_fail; | |
21466 | } | |
d14a1e28 RD |
21467 | { |
21468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21469 | (arg1)->RefreshItem(arg2); | |
21470 | ||
21471 | wxPyEndAllowThreads(__tstate); | |
21472 | if (PyErr_Occurred()) SWIG_fail; | |
21473 | } | |
21474 | Py_INCREF(Py_None); resultobj = Py_None; | |
21475 | return resultobj; | |
21476 | fail: | |
21477 | return NULL; | |
21478 | } | |
21479 | ||
21480 | ||
21481 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21482 | PyObject *resultobj; | |
21483 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21484 | long arg2 ; | |
21485 | long arg3 ; | |
21486 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21487 | PyObject * obj1 = 0 ; |
21488 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21489 | char *kwnames[] = { |
21490 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
21491 | }; | |
21492 | ||
8edf1c75 | 21493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21495 | { |
21496 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21497 | if (PyErr_Occurred()) SWIG_fail; | |
21498 | } | |
21499 | { | |
21500 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21501 | if (PyErr_Occurred()) SWIG_fail; | |
21502 | } | |
d14a1e28 RD |
21503 | { |
21504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21505 | (arg1)->RefreshItems(arg2,arg3); | |
21506 | ||
21507 | wxPyEndAllowThreads(__tstate); | |
21508 | if (PyErr_Occurred()) SWIG_fail; | |
21509 | } | |
21510 | Py_INCREF(Py_None); resultobj = Py_None; | |
21511 | return resultobj; | |
21512 | fail: | |
21513 | return NULL; | |
21514 | } | |
21515 | ||
21516 | ||
21517 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21518 | PyObject *resultobj; | |
21519 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21520 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
21521 | bool result; | |
21522 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21523 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21524 | char *kwnames[] = { |
21525 | (char *) "self",(char *) "flag", NULL | |
21526 | }; | |
21527 | ||
8edf1c75 | 21528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21530 | if (obj1) { |
21531 | { | |
21532 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21533 | if (PyErr_Occurred()) SWIG_fail; | |
21534 | } | |
21535 | } | |
d14a1e28 RD |
21536 | { |
21537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21538 | result = (bool)(arg1)->Arrange(arg2); | |
21539 | ||
21540 | wxPyEndAllowThreads(__tstate); | |
21541 | if (PyErr_Occurred()) SWIG_fail; | |
21542 | } | |
4e760a36 | 21543 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21544 | return resultobj; |
21545 | fail: | |
21546 | return NULL; | |
21547 | } | |
21548 | ||
21549 | ||
21550 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21551 | PyObject *resultobj; | |
21552 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21553 | long arg2 ; | |
21554 | bool result; | |
21555 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21556 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21557 | char *kwnames[] = { |
21558 | (char *) "self",(char *) "item", NULL | |
21559 | }; | |
21560 | ||
8edf1c75 | 21561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21563 | { |
21564 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21565 | if (PyErr_Occurred()) SWIG_fail; | |
21566 | } | |
d14a1e28 RD |
21567 | { |
21568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21569 | result = (bool)(arg1)->DeleteItem(arg2); | |
21570 | ||
21571 | wxPyEndAllowThreads(__tstate); | |
21572 | if (PyErr_Occurred()) SWIG_fail; | |
21573 | } | |
4e760a36 | 21574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21575 | return resultobj; |
21576 | fail: | |
21577 | return NULL; | |
21578 | } | |
21579 | ||
21580 | ||
21581 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21582 | PyObject *resultobj; | |
21583 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21584 | bool result; | |
21585 | PyObject * obj0 = 0 ; | |
21586 | char *kwnames[] = { | |
21587 | (char *) "self", NULL | |
21588 | }; | |
21589 | ||
21590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
21591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21592 | { | |
21593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21594 | result = (bool)(arg1)->DeleteAllItems(); | |
21595 | ||
21596 | wxPyEndAllowThreads(__tstate); | |
21597 | if (PyErr_Occurred()) SWIG_fail; | |
21598 | } | |
4e760a36 | 21599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21600 | return resultobj; |
21601 | fail: | |
21602 | return NULL; | |
21603 | } | |
21604 | ||
21605 | ||
21606 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21607 | PyObject *resultobj; | |
21608 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21609 | int arg2 ; | |
21610 | bool result; | |
21611 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21612 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21613 | char *kwnames[] = { |
21614 | (char *) "self",(char *) "col", NULL | |
21615 | }; | |
21616 | ||
8edf1c75 | 21617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21619 | { |
21620 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21621 | if (PyErr_Occurred()) SWIG_fail; | |
21622 | } | |
d14a1e28 RD |
21623 | { |
21624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21625 | result = (bool)(arg1)->DeleteColumn(arg2); | |
21626 | ||
21627 | wxPyEndAllowThreads(__tstate); | |
21628 | if (PyErr_Occurred()) SWIG_fail; | |
21629 | } | |
4e760a36 | 21630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21631 | return resultobj; |
21632 | fail: | |
21633 | return NULL; | |
21634 | } | |
21635 | ||
21636 | ||
21637 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21638 | PyObject *resultobj; | |
21639 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21640 | bool result; | |
21641 | PyObject * obj0 = 0 ; | |
21642 | char *kwnames[] = { | |
21643 | (char *) "self", NULL | |
21644 | }; | |
21645 | ||
21646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
21647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21648 | { | |
21649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21650 | result = (bool)(arg1)->DeleteAllColumns(); | |
21651 | ||
21652 | wxPyEndAllowThreads(__tstate); | |
21653 | if (PyErr_Occurred()) SWIG_fail; | |
21654 | } | |
4e760a36 | 21655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21656 | return resultobj; |
21657 | fail: | |
21658 | return NULL; | |
21659 | } | |
21660 | ||
21661 | ||
21662 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21663 | PyObject *resultobj; | |
21664 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21665 | PyObject * obj0 = 0 ; | |
21666 | char *kwnames[] = { | |
21667 | (char *) "self", NULL | |
21668 | }; | |
21669 | ||
21670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
21671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21672 | { | |
21673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21674 | (arg1)->ClearAll(); | |
21675 | ||
21676 | wxPyEndAllowThreads(__tstate); | |
21677 | if (PyErr_Occurred()) SWIG_fail; | |
21678 | } | |
21679 | Py_INCREF(Py_None); resultobj = Py_None; | |
21680 | return resultobj; | |
21681 | fail: | |
21682 | return NULL; | |
21683 | } | |
21684 | ||
21685 | ||
21686 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21687 | PyObject *resultobj; | |
21688 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21689 | long arg2 ; | |
21690 | wxTextCtrl *result; | |
21691 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21692 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21693 | char *kwnames[] = { |
21694 | (char *) "self",(char *) "item", NULL | |
21695 | }; | |
21696 | ||
8edf1c75 | 21697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21699 | { |
21700 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21701 | if (PyErr_Occurred()) SWIG_fail; | |
21702 | } | |
d14a1e28 RD |
21703 | { |
21704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21705 | result = (wxTextCtrl *)(arg1)->EditLabel(arg2); | |
21706 | ||
21707 | wxPyEndAllowThreads(__tstate); | |
21708 | if (PyErr_Occurred()) SWIG_fail; | |
21709 | } | |
21710 | { | |
21711 | resultobj = wxPyMake_wxObject(result); | |
21712 | } | |
21713 | return resultobj; | |
21714 | fail: | |
21715 | return NULL; | |
21716 | } | |
21717 | ||
21718 | ||
21719 | static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21720 | PyObject *resultobj; | |
21721 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21722 | bool arg2 ; | |
21723 | bool result; | |
21724 | PyObject * obj0 = 0 ; | |
21725 | PyObject * obj1 = 0 ; | |
21726 | char *kwnames[] = { | |
21727 | (char *) "self",(char *) "cancel", NULL | |
21728 | }; | |
21729 | ||
21730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail; | |
21731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 21732 | { |
8edf1c75 | 21733 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
21734 | if (PyErr_Occurred()) SWIG_fail; |
21735 | } | |
d14a1e28 RD |
21736 | { |
21737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21738 | result = (bool)(arg1)->EndEditLabel(arg2); | |
21739 | ||
21740 | wxPyEndAllowThreads(__tstate); | |
21741 | if (PyErr_Occurred()) SWIG_fail; | |
21742 | } | |
4e760a36 | 21743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21744 | return resultobj; |
21745 | fail: | |
21746 | return NULL; | |
21747 | } | |
21748 | ||
21749 | ||
21750 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21751 | PyObject *resultobj; | |
21752 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21753 | long arg2 ; | |
21754 | bool result; | |
21755 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21756 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21757 | char *kwnames[] = { |
21758 | (char *) "self",(char *) "item", NULL | |
21759 | }; | |
21760 | ||
8edf1c75 | 21761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21763 | { |
21764 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21765 | if (PyErr_Occurred()) SWIG_fail; | |
21766 | } | |
d14a1e28 RD |
21767 | { |
21768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21769 | result = (bool)(arg1)->EnsureVisible(arg2); | |
21770 | ||
21771 | wxPyEndAllowThreads(__tstate); | |
21772 | if (PyErr_Occurred()) SWIG_fail; | |
21773 | } | |
4e760a36 | 21774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21775 | return resultobj; |
21776 | fail: | |
21777 | return NULL; | |
21778 | } | |
21779 | ||
21780 | ||
21781 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21782 | PyObject *resultobj; | |
21783 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21784 | long arg2 ; | |
21785 | wxString *arg3 = 0 ; | |
423f194a | 21786 | bool arg4 = (bool) False ; |
d14a1e28 | 21787 | long result; |
423f194a | 21788 | bool temp3 = False ; |
d14a1e28 | 21789 | PyObject * obj0 = 0 ; |
8edf1c75 | 21790 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21791 | PyObject * obj2 = 0 ; |
21792 | PyObject * obj3 = 0 ; | |
21793 | char *kwnames[] = { | |
21794 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
21795 | }; | |
21796 | ||
8edf1c75 | 21797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21799 | { |
21800 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21801 | if (PyErr_Occurred()) SWIG_fail; | |
21802 | } | |
d14a1e28 RD |
21803 | { |
21804 | arg3 = wxString_in_helper(obj2); | |
21805 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21806 | temp3 = True; |
d14a1e28 RD |
21807 | } |
21808 | if (obj3) { | |
83448d71 | 21809 | { |
8edf1c75 | 21810 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
21811 | if (PyErr_Occurred()) SWIG_fail; |
21812 | } | |
d14a1e28 RD |
21813 | } |
21814 | { | |
21815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21816 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
21817 | ||
21818 | wxPyEndAllowThreads(__tstate); | |
21819 | if (PyErr_Occurred()) SWIG_fail; | |
21820 | } | |
8edf1c75 | 21821 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21822 | { |
21823 | if (temp3) | |
21824 | delete arg3; | |
21825 | } | |
21826 | return resultobj; | |
21827 | fail: | |
21828 | { | |
21829 | if (temp3) | |
21830 | delete arg3; | |
21831 | } | |
21832 | return NULL; | |
21833 | } | |
21834 | ||
21835 | ||
21836 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21837 | PyObject *resultobj; | |
21838 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21839 | long arg2 ; | |
21840 | long arg3 ; | |
21841 | long result; | |
21842 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21843 | PyObject * obj1 = 0 ; |
21844 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21845 | char *kwnames[] = { |
21846 | (char *) "self",(char *) "start",(char *) "data", NULL | |
21847 | }; | |
21848 | ||
8edf1c75 | 21849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21851 | { |
21852 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21853 | if (PyErr_Occurred()) SWIG_fail; | |
21854 | } | |
21855 | { | |
21856 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21857 | if (PyErr_Occurred()) SWIG_fail; | |
21858 | } | |
d14a1e28 RD |
21859 | { |
21860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21861 | result = (long)(arg1)->FindItem(arg2,arg3); | |
21862 | ||
21863 | wxPyEndAllowThreads(__tstate); | |
21864 | if (PyErr_Occurred()) SWIG_fail; | |
21865 | } | |
8edf1c75 | 21866 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21867 | return resultobj; |
21868 | fail: | |
21869 | return NULL; | |
21870 | } | |
21871 | ||
21872 | ||
21873 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21874 | PyObject *resultobj; | |
21875 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21876 | long arg2 ; | |
21877 | wxPoint *arg3 = 0 ; | |
21878 | int arg4 ; | |
21879 | long result; | |
21880 | wxPoint temp3 ; | |
21881 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21882 | PyObject * obj1 = 0 ; |
d14a1e28 | 21883 | PyObject * obj2 = 0 ; |
8edf1c75 | 21884 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
21885 | char *kwnames[] = { |
21886 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
21887 | }; | |
21888 | ||
8edf1c75 | 21889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21891 | { |
21892 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21893 | if (PyErr_Occurred()) SWIG_fail; | |
21894 | } | |
d14a1e28 RD |
21895 | { |
21896 | arg3 = &temp3; | |
21897 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21898 | } | |
8edf1c75 RD |
21899 | { |
21900 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21901 | if (PyErr_Occurred()) SWIG_fail; | |
21902 | } | |
d14a1e28 RD |
21903 | { |
21904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21905 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
21906 | ||
21907 | wxPyEndAllowThreads(__tstate); | |
21908 | if (PyErr_Occurred()) SWIG_fail; | |
21909 | } | |
8edf1c75 | 21910 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21911 | return resultobj; |
21912 | fail: | |
21913 | return NULL; | |
21914 | } | |
21915 | ||
21916 | ||
21917 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21918 | PyObject *resultobj; | |
21919 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21920 | wxPoint *arg2 = 0 ; | |
21921 | int *arg3 = 0 ; | |
21922 | long result; | |
21923 | wxPoint temp2 ; | |
21924 | int temp3 ; | |
21925 | PyObject * obj0 = 0 ; | |
21926 | PyObject * obj1 = 0 ; | |
21927 | char *kwnames[] = { | |
21928 | (char *) "self",(char *) "point", NULL | |
21929 | }; | |
21930 | ||
21931 | arg3 = &temp3; | |
21932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
21933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21934 | { | |
21935 | arg2 = &temp2; | |
21936 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21937 | } | |
21938 | { | |
21939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21940 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
21941 | ||
21942 | wxPyEndAllowThreads(__tstate); | |
21943 | if (PyErr_Occurred()) SWIG_fail; | |
21944 | } | |
8edf1c75 | 21945 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21946 | { |
21947 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21948 | resultobj = t_output_helper(resultobj,o); | |
21949 | } | |
21950 | return resultobj; | |
21951 | fail: | |
21952 | return NULL; | |
21953 | } | |
21954 | ||
21955 | ||
21956 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21957 | PyObject *resultobj; | |
21958 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21959 | wxListItem *arg2 = 0 ; | |
21960 | long result; | |
21961 | PyObject * obj0 = 0 ; | |
21962 | PyObject * obj1 = 0 ; | |
21963 | char *kwnames[] = { | |
21964 | (char *) "self",(char *) "info", NULL | |
21965 | }; | |
21966 | ||
21967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
21968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21969 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21970 | if (arg2 == NULL) { | |
21971 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21972 | } | |
21973 | { | |
21974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21975 | result = (long)(arg1)->InsertItem(*arg2); | |
21976 | ||
21977 | wxPyEndAllowThreads(__tstate); | |
21978 | if (PyErr_Occurred()) SWIG_fail; | |
21979 | } | |
8edf1c75 | 21980 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21981 | return resultobj; |
21982 | fail: | |
21983 | return NULL; | |
21984 | } | |
21985 | ||
21986 | ||
21987 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21988 | PyObject *resultobj; | |
21989 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21990 | long arg2 ; | |
21991 | wxString *arg3 = 0 ; | |
21992 | long result; | |
423f194a | 21993 | bool temp3 = False ; |
d14a1e28 | 21994 | PyObject * obj0 = 0 ; |
8edf1c75 | 21995 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21996 | PyObject * obj2 = 0 ; |
21997 | char *kwnames[] = { | |
21998 | (char *) "self",(char *) "index",(char *) "label", NULL | |
21999 | }; | |
22000 | ||
8edf1c75 | 22001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22003 | { |
22004 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22005 | if (PyErr_Occurred()) SWIG_fail; | |
22006 | } | |
d14a1e28 RD |
22007 | { |
22008 | arg3 = wxString_in_helper(obj2); | |
22009 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22010 | temp3 = True; |
d14a1e28 RD |
22011 | } |
22012 | { | |
22013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22014 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
22015 | ||
22016 | wxPyEndAllowThreads(__tstate); | |
22017 | if (PyErr_Occurred()) SWIG_fail; | |
22018 | } | |
8edf1c75 | 22019 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22020 | { |
22021 | if (temp3) | |
22022 | delete arg3; | |
22023 | } | |
22024 | return resultobj; | |
22025 | fail: | |
22026 | { | |
22027 | if (temp3) | |
22028 | delete arg3; | |
22029 | } | |
22030 | return NULL; | |
22031 | } | |
22032 | ||
22033 | ||
22034 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22035 | PyObject *resultobj; | |
22036 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22037 | long arg2 ; | |
22038 | int arg3 ; | |
22039 | long result; | |
22040 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22041 | PyObject * obj1 = 0 ; |
22042 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22043 | char *kwnames[] = { |
22044 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
22045 | }; | |
22046 | ||
8edf1c75 | 22047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22049 | { |
22050 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22051 | if (PyErr_Occurred()) SWIG_fail; | |
22052 | } | |
22053 | { | |
22054 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22055 | if (PyErr_Occurred()) SWIG_fail; | |
22056 | } | |
d14a1e28 RD |
22057 | { |
22058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22059 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
22060 | ||
22061 | wxPyEndAllowThreads(__tstate); | |
22062 | if (PyErr_Occurred()) SWIG_fail; | |
22063 | } | |
8edf1c75 | 22064 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22065 | return resultobj; |
22066 | fail: | |
22067 | return NULL; | |
22068 | } | |
22069 | ||
22070 | ||
22071 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22072 | PyObject *resultobj; | |
22073 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22074 | long arg2 ; | |
22075 | wxString *arg3 = 0 ; | |
22076 | int arg4 ; | |
22077 | long result; | |
423f194a | 22078 | bool temp3 = False ; |
d14a1e28 | 22079 | PyObject * obj0 = 0 ; |
8edf1c75 | 22080 | PyObject * obj1 = 0 ; |
d14a1e28 | 22081 | PyObject * obj2 = 0 ; |
8edf1c75 | 22082 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
22083 | char *kwnames[] = { |
22084 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
22085 | }; | |
22086 | ||
8edf1c75 | 22087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 22088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22089 | { |
22090 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22091 | if (PyErr_Occurred()) SWIG_fail; | |
22092 | } | |
d14a1e28 RD |
22093 | { |
22094 | arg3 = wxString_in_helper(obj2); | |
22095 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22096 | temp3 = True; |
d14a1e28 | 22097 | } |
8edf1c75 RD |
22098 | { |
22099 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
22100 | if (PyErr_Occurred()) SWIG_fail; | |
22101 | } | |
d14a1e28 RD |
22102 | { |
22103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22104 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
22105 | ||
22106 | wxPyEndAllowThreads(__tstate); | |
22107 | if (PyErr_Occurred()) SWIG_fail; | |
22108 | } | |
8edf1c75 | 22109 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22110 | { |
22111 | if (temp3) | |
22112 | delete arg3; | |
22113 | } | |
22114 | return resultobj; | |
22115 | fail: | |
22116 | { | |
22117 | if (temp3) | |
22118 | delete arg3; | |
22119 | } | |
22120 | return NULL; | |
22121 | } | |
22122 | ||
22123 | ||
22124 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22125 | PyObject *resultobj; | |
22126 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22127 | long arg2 ; | |
22128 | wxListItem *arg3 = 0 ; | |
22129 | long result; | |
22130 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22131 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22132 | PyObject * obj2 = 0 ; |
22133 | char *kwnames[] = { | |
22134 | (char *) "self",(char *) "col",(char *) "info", NULL | |
22135 | }; | |
22136 | ||
8edf1c75 | 22137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22139 | { |
22140 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22141 | if (PyErr_Occurred()) SWIG_fail; | |
22142 | } | |
d14a1e28 RD |
22143 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
22144 | if (arg3 == NULL) { | |
22145 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22146 | } | |
22147 | { | |
22148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22149 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
22150 | ||
22151 | wxPyEndAllowThreads(__tstate); | |
22152 | if (PyErr_Occurred()) SWIG_fail; | |
22153 | } | |
8edf1c75 | 22154 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22155 | return resultobj; |
22156 | fail: | |
22157 | return NULL; | |
22158 | } | |
22159 | ||
22160 | ||
22161 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22162 | PyObject *resultobj; | |
22163 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22164 | long arg2 ; | |
22165 | wxString *arg3 = 0 ; | |
22166 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
22167 | int arg5 = (int) -1 ; | |
22168 | long result; | |
423f194a | 22169 | bool temp3 = False ; |
d14a1e28 | 22170 | PyObject * obj0 = 0 ; |
8edf1c75 | 22171 | PyObject * obj1 = 0 ; |
d14a1e28 | 22172 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
22173 | PyObject * obj3 = 0 ; |
22174 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
22175 | char *kwnames[] = { |
22176 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
22177 | }; | |
22178 | ||
8edf1c75 | 22179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 22180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22181 | { |
22182 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22183 | if (PyErr_Occurred()) SWIG_fail; | |
22184 | } | |
d14a1e28 RD |
22185 | { |
22186 | arg3 = wxString_in_helper(obj2); | |
22187 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22188 | temp3 = True; |
d14a1e28 | 22189 | } |
8edf1c75 RD |
22190 | if (obj3) { |
22191 | { | |
22192 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
22193 | if (PyErr_Occurred()) SWIG_fail; | |
22194 | } | |
22195 | } | |
22196 | if (obj4) { | |
22197 | { | |
22198 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
22199 | if (PyErr_Occurred()) SWIG_fail; | |
22200 | } | |
22201 | } | |
d14a1e28 RD |
22202 | { |
22203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22204 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
22205 | ||
22206 | wxPyEndAllowThreads(__tstate); | |
22207 | if (PyErr_Occurred()) SWIG_fail; | |
22208 | } | |
8edf1c75 | 22209 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22210 | { |
22211 | if (temp3) | |
22212 | delete arg3; | |
22213 | } | |
22214 | return resultobj; | |
22215 | fail: | |
22216 | { | |
22217 | if (temp3) | |
22218 | delete arg3; | |
22219 | } | |
22220 | return NULL; | |
22221 | } | |
22222 | ||
22223 | ||
22224 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22225 | PyObject *resultobj; | |
22226 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22227 | long arg2 ; | |
22228 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22229 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22230 | char *kwnames[] = { |
22231 | (char *) "self",(char *) "count", NULL | |
22232 | }; | |
22233 | ||
8edf1c75 | 22234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22236 | { |
22237 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22238 | if (PyErr_Occurred()) SWIG_fail; | |
22239 | } | |
d14a1e28 RD |
22240 | { |
22241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22242 | (arg1)->SetItemCount(arg2); | |
22243 | ||
22244 | wxPyEndAllowThreads(__tstate); | |
22245 | if (PyErr_Occurred()) SWIG_fail; | |
22246 | } | |
22247 | Py_INCREF(Py_None); resultobj = Py_None; | |
22248 | return resultobj; | |
22249 | fail: | |
22250 | return NULL; | |
22251 | } | |
22252 | ||
22253 | ||
22254 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22255 | PyObject *resultobj; | |
22256 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22257 | int arg2 ; | |
22258 | int arg3 ; | |
22259 | bool result; | |
22260 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22261 | PyObject * obj1 = 0 ; |
22262 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22263 | char *kwnames[] = { |
22264 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
22265 | }; | |
22266 | ||
8edf1c75 | 22267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22269 | { |
22270 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22271 | if (PyErr_Occurred()) SWIG_fail; | |
22272 | } | |
22273 | { | |
22274 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22275 | if (PyErr_Occurred()) SWIG_fail; | |
22276 | } | |
d14a1e28 RD |
22277 | { |
22278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22279 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
22280 | ||
22281 | wxPyEndAllowThreads(__tstate); | |
22282 | if (PyErr_Occurred()) SWIG_fail; | |
22283 | } | |
4e760a36 | 22284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22285 | return resultobj; |
22286 | fail: | |
22287 | return NULL; | |
22288 | } | |
22289 | ||
22290 | ||
22291 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22292 | PyObject *resultobj; | |
22293 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22294 | long arg2 ; | |
22295 | wxColour *arg3 = 0 ; | |
22296 | wxColour temp3 ; | |
22297 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22298 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22299 | PyObject * obj2 = 0 ; |
22300 | char *kwnames[] = { | |
22301 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22302 | }; | |
22303 | ||
8edf1c75 | 22304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22306 | { |
22307 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22308 | if (PyErr_Occurred()) SWIG_fail; | |
22309 | } | |
d14a1e28 RD |
22310 | { |
22311 | arg3 = &temp3; | |
22312 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22313 | } | |
22314 | { | |
22315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22316 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
22317 | ||
22318 | wxPyEndAllowThreads(__tstate); | |
22319 | if (PyErr_Occurred()) SWIG_fail; | |
22320 | } | |
22321 | Py_INCREF(Py_None); resultobj = Py_None; | |
22322 | return resultobj; | |
22323 | fail: | |
22324 | return NULL; | |
22325 | } | |
22326 | ||
22327 | ||
22328 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22329 | PyObject *resultobj; | |
22330 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22331 | long arg2 ; | |
22332 | wxColour result; | |
22333 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22334 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22335 | char *kwnames[] = { |
22336 | (char *) "self",(char *) "item", NULL | |
22337 | }; | |
22338 | ||
8edf1c75 | 22339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22341 | { |
22342 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22343 | if (PyErr_Occurred()) SWIG_fail; | |
22344 | } | |
d14a1e28 RD |
22345 | { |
22346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22347 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
22348 | ||
22349 | wxPyEndAllowThreads(__tstate); | |
22350 | if (PyErr_Occurred()) SWIG_fail; | |
22351 | } | |
22352 | { | |
22353 | wxColour * resultptr; | |
22354 | resultptr = new wxColour((wxColour &) result); | |
22355 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
22356 | } | |
22357 | return resultobj; | |
22358 | fail: | |
22359 | return NULL; | |
22360 | } | |
22361 | ||
22362 | ||
22363 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22364 | PyObject *resultobj; | |
22365 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22366 | long arg2 ; | |
22367 | wxColour *arg3 = 0 ; | |
22368 | wxColour temp3 ; | |
22369 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22370 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22371 | PyObject * obj2 = 0 ; |
22372 | char *kwnames[] = { | |
22373 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22374 | }; | |
22375 | ||
8edf1c75 | 22376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22378 | { |
22379 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22380 | if (PyErr_Occurred()) SWIG_fail; | |
22381 | } | |
d14a1e28 RD |
22382 | { |
22383 | arg3 = &temp3; | |
22384 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22385 | } | |
22386 | { | |
22387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22388 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
22389 | ||
22390 | wxPyEndAllowThreads(__tstate); | |
22391 | if (PyErr_Occurred()) SWIG_fail; | |
22392 | } | |
22393 | Py_INCREF(Py_None); resultobj = Py_None; | |
22394 | return resultobj; | |
22395 | fail: | |
22396 | return NULL; | |
22397 | } | |
22398 | ||
22399 | ||
22400 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22401 | PyObject *resultobj; | |
22402 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22403 | long arg2 ; | |
22404 | wxColour result; | |
22405 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22406 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22407 | char *kwnames[] = { |
22408 | (char *) "self",(char *) "item", NULL | |
22409 | }; | |
22410 | ||
8edf1c75 | 22411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22413 | { |
22414 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22415 | if (PyErr_Occurred()) SWIG_fail; | |
22416 | } | |
d14a1e28 RD |
22417 | { |
22418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22419 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
22420 | ||
22421 | wxPyEndAllowThreads(__tstate); | |
22422 | if (PyErr_Occurred()) SWIG_fail; | |
22423 | } | |
22424 | { | |
22425 | wxColour * resultptr; | |
22426 | resultptr = new wxColour((wxColour &) result); | |
22427 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
22428 | } | |
22429 | return resultobj; | |
22430 | fail: | |
22431 | return NULL; | |
22432 | } | |
22433 | ||
22434 | ||
22435 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22436 | PyObject *resultobj; | |
22437 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22438 | PyObject *arg2 = (PyObject *) 0 ; | |
22439 | bool result; | |
22440 | PyObject * obj0 = 0 ; | |
22441 | PyObject * obj1 = 0 ; | |
22442 | char *kwnames[] = { | |
22443 | (char *) "self",(char *) "func", NULL | |
22444 | }; | |
22445 | ||
22446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
22447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22448 | arg2 = obj1; | |
22449 | { | |
22450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22451 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
22452 | ||
22453 | wxPyEndAllowThreads(__tstate); | |
22454 | if (PyErr_Occurred()) SWIG_fail; | |
22455 | } | |
4e760a36 | 22456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22457 | return resultobj; |
22458 | fail: | |
22459 | return NULL; | |
22460 | } | |
22461 | ||
22462 | ||
22463 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22464 | PyObject *resultobj; | |
22465 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22466 | wxWindow *result; | |
22467 | PyObject * obj0 = 0 ; | |
22468 | char *kwnames[] = { | |
22469 | (char *) "self", NULL | |
22470 | }; | |
22471 | ||
22472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
22473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22474 | { | |
22475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22476 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
22477 | ||
22478 | wxPyEndAllowThreads(__tstate); | |
22479 | if (PyErr_Occurred()) SWIG_fail; | |
22480 | } | |
22481 | { | |
22482 | resultobj = wxPyMake_wxObject(result); | |
22483 | } | |
22484 | return resultobj; | |
22485 | fail: | |
22486 | return NULL; | |
22487 | } | |
22488 | ||
22489 | ||
22490 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
22491 | PyObject *obj; | |
22492 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22493 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
22494 | Py_INCREF(obj); | |
22495 | return Py_BuildValue((char *)""); | |
22496 | } | |
22497 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22498 | PyObject *resultobj; | |
22499 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22500 | int arg2 = (int) -1 ; |
d14a1e28 RD |
22501 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
22502 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22503 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22504 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22505 | long arg5 = (long) wxLC_REPORT ; | |
22506 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
22507 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
22508 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
22509 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22510 | wxListView *result; | |
22511 | wxPoint temp3 ; | |
22512 | wxSize temp4 ; | |
423f194a | 22513 | bool temp7 = False ; |
d14a1e28 | 22514 | PyObject * obj0 = 0 ; |
8edf1c75 | 22515 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22516 | PyObject * obj2 = 0 ; |
22517 | PyObject * obj3 = 0 ; | |
8edf1c75 | 22518 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
22519 | PyObject * obj5 = 0 ; |
22520 | PyObject * obj6 = 0 ; | |
22521 | char *kwnames[] = { | |
22522 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22523 | }; | |
22524 | ||
8edf1c75 | 22525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 22526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22527 | if (obj1) { |
22528 | { | |
22529 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22530 | if (PyErr_Occurred()) SWIG_fail; | |
22531 | } | |
22532 | } | |
d14a1e28 RD |
22533 | if (obj2) { |
22534 | { | |
22535 | arg3 = &temp3; | |
22536 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22537 | } | |
22538 | } | |
22539 | if (obj3) { | |
22540 | { | |
22541 | arg4 = &temp4; | |
22542 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22543 | } | |
22544 | } | |
8edf1c75 RD |
22545 | if (obj4) { |
22546 | { | |
22547 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
22548 | if (PyErr_Occurred()) SWIG_fail; | |
22549 | } | |
22550 | } | |
d14a1e28 RD |
22551 | if (obj5) { |
22552 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22553 | if (arg6 == NULL) { | |
22554 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22555 | } | |
22556 | } | |
22557 | if (obj6) { | |
22558 | { | |
22559 | arg7 = wxString_in_helper(obj6); | |
22560 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 22561 | temp7 = True; |
d14a1e28 RD |
22562 | } |
22563 | } | |
22564 | { | |
22565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22566 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
22567 | ||
22568 | wxPyEndAllowThreads(__tstate); | |
22569 | if (PyErr_Occurred()) SWIG_fail; | |
22570 | } | |
22571 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
22572 | { | |
22573 | if (temp7) | |
22574 | delete arg7; | |
22575 | } | |
22576 | return resultobj; | |
22577 | fail: | |
22578 | { | |
22579 | if (temp7) | |
22580 | delete arg7; | |
22581 | } | |
22582 | return NULL; | |
22583 | } | |
22584 | ||
22585 | ||
22586 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22587 | PyObject *resultobj; | |
22588 | wxListView *result; | |
22589 | char *kwnames[] = { | |
22590 | NULL | |
22591 | }; | |
22592 | ||
22593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
22594 | { | |
22595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22596 | result = (wxListView *)new wxListView(); | |
22597 | ||
22598 | wxPyEndAllowThreads(__tstate); | |
22599 | if (PyErr_Occurred()) SWIG_fail; | |
22600 | } | |
22601 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
22602 | return resultobj; | |
22603 | fail: | |
22604 | return NULL; | |
22605 | } | |
22606 | ||
22607 | ||
22608 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22609 | PyObject *resultobj; | |
22610 | wxListView *arg1 = (wxListView *) 0 ; | |
22611 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 22612 | int arg3 = (int) -1 ; |
d14a1e28 RD |
22613 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
22614 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22615 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22616 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22617 | long arg6 = (long) wxLC_REPORT ; | |
22618 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
22619 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
22620 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
22621 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
22622 | bool result; | |
22623 | wxPoint temp4 ; | |
22624 | wxSize temp5 ; | |
423f194a | 22625 | bool temp8 = False ; |
d14a1e28 RD |
22626 | PyObject * obj0 = 0 ; |
22627 | PyObject * obj1 = 0 ; | |
8edf1c75 | 22628 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22629 | PyObject * obj3 = 0 ; |
22630 | PyObject * obj4 = 0 ; | |
8edf1c75 | 22631 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22632 | PyObject * obj6 = 0 ; |
22633 | PyObject * obj7 = 0 ; | |
22634 | char *kwnames[] = { | |
22635 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22636 | }; | |
22637 | ||
8edf1c75 | 22638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
22639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
22640 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
22641 | if (obj2) { |
22642 | { | |
22643 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22644 | if (PyErr_Occurred()) SWIG_fail; | |
22645 | } | |
22646 | } | |
d14a1e28 RD |
22647 | if (obj3) { |
22648 | { | |
22649 | arg4 = &temp4; | |
22650 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22651 | } | |
22652 | } | |
22653 | if (obj4) { | |
22654 | { | |
22655 | arg5 = &temp5; | |
22656 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22657 | } | |
22658 | } | |
8edf1c75 RD |
22659 | if (obj5) { |
22660 | { | |
22661 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
22662 | if (PyErr_Occurred()) SWIG_fail; | |
22663 | } | |
22664 | } | |
d14a1e28 RD |
22665 | if (obj6) { |
22666 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22667 | if (arg7 == NULL) { | |
22668 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22669 | } | |
22670 | } | |
22671 | if (obj7) { | |
22672 | { | |
22673 | arg8 = wxString_in_helper(obj7); | |
22674 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 22675 | temp8 = True; |
d14a1e28 RD |
22676 | } |
22677 | } | |
22678 | { | |
22679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22680 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
22681 | ||
22682 | wxPyEndAllowThreads(__tstate); | |
22683 | if (PyErr_Occurred()) SWIG_fail; | |
22684 | } | |
4e760a36 | 22685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22686 | { |
22687 | if (temp8) | |
22688 | delete arg8; | |
22689 | } | |
22690 | return resultobj; | |
22691 | fail: | |
22692 | { | |
22693 | if (temp8) | |
22694 | delete arg8; | |
22695 | } | |
22696 | return NULL; | |
22697 | } | |
22698 | ||
22699 | ||
22700 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22701 | PyObject *resultobj; | |
22702 | wxListView *arg1 = (wxListView *) 0 ; | |
22703 | long arg2 ; | |
423f194a | 22704 | bool arg3 = (bool) True ; |
d14a1e28 | 22705 | PyObject * obj0 = 0 ; |
8edf1c75 | 22706 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22707 | PyObject * obj2 = 0 ; |
22708 | char *kwnames[] = { | |
22709 | (char *) "self",(char *) "n",(char *) "on", NULL | |
22710 | }; | |
22711 | ||
8edf1c75 | 22712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22714 | { |
22715 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22716 | if (PyErr_Occurred()) SWIG_fail; | |
22717 | } | |
d14a1e28 | 22718 | if (obj2) { |
83448d71 | 22719 | { |
8edf1c75 | 22720 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
22721 | if (PyErr_Occurred()) SWIG_fail; |
22722 | } | |
d14a1e28 RD |
22723 | } |
22724 | { | |
22725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22726 | (arg1)->Select(arg2,arg3); | |
22727 | ||
22728 | wxPyEndAllowThreads(__tstate); | |
22729 | if (PyErr_Occurred()) SWIG_fail; | |
22730 | } | |
22731 | Py_INCREF(Py_None); resultobj = Py_None; | |
22732 | return resultobj; | |
22733 | fail: | |
22734 | return NULL; | |
22735 | } | |
22736 | ||
22737 | ||
22738 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22739 | PyObject *resultobj; | |
22740 | wxListView *arg1 = (wxListView *) 0 ; | |
22741 | long arg2 ; | |
22742 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22743 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22744 | char *kwnames[] = { |
22745 | (char *) "self",(char *) "index", NULL | |
22746 | }; | |
22747 | ||
8edf1c75 | 22748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22750 | { |
22751 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22752 | if (PyErr_Occurred()) SWIG_fail; | |
22753 | } | |
d14a1e28 RD |
22754 | { |
22755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22756 | (arg1)->Focus(arg2); | |
22757 | ||
22758 | wxPyEndAllowThreads(__tstate); | |
22759 | if (PyErr_Occurred()) SWIG_fail; | |
22760 | } | |
22761 | Py_INCREF(Py_None); resultobj = Py_None; | |
22762 | return resultobj; | |
22763 | fail: | |
22764 | return NULL; | |
22765 | } | |
22766 | ||
22767 | ||
22768 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22769 | PyObject *resultobj; | |
22770 | wxListView *arg1 = (wxListView *) 0 ; | |
22771 | long result; | |
22772 | PyObject * obj0 = 0 ; | |
22773 | char *kwnames[] = { | |
22774 | (char *) "self", NULL | |
22775 | }; | |
22776 | ||
22777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
22778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22779 | { | |
22780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22781 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
22782 | ||
22783 | wxPyEndAllowThreads(__tstate); | |
22784 | if (PyErr_Occurred()) SWIG_fail; | |
22785 | } | |
8edf1c75 | 22786 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22787 | return resultobj; |
22788 | fail: | |
22789 | return NULL; | |
22790 | } | |
22791 | ||
22792 | ||
22793 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22794 | PyObject *resultobj; | |
22795 | wxListView *arg1 = (wxListView *) 0 ; | |
22796 | long arg2 ; | |
22797 | long result; | |
22798 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22799 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22800 | char *kwnames[] = { |
22801 | (char *) "self",(char *) "item", NULL | |
22802 | }; | |
22803 | ||
8edf1c75 | 22804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22806 | { |
22807 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22808 | if (PyErr_Occurred()) SWIG_fail; | |
22809 | } | |
d14a1e28 RD |
22810 | { |
22811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22812 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
22813 | ||
22814 | wxPyEndAllowThreads(__tstate); | |
22815 | if (PyErr_Occurred()) SWIG_fail; | |
22816 | } | |
8edf1c75 | 22817 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22818 | return resultobj; |
22819 | fail: | |
22820 | return NULL; | |
22821 | } | |
22822 | ||
22823 | ||
22824 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22825 | PyObject *resultobj; | |
22826 | wxListView *arg1 = (wxListView *) 0 ; | |
22827 | long result; | |
22828 | PyObject * obj0 = 0 ; | |
22829 | char *kwnames[] = { | |
22830 | (char *) "self", NULL | |
22831 | }; | |
22832 | ||
22833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
22834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22835 | { | |
22836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22837 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
22838 | ||
22839 | wxPyEndAllowThreads(__tstate); | |
22840 | if (PyErr_Occurred()) SWIG_fail; | |
22841 | } | |
8edf1c75 | 22842 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22843 | return resultobj; |
22844 | fail: | |
22845 | return NULL; | |
22846 | } | |
22847 | ||
22848 | ||
22849 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22850 | PyObject *resultobj; | |
22851 | wxListView *arg1 = (wxListView *) 0 ; | |
22852 | long arg2 ; | |
22853 | bool result; | |
22854 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22855 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22856 | char *kwnames[] = { |
22857 | (char *) "self",(char *) "index", NULL | |
22858 | }; | |
22859 | ||
8edf1c75 | 22860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22862 | { |
22863 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22864 | if (PyErr_Occurred()) SWIG_fail; | |
22865 | } | |
d14a1e28 RD |
22866 | { |
22867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22868 | result = (bool)(arg1)->IsSelected(arg2); | |
22869 | ||
22870 | wxPyEndAllowThreads(__tstate); | |
22871 | if (PyErr_Occurred()) SWIG_fail; | |
22872 | } | |
4e760a36 | 22873 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22874 | return resultobj; |
22875 | fail: | |
22876 | return NULL; | |
22877 | } | |
22878 | ||
22879 | ||
22880 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22881 | PyObject *resultobj; | |
22882 | wxListView *arg1 = (wxListView *) 0 ; | |
22883 | int arg2 ; | |
22884 | int arg3 ; | |
22885 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22886 | PyObject * obj1 = 0 ; |
22887 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22888 | char *kwnames[] = { |
22889 | (char *) "self",(char *) "col",(char *) "image", NULL | |
22890 | }; | |
22891 | ||
8edf1c75 | 22892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22894 | { |
22895 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22896 | if (PyErr_Occurred()) SWIG_fail; | |
22897 | } | |
22898 | { | |
22899 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22900 | if (PyErr_Occurred()) SWIG_fail; | |
22901 | } | |
d14a1e28 RD |
22902 | { |
22903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22904 | (arg1)->SetColumnImage(arg2,arg3); | |
22905 | ||
22906 | wxPyEndAllowThreads(__tstate); | |
22907 | if (PyErr_Occurred()) SWIG_fail; | |
22908 | } | |
22909 | Py_INCREF(Py_None); resultobj = Py_None; | |
22910 | return resultobj; | |
22911 | fail: | |
22912 | return NULL; | |
22913 | } | |
22914 | ||
22915 | ||
22916 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22917 | PyObject *resultobj; | |
22918 | wxListView *arg1 = (wxListView *) 0 ; | |
22919 | int arg2 ; | |
22920 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22921 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22922 | char *kwnames[] = { |
22923 | (char *) "self",(char *) "col", NULL | |
22924 | }; | |
22925 | ||
8edf1c75 | 22926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22928 | { |
22929 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22930 | if (PyErr_Occurred()) SWIG_fail; | |
22931 | } | |
d14a1e28 RD |
22932 | { |
22933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22934 | (arg1)->ClearColumnImage(arg2); | |
22935 | ||
22936 | wxPyEndAllowThreads(__tstate); | |
22937 | if (PyErr_Occurred()) SWIG_fail; | |
22938 | } | |
22939 | Py_INCREF(Py_None); resultobj = Py_None; | |
22940 | return resultobj; | |
22941 | fail: | |
22942 | return NULL; | |
22943 | } | |
22944 | ||
22945 | ||
22946 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
22947 | PyObject *obj; | |
22948 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22949 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
22950 | Py_INCREF(obj); | |
22951 | return Py_BuildValue((char *)""); | |
22952 | } | |
8edf1c75 | 22953 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
d03fd34d RD |
22954 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
22955 | return 1; | |
22956 | } | |
22957 | ||
22958 | ||
22959 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
22960 | PyObject *pyobj; | |
22961 | ||
22962 | { | |
22963 | #if wxUSE_UNICODE | |
22964 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22965 | #else | |
22966 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22967 | #endif | |
22968 | } | |
22969 | return pyobj; | |
22970 | } | |
22971 | ||
22972 | ||
d14a1e28 RD |
22973 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
22974 | PyObject *resultobj; | |
22975 | wxTreeItemId *result; | |
22976 | char *kwnames[] = { | |
22977 | NULL | |
22978 | }; | |
22979 | ||
22980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
22981 | { | |
22982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22983 | result = (wxTreeItemId *)new wxTreeItemId(); | |
22984 | ||
22985 | wxPyEndAllowThreads(__tstate); | |
22986 | if (PyErr_Occurred()) SWIG_fail; | |
22987 | } | |
22988 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 1); | |
22989 | return resultobj; | |
22990 | fail: | |
22991 | return NULL; | |
22992 | } | |
22993 | ||
22994 | ||
22995 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22996 | PyObject *resultobj; | |
22997 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22998 | PyObject * obj0 = 0 ; | |
22999 | char *kwnames[] = { | |
23000 | (char *) "self", NULL | |
23001 | }; | |
23002 | ||
23003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
23004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23005 | { | |
23006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23007 | delete arg1; | |
23008 | ||
23009 | wxPyEndAllowThreads(__tstate); | |
23010 | if (PyErr_Occurred()) SWIG_fail; | |
23011 | } | |
23012 | Py_INCREF(Py_None); resultobj = Py_None; | |
23013 | return resultobj; | |
23014 | fail: | |
23015 | return NULL; | |
23016 | } | |
23017 | ||
23018 | ||
23019 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23020 | PyObject *resultobj; | |
23021 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23022 | bool result; | |
23023 | PyObject * obj0 = 0 ; | |
23024 | char *kwnames[] = { | |
23025 | (char *) "self", NULL | |
23026 | }; | |
23027 | ||
23028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
23029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23030 | { | |
23031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23032 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
23033 | ||
23034 | wxPyEndAllowThreads(__tstate); | |
23035 | if (PyErr_Occurred()) SWIG_fail; | |
23036 | } | |
4e760a36 | 23037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23038 | return resultobj; |
23039 | fail: | |
23040 | return NULL; | |
23041 | } | |
23042 | ||
23043 | ||
23044 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23045 | PyObject *resultobj; | |
23046 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23047 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
23048 | bool result; | |
23049 | PyObject * obj0 = 0 ; | |
23050 | PyObject * obj1 = 0 ; | |
23051 | char *kwnames[] = { | |
23052 | (char *) "self",(char *) "other", NULL | |
23053 | }; | |
23054 | ||
23055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
23056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23057 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23058 | { | |
23059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23060 | result = (bool)wxTreeItemId_operator_ee___(arg1,(wxTreeItemId const *)arg2); | |
23061 | ||
23062 | wxPyEndAllowThreads(__tstate); | |
23063 | if (PyErr_Occurred()) SWIG_fail; | |
23064 | } | |
4e760a36 | 23065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23066 | return resultobj; |
23067 | fail: | |
23068 | return NULL; | |
23069 | } | |
23070 | ||
23071 | ||
23072 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23073 | PyObject *resultobj; | |
23074 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23075 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
23076 | bool result; | |
23077 | PyObject * obj0 = 0 ; | |
23078 | PyObject * obj1 = 0 ; | |
23079 | char *kwnames[] = { | |
23080 | (char *) "self",(char *) "other", NULL | |
23081 | }; | |
23082 | ||
23083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
23084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23085 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23086 | { | |
23087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23088 | result = (bool)wxTreeItemId_operator_Ne___(arg1,(wxTreeItemId const *)arg2); | |
23089 | ||
23090 | wxPyEndAllowThreads(__tstate); | |
23091 | if (PyErr_Occurred()) SWIG_fail; | |
23092 | } | |
4e760a36 | 23093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23094 | return resultobj; |
23095 | fail: | |
23096 | return NULL; | |
23097 | } | |
23098 | ||
23099 | ||
23100 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23101 | PyObject *resultobj; | |
23102 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 23103 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
23104 | PyObject * obj0 = 0 ; |
23105 | PyObject * obj1 = 0 ; | |
23106 | char *kwnames[] = { | |
23107 | (char *) "self",(char *) "m_pItem", NULL | |
23108 | }; | |
23109 | ||
23110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
23111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23112 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
23113 | if (arg1) (arg1)->m_pItem = arg2; | |
23114 | ||
23115 | Py_INCREF(Py_None); resultobj = Py_None; | |
23116 | return resultobj; | |
23117 | fail: | |
23118 | return NULL; | |
23119 | } | |
23120 | ||
23121 | ||
23122 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23123 | PyObject *resultobj; | |
23124 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 23125 | void *result; |
d14a1e28 RD |
23126 | PyObject * obj0 = 0 ; |
23127 | char *kwnames[] = { | |
23128 | (char *) "self", NULL | |
23129 | }; | |
23130 | ||
23131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
23132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 23133 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 23134 | |
58203fa6 | 23135 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_void, 0); |
d14a1e28 RD |
23136 | return resultobj; |
23137 | fail: | |
23138 | return NULL; | |
23139 | } | |
23140 | ||
23141 | ||
23142 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
23143 | PyObject *obj; | |
23144 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23145 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
23146 | Py_INCREF(obj); | |
23147 | return Py_BuildValue((char *)""); | |
23148 | } | |
23149 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23150 | PyObject *resultobj; | |
23151 | PyObject *arg1 = (PyObject *) NULL ; | |
23152 | wxPyTreeItemData *result; | |
23153 | PyObject * obj0 = 0 ; | |
23154 | char *kwnames[] = { | |
23155 | (char *) "obj", NULL | |
23156 | }; | |
23157 | ||
23158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
23159 | if (obj0) { | |
23160 | arg1 = obj0; | |
23161 | } | |
23162 | { | |
23163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23164 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
23165 | ||
23166 | wxPyEndAllowThreads(__tstate); | |
23167 | if (PyErr_Occurred()) SWIG_fail; | |
23168 | } | |
23169 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 1); | |
23170 | return resultobj; | |
23171 | fail: | |
23172 | return NULL; | |
23173 | } | |
23174 | ||
23175 | ||
23176 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23177 | PyObject *resultobj; | |
23178 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23179 | PyObject *result; | |
23180 | PyObject * obj0 = 0 ; | |
23181 | char *kwnames[] = { | |
23182 | (char *) "self", NULL | |
23183 | }; | |
23184 | ||
23185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
23186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23187 | { | |
23188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23189 | result = (PyObject *)(arg1)->GetData(); | |
23190 | ||
23191 | wxPyEndAllowThreads(__tstate); | |
23192 | if (PyErr_Occurred()) SWIG_fail; | |
23193 | } | |
23194 | resultobj = result; | |
23195 | return resultobj; | |
23196 | fail: | |
23197 | return NULL; | |
23198 | } | |
23199 | ||
23200 | ||
23201 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23202 | PyObject *resultobj; | |
23203 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23204 | PyObject *arg2 = (PyObject *) 0 ; | |
23205 | PyObject * obj0 = 0 ; | |
23206 | PyObject * obj1 = 0 ; | |
23207 | char *kwnames[] = { | |
23208 | (char *) "self",(char *) "obj", NULL | |
23209 | }; | |
23210 | ||
23211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
23212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23213 | arg2 = obj1; | |
23214 | { | |
23215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23216 | (arg1)->SetData(arg2); | |
23217 | ||
23218 | wxPyEndAllowThreads(__tstate); | |
23219 | if (PyErr_Occurred()) SWIG_fail; | |
23220 | } | |
23221 | Py_INCREF(Py_None); resultobj = Py_None; | |
23222 | return resultobj; | |
23223 | fail: | |
23224 | return NULL; | |
23225 | } | |
23226 | ||
23227 | ||
23228 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23229 | PyObject *resultobj; | |
23230 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23231 | wxTreeItemId *result; | |
23232 | PyObject * obj0 = 0 ; | |
23233 | char *kwnames[] = { | |
23234 | (char *) "self", NULL | |
23235 | }; | |
23236 | ||
23237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
23238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23239 | { | |
23240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23241 | { | |
23242 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
23243 | result = (wxTreeItemId *) &_result_ref; | |
23244 | } | |
23245 | ||
23246 | wxPyEndAllowThreads(__tstate); | |
23247 | if (PyErr_Occurred()) SWIG_fail; | |
23248 | } | |
23249 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 0); | |
23250 | return resultobj; | |
23251 | fail: | |
23252 | return NULL; | |
23253 | } | |
23254 | ||
23255 | ||
23256 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23257 | PyObject *resultobj; | |
23258 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23259 | wxTreeItemId *arg2 = 0 ; | |
23260 | PyObject * obj0 = 0 ; | |
23261 | PyObject * obj1 = 0 ; | |
23262 | char *kwnames[] = { | |
23263 | (char *) "self",(char *) "id", NULL | |
23264 | }; | |
23265 | ||
23266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
23267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23268 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23269 | if (arg2 == NULL) { | |
23270 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23271 | } | |
23272 | { | |
23273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23274 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
23275 | ||
23276 | wxPyEndAllowThreads(__tstate); | |
23277 | if (PyErr_Occurred()) SWIG_fail; | |
23278 | } | |
23279 | Py_INCREF(Py_None); resultobj = Py_None; | |
23280 | return resultobj; | |
23281 | fail: | |
23282 | return NULL; | |
23283 | } | |
23284 | ||
23285 | ||
23286 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23287 | PyObject *resultobj; | |
23288 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23289 | PyObject * obj0 = 0 ; | |
23290 | char *kwnames[] = { | |
23291 | (char *) "self", NULL | |
23292 | }; | |
23293 | ||
23294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
23295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23296 | { | |
23297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23298 | wxPyTreeItemData_Destroy(arg1); | |
23299 | ||
23300 | wxPyEndAllowThreads(__tstate); | |
23301 | if (PyErr_Occurred()) SWIG_fail; | |
23302 | } | |
23303 | Py_INCREF(Py_None); resultobj = Py_None; | |
23304 | return resultobj; | |
23305 | fail: | |
23306 | return NULL; | |
23307 | } | |
23308 | ||
23309 | ||
23310 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
23311 | PyObject *obj; | |
23312 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23313 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
23314 | Py_INCREF(obj); | |
23315 | return Py_BuildValue((char *)""); | |
23316 | } | |
23317 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23318 | PyObject *resultobj; | |
23319 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
23320 | int arg2 = (int) 0 ; | |
23321 | wxTreeEvent *result; | |
8edf1c75 RD |
23322 | PyObject * obj0 = 0 ; |
23323 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
23324 | char *kwnames[] = { |
23325 | (char *) "commandType",(char *) "id", NULL | |
23326 | }; | |
23327 | ||
8edf1c75 RD |
23328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
23329 | if (obj0) { | |
23330 | { | |
23331 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
23332 | if (PyErr_Occurred()) SWIG_fail; | |
23333 | } | |
23334 | } | |
23335 | if (obj1) { | |
23336 | { | |
23337 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23338 | if (PyErr_Occurred()) SWIG_fail; | |
23339 | } | |
23340 | } | |
d14a1e28 RD |
23341 | { |
23342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23343 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
23344 | ||
23345 | wxPyEndAllowThreads(__tstate); | |
23346 | if (PyErr_Occurred()) SWIG_fail; | |
23347 | } | |
23348 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeEvent, 1); | |
23349 | return resultobj; | |
23350 | fail: | |
23351 | return NULL; | |
23352 | } | |
23353 | ||
23354 | ||
23355 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23356 | PyObject *resultobj; | |
23357 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23358 | wxTreeItemId result; | |
23359 | PyObject * obj0 = 0 ; | |
23360 | char *kwnames[] = { | |
23361 | (char *) "self", NULL | |
23362 | }; | |
23363 | ||
23364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
23365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23366 | { | |
23367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23368 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
23369 | ||
23370 | wxPyEndAllowThreads(__tstate); | |
23371 | if (PyErr_Occurred()) SWIG_fail; | |
23372 | } | |
23373 | { | |
23374 | wxTreeItemId * resultptr; | |
23375 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23376 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23377 | } | |
23378 | return resultobj; | |
23379 | fail: | |
23380 | return NULL; | |
23381 | } | |
23382 | ||
23383 | ||
23384 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23385 | PyObject *resultobj; | |
23386 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23387 | wxTreeItemId *arg2 = 0 ; | |
23388 | PyObject * obj0 = 0 ; | |
23389 | PyObject * obj1 = 0 ; | |
23390 | char *kwnames[] = { | |
23391 | (char *) "self",(char *) "item", NULL | |
23392 | }; | |
23393 | ||
23394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
23395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23396 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23397 | if (arg2 == NULL) { | |
23398 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23399 | } | |
23400 | { | |
23401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23402 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
23403 | ||
23404 | wxPyEndAllowThreads(__tstate); | |
23405 | if (PyErr_Occurred()) SWIG_fail; | |
23406 | } | |
23407 | Py_INCREF(Py_None); resultobj = Py_None; | |
23408 | return resultobj; | |
23409 | fail: | |
23410 | return NULL; | |
23411 | } | |
23412 | ||
23413 | ||
23414 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23415 | PyObject *resultobj; | |
23416 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23417 | wxTreeItemId result; | |
23418 | PyObject * obj0 = 0 ; | |
23419 | char *kwnames[] = { | |
23420 | (char *) "self", NULL | |
23421 | }; | |
23422 | ||
23423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
23424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23425 | { | |
23426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23427 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
23428 | ||
23429 | wxPyEndAllowThreads(__tstate); | |
23430 | if (PyErr_Occurred()) SWIG_fail; | |
23431 | } | |
23432 | { | |
23433 | wxTreeItemId * resultptr; | |
23434 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23435 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23436 | } | |
23437 | return resultobj; | |
23438 | fail: | |
23439 | return NULL; | |
23440 | } | |
23441 | ||
23442 | ||
23443 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23444 | PyObject *resultobj; | |
23445 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23446 | wxTreeItemId *arg2 = 0 ; | |
23447 | PyObject * obj0 = 0 ; | |
23448 | PyObject * obj1 = 0 ; | |
23449 | char *kwnames[] = { | |
23450 | (char *) "self",(char *) "item", NULL | |
23451 | }; | |
23452 | ||
23453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
23454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23455 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23456 | if (arg2 == NULL) { | |
23457 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23458 | } | |
23459 | { | |
23460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23461 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
23462 | ||
23463 | wxPyEndAllowThreads(__tstate); | |
23464 | if (PyErr_Occurred()) SWIG_fail; | |
23465 | } | |
23466 | Py_INCREF(Py_None); resultobj = Py_None; | |
23467 | return resultobj; | |
23468 | fail: | |
23469 | return NULL; | |
23470 | } | |
23471 | ||
23472 | ||
23473 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23474 | PyObject *resultobj; | |
23475 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23476 | wxPoint result; | |
23477 | PyObject * obj0 = 0 ; | |
23478 | char *kwnames[] = { | |
23479 | (char *) "self", NULL | |
23480 | }; | |
23481 | ||
23482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
23483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23484 | { | |
23485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23486 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
23487 | ||
23488 | wxPyEndAllowThreads(__tstate); | |
23489 | if (PyErr_Occurred()) SWIG_fail; | |
23490 | } | |
23491 | { | |
23492 | wxPoint * resultptr; | |
23493 | resultptr = new wxPoint((wxPoint &) result); | |
23494 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23495 | } | |
23496 | return resultobj; | |
23497 | fail: | |
23498 | return NULL; | |
23499 | } | |
23500 | ||
23501 | ||
23502 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23503 | PyObject *resultobj; | |
23504 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23505 | wxPoint *arg2 = 0 ; | |
23506 | wxPoint temp2 ; | |
23507 | PyObject * obj0 = 0 ; | |
23508 | PyObject * obj1 = 0 ; | |
23509 | char *kwnames[] = { | |
23510 | (char *) "self",(char *) "pt", NULL | |
23511 | }; | |
23512 | ||
23513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
23514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23515 | { | |
23516 | arg2 = &temp2; | |
23517 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23518 | } | |
23519 | { | |
23520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23521 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
23522 | ||
23523 | wxPyEndAllowThreads(__tstate); | |
23524 | if (PyErr_Occurred()) SWIG_fail; | |
23525 | } | |
23526 | Py_INCREF(Py_None); resultobj = Py_None; | |
23527 | return resultobj; | |
23528 | fail: | |
23529 | return NULL; | |
23530 | } | |
23531 | ||
23532 | ||
23533 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23534 | PyObject *resultobj; | |
23535 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23536 | wxKeyEvent *result; | |
23537 | PyObject * obj0 = 0 ; | |
23538 | char *kwnames[] = { | |
23539 | (char *) "self", NULL | |
23540 | }; | |
23541 | ||
23542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
23543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23544 | { | |
23545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23546 | { | |
23547 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
23548 | result = (wxKeyEvent *) &_result_ref; | |
23549 | } | |
23550 | ||
23551 | wxPyEndAllowThreads(__tstate); | |
23552 | if (PyErr_Occurred()) SWIG_fail; | |
23553 | } | |
23554 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 0); | |
23555 | return resultobj; | |
23556 | fail: | |
23557 | return NULL; | |
23558 | } | |
23559 | ||
23560 | ||
23561 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23562 | PyObject *resultobj; | |
23563 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23564 | int result; | |
23565 | PyObject * obj0 = 0 ; | |
23566 | char *kwnames[] = { | |
23567 | (char *) "self", NULL | |
23568 | }; | |
23569 | ||
23570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",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 = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
23575 | ||
23576 | wxPyEndAllowThreads(__tstate); | |
23577 | if (PyErr_Occurred()) SWIG_fail; | |
23578 | } | |
8edf1c75 | 23579 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
23580 | return resultobj; |
23581 | fail: | |
23582 | return NULL; | |
23583 | } | |
23584 | ||
23585 | ||
23586 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23587 | PyObject *resultobj; | |
23588 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23589 | wxKeyEvent *arg2 = 0 ; | |
23590 | PyObject * obj0 = 0 ; | |
23591 | PyObject * obj1 = 0 ; | |
23592 | char *kwnames[] = { | |
23593 | (char *) "self",(char *) "evt", NULL | |
23594 | }; | |
23595 | ||
23596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
23597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23598 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23599 | if (arg2 == NULL) { | |
23600 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23601 | } | |
23602 | { | |
23603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23604 | (arg1)->SetKeyEvent((wxKeyEvent const &)*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 | ||
23616 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23617 | PyObject *resultobj; | |
23618 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23619 | wxString *result; | |
23620 | PyObject * obj0 = 0 ; | |
23621 | char *kwnames[] = { | |
23622 | (char *) "self", NULL | |
23623 | }; | |
23624 | ||
23625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
23626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23627 | { | |
23628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23629 | { | |
23630 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
23631 | result = (wxString *) &_result_ref; | |
23632 | } | |
23633 | ||
23634 | wxPyEndAllowThreads(__tstate); | |
23635 | if (PyErr_Occurred()) SWIG_fail; | |
23636 | } | |
f0983263 RD |
23637 | { |
23638 | #if wxUSE_UNICODE | |
23639 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23640 | #else | |
23641 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23642 | #endif | |
23643 | } | |
d14a1e28 RD |
23644 | return resultobj; |
23645 | fail: | |
23646 | return NULL; | |
23647 | } | |
23648 | ||
23649 | ||
23650 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23651 | PyObject *resultobj; | |
23652 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23653 | wxString *arg2 = 0 ; | |
423f194a | 23654 | bool temp2 = False ; |
d14a1e28 RD |
23655 | PyObject * obj0 = 0 ; |
23656 | PyObject * obj1 = 0 ; | |
23657 | char *kwnames[] = { | |
23658 | (char *) "self",(char *) "label", NULL | |
23659 | }; | |
23660 | ||
23661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
23662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23663 | { | |
23664 | arg2 = wxString_in_helper(obj1); | |
23665 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23666 | temp2 = True; |
d14a1e28 RD |
23667 | } |
23668 | { | |
23669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23670 | (arg1)->SetLabel((wxString const &)*arg2); | |
23671 | ||
23672 | wxPyEndAllowThreads(__tstate); | |
23673 | if (PyErr_Occurred()) SWIG_fail; | |
23674 | } | |
23675 | Py_INCREF(Py_None); resultobj = Py_None; | |
23676 | { | |
23677 | if (temp2) | |
23678 | delete arg2; | |
23679 | } | |
23680 | return resultobj; | |
23681 | fail: | |
23682 | { | |
23683 | if (temp2) | |
23684 | delete arg2; | |
23685 | } | |
23686 | return NULL; | |
23687 | } | |
23688 | ||
23689 | ||
23690 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23691 | PyObject *resultobj; | |
23692 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23693 | bool result; | |
23694 | PyObject * obj0 = 0 ; | |
23695 | char *kwnames[] = { | |
23696 | (char *) "self", NULL | |
23697 | }; | |
23698 | ||
23699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
23700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23701 | { | |
23702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23703 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
23704 | ||
23705 | wxPyEndAllowThreads(__tstate); | |
23706 | if (PyErr_Occurred()) SWIG_fail; | |
23707 | } | |
4e760a36 | 23708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23709 | return resultobj; |
23710 | fail: | |
23711 | return NULL; | |
23712 | } | |
23713 | ||
23714 | ||
23715 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23716 | PyObject *resultobj; | |
23717 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23718 | bool arg2 ; | |
23719 | PyObject * obj0 = 0 ; | |
23720 | PyObject * obj1 = 0 ; | |
23721 | char *kwnames[] = { | |
23722 | (char *) "self",(char *) "editCancelled", NULL | |
23723 | }; | |
23724 | ||
23725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
23726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 23727 | { |
8edf1c75 | 23728 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
23729 | if (PyErr_Occurred()) SWIG_fail; |
23730 | } | |
d14a1e28 RD |
23731 | { |
23732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23733 | (arg1)->SetEditCanceled(arg2); | |
23734 | ||
23735 | wxPyEndAllowThreads(__tstate); | |
23736 | if (PyErr_Occurred()) SWIG_fail; | |
23737 | } | |
23738 | Py_INCREF(Py_None); resultobj = Py_None; | |
23739 | return resultobj; | |
23740 | fail: | |
23741 | return NULL; | |
23742 | } | |
23743 | ||
23744 | ||
9fd4be55 RD |
23745 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
23746 | PyObject *resultobj; | |
23747 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23748 | wxString *arg2 = 0 ; | |
23749 | bool temp2 = False ; | |
23750 | PyObject * obj0 = 0 ; | |
23751 | PyObject * obj1 = 0 ; | |
23752 | char *kwnames[] = { | |
23753 | (char *) "self",(char *) "toolTip", NULL | |
23754 | }; | |
23755 | ||
23756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
23757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23758 | { | |
23759 | arg2 = wxString_in_helper(obj1); | |
23760 | if (arg2 == NULL) SWIG_fail; | |
23761 | temp2 = True; | |
23762 | } | |
23763 | { | |
23764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23765 | (arg1)->SetToolTip((wxString const &)*arg2); | |
23766 | ||
23767 | wxPyEndAllowThreads(__tstate); | |
23768 | if (PyErr_Occurred()) SWIG_fail; | |
23769 | } | |
23770 | Py_INCREF(Py_None); resultobj = Py_None; | |
23771 | { | |
23772 | if (temp2) | |
23773 | delete arg2; | |
23774 | } | |
23775 | return resultobj; | |
23776 | fail: | |
23777 | { | |
23778 | if (temp2) | |
23779 | delete arg2; | |
23780 | } | |
23781 | return NULL; | |
23782 | } | |
23783 | ||
23784 | ||
d14a1e28 RD |
23785 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
23786 | PyObject *obj; | |
23787 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23788 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
23789 | Py_INCREF(obj); | |
23790 | return Py_BuildValue((char *)""); | |
23791 | } | |
23792 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23793 | PyObject *resultobj; | |
23794 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23795 | int arg2 = (int) -1 ; |
d14a1e28 RD |
23796 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23797 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23798 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23799 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23800 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
23801 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23802 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
d03fd34d | 23803 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23804 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
23805 | wxPyTreeCtrl *result; | |
23806 | wxPoint temp3 ; | |
23807 | wxSize temp4 ; | |
423f194a | 23808 | bool temp7 = False ; |
d14a1e28 | 23809 | PyObject * obj0 = 0 ; |
8edf1c75 | 23810 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23811 | PyObject * obj2 = 0 ; |
23812 | PyObject * obj3 = 0 ; | |
8edf1c75 | 23813 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
23814 | PyObject * obj5 = 0 ; |
23815 | PyObject * obj6 = 0 ; | |
23816 | char *kwnames[] = { | |
23817 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23818 | }; | |
23819 | ||
8edf1c75 | 23820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 23821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23822 | if (obj1) { |
23823 | { | |
23824 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23825 | if (PyErr_Occurred()) SWIG_fail; | |
23826 | } | |
23827 | } | |
d14a1e28 RD |
23828 | if (obj2) { |
23829 | { | |
23830 | arg3 = &temp3; | |
23831 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23832 | } | |
23833 | } | |
23834 | if (obj3) { | |
23835 | { | |
8edf1c75 RD |
23836 | arg4 = &temp4; |
23837 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23838 | } | |
23839 | } | |
23840 | if (obj4) { | |
23841 | { | |
23842 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
23843 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23844 | } |
23845 | } | |
23846 | if (obj5) { | |
23847 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23848 | if (arg6 == NULL) { | |
23849 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23850 | } | |
23851 | } | |
23852 | if (obj6) { | |
23853 | { | |
23854 | arg7 = wxString_in_helper(obj6); | |
23855 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 23856 | temp7 = True; |
d14a1e28 RD |
23857 | } |
23858 | } | |
23859 | { | |
23860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23861 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23862 | ||
23863 | wxPyEndAllowThreads(__tstate); | |
23864 | if (PyErr_Occurred()) SWIG_fail; | |
23865 | } | |
d03fd34d RD |
23866 | { |
23867 | resultobj = wxPyMake_wxObject(result); | |
23868 | } | |
d14a1e28 RD |
23869 | { |
23870 | if (temp7) | |
23871 | delete arg7; | |
23872 | } | |
23873 | return resultobj; | |
23874 | fail: | |
23875 | { | |
23876 | if (temp7) | |
23877 | delete arg7; | |
23878 | } | |
23879 | return NULL; | |
23880 | } | |
23881 | ||
23882 | ||
23883 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23884 | PyObject *resultobj; | |
23885 | wxPyTreeCtrl *result; | |
23886 | char *kwnames[] = { | |
23887 | NULL | |
23888 | }; | |
23889 | ||
23890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
23891 | { | |
23892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23893 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
23894 | ||
23895 | wxPyEndAllowThreads(__tstate); | |
23896 | if (PyErr_Occurred()) SWIG_fail; | |
23897 | } | |
d03fd34d RD |
23898 | { |
23899 | resultobj = wxPyMake_wxObject(result); | |
23900 | } | |
d14a1e28 RD |
23901 | return resultobj; |
23902 | fail: | |
23903 | return NULL; | |
23904 | } | |
23905 | ||
23906 | ||
23907 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23908 | PyObject *resultobj; | |
23909 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23910 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 23911 | int arg3 = (int) -1 ; |
d14a1e28 RD |
23912 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23913 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23914 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23915 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23916 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
23917 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23918 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
d03fd34d | 23919 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23920 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
23921 | bool result; | |
23922 | wxPoint temp4 ; | |
23923 | wxSize temp5 ; | |
423f194a | 23924 | bool temp8 = False ; |
d14a1e28 RD |
23925 | PyObject * obj0 = 0 ; |
23926 | PyObject * obj1 = 0 ; | |
8edf1c75 | 23927 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23928 | PyObject * obj3 = 0 ; |
23929 | PyObject * obj4 = 0 ; | |
8edf1c75 | 23930 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
23931 | PyObject * obj6 = 0 ; |
23932 | PyObject * obj7 = 0 ; | |
23933 | char *kwnames[] = { | |
23934 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23935 | }; | |
23936 | ||
8edf1c75 | 23937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
23938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
23939 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
23940 | if (obj2) { |
23941 | { | |
23942 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
23943 | if (PyErr_Occurred()) SWIG_fail; | |
23944 | } | |
23945 | } | |
d14a1e28 RD |
23946 | if (obj3) { |
23947 | { | |
23948 | arg4 = &temp4; | |
23949 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23950 | } | |
23951 | } | |
23952 | if (obj4) { | |
23953 | { | |
23954 | arg5 = &temp5; | |
23955 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23956 | } | |
23957 | } | |
8edf1c75 RD |
23958 | if (obj5) { |
23959 | { | |
23960 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
23961 | if (PyErr_Occurred()) SWIG_fail; | |
23962 | } | |
23963 | } | |
d14a1e28 RD |
23964 | if (obj6) { |
23965 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23966 | if (arg7 == NULL) { | |
23967 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23968 | } | |
23969 | } | |
23970 | if (obj7) { | |
23971 | { | |
23972 | arg8 = wxString_in_helper(obj7); | |
23973 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 23974 | temp8 = True; |
d14a1e28 RD |
23975 | } |
23976 | } | |
23977 | { | |
23978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23979 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23980 | ||
23981 | wxPyEndAllowThreads(__tstate); | |
23982 | if (PyErr_Occurred()) SWIG_fail; | |
23983 | } | |
4e760a36 | 23984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23985 | { |
23986 | if (temp8) | |
23987 | delete arg8; | |
23988 | } | |
23989 | return resultobj; | |
23990 | fail: | |
23991 | { | |
23992 | if (temp8) | |
23993 | delete arg8; | |
23994 | } | |
23995 | return NULL; | |
23996 | } | |
23997 | ||
23998 | ||
23999 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24000 | PyObject *resultobj; | |
24001 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24002 | PyObject *arg2 = (PyObject *) 0 ; | |
24003 | PyObject *arg3 = (PyObject *) 0 ; | |
24004 | PyObject * obj0 = 0 ; | |
24005 | PyObject * obj1 = 0 ; | |
24006 | PyObject * obj2 = 0 ; | |
24007 | char *kwnames[] = { | |
24008 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24009 | }; | |
24010 | ||
24011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24013 | arg2 = obj1; | |
24014 | arg3 = obj2; | |
24015 | { | |
24016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24017 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24018 | ||
24019 | wxPyEndAllowThreads(__tstate); | |
24020 | if (PyErr_Occurred()) SWIG_fail; | |
24021 | } | |
24022 | Py_INCREF(Py_None); resultobj = Py_None; | |
24023 | return resultobj; | |
24024 | fail: | |
24025 | return NULL; | |
24026 | } | |
24027 | ||
24028 | ||
24029 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24030 | PyObject *resultobj; | |
24031 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24032 | size_t result; | |
24033 | PyObject * obj0 = 0 ; | |
24034 | char *kwnames[] = { | |
24035 | (char *) "self", NULL | |
24036 | }; | |
24037 | ||
24038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
24039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24040 | { | |
24041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24042 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
24043 | ||
24044 | wxPyEndAllowThreads(__tstate); | |
24045 | if (PyErr_Occurred()) SWIG_fail; | |
24046 | } | |
8edf1c75 | 24047 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24048 | return resultobj; |
24049 | fail: | |
24050 | return NULL; | |
24051 | } | |
24052 | ||
24053 | ||
24054 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24055 | PyObject *resultobj; | |
24056 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24057 | unsigned int result; | |
24058 | PyObject * obj0 = 0 ; | |
24059 | char *kwnames[] = { | |
24060 | (char *) "self", NULL | |
24061 | }; | |
24062 | ||
24063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
24064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24065 | { | |
24066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24067 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
24068 | ||
24069 | wxPyEndAllowThreads(__tstate); | |
24070 | if (PyErr_Occurred()) SWIG_fail; | |
24071 | } | |
8edf1c75 | 24072 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
24073 | return resultobj; |
24074 | fail: | |
24075 | return NULL; | |
24076 | } | |
24077 | ||
24078 | ||
24079 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24080 | PyObject *resultobj; | |
24081 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24082 | unsigned int arg2 ; | |
24083 | PyObject * obj0 = 0 ; | |
24084 | PyObject * obj1 = 0 ; | |
24085 | char *kwnames[] = { | |
24086 | (char *) "self",(char *) "indent", NULL | |
24087 | }; | |
24088 | ||
24089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
24090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 24091 | { |
8edf1c75 | 24092 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
83448d71 RD |
24093 | if (PyErr_Occurred()) SWIG_fail; |
24094 | } | |
d14a1e28 RD |
24095 | { |
24096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24097 | (arg1)->SetIndent(arg2); | |
24098 | ||
24099 | wxPyEndAllowThreads(__tstate); | |
24100 | if (PyErr_Occurred()) SWIG_fail; | |
24101 | } | |
24102 | Py_INCREF(Py_None); resultobj = Py_None; | |
24103 | return resultobj; | |
24104 | fail: | |
24105 | return NULL; | |
24106 | } | |
24107 | ||
24108 | ||
24109 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24110 | PyObject *resultobj; | |
24111 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24112 | unsigned int result; | |
24113 | PyObject * obj0 = 0 ; | |
24114 | char *kwnames[] = { | |
24115 | (char *) "self", NULL | |
24116 | }; | |
24117 | ||
24118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
24119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24120 | { | |
24121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24122 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
24123 | ||
24124 | wxPyEndAllowThreads(__tstate); | |
24125 | if (PyErr_Occurred()) SWIG_fail; | |
24126 | } | |
8edf1c75 | 24127 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
24128 | return resultobj; |
24129 | fail: | |
24130 | return NULL; | |
24131 | } | |
24132 | ||
24133 | ||
24134 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24135 | PyObject *resultobj; | |
24136 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24137 | unsigned int arg2 ; | |
24138 | PyObject * obj0 = 0 ; | |
24139 | PyObject * obj1 = 0 ; | |
24140 | char *kwnames[] = { | |
24141 | (char *) "self",(char *) "spacing", NULL | |
24142 | }; | |
24143 | ||
24144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
24145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 24146 | { |
8edf1c75 | 24147 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
83448d71 RD |
24148 | if (PyErr_Occurred()) SWIG_fail; |
24149 | } | |
d14a1e28 RD |
24150 | { |
24151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24152 | (arg1)->SetSpacing(arg2); | |
24153 | ||
24154 | wxPyEndAllowThreads(__tstate); | |
24155 | if (PyErr_Occurred()) SWIG_fail; | |
24156 | } | |
24157 | Py_INCREF(Py_None); resultobj = Py_None; | |
24158 | return resultobj; | |
24159 | fail: | |
24160 | return NULL; | |
24161 | } | |
24162 | ||
24163 | ||
24164 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24165 | PyObject *resultobj; | |
24166 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24167 | wxImageList *result; | |
24168 | PyObject * obj0 = 0 ; | |
24169 | char *kwnames[] = { | |
24170 | (char *) "self", NULL | |
24171 | }; | |
24172 | ||
24173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
24174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24175 | { | |
24176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24177 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
24178 | ||
24179 | wxPyEndAllowThreads(__tstate); | |
24180 | if (PyErr_Occurred()) SWIG_fail; | |
24181 | } | |
24182 | { | |
24183 | resultobj = wxPyMake_wxObject(result); | |
24184 | } | |
24185 | return resultobj; | |
24186 | fail: | |
24187 | return NULL; | |
24188 | } | |
24189 | ||
24190 | ||
24191 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24192 | PyObject *resultobj; | |
24193 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24194 | wxImageList *result; | |
24195 | PyObject * obj0 = 0 ; | |
24196 | char *kwnames[] = { | |
24197 | (char *) "self", NULL | |
24198 | }; | |
24199 | ||
24200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
24201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24202 | { | |
24203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24204 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
24205 | ||
24206 | wxPyEndAllowThreads(__tstate); | |
24207 | if (PyErr_Occurred()) SWIG_fail; | |
24208 | } | |
24209 | { | |
24210 | resultobj = wxPyMake_wxObject(result); | |
24211 | } | |
24212 | return resultobj; | |
24213 | fail: | |
24214 | return NULL; | |
24215 | } | |
24216 | ||
24217 | ||
24218 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24219 | PyObject *resultobj; | |
24220 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24221 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24222 | PyObject * obj0 = 0 ; | |
24223 | PyObject * obj1 = 0 ; | |
24224 | char *kwnames[] = { | |
24225 | (char *) "self",(char *) "imageList", NULL | |
24226 | }; | |
24227 | ||
24228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
24229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24230 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24231 | { | |
24232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24233 | (arg1)->SetImageList(arg2); | |
24234 | ||
24235 | wxPyEndAllowThreads(__tstate); | |
24236 | if (PyErr_Occurred()) SWIG_fail; | |
24237 | } | |
24238 | Py_INCREF(Py_None); resultobj = Py_None; | |
24239 | return resultobj; | |
24240 | fail: | |
24241 | return NULL; | |
24242 | } | |
24243 | ||
24244 | ||
24245 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24246 | PyObject *resultobj; | |
24247 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24248 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24249 | PyObject * obj0 = 0 ; | |
24250 | PyObject * obj1 = 0 ; | |
24251 | char *kwnames[] = { | |
24252 | (char *) "self",(char *) "imageList", NULL | |
24253 | }; | |
24254 | ||
24255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
24256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24257 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24258 | { | |
24259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24260 | (arg1)->SetStateImageList(arg2); | |
24261 | ||
24262 | wxPyEndAllowThreads(__tstate); | |
24263 | if (PyErr_Occurred()) SWIG_fail; | |
24264 | } | |
24265 | Py_INCREF(Py_None); resultobj = Py_None; | |
24266 | return resultobj; | |
24267 | fail: | |
24268 | return NULL; | |
24269 | } | |
24270 | ||
24271 | ||
24272 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24273 | PyObject *resultobj; | |
24274 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24275 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24276 | PyObject * obj0 = 0 ; | |
24277 | PyObject * obj1 = 0 ; | |
24278 | char *kwnames[] = { | |
24279 | (char *) "self",(char *) "imageList", NULL | |
24280 | }; | |
24281 | ||
24282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
24283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 24284 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
24285 | { |
24286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24287 | (arg1)->AssignImageList(arg2); | |
24288 | ||
24289 | wxPyEndAllowThreads(__tstate); | |
24290 | if (PyErr_Occurred()) SWIG_fail; | |
24291 | } | |
24292 | Py_INCREF(Py_None); resultobj = Py_None; | |
24293 | return resultobj; | |
24294 | fail: | |
24295 | return NULL; | |
24296 | } | |
24297 | ||
24298 | ||
24299 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24300 | PyObject *resultobj; | |
24301 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24302 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24303 | PyObject * obj0 = 0 ; | |
24304 | PyObject * obj1 = 0 ; | |
24305 | char *kwnames[] = { | |
24306 | (char *) "self",(char *) "imageList", NULL | |
24307 | }; | |
24308 | ||
24309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
24310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 24311 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
24312 | { |
24313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24314 | (arg1)->AssignStateImageList(arg2); | |
24315 | ||
24316 | wxPyEndAllowThreads(__tstate); | |
24317 | if (PyErr_Occurred()) SWIG_fail; | |
24318 | } | |
24319 | Py_INCREF(Py_None); resultobj = Py_None; | |
24320 | return resultobj; | |
24321 | fail: | |
24322 | return NULL; | |
24323 | } | |
24324 | ||
24325 | ||
24326 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24327 | PyObject *resultobj; | |
24328 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24329 | wxTreeItemId *arg2 = 0 ; | |
24330 | wxString result; | |
24331 | PyObject * obj0 = 0 ; | |
24332 | PyObject * obj1 = 0 ; | |
24333 | char *kwnames[] = { | |
24334 | (char *) "self",(char *) "item", NULL | |
24335 | }; | |
24336 | ||
24337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
24338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24339 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24340 | if (arg2 == NULL) { | |
24341 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24342 | } | |
24343 | { | |
24344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24345 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
24346 | ||
24347 | wxPyEndAllowThreads(__tstate); | |
24348 | if (PyErr_Occurred()) SWIG_fail; | |
24349 | } | |
24350 | { | |
24351 | #if wxUSE_UNICODE | |
24352 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24353 | #else | |
24354 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24355 | #endif | |
24356 | } | |
24357 | return resultobj; | |
24358 | fail: | |
24359 | return NULL; | |
24360 | } | |
24361 | ||
24362 | ||
24363 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24364 | PyObject *resultobj; | |
24365 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24366 | wxTreeItemId *arg2 = 0 ; | |
24367 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
24368 | int result; | |
24369 | PyObject * obj0 = 0 ; | |
24370 | PyObject * obj1 = 0 ; | |
8edf1c75 | 24371 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24372 | char *kwnames[] = { |
24373 | (char *) "self",(char *) "item",(char *) "which", NULL | |
24374 | }; | |
24375 | ||
8edf1c75 | 24376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
24377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24378 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24379 | if (arg2 == NULL) { | |
24380 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24381 | } | |
8edf1c75 RD |
24382 | if (obj2) { |
24383 | { | |
24384 | arg3 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj2); | |
24385 | if (PyErr_Occurred()) SWIG_fail; | |
24386 | } | |
24387 | } | |
d14a1e28 RD |
24388 | { |
24389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24390 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
24391 | ||
24392 | wxPyEndAllowThreads(__tstate); | |
24393 | if (PyErr_Occurred()) SWIG_fail; | |
24394 | } | |
8edf1c75 | 24395 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
24396 | return resultobj; |
24397 | fail: | |
24398 | return NULL; | |
24399 | } | |
24400 | ||
24401 | ||
24402 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24403 | PyObject *resultobj; | |
24404 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24405 | wxTreeItemId *arg2 = 0 ; | |
24406 | wxPyTreeItemData *result; | |
24407 | PyObject * obj0 = 0 ; | |
24408 | PyObject * obj1 = 0 ; | |
24409 | char *kwnames[] = { | |
24410 | (char *) "self",(char *) "item", NULL | |
24411 | }; | |
24412 | ||
24413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
24414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24415 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24416 | if (arg2 == NULL) { | |
24417 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24418 | } | |
24419 | { | |
24420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24421 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
24422 | ||
24423 | wxPyEndAllowThreads(__tstate); | |
24424 | if (PyErr_Occurred()) SWIG_fail; | |
24425 | } | |
24426 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 0); | |
24427 | return resultobj; | |
24428 | fail: | |
24429 | return NULL; | |
24430 | } | |
24431 | ||
24432 | ||
24433 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24434 | PyObject *resultobj; | |
24435 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24436 | wxTreeItemId *arg2 = 0 ; | |
24437 | PyObject *result; | |
24438 | PyObject * obj0 = 0 ; | |
24439 | PyObject * obj1 = 0 ; | |
24440 | char *kwnames[] = { | |
24441 | (char *) "self",(char *) "item", NULL | |
24442 | }; | |
24443 | ||
24444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
24445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24446 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24447 | if (arg2 == NULL) { | |
24448 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24449 | } | |
24450 | { | |
24451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24452 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
24453 | ||
24454 | wxPyEndAllowThreads(__tstate); | |
24455 | if (PyErr_Occurred()) SWIG_fail; | |
24456 | } | |
24457 | resultobj = result; | |
24458 | return resultobj; | |
24459 | fail: | |
24460 | return NULL; | |
24461 | } | |
24462 | ||
24463 | ||
24464 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24465 | PyObject *resultobj; | |
24466 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24467 | wxTreeItemId *arg2 = 0 ; | |
24468 | wxColour result; | |
24469 | PyObject * obj0 = 0 ; | |
24470 | PyObject * obj1 = 0 ; | |
24471 | char *kwnames[] = { | |
24472 | (char *) "self",(char *) "item", NULL | |
24473 | }; | |
24474 | ||
24475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
24476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24477 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24478 | if (arg2 == NULL) { | |
24479 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24480 | } | |
24481 | { | |
24482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24483 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
24484 | ||
24485 | wxPyEndAllowThreads(__tstate); | |
24486 | if (PyErr_Occurred()) SWIG_fail; | |
24487 | } | |
24488 | { | |
24489 | wxColour * resultptr; | |
24490 | resultptr = new wxColour((wxColour &) result); | |
24491 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24492 | } | |
24493 | return resultobj; | |
24494 | fail: | |
24495 | return NULL; | |
24496 | } | |
24497 | ||
24498 | ||
24499 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24500 | PyObject *resultobj; | |
24501 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24502 | wxTreeItemId *arg2 = 0 ; | |
24503 | wxColour result; | |
24504 | PyObject * obj0 = 0 ; | |
24505 | PyObject * obj1 = 0 ; | |
24506 | char *kwnames[] = { | |
24507 | (char *) "self",(char *) "item", NULL | |
24508 | }; | |
24509 | ||
24510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24512 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24513 | if (arg2 == NULL) { | |
24514 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24515 | } | |
24516 | { | |
24517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24518 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
24519 | ||
24520 | wxPyEndAllowThreads(__tstate); | |
24521 | if (PyErr_Occurred()) SWIG_fail; | |
24522 | } | |
24523 | { | |
24524 | wxColour * resultptr; | |
24525 | resultptr = new wxColour((wxColour &) result); | |
24526 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24527 | } | |
24528 | return resultobj; | |
24529 | fail: | |
24530 | return NULL; | |
24531 | } | |
24532 | ||
24533 | ||
24534 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24535 | PyObject *resultobj; | |
24536 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24537 | wxTreeItemId *arg2 = 0 ; | |
24538 | wxFont result; | |
24539 | PyObject * obj0 = 0 ; | |
24540 | PyObject * obj1 = 0 ; | |
24541 | char *kwnames[] = { | |
24542 | (char *) "self",(char *) "item", NULL | |
24543 | }; | |
24544 | ||
24545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
24546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24547 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24548 | if (arg2 == NULL) { | |
24549 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24550 | } | |
24551 | { | |
24552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24553 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
24554 | ||
24555 | wxPyEndAllowThreads(__tstate); | |
24556 | if (PyErr_Occurred()) SWIG_fail; | |
24557 | } | |
24558 | { | |
24559 | wxFont * resultptr; | |
24560 | resultptr = new wxFont((wxFont &) result); | |
24561 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
24562 | } | |
24563 | return resultobj; | |
24564 | fail: | |
24565 | return NULL; | |
24566 | } | |
24567 | ||
24568 | ||
24569 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24570 | PyObject *resultobj; | |
24571 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24572 | wxTreeItemId *arg2 = 0 ; | |
24573 | wxString *arg3 = 0 ; | |
423f194a | 24574 | bool temp3 = False ; |
d14a1e28 RD |
24575 | PyObject * obj0 = 0 ; |
24576 | PyObject * obj1 = 0 ; | |
24577 | PyObject * obj2 = 0 ; | |
24578 | char *kwnames[] = { | |
24579 | (char *) "self",(char *) "item",(char *) "text", NULL | |
24580 | }; | |
24581 | ||
24582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24584 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24585 | if (arg2 == NULL) { | |
24586 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24587 | } | |
24588 | { | |
24589 | arg3 = wxString_in_helper(obj2); | |
24590 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 24591 | temp3 = True; |
d14a1e28 RD |
24592 | } |
24593 | { | |
24594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24595 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
24596 | ||
24597 | wxPyEndAllowThreads(__tstate); | |
24598 | if (PyErr_Occurred()) SWIG_fail; | |
24599 | } | |
24600 | Py_INCREF(Py_None); resultobj = Py_None; | |
24601 | { | |
24602 | if (temp3) | |
24603 | delete arg3; | |
24604 | } | |
24605 | return resultobj; | |
24606 | fail: | |
24607 | { | |
24608 | if (temp3) | |
24609 | delete arg3; | |
24610 | } | |
24611 | return NULL; | |
24612 | } | |
24613 | ||
24614 | ||
24615 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24616 | PyObject *resultobj; | |
24617 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24618 | wxTreeItemId *arg2 = 0 ; | |
24619 | int arg3 ; | |
24620 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
24621 | PyObject * obj0 = 0 ; | |
24622 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24623 | PyObject * obj2 = 0 ; |
24624 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24625 | char *kwnames[] = { |
24626 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
24627 | }; | |
24628 | ||
8edf1c75 | 24629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
24630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24631 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24632 | if (arg2 == NULL) { | |
24633 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24634 | } | |
8edf1c75 RD |
24635 | { |
24636 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24637 | if (PyErr_Occurred()) SWIG_fail; | |
24638 | } | |
24639 | if (obj3) { | |
24640 | { | |
24641 | arg4 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj3); | |
24642 | if (PyErr_Occurred()) SWIG_fail; | |
24643 | } | |
24644 | } | |
d14a1e28 RD |
24645 | { |
24646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24647 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
24648 | ||
24649 | wxPyEndAllowThreads(__tstate); | |
24650 | if (PyErr_Occurred()) SWIG_fail; | |
24651 | } | |
24652 | Py_INCREF(Py_None); resultobj = Py_None; | |
24653 | return resultobj; | |
24654 | fail: | |
24655 | return NULL; | |
24656 | } | |
24657 | ||
24658 | ||
24659 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24660 | PyObject *resultobj; | |
24661 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24662 | wxTreeItemId *arg2 = 0 ; | |
24663 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
24664 | PyObject * obj0 = 0 ; | |
24665 | PyObject * obj1 = 0 ; | |
24666 | PyObject * obj2 = 0 ; | |
24667 | char *kwnames[] = { | |
24668 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24669 | }; | |
24670 | ||
24671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24673 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24674 | if (arg2 == NULL) { | |
24675 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24676 | } | |
24677 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24678 | { | |
24679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24680 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24681 | ||
24682 | wxPyEndAllowThreads(__tstate); | |
24683 | if (PyErr_Occurred()) SWIG_fail; | |
24684 | } | |
24685 | Py_INCREF(Py_None); resultobj = Py_None; | |
24686 | return resultobj; | |
24687 | fail: | |
24688 | return NULL; | |
24689 | } | |
24690 | ||
24691 | ||
24692 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24693 | PyObject *resultobj; | |
24694 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24695 | wxTreeItemId *arg2 = 0 ; | |
24696 | PyObject *arg3 = (PyObject *) 0 ; | |
24697 | PyObject * obj0 = 0 ; | |
24698 | PyObject * obj1 = 0 ; | |
24699 | PyObject * obj2 = 0 ; | |
24700 | char *kwnames[] = { | |
24701 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
24702 | }; | |
24703 | ||
24704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24706 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24707 | if (arg2 == NULL) { | |
24708 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24709 | } | |
24710 | arg3 = obj2; | |
24711 | { | |
24712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24713 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24714 | ||
24715 | wxPyEndAllowThreads(__tstate); | |
24716 | if (PyErr_Occurred()) SWIG_fail; | |
24717 | } | |
24718 | Py_INCREF(Py_None); resultobj = Py_None; | |
24719 | return resultobj; | |
24720 | fail: | |
24721 | return NULL; | |
24722 | } | |
24723 | ||
24724 | ||
24725 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24726 | PyObject *resultobj; | |
24727 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24728 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24729 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24730 | PyObject * obj0 = 0 ; |
24731 | PyObject * obj1 = 0 ; | |
24732 | PyObject * obj2 = 0 ; | |
24733 | char *kwnames[] = { | |
24734 | (char *) "self",(char *) "item",(char *) "has", NULL | |
24735 | }; | |
24736 | ||
24737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24739 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24740 | if (arg2 == NULL) { | |
24741 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24742 | } | |
24743 | if (obj2) { | |
83448d71 | 24744 | { |
8edf1c75 | 24745 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
24746 | if (PyErr_Occurred()) SWIG_fail; |
24747 | } | |
d14a1e28 RD |
24748 | } |
24749 | { | |
24750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24751 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
24752 | ||
24753 | wxPyEndAllowThreads(__tstate); | |
24754 | if (PyErr_Occurred()) SWIG_fail; | |
24755 | } | |
24756 | Py_INCREF(Py_None); resultobj = Py_None; | |
24757 | return resultobj; | |
24758 | fail: | |
24759 | return NULL; | |
24760 | } | |
24761 | ||
24762 | ||
24763 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24764 | PyObject *resultobj; | |
24765 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24766 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24767 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24768 | PyObject * obj0 = 0 ; |
24769 | PyObject * obj1 = 0 ; | |
24770 | PyObject * obj2 = 0 ; | |
24771 | char *kwnames[] = { | |
24772 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
24773 | }; | |
24774 | ||
24775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24777 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24778 | if (arg2 == NULL) { | |
24779 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24780 | } | |
24781 | if (obj2) { | |
83448d71 | 24782 | { |
8edf1c75 | 24783 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
24784 | if (PyErr_Occurred()) SWIG_fail; |
24785 | } | |
d14a1e28 RD |
24786 | } |
24787 | { | |
24788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24789 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
24790 | ||
24791 | wxPyEndAllowThreads(__tstate); | |
24792 | if (PyErr_Occurred()) SWIG_fail; | |
24793 | } | |
24794 | Py_INCREF(Py_None); resultobj = Py_None; | |
24795 | return resultobj; | |
24796 | fail: | |
24797 | return NULL; | |
24798 | } | |
24799 | ||
24800 | ||
24801 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24802 | PyObject *resultobj; | |
24803 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24804 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24805 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24806 | PyObject * obj0 = 0 ; |
24807 | PyObject * obj1 = 0 ; | |
24808 | PyObject * obj2 = 0 ; | |
24809 | char *kwnames[] = { | |
24810 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
24811 | }; | |
24812 | ||
24813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24815 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24816 | if (arg2 == NULL) { | |
24817 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24818 | } | |
24819 | if (obj2) { | |
83448d71 | 24820 | { |
8edf1c75 | 24821 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
24822 | if (PyErr_Occurred()) SWIG_fail; |
24823 | } | |
d14a1e28 RD |
24824 | } |
24825 | { | |
24826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24827 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
24828 | ||
24829 | wxPyEndAllowThreads(__tstate); | |
24830 | if (PyErr_Occurred()) SWIG_fail; | |
24831 | } | |
24832 | Py_INCREF(Py_None); resultobj = Py_None; | |
24833 | return resultobj; | |
24834 | fail: | |
24835 | return NULL; | |
24836 | } | |
24837 | ||
24838 | ||
24839 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24840 | PyObject *resultobj; | |
24841 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24842 | wxTreeItemId *arg2 = 0 ; | |
24843 | wxColour *arg3 = 0 ; | |
24844 | wxColour temp3 ; | |
24845 | PyObject * obj0 = 0 ; | |
24846 | PyObject * obj1 = 0 ; | |
24847 | PyObject * obj2 = 0 ; | |
24848 | char *kwnames[] = { | |
24849 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24850 | }; | |
24851 | ||
24852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24854 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24855 | if (arg2 == NULL) { | |
24856 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24857 | } | |
24858 | { | |
24859 | arg3 = &temp3; | |
24860 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24861 | } | |
24862 | { | |
24863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24864 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24865 | ||
24866 | wxPyEndAllowThreads(__tstate); | |
24867 | if (PyErr_Occurred()) SWIG_fail; | |
24868 | } | |
24869 | Py_INCREF(Py_None); resultobj = Py_None; | |
24870 | return resultobj; | |
24871 | fail: | |
24872 | return NULL; | |
24873 | } | |
24874 | ||
24875 | ||
24876 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24877 | PyObject *resultobj; | |
24878 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24879 | wxTreeItemId *arg2 = 0 ; | |
24880 | wxColour *arg3 = 0 ; | |
24881 | wxColour temp3 ; | |
24882 | PyObject * obj0 = 0 ; | |
24883 | PyObject * obj1 = 0 ; | |
24884 | PyObject * obj2 = 0 ; | |
24885 | char *kwnames[] = { | |
24886 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24887 | }; | |
24888 | ||
24889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24891 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24892 | if (arg2 == NULL) { | |
24893 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24894 | } | |
24895 | { | |
24896 | arg3 = &temp3; | |
24897 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24898 | } | |
24899 | { | |
24900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24901 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24902 | ||
24903 | wxPyEndAllowThreads(__tstate); | |
24904 | if (PyErr_Occurred()) SWIG_fail; | |
24905 | } | |
24906 | Py_INCREF(Py_None); resultobj = Py_None; | |
24907 | return resultobj; | |
24908 | fail: | |
24909 | return NULL; | |
24910 | } | |
24911 | ||
24912 | ||
24913 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24914 | PyObject *resultobj; | |
24915 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24916 | wxTreeItemId *arg2 = 0 ; | |
24917 | wxFont *arg3 = 0 ; | |
24918 | PyObject * obj0 = 0 ; | |
24919 | PyObject * obj1 = 0 ; | |
24920 | PyObject * obj2 = 0 ; | |
24921 | char *kwnames[] = { | |
24922 | (char *) "self",(char *) "item",(char *) "font", NULL | |
24923 | }; | |
24924 | ||
24925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24927 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24928 | if (arg2 == NULL) { | |
24929 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24930 | } | |
24931 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24932 | if (arg3 == NULL) { | |
24933 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24934 | } | |
24935 | { | |
24936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24937 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
24938 | ||
24939 | wxPyEndAllowThreads(__tstate); | |
24940 | if (PyErr_Occurred()) SWIG_fail; | |
24941 | } | |
24942 | Py_INCREF(Py_None); resultobj = Py_None; | |
24943 | return resultobj; | |
24944 | fail: | |
24945 | return NULL; | |
24946 | } | |
24947 | ||
24948 | ||
24949 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24950 | PyObject *resultobj; | |
24951 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24952 | wxTreeItemId *arg2 = 0 ; | |
24953 | bool result; | |
24954 | PyObject * obj0 = 0 ; | |
24955 | PyObject * obj1 = 0 ; | |
24956 | char *kwnames[] = { | |
24957 | (char *) "self",(char *) "item", NULL | |
24958 | }; | |
24959 | ||
24960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
24961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24962 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24963 | if (arg2 == NULL) { | |
24964 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24965 | } | |
24966 | { | |
24967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24968 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
24969 | ||
24970 | wxPyEndAllowThreads(__tstate); | |
24971 | if (PyErr_Occurred()) SWIG_fail; | |
24972 | } | |
4e760a36 | 24973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24974 | return resultobj; |
24975 | fail: | |
24976 | return NULL; | |
24977 | } | |
24978 | ||
24979 | ||
24980 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24981 | PyObject *resultobj; | |
24982 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24983 | wxTreeItemId *arg2 = 0 ; | |
24984 | bool result; | |
24985 | PyObject * obj0 = 0 ; | |
24986 | PyObject * obj1 = 0 ; | |
24987 | char *kwnames[] = { | |
24988 | (char *) "self",(char *) "item", NULL | |
24989 | }; | |
24990 | ||
24991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
24992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24993 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24994 | if (arg2 == NULL) { | |
24995 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24996 | } | |
24997 | { | |
24998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24999 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
25000 | ||
25001 | wxPyEndAllowThreads(__tstate); | |
25002 | if (PyErr_Occurred()) SWIG_fail; | |
25003 | } | |
4e760a36 | 25004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25005 | return resultobj; |
25006 | fail: | |
25007 | return NULL; | |
25008 | } | |
25009 | ||
25010 | ||
25011 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25012 | PyObject *resultobj; | |
25013 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25014 | wxTreeItemId *arg2 = 0 ; | |
25015 | bool result; | |
25016 | PyObject * obj0 = 0 ; | |
25017 | PyObject * obj1 = 0 ; | |
25018 | char *kwnames[] = { | |
25019 | (char *) "self",(char *) "item", NULL | |
25020 | }; | |
25021 | ||
25022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
25023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25024 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25025 | if (arg2 == NULL) { | |
25026 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25027 | } | |
25028 | { | |
25029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25030 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
25031 | ||
25032 | wxPyEndAllowThreads(__tstate); | |
25033 | if (PyErr_Occurred()) SWIG_fail; | |
25034 | } | |
4e760a36 | 25035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25036 | return resultobj; |
25037 | fail: | |
25038 | return NULL; | |
25039 | } | |
25040 | ||
25041 | ||
25042 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25043 | PyObject *resultobj; | |
25044 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25045 | wxTreeItemId *arg2 = 0 ; | |
25046 | bool result; | |
25047 | PyObject * obj0 = 0 ; | |
25048 | PyObject * obj1 = 0 ; | |
25049 | char *kwnames[] = { | |
25050 | (char *) "self",(char *) "item", NULL | |
25051 | }; | |
25052 | ||
25053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
25054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25055 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25056 | if (arg2 == NULL) { | |
25057 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25058 | } | |
25059 | { | |
25060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25061 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
25062 | ||
25063 | wxPyEndAllowThreads(__tstate); | |
25064 | if (PyErr_Occurred()) SWIG_fail; | |
25065 | } | |
4e760a36 | 25066 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25067 | return resultobj; |
25068 | fail: | |
25069 | return NULL; | |
25070 | } | |
25071 | ||
25072 | ||
25073 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25074 | PyObject *resultobj; | |
25075 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25076 | wxTreeItemId *arg2 = 0 ; | |
25077 | bool result; | |
25078 | PyObject * obj0 = 0 ; | |
25079 | PyObject * obj1 = 0 ; | |
25080 | char *kwnames[] = { | |
25081 | (char *) "self",(char *) "item", NULL | |
25082 | }; | |
25083 | ||
25084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
25085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25086 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25087 | if (arg2 == NULL) { | |
25088 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25089 | } | |
25090 | { | |
25091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25092 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
25093 | ||
25094 | wxPyEndAllowThreads(__tstate); | |
25095 | if (PyErr_Occurred()) SWIG_fail; | |
25096 | } | |
4e760a36 | 25097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25098 | return resultobj; |
25099 | fail: | |
25100 | return NULL; | |
25101 | } | |
25102 | ||
25103 | ||
25104 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25105 | PyObject *resultobj; | |
25106 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25107 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25108 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25109 | size_t result; |
25110 | PyObject * obj0 = 0 ; | |
25111 | PyObject * obj1 = 0 ; | |
25112 | PyObject * obj2 = 0 ; | |
25113 | char *kwnames[] = { | |
25114 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
25115 | }; | |
25116 | ||
25117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25119 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25120 | if (arg2 == NULL) { | |
25121 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25122 | } | |
25123 | if (obj2) { | |
83448d71 | 25124 | { |
8edf1c75 | 25125 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
25126 | if (PyErr_Occurred()) SWIG_fail; |
25127 | } | |
d14a1e28 RD |
25128 | } |
25129 | { | |
25130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25131 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
25132 | ||
25133 | wxPyEndAllowThreads(__tstate); | |
25134 | if (PyErr_Occurred()) SWIG_fail; | |
25135 | } | |
8edf1c75 | 25136 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25137 | return resultobj; |
25138 | fail: | |
25139 | return NULL; | |
25140 | } | |
25141 | ||
25142 | ||
25143 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25144 | PyObject *resultobj; | |
25145 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25146 | wxTreeItemId result; | |
25147 | PyObject * obj0 = 0 ; | |
25148 | char *kwnames[] = { | |
25149 | (char *) "self", NULL | |
25150 | }; | |
25151 | ||
25152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
25153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25154 | { | |
25155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25156 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
25157 | ||
25158 | wxPyEndAllowThreads(__tstate); | |
25159 | if (PyErr_Occurred()) SWIG_fail; | |
25160 | } | |
25161 | { | |
25162 | wxTreeItemId * resultptr; | |
25163 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25164 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25165 | } | |
25166 | return resultobj; | |
25167 | fail: | |
25168 | return NULL; | |
25169 | } | |
25170 | ||
25171 | ||
25172 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25173 | PyObject *resultobj; | |
25174 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25175 | wxTreeItemId result; | |
25176 | PyObject * obj0 = 0 ; | |
25177 | char *kwnames[] = { | |
25178 | (char *) "self", NULL | |
25179 | }; | |
25180 | ||
25181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
25182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25183 | { | |
25184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25185 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
25186 | ||
25187 | wxPyEndAllowThreads(__tstate); | |
25188 | if (PyErr_Occurred()) SWIG_fail; | |
25189 | } | |
25190 | { | |
25191 | wxTreeItemId * resultptr; | |
25192 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25193 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25194 | } | |
25195 | return resultobj; | |
25196 | fail: | |
25197 | return NULL; | |
25198 | } | |
25199 | ||
25200 | ||
25201 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25202 | PyObject *resultobj; | |
25203 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25204 | PyObject *result; | |
25205 | PyObject * obj0 = 0 ; | |
25206 | char *kwnames[] = { | |
25207 | (char *) "self", NULL | |
25208 | }; | |
25209 | ||
25210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
25211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25212 | { | |
25213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25214 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
25215 | ||
25216 | wxPyEndAllowThreads(__tstate); | |
25217 | if (PyErr_Occurred()) SWIG_fail; | |
25218 | } | |
25219 | resultobj = result; | |
25220 | return resultobj; | |
25221 | fail: | |
25222 | return NULL; | |
25223 | } | |
25224 | ||
25225 | ||
25226 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25227 | PyObject *resultobj; | |
25228 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25229 | wxTreeItemId *arg2 = 0 ; | |
25230 | wxTreeItemId result; | |
25231 | PyObject * obj0 = 0 ; | |
25232 | PyObject * obj1 = 0 ; | |
25233 | char *kwnames[] = { | |
25234 | (char *) "self",(char *) "item", NULL | |
25235 | }; | |
25236 | ||
25237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
25238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25239 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25240 | if (arg2 == NULL) { | |
25241 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25242 | } | |
25243 | { | |
25244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25245 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
25246 | ||
25247 | wxPyEndAllowThreads(__tstate); | |
25248 | if (PyErr_Occurred()) SWIG_fail; | |
25249 | } | |
25250 | { | |
25251 | wxTreeItemId * resultptr; | |
25252 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25253 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25254 | } | |
25255 | return resultobj; | |
25256 | fail: | |
25257 | return NULL; | |
25258 | } | |
25259 | ||
25260 | ||
25261 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25262 | PyObject *resultobj; | |
25263 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25264 | wxTreeItemId *arg2 = 0 ; | |
25265 | PyObject *result; | |
25266 | PyObject * obj0 = 0 ; | |
25267 | PyObject * obj1 = 0 ; | |
25268 | char *kwnames[] = { | |
25269 | (char *) "self",(char *) "item", NULL | |
25270 | }; | |
25271 | ||
25272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
25273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25274 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25275 | if (arg2 == NULL) { | |
25276 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25277 | } | |
25278 | { | |
25279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25280 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
25281 | ||
25282 | wxPyEndAllowThreads(__tstate); | |
25283 | if (PyErr_Occurred()) SWIG_fail; | |
25284 | } | |
25285 | resultobj = result; | |
25286 | return resultobj; | |
25287 | fail: | |
25288 | return NULL; | |
25289 | } | |
25290 | ||
25291 | ||
25292 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25293 | PyObject *resultobj; | |
25294 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25295 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 25296 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
25297 | PyObject *result; |
25298 | PyObject * obj0 = 0 ; | |
25299 | PyObject * obj1 = 0 ; | |
25300 | PyObject * obj2 = 0 ; | |
25301 | char *kwnames[] = { | |
25302 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
25303 | }; | |
25304 | ||
25305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25307 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25308 | if (arg2 == NULL) { | |
25309 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25310 | } | |
58203fa6 | 25311 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
25312 | { |
25313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 25314 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
25315 | |
25316 | wxPyEndAllowThreads(__tstate); | |
25317 | if (PyErr_Occurred()) SWIG_fail; | |
25318 | } | |
25319 | resultobj = result; | |
25320 | return resultobj; | |
25321 | fail: | |
25322 | return NULL; | |
25323 | } | |
25324 | ||
25325 | ||
25326 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25327 | PyObject *resultobj; | |
25328 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25329 | wxTreeItemId *arg2 = 0 ; | |
25330 | wxTreeItemId result; | |
25331 | PyObject * obj0 = 0 ; | |
25332 | PyObject * obj1 = 0 ; | |
25333 | char *kwnames[] = { | |
25334 | (char *) "self",(char *) "item", NULL | |
25335 | }; | |
25336 | ||
25337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
25338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25339 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25340 | if (arg2 == NULL) { | |
25341 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25342 | } | |
25343 | { | |
25344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25345 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
25346 | ||
25347 | wxPyEndAllowThreads(__tstate); | |
25348 | if (PyErr_Occurred()) SWIG_fail; | |
25349 | } | |
25350 | { | |
25351 | wxTreeItemId * resultptr; | |
25352 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25353 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25354 | } | |
25355 | return resultobj; | |
25356 | fail: | |
25357 | return NULL; | |
25358 | } | |
25359 | ||
25360 | ||
25361 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25362 | PyObject *resultobj; | |
25363 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25364 | wxTreeItemId *arg2 = 0 ; | |
25365 | wxTreeItemId result; | |
25366 | PyObject * obj0 = 0 ; | |
25367 | PyObject * obj1 = 0 ; | |
25368 | char *kwnames[] = { | |
25369 | (char *) "self",(char *) "item", NULL | |
25370 | }; | |
25371 | ||
25372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
25373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25374 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25375 | if (arg2 == NULL) { | |
25376 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25377 | } | |
25378 | { | |
25379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25380 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
25381 | ||
25382 | wxPyEndAllowThreads(__tstate); | |
25383 | if (PyErr_Occurred()) SWIG_fail; | |
25384 | } | |
25385 | { | |
25386 | wxTreeItemId * resultptr; | |
25387 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25388 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25389 | } | |
25390 | return resultobj; | |
25391 | fail: | |
25392 | return NULL; | |
25393 | } | |
25394 | ||
25395 | ||
25396 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25397 | PyObject *resultobj; | |
25398 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25399 | wxTreeItemId *arg2 = 0 ; | |
25400 | wxTreeItemId result; | |
25401 | PyObject * obj0 = 0 ; | |
25402 | PyObject * obj1 = 0 ; | |
25403 | char *kwnames[] = { | |
25404 | (char *) "self",(char *) "item", NULL | |
25405 | }; | |
25406 | ||
25407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
25408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25409 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25410 | if (arg2 == NULL) { | |
25411 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25412 | } | |
25413 | { | |
25414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25415 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
25416 | ||
25417 | wxPyEndAllowThreads(__tstate); | |
25418 | if (PyErr_Occurred()) SWIG_fail; | |
25419 | } | |
25420 | { | |
25421 | wxTreeItemId * resultptr; | |
25422 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25423 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25424 | } | |
25425 | return resultobj; | |
25426 | fail: | |
25427 | return NULL; | |
25428 | } | |
25429 | ||
25430 | ||
25431 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25432 | PyObject *resultobj; | |
25433 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25434 | wxTreeItemId result; | |
25435 | PyObject * obj0 = 0 ; | |
25436 | char *kwnames[] = { | |
25437 | (char *) "self", NULL | |
25438 | }; | |
25439 | ||
25440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
25441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25442 | { | |
25443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25444 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
25445 | ||
25446 | wxPyEndAllowThreads(__tstate); | |
25447 | if (PyErr_Occurred()) SWIG_fail; | |
25448 | } | |
25449 | { | |
25450 | wxTreeItemId * resultptr; | |
25451 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25452 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25453 | } | |
25454 | return resultobj; | |
25455 | fail: | |
25456 | return NULL; | |
25457 | } | |
25458 | ||
25459 | ||
25460 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25461 | PyObject *resultobj; | |
25462 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25463 | wxTreeItemId *arg2 = 0 ; | |
25464 | wxTreeItemId result; | |
25465 | PyObject * obj0 = 0 ; | |
25466 | PyObject * obj1 = 0 ; | |
25467 | char *kwnames[] = { | |
25468 | (char *) "self",(char *) "item", NULL | |
25469 | }; | |
25470 | ||
25471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
25472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25473 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25474 | if (arg2 == NULL) { | |
25475 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25476 | } | |
25477 | { | |
25478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25479 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
25480 | ||
25481 | wxPyEndAllowThreads(__tstate); | |
25482 | if (PyErr_Occurred()) SWIG_fail; | |
25483 | } | |
25484 | { | |
25485 | wxTreeItemId * resultptr; | |
25486 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25487 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25488 | } | |
25489 | return resultobj; | |
25490 | fail: | |
25491 | return NULL; | |
25492 | } | |
25493 | ||
25494 | ||
25495 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25496 | PyObject *resultobj; | |
25497 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25498 | wxTreeItemId *arg2 = 0 ; | |
25499 | wxTreeItemId result; | |
25500 | PyObject * obj0 = 0 ; | |
25501 | PyObject * obj1 = 0 ; | |
25502 | char *kwnames[] = { | |
25503 | (char *) "self",(char *) "item", NULL | |
25504 | }; | |
25505 | ||
25506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
25507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25508 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25509 | if (arg2 == NULL) { | |
25510 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25511 | } | |
25512 | { | |
25513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25514 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
25515 | ||
25516 | wxPyEndAllowThreads(__tstate); | |
25517 | if (PyErr_Occurred()) SWIG_fail; | |
25518 | } | |
25519 | { | |
25520 | wxTreeItemId * resultptr; | |
25521 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25522 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25523 | } | |
25524 | return resultobj; | |
25525 | fail: | |
25526 | return NULL; | |
25527 | } | |
25528 | ||
25529 | ||
25530 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25531 | PyObject *resultobj; | |
25532 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25533 | wxString *arg2 = 0 ; | |
25534 | int arg3 = (int) -1 ; | |
25535 | int arg4 = (int) -1 ; | |
25536 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
25537 | wxTreeItemId result; | |
423f194a | 25538 | bool temp2 = False ; |
d14a1e28 RD |
25539 | PyObject * obj0 = 0 ; |
25540 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
25541 | PyObject * obj2 = 0 ; |
25542 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25543 | PyObject * obj4 = 0 ; |
25544 | char *kwnames[] = { | |
25545 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25546 | }; | |
25547 | ||
8edf1c75 | 25548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
25549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25550 | { | |
25551 | arg2 = wxString_in_helper(obj1); | |
25552 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25553 | temp2 = True; |
d14a1e28 | 25554 | } |
8edf1c75 RD |
25555 | if (obj2) { |
25556 | { | |
25557 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25558 | if (PyErr_Occurred()) SWIG_fail; | |
25559 | } | |
25560 | } | |
25561 | if (obj3) { | |
25562 | { | |
25563 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25564 | if (PyErr_Occurred()) SWIG_fail; | |
25565 | } | |
25566 | } | |
d14a1e28 RD |
25567 | if (obj4) { |
25568 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25569 | } | |
25570 | { | |
25571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25572 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
25573 | ||
25574 | wxPyEndAllowThreads(__tstate); | |
25575 | if (PyErr_Occurred()) SWIG_fail; | |
25576 | } | |
25577 | { | |
25578 | wxTreeItemId * resultptr; | |
25579 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25580 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25581 | } | |
25582 | { | |
25583 | if (temp2) | |
25584 | delete arg2; | |
25585 | } | |
25586 | return resultobj; | |
25587 | fail: | |
25588 | { | |
25589 | if (temp2) | |
25590 | delete arg2; | |
25591 | } | |
25592 | return NULL; | |
25593 | } | |
25594 | ||
25595 | ||
25596 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25597 | PyObject *resultobj; | |
25598 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25599 | wxTreeItemId *arg2 = 0 ; | |
25600 | wxString *arg3 = 0 ; | |
25601 | int arg4 = (int) -1 ; | |
25602 | int arg5 = (int) -1 ; | |
25603 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25604 | wxTreeItemId result; | |
423f194a | 25605 | bool temp3 = False ; |
d14a1e28 RD |
25606 | PyObject * obj0 = 0 ; |
25607 | PyObject * obj1 = 0 ; | |
25608 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
25609 | PyObject * obj3 = 0 ; |
25610 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25611 | PyObject * obj5 = 0 ; |
25612 | char *kwnames[] = { | |
25613 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25614 | }; | |
25615 | ||
8edf1c75 | 25616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
25617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25618 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25619 | if (arg2 == NULL) { | |
25620 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25621 | } | |
25622 | { | |
25623 | arg3 = wxString_in_helper(obj2); | |
25624 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25625 | temp3 = True; |
d14a1e28 | 25626 | } |
8edf1c75 RD |
25627 | if (obj3) { |
25628 | { | |
25629 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25630 | if (PyErr_Occurred()) SWIG_fail; | |
25631 | } | |
25632 | } | |
25633 | if (obj4) { | |
25634 | { | |
25635 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25636 | if (PyErr_Occurred()) SWIG_fail; | |
25637 | } | |
25638 | } | |
d14a1e28 RD |
25639 | if (obj5) { |
25640 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25641 | } | |
25642 | { | |
25643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25644 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25645 | ||
25646 | wxPyEndAllowThreads(__tstate); | |
25647 | if (PyErr_Occurred()) SWIG_fail; | |
25648 | } | |
25649 | { | |
25650 | wxTreeItemId * resultptr; | |
25651 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25652 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25653 | } | |
25654 | { | |
25655 | if (temp3) | |
25656 | delete arg3; | |
25657 | } | |
25658 | return resultobj; | |
25659 | fail: | |
25660 | { | |
25661 | if (temp3) | |
25662 | delete arg3; | |
25663 | } | |
25664 | return NULL; | |
25665 | } | |
25666 | ||
25667 | ||
25668 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25669 | PyObject *resultobj; | |
25670 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25671 | wxTreeItemId *arg2 = 0 ; | |
25672 | wxTreeItemId *arg3 = 0 ; | |
25673 | wxString *arg4 = 0 ; | |
25674 | int arg5 = (int) -1 ; | |
25675 | int arg6 = (int) -1 ; | |
25676 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
25677 | wxTreeItemId result; | |
423f194a | 25678 | bool temp4 = False ; |
d14a1e28 RD |
25679 | PyObject * obj0 = 0 ; |
25680 | PyObject * obj1 = 0 ; | |
25681 | PyObject * obj2 = 0 ; | |
25682 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
25683 | PyObject * obj4 = 0 ; |
25684 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
25685 | PyObject * obj6 = 0 ; |
25686 | char *kwnames[] = { | |
25687 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25688 | }; | |
25689 | ||
8edf1c75 | 25690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
25691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25692 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25693 | if (arg2 == NULL) { | |
25694 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25695 | } | |
25696 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25697 | if (arg3 == NULL) { | |
25698 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25699 | } | |
25700 | { | |
25701 | arg4 = wxString_in_helper(obj3); | |
25702 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25703 | temp4 = True; |
d14a1e28 | 25704 | } |
8edf1c75 RD |
25705 | if (obj4) { |
25706 | { | |
25707 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25708 | if (PyErr_Occurred()) SWIG_fail; | |
25709 | } | |
25710 | } | |
25711 | if (obj5) { | |
25712 | { | |
25713 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
25714 | if (PyErr_Occurred()) SWIG_fail; | |
25715 | } | |
25716 | } | |
d14a1e28 RD |
25717 | if (obj6) { |
25718 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25719 | } | |
25720 | { | |
25721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25722 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25723 | ||
25724 | wxPyEndAllowThreads(__tstate); | |
25725 | if (PyErr_Occurred()) SWIG_fail; | |
25726 | } | |
25727 | { | |
25728 | wxTreeItemId * resultptr; | |
25729 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25730 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25731 | } | |
25732 | { | |
25733 | if (temp4) | |
25734 | delete arg4; | |
25735 | } | |
25736 | return resultobj; | |
25737 | fail: | |
25738 | { | |
25739 | if (temp4) | |
25740 | delete arg4; | |
25741 | } | |
25742 | return NULL; | |
25743 | } | |
25744 | ||
25745 | ||
25746 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25747 | PyObject *resultobj; | |
25748 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25749 | wxTreeItemId *arg2 = 0 ; | |
25750 | size_t arg3 ; | |
25751 | wxString *arg4 = 0 ; | |
25752 | int arg5 = (int) -1 ; | |
25753 | int arg6 = (int) -1 ; | |
25754 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
25755 | wxTreeItemId result; | |
423f194a | 25756 | bool temp4 = False ; |
d14a1e28 RD |
25757 | PyObject * obj0 = 0 ; |
25758 | PyObject * obj1 = 0 ; | |
25759 | PyObject * obj2 = 0 ; | |
25760 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
25761 | PyObject * obj4 = 0 ; |
25762 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
25763 | PyObject * obj6 = 0 ; |
25764 | char *kwnames[] = { | |
25765 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25766 | }; | |
25767 | ||
8edf1c75 | 25768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
25769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25770 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25771 | if (arg2 == NULL) { | |
25772 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25773 | } | |
83448d71 | 25774 | { |
8edf1c75 | 25775 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
83448d71 RD |
25776 | if (PyErr_Occurred()) SWIG_fail; |
25777 | } | |
d14a1e28 RD |
25778 | { |
25779 | arg4 = wxString_in_helper(obj3); | |
25780 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25781 | temp4 = True; |
d14a1e28 | 25782 | } |
8edf1c75 RD |
25783 | if (obj4) { |
25784 | { | |
25785 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25786 | if (PyErr_Occurred()) SWIG_fail; | |
25787 | } | |
25788 | } | |
25789 | if (obj5) { | |
25790 | { | |
25791 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
25792 | if (PyErr_Occurred()) SWIG_fail; | |
25793 | } | |
25794 | } | |
d14a1e28 RD |
25795 | if (obj6) { |
25796 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25797 | } | |
25798 | { | |
25799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25800 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25801 | ||
25802 | wxPyEndAllowThreads(__tstate); | |
25803 | if (PyErr_Occurred()) SWIG_fail; | |
25804 | } | |
25805 | { | |
25806 | wxTreeItemId * resultptr; | |
25807 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25808 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25809 | } | |
25810 | { | |
25811 | if (temp4) | |
25812 | delete arg4; | |
25813 | } | |
25814 | return resultobj; | |
25815 | fail: | |
25816 | { | |
25817 | if (temp4) | |
25818 | delete arg4; | |
25819 | } | |
25820 | return NULL; | |
25821 | } | |
25822 | ||
25823 | ||
25824 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25825 | PyObject *resultobj; | |
25826 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25827 | wxTreeItemId *arg2 = 0 ; | |
25828 | wxString *arg3 = 0 ; | |
25829 | int arg4 = (int) -1 ; | |
25830 | int arg5 = (int) -1 ; | |
25831 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25832 | wxTreeItemId result; | |
423f194a | 25833 | bool temp3 = False ; |
d14a1e28 RD |
25834 | PyObject * obj0 = 0 ; |
25835 | PyObject * obj1 = 0 ; | |
25836 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
25837 | PyObject * obj3 = 0 ; |
25838 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25839 | PyObject * obj5 = 0 ; |
25840 | char *kwnames[] = { | |
25841 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25842 | }; | |
25843 | ||
8edf1c75 | 25844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
25845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25846 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25847 | if (arg2 == NULL) { | |
25848 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25849 | } | |
25850 | { | |
25851 | arg3 = wxString_in_helper(obj2); | |
25852 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25853 | temp3 = True; |
d14a1e28 | 25854 | } |
8edf1c75 RD |
25855 | if (obj3) { |
25856 | { | |
25857 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25858 | if (PyErr_Occurred()) SWIG_fail; | |
25859 | } | |
25860 | } | |
25861 | if (obj4) { | |
25862 | { | |
25863 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25864 | if (PyErr_Occurred()) SWIG_fail; | |
25865 | } | |
25866 | } | |
d14a1e28 RD |
25867 | if (obj5) { |
25868 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25869 | } | |
25870 | { | |
25871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25872 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25873 | ||
25874 | wxPyEndAllowThreads(__tstate); | |
25875 | if (PyErr_Occurred()) SWIG_fail; | |
25876 | } | |
25877 | { | |
25878 | wxTreeItemId * resultptr; | |
25879 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25880 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25881 | } | |
25882 | { | |
25883 | if (temp3) | |
25884 | delete arg3; | |
25885 | } | |
25886 | return resultobj; | |
25887 | fail: | |
25888 | { | |
25889 | if (temp3) | |
25890 | delete arg3; | |
25891 | } | |
25892 | return NULL; | |
25893 | } | |
25894 | ||
25895 | ||
25896 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25897 | PyObject *resultobj; | |
25898 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25899 | wxTreeItemId *arg2 = 0 ; | |
25900 | PyObject * obj0 = 0 ; | |
25901 | PyObject * obj1 = 0 ; | |
25902 | char *kwnames[] = { | |
25903 | (char *) "self",(char *) "item", NULL | |
25904 | }; | |
25905 | ||
25906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
25907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25908 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25909 | if (arg2 == NULL) { | |
25910 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25911 | } | |
25912 | { | |
25913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25914 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
25915 | ||
25916 | wxPyEndAllowThreads(__tstate); | |
25917 | if (PyErr_Occurred()) SWIG_fail; | |
25918 | } | |
25919 | Py_INCREF(Py_None); resultobj = Py_None; | |
25920 | return resultobj; | |
25921 | fail: | |
25922 | return NULL; | |
25923 | } | |
25924 | ||
25925 | ||
25926 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25927 | PyObject *resultobj; | |
25928 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25929 | wxTreeItemId *arg2 = 0 ; | |
25930 | PyObject * obj0 = 0 ; | |
25931 | PyObject * obj1 = 0 ; | |
25932 | char *kwnames[] = { | |
25933 | (char *) "self",(char *) "item", NULL | |
25934 | }; | |
25935 | ||
25936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
25937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25938 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25939 | if (arg2 == NULL) { | |
25940 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25941 | } | |
25942 | { | |
25943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25944 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
25945 | ||
25946 | wxPyEndAllowThreads(__tstate); | |
25947 | if (PyErr_Occurred()) SWIG_fail; | |
25948 | } | |
25949 | Py_INCREF(Py_None); resultobj = Py_None; | |
25950 | return resultobj; | |
25951 | fail: | |
25952 | return NULL; | |
25953 | } | |
25954 | ||
25955 | ||
25956 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25957 | PyObject *resultobj; | |
25958 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25959 | PyObject * obj0 = 0 ; | |
25960 | char *kwnames[] = { | |
25961 | (char *) "self", NULL | |
25962 | }; | |
25963 | ||
25964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
25965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25966 | { | |
25967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25968 | (arg1)->DeleteAllItems(); | |
25969 | ||
25970 | wxPyEndAllowThreads(__tstate); | |
25971 | if (PyErr_Occurred()) SWIG_fail; | |
25972 | } | |
25973 | Py_INCREF(Py_None); resultobj = Py_None; | |
25974 | return resultobj; | |
25975 | fail: | |
25976 | return NULL; | |
25977 | } | |
25978 | ||
25979 | ||
25980 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25981 | PyObject *resultobj; | |
25982 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25983 | wxTreeItemId *arg2 = 0 ; | |
25984 | PyObject * obj0 = 0 ; | |
25985 | PyObject * obj1 = 0 ; | |
25986 | char *kwnames[] = { | |
25987 | (char *) "self",(char *) "item", NULL | |
25988 | }; | |
25989 | ||
25990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
25991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25992 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25993 | if (arg2 == NULL) { | |
25994 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25995 | } | |
25996 | { | |
25997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25998 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
25999 | ||
26000 | wxPyEndAllowThreads(__tstate); | |
26001 | if (PyErr_Occurred()) SWIG_fail; | |
26002 | } | |
26003 | Py_INCREF(Py_None); resultobj = Py_None; | |
26004 | return resultobj; | |
26005 | fail: | |
26006 | return NULL; | |
26007 | } | |
26008 | ||
26009 | ||
26010 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26011 | PyObject *resultobj; | |
26012 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26013 | wxTreeItemId *arg2 = 0 ; | |
26014 | PyObject * obj0 = 0 ; | |
26015 | PyObject * obj1 = 0 ; | |
26016 | char *kwnames[] = { | |
26017 | (char *) "self",(char *) "item", NULL | |
26018 | }; | |
26019 | ||
26020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
26021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26022 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26023 | if (arg2 == NULL) { | |
26024 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26025 | } | |
26026 | { | |
26027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26028 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
26029 | ||
26030 | wxPyEndAllowThreads(__tstate); | |
26031 | if (PyErr_Occurred()) SWIG_fail; | |
26032 | } | |
26033 | Py_INCREF(Py_None); resultobj = Py_None; | |
26034 | return resultobj; | |
26035 | fail: | |
26036 | return NULL; | |
26037 | } | |
26038 | ||
26039 | ||
26040 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26041 | PyObject *resultobj; | |
26042 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26043 | wxTreeItemId *arg2 = 0 ; | |
26044 | PyObject * obj0 = 0 ; | |
26045 | PyObject * obj1 = 0 ; | |
26046 | char *kwnames[] = { | |
26047 | (char *) "self",(char *) "item", NULL | |
26048 | }; | |
26049 | ||
26050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
26051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26052 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26053 | if (arg2 == NULL) { | |
26054 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26055 | } | |
26056 | { | |
26057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26058 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
26059 | ||
26060 | wxPyEndAllowThreads(__tstate); | |
26061 | if (PyErr_Occurred()) SWIG_fail; | |
26062 | } | |
26063 | Py_INCREF(Py_None); resultobj = Py_None; | |
26064 | return resultobj; | |
26065 | fail: | |
26066 | return NULL; | |
26067 | } | |
26068 | ||
26069 | ||
26070 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26071 | PyObject *resultobj; | |
26072 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26073 | wxTreeItemId *arg2 = 0 ; | |
26074 | PyObject * obj0 = 0 ; | |
26075 | PyObject * obj1 = 0 ; | |
26076 | char *kwnames[] = { | |
26077 | (char *) "self",(char *) "item", NULL | |
26078 | }; | |
26079 | ||
26080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
26081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26082 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26083 | if (arg2 == NULL) { | |
26084 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26085 | } | |
26086 | { | |
26087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26088 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
26089 | ||
26090 | wxPyEndAllowThreads(__tstate); | |
26091 | if (PyErr_Occurred()) SWIG_fail; | |
26092 | } | |
26093 | Py_INCREF(Py_None); resultobj = Py_None; | |
26094 | return resultobj; | |
26095 | fail: | |
26096 | return NULL; | |
26097 | } | |
26098 | ||
26099 | ||
26100 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26101 | PyObject *resultobj; | |
26102 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26103 | PyObject * obj0 = 0 ; | |
26104 | char *kwnames[] = { | |
26105 | (char *) "self", NULL | |
26106 | }; | |
26107 | ||
26108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
26109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26110 | { | |
26111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26112 | (arg1)->Unselect(); | |
26113 | ||
26114 | wxPyEndAllowThreads(__tstate); | |
26115 | if (PyErr_Occurred()) SWIG_fail; | |
26116 | } | |
26117 | Py_INCREF(Py_None); resultobj = Py_None; | |
26118 | return resultobj; | |
26119 | fail: | |
26120 | return NULL; | |
26121 | } | |
26122 | ||
26123 | ||
db914595 RD |
26124 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
26125 | PyObject *resultobj; | |
26126 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26127 | wxTreeItemId *arg2 = 0 ; | |
26128 | PyObject * obj0 = 0 ; | |
26129 | PyObject * obj1 = 0 ; | |
26130 | char *kwnames[] = { | |
26131 | (char *) "self",(char *) "item", NULL | |
26132 | }; | |
26133 | ||
26134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
26135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26136 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26137 | if (arg2 == NULL) { | |
26138 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26139 | } | |
26140 | { | |
26141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26142 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
26143 | ||
26144 | wxPyEndAllowThreads(__tstate); | |
26145 | if (PyErr_Occurred()) SWIG_fail; | |
26146 | } | |
26147 | Py_INCREF(Py_None); resultobj = Py_None; | |
26148 | return resultobj; | |
26149 | fail: | |
26150 | return NULL; | |
26151 | } | |
26152 | ||
26153 | ||
d14a1e28 RD |
26154 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
26155 | PyObject *resultobj; | |
26156 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26157 | PyObject * obj0 = 0 ; | |
26158 | char *kwnames[] = { | |
26159 | (char *) "self", NULL | |
26160 | }; | |
26161 | ||
26162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
26163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26164 | { | |
26165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26166 | (arg1)->UnselectAll(); | |
26167 | ||
26168 | wxPyEndAllowThreads(__tstate); | |
26169 | if (PyErr_Occurred()) SWIG_fail; | |
26170 | } | |
26171 | Py_INCREF(Py_None); resultobj = Py_None; | |
26172 | return resultobj; | |
26173 | fail: | |
26174 | return NULL; | |
26175 | } | |
26176 | ||
26177 | ||
26178 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
db914595 RD |
26179 | PyObject *resultobj; |
26180 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26181 | wxTreeItemId *arg2 = 0 ; | |
26182 | bool arg3 = (bool) True ; | |
26183 | PyObject * obj0 = 0 ; | |
26184 | PyObject * obj1 = 0 ; | |
26185 | PyObject * obj2 = 0 ; | |
26186 | char *kwnames[] = { | |
26187 | (char *) "self",(char *) "item",(char *) "select", NULL | |
26188 | }; | |
26189 | ||
26190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26192 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26193 | if (arg2 == NULL) { | |
26194 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26195 | } | |
26196 | if (obj2) { | |
26197 | { | |
26198 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
26199 | if (PyErr_Occurred()) SWIG_fail; | |
26200 | } | |
26201 | } | |
26202 | { | |
26203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26204 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
26205 | ||
26206 | wxPyEndAllowThreads(__tstate); | |
26207 | if (PyErr_Occurred()) SWIG_fail; | |
26208 | } | |
26209 | Py_INCREF(Py_None); resultobj = Py_None; | |
26210 | return resultobj; | |
26211 | fail: | |
26212 | return NULL; | |
26213 | } | |
26214 | ||
26215 | ||
26216 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
26217 | PyObject *resultobj; |
26218 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26219 | wxTreeItemId *arg2 = 0 ; | |
26220 | PyObject * obj0 = 0 ; | |
26221 | PyObject * obj1 = 0 ; | |
26222 | char *kwnames[] = { | |
26223 | (char *) "self",(char *) "item", NULL | |
26224 | }; | |
26225 | ||
db914595 | 26226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
26227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26228 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26229 | if (arg2 == NULL) { | |
26230 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26231 | } | |
26232 | { | |
26233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 26234 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
26235 | |
26236 | wxPyEndAllowThreads(__tstate); | |
26237 | if (PyErr_Occurred()) SWIG_fail; | |
26238 | } | |
26239 | Py_INCREF(Py_None); resultobj = Py_None; | |
26240 | return resultobj; | |
26241 | fail: | |
26242 | return NULL; | |
26243 | } | |
26244 | ||
26245 | ||
26246 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26247 | PyObject *resultobj; | |
26248 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26249 | wxTreeItemId *arg2 = 0 ; | |
26250 | PyObject * obj0 = 0 ; | |
26251 | PyObject * obj1 = 0 ; | |
26252 | char *kwnames[] = { | |
26253 | (char *) "self",(char *) "item", NULL | |
26254 | }; | |
26255 | ||
26256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
26257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26258 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26259 | if (arg2 == NULL) { | |
26260 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26261 | } | |
26262 | { | |
26263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26264 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
26265 | ||
26266 | wxPyEndAllowThreads(__tstate); | |
26267 | if (PyErr_Occurred()) SWIG_fail; | |
26268 | } | |
26269 | Py_INCREF(Py_None); resultobj = Py_None; | |
26270 | return resultobj; | |
26271 | fail: | |
26272 | return NULL; | |
26273 | } | |
26274 | ||
26275 | ||
26276 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26277 | PyObject *resultobj; | |
26278 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26279 | wxTreeItemId *arg2 = 0 ; | |
26280 | PyObject * obj0 = 0 ; | |
26281 | PyObject * obj1 = 0 ; | |
26282 | char *kwnames[] = { | |
26283 | (char *) "self",(char *) "item", NULL | |
26284 | }; | |
26285 | ||
26286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
26287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26288 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26289 | if (arg2 == NULL) { | |
26290 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26291 | } | |
26292 | { | |
26293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26294 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
26295 | ||
26296 | wxPyEndAllowThreads(__tstate); | |
26297 | if (PyErr_Occurred()) SWIG_fail; | |
26298 | } | |
26299 | Py_INCREF(Py_None); resultobj = Py_None; | |
26300 | return resultobj; | |
26301 | fail: | |
26302 | return NULL; | |
26303 | } | |
26304 | ||
26305 | ||
26306 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26307 | PyObject *resultobj; | |
26308 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26309 | wxTreeItemId *arg2 = 0 ; | |
26310 | PyObject * obj0 = 0 ; | |
26311 | PyObject * obj1 = 0 ; | |
26312 | char *kwnames[] = { | |
26313 | (char *) "self",(char *) "item", NULL | |
26314 | }; | |
26315 | ||
26316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
26317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26318 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26319 | if (arg2 == NULL) { | |
26320 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26321 | } | |
26322 | { | |
26323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26324 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
26325 | ||
26326 | wxPyEndAllowThreads(__tstate); | |
26327 | if (PyErr_Occurred()) SWIG_fail; | |
26328 | } | |
26329 | Py_INCREF(Py_None); resultobj = Py_None; | |
26330 | return resultobj; | |
26331 | fail: | |
26332 | return NULL; | |
26333 | } | |
26334 | ||
26335 | ||
26336 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26337 | PyObject *resultobj; | |
26338 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26339 | wxTextCtrl *result; | |
26340 | PyObject * obj0 = 0 ; | |
26341 | char *kwnames[] = { | |
26342 | (char *) "self", NULL | |
26343 | }; | |
26344 | ||
26345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
26346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26347 | { | |
26348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26349 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
26350 | ||
26351 | wxPyEndAllowThreads(__tstate); | |
26352 | if (PyErr_Occurred()) SWIG_fail; | |
26353 | } | |
26354 | { | |
26355 | resultobj = wxPyMake_wxObject(result); | |
26356 | } | |
26357 | return resultobj; | |
26358 | fail: | |
26359 | return NULL; | |
26360 | } | |
26361 | ||
26362 | ||
26363 | static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26364 | PyObject *resultobj; | |
26365 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26366 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 26367 | bool arg3 = (bool) False ; |
d14a1e28 RD |
26368 | PyObject * obj0 = 0 ; |
26369 | PyObject * obj1 = 0 ; | |
26370 | PyObject * obj2 = 0 ; | |
26371 | char *kwnames[] = { | |
26372 | (char *) "self",(char *) "item",(char *) "discardChanges", NULL | |
26373 | }; | |
26374 | ||
26375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26377 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26378 | if (arg2 == NULL) { | |
26379 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26380 | } | |
26381 | if (obj2) { | |
83448d71 | 26382 | { |
8edf1c75 | 26383 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
26384 | if (PyErr_Occurred()) SWIG_fail; |
26385 | } | |
d14a1e28 RD |
26386 | } |
26387 | { | |
26388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26389 | (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3); | |
26390 | ||
26391 | wxPyEndAllowThreads(__tstate); | |
26392 | if (PyErr_Occurred()) SWIG_fail; | |
26393 | } | |
26394 | Py_INCREF(Py_None); resultobj = Py_None; | |
26395 | return resultobj; | |
26396 | fail: | |
26397 | return NULL; | |
26398 | } | |
26399 | ||
26400 | ||
26401 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26402 | PyObject *resultobj; | |
26403 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26404 | wxTreeItemId *arg2 = 0 ; | |
26405 | PyObject * obj0 = 0 ; | |
26406 | PyObject * obj1 = 0 ; | |
26407 | char *kwnames[] = { | |
26408 | (char *) "self",(char *) "item", NULL | |
26409 | }; | |
26410 | ||
26411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
26412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26413 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26414 | if (arg2 == NULL) { | |
26415 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26416 | } | |
26417 | { | |
26418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26419 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
26420 | ||
26421 | wxPyEndAllowThreads(__tstate); | |
26422 | if (PyErr_Occurred()) SWIG_fail; | |
26423 | } | |
26424 | Py_INCREF(Py_None); resultobj = Py_None; | |
26425 | return resultobj; | |
26426 | fail: | |
26427 | return NULL; | |
26428 | } | |
26429 | ||
26430 | ||
26431 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26432 | PyObject *resultobj; | |
26433 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26434 | wxPoint *arg2 = 0 ; | |
26435 | int *arg3 = 0 ; | |
26436 | wxTreeItemId result; | |
26437 | wxPoint temp2 ; | |
26438 | int temp3 ; | |
26439 | PyObject * obj0 = 0 ; | |
26440 | PyObject * obj1 = 0 ; | |
26441 | char *kwnames[] = { | |
26442 | (char *) "self",(char *) "point", NULL | |
26443 | }; | |
26444 | ||
26445 | arg3 = &temp3; | |
26446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
26447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26448 | { | |
26449 | arg2 = &temp2; | |
26450 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26451 | } | |
26452 | { | |
26453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26454 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
26455 | ||
26456 | wxPyEndAllowThreads(__tstate); | |
26457 | if (PyErr_Occurred()) SWIG_fail; | |
26458 | } | |
26459 | { | |
26460 | wxTreeItemId * resultptr; | |
26461 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26462 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
26463 | } | |
26464 | { | |
26465 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26466 | resultobj = t_output_helper(resultobj,o); | |
26467 | } | |
26468 | return resultobj; | |
26469 | fail: | |
26470 | return NULL; | |
26471 | } | |
26472 | ||
26473 | ||
26474 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26475 | PyObject *resultobj; | |
26476 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26477 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 26478 | bool arg3 = (bool) False ; |
d14a1e28 RD |
26479 | PyObject *result; |
26480 | PyObject * obj0 = 0 ; | |
26481 | PyObject * obj1 = 0 ; | |
26482 | PyObject * obj2 = 0 ; | |
26483 | char *kwnames[] = { | |
26484 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
26485 | }; | |
26486 | ||
26487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26489 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26490 | if (arg2 == NULL) { | |
26491 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26492 | } | |
26493 | if (obj2) { | |
83448d71 | 26494 | { |
8edf1c75 | 26495 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
26496 | if (PyErr_Occurred()) SWIG_fail; |
26497 | } | |
d14a1e28 RD |
26498 | } |
26499 | { | |
26500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26501 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26502 | ||
26503 | wxPyEndAllowThreads(__tstate); | |
26504 | if (PyErr_Occurred()) SWIG_fail; | |
26505 | } | |
26506 | resultobj = result; | |
26507 | return resultobj; | |
26508 | fail: | |
26509 | return NULL; | |
26510 | } | |
26511 | ||
26512 | ||
26513 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
26514 | PyObject *obj; | |
26515 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26516 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
26517 | Py_INCREF(obj); | |
26518 | return Py_BuildValue((char *)""); | |
26519 | } | |
8edf1c75 | 26520 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
d03fd34d RD |
26521 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
26522 | return 1; | |
26523 | } | |
26524 | ||
26525 | ||
26526 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
26527 | PyObject *pyobj; | |
26528 | ||
26529 | { | |
26530 | #if wxUSE_UNICODE | |
26531 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
26532 | #else | |
26533 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
26534 | #endif | |
26535 | } | |
26536 | return pyobj; | |
26537 | } | |
26538 | ||
26539 | ||
d14a1e28 RD |
26540 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
26541 | PyObject *resultobj; | |
26542 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 26543 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
26544 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
26545 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
26546 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
26547 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26548 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26549 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26550 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
26551 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
26552 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
26553 | int arg8 = (int) 0 ; | |
d03fd34d | 26554 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
26555 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
26556 | wxGenericDirCtrl *result; | |
423f194a | 26557 | bool temp3 = False ; |
d14a1e28 RD |
26558 | wxPoint temp4 ; |
26559 | wxSize temp5 ; | |
423f194a RD |
26560 | bool temp7 = False ; |
26561 | bool temp9 = False ; | |
d14a1e28 | 26562 | PyObject * obj0 = 0 ; |
8edf1c75 | 26563 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26564 | PyObject * obj2 = 0 ; |
26565 | PyObject * obj3 = 0 ; | |
26566 | PyObject * obj4 = 0 ; | |
8edf1c75 | 26567 | PyObject * obj5 = 0 ; |
d14a1e28 | 26568 | PyObject * obj6 = 0 ; |
8edf1c75 | 26569 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
26570 | PyObject * obj8 = 0 ; |
26571 | char *kwnames[] = { | |
26572 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
26573 | }; | |
26574 | ||
8edf1c75 | 26575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 26576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26577 | if (obj1) { |
26578 | { | |
26579 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
26580 | if (PyErr_Occurred()) SWIG_fail; | |
26581 | } | |
26582 | } | |
d14a1e28 RD |
26583 | if (obj2) { |
26584 | { | |
26585 | arg3 = wxString_in_helper(obj2); | |
26586 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26587 | temp3 = True; |
d14a1e28 RD |
26588 | } |
26589 | } | |
26590 | if (obj3) { | |
26591 | { | |
26592 | arg4 = &temp4; | |
26593 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26594 | } | |
26595 | } | |
26596 | if (obj4) { | |
26597 | { | |
26598 | arg5 = &temp5; | |
26599 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26600 | } | |
26601 | } | |
8edf1c75 RD |
26602 | if (obj5) { |
26603 | { | |
26604 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
26605 | if (PyErr_Occurred()) SWIG_fail; | |
26606 | } | |
26607 | } | |
d14a1e28 RD |
26608 | if (obj6) { |
26609 | { | |
26610 | arg7 = wxString_in_helper(obj6); | |
26611 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 26612 | temp7 = True; |
d14a1e28 RD |
26613 | } |
26614 | } | |
8edf1c75 RD |
26615 | if (obj7) { |
26616 | { | |
26617 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
26618 | if (PyErr_Occurred()) SWIG_fail; | |
26619 | } | |
26620 | } | |
d14a1e28 RD |
26621 | if (obj8) { |
26622 | { | |
26623 | arg9 = wxString_in_helper(obj8); | |
26624 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 26625 | temp9 = True; |
d14a1e28 RD |
26626 | } |
26627 | } | |
26628 | { | |
26629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26630 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
26631 | ||
26632 | wxPyEndAllowThreads(__tstate); | |
26633 | if (PyErr_Occurred()) SWIG_fail; | |
26634 | } | |
26635 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
26636 | { | |
26637 | if (temp3) | |
26638 | delete arg3; | |
26639 | } | |
26640 | { | |
26641 | if (temp7) | |
26642 | delete arg7; | |
26643 | } | |
26644 | { | |
26645 | if (temp9) | |
26646 | delete arg9; | |
26647 | } | |
26648 | return resultobj; | |
26649 | fail: | |
26650 | { | |
26651 | if (temp3) | |
26652 | delete arg3; | |
26653 | } | |
26654 | { | |
26655 | if (temp7) | |
26656 | delete arg7; | |
26657 | } | |
26658 | { | |
26659 | if (temp9) | |
26660 | delete arg9; | |
26661 | } | |
26662 | return NULL; | |
26663 | } | |
26664 | ||
26665 | ||
26666 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26667 | PyObject *resultobj; | |
26668 | wxGenericDirCtrl *result; | |
26669 | char *kwnames[] = { | |
26670 | NULL | |
26671 | }; | |
26672 | ||
26673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
26674 | { | |
26675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26676 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
26677 | ||
26678 | wxPyEndAllowThreads(__tstate); | |
26679 | if (PyErr_Occurred()) SWIG_fail; | |
26680 | } | |
26681 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
26682 | return resultobj; | |
26683 | fail: | |
26684 | return NULL; | |
26685 | } | |
26686 | ||
26687 | ||
26688 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26689 | PyObject *resultobj; | |
26690 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26691 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 26692 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
26693 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
26694 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
26695 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
26696 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
26697 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
26698 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
26699 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
26700 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
26701 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
26702 | int arg9 = (int) 0 ; | |
d03fd34d | 26703 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
26704 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
26705 | bool result; | |
423f194a | 26706 | bool temp4 = False ; |
d14a1e28 RD |
26707 | wxPoint temp5 ; |
26708 | wxSize temp6 ; | |
423f194a RD |
26709 | bool temp8 = False ; |
26710 | bool temp10 = False ; | |
d14a1e28 RD |
26711 | PyObject * obj0 = 0 ; |
26712 | PyObject * obj1 = 0 ; | |
8edf1c75 | 26713 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26714 | PyObject * obj3 = 0 ; |
26715 | PyObject * obj4 = 0 ; | |
26716 | PyObject * obj5 = 0 ; | |
8edf1c75 | 26717 | PyObject * obj6 = 0 ; |
d14a1e28 | 26718 | PyObject * obj7 = 0 ; |
8edf1c75 | 26719 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
26720 | PyObject * obj9 = 0 ; |
26721 | char *kwnames[] = { | |
26722 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
26723 | }; | |
26724 | ||
8edf1c75 | 26725 | 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 |
26726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26727 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
26728 | if (obj2) { |
26729 | { | |
26730 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
26731 | if (PyErr_Occurred()) SWIG_fail; | |
26732 | } | |
26733 | } | |
d14a1e28 RD |
26734 | if (obj3) { |
26735 | { | |
26736 | arg4 = wxString_in_helper(obj3); | |
26737 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 26738 | temp4 = True; |
d14a1e28 RD |
26739 | } |
26740 | } | |
26741 | if (obj4) { | |
26742 | { | |
26743 | arg5 = &temp5; | |
26744 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
26745 | } | |
26746 | } | |
26747 | if (obj5) { | |
26748 | { | |
26749 | arg6 = &temp6; | |
26750 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
26751 | } | |
26752 | } | |
8edf1c75 RD |
26753 | if (obj6) { |
26754 | { | |
26755 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
26756 | if (PyErr_Occurred()) SWIG_fail; | |
26757 | } | |
26758 | } | |
d14a1e28 RD |
26759 | if (obj7) { |
26760 | { | |
26761 | arg8 = wxString_in_helper(obj7); | |
26762 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 26763 | temp8 = True; |
d14a1e28 RD |
26764 | } |
26765 | } | |
8edf1c75 RD |
26766 | if (obj8) { |
26767 | { | |
26768 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
26769 | if (PyErr_Occurred()) SWIG_fail; | |
26770 | } | |
26771 | } | |
d14a1e28 RD |
26772 | if (obj9) { |
26773 | { | |
26774 | arg10 = wxString_in_helper(obj9); | |
26775 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 26776 | temp10 = True; |
d14a1e28 RD |
26777 | } |
26778 | } | |
26779 | { | |
26780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26781 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
26782 | ||
26783 | wxPyEndAllowThreads(__tstate); | |
26784 | if (PyErr_Occurred()) SWIG_fail; | |
26785 | } | |
4e760a36 | 26786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26787 | { |
26788 | if (temp4) | |
26789 | delete arg4; | |
26790 | } | |
26791 | { | |
26792 | if (temp8) | |
26793 | delete arg8; | |
26794 | } | |
26795 | { | |
26796 | if (temp10) | |
26797 | delete arg10; | |
26798 | } | |
26799 | return resultobj; | |
26800 | fail: | |
26801 | { | |
26802 | if (temp4) | |
26803 | delete arg4; | |
26804 | } | |
26805 | { | |
26806 | if (temp8) | |
26807 | delete arg8; | |
26808 | } | |
26809 | { | |
26810 | if (temp10) | |
26811 | delete arg10; | |
26812 | } | |
26813 | return NULL; | |
26814 | } | |
26815 | ||
26816 | ||
26817 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26818 | PyObject *resultobj; | |
26819 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26820 | wxString *arg2 = 0 ; | |
26821 | bool result; | |
423f194a | 26822 | bool temp2 = False ; |
d14a1e28 RD |
26823 | PyObject * obj0 = 0 ; |
26824 | PyObject * obj1 = 0 ; | |
26825 | char *kwnames[] = { | |
26826 | (char *) "self",(char *) "path", NULL | |
26827 | }; | |
26828 | ||
26829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
26830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26831 | { | |
26832 | arg2 = wxString_in_helper(obj1); | |
26833 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26834 | temp2 = True; |
d14a1e28 RD |
26835 | } |
26836 | { | |
26837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26838 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
26839 | ||
26840 | wxPyEndAllowThreads(__tstate); | |
26841 | if (PyErr_Occurred()) SWIG_fail; | |
26842 | } | |
4e760a36 | 26843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26844 | { |
26845 | if (temp2) | |
26846 | delete arg2; | |
26847 | } | |
26848 | return resultobj; | |
26849 | fail: | |
26850 | { | |
26851 | if (temp2) | |
26852 | delete arg2; | |
26853 | } | |
26854 | return NULL; | |
26855 | } | |
26856 | ||
26857 | ||
26858 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26859 | PyObject *resultobj; | |
26860 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26861 | wxString result; | |
26862 | PyObject * obj0 = 0 ; | |
26863 | char *kwnames[] = { | |
26864 | (char *) "self", NULL | |
26865 | }; | |
26866 | ||
26867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
26868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26869 | { | |
26870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26871 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
26872 | ||
26873 | wxPyEndAllowThreads(__tstate); | |
26874 | if (PyErr_Occurred()) SWIG_fail; | |
26875 | } | |
26876 | { | |
26877 | #if wxUSE_UNICODE | |
26878 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26879 | #else | |
26880 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26881 | #endif | |
26882 | } | |
26883 | return resultobj; | |
26884 | fail: | |
26885 | return NULL; | |
26886 | } | |
26887 | ||
26888 | ||
26889 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26890 | PyObject *resultobj; | |
26891 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26892 | wxString *arg2 = 0 ; | |
423f194a | 26893 | bool temp2 = False ; |
d14a1e28 RD |
26894 | PyObject * obj0 = 0 ; |
26895 | PyObject * obj1 = 0 ; | |
26896 | char *kwnames[] = { | |
26897 | (char *) "self",(char *) "path", NULL | |
26898 | }; | |
26899 | ||
26900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
26901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26902 | { | |
26903 | arg2 = wxString_in_helper(obj1); | |
26904 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26905 | temp2 = True; |
d14a1e28 RD |
26906 | } |
26907 | { | |
26908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26909 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
26910 | ||
26911 | wxPyEndAllowThreads(__tstate); | |
26912 | if (PyErr_Occurred()) SWIG_fail; | |
26913 | } | |
26914 | Py_INCREF(Py_None); resultobj = Py_None; | |
26915 | { | |
26916 | if (temp2) | |
26917 | delete arg2; | |
26918 | } | |
26919 | return resultobj; | |
26920 | fail: | |
26921 | { | |
26922 | if (temp2) | |
26923 | delete arg2; | |
26924 | } | |
26925 | return NULL; | |
26926 | } | |
26927 | ||
26928 | ||
26929 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26930 | PyObject *resultobj; | |
26931 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26932 | wxString result; | |
26933 | PyObject * obj0 = 0 ; | |
26934 | char *kwnames[] = { | |
26935 | (char *) "self", NULL | |
26936 | }; | |
26937 | ||
26938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
26939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26940 | { | |
26941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26942 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
26943 | ||
26944 | wxPyEndAllowThreads(__tstate); | |
26945 | if (PyErr_Occurred()) SWIG_fail; | |
26946 | } | |
26947 | { | |
26948 | #if wxUSE_UNICODE | |
26949 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26950 | #else | |
26951 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26952 | #endif | |
26953 | } | |
26954 | return resultobj; | |
26955 | fail: | |
26956 | return NULL; | |
26957 | } | |
26958 | ||
26959 | ||
26960 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26961 | PyObject *resultobj; | |
26962 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26963 | wxString result; | |
26964 | PyObject * obj0 = 0 ; | |
26965 | char *kwnames[] = { | |
26966 | (char *) "self", NULL | |
26967 | }; | |
26968 | ||
26969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
26970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26971 | { | |
26972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26973 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
26974 | ||
26975 | wxPyEndAllowThreads(__tstate); | |
26976 | if (PyErr_Occurred()) SWIG_fail; | |
26977 | } | |
26978 | { | |
26979 | #if wxUSE_UNICODE | |
26980 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26981 | #else | |
26982 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26983 | #endif | |
26984 | } | |
26985 | return resultobj; | |
26986 | fail: | |
26987 | return NULL; | |
26988 | } | |
26989 | ||
26990 | ||
26991 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26992 | PyObject *resultobj; | |
26993 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26994 | wxString *arg2 = 0 ; | |
423f194a | 26995 | bool temp2 = False ; |
d14a1e28 RD |
26996 | PyObject * obj0 = 0 ; |
26997 | PyObject * obj1 = 0 ; | |
26998 | char *kwnames[] = { | |
26999 | (char *) "self",(char *) "path", NULL | |
27000 | }; | |
27001 | ||
27002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
27003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27004 | { | |
27005 | arg2 = wxString_in_helper(obj1); | |
27006 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27007 | temp2 = True; |
d14a1e28 RD |
27008 | } |
27009 | { | |
27010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27011 | (arg1)->SetPath((wxString const &)*arg2); | |
27012 | ||
27013 | wxPyEndAllowThreads(__tstate); | |
27014 | if (PyErr_Occurred()) SWIG_fail; | |
27015 | } | |
27016 | Py_INCREF(Py_None); resultobj = Py_None; | |
27017 | { | |
27018 | if (temp2) | |
27019 | delete arg2; | |
27020 | } | |
27021 | return resultobj; | |
27022 | fail: | |
27023 | { | |
27024 | if (temp2) | |
27025 | delete arg2; | |
27026 | } | |
27027 | return NULL; | |
27028 | } | |
27029 | ||
27030 | ||
27031 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27032 | PyObject *resultobj; | |
27033 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27034 | bool arg2 ; | |
27035 | PyObject * obj0 = 0 ; | |
27036 | PyObject * obj1 = 0 ; | |
27037 | char *kwnames[] = { | |
27038 | (char *) "self",(char *) "show", NULL | |
27039 | }; | |
27040 | ||
27041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
27042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 27043 | { |
8edf1c75 | 27044 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
27045 | if (PyErr_Occurred()) SWIG_fail; |
27046 | } | |
d14a1e28 RD |
27047 | { |
27048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27049 | (arg1)->ShowHidden(arg2); | |
27050 | ||
27051 | wxPyEndAllowThreads(__tstate); | |
27052 | if (PyErr_Occurred()) SWIG_fail; | |
27053 | } | |
27054 | Py_INCREF(Py_None); resultobj = Py_None; | |
27055 | return resultobj; | |
27056 | fail: | |
27057 | return NULL; | |
27058 | } | |
27059 | ||
27060 | ||
27061 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27062 | PyObject *resultobj; | |
27063 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27064 | bool result; | |
27065 | PyObject * obj0 = 0 ; | |
27066 | char *kwnames[] = { | |
27067 | (char *) "self", NULL | |
27068 | }; | |
27069 | ||
27070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
27071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27072 | { | |
27073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27074 | result = (bool)(arg1)->GetShowHidden(); | |
27075 | ||
27076 | wxPyEndAllowThreads(__tstate); | |
27077 | if (PyErr_Occurred()) SWIG_fail; | |
27078 | } | |
4e760a36 | 27079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27080 | return resultobj; |
27081 | fail: | |
27082 | return NULL; | |
27083 | } | |
27084 | ||
27085 | ||
27086 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27087 | PyObject *resultobj; | |
27088 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27089 | wxString result; | |
27090 | PyObject * obj0 = 0 ; | |
27091 | char *kwnames[] = { | |
27092 | (char *) "self", NULL | |
27093 | }; | |
27094 | ||
27095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
27096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27097 | { | |
27098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27099 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
27100 | ||
27101 | wxPyEndAllowThreads(__tstate); | |
27102 | if (PyErr_Occurred()) SWIG_fail; | |
27103 | } | |
27104 | { | |
27105 | #if wxUSE_UNICODE | |
27106 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27107 | #else | |
27108 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27109 | #endif | |
27110 | } | |
27111 | return resultobj; | |
27112 | fail: | |
27113 | return NULL; | |
27114 | } | |
27115 | ||
27116 | ||
27117 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27118 | PyObject *resultobj; | |
27119 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27120 | wxString *arg2 = 0 ; | |
423f194a | 27121 | bool temp2 = False ; |
d14a1e28 RD |
27122 | PyObject * obj0 = 0 ; |
27123 | PyObject * obj1 = 0 ; | |
27124 | char *kwnames[] = { | |
27125 | (char *) "self",(char *) "filter", NULL | |
27126 | }; | |
27127 | ||
27128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
27129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27130 | { | |
27131 | arg2 = wxString_in_helper(obj1); | |
27132 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27133 | temp2 = True; |
d14a1e28 RD |
27134 | } |
27135 | { | |
27136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27137 | (arg1)->SetFilter((wxString const &)*arg2); | |
27138 | ||
27139 | wxPyEndAllowThreads(__tstate); | |
27140 | if (PyErr_Occurred()) SWIG_fail; | |
27141 | } | |
27142 | Py_INCREF(Py_None); resultobj = Py_None; | |
27143 | { | |
27144 | if (temp2) | |
27145 | delete arg2; | |
27146 | } | |
27147 | return resultobj; | |
27148 | fail: | |
27149 | { | |
27150 | if (temp2) | |
27151 | delete arg2; | |
27152 | } | |
27153 | return NULL; | |
27154 | } | |
27155 | ||
27156 | ||
27157 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27158 | PyObject *resultobj; | |
27159 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27160 | int result; | |
27161 | PyObject * obj0 = 0 ; | |
27162 | char *kwnames[] = { | |
27163 | (char *) "self", NULL | |
27164 | }; | |
27165 | ||
27166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
27167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27168 | { | |
27169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27170 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
27171 | ||
27172 | wxPyEndAllowThreads(__tstate); | |
27173 | if (PyErr_Occurred()) SWIG_fail; | |
27174 | } | |
8edf1c75 | 27175 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
27176 | return resultobj; |
27177 | fail: | |
27178 | return NULL; | |
27179 | } | |
27180 | ||
27181 | ||
27182 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27183 | PyObject *resultobj; | |
27184 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27185 | int arg2 ; | |
27186 | PyObject * obj0 = 0 ; | |
8edf1c75 | 27187 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27188 | char *kwnames[] = { |
27189 | (char *) "self",(char *) "n", NULL | |
27190 | }; | |
27191 | ||
8edf1c75 | 27192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 27193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27194 | { |
27195 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27196 | if (PyErr_Occurred()) SWIG_fail; | |
27197 | } | |
d14a1e28 RD |
27198 | { |
27199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27200 | (arg1)->SetFilterIndex(arg2); | |
27201 | ||
27202 | wxPyEndAllowThreads(__tstate); | |
27203 | if (PyErr_Occurred()) SWIG_fail; | |
27204 | } | |
27205 | Py_INCREF(Py_None); resultobj = Py_None; | |
27206 | return resultobj; | |
27207 | fail: | |
27208 | return NULL; | |
27209 | } | |
27210 | ||
27211 | ||
27212 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27213 | PyObject *resultobj; | |
27214 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27215 | wxTreeItemId result; | |
27216 | PyObject * obj0 = 0 ; | |
27217 | char *kwnames[] = { | |
27218 | (char *) "self", NULL | |
27219 | }; | |
27220 | ||
27221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
27222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27223 | { | |
27224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27225 | result = (arg1)->GetRootId(); | |
27226 | ||
27227 | wxPyEndAllowThreads(__tstate); | |
27228 | if (PyErr_Occurred()) SWIG_fail; | |
27229 | } | |
27230 | { | |
27231 | wxTreeItemId * resultptr; | |
27232 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27233 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
27234 | } | |
27235 | return resultobj; | |
27236 | fail: | |
27237 | return NULL; | |
27238 | } | |
27239 | ||
27240 | ||
27241 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27242 | PyObject *resultobj; | |
27243 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
d03fd34d | 27244 | wxPyTreeCtrl *result; |
d14a1e28 RD |
27245 | PyObject * obj0 = 0 ; |
27246 | char *kwnames[] = { | |
27247 | (char *) "self", NULL | |
27248 | }; | |
27249 | ||
27250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
27251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27252 | { | |
27253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d03fd34d | 27254 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
27255 | |
27256 | wxPyEndAllowThreads(__tstate); | |
27257 | if (PyErr_Occurred()) SWIG_fail; | |
27258 | } | |
27259 | { | |
27260 | resultobj = wxPyMake_wxObject(result); | |
27261 | } | |
27262 | return resultobj; | |
27263 | fail: | |
27264 | return NULL; | |
27265 | } | |
27266 | ||
27267 | ||
27268 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27269 | PyObject *resultobj; | |
27270 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27271 | wxDirFilterListCtrl *result; | |
27272 | PyObject * obj0 = 0 ; | |
27273 | char *kwnames[] = { | |
27274 | (char *) "self", NULL | |
27275 | }; | |
27276 | ||
27277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
27278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27279 | { | |
27280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27281 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
27282 | ||
27283 | wxPyEndAllowThreads(__tstate); | |
27284 | if (PyErr_Occurred()) SWIG_fail; | |
27285 | } | |
27286 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
27287 | return resultobj; | |
27288 | fail: | |
27289 | return NULL; | |
27290 | } | |
27291 | ||
27292 | ||
27293 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27294 | PyObject *resultobj; | |
27295 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27296 | wxTreeItemId arg2 ; | |
27297 | wxString *arg3 = 0 ; | |
27298 | bool *arg4 = 0 ; | |
27299 | wxTreeItemId result; | |
27300 | wxTreeItemId *argp2 ; | |
423f194a | 27301 | bool temp3 = False ; |
d14a1e28 RD |
27302 | bool temp4 ; |
27303 | PyObject * obj0 = 0 ; | |
27304 | PyObject * obj1 = 0 ; | |
27305 | PyObject * obj2 = 0 ; | |
27306 | char *kwnames[] = { | |
27307 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
27308 | }; | |
27309 | ||
27310 | arg4 = &temp4; | |
27311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27313 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
27314 | arg2 = *argp2; | |
27315 | { | |
27316 | arg3 = wxString_in_helper(obj2); | |
27317 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27318 | temp3 = True; |
d14a1e28 RD |
27319 | } |
27320 | { | |
27321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27322 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
27323 | ||
27324 | wxPyEndAllowThreads(__tstate); | |
27325 | if (PyErr_Occurred()) SWIG_fail; | |
27326 | } | |
27327 | { | |
27328 | wxTreeItemId * resultptr; | |
27329 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27330 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
27331 | } | |
27332 | { | |
27333 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
27334 | resultobj = t_output_helper(resultobj,o); | |
27335 | } | |
27336 | { | |
27337 | if (temp3) | |
27338 | delete arg3; | |
27339 | } | |
27340 | return resultobj; | |
27341 | fail: | |
27342 | { | |
27343 | if (temp3) | |
27344 | delete arg3; | |
27345 | } | |
27346 | return NULL; | |
27347 | } | |
27348 | ||
27349 | ||
27350 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27351 | PyObject *resultobj; | |
27352 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27353 | PyObject * obj0 = 0 ; | |
27354 | char *kwnames[] = { | |
27355 | (char *) "self", NULL | |
27356 | }; | |
27357 | ||
27358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
27359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27360 | { | |
27361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27362 | (arg1)->DoResize(); | |
27363 | ||
27364 | wxPyEndAllowThreads(__tstate); | |
27365 | if (PyErr_Occurred()) SWIG_fail; | |
27366 | } | |
27367 | Py_INCREF(Py_None); resultobj = Py_None; | |
27368 | return resultobj; | |
27369 | fail: | |
27370 | return NULL; | |
27371 | } | |
27372 | ||
27373 | ||
27374 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27375 | PyObject *resultobj; | |
27376 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27377 | PyObject * obj0 = 0 ; | |
27378 | char *kwnames[] = { | |
27379 | (char *) "self", NULL | |
27380 | }; | |
27381 | ||
27382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
27383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27384 | { | |
27385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27386 | (arg1)->ReCreateTree(); | |
27387 | ||
27388 | wxPyEndAllowThreads(__tstate); | |
27389 | if (PyErr_Occurred()) SWIG_fail; | |
27390 | } | |
27391 | Py_INCREF(Py_None); resultobj = Py_None; | |
27392 | return resultobj; | |
27393 | fail: | |
27394 | return NULL; | |
27395 | } | |
27396 | ||
27397 | ||
27398 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
27399 | PyObject *obj; | |
27400 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27401 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
27402 | Py_INCREF(obj); | |
27403 | return Py_BuildValue((char *)""); | |
27404 | } | |
27405 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27406 | PyObject *resultobj; | |
27407 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 27408 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
27409 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27410 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27411 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27412 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27413 | long arg5 = (long) 0 ; | |
27414 | wxDirFilterListCtrl *result; | |
27415 | wxPoint temp3 ; | |
27416 | wxSize temp4 ; | |
27417 | PyObject * obj0 = 0 ; | |
8edf1c75 | 27418 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27419 | PyObject * obj2 = 0 ; |
27420 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27421 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
27422 | char *kwnames[] = { |
27423 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
27424 | }; | |
27425 | ||
8edf1c75 | 27426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27428 | if (obj1) { |
27429 | { | |
27430 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
27431 | if (PyErr_Occurred()) SWIG_fail; | |
27432 | } | |
27433 | } | |
d14a1e28 RD |
27434 | if (obj2) { |
27435 | { | |
27436 | arg3 = &temp3; | |
27437 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27438 | } | |
27439 | } | |
27440 | if (obj3) { | |
27441 | { | |
27442 | arg4 = &temp4; | |
27443 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27444 | } | |
27445 | } | |
8edf1c75 RD |
27446 | if (obj4) { |
27447 | { | |
27448 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
27449 | if (PyErr_Occurred()) SWIG_fail; | |
27450 | } | |
27451 | } | |
d14a1e28 RD |
27452 | { |
27453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27454 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
27455 | ||
27456 | wxPyEndAllowThreads(__tstate); | |
27457 | if (PyErr_Occurred()) SWIG_fail; | |
27458 | } | |
27459 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
27460 | return resultobj; | |
27461 | fail: | |
27462 | return NULL; | |
27463 | } | |
27464 | ||
27465 | ||
27466 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27467 | PyObject *resultobj; | |
27468 | wxDirFilterListCtrl *result; | |
27469 | char *kwnames[] = { | |
27470 | NULL | |
27471 | }; | |
27472 | ||
27473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
27474 | { | |
27475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27476 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
27477 | ||
27478 | wxPyEndAllowThreads(__tstate); | |
27479 | if (PyErr_Occurred()) SWIG_fail; | |
27480 | } | |
27481 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
27482 | return resultobj; | |
27483 | fail: | |
27484 | return NULL; | |
27485 | } | |
27486 | ||
27487 | ||
27488 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27489 | PyObject *resultobj; | |
27490 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
27491 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 27492 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
27493 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
27494 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27495 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27496 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27497 | long arg6 = (long) 0 ; | |
27498 | bool result; | |
27499 | wxPoint temp4 ; | |
27500 | wxSize temp5 ; | |
27501 | PyObject * obj0 = 0 ; | |
27502 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27503 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27504 | PyObject * obj3 = 0 ; |
27505 | PyObject * obj4 = 0 ; | |
8edf1c75 | 27506 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
27507 | char *kwnames[] = { |
27508 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
27509 | }; | |
27510 | ||
8edf1c75 | 27511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
27512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
27513 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
27514 | if (obj2) { |
27515 | { | |
27516 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
27517 | if (PyErr_Occurred()) SWIG_fail; | |
27518 | } | |
27519 | } | |
d14a1e28 RD |
27520 | if (obj3) { |
27521 | { | |
27522 | arg4 = &temp4; | |
27523 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27524 | } | |
27525 | } | |
27526 | if (obj4) { | |
27527 | { | |
27528 | arg5 = &temp5; | |
27529 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27530 | } | |
27531 | } | |
8edf1c75 RD |
27532 | if (obj5) { |
27533 | { | |
27534 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
27535 | if (PyErr_Occurred()) SWIG_fail; | |
27536 | } | |
27537 | } | |
d14a1e28 RD |
27538 | { |
27539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27540 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
27541 | ||
27542 | wxPyEndAllowThreads(__tstate); | |
27543 | if (PyErr_Occurred()) SWIG_fail; | |
27544 | } | |
4e760a36 | 27545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27546 | return resultobj; |
27547 | fail: | |
27548 | return NULL; | |
27549 | } | |
27550 | ||
27551 | ||
27552 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27553 | PyObject *resultobj; | |
27554 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
27555 | wxString *arg2 = 0 ; | |
27556 | int arg3 ; | |
423f194a | 27557 | bool temp2 = False ; |
d14a1e28 RD |
27558 | PyObject * obj0 = 0 ; |
27559 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27560 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27561 | char *kwnames[] = { |
27562 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
27563 | }; | |
27564 | ||
8edf1c75 | 27565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
27566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
27567 | { | |
27568 | arg2 = wxString_in_helper(obj1); | |
27569 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27570 | temp2 = True; |
d14a1e28 | 27571 | } |
8edf1c75 RD |
27572 | { |
27573 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27574 | if (PyErr_Occurred()) SWIG_fail; | |
27575 | } | |
d14a1e28 RD |
27576 | { |
27577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27578 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
27579 | ||
27580 | wxPyEndAllowThreads(__tstate); | |
27581 | if (PyErr_Occurred()) SWIG_fail; | |
27582 | } | |
27583 | Py_INCREF(Py_None); resultobj = Py_None; | |
27584 | { | |
27585 | if (temp2) | |
27586 | delete arg2; | |
27587 | } | |
27588 | return resultobj; | |
27589 | fail: | |
27590 | { | |
27591 | if (temp2) | |
27592 | delete arg2; | |
27593 | } | |
27594 | return NULL; | |
27595 | } | |
27596 | ||
27597 | ||
27598 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
27599 | PyObject *obj; | |
27600 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27601 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
27602 | Py_INCREF(obj); | |
27603 | return Py_BuildValue((char *)""); | |
27604 | } | |
27605 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27606 | PyObject *resultobj; | |
27607 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 27608 | int arg2 ; |
d14a1e28 RD |
27609 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27610 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27611 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27612 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27613 | long arg5 = (long) 0 ; | |
27614 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
27615 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
27616 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
27617 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27618 | wxPyControl *result; | |
27619 | wxPoint temp3 ; | |
27620 | wxSize temp4 ; | |
423f194a | 27621 | bool temp7 = False ; |
d14a1e28 | 27622 | PyObject * obj0 = 0 ; |
8edf1c75 | 27623 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27624 | PyObject * obj2 = 0 ; |
27625 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27626 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
27627 | PyObject * obj5 = 0 ; |
27628 | PyObject * obj6 = 0 ; | |
27629 | char *kwnames[] = { | |
27630 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
27631 | }; | |
27632 | ||
8edf1c75 | 27633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 27634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27635 | { |
27636 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
27637 | if (PyErr_Occurred()) SWIG_fail; | |
27638 | } | |
d14a1e28 RD |
27639 | if (obj2) { |
27640 | { | |
27641 | arg3 = &temp3; | |
27642 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27643 | } | |
27644 | } | |
27645 | if (obj3) { | |
27646 | { | |
27647 | arg4 = &temp4; | |
27648 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27649 | } | |
27650 | } | |
8edf1c75 RD |
27651 | if (obj4) { |
27652 | { | |
27653 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
27654 | if (PyErr_Occurred()) SWIG_fail; | |
27655 | } | |
27656 | } | |
d14a1e28 RD |
27657 | if (obj5) { |
27658 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27659 | if (arg6 == NULL) { | |
27660 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
27661 | } | |
27662 | } | |
27663 | if (obj6) { | |
27664 | { | |
27665 | arg7 = wxString_in_helper(obj6); | |
27666 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 27667 | temp7 = True; |
d14a1e28 RD |
27668 | } |
27669 | } | |
27670 | { | |
27671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27672 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
27673 | ||
27674 | wxPyEndAllowThreads(__tstate); | |
27675 | if (PyErr_Occurred()) SWIG_fail; | |
27676 | } | |
27677 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControl, 1); | |
27678 | { | |
27679 | if (temp7) | |
27680 | delete arg7; | |
27681 | } | |
27682 | return resultobj; | |
27683 | fail: | |
27684 | { | |
27685 | if (temp7) | |
27686 | delete arg7; | |
27687 | } | |
27688 | return NULL; | |
27689 | } | |
27690 | ||
27691 | ||
27692 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27693 | PyObject *resultobj; | |
27694 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27695 | PyObject *arg2 = (PyObject *) 0 ; | |
27696 | PyObject *arg3 = (PyObject *) 0 ; | |
27697 | PyObject * obj0 = 0 ; | |
27698 | PyObject * obj1 = 0 ; | |
27699 | PyObject * obj2 = 0 ; | |
27700 | char *kwnames[] = { | |
27701 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27702 | }; | |
27703 | ||
27704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27706 | arg2 = obj1; | |
27707 | arg3 = obj2; | |
27708 | { | |
27709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27710 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27711 | ||
27712 | wxPyEndAllowThreads(__tstate); | |
27713 | if (PyErr_Occurred()) SWIG_fail; | |
27714 | } | |
27715 | Py_INCREF(Py_None); resultobj = Py_None; | |
27716 | return resultobj; | |
27717 | fail: | |
27718 | return NULL; | |
27719 | } | |
27720 | ||
27721 | ||
27722 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27723 | PyObject *resultobj; | |
27724 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27725 | int arg2 ; | |
27726 | int arg3 ; | |
27727 | int arg4 ; | |
27728 | int arg5 ; | |
27729 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27730 | PyObject * obj1 = 0 ; |
27731 | PyObject * obj2 = 0 ; | |
27732 | PyObject * obj3 = 0 ; | |
27733 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27734 | char *kwnames[] = { |
27735 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
27736 | }; | |
27737 | ||
8edf1c75 | 27738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27740 | { |
27741 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27742 | if (PyErr_Occurred()) SWIG_fail; | |
27743 | } | |
27744 | { | |
27745 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27746 | if (PyErr_Occurred()) SWIG_fail; | |
27747 | } | |
27748 | { | |
27749 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
27750 | if (PyErr_Occurred()) SWIG_fail; | |
27751 | } | |
27752 | { | |
27753 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
27754 | if (PyErr_Occurred()) SWIG_fail; | |
27755 | } | |
d14a1e28 RD |
27756 | { |
27757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27758 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
27759 | ||
27760 | wxPyEndAllowThreads(__tstate); | |
27761 | if (PyErr_Occurred()) SWIG_fail; | |
27762 | } | |
27763 | Py_INCREF(Py_None); resultobj = Py_None; | |
27764 | return resultobj; | |
27765 | fail: | |
27766 | return NULL; | |
27767 | } | |
27768 | ||
27769 | ||
27770 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27771 | PyObject *resultobj; | |
27772 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27773 | int arg2 ; | |
27774 | int arg3 ; | |
27775 | int arg4 ; | |
27776 | int arg5 ; | |
27777 | int arg6 = (int) wxSIZE_AUTO ; | |
27778 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27779 | PyObject * obj1 = 0 ; |
27780 | PyObject * obj2 = 0 ; | |
27781 | PyObject * obj3 = 0 ; | |
27782 | PyObject * obj4 = 0 ; | |
27783 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
27784 | char *kwnames[] = { |
27785 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
27786 | }; | |
27787 | ||
8edf1c75 | 27788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 27789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27790 | { |
27791 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27792 | if (PyErr_Occurred()) SWIG_fail; | |
27793 | } | |
27794 | { | |
27795 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27796 | if (PyErr_Occurred()) SWIG_fail; | |
27797 | } | |
27798 | { | |
27799 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
27800 | if (PyErr_Occurred()) SWIG_fail; | |
27801 | } | |
27802 | { | |
27803 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
27804 | if (PyErr_Occurred()) SWIG_fail; | |
27805 | } | |
27806 | if (obj5) { | |
27807 | { | |
27808 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
27809 | if (PyErr_Occurred()) SWIG_fail; | |
27810 | } | |
27811 | } | |
d14a1e28 RD |
27812 | { |
27813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27814 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
27815 | ||
27816 | wxPyEndAllowThreads(__tstate); | |
27817 | if (PyErr_Occurred()) SWIG_fail; | |
27818 | } | |
27819 | Py_INCREF(Py_None); resultobj = Py_None; | |
27820 | return resultobj; | |
27821 | fail: | |
27822 | return NULL; | |
27823 | } | |
27824 | ||
27825 | ||
27826 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27827 | PyObject *resultobj; | |
27828 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27829 | int arg2 ; | |
27830 | int arg3 ; | |
27831 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27832 | PyObject * obj1 = 0 ; |
27833 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27834 | char *kwnames[] = { |
27835 | (char *) "self",(char *) "width",(char *) "height", NULL | |
27836 | }; | |
27837 | ||
8edf1c75 | 27838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 27839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27840 | { |
27841 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27842 | if (PyErr_Occurred()) SWIG_fail; | |
27843 | } | |
27844 | { | |
27845 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27846 | if (PyErr_Occurred()) SWIG_fail; | |
27847 | } | |
d14a1e28 RD |
27848 | { |
27849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27850 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
27851 | ||
27852 | wxPyEndAllowThreads(__tstate); | |
27853 | if (PyErr_Occurred()) SWIG_fail; | |
27854 | } | |
27855 | Py_INCREF(Py_None); resultobj = Py_None; | |
27856 | return resultobj; | |
27857 | fail: | |
27858 | return NULL; | |
27859 | } | |
27860 | ||
27861 | ||
27862 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27863 | PyObject *resultobj; | |
27864 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27865 | int arg2 ; | |
27866 | int arg3 ; | |
27867 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27868 | PyObject * obj1 = 0 ; |
27869 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27870 | char *kwnames[] = { |
27871 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27872 | }; | |
27873 | ||
8edf1c75 | 27874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 27875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27876 | { |
27877 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27878 | if (PyErr_Occurred()) SWIG_fail; | |
27879 | } | |
27880 | { | |
27881 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27882 | if (PyErr_Occurred()) SWIG_fail; | |
27883 | } | |
d14a1e28 RD |
27884 | { |
27885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27886 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
27887 | ||
27888 | wxPyEndAllowThreads(__tstate); | |
27889 | if (PyErr_Occurred()) SWIG_fail; | |
27890 | } | |
27891 | Py_INCREF(Py_None); resultobj = Py_None; | |
27892 | return resultobj; | |
27893 | fail: | |
27894 | return NULL; | |
27895 | } | |
27896 | ||
27897 | ||
27898 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27899 | PyObject *resultobj; | |
27900 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27901 | int *arg2 = (int *) 0 ; | |
27902 | int *arg3 = (int *) 0 ; | |
27903 | int temp2 ; | |
27904 | int temp3 ; | |
27905 | PyObject * obj0 = 0 ; | |
27906 | char *kwnames[] = { | |
27907 | (char *) "self", NULL | |
27908 | }; | |
27909 | ||
27910 | arg2 = &temp2; | |
27911 | arg3 = &temp3; | |
27912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
27913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27914 | { | |
27915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27916 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
27917 | ||
27918 | wxPyEndAllowThreads(__tstate); | |
27919 | if (PyErr_Occurred()) SWIG_fail; | |
27920 | } | |
27921 | Py_INCREF(Py_None); resultobj = Py_None; | |
27922 | { | |
27923 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27924 | resultobj = t_output_helper(resultobj,o); | |
27925 | } | |
27926 | { | |
27927 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27928 | resultobj = t_output_helper(resultobj,o); | |
27929 | } | |
27930 | return resultobj; | |
27931 | fail: | |
27932 | return NULL; | |
27933 | } | |
27934 | ||
27935 | ||
27936 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27937 | PyObject *resultobj; | |
27938 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27939 | int *arg2 = (int *) 0 ; | |
27940 | int *arg3 = (int *) 0 ; | |
27941 | int temp2 ; | |
27942 | int temp3 ; | |
27943 | PyObject * obj0 = 0 ; | |
27944 | char *kwnames[] = { | |
27945 | (char *) "self", NULL | |
27946 | }; | |
27947 | ||
27948 | arg2 = &temp2; | |
27949 | arg3 = &temp3; | |
27950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
27951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27952 | { | |
27953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27954 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
27955 | ||
27956 | wxPyEndAllowThreads(__tstate); | |
27957 | if (PyErr_Occurred()) SWIG_fail; | |
27958 | } | |
27959 | Py_INCREF(Py_None); resultobj = Py_None; | |
27960 | { | |
27961 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27962 | resultobj = t_output_helper(resultobj,o); | |
27963 | } | |
27964 | { | |
27965 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27966 | resultobj = t_output_helper(resultobj,o); | |
27967 | } | |
27968 | return resultobj; | |
27969 | fail: | |
27970 | return NULL; | |
27971 | } | |
27972 | ||
27973 | ||
27974 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27975 | PyObject *resultobj; | |
27976 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27977 | int *arg2 = (int *) 0 ; | |
27978 | int *arg3 = (int *) 0 ; | |
27979 | int temp2 ; | |
27980 | int temp3 ; | |
27981 | PyObject * obj0 = 0 ; | |
27982 | char *kwnames[] = { | |
27983 | (char *) "self", NULL | |
27984 | }; | |
27985 | ||
27986 | arg2 = &temp2; | |
27987 | arg3 = &temp3; | |
27988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
27989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27990 | { | |
27991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27992 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
27993 | ||
27994 | wxPyEndAllowThreads(__tstate); | |
27995 | if (PyErr_Occurred()) SWIG_fail; | |
27996 | } | |
27997 | Py_INCREF(Py_None); resultobj = Py_None; | |
27998 | { | |
27999 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28000 | resultobj = t_output_helper(resultobj,o); | |
28001 | } | |
28002 | { | |
28003 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28004 | resultobj = t_output_helper(resultobj,o); | |
28005 | } | |
28006 | return resultobj; | |
28007 | fail: | |
28008 | return NULL; | |
28009 | } | |
28010 | ||
28011 | ||
28012 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28013 | PyObject *resultobj; | |
28014 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28015 | wxSize result; | |
28016 | PyObject * obj0 = 0 ; | |
28017 | char *kwnames[] = { | |
28018 | (char *) "self", NULL | |
28019 | }; | |
28020 | ||
28021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
28022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28023 | { | |
28024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28025 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
28026 | ||
28027 | wxPyEndAllowThreads(__tstate); | |
28028 | if (PyErr_Occurred()) SWIG_fail; | |
28029 | } | |
28030 | { | |
28031 | wxSize * resultptr; | |
28032 | resultptr = new wxSize((wxSize &) result); | |
28033 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
28034 | } | |
28035 | return resultobj; | |
28036 | fail: | |
28037 | return NULL; | |
28038 | } | |
28039 | ||
28040 | ||
28041 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28042 | PyObject *resultobj; | |
28043 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28044 | wxSize result; | |
28045 | PyObject * obj0 = 0 ; | |
28046 | char *kwnames[] = { | |
28047 | (char *) "self", NULL | |
28048 | }; | |
28049 | ||
28050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
28051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28052 | { | |
28053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28054 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
28055 | ||
28056 | wxPyEndAllowThreads(__tstate); | |
28057 | if (PyErr_Occurred()) SWIG_fail; | |
28058 | } | |
28059 | { | |
28060 | wxSize * resultptr; | |
28061 | resultptr = new wxSize((wxSize &) result); | |
28062 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
28063 | } | |
28064 | return resultobj; | |
28065 | fail: | |
28066 | return NULL; | |
28067 | } | |
28068 | ||
28069 | ||
28070 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28071 | PyObject *resultobj; | |
28072 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28073 | PyObject * obj0 = 0 ; | |
28074 | char *kwnames[] = { | |
28075 | (char *) "self", NULL | |
28076 | }; | |
28077 | ||
28078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
28079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28080 | { | |
28081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28082 | (arg1)->base_InitDialog(); | |
28083 | ||
28084 | wxPyEndAllowThreads(__tstate); | |
28085 | if (PyErr_Occurred()) SWIG_fail; | |
28086 | } | |
28087 | Py_INCREF(Py_None); resultobj = Py_None; | |
28088 | return resultobj; | |
28089 | fail: | |
28090 | return NULL; | |
28091 | } | |
28092 | ||
28093 | ||
28094 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28095 | PyObject *resultobj; | |
28096 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28097 | bool result; | |
28098 | PyObject * obj0 = 0 ; | |
28099 | char *kwnames[] = { | |
28100 | (char *) "self", NULL | |
28101 | }; | |
28102 | ||
28103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
28104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28105 | { | |
28106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28107 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
28108 | ||
28109 | wxPyEndAllowThreads(__tstate); | |
28110 | if (PyErr_Occurred()) SWIG_fail; | |
28111 | } | |
4e760a36 | 28112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28113 | return resultobj; |
28114 | fail: | |
28115 | return NULL; | |
28116 | } | |
28117 | ||
28118 | ||
28119 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28120 | PyObject *resultobj; | |
28121 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28122 | bool result; | |
28123 | PyObject * obj0 = 0 ; | |
28124 | char *kwnames[] = { | |
28125 | (char *) "self", NULL | |
28126 | }; | |
28127 | ||
28128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
28129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28130 | { | |
28131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28132 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
28133 | ||
28134 | wxPyEndAllowThreads(__tstate); | |
28135 | if (PyErr_Occurred()) SWIG_fail; | |
28136 | } | |
4e760a36 | 28137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28138 | return resultobj; |
28139 | fail: | |
28140 | return NULL; | |
28141 | } | |
28142 | ||
28143 | ||
28144 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28145 | PyObject *resultobj; | |
28146 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28147 | bool result; | |
28148 | PyObject * obj0 = 0 ; | |
28149 | char *kwnames[] = { | |
28150 | (char *) "self", NULL | |
28151 | }; | |
28152 | ||
28153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
28154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28155 | { | |
28156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28157 | result = (bool)(arg1)->base_Validate(); | |
28158 | ||
28159 | wxPyEndAllowThreads(__tstate); | |
28160 | if (PyErr_Occurred()) SWIG_fail; | |
28161 | } | |
4e760a36 | 28162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28163 | return resultobj; |
28164 | fail: | |
28165 | return NULL; | |
28166 | } | |
28167 | ||
28168 | ||
28169 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28170 | PyObject *resultobj; | |
28171 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28172 | bool result; | |
28173 | PyObject * obj0 = 0 ; | |
28174 | char *kwnames[] = { | |
28175 | (char *) "self", NULL | |
28176 | }; | |
28177 | ||
28178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
28179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28180 | { | |
28181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28182 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
28183 | ||
28184 | wxPyEndAllowThreads(__tstate); | |
28185 | if (PyErr_Occurred()) SWIG_fail; | |
28186 | } | |
4e760a36 | 28187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28188 | return resultobj; |
28189 | fail: | |
28190 | return NULL; | |
28191 | } | |
28192 | ||
28193 | ||
28194 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28195 | PyObject *resultobj; | |
28196 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28197 | bool result; | |
28198 | PyObject * obj0 = 0 ; | |
28199 | char *kwnames[] = { | |
28200 | (char *) "self", NULL | |
28201 | }; | |
28202 | ||
28203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
28204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28205 | { | |
28206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28207 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
28208 | ||
28209 | wxPyEndAllowThreads(__tstate); | |
28210 | if (PyErr_Occurred()) SWIG_fail; | |
28211 | } | |
4e760a36 | 28212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28213 | return resultobj; |
28214 | fail: | |
28215 | return NULL; | |
28216 | } | |
28217 | ||
28218 | ||
28219 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28220 | PyObject *resultobj; | |
28221 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28222 | wxSize result; | |
28223 | PyObject * obj0 = 0 ; | |
28224 | char *kwnames[] = { | |
28225 | (char *) "self", NULL | |
28226 | }; | |
28227 | ||
28228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
28229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28230 | { | |
28231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28232 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
28233 | ||
28234 | wxPyEndAllowThreads(__tstate); | |
28235 | if (PyErr_Occurred()) SWIG_fail; | |
28236 | } | |
28237 | { | |
28238 | wxSize * resultptr; | |
28239 | resultptr = new wxSize((wxSize &) result); | |
28240 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
28241 | } | |
28242 | return resultobj; | |
28243 | fail: | |
28244 | return NULL; | |
28245 | } | |
28246 | ||
28247 | ||
28248 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28249 | PyObject *resultobj; | |
28250 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28251 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28252 | PyObject * obj0 = 0 ; | |
28253 | PyObject * obj1 = 0 ; | |
28254 | char *kwnames[] = { | |
28255 | (char *) "self",(char *) "child", NULL | |
28256 | }; | |
28257 | ||
28258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
28259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28260 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28261 | { | |
28262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28263 | (arg1)->base_AddChild(arg2); | |
28264 | ||
28265 | wxPyEndAllowThreads(__tstate); | |
28266 | if (PyErr_Occurred()) SWIG_fail; | |
28267 | } | |
28268 | Py_INCREF(Py_None); resultobj = Py_None; | |
28269 | return resultobj; | |
28270 | fail: | |
28271 | return NULL; | |
28272 | } | |
28273 | ||
28274 | ||
28275 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28276 | PyObject *resultobj; | |
28277 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28278 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28279 | PyObject * obj0 = 0 ; | |
28280 | PyObject * obj1 = 0 ; | |
28281 | char *kwnames[] = { | |
28282 | (char *) "self",(char *) "child", NULL | |
28283 | }; | |
28284 | ||
28285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
28286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28287 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28288 | { | |
28289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28290 | (arg1)->base_RemoveChild(arg2); | |
28291 | ||
28292 | wxPyEndAllowThreads(__tstate); | |
28293 | if (PyErr_Occurred()) SWIG_fail; | |
28294 | } | |
28295 | Py_INCREF(Py_None); resultobj = Py_None; | |
28296 | return resultobj; | |
28297 | fail: | |
28298 | return NULL; | |
28299 | } | |
28300 | ||
28301 | ||
28302 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
28303 | PyObject *obj; | |
28304 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28305 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
28306 | Py_INCREF(obj); | |
28307 | return Py_BuildValue((char *)""); | |
28308 | } | |
28309 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28310 | PyObject *resultobj; | |
28311 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 28312 | int arg2 = (int) 0 ; |
d14a1e28 RD |
28313 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28314 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28315 | wxHelpEvent *result; | |
28316 | wxPoint temp3 ; | |
8edf1c75 RD |
28317 | PyObject * obj0 = 0 ; |
28318 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
28319 | PyObject * obj2 = 0 ; |
28320 | char *kwnames[] = { | |
28321 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
28322 | }; | |
28323 | ||
8edf1c75 RD |
28324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
28325 | if (obj0) { | |
28326 | { | |
28327 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
28328 | if (PyErr_Occurred()) SWIG_fail; | |
28329 | } | |
28330 | } | |
28331 | if (obj1) { | |
28332 | { | |
28333 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28334 | if (PyErr_Occurred()) SWIG_fail; | |
28335 | } | |
28336 | } | |
d14a1e28 RD |
28337 | if (obj2) { |
28338 | { | |
28339 | arg3 = &temp3; | |
28340 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28341 | } | |
28342 | } | |
28343 | { | |
28344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28345 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
28346 | ||
28347 | wxPyEndAllowThreads(__tstate); | |
28348 | if (PyErr_Occurred()) SWIG_fail; | |
28349 | } | |
28350 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpEvent, 1); | |
28351 | return resultobj; | |
28352 | fail: | |
28353 | return NULL; | |
28354 | } | |
28355 | ||
28356 | ||
28357 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28358 | PyObject *resultobj; | |
28359 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28360 | wxPoint *result; | |
28361 | PyObject * obj0 = 0 ; | |
28362 | char *kwnames[] = { | |
28363 | (char *) "self", NULL | |
28364 | }; | |
28365 | ||
28366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
28367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28368 | { | |
28369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28370 | { | |
28371 | wxPoint const &_result_ref = ((wxHelpEvent const *)arg1)->GetPosition(); | |
28372 | result = (wxPoint *) &_result_ref; | |
28373 | } | |
28374 | ||
28375 | wxPyEndAllowThreads(__tstate); | |
28376 | if (PyErr_Occurred()) SWIG_fail; | |
28377 | } | |
28378 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
28379 | return resultobj; | |
28380 | fail: | |
28381 | return NULL; | |
28382 | } | |
28383 | ||
28384 | ||
28385 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28386 | PyObject *resultobj; | |
28387 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28388 | wxPoint *arg2 = 0 ; | |
28389 | wxPoint temp2 ; | |
28390 | PyObject * obj0 = 0 ; | |
28391 | PyObject * obj1 = 0 ; | |
28392 | char *kwnames[] = { | |
28393 | (char *) "self",(char *) "pos", NULL | |
28394 | }; | |
28395 | ||
28396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
28397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28398 | { | |
28399 | arg2 = &temp2; | |
28400 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28401 | } | |
28402 | { | |
28403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28404 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
28405 | ||
28406 | wxPyEndAllowThreads(__tstate); | |
28407 | if (PyErr_Occurred()) SWIG_fail; | |
28408 | } | |
28409 | Py_INCREF(Py_None); resultobj = Py_None; | |
28410 | return resultobj; | |
28411 | fail: | |
28412 | return NULL; | |
28413 | } | |
28414 | ||
28415 | ||
28416 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28417 | PyObject *resultobj; | |
28418 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28419 | wxString *result; | |
28420 | PyObject * obj0 = 0 ; | |
28421 | char *kwnames[] = { | |
28422 | (char *) "self", NULL | |
28423 | }; | |
28424 | ||
28425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
28426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28427 | { | |
28428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28429 | { | |
28430 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
28431 | result = (wxString *) &_result_ref; | |
28432 | } | |
28433 | ||
28434 | wxPyEndAllowThreads(__tstate); | |
28435 | if (PyErr_Occurred()) SWIG_fail; | |
28436 | } | |
f0983263 RD |
28437 | { |
28438 | #if wxUSE_UNICODE | |
28439 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28440 | #else | |
28441 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28442 | #endif | |
28443 | } | |
d14a1e28 RD |
28444 | return resultobj; |
28445 | fail: | |
28446 | return NULL; | |
28447 | } | |
28448 | ||
28449 | ||
28450 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28451 | PyObject *resultobj; | |
28452 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28453 | wxString *arg2 = 0 ; | |
423f194a | 28454 | bool temp2 = False ; |
d14a1e28 RD |
28455 | PyObject * obj0 = 0 ; |
28456 | PyObject * obj1 = 0 ; | |
28457 | char *kwnames[] = { | |
28458 | (char *) "self",(char *) "link", NULL | |
28459 | }; | |
28460 | ||
28461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
28462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28463 | { | |
28464 | arg2 = wxString_in_helper(obj1); | |
28465 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28466 | temp2 = True; |
d14a1e28 RD |
28467 | } |
28468 | { | |
28469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28470 | (arg1)->SetLink((wxString const &)*arg2); | |
28471 | ||
28472 | wxPyEndAllowThreads(__tstate); | |
28473 | if (PyErr_Occurred()) SWIG_fail; | |
28474 | } | |
28475 | Py_INCREF(Py_None); resultobj = Py_None; | |
28476 | { | |
28477 | if (temp2) | |
28478 | delete arg2; | |
28479 | } | |
28480 | return resultobj; | |
28481 | fail: | |
28482 | { | |
28483 | if (temp2) | |
28484 | delete arg2; | |
28485 | } | |
28486 | return NULL; | |
28487 | } | |
28488 | ||
28489 | ||
28490 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28491 | PyObject *resultobj; | |
28492 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28493 | wxString *result; | |
28494 | PyObject * obj0 = 0 ; | |
28495 | char *kwnames[] = { | |
28496 | (char *) "self", NULL | |
28497 | }; | |
28498 | ||
28499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
28500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28501 | { | |
28502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28503 | { | |
28504 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
28505 | result = (wxString *) &_result_ref; | |
28506 | } | |
28507 | ||
28508 | wxPyEndAllowThreads(__tstate); | |
28509 | if (PyErr_Occurred()) SWIG_fail; | |
28510 | } | |
f0983263 RD |
28511 | { |
28512 | #if wxUSE_UNICODE | |
28513 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28514 | #else | |
28515 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28516 | #endif | |
28517 | } | |
d14a1e28 RD |
28518 | return resultobj; |
28519 | fail: | |
28520 | return NULL; | |
28521 | } | |
28522 | ||
28523 | ||
28524 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28525 | PyObject *resultobj; | |
28526 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28527 | wxString *arg2 = 0 ; | |
423f194a | 28528 | bool temp2 = False ; |
d14a1e28 RD |
28529 | PyObject * obj0 = 0 ; |
28530 | PyObject * obj1 = 0 ; | |
28531 | char *kwnames[] = { | |
28532 | (char *) "self",(char *) "target", NULL | |
28533 | }; | |
28534 | ||
28535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
28536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28537 | { | |
28538 | arg2 = wxString_in_helper(obj1); | |
28539 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28540 | temp2 = True; |
d14a1e28 RD |
28541 | } |
28542 | { | |
28543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28544 | (arg1)->SetTarget((wxString const &)*arg2); | |
28545 | ||
28546 | wxPyEndAllowThreads(__tstate); | |
28547 | if (PyErr_Occurred()) SWIG_fail; | |
28548 | } | |
28549 | Py_INCREF(Py_None); resultobj = Py_None; | |
28550 | { | |
28551 | if (temp2) | |
28552 | delete arg2; | |
28553 | } | |
28554 | return resultobj; | |
28555 | fail: | |
28556 | { | |
28557 | if (temp2) | |
28558 | delete arg2; | |
28559 | } | |
28560 | return NULL; | |
28561 | } | |
28562 | ||
28563 | ||
28564 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
28565 | PyObject *obj; | |
28566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28567 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
28568 | Py_INCREF(obj); | |
28569 | return Py_BuildValue((char *)""); | |
28570 | } | |
28571 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28572 | PyObject *resultobj; | |
28573 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 28574 | bool arg2 = (bool) True ; |
d14a1e28 RD |
28575 | wxContextHelp *result; |
28576 | PyObject * obj0 = 0 ; | |
28577 | PyObject * obj1 = 0 ; | |
28578 | char *kwnames[] = { | |
28579 | (char *) "window",(char *) "doNow", NULL | |
28580 | }; | |
28581 | ||
28582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
28583 | if (obj0) { | |
28584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28585 | } | |
28586 | if (obj1) { | |
83448d71 | 28587 | { |
8edf1c75 | 28588 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
28589 | if (PyErr_Occurred()) SWIG_fail; |
28590 | } | |
d14a1e28 RD |
28591 | } |
28592 | { | |
28593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28594 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
28595 | ||
28596 | wxPyEndAllowThreads(__tstate); | |
28597 | if (PyErr_Occurred()) SWIG_fail; | |
28598 | } | |
28599 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelp, 1); | |
28600 | return resultobj; | |
28601 | fail: | |
28602 | return NULL; | |
28603 | } | |
28604 | ||
28605 | ||
28606 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28607 | PyObject *resultobj; | |
28608 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28609 | PyObject * obj0 = 0 ; | |
28610 | char *kwnames[] = { | |
28611 | (char *) "self", NULL | |
28612 | }; | |
28613 | ||
28614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
28615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28616 | { | |
28617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28618 | delete arg1; | |
28619 | ||
28620 | wxPyEndAllowThreads(__tstate); | |
28621 | if (PyErr_Occurred()) SWIG_fail; | |
28622 | } | |
28623 | Py_INCREF(Py_None); resultobj = Py_None; | |
28624 | return resultobj; | |
28625 | fail: | |
28626 | return NULL; | |
28627 | } | |
28628 | ||
28629 | ||
28630 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28631 | PyObject *resultobj; | |
28632 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28633 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28634 | bool result; | |
28635 | PyObject * obj0 = 0 ; | |
28636 | PyObject * obj1 = 0 ; | |
28637 | char *kwnames[] = { | |
28638 | (char *) "self",(char *) "window", NULL | |
28639 | }; | |
28640 | ||
28641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
28642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28643 | if (obj1) { | |
28644 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28645 | } | |
28646 | { | |
28647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28648 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
28649 | ||
28650 | wxPyEndAllowThreads(__tstate); | |
28651 | if (PyErr_Occurred()) SWIG_fail; | |
28652 | } | |
4e760a36 | 28653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28654 | return resultobj; |
28655 | fail: | |
28656 | return NULL; | |
28657 | } | |
28658 | ||
28659 | ||
28660 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28661 | PyObject *resultobj; | |
28662 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28663 | bool result; | |
28664 | PyObject * obj0 = 0 ; | |
28665 | char *kwnames[] = { | |
28666 | (char *) "self", NULL | |
28667 | }; | |
28668 | ||
28669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
28670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28671 | { | |
28672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28673 | result = (bool)(arg1)->EndContextHelp(); | |
28674 | ||
28675 | wxPyEndAllowThreads(__tstate); | |
28676 | if (PyErr_Occurred()) SWIG_fail; | |
28677 | } | |
4e760a36 | 28678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28679 | return resultobj; |
28680 | fail: | |
28681 | return NULL; | |
28682 | } | |
28683 | ||
28684 | ||
28685 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
28686 | PyObject *obj; | |
28687 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28688 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
28689 | Py_INCREF(obj); | |
28690 | return Py_BuildValue((char *)""); | |
28691 | } | |
28692 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28693 | PyObject *resultobj; | |
28694 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 28695 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
28696 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28697 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28698 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28699 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28700 | long arg5 = (long) wxBU_AUTODRAW ; | |
28701 | wxContextHelpButton *result; | |
28702 | wxPoint temp3 ; | |
28703 | wxSize temp4 ; | |
28704 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28705 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28706 | PyObject * obj2 = 0 ; |
28707 | PyObject * obj3 = 0 ; | |
8edf1c75 | 28708 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28709 | char *kwnames[] = { |
28710 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28711 | }; | |
28712 | ||
8edf1c75 | 28713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 28714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28715 | if (obj1) { |
28716 | { | |
28717 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28718 | if (PyErr_Occurred()) SWIG_fail; | |
28719 | } | |
28720 | } | |
d14a1e28 RD |
28721 | if (obj2) { |
28722 | { | |
28723 | arg3 = &temp3; | |
28724 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28725 | } | |
28726 | } | |
28727 | if (obj3) { | |
28728 | { | |
28729 | arg4 = &temp4; | |
28730 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28731 | } | |
28732 | } | |
8edf1c75 RD |
28733 | if (obj4) { |
28734 | { | |
28735 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
28736 | if (PyErr_Occurred()) SWIG_fail; | |
28737 | } | |
28738 | } | |
d14a1e28 RD |
28739 | { |
28740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28741 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28742 | ||
28743 | wxPyEndAllowThreads(__tstate); | |
28744 | if (PyErr_Occurred()) SWIG_fail; | |
28745 | } | |
28746 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelpButton, 1); | |
28747 | return resultobj; | |
28748 | fail: | |
28749 | return NULL; | |
28750 | } | |
28751 | ||
28752 | ||
28753 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
28754 | PyObject *obj; | |
28755 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28756 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
28757 | Py_INCREF(obj); | |
28758 | return Py_BuildValue((char *)""); | |
28759 | } | |
28760 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28761 | PyObject *resultobj; | |
28762 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28763 | wxHelpProvider *result; | |
28764 | PyObject * obj0 = 0 ; | |
28765 | char *kwnames[] = { | |
28766 | (char *) "helpProvider", NULL | |
28767 | }; | |
28768 | ||
28769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
28770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28771 | { | |
28772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28773 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
28774 | ||
28775 | wxPyEndAllowThreads(__tstate); | |
28776 | if (PyErr_Occurred()) SWIG_fail; | |
28777 | } | |
28778 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
28779 | return resultobj; | |
28780 | fail: | |
28781 | return NULL; | |
28782 | } | |
28783 | ||
28784 | ||
28785 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28786 | PyObject *resultobj; | |
28787 | wxHelpProvider *result; | |
28788 | char *kwnames[] = { | |
28789 | NULL | |
28790 | }; | |
28791 | ||
28792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
28793 | { | |
28794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28795 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
28796 | ||
28797 | wxPyEndAllowThreads(__tstate); | |
28798 | if (PyErr_Occurred()) SWIG_fail; | |
28799 | } | |
28800 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
28801 | return resultobj; | |
28802 | fail: | |
28803 | return NULL; | |
28804 | } | |
28805 | ||
28806 | ||
28807 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28808 | PyObject *resultobj; | |
28809 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28810 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28811 | wxString result; | |
28812 | PyObject * obj0 = 0 ; | |
28813 | PyObject * obj1 = 0 ; | |
28814 | char *kwnames[] = { | |
28815 | (char *) "self",(char *) "window", NULL | |
28816 | }; | |
28817 | ||
28818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
28819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28820 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28821 | { | |
28822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28823 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
28824 | ||
28825 | wxPyEndAllowThreads(__tstate); | |
28826 | if (PyErr_Occurred()) SWIG_fail; | |
28827 | } | |
28828 | { | |
28829 | #if wxUSE_UNICODE | |
28830 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28831 | #else | |
28832 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28833 | #endif | |
28834 | } | |
28835 | return resultobj; | |
28836 | fail: | |
28837 | return NULL; | |
28838 | } | |
28839 | ||
28840 | ||
28841 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28842 | PyObject *resultobj; | |
28843 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28844 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28845 | bool result; | |
28846 | PyObject * obj0 = 0 ; | |
28847 | PyObject * obj1 = 0 ; | |
28848 | char *kwnames[] = { | |
28849 | (char *) "self",(char *) "window", NULL | |
28850 | }; | |
28851 | ||
28852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
28853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28854 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28855 | { | |
28856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28857 | result = (bool)(arg1)->ShowHelp(arg2); | |
28858 | ||
28859 | wxPyEndAllowThreads(__tstate); | |
28860 | if (PyErr_Occurred()) SWIG_fail; | |
28861 | } | |
4e760a36 | 28862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28863 | return resultobj; |
28864 | fail: | |
28865 | return NULL; | |
28866 | } | |
28867 | ||
28868 | ||
28869 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28870 | PyObject *resultobj; | |
28871 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28872 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28873 | wxString *arg3 = 0 ; | |
423f194a | 28874 | bool temp3 = False ; |
d14a1e28 RD |
28875 | PyObject * obj0 = 0 ; |
28876 | PyObject * obj1 = 0 ; | |
28877 | PyObject * obj2 = 0 ; | |
28878 | char *kwnames[] = { | |
28879 | (char *) "self",(char *) "window",(char *) "text", NULL | |
28880 | }; | |
28881 | ||
28882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28884 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28885 | { | |
28886 | arg3 = wxString_in_helper(obj2); | |
28887 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28888 | temp3 = True; |
d14a1e28 RD |
28889 | } |
28890 | { | |
28891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28892 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28893 | ||
28894 | wxPyEndAllowThreads(__tstate); | |
28895 | if (PyErr_Occurred()) SWIG_fail; | |
28896 | } | |
28897 | Py_INCREF(Py_None); resultobj = Py_None; | |
28898 | { | |
28899 | if (temp3) | |
28900 | delete arg3; | |
28901 | } | |
28902 | return resultobj; | |
28903 | fail: | |
28904 | { | |
28905 | if (temp3) | |
28906 | delete arg3; | |
28907 | } | |
28908 | return NULL; | |
28909 | } | |
28910 | ||
28911 | ||
28912 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28913 | PyObject *resultobj; | |
28914 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
423f194a | 28915 | int arg2 ; |
d14a1e28 | 28916 | wxString *arg3 = 0 ; |
423f194a | 28917 | bool temp3 = False ; |
d14a1e28 | 28918 | PyObject * obj0 = 0 ; |
8edf1c75 | 28919 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28920 | PyObject * obj2 = 0 ; |
28921 | char *kwnames[] = { | |
28922 | (char *) "self",(char *) "id",(char *) "text", NULL | |
28923 | }; | |
28924 | ||
8edf1c75 | 28925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28927 | { |
28928 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28929 | if (PyErr_Occurred()) SWIG_fail; | |
28930 | } | |
d14a1e28 RD |
28931 | { |
28932 | arg3 = wxString_in_helper(obj2); | |
28933 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28934 | temp3 = True; |
d14a1e28 RD |
28935 | } |
28936 | { | |
28937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28938 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28939 | ||
28940 | wxPyEndAllowThreads(__tstate); | |
28941 | if (PyErr_Occurred()) SWIG_fail; | |
28942 | } | |
28943 | Py_INCREF(Py_None); resultobj = Py_None; | |
28944 | { | |
28945 | if (temp3) | |
28946 | delete arg3; | |
28947 | } | |
28948 | return resultobj; | |
28949 | fail: | |
28950 | { | |
28951 | if (temp3) | |
28952 | delete arg3; | |
28953 | } | |
28954 | return NULL; | |
28955 | } | |
28956 | ||
28957 | ||
28958 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28959 | PyObject *resultobj; | |
28960 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28961 | PyObject * obj0 = 0 ; | |
28962 | char *kwnames[] = { | |
28963 | (char *) "self", NULL | |
28964 | }; | |
28965 | ||
28966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
28967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28968 | { | |
28969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28970 | wxHelpProvider_Destroy(arg1); | |
28971 | ||
28972 | wxPyEndAllowThreads(__tstate); | |
28973 | if (PyErr_Occurred()) SWIG_fail; | |
28974 | } | |
28975 | Py_INCREF(Py_None); resultobj = Py_None; | |
28976 | return resultobj; | |
28977 | fail: | |
28978 | return NULL; | |
28979 | } | |
28980 | ||
28981 | ||
28982 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
28983 | PyObject *obj; | |
28984 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28985 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
28986 | Py_INCREF(obj); | |
28987 | return Py_BuildValue((char *)""); | |
28988 | } | |
28989 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28990 | PyObject *resultobj; | |
28991 | wxSimpleHelpProvider *result; | |
28992 | char *kwnames[] = { | |
28993 | NULL | |
28994 | }; | |
28995 | ||
28996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
28997 | { | |
28998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28999 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
29000 | ||
29001 | wxPyEndAllowThreads(__tstate); | |
29002 | if (PyErr_Occurred()) SWIG_fail; | |
29003 | } | |
29004 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
29005 | return resultobj; | |
29006 | fail: | |
29007 | return NULL; | |
29008 | } | |
29009 | ||
29010 | ||
29011 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
29012 | PyObject *obj; | |
29013 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29014 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
29015 | Py_INCREF(obj); | |
29016 | return Py_BuildValue((char *)""); | |
29017 | } | |
423f194a RD |
29018 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
29019 | PyObject *resultobj; | |
29020 | wxBitmap *arg1 = 0 ; | |
29021 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29022 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29023 | wxGenericDragImage *result; | |
29024 | PyObject * obj0 = 0 ; | |
29025 | PyObject * obj1 = 0 ; | |
29026 | char *kwnames[] = { | |
29027 | (char *) "image",(char *) "cursor", NULL | |
29028 | }; | |
29029 | ||
29030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
29031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29032 | if (arg1 == NULL) { | |
29033 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29034 | } | |
29035 | if (obj1) { | |
29036 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29037 | if (arg2 == NULL) { | |
29038 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29039 | } | |
29040 | } | |
29041 | { | |
29042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29043 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
29044 | ||
29045 | wxPyEndAllowThreads(__tstate); | |
29046 | if (PyErr_Occurred()) SWIG_fail; | |
29047 | } | |
29048 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
29049 | return resultobj; | |
29050 | fail: | |
29051 | return NULL; | |
29052 | } | |
29053 | ||
29054 | ||
29055 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29056 | PyObject *resultobj; | |
29057 | wxIcon *arg1 = 0 ; | |
29058 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29059 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29060 | wxGenericDragImage *result; | |
29061 | PyObject * obj0 = 0 ; | |
29062 | PyObject * obj1 = 0 ; | |
29063 | char *kwnames[] = { | |
29064 | (char *) "image",(char *) "cursor", NULL | |
29065 | }; | |
29066 | ||
29067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
29068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29069 | if (arg1 == NULL) { | |
29070 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29071 | } | |
29072 | if (obj1) { | |
29073 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29074 | if (arg2 == NULL) { | |
29075 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29076 | } | |
29077 | } | |
29078 | { | |
29079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29080 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
29081 | ||
29082 | wxPyEndAllowThreads(__tstate); | |
29083 | if (PyErr_Occurred()) SWIG_fail; | |
29084 | } | |
29085 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
29086 | return resultobj; | |
29087 | fail: | |
29088 | return NULL; | |
29089 | } | |
29090 | ||
29091 | ||
29092 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29093 | PyObject *resultobj; | |
29094 | wxString *arg1 = 0 ; | |
29095 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29096 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29097 | wxGenericDragImage *result; | |
29098 | bool temp1 = False ; | |
29099 | PyObject * obj0 = 0 ; | |
29100 | PyObject * obj1 = 0 ; | |
29101 | char *kwnames[] = { | |
29102 | (char *) "str",(char *) "cursor", NULL | |
29103 | }; | |
29104 | ||
29105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
29106 | { | |
29107 | arg1 = wxString_in_helper(obj0); | |
29108 | if (arg1 == NULL) SWIG_fail; | |
29109 | temp1 = True; | |
29110 | } | |
29111 | if (obj1) { | |
29112 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29113 | if (arg2 == NULL) { | |
29114 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29115 | } | |
29116 | } | |
29117 | { | |
29118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29119 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
29120 | ||
29121 | wxPyEndAllowThreads(__tstate); | |
29122 | if (PyErr_Occurred()) SWIG_fail; | |
29123 | } | |
29124 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
29125 | { | |
29126 | if (temp1) | |
29127 | delete arg1; | |
29128 | } | |
29129 | return resultobj; | |
29130 | fail: | |
29131 | { | |
29132 | if (temp1) | |
29133 | delete arg1; | |
29134 | } | |
29135 | return NULL; | |
29136 | } | |
29137 | ||
29138 | ||
29139 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29140 | PyObject *resultobj; | |
29141 | wxPyTreeCtrl *arg1 = 0 ; | |
29142 | wxTreeItemId *arg2 = 0 ; | |
29143 | wxGenericDragImage *result; | |
29144 | PyObject * obj0 = 0 ; | |
29145 | PyObject * obj1 = 0 ; | |
29146 | char *kwnames[] = { | |
29147 | (char *) "treeCtrl",(char *) "id", NULL | |
29148 | }; | |
29149 | ||
29150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
29151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29152 | if (arg1 == NULL) { | |
29153 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29154 | } | |
29155 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29156 | if (arg2 == NULL) { | |
29157 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29158 | } | |
29159 | { | |
29160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29161 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
29162 | ||
29163 | wxPyEndAllowThreads(__tstate); | |
29164 | if (PyErr_Occurred()) SWIG_fail; | |
29165 | } | |
29166 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
29167 | return resultobj; | |
29168 | fail: | |
29169 | return NULL; | |
29170 | } | |
29171 | ||
29172 | ||
29173 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29174 | PyObject *resultobj; | |
29175 | wxPyListCtrl *arg1 = 0 ; | |
29176 | long arg2 ; | |
29177 | wxGenericDragImage *result; | |
29178 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29179 | PyObject * obj1 = 0 ; |
423f194a RD |
29180 | char *kwnames[] = { |
29181 | (char *) "listCtrl",(char *) "id", NULL | |
29182 | }; | |
29183 | ||
8edf1c75 | 29184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
423f194a RD |
29185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
29186 | if (arg1 == NULL) { | |
29187 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29188 | } | |
8edf1c75 RD |
29189 | { |
29190 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
29191 | if (PyErr_Occurred()) SWIG_fail; | |
29192 | } | |
423f194a RD |
29193 | { |
29194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29195 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
29196 | ||
29197 | wxPyEndAllowThreads(__tstate); | |
29198 | if (PyErr_Occurred()) SWIG_fail; | |
29199 | } | |
29200 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
29201 | return resultobj; | |
29202 | fail: | |
29203 | return NULL; | |
29204 | } | |
29205 | ||
29206 | ||
29207 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29208 | PyObject *resultobj; | |
29209 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29210 | PyObject * obj0 = 0 ; | |
29211 | char *kwnames[] = { | |
29212 | (char *) "self", NULL | |
29213 | }; | |
29214 | ||
29215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
29216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29217 | { | |
29218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29219 | delete arg1; | |
29220 | ||
29221 | wxPyEndAllowThreads(__tstate); | |
29222 | if (PyErr_Occurred()) SWIG_fail; | |
29223 | } | |
29224 | Py_INCREF(Py_None); resultobj = Py_None; | |
29225 | return resultobj; | |
29226 | fail: | |
29227 | return NULL; | |
29228 | } | |
29229 | ||
29230 | ||
29231 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29232 | PyObject *resultobj; | |
29233 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29234 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
29235 | PyObject * obj0 = 0 ; | |
29236 | PyObject * obj1 = 0 ; | |
29237 | char *kwnames[] = { | |
29238 | (char *) "self",(char *) "bitmap", NULL | |
29239 | }; | |
29240 | ||
29241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
29242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29243 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29244 | { | |
29245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29246 | (arg1)->SetBackingBitmap(arg2); | |
29247 | ||
29248 | wxPyEndAllowThreads(__tstate); | |
29249 | if (PyErr_Occurred()) SWIG_fail; | |
29250 | } | |
29251 | Py_INCREF(Py_None); resultobj = Py_None; | |
29252 | return resultobj; | |
29253 | fail: | |
29254 | return NULL; | |
29255 | } | |
29256 | ||
29257 | ||
29258 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29259 | PyObject *resultobj; | |
29260 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29261 | wxPoint *arg2 = 0 ; | |
29262 | wxWindow *arg3 = (wxWindow *) 0 ; | |
29263 | bool arg4 = (bool) False ; | |
29264 | wxRect *arg5 = (wxRect *) NULL ; | |
29265 | bool result; | |
29266 | wxPoint temp2 ; | |
29267 | PyObject * obj0 = 0 ; | |
29268 | PyObject * obj1 = 0 ; | |
29269 | PyObject * obj2 = 0 ; | |
29270 | PyObject * obj3 = 0 ; | |
29271 | PyObject * obj4 = 0 ; | |
29272 | char *kwnames[] = { | |
29273 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
29274 | }; | |
29275 | ||
29276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29278 | { | |
29279 | arg2 = &temp2; | |
29280 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29281 | } | |
29282 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29283 | if (obj3) { | |
83448d71 | 29284 | { |
8edf1c75 | 29285 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
29286 | if (PyErr_Occurred()) SWIG_fail; |
29287 | } | |
423f194a RD |
29288 | } |
29289 | if (obj4) { | |
29290 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29291 | } | |
29292 | { | |
29293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29294 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
29295 | ||
29296 | wxPyEndAllowThreads(__tstate); | |
29297 | if (PyErr_Occurred()) SWIG_fail; | |
29298 | } | |
4e760a36 | 29299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29300 | return resultobj; |
29301 | fail: | |
29302 | return NULL; | |
29303 | } | |
29304 | ||
29305 | ||
29306 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29307 | PyObject *resultobj; | |
29308 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29309 | wxPoint *arg2 = 0 ; | |
29310 | wxWindow *arg3 = (wxWindow *) 0 ; | |
29311 | wxWindow *arg4 = (wxWindow *) 0 ; | |
29312 | bool result; | |
29313 | wxPoint temp2 ; | |
29314 | PyObject * obj0 = 0 ; | |
29315 | PyObject * obj1 = 0 ; | |
29316 | PyObject * obj2 = 0 ; | |
29317 | PyObject * obj3 = 0 ; | |
29318 | char *kwnames[] = { | |
29319 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
29320 | }; | |
29321 | ||
29322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29324 | { | |
29325 | arg2 = &temp2; | |
29326 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29327 | } | |
29328 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29329 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29330 | { | |
29331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29332 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
29333 | ||
29334 | wxPyEndAllowThreads(__tstate); | |
29335 | if (PyErr_Occurred()) SWIG_fail; | |
29336 | } | |
4e760a36 | 29337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29338 | return resultobj; |
29339 | fail: | |
29340 | return NULL; | |
29341 | } | |
29342 | ||
29343 | ||
29344 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29345 | PyObject *resultobj; | |
29346 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29347 | bool result; | |
29348 | PyObject * obj0 = 0 ; | |
29349 | char *kwnames[] = { | |
29350 | (char *) "self", NULL | |
29351 | }; | |
29352 | ||
29353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
29354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29355 | { | |
29356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29357 | result = (bool)(arg1)->EndDrag(); | |
29358 | ||
29359 | wxPyEndAllowThreads(__tstate); | |
29360 | if (PyErr_Occurred()) SWIG_fail; | |
29361 | } | |
4e760a36 | 29362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29363 | return resultobj; |
29364 | fail: | |
29365 | return NULL; | |
29366 | } | |
29367 | ||
29368 | ||
29369 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29370 | PyObject *resultobj; | |
29371 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29372 | wxPoint *arg2 = 0 ; | |
29373 | bool result; | |
29374 | wxPoint temp2 ; | |
29375 | PyObject * obj0 = 0 ; | |
29376 | PyObject * obj1 = 0 ; | |
29377 | char *kwnames[] = { | |
29378 | (char *) "self",(char *) "pt", NULL | |
29379 | }; | |
29380 | ||
29381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
29382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29383 | { | |
29384 | arg2 = &temp2; | |
29385 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29386 | } | |
29387 | { | |
29388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29389 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
29390 | ||
29391 | wxPyEndAllowThreads(__tstate); | |
29392 | if (PyErr_Occurred()) SWIG_fail; | |
29393 | } | |
4e760a36 | 29394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29395 | return resultobj; |
29396 | fail: | |
29397 | return NULL; | |
29398 | } | |
29399 | ||
29400 | ||
29401 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29402 | PyObject *resultobj; | |
29403 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29404 | bool result; | |
29405 | PyObject * obj0 = 0 ; | |
29406 | char *kwnames[] = { | |
29407 | (char *) "self", NULL | |
29408 | }; | |
29409 | ||
29410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
29411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29412 | { | |
29413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29414 | result = (bool)(arg1)->Show(); | |
29415 | ||
29416 | wxPyEndAllowThreads(__tstate); | |
29417 | if (PyErr_Occurred()) SWIG_fail; | |
29418 | } | |
4e760a36 | 29419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29420 | return resultobj; |
29421 | fail: | |
29422 | return NULL; | |
29423 | } | |
29424 | ||
29425 | ||
29426 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29427 | PyObject *resultobj; | |
29428 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29429 | bool result; | |
29430 | PyObject * obj0 = 0 ; | |
29431 | char *kwnames[] = { | |
29432 | (char *) "self", NULL | |
29433 | }; | |
29434 | ||
29435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
29436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29437 | { | |
29438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29439 | result = (bool)(arg1)->Hide(); | |
29440 | ||
29441 | wxPyEndAllowThreads(__tstate); | |
29442 | if (PyErr_Occurred()) SWIG_fail; | |
29443 | } | |
4e760a36 | 29444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29445 | return resultobj; |
29446 | fail: | |
29447 | return NULL; | |
29448 | } | |
29449 | ||
29450 | ||
29451 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29452 | PyObject *resultobj; | |
29453 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29454 | wxPoint *arg2 = 0 ; | |
29455 | wxRect result; | |
29456 | wxPoint temp2 ; | |
29457 | PyObject * obj0 = 0 ; | |
29458 | PyObject * obj1 = 0 ; | |
29459 | char *kwnames[] = { | |
29460 | (char *) "self",(char *) "pos", NULL | |
29461 | }; | |
29462 | ||
29463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
29464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29465 | { | |
29466 | arg2 = &temp2; | |
29467 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29468 | } | |
29469 | { | |
29470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29471 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
29472 | ||
29473 | wxPyEndAllowThreads(__tstate); | |
29474 | if (PyErr_Occurred()) SWIG_fail; | |
29475 | } | |
29476 | { | |
29477 | wxRect * resultptr; | |
29478 | resultptr = new wxRect((wxRect &) result); | |
29479 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
29480 | } | |
29481 | return resultobj; | |
29482 | fail: | |
29483 | return NULL; | |
29484 | } | |
29485 | ||
29486 | ||
29487 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29488 | PyObject *resultobj; | |
29489 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29490 | wxDC *arg2 = 0 ; | |
29491 | wxPoint *arg3 = 0 ; | |
29492 | bool result; | |
29493 | wxPoint temp3 ; | |
29494 | PyObject * obj0 = 0 ; | |
29495 | PyObject * obj1 = 0 ; | |
29496 | PyObject * obj2 = 0 ; | |
29497 | char *kwnames[] = { | |
29498 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
29499 | }; | |
29500 | ||
29501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29503 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29504 | if (arg2 == NULL) { | |
29505 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29506 | } | |
29507 | { | |
29508 | arg3 = &temp3; | |
29509 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29510 | } | |
29511 | { | |
29512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29513 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
29514 | ||
29515 | wxPyEndAllowThreads(__tstate); | |
29516 | if (PyErr_Occurred()) SWIG_fail; | |
29517 | } | |
4e760a36 | 29518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29519 | return resultobj; |
29520 | fail: | |
29521 | return NULL; | |
29522 | } | |
29523 | ||
29524 | ||
29525 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29526 | PyObject *resultobj; | |
29527 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29528 | wxDC *arg2 = 0 ; | |
29529 | wxMemoryDC *arg3 = 0 ; | |
29530 | wxRect *arg4 = 0 ; | |
29531 | wxRect *arg5 = 0 ; | |
29532 | bool result; | |
29533 | wxRect temp4 ; | |
29534 | wxRect temp5 ; | |
29535 | PyObject * obj0 = 0 ; | |
29536 | PyObject * obj1 = 0 ; | |
29537 | PyObject * obj2 = 0 ; | |
29538 | PyObject * obj3 = 0 ; | |
29539 | PyObject * obj4 = 0 ; | |
29540 | char *kwnames[] = { | |
29541 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
29542 | }; | |
29543 | ||
29544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29546 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29547 | if (arg2 == NULL) { | |
29548 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29549 | } | |
29550 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29551 | if (arg3 == NULL) { | |
29552 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29553 | } | |
29554 | { | |
29555 | arg4 = &temp4; | |
29556 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
29557 | } | |
29558 | { | |
29559 | arg5 = &temp5; | |
29560 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
29561 | } | |
29562 | { | |
29563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29564 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
29565 | ||
29566 | wxPyEndAllowThreads(__tstate); | |
29567 | if (PyErr_Occurred()) SWIG_fail; | |
29568 | } | |
4e760a36 | 29569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29570 | return resultobj; |
29571 | fail: | |
29572 | return NULL; | |
29573 | } | |
29574 | ||
29575 | ||
29576 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29577 | PyObject *resultobj; | |
29578 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29579 | wxPoint *arg2 = 0 ; | |
29580 | wxPoint *arg3 = 0 ; | |
29581 | bool arg4 ; | |
29582 | bool arg5 ; | |
29583 | bool result; | |
29584 | wxPoint temp2 ; | |
29585 | wxPoint temp3 ; | |
29586 | PyObject * obj0 = 0 ; | |
29587 | PyObject * obj1 = 0 ; | |
29588 | PyObject * obj2 = 0 ; | |
29589 | PyObject * obj3 = 0 ; | |
29590 | PyObject * obj4 = 0 ; | |
29591 | char *kwnames[] = { | |
29592 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
29593 | }; | |
29594 | ||
29595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29597 | { | |
29598 | arg2 = &temp2; | |
29599 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29600 | } | |
29601 | { | |
29602 | arg3 = &temp3; | |
29603 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29604 | } | |
83448d71 | 29605 | { |
8edf1c75 | 29606 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
29607 | if (PyErr_Occurred()) SWIG_fail; |
29608 | } | |
29609 | { | |
8edf1c75 | 29610 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
83448d71 RD |
29611 | if (PyErr_Occurred()) SWIG_fail; |
29612 | } | |
423f194a RD |
29613 | { |
29614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29615 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
29616 | ||
29617 | wxPyEndAllowThreads(__tstate); | |
29618 | if (PyErr_Occurred()) SWIG_fail; | |
29619 | } | |
4e760a36 | 29620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29621 | return resultobj; |
29622 | fail: | |
29623 | return NULL; | |
29624 | } | |
29625 | ||
29626 | ||
29627 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
29628 | PyObject *obj; | |
29629 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29630 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
29631 | Py_INCREF(obj); | |
29632 | return Py_BuildValue((char *)""); | |
29633 | } | |
29634 | static PyMethodDef SwigMethods[] = { | |
29635 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
29636 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
29637 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
29638 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
29639 | { (char *)"Button_SetImageLabel", (PyCFunction) _wrap_Button_SetImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
29640 | { (char *)"Button_SetImageMargins", (PyCFunction) _wrap_Button_SetImageMargins, METH_VARARGS | METH_KEYWORDS }, | |
29641 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
29642 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
29643 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
29644 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
29645 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29646 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
29647 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
29648 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
29649 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
29650 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
29651 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
29652 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
29653 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
29654 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29655 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
29656 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
29657 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
29658 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
29659 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
29660 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29661 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29662 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
29663 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29664 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
29665 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
29666 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
29667 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
29668 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
29669 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
29670 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
29671 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
29672 | { (char *)"Choice_GetColumns", (PyCFunction) _wrap_Choice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
29673 | { (char *)"Choice_SetColumns", (PyCFunction) _wrap_Choice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
29674 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29675 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29676 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
29677 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
29678 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
29679 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
29680 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29681 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29682 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29683 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
29684 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
29685 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
29686 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29687 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29688 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
29689 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
8a0b029b | 29690 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
29691 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
29692 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
29693 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
29694 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
29695 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
29696 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
29697 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
29698 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
29699 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29700 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29701 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29702 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29703 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29704 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
29705 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
29706 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
29707 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
29708 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
29709 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
29710 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
29711 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29712 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
29713 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
29714 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
29715 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
29716 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29717 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
29718 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
29719 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
29720 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
29721 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
29722 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
29723 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29724 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29725 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
29726 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29727 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29728 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
29729 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
29730 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
29731 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
29732 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29733 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
29734 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
29735 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
29736 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29737 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29738 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
29739 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
29740 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
29741 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29742 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
29743 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
29744 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
29745 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29746 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29747 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
0ffb2aa6 RD |
29748 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
29749 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29750 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
29751 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, |
29752 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
29753 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
29754 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29755 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
29756 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
29757 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
29758 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29759 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
29760 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
29761 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
8edf1c75 | 29762 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
29763 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, |
29764 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29765 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29766 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29767 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29768 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
29769 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29770 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29771 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
29772 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29773 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29774 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
29775 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29776 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
29777 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29778 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29779 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
29780 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29781 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29782 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29783 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29784 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
29785 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29786 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29787 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
29788 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
29789 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
29790 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
29791 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29792 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29793 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29794 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29795 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29796 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29797 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
29798 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
29799 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
29800 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
29801 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
29802 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
29803 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
29804 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29805 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29806 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
29807 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
29808 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
29809 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
29810 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
29811 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
29812 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
29813 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
29814 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
29815 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
29816 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
29817 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29818 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29819 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
29820 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
29821 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
29822 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
29823 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
4e760a36 | 29824 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
423f194a | 29825 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29826 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, |
29827 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
29828 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
29829 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
29830 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
29831 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
29832 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
29833 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
29834 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
29835 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29836 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
29837 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29838 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
29839 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29840 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
29841 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
29842 | { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
29843 | { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
29844 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
29845 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
29846 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
29847 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
29848 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
29849 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
29850 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
29851 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
29852 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
29853 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
29854 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
29855 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
29856 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
29857 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29858 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29859 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29860 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
29861 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
29862 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
29863 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
29864 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
29865 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29866 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29867 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29868 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29869 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29870 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
29871 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
29872 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29873 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29874 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
29875 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29876 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29877 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29878 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29879 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29880 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
29881 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29882 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29883 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29884 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29885 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
eb9b6107 RD |
29886 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
29887 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29888 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29889 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
29890 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
29891 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
29892 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29893 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29894 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29895 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29896 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29897 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
29898 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
29899 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
29900 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
29901 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
29902 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
29903 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
29904 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29905 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
29906 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
29907 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29908 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29909 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29910 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29911 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29912 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
29913 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
29914 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
29915 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
29916 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29917 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29918 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29919 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29920 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29921 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
29922 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
29923 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29924 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29925 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29926 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29927 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29928 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29929 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29930 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29931 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
29932 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
29933 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
29934 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
29935 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
29936 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29937 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
29938 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29939 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29940 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29941 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29942 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29943 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29944 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
29945 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
29946 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
29947 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29948 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29949 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29950 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29951 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29952 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29953 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29954 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29955 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29956 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29957 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
29958 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
29959 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
29960 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
29961 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
29962 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29963 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
29964 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
29965 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
29966 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29967 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29968 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29969 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29970 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
29971 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
29972 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29973 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29974 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29975 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
29976 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
29977 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29978 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29979 | { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
29980 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
29981 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29982 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
29983 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
29984 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
29985 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29986 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29987 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
29988 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29989 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
29990 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
29991 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29992 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29993 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
29994 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
29995 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
29996 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29997 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29998 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29999 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
30000 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30001 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
30002 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30003 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
30004 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
30005 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30006 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30007 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
30008 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
30009 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
30010 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
30011 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30012 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30013 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30014 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30015 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30016 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30017 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
30018 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
30019 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
30020 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30021 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30022 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30023 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30024 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30025 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
30026 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
30027 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
30028 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
30029 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
30030 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
30031 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
d03fd34d RD |
30032 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
30033 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
30034 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
30035 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
30036 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
30037 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30038 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30039 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
30040 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
30041 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
30042 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
30043 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
30044 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
30045 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
30046 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
30047 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
30048 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
30049 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
30050 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
30051 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
30052 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30053 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30054 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30055 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30056 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
30057 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30058 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
30059 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
30060 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
30061 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30062 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
30063 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
30064 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
30065 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
30066 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
30067 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
30068 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
30069 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
30070 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
30071 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
d03fd34d | 30072 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30073 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
30074 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
30075 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30076 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30077 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
30078 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
30079 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
30080 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
30081 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30082 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30083 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30084 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30085 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30086 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
30087 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30088 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30089 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30090 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30091 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
30092 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
30093 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
30094 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
30095 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30096 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
30097 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
30098 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30099 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
30100 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
30101 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
30102 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
30103 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
30104 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
30105 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
30106 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30107 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30108 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30109 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
30110 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30111 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30112 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
30113 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
30114 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
30115 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30116 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
30117 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
30118 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30119 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30120 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30121 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30122 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30123 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
30124 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
30125 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
30126 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
30127 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
30128 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
30129 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
30130 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
30131 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
30132 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
30133 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
30134 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
30135 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
30136 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
30137 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
30138 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
30139 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
30140 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
30141 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
30142 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
30143 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
30144 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
30145 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
30146 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
30147 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
30148 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
30149 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
30150 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
30151 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
30152 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
30153 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
30154 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
30155 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
30156 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
30157 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
30158 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30159 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30160 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30161 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
30162 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
30163 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30164 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
30165 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30166 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
30167 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
30168 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
30169 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
30170 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
30171 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30172 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30173 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30174 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30175 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30176 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30177 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30178 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30179 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
30180 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
30181 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
30182 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
30183 | { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
30184 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30185 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
30186 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30187 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
30188 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
30189 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30190 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30191 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30192 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30193 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30194 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
30195 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
30196 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
30197 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30198 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
30199 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30200 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30201 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30202 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30203 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
30204 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
30205 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
30206 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
30207 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30208 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30209 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
30210 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
30211 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
30212 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
30213 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
30214 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
30215 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
30216 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
30217 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
30218 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
30219 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30220 | { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30221 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30222 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
30223 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
30224 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
30225 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30226 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
30227 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30228 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
30229 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30230 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
30231 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
30232 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30233 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
30234 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30235 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30236 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30237 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30238 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
30239 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
30240 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
30241 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
30242 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
30243 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
30244 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
30245 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
30246 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
30247 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
30248 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
30249 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30250 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
30251 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
30252 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
30253 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
30254 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
30255 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
30256 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
30257 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
30258 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
30259 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
30260 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
30261 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
30262 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30263 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
30264 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30265 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
30266 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30267 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
30268 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
30269 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30270 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
30271 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
30272 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
30273 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30274 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30275 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
30276 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
30277 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
30278 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30279 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30280 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
30281 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 30282 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30283 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
30284 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30285 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30286 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30287 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30288 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
30289 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
30290 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
30291 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30292 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30293 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30294 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30295 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30296 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30297 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
30298 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30299 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30300 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30301 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30302 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
30303 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30304 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30305 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
30306 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30307 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30308 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30309 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
30310 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
30311 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
30312 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, | |
30313 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30314 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30315 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
30316 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
30317 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
30318 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
30319 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30320 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
30321 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
30322 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
30323 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30324 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
30325 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
30326 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
30327 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
30328 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
30329 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
30330 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
30331 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
30332 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
30333 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
30334 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
30335 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
30336 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
30337 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
30338 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
30339 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
30340 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
30341 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
30342 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
30343 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
30344 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
30345 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
30346 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 30347 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30348 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, |
30349 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 30350 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30351 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, |
30352 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
30353 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30354 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
30355 | { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30356 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
30357 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30358 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
30359 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
30360 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30361 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30362 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30363 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
30364 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
30365 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
30366 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
30367 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
30368 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
30369 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
30370 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
30371 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
30372 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
30373 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
30374 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
30375 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
30376 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30377 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30378 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
30379 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
30380 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
30381 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
30382 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30383 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30384 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30385 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
30386 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
30387 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
30388 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30389 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
30390 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
30391 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
30392 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
30393 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
30394 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
30395 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30396 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
30397 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
30398 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
30399 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
30400 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
30401 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
30402 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
30403 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
30404 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
30405 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
30406 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
30407 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
30408 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
30409 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30410 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30411 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
30412 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
30413 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
30414 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
30415 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
30416 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30417 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30418 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30419 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30420 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
30421 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
30422 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
30423 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
30424 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
30425 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
30426 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
30427 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
30428 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
30429 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30430 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
30431 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
30432 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
423f194a RD |
30433 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
30434 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
30435 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
30436 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
30437 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
30438 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
30439 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30440 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
30441 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
30442 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
30443 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
30444 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
30445 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
30446 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
30447 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
30448 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
30449 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
30450 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
30451 | { NULL, NULL } |
30452 | }; | |
30453 | ||
30454 | ||
30455 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
30456 | ||
30457 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
30458 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30459 | } | |
30460 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
30461 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30462 | } | |
30463 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
30464 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
30465 | } | |
30466 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
30467 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
30468 | } | |
30469 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
30470 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
30471 | } | |
30472 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
30473 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
30474 | } | |
30475 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
30476 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30477 | } | |
30478 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
30479 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
30480 | } | |
30481 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
30482 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
30483 | } | |
30484 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
30485 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
30486 | } | |
30487 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
30488 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30489 | } | |
30490 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
30491 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
30492 | } | |
30493 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
30494 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
30495 | } | |
30496 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
30497 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
30498 | } | |
30499 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
30500 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
30501 | } | |
30502 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
30503 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30504 | } | |
30505 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
30506 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
30507 | } | |
30508 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
30509 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
30510 | } | |
30511 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
30512 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
30513 | } | |
30514 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
30515 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30516 | } | |
30517 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
30518 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30519 | } | |
30520 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
30521 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
30522 | } | |
30523 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
30524 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30525 | } | |
30526 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
30527 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
30528 | } | |
30529 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
30530 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30531 | } | |
30532 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
30533 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30534 | } | |
30535 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
30536 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
30537 | } | |
30538 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
30539 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
30540 | } | |
30541 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
30542 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30543 | } | |
30544 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
30545 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30546 | } | |
30547 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
30548 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
30549 | } | |
30550 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
30551 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
30552 | } | |
30553 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
30554 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
30555 | } | |
30556 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
30557 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
30558 | } | |
30559 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
30560 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
30561 | } | |
30562 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
30563 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
30564 | } | |
30565 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
30566 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
30567 | } | |
30568 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
30569 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30570 | } | |
30571 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
30572 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30573 | } | |
30574 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
30575 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30576 | } | |
30577 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
30578 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30579 | } | |
30580 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
30581 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30582 | } | |
30583 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
30584 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
30585 | } | |
30586 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
30587 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
30588 | } | |
30589 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
30590 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30591 | } | |
30592 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
30593 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
30594 | } | |
30595 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
30596 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
30597 | } | |
30598 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
30599 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30600 | } | |
30601 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
30602 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30603 | } | |
30604 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
30605 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30606 | } | |
30607 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
30608 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
30609 | } | |
30610 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
30611 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
30612 | } | |
eb9b6107 RD |
30613 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
30614 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30615 | } | |
d14a1e28 RD |
30616 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
30617 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
30618 | } | |
30619 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
30620 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30621 | } | |
30622 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
30623 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
30624 | } | |
30625 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
30626 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
30627 | } | |
30628 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
30629 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
30630 | } | |
30631 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
30632 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30633 | } | |
30634 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
30635 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
30636 | } | |
30637 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
30638 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30639 | } | |
30640 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
30641 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
30642 | } | |
30643 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
30644 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
30645 | } | |
30646 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
30647 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
30648 | } | |
30649 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
30650 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
30651 | } | |
30652 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
30653 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
30654 | } | |
30655 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
30656 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
30657 | } | |
30658 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
30659 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
30660 | } | |
30661 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
30662 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
30663 | } | |
30664 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
30665 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
30666 | } | |
30667 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
30668 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30669 | } | |
30670 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
30671 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
30672 | } | |
30673 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
30674 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
30675 | } | |
30676 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
30677 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
30678 | } | |
30679 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
30680 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
30681 | } | |
30682 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
30683 | return (void *)((wxControl *) ((wxGauge *) x)); | |
30684 | } | |
30685 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
30686 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
30687 | } | |
30688 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
30689 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
30690 | } | |
30691 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
30692 | return (void *)((wxControl *) ((wxButton *) x)); | |
30693 | } | |
30694 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
30695 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
30696 | } | |
30697 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
30698 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30699 | } | |
30700 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
30701 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
30702 | } | |
30703 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
30704 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
30705 | } | |
30706 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
30707 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
30708 | } | |
30709 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
30710 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
30711 | } | |
30712 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
30713 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
30714 | } | |
30715 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
30716 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
30717 | } | |
30718 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
30719 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
30720 | } | |
30721 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
30722 | return (void *)((wxControl *) ((wxSlider *) x)); | |
30723 | } | |
30724 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
30725 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
30726 | } | |
30727 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
30728 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
30729 | } | |
30730 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
30731 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
30732 | } | |
30733 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
30734 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
30735 | } | |
30736 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
30737 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
30738 | } | |
30739 | static void *_p_wxComboBoxTo_p_wxChoice(void *x) { | |
30740 | return (void *)((wxChoice *) ((wxComboBox *) x)); | |
30741 | } | |
30742 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
30743 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30744 | } | |
30745 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
30746 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30747 | } | |
30748 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
30749 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30750 | } | |
30751 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
30752 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
30753 | } | |
eb9b6107 RD |
30754 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
30755 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30756 | } | |
d14a1e28 RD |
30757 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
30758 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30759 | } | |
30760 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
30761 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30762 | } | |
30763 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
30764 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
30765 | } | |
30766 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
30767 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
30768 | } | |
30769 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
30770 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
30771 | } | |
30772 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
30773 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
30774 | } | |
30775 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
30776 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30777 | } | |
30778 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
30779 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
30780 | } | |
30781 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
30782 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
30783 | } | |
30784 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
30785 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
30786 | } | |
30787 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
30788 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
30789 | } | |
30790 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
30791 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
30792 | } | |
30793 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
30794 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
30795 | } | |
30796 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
30797 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
30798 | } | |
30799 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
30800 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
30801 | } | |
30802 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
30803 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30804 | } | |
30805 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
30806 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
30807 | } | |
30808 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
30809 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
30810 | } | |
30811 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
30812 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
30813 | } | |
30814 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
30815 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
30816 | } | |
30817 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
30818 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30819 | } | |
30820 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
30821 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
30822 | } | |
30823 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
30824 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
30825 | } | |
30826 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
30827 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30828 | } | |
30829 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
30830 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
30831 | } | |
30832 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
30833 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
30834 | } | |
30835 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
30836 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
30837 | } | |
30838 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
30839 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30840 | } | |
30841 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
30842 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30843 | } | |
30844 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
30845 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30846 | } | |
30847 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
30848 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30849 | } | |
30850 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
30851 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
30852 | } | |
30853 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
30854 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30855 | } | |
30856 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
30857 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
30858 | } | |
30859 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
30860 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
30861 | } | |
30862 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
30863 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
30864 | } | |
30865 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
30866 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
30867 | } | |
30868 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
30869 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
30870 | } | |
30871 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
30872 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
30873 | } | |
30874 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
30875 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30876 | } | |
30877 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
30878 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30879 | } | |
30880 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
30881 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
30882 | } | |
30883 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
30884 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
30885 | } | |
30886 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
30887 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
30888 | } | |
30889 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
30890 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
30891 | } | |
30892 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
30893 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
30894 | } | |
30895 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
30896 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30897 | } | |
30898 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
30899 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30900 | } | |
30901 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
30902 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
30903 | } | |
30904 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
30905 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
30906 | } | |
30907 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
30908 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
30909 | } | |
30910 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
30911 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
30912 | } | |
30913 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
30914 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
30915 | } | |
30916 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
30917 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
30918 | } | |
30919 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
30920 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30921 | } | |
30922 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
30923 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30924 | } | |
30925 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
30926 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
30927 | } | |
30928 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
30929 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
30930 | } | |
30931 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
30932 | return (void *)((wxObject *) ((wxSizer *) x)); | |
30933 | } | |
30934 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
30935 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
30936 | } | |
30937 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
30938 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
30939 | } | |
30940 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
30941 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
30942 | } | |
30943 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
30944 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30945 | } | |
30946 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
30947 | return (void *)((wxObject *) ((wxEvent *) x)); | |
30948 | } | |
30949 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
30950 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30951 | } | |
30952 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
30953 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
30954 | } | |
30955 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
30956 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
30957 | } | |
30958 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
30959 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
30960 | } | |
30961 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
30962 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
30963 | } | |
30964 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
30965 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30966 | } | |
30967 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
30968 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
30969 | } | |
30970 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
30971 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
30972 | } | |
30973 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
30974 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30975 | } | |
30976 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
30977 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30978 | } | |
30979 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
30980 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30981 | } | |
30982 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
30983 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30984 | } | |
30985 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
30986 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
30987 | } | |
30988 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
30989 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
30990 | } | |
30991 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
30992 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
30993 | } | |
30994 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
30995 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
30996 | } | |
30997 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
30998 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
30999 | } | |
31000 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
31001 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
31002 | } | |
31003 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
31004 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
31005 | } | |
31006 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
31007 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
31008 | } | |
31009 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
31010 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31011 | } | |
31012 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
31013 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
31014 | } | |
31015 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
31016 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
31017 | } | |
31018 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
31019 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31020 | } | |
31021 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
31022 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
31023 | } | |
31024 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
31025 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31026 | } | |
31027 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
31028 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
31029 | } | |
31030 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
31031 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31032 | } | |
31033 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
31034 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31035 | } | |
31036 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
31037 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
31038 | } | |
31039 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
31040 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
31041 | } | |
31042 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
31043 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
31044 | } | |
31045 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
31046 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
31047 | } | |
31048 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
31049 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
31050 | } | |
31051 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
31052 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31053 | } | |
31054 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
31055 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31056 | } | |
31057 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
31058 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
31059 | } | |
31060 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
31061 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
31062 | } | |
31063 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
31064 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
31065 | } | |
31066 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
31067 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
31068 | } | |
31069 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
31070 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
31071 | } | |
31072 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
31073 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
31074 | } | |
31075 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
31076 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
31077 | } | |
31078 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
31079 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
31080 | } | |
31081 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
31082 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
31083 | } | |
31084 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
31085 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
31086 | } | |
31087 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
31088 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
31089 | } | |
31090 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
31091 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
31092 | } | |
31093 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
31094 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
31095 | } | |
31096 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
31097 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
31098 | } | |
31099 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
31100 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
31101 | } | |
31102 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
31103 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
31104 | } | |
31105 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
31106 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
31107 | } | |
31108 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
31109 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
31110 | } | |
31111 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
31112 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
31113 | } | |
31114 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
31115 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
31116 | } | |
31117 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
31118 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
31119 | } | |
31120 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
31121 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31122 | } | |
31123 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
31124 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31125 | } | |
31126 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
31127 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
31128 | } | |
d14a1e28 RD |
31129 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
31130 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
31131 | } | |
41f1cec7 RD |
31132 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
31133 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31134 | } | |
d14a1e28 RD |
31135 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
31136 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
31137 | } | |
31138 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
31139 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31140 | } | |
41f1cec7 RD |
31141 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
31142 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
31143 | } | |
d14a1e28 RD |
31144 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
31145 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
31146 | } | |
31147 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
31148 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
31149 | } | |
31150 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
31151 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31152 | } | |
31153 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
31154 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
31155 | } | |
31156 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
31157 | return (void *)((wxObject *) ((wxListItem *) x)); | |
31158 | } | |
31159 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
31160 | return (void *)((wxObject *) ((wxImage *) x)); | |
31161 | } | |
31162 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
31163 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
31164 | } | |
31165 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
31166 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
31167 | } | |
eb9b6107 RD |
31168 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
31169 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31170 | } | |
423f194a RD |
31171 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
31172 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
31173 | } | |
d14a1e28 RD |
31174 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
31175 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
31176 | } | |
31177 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
31178 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31179 | } | |
31180 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
31181 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31182 | } | |
31183 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
31184 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31185 | } | |
31186 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
31187 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31188 | } | |
31189 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
31190 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
31191 | } | |
31192 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
31193 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
31194 | } | |
31195 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
31196 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
31197 | } | |
31198 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
31199 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
31200 | } | |
31201 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
31202 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
31203 | } | |
31204 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
31205 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31206 | } | |
31207 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
31208 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
31209 | } | |
31210 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
31211 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
31212 | } | |
31213 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
31214 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
31215 | } | |
31216 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
31217 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
31218 | } | |
31219 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
31220 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
31221 | } | |
31222 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
31223 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31224 | } | |
31225 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
31226 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31227 | } | |
31228 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
31229 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
31230 | } | |
31231 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
31232 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
31233 | } | |
31234 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
31235 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
31236 | } | |
31237 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
31238 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
31239 | } | |
31240 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
31241 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31242 | } | |
31243 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
31244 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31245 | } | |
31246 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
31247 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
31248 | } | |
31249 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
31250 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31251 | } | |
31252 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
31253 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
31254 | } | |
31255 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
31256 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
31257 | } | |
31258 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
31259 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
31260 | } | |
31261 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
31262 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
31263 | } | |
31264 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
31265 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
31266 | } | |
31267 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
31268 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31269 | } | |
31270 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
31271 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
31272 | } | |
31273 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
31274 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
31275 | } | |
31276 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
31277 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
31278 | } | |
31279 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
31280 | return (void *)((wxWindow *) ((wxControl *) x)); | |
31281 | } | |
31282 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
31283 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
31284 | } | |
31285 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
31286 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31287 | } | |
31288 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
31289 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
31290 | } | |
31291 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
31292 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31293 | } | |
31294 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
31295 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
31296 | } | |
31297 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
31298 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
31299 | } | |
31300 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
31301 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
31302 | } | |
31303 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
31304 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
31305 | } | |
31306 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
31307 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
31308 | } | |
31309 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
31310 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31311 | } | |
31312 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
31313 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
31314 | } | |
31315 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
31316 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
31317 | } | |
31318 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
31319 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
31320 | } | |
31321 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
31322 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31323 | } | |
31324 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
31325 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31326 | } | |
31327 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
31328 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31329 | } | |
31330 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
31331 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31332 | } | |
31333 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
31334 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31335 | } | |
31336 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
31337 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
31338 | } | |
31339 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
31340 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
31341 | } | |
31342 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
31343 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
31344 | } | |
31345 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
31346 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
31347 | } | |
31348 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
31349 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
31350 | } | |
31351 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
31352 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
31353 | } | |
31354 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
31355 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
31356 | } | |
31357 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
31358 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31359 | } | |
31360 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
31361 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31362 | } | |
31363 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
31364 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
31365 | } | |
31366 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
31367 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31368 | } | |
31369 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
31370 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31371 | } | |
31372 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
31373 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31374 | } | |
31375 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
31376 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
31377 | } | |
31378 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
31379 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31380 | } | |
31381 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
31382 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31383 | } | |
31384 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
31385 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31386 | } | |
31387 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
31388 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31389 | } | |
31390 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
31391 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31392 | } | |
31393 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
31394 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
31395 | } | |
31396 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
31397 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31398 | } | |
31399 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
31400 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31401 | } | |
eb9b6107 RD |
31402 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
31403 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31404 | } | |
d14a1e28 RD |
31405 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
31406 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
31407 | } | |
31408 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
31409 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31410 | } | |
31411 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
31412 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31413 | } | |
31414 | static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) { | |
31415 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x)); | |
31416 | } | |
31417 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
31418 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31419 | } | |
31420 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
31421 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
31422 | } | |
31423 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
31424 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
31425 | } | |
31426 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
31427 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
31428 | } | |
31429 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
31430 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
31431 | } | |
31432 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0},{"_p_wxTextUrlEvent"},{0}}; | |
31433 | 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}}; | |
31434 | 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 |
31435 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0},{"_p_wxCheckBox"},{0}}; |
31436 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0},{"_p_wxPyTreeCtrl"},{0}}; | |
eb9b6107 | 31437 | 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 |
31438 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0},{"_p_wxGenericDirCtrl"},{0}}; |
31439 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}}; | |
31440 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0},{"_p_wxPyTreeItemData"},{0}}; | |
31441 | 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}}; | |
31442 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0},{"_p_wxDirFilterListCtrl"},{0}}; | |
31443 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0},{"_p_wxPyListCtrl"},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl},{0}}; | |
31444 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0},{"_p_wxStaticLine"},{0}}; | |
31445 | 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}}; | |
31446 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0},{"_p_wxPyControl"},{0}}; | |
31447 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0},{"_p_wxGauge"},{0}}; | |
31448 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0},{"_p_wxToolBarBase"},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase},{0}}; | |
31449 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
31450 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0},{"_p_wxToggleButton"},{0}}; | |
31451 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0},{"_p_wxRadioButton"},{0}}; | |
31452 | 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 | 31453 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxMemoryDC"},{0}}; |
d14a1e28 | 31454 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0},{"_p_wxListItemAttr"},{0}}; |
58203fa6 | 31455 | static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0},{"_p_void"},{0}}; |
d14a1e28 RD |
31456 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
31457 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
423f194a | 31458 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; |
d14a1e28 RD |
31459 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0},{"_p_wxListView"},{0}}; |
31460 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
31461 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
31462 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0},{"_p_wxNotebook"},{0}}; | |
eb9b6107 | 31463 | 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 |
31464 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; |
31465 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0},{"_p_wxListbook"},{0}}; | |
31466 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0},{"_p_wxStaticBitmap"},{0}}; | |
31467 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0},{"_p_wxSlider"},{0}}; | |
31468 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
31469 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}}; | |
31470 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0},{"_p_wxContextHelp"},{0}}; | |
31471 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
31472 | 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}}; | |
31473 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0},{"_p_wxListEvent"},{0}}; | |
31474 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0},{"_p_wxListBox"},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox},{0}}; | |
31475 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0},{"_p_wxCheckListBox"},{0}}; | |
31476 | 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}}; | |
31477 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0},{"_p_wxSpinButton"},{0}}; | |
31478 | 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}}; | |
31479 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0},{"_p_wxBitmapButton"},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton},{0}}; | |
31480 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
31481 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0},{"_p_wxContextHelpButton"},{0}}; | |
31482 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0},{"_p_wxRadioBox"},{0}}; | |
31483 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0},{"_p_wxScrollBar"},{0}}; | |
8edf1c75 | 31484 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
31485 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}}; |
31486 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0},{"_p_wxComboBox"},{0}}; | |
31487 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0},{"_p_wxHelpEvent"},{0}}; | |
31488 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0},{"_p_wxListItem"},{0}}; | |
31489 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0},{"_p_wxNotebookSizer"},{0}}; | |
eb9b6107 | 31490 | static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0},{"_p_wxSpinEvent"},{0}}; |
423f194a | 31491 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}}; |
d14a1e28 RD |
31492 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0},{"_p_wxSpinCtrl"},{0}}; |
31493 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
31494 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0},{"_p_wxHelpProvider"},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider},{0}}; | |
31495 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0},{"_p_wxTextAttr"},{0}}; | |
31496 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0},{"_p_wxSimpleHelpProvider"},{0}}; | |
31497 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
31498 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0},{"_p_wxListbookEvent"},{0}}; | |
31499 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0},{"_p_wxNotebookEvent"},{0}}; | |
eb9b6107 | 31500 | 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 | 31501 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; |
d14a1e28 RD |
31502 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; |
31503 | 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}}; | |
31504 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
31505 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
31506 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0},{"_p_wxTreeEvent"},{0}}; | |
31507 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
eb9b6107 | 31508 | 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 |
31509 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0},{"_p_wxStaticText"},{0}}; |
31510 | 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}}; | |
31511 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0},{"_p_wxToolBarToolBase"},{0}}; | |
31512 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
31513 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}}; | |
31514 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0},{"_p_wxBookCtrlSizer"},{0}}; | |
31515 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
31516 | ||
31517 | static swig_type_info *swig_types_initial[] = { | |
31518 | _swigt__p_wxTextUrlEvent, | |
31519 | _swigt__p_wxBookCtrlEvent, | |
31520 | _swigt__p_wxSizer, | |
d14a1e28 RD |
31521 | _swigt__p_wxCheckBox, |
31522 | _swigt__p_wxPyTreeCtrl, | |
31523 | _swigt__p_wxEvent, | |
31524 | _swigt__p_wxGenericDirCtrl, | |
31525 | _swigt__p_bool, | |
31526 | _swigt__p_wxPyTreeItemData, | |
31527 | _swigt__p_wxItemContainer, | |
31528 | _swigt__p_wxDirFilterListCtrl, | |
31529 | _swigt__p_wxPyListCtrl, | |
31530 | _swigt__p_wxStaticLine, | |
31531 | _swigt__p_wxControl, | |
31532 | _swigt__p_wxPyControl, | |
31533 | _swigt__p_wxGauge, | |
31534 | _swigt__p_wxToolBarBase, | |
31535 | _swigt__p_wxFont, | |
31536 | _swigt__p_wxToggleButton, | |
31537 | _swigt__p_wxRadioButton, | |
31538 | _swigt__p_wxChoice, | |
423f194a | 31539 | _swigt__p_wxMemoryDC, |
d14a1e28 | 31540 | _swigt__p_wxListItemAttr, |
58203fa6 | 31541 | _swigt__p_void, |
d14a1e28 RD |
31542 | _swigt__p_int, |
31543 | _swigt__p_wxSize, | |
423f194a | 31544 | _swigt__p_wxDC, |
d14a1e28 RD |
31545 | _swigt__p_wxListView, |
31546 | _swigt__p_wxIcon, | |
31547 | _swigt__p_wxTextCtrl, | |
31548 | _swigt__p_wxNotebook, | |
31549 | _swigt__p_wxNotifyEvent, | |
31550 | _swigt__p_wxArrayString, | |
31551 | _swigt__p_wxListbook, | |
31552 | _swigt__p_wxStaticBitmap, | |
31553 | _swigt__p_wxSlider, | |
31554 | _swigt__p_wxStaticBox, | |
31555 | _swigt__p_wxArrayInt, | |
31556 | _swigt__p_wxContextHelp, | |
31557 | _swigt__p_long, | |
31558 | _swigt__p_wxEvtHandler, | |
31559 | _swigt__p_wxListEvent, | |
31560 | _swigt__p_wxListBox, | |
31561 | _swigt__p_wxCheckListBox, | |
31562 | _swigt__p_wxBookCtrl, | |
31563 | _swigt__p_wxSpinButton, | |
31564 | _swigt__p_wxButton, | |
31565 | _swigt__p_wxBitmapButton, | |
31566 | _swigt__p_wxRect, | |
31567 | _swigt__p_wxContextHelpButton, | |
31568 | _swigt__p_wxRadioBox, | |
31569 | _swigt__p_wxScrollBar, | |
8edf1c75 | 31570 | _swigt__p_char, |
d14a1e28 RD |
31571 | _swigt__p_wxTreeItemId, |
31572 | _swigt__p_wxComboBox, | |
31573 | _swigt__p_wxHelpEvent, | |
31574 | _swigt__p_wxListItem, | |
31575 | _swigt__p_wxNotebookSizer, | |
eb9b6107 | 31576 | _swigt__p_wxSpinEvent, |
423f194a | 31577 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
31578 | _swigt__p_wxSpinCtrl, |
31579 | _swigt__p_wxImageList, | |
31580 | _swigt__p_wxHelpProvider, | |
31581 | _swigt__p_wxTextAttr, | |
31582 | _swigt__p_wxSimpleHelpProvider, | |
31583 | _swigt__p_wxPoint, | |
31584 | _swigt__p_wxListbookEvent, | |
31585 | _swigt__p_wxNotebookEvent, | |
31586 | _swigt__p_wxObject, | |
423f194a | 31587 | _swigt__p_wxCursor, |
d14a1e28 RD |
31588 | _swigt__p_wxKeyEvent, |
31589 | _swigt__p_wxWindow, | |
31590 | _swigt__p_wxString, | |
31591 | _swigt__p_wxBitmap, | |
31592 | _swigt__p_wxTreeEvent, | |
31593 | _swigt__p_wxMouseEvent, | |
31594 | _swigt__p_wxCommandEvent, | |
31595 | _swigt__p_wxStaticText, | |
31596 | _swigt__p_wxControlWithItems, | |
31597 | _swigt__p_wxToolBarToolBase, | |
31598 | _swigt__p_wxColour, | |
31599 | _swigt__p_wxToolBar, | |
31600 | _swigt__p_wxBookCtrlSizer, | |
31601 | _swigt__p_wxValidator, | |
31602 | 0 | |
31603 | }; | |
31604 | ||
31605 | ||
31606 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
31607 | ||
31608 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
31609 | {0}}; |
31610 | ||
31611 | #ifdef __cplusplus | |
31612 | } | |
31613 | #endif | |
31614 | ||
31615 | #ifdef __cplusplus | |
31616 | extern "C" | |
31617 | #endif | |
31618 | SWIGEXPORT(void) SWIG_init(void) { | |
31619 | static PyObject *SWIG_globals = 0; | |
31620 | static int typeinit = 0; | |
31621 | PyObject *m, *d; | |
31622 | int i; | |
31623 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
31624 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
31625 | d = PyModule_GetDict(m); | |
31626 | ||
31627 | if (!typeinit) { | |
31628 | for (i = 0; swig_types_initial[i]; i++) { | |
31629 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
31630 | } | |
31631 | typeinit = 1; | |
31632 | } | |
31633 | SWIG_InstallConstants(d,swig_const_table); | |
31634 | ||
d03fd34d RD |
31635 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
31636 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
8edf1c75 RD |
31637 | PyDict_SetItemString(d,"BU_LEFT", SWIG_PyObj_FromInt((int)wxBU_LEFT)); |
31638 | PyDict_SetItemString(d,"BU_TOP", SWIG_PyObj_FromInt((int)wxBU_TOP)); | |
31639 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_PyObj_FromInt((int)wxBU_RIGHT)); | |
31640 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_PyObj_FromInt((int)wxBU_BOTTOM)); | |
31641 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_PyObj_FromInt((int)wxBU_EXACTFIT)); | |
31642 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_PyObj_FromInt((int)wxBU_AUTODRAW)); | |
d03fd34d | 31643 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
8edf1c75 RD |
31644 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_PyObj_FromInt((int)wxCHK_2STATE)); |
31645 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_PyObj_FromInt((int)wxCHK_3STATE)); | |
31646 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_PyObj_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
31647 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_PyObj_FromInt((int)wxCHK_UNCHECKED)); | |
31648 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_PyObj_FromInt((int)wxCHK_CHECKED)); | |
31649 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_PyObj_FromInt((int)wxCHK_UNDETERMINED)); | |
d03fd34d RD |
31650 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
31651 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
31652 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
8edf1c75 RD |
31653 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_PyObj_FromInt((int)wxGA_HORIZONTAL)); |
31654 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_PyObj_FromInt((int)wxGA_VERTICAL)); | |
31655 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_PyObj_FromInt((int)wxGA_SMOOTH)); | |
31656 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_PyObj_FromInt((int)wxGA_PROGRESSBAR)); | |
d03fd34d RD |
31657 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
31658 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
31659 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
31660 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
31661 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
8edf1c75 RD |
31662 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_PyObj_FromInt((int)wxTE_NO_VSCROLL)); |
31663 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_PyObj_FromInt((int)wxTE_AUTO_SCROLL)); | |
31664 | PyDict_SetItemString(d,"TE_READONLY", SWIG_PyObj_FromInt((int)wxTE_READONLY)); | |
31665 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_PyObj_FromInt((int)wxTE_MULTILINE)); | |
31666 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_PyObj_FromInt((int)wxTE_PROCESS_TAB)); | |
31667 | PyDict_SetItemString(d,"TE_LEFT", SWIG_PyObj_FromInt((int)wxTE_LEFT)); | |
31668 | PyDict_SetItemString(d,"TE_CENTER", SWIG_PyObj_FromInt((int)wxTE_CENTER)); | |
31669 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_PyObj_FromInt((int)wxTE_RIGHT)); | |
31670 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_PyObj_FromInt((int)wxTE_CENTRE)); | |
31671 | PyDict_SetItemString(d,"TE_RICH", SWIG_PyObj_FromInt((int)wxTE_RICH)); | |
31672 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_PyObj_FromInt((int)wxTE_PROCESS_ENTER)); | |
31673 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_PyObj_FromInt((int)wxTE_PASSWORD)); | |
31674 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_PyObj_FromInt((int)wxTE_AUTO_URL)); | |
31675 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_PyObj_FromInt((int)wxTE_NOHIDESEL)); | |
31676 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_PyObj_FromInt((int)wxTE_DONTWRAP)); | |
31677 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_PyObj_FromInt((int)wxTE_LINEWRAP)); | |
31678 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_PyObj_FromInt((int)wxTE_WORDWRAP)); | |
31679 | PyDict_SetItemString(d,"TE_RICH2", SWIG_PyObj_FromInt((int)wxTE_RICH2)); | |
31680 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
31681 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
31682 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
31683 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
31684 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
31685 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
31686 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
31687 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
31688 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
31689 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
31690 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
31691 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
31692 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
31693 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT)); | |
31694 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
31695 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
31696 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
31697 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TABS)); | |
4e760a36 RD |
31698 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_PyObj_FromInt((int)wxTE_HT_UNKNOWN)); |
31699 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_PyObj_FromInt((int)wxTE_HT_BEFORE)); | |
31700 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_PyObj_FromInt((int)wxTE_HT_ON_TEXT)); | |
31701 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_PyObj_FromInt((int)wxTE_HT_BELOW)); | |
31702 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_PyObj_FromInt((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
31703 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
31704 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
31705 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
31706 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
d03fd34d RD |
31707 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
31708 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
31709 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
8edf1c75 RD |
31710 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSP_HORIZONTAL)); |
31711 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_PyObj_FromInt((int)wxSP_VERTICAL)); | |
31712 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_PyObj_FromInt((int)wxSP_ARROW_KEYS)); | |
31713 | PyDict_SetItemString(d,"SP_WRAP", SWIG_PyObj_FromInt((int)wxSP_WRAP)); | |
d14a1e28 | 31714 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
d03fd34d RD |
31715 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
31716 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
31717 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
31718 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 31719 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
d03fd34d | 31720 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
8edf1c75 RD |
31721 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_PyObj_FromInt((int)wxNB_FIXEDWIDTH)); |
31722 | PyDict_SetItemString(d,"NB_TOP", SWIG_PyObj_FromInt((int)wxNB_TOP)); | |
31723 | PyDict_SetItemString(d,"NB_LEFT", SWIG_PyObj_FromInt((int)wxNB_LEFT)); | |
31724 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_PyObj_FromInt((int)wxNB_RIGHT)); | |
31725 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_PyObj_FromInt((int)wxNB_BOTTOM)); | |
31726 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_PyObj_FromInt((int)wxNB_MULTILINE)); | |
31727 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
31728 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONICON)); | |
31729 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
31730 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
31731 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
31732 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
8edf1c75 RD |
31733 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_PyObj_FromInt((int)wxLB_DEFAULT)); |
31734 | PyDict_SetItemString(d,"LB_TOP", SWIG_PyObj_FromInt((int)wxLB_TOP)); | |
31735 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_PyObj_FromInt((int)wxLB_BOTTOM)); | |
31736 | PyDict_SetItemString(d,"LB_LEFT", SWIG_PyObj_FromInt((int)wxLB_LEFT)); | |
31737 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_PyObj_FromInt((int)wxLB_RIGHT)); | |
31738 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_PyObj_FromInt((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
31739 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
31740 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
8edf1c75 RD |
31741 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_BUTTON)); |
31742 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
31743 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
31744 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_PyObj_FromInt((int)wxTB_HORIZONTAL)); | |
31745 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_PyObj_FromInt((int)wxTB_VERTICAL)); | |
31746 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_PyObj_FromInt((int)wxTB_3DBUTTONS)); | |
31747 | PyDict_SetItemString(d,"TB_FLAT", SWIG_PyObj_FromInt((int)wxTB_FLAT)); | |
31748 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_PyObj_FromInt((int)wxTB_DOCKABLE)); | |
31749 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_PyObj_FromInt((int)wxTB_NOICONS)); | |
31750 | PyDict_SetItemString(d,"TB_TEXT", SWIG_PyObj_FromInt((int)wxTB_TEXT)); | |
31751 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_PyObj_FromInt((int)wxTB_NODIVIDER)); | |
31752 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_PyObj_FromInt((int)wxTB_NOALIGN)); | |
31753 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_PyObj_FromInt((int)wxTB_HORZ_LAYOUT)); | |
31754 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_PyObj_FromInt((int)wxTB_HORZ_TEXT)); | |
d03fd34d | 31755 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
8edf1c75 RD |
31756 | PyDict_SetItemString(d,"LC_VRULES", SWIG_PyObj_FromInt((int)wxLC_VRULES)); |
31757 | PyDict_SetItemString(d,"LC_HRULES", SWIG_PyObj_FromInt((int)wxLC_HRULES)); | |
31758 | PyDict_SetItemString(d,"LC_ICON", SWIG_PyObj_FromInt((int)wxLC_ICON)); | |
31759 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_PyObj_FromInt((int)wxLC_SMALL_ICON)); | |
31760 | PyDict_SetItemString(d,"LC_LIST", SWIG_PyObj_FromInt((int)wxLC_LIST)); | |
31761 | PyDict_SetItemString(d,"LC_REPORT", SWIG_PyObj_FromInt((int)wxLC_REPORT)); | |
31762 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLC_ALIGN_TOP)); | |
31763 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLC_ALIGN_LEFT)); | |
31764 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_PyObj_FromInt((int)wxLC_AUTOARRANGE)); | |
31765 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_PyObj_FromInt((int)wxLC_VIRTUAL)); | |
31766 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxLC_EDIT_LABELS)); | |
31767 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_HEADER)); | |
31768 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_SORT_HEADER)); | |
31769 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_PyObj_FromInt((int)wxLC_SINGLE_SEL)); | |
31770 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_ASCENDING)); | |
31771 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_DESCENDING)); | |
31772 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_PyObj_FromInt((int)wxLC_MASK_TYPE)); | |
31773 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_PyObj_FromInt((int)wxLC_MASK_ALIGN)); | |
31774 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_PyObj_FromInt((int)wxLC_MASK_SORT)); | |
31775 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_PyObj_FromInt((int)wxLIST_MASK_STATE)); | |
31776 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_PyObj_FromInt((int)wxLIST_MASK_TEXT)); | |
31777 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_PyObj_FromInt((int)wxLIST_MASK_IMAGE)); | |
31778 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_PyObj_FromInt((int)wxLIST_MASK_DATA)); | |
31779 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_PyObj_FromInt((int)wxLIST_SET_ITEM)); | |
31780 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_PyObj_FromInt((int)wxLIST_MASK_WIDTH)); | |
31781 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_PyObj_FromInt((int)wxLIST_MASK_FORMAT)); | |
31782 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_PyObj_FromInt((int)wxLIST_STATE_DONTCARE)); | |
31783 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
31784 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FOCUSED)); | |
31785 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_PyObj_FromInt((int)wxLIST_STATE_SELECTED)); | |
31786 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_PyObj_FromInt((int)wxLIST_STATE_CUT)); | |
31787 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DISABLED)); | |
31788 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FILTERED)); | |
31789 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_PyObj_FromInt((int)wxLIST_STATE_INUSE)); | |
31790 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_PyObj_FromInt((int)wxLIST_STATE_PICKED)); | |
31791 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_PyObj_FromInt((int)wxLIST_STATE_SOURCE)); | |
31792 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
31793 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_BELOW)); | |
31794 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
31795 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
31796 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
31797 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
31798 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
31799 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
31800 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
31801 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
31802 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ABOVE)); | |
31803 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ALL)); | |
31804 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_PyObj_FromInt((int)wxLIST_NEXT_BELOW)); | |
31805 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_LEFT)); | |
31806 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_RIGHT)); | |
31807 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
31808 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_LEFT)); | |
31809 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_TOP)); | |
31810 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
31811 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_LEFT)); | |
31812 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
31813 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
31814 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTER)); | |
31815 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE)); | |
31816 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
31817 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_PyObj_FromInt((int)wxLIST_RECT_BOUNDS)); | |
31818 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_PyObj_FromInt((int)wxLIST_RECT_ICON)); | |
31819 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_PyObj_FromInt((int)wxLIST_RECT_LABEL)); | |
31820 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_PyObj_FromInt((int)wxLIST_FIND_UP)); | |
31821 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_PyObj_FromInt((int)wxLIST_FIND_DOWN)); | |
31822 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FIND_LEFT)); | |
31823 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
31824 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
31825 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
31826 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
31827 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
31828 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
31829 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
31830 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
31831 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
31832 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
31833 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
31834 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
31835 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
31836 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
31837 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
31838 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
31839 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
31840 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
31841 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
31842 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
31843 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
31844 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
31845 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
31846 | ||
31847 | // Map renamed classes back to their common name for OOR | |
31848 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
31849 | ||
d03fd34d | 31850 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
8edf1c75 RD |
31851 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_NO_BUTTONS)); |
31852 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_HAS_BUTTONS)); | |
31853 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_PyObj_FromInt((int)wxTR_NO_LINES)); | |
31854 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_PyObj_FromInt((int)wxTR_LINES_AT_ROOT)); | |
31855 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_PyObj_FromInt((int)wxTR_SINGLE)); | |
31856 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_PyObj_FromInt((int)wxTR_MULTIPLE)); | |
31857 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_PyObj_FromInt((int)wxTR_EXTENDED)); | |
31858 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_PyObj_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
31859 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxTR_EDIT_LABELS)); | |
31860 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_PyObj_FromInt((int)wxTR_HIDE_ROOT)); | |
31861 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_PyObj_FromInt((int)wxTR_ROW_LINES)); | |
31862 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_PyObj_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
31863 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_PyObj_FromInt((int)wxTR_DEFAULT_STYLE)); | |
31864 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_TWIST_BUTTONS)); | |
31865 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_MAC_BUTTONS)); | |
31866 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_AQUA_BUTTONS)); | |
31867 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Normal)); | |
31868 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Selected)); | |
31869 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Expanded)); | |
31870 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
31871 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Max)); | |
31872 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
31873 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_BELOW)); | |
31874 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
31875 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
31876 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
31877 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
31878 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
31879 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
31880 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
31881 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
31882 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
31883 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
31884 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
31885 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
31886 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
31887 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
31888 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
31889 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
31890 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
31891 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
31892 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
31893 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
31894 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
31895 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
31896 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
31897 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
31898 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
31899 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
31900 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
31901 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
31902 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
31903 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
31904 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
9fd4be55 | 31905 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
31906 | |
31907 | // Map renamed classes back to their common name for OOR | |
31908 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
31909 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
31910 | ||
d03fd34d | 31911 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
8edf1c75 RD |
31912 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_PyObj_FromInt((int)wxDIRCTRL_DIR_ONLY)); |
31913 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_PyObj_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
31914 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_PyObj_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
31915 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_PyObj_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
31916 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
31917 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
31918 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
31919 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
31920 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
423f194a RD |
31921 | |
31922 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
31923 | ||
d14a1e28 RD |
31924 | } |
31925 |