]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
c9c7117a RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
cc6dd355 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
cc6dd355 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
cc6dd355 | 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) | |
a41e16b6 | 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 | ||
994141e6 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
cc6dd355 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 | |
994141e6 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 | ||
9d1d5697 | 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] | |
994141e6 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 | ||
994141e6 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 | ||
b2dc1044 RD |
370 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
371 | static const wxString wxPyEmptyString(wxEmptyString); | |
372 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
4d5c3d91 RD |
373 | |
374 | const wxArrayString wxPyEmptyStringArray; | |
375 | ||
b2dc1044 | 376 | static const wxString wxPyButtonNameStr(wxButtonNameStr); |
994141e6 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 | ||
b2dc1044 | 392 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
994141e6 RD |
393 | |
394 | SWIGSTATIC(bool) | |
395 | SWIG_PyObj_AsBool(PyObject *obj) | |
396 | { | |
397 | return PyObject_IsTrue(obj) ? true : false; | |
398 | } | |
399 | ||
b2dc1044 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 | |
b2dc1044 | 410 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
d14a1e28 RD |
411 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ |
412 | if (clientData) { | |
413 | wxPyClientData* data = new wxPyClientData(clientData); | |
414 | self->Insert(item, pos, data); | |
415 | } else | |
416 | self->Insert(item, pos); | |
417 | } | |
418 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
419 | wxArrayInt lst; | |
420 | self->GetSelections(lst); | |
421 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
422 | for(size_t i=0; i<lst.GetCount(); i++) { | |
423 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
424 | } | |
425 | return tup; | |
426 | } | |
c3eb6258 RD |
427 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
428 | #ifdef __WXMSW__ | |
429 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
430 | self->GetItem(item)->SetTextColour(c); | |
431 | #endif | |
432 | } | |
433 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
434 | #ifdef __WXMSW__ | |
435 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
436 | self->GetItem(item)->SetBackgroundColour(c); | |
437 | #endif | |
438 | } | |
439 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
440 | #ifdef __WXMSW__ | |
441 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
442 | self->GetItem(item)->SetFont(f); | |
443 | #endif | |
444 | } | |
b2dc1044 | 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 | } | |
b2dc1044 RD |
479 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
480 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
33b885b9 | 481 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
b2dc1044 RD |
482 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
483 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
484 | int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; } |
485 | int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; } | |
486 | int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; } | |
487 | ||
488 | #include <wx/slider.h> | |
489 | ||
d14a1e28 | 490 | |
b2dc1044 | 491 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
33b885b9 | 492 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 493 | |
f87da722 | 494 | #if defined(__WXMAC__) || defined(__WXX11__) |
d14a1e28 RD |
495 | // implement dummy classes and such for wxMac |
496 | ||
497 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
498 | ||
499 | class wxToggleButton : public wxControl | |
500 | { | |
501 | public: | |
502 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
503 | const wxPoint&, const wxSize&, long, | |
504 | const wxValidator&, const wxString&) | |
39f61e25 | 505 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
506 | |
507 | wxToggleButton() | |
39f61e25 | 508 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
509 | }; |
510 | #endif | |
511 | ||
b2dc1044 | 512 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); |
994141e6 RD |
513 | |
514 | SWIGSTATIC(PyObject* ) | |
515 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
516 | { | |
517 | return (value > (unsigned long)(LONG_MAX)) ? | |
518 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
519 | } | |
520 | ||
b2dc1044 | 521 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
d14a1e28 RD |
522 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
523 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
524 | if (udata) { | |
525 | Py_INCREF(udata->m_obj); | |
526 | return udata->m_obj; | |
527 | } else { | |
528 | Py_INCREF(Py_None); | |
529 | return Py_None; | |
530 | } | |
531 | } | |
532 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
533 | self->SetClientData(new wxPyUserData(clientData)); | |
534 | } | |
535 | 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){ | |
536 | wxPyUserData* udata = NULL; | |
537 | if (clientData && clientData != Py_None) | |
538 | udata = new wxPyUserData(clientData); | |
539 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
540 | shortHelp, longHelp, udata); | |
541 | } | |
542 | 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){ | |
543 | wxPyUserData* udata = NULL; | |
544 | if (clientData && clientData != Py_None) | |
545 | udata = new wxPyUserData(clientData); | |
546 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
547 | shortHelp, longHelp, udata); | |
548 | } | |
549 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
550 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
551 | if (udata) { | |
552 | Py_INCREF(udata->m_obj); | |
553 | return udata->m_obj; | |
554 | } else { | |
555 | Py_INCREF(Py_None); | |
556 | return Py_None; | |
557 | } | |
558 | } | |
559 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
560 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
561 | } | |
562 | ||
563 | #include <wx/listctrl.h> | |
564 | ||
d14a1e28 | 565 | |
33b885b9 | 566 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
d14a1e28 RD |
567 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
568 | // Python aware sorting function for wxPyListCtrl | |
569 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
570 | int retval = 0; | |
571 | PyObject* func = (PyObject*)funcPtr; | |
572 | wxPyBeginBlockThreads(); | |
573 | ||
574 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
575 | PyObject* result = PyEval_CallObject(func, args); | |
576 | Py_DECREF(args); | |
577 | if (result) { | |
578 | retval = PyInt_AsLong(result); | |
579 | Py_DECREF(result); | |
580 | } | |
581 | ||
582 | wxPyEndBlockThreads(); | |
583 | return retval; | |
584 | } | |
585 | ||
586 | // C++ Version of a Python aware class | |
587 | class wxPyListCtrl : public wxListCtrl { | |
588 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
589 | public: | |
590 | wxPyListCtrl() : wxListCtrl() {} | |
591 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
592 | const wxPoint& pos, | |
593 | const wxSize& size, | |
594 | long style, | |
595 | const wxValidator& validator, | |
596 | const wxString& name) : | |
597 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
598 | ||
599 | bool Create(wxWindow* parent, wxWindowID id, | |
600 | const wxPoint& pos, | |
601 | const wxSize& size, | |
602 | long style, | |
603 | const wxValidator& validator, | |
604 | const wxString& name) { | |
605 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
606 | } | |
607 | ||
608 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
609 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
610 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
611 | ||
612 | PYPRIVATE; | |
613 | }; | |
614 | ||
615 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
616 | ||
617 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
618 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
619 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
620 | ||
621 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
622 | wxListItem item; | |
623 | item.SetMask( wxLIST_MASK_STATE | | |
624 | wxLIST_MASK_TEXT | | |
625 | wxLIST_MASK_IMAGE | | |
626 | wxLIST_MASK_DATA | | |
627 | wxLIST_SET_ITEM | | |
628 | wxLIST_MASK_WIDTH | | |
629 | wxLIST_MASK_FORMAT | |
630 | ); | |
631 | if (self->GetColumn(col, item)) | |
632 | return new wxListItem(item); | |
633 | else | |
634 | return NULL; | |
635 | } | |
636 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
637 | wxListItem* info = new wxListItem; | |
638 | info->m_itemId = itemId; | |
639 | info->m_col = col; | |
640 | info->m_mask = 0xFFFF; | |
641 | self->GetItem(*info); | |
642 | return info; | |
643 | } | |
644 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
645 | wxPoint pos; | |
646 | self->GetItemPosition(item, pos); | |
647 | return pos; | |
648 | } | |
649 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
650 | wxRect rect; | |
651 | self->GetItemRect(item, rect, code); | |
652 | return rect; | |
653 | } | |
654 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
655 | if (!PyCallable_Check(func)) | |
e811c8ce | 656 | return False; |
d14a1e28 RD |
657 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
658 | } | |
659 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
660 | ||
661 | ||
662 | ||
663 | return (wxWindow*)self->m_mainWin; | |
664 | ||
665 | } | |
666 | ||
667 | #include <wx/treectrl.h> | |
668 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 669 | |
33b885b9 | 670 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
22faec7d RD |
671 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } |
672 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
673 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } |
674 | // C++ version of Python aware wxTreeCtrl | |
675 | class wxPyTreeCtrl : public wxTreeCtrl { | |
676 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
677 | public: | |
678 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
679 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
680 | const wxPoint& pos, | |
681 | const wxSize& size, | |
682 | long style, | |
683 | const wxValidator& validator, | |
684 | const wxString& name) : | |
685 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
686 | ||
687 | bool Create(wxWindow *parent, wxWindowID id, | |
688 | const wxPoint& pos, | |
689 | const wxSize& size, | |
690 | long style, | |
691 | const wxValidator& validator, | |
692 | const wxString& name) { | |
693 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
694 | } | |
695 | ||
696 | ||
697 | int OnCompareItems(const wxTreeItemId& item1, | |
698 | const wxTreeItemId& item2) { | |
699 | int rval = 0; | |
700 | bool found; | |
701 | wxPyBeginBlockThreads(); | |
702 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
e811c8ce RD |
703 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
704 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
705 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
706 | Py_DECREF(o1); | |
707 | Py_DECREF(o2); | |
708 | } | |
709 | wxPyEndBlockThreads(); | |
710 | if (! found) | |
711 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
712 | return rval; | |
713 | } | |
714 | PYPRIVATE; | |
715 | }; | |
716 | ||
717 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
718 | ||
719 | ||
994141e6 RD |
720 | |
721 | #define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong | |
722 | ||
723 | ||
724 | SWIGSTATIC(unsigned int) | |
725 | SWIG_PyObj_AsUnsignedInt(PyObject *obj) | |
726 | { | |
727 | return numeric_cast(unsigned int, | |
728 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX)); | |
729 | } | |
730 | ||
d14a1e28 RD |
731 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
732 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
733 | if (data == NULL) { | |
734 | data = new wxPyTreeItemData(); | |
735 | data->SetId(item); // set the id | |
736 | self->SetItemData(item, data); | |
737 | } | |
738 | return data; | |
739 | } | |
740 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
741 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
742 | if (data == NULL) { | |
743 | data = new wxPyTreeItemData(); | |
744 | data->SetId(item); // set the id | |
745 | self->SetItemData(item, data); | |
746 | } | |
747 | return data->GetData(); | |
748 | } | |
749 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
750 | data->SetId(item); // set the id | |
751 | self->SetItemData(item, data); | |
752 | } | |
753 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
754 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
755 | if (data == NULL) { | |
756 | data = new wxPyTreeItemData(obj); | |
757 | data->SetId(item); // set the id | |
758 | self->SetItemData(item, data); | |
759 | } else | |
760 | data->SetData(obj); | |
761 | } | |
762 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
763 | wxPyBeginBlockThreads(); | |
764 | PyObject* rval = PyList_New(0); | |
765 | wxArrayTreeItemIds array; | |
766 | size_t num, x; | |
767 | num = self->GetSelections(array); | |
768 | for (x=0; x < num; x++) { | |
769 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
e811c8ce | 770 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 RD |
771 | PyList_Append(rval, item); |
772 | } | |
773 | wxPyEndBlockThreads(); | |
774 | return rval; | |
775 | } | |
776 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
58203fa6 RD |
777 | void* cookie = 0; |
778 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
d14a1e28 RD |
779 | wxPyBeginBlockThreads(); |
780 | PyObject* tup = PyTuple_New(2); | |
58203fa6 RD |
781 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
782 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
d14a1e28 RD |
783 | wxPyEndBlockThreads(); |
784 | return tup; | |
785 | } | |
58203fa6 RD |
786 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
787 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
d14a1e28 RD |
788 | wxPyBeginBlockThreads(); |
789 | PyObject* tup = PyTuple_New(2); | |
58203fa6 RD |
790 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
791 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
d14a1e28 RD |
792 | wxPyEndBlockThreads(); |
793 | return tup; | |
794 | } | |
795 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
796 | wxRect rect; | |
797 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
798 | wxPyBeginBlockThreads(); | |
799 | wxRect* r = new wxRect(rect); | |
e811c8ce | 800 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
d14a1e28 RD |
801 | wxPyEndBlockThreads(); |
802 | return val; | |
803 | } | |
804 | else | |
805 | RETURN_NONE(); | |
806 | } | |
b2dc1044 | 807 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
d14a1e28 RD |
808 | // C++ version of Python aware wxControl |
809 | class wxPyControl : public wxControl | |
810 | { | |
811 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
812 | public: | |
813 | wxPyControl() : wxControl() {} | |
814 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
815 | const wxPoint& pos = wxDefaultPosition, | |
816 | const wxSize& size = wxDefaultSize, | |
817 | long style = 0, | |
818 | const wxValidator& validator=wxDefaultValidator, | |
819 | const wxString& name = wxPyControlNameStr) | |
820 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
821 | ||
822 | ||
823 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
824 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
825 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
826 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
827 | ||
828 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
829 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
830 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
831 | ||
832 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
833 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
834 | ||
835 | DEC_PYCALLBACK__(InitDialog); | |
836 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
837 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
838 | DEC_PYCALLBACK_BOOL_(Validate); | |
839 | ||
840 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
841 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
842 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
843 | ||
844 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
845 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
846 | ||
847 | PYPRIVATE; | |
848 | }; | |
849 | ||
850 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
851 | ||
852 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
853 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
854 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
855 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
856 | ||
857 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
858 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
859 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
860 | ||
861 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
862 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
863 | ||
864 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
865 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
866 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
867 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
868 | ||
869 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
870 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
871 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
872 | ||
873 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
874 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
875 | ||
876 | ||
877 | ||
878 | ||
879 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
e811c8ce RD |
880 | |
881 | #include <wx/generic/dragimgg.h> | |
882 | ||
d14a1e28 RD |
883 | #ifdef __cplusplus |
884 | extern "C" { | |
885 | #endif | |
b2dc1044 RD |
886 | static int _wrap_ButtonNameStr_set(PyObject *_val) { |
887 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); | |
888 | return 1; | |
889 | } | |
890 | ||
891 | ||
892 | static PyObject *_wrap_ButtonNameStr_get() { | |
893 | PyObject *pyobj; | |
894 | ||
895 | { | |
896 | #if wxUSE_UNICODE | |
897 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
898 | #else | |
899 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
900 | #endif | |
901 | } | |
902 | return pyobj; | |
903 | } | |
904 | ||
905 | ||
d14a1e28 RD |
906 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { |
907 | PyObject *resultobj; | |
908 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 909 | int arg2 ; |
d14a1e28 RD |
910 | wxString *arg3 = 0 ; |
911 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
912 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
913 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
914 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
915 | long arg6 = (long) 0 ; | |
916 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
917 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
918 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
919 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
920 | wxButton *result; | |
e811c8ce | 921 | bool temp3 = False ; |
d14a1e28 RD |
922 | wxPoint temp4 ; |
923 | wxSize temp5 ; | |
e811c8ce | 924 | bool temp8 = False ; |
d14a1e28 | 925 | PyObject * obj0 = 0 ; |
994141e6 | 926 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
927 | PyObject * obj2 = 0 ; |
928 | PyObject * obj3 = 0 ; | |
929 | PyObject * obj4 = 0 ; | |
994141e6 | 930 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
931 | PyObject * obj6 = 0 ; |
932 | PyObject * obj7 = 0 ; | |
933 | char *kwnames[] = { | |
934 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
935 | }; | |
936 | ||
994141e6 | 937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
939 | { |
940 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
941 | if (PyErr_Occurred()) SWIG_fail; | |
942 | } | |
d14a1e28 RD |
943 | { |
944 | arg3 = wxString_in_helper(obj2); | |
945 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 946 | temp3 = True; |
d14a1e28 RD |
947 | } |
948 | if (obj3) { | |
949 | { | |
950 | arg4 = &temp4; | |
951 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
952 | } | |
953 | } | |
954 | if (obj4) { | |
955 | { | |
956 | arg5 = &temp5; | |
957 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
958 | } | |
959 | } | |
994141e6 RD |
960 | if (obj5) { |
961 | { | |
962 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
963 | if (PyErr_Occurred()) SWIG_fail; | |
964 | } | |
965 | } | |
d14a1e28 RD |
966 | if (obj6) { |
967 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
968 | if (arg7 == NULL) { | |
969 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
970 | } | |
971 | } | |
972 | if (obj7) { | |
973 | { | |
974 | arg8 = wxString_in_helper(obj7); | |
975 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 976 | temp8 = True; |
d14a1e28 RD |
977 | } |
978 | } | |
979 | { | |
980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
981 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
982 | ||
983 | wxPyEndAllowThreads(__tstate); | |
984 | if (PyErr_Occurred()) SWIG_fail; | |
985 | } | |
986 | { | |
987 | resultobj = wxPyMake_wxObject(result); | |
988 | } | |
989 | { | |
990 | if (temp3) | |
991 | delete arg3; | |
992 | } | |
993 | { | |
994 | if (temp8) | |
995 | delete arg8; | |
996 | } | |
997 | return resultobj; | |
998 | fail: | |
999 | { | |
1000 | if (temp3) | |
1001 | delete arg3; | |
1002 | } | |
1003 | { | |
1004 | if (temp8) | |
1005 | delete arg8; | |
1006 | } | |
1007 | return NULL; | |
1008 | } | |
1009 | ||
1010 | ||
1011 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1012 | PyObject *resultobj; | |
1013 | wxButton *result; | |
1014 | char *kwnames[] = { | |
1015 | NULL | |
1016 | }; | |
1017 | ||
1018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1019 | { | |
1020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1021 | result = (wxButton *)new wxButton(); | |
1022 | ||
1023 | wxPyEndAllowThreads(__tstate); | |
1024 | if (PyErr_Occurred()) SWIG_fail; | |
1025 | } | |
1026 | { | |
1027 | resultobj = wxPyMake_wxObject(result); | |
1028 | } | |
1029 | return resultobj; | |
1030 | fail: | |
1031 | return NULL; | |
1032 | } | |
1033 | ||
1034 | ||
1035 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1036 | PyObject *resultobj; | |
1037 | wxButton *arg1 = (wxButton *) 0 ; | |
1038 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 1039 | int arg3 ; |
d14a1e28 RD |
1040 | wxString *arg4 = 0 ; |
1041 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1042 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1043 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1044 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1045 | long arg7 = (long) 0 ; | |
1046 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1047 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1048 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1049 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1050 | bool result; | |
e811c8ce | 1051 | bool temp4 = False ; |
d14a1e28 RD |
1052 | wxPoint temp5 ; |
1053 | wxSize temp6 ; | |
e811c8ce | 1054 | bool temp9 = False ; |
d14a1e28 RD |
1055 | PyObject * obj0 = 0 ; |
1056 | PyObject * obj1 = 0 ; | |
994141e6 | 1057 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1058 | PyObject * obj3 = 0 ; |
1059 | PyObject * obj4 = 0 ; | |
1060 | PyObject * obj5 = 0 ; | |
994141e6 | 1061 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1062 | PyObject * obj7 = 0 ; |
1063 | PyObject * obj8 = 0 ; | |
1064 | char *kwnames[] = { | |
1065 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1066 | }; | |
1067 | ||
994141e6 | 1068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1070 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
1071 | { |
1072 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1073 | if (PyErr_Occurred()) SWIG_fail; | |
1074 | } | |
d14a1e28 RD |
1075 | { |
1076 | arg4 = wxString_in_helper(obj3); | |
1077 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 1078 | temp4 = True; |
d14a1e28 RD |
1079 | } |
1080 | if (obj4) { | |
1081 | { | |
1082 | arg5 = &temp5; | |
1083 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1084 | } | |
1085 | } | |
1086 | if (obj5) { | |
1087 | { | |
1088 | arg6 = &temp6; | |
1089 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1090 | } | |
1091 | } | |
994141e6 RD |
1092 | if (obj6) { |
1093 | { | |
1094 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1095 | if (PyErr_Occurred()) SWIG_fail; | |
1096 | } | |
1097 | } | |
d14a1e28 RD |
1098 | if (obj7) { |
1099 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1100 | if (arg8 == NULL) { | |
1101 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1102 | } | |
1103 | } | |
1104 | if (obj8) { | |
1105 | { | |
1106 | arg9 = wxString_in_helper(obj8); | |
1107 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1108 | temp9 = True; |
d14a1e28 RD |
1109 | } |
1110 | } | |
1111 | { | |
1112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1113 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1114 | ||
1115 | wxPyEndAllowThreads(__tstate); | |
1116 | if (PyErr_Occurred()) SWIG_fail; | |
1117 | } | |
4d5c3d91 | 1118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1119 | { |
1120 | if (temp4) | |
1121 | delete arg4; | |
1122 | } | |
1123 | { | |
1124 | if (temp9) | |
1125 | delete arg9; | |
1126 | } | |
1127 | return resultobj; | |
1128 | fail: | |
1129 | { | |
1130 | if (temp4) | |
1131 | delete arg4; | |
1132 | } | |
1133 | { | |
1134 | if (temp9) | |
1135 | delete arg9; | |
1136 | } | |
1137 | return NULL; | |
1138 | } | |
1139 | ||
1140 | ||
1141 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1142 | PyObject *resultobj; | |
1143 | wxButton *arg1 = (wxButton *) 0 ; | |
1144 | PyObject * obj0 = 0 ; | |
1145 | char *kwnames[] = { | |
1146 | (char *) "self", NULL | |
1147 | }; | |
1148 | ||
1149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1151 | { | |
1152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1153 | (arg1)->SetDefault(); | |
1154 | ||
1155 | wxPyEndAllowThreads(__tstate); | |
1156 | if (PyErr_Occurred()) SWIG_fail; | |
1157 | } | |
1158 | Py_INCREF(Py_None); resultobj = Py_None; | |
1159 | return resultobj; | |
1160 | fail: | |
1161 | return NULL; | |
1162 | } | |
1163 | ||
1164 | ||
1165 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1166 | PyObject *resultobj; | |
1167 | wxSize result; | |
1168 | char *kwnames[] = { | |
1169 | NULL | |
1170 | }; | |
1171 | ||
1172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1173 | { | |
1174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1175 | result = wxButton::GetDefaultSize(); | |
1176 | ||
1177 | wxPyEndAllowThreads(__tstate); | |
1178 | if (PyErr_Occurred()) SWIG_fail; | |
1179 | } | |
1180 | { | |
1181 | wxSize * resultptr; | |
1182 | resultptr = new wxSize((wxSize &) result); | |
1183 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1184 | } | |
1185 | return resultobj; | |
1186 | fail: | |
1187 | return NULL; | |
1188 | } | |
1189 | ||
1190 | ||
1191 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { | |
1192 | PyObject *obj; | |
1193 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1194 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1195 | Py_INCREF(obj); | |
1196 | return Py_BuildValue((char *)""); | |
1197 | } | |
1198 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1199 | PyObject *resultobj; | |
1200 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 1201 | int arg2 ; |
d14a1e28 RD |
1202 | wxBitmap *arg3 = 0 ; |
1203 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1204 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1205 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1206 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1207 | long arg6 = (long) wxBU_AUTODRAW ; | |
1208 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1209 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1210 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1211 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1212 | wxBitmapButton *result; | |
1213 | wxPoint temp4 ; | |
1214 | wxSize temp5 ; | |
e811c8ce | 1215 | bool temp8 = False ; |
d14a1e28 | 1216 | PyObject * obj0 = 0 ; |
994141e6 | 1217 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1218 | PyObject * obj2 = 0 ; |
1219 | PyObject * obj3 = 0 ; | |
1220 | PyObject * obj4 = 0 ; | |
994141e6 | 1221 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1222 | PyObject * obj6 = 0 ; |
1223 | PyObject * obj7 = 0 ; | |
1224 | char *kwnames[] = { | |
1225 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1226 | }; | |
1227 | ||
994141e6 | 1228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 1229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1230 | { |
1231 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1232 | if (PyErr_Occurred()) SWIG_fail; | |
1233 | } | |
d14a1e28 RD |
1234 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1235 | if (arg3 == NULL) { | |
1236 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1237 | } | |
1238 | if (obj3) { | |
1239 | { | |
1240 | arg4 = &temp4; | |
1241 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1242 | } | |
1243 | } | |
1244 | if (obj4) { | |
1245 | { | |
1246 | arg5 = &temp5; | |
1247 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1248 | } | |
1249 | } | |
994141e6 RD |
1250 | if (obj5) { |
1251 | { | |
1252 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1253 | if (PyErr_Occurred()) SWIG_fail; | |
1254 | } | |
1255 | } | |
d14a1e28 RD |
1256 | if (obj6) { |
1257 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1258 | if (arg7 == NULL) { | |
1259 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1260 | } | |
1261 | } | |
1262 | if (obj7) { | |
1263 | { | |
1264 | arg8 = wxString_in_helper(obj7); | |
1265 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1266 | temp8 = True; |
d14a1e28 RD |
1267 | } |
1268 | } | |
1269 | { | |
1270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1271 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1272 | ||
1273 | wxPyEndAllowThreads(__tstate); | |
1274 | if (PyErr_Occurred()) SWIG_fail; | |
1275 | } | |
1276 | { | |
1277 | resultobj = wxPyMake_wxObject(result); | |
1278 | } | |
1279 | { | |
1280 | if (temp8) | |
1281 | delete arg8; | |
1282 | } | |
1283 | return resultobj; | |
1284 | fail: | |
1285 | { | |
1286 | if (temp8) | |
1287 | delete arg8; | |
1288 | } | |
1289 | return NULL; | |
1290 | } | |
1291 | ||
1292 | ||
1293 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1294 | PyObject *resultobj; | |
1295 | wxBitmapButton *result; | |
1296 | char *kwnames[] = { | |
1297 | NULL | |
1298 | }; | |
1299 | ||
1300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1301 | { | |
1302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1303 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1304 | ||
1305 | wxPyEndAllowThreads(__tstate); | |
1306 | if (PyErr_Occurred()) SWIG_fail; | |
1307 | } | |
1308 | { | |
1309 | resultobj = wxPyMake_wxObject(result); | |
1310 | } | |
1311 | return resultobj; | |
1312 | fail: | |
1313 | return NULL; | |
1314 | } | |
1315 | ||
1316 | ||
1317 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1318 | PyObject *resultobj; | |
1319 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1320 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 1321 | int arg3 ; |
d14a1e28 RD |
1322 | wxBitmap *arg4 = 0 ; |
1323 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1324 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1325 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1326 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1327 | long arg7 = (long) wxBU_AUTODRAW ; | |
1328 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1329 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1330 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1331 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1332 | bool result; | |
1333 | wxPoint temp5 ; | |
1334 | wxSize temp6 ; | |
e811c8ce | 1335 | bool temp9 = False ; |
d14a1e28 RD |
1336 | PyObject * obj0 = 0 ; |
1337 | PyObject * obj1 = 0 ; | |
994141e6 | 1338 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1339 | PyObject * obj3 = 0 ; |
1340 | PyObject * obj4 = 0 ; | |
1341 | PyObject * obj5 = 0 ; | |
994141e6 | 1342 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1343 | PyObject * obj7 = 0 ; |
1344 | PyObject * obj8 = 0 ; | |
1345 | char *kwnames[] = { | |
1346 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1347 | }; | |
1348 | ||
994141e6 | 1349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1351 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
1352 | { |
1353 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1354 | if (PyErr_Occurred()) SWIG_fail; | |
1355 | } | |
d14a1e28 RD |
1356 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1357 | if (arg4 == NULL) { | |
1358 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1359 | } | |
1360 | if (obj4) { | |
1361 | { | |
1362 | arg5 = &temp5; | |
1363 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1364 | } | |
1365 | } | |
1366 | if (obj5) { | |
1367 | { | |
1368 | arg6 = &temp6; | |
1369 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1370 | } | |
1371 | } | |
994141e6 RD |
1372 | if (obj6) { |
1373 | { | |
1374 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1375 | if (PyErr_Occurred()) SWIG_fail; | |
1376 | } | |
1377 | } | |
d14a1e28 RD |
1378 | if (obj7) { |
1379 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1380 | if (arg8 == NULL) { | |
1381 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1382 | } | |
1383 | } | |
1384 | if (obj8) { | |
1385 | { | |
1386 | arg9 = wxString_in_helper(obj8); | |
1387 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1388 | temp9 = True; |
d14a1e28 RD |
1389 | } |
1390 | } | |
1391 | { | |
1392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1393 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1394 | ||
1395 | wxPyEndAllowThreads(__tstate); | |
1396 | if (PyErr_Occurred()) SWIG_fail; | |
1397 | } | |
4d5c3d91 | 1398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1399 | { |
1400 | if (temp9) | |
1401 | delete arg9; | |
1402 | } | |
1403 | return resultobj; | |
1404 | fail: | |
1405 | { | |
1406 | if (temp9) | |
1407 | delete arg9; | |
1408 | } | |
1409 | return NULL; | |
1410 | } | |
1411 | ||
1412 | ||
1413 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1414 | PyObject *resultobj; | |
1415 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1416 | wxBitmap result; | |
1417 | PyObject * obj0 = 0 ; | |
1418 | char *kwnames[] = { | |
1419 | (char *) "self", NULL | |
1420 | }; | |
1421 | ||
1422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1424 | { | |
1425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1426 | result = (arg1)->GetBitmapLabel(); | |
1427 | ||
1428 | wxPyEndAllowThreads(__tstate); | |
1429 | if (PyErr_Occurred()) SWIG_fail; | |
1430 | } | |
1431 | { | |
1432 | wxBitmap * resultptr; | |
1433 | resultptr = new wxBitmap((wxBitmap &) result); | |
1434 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1435 | } | |
1436 | return resultobj; | |
1437 | fail: | |
1438 | return NULL; | |
1439 | } | |
1440 | ||
1441 | ||
1442 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1443 | PyObject *resultobj; | |
1444 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1445 | wxBitmap result; | |
1446 | PyObject * obj0 = 0 ; | |
1447 | char *kwnames[] = { | |
1448 | (char *) "self", NULL | |
1449 | }; | |
1450 | ||
1451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1453 | { | |
1454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1455 | result = (arg1)->GetBitmapDisabled(); | |
1456 | ||
1457 | wxPyEndAllowThreads(__tstate); | |
1458 | if (PyErr_Occurred()) SWIG_fail; | |
1459 | } | |
1460 | { | |
1461 | wxBitmap * resultptr; | |
1462 | resultptr = new wxBitmap((wxBitmap &) result); | |
1463 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1464 | } | |
1465 | return resultobj; | |
1466 | fail: | |
1467 | return NULL; | |
1468 | } | |
1469 | ||
1470 | ||
1471 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1472 | PyObject *resultobj; | |
1473 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1474 | wxBitmap result; | |
1475 | PyObject * obj0 = 0 ; | |
1476 | char *kwnames[] = { | |
1477 | (char *) "self", NULL | |
1478 | }; | |
1479 | ||
1480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1482 | { | |
1483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1484 | result = (arg1)->GetBitmapFocus(); | |
1485 | ||
1486 | wxPyEndAllowThreads(__tstate); | |
1487 | if (PyErr_Occurred()) SWIG_fail; | |
1488 | } | |
1489 | { | |
1490 | wxBitmap * resultptr; | |
1491 | resultptr = new wxBitmap((wxBitmap &) result); | |
1492 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1493 | } | |
1494 | return resultobj; | |
1495 | fail: | |
1496 | return NULL; | |
1497 | } | |
1498 | ||
1499 | ||
1500 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1501 | PyObject *resultobj; | |
1502 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1503 | wxBitmap result; | |
1504 | PyObject * obj0 = 0 ; | |
1505 | char *kwnames[] = { | |
1506 | (char *) "self", NULL | |
1507 | }; | |
1508 | ||
1509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1511 | { | |
1512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1513 | result = (arg1)->GetBitmapSelected(); | |
1514 | ||
1515 | wxPyEndAllowThreads(__tstate); | |
1516 | if (PyErr_Occurred()) SWIG_fail; | |
1517 | } | |
1518 | { | |
1519 | wxBitmap * resultptr; | |
1520 | resultptr = new wxBitmap((wxBitmap &) result); | |
1521 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1522 | } | |
1523 | return resultobj; | |
1524 | fail: | |
1525 | return NULL; | |
1526 | } | |
1527 | ||
1528 | ||
1529 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1530 | PyObject *resultobj; | |
1531 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1532 | wxBitmap *arg2 = 0 ; | |
1533 | PyObject * obj0 = 0 ; | |
1534 | PyObject * obj1 = 0 ; | |
1535 | char *kwnames[] = { | |
1536 | (char *) "self",(char *) "bitmap", NULL | |
1537 | }; | |
1538 | ||
1539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1541 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1542 | if (arg2 == NULL) { | |
1543 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1544 | } | |
1545 | { | |
1546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1547 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1548 | ||
1549 | wxPyEndAllowThreads(__tstate); | |
1550 | if (PyErr_Occurred()) SWIG_fail; | |
1551 | } | |
1552 | Py_INCREF(Py_None); resultobj = Py_None; | |
1553 | return resultobj; | |
1554 | fail: | |
1555 | return NULL; | |
1556 | } | |
1557 | ||
1558 | ||
1559 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1560 | PyObject *resultobj; | |
1561 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1562 | wxBitmap *arg2 = 0 ; | |
1563 | PyObject * obj0 = 0 ; | |
1564 | PyObject * obj1 = 0 ; | |
1565 | char *kwnames[] = { | |
1566 | (char *) "self",(char *) "bitmap", NULL | |
1567 | }; | |
1568 | ||
1569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1571 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1572 | if (arg2 == NULL) { | |
1573 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1574 | } | |
1575 | { | |
1576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1577 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1578 | ||
1579 | wxPyEndAllowThreads(__tstate); | |
1580 | if (PyErr_Occurred()) SWIG_fail; | |
1581 | } | |
1582 | Py_INCREF(Py_None); resultobj = Py_None; | |
1583 | return resultobj; | |
1584 | fail: | |
1585 | return NULL; | |
1586 | } | |
1587 | ||
1588 | ||
1589 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1590 | PyObject *resultobj; | |
1591 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1592 | wxBitmap *arg2 = 0 ; | |
1593 | PyObject * obj0 = 0 ; | |
1594 | PyObject * obj1 = 0 ; | |
1595 | char *kwnames[] = { | |
1596 | (char *) "self",(char *) "bitmap", NULL | |
1597 | }; | |
1598 | ||
1599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1601 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1602 | if (arg2 == NULL) { | |
1603 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1604 | } | |
1605 | { | |
1606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1607 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1608 | ||
1609 | wxPyEndAllowThreads(__tstate); | |
1610 | if (PyErr_Occurred()) SWIG_fail; | |
1611 | } | |
1612 | Py_INCREF(Py_None); resultobj = Py_None; | |
1613 | return resultobj; | |
1614 | fail: | |
1615 | return NULL; | |
1616 | } | |
1617 | ||
1618 | ||
1619 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1620 | PyObject *resultobj; | |
1621 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1622 | wxBitmap *arg2 = 0 ; | |
1623 | PyObject * obj0 = 0 ; | |
1624 | PyObject * obj1 = 0 ; | |
1625 | char *kwnames[] = { | |
1626 | (char *) "self",(char *) "bitmap", NULL | |
1627 | }; | |
1628 | ||
1629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1631 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1632 | if (arg2 == NULL) { | |
1633 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1634 | } | |
1635 | { | |
1636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1637 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1638 | ||
1639 | wxPyEndAllowThreads(__tstate); | |
1640 | if (PyErr_Occurred()) SWIG_fail; | |
1641 | } | |
1642 | Py_INCREF(Py_None); resultobj = Py_None; | |
1643 | return resultobj; | |
1644 | fail: | |
1645 | return NULL; | |
1646 | } | |
1647 | ||
1648 | ||
1649 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1650 | PyObject *resultobj; | |
1651 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1652 | int arg2 ; | |
1653 | int arg3 ; | |
1654 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1655 | PyObject * obj1 = 0 ; |
1656 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1657 | char *kwnames[] = { |
1658 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1659 | }; | |
1660 | ||
994141e6 | 1661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1663 | { |
1664 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1665 | if (PyErr_Occurred()) SWIG_fail; | |
1666 | } | |
1667 | { | |
1668 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1669 | if (PyErr_Occurred()) SWIG_fail; | |
1670 | } | |
d14a1e28 RD |
1671 | { |
1672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1673 | (arg1)->SetMargins(arg2,arg3); | |
1674 | ||
1675 | wxPyEndAllowThreads(__tstate); | |
1676 | if (PyErr_Occurred()) SWIG_fail; | |
1677 | } | |
1678 | Py_INCREF(Py_None); resultobj = Py_None; | |
1679 | return resultobj; | |
1680 | fail: | |
1681 | return NULL; | |
1682 | } | |
1683 | ||
1684 | ||
1685 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1686 | PyObject *resultobj; | |
1687 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1688 | int result; | |
1689 | PyObject * obj0 = 0 ; | |
1690 | char *kwnames[] = { | |
1691 | (char *) "self", NULL | |
1692 | }; | |
1693 | ||
1694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
1695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1696 | { | |
1697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1698 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1699 | ||
1700 | wxPyEndAllowThreads(__tstate); | |
1701 | if (PyErr_Occurred()) SWIG_fail; | |
1702 | } | |
994141e6 | 1703 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1704 | return resultobj; |
1705 | fail: | |
1706 | return NULL; | |
1707 | } | |
1708 | ||
1709 | ||
1710 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1711 | PyObject *resultobj; | |
1712 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1713 | int result; | |
1714 | PyObject * obj0 = 0 ; | |
1715 | char *kwnames[] = { | |
1716 | (char *) "self", NULL | |
1717 | }; | |
1718 | ||
1719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
1720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1721 | { | |
1722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1723 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1724 | ||
1725 | wxPyEndAllowThreads(__tstate); | |
1726 | if (PyErr_Occurred()) SWIG_fail; | |
1727 | } | |
994141e6 | 1728 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1729 | return resultobj; |
1730 | fail: | |
1731 | return NULL; | |
1732 | } | |
1733 | ||
1734 | ||
1735 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1736 | PyObject *obj; | |
1737 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1738 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1739 | Py_INCREF(obj); | |
1740 | return Py_BuildValue((char *)""); | |
1741 | } | |
b2dc1044 RD |
1742 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { |
1743 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); | |
1744 | return 1; | |
1745 | } | |
1746 | ||
1747 | ||
1748 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1749 | PyObject *pyobj; | |
1750 | ||
1751 | { | |
1752 | #if wxUSE_UNICODE | |
1753 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1754 | #else | |
1755 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1756 | #endif | |
1757 | } | |
1758 | return pyobj; | |
1759 | } | |
1760 | ||
1761 | ||
d14a1e28 RD |
1762 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
1763 | PyObject *resultobj; | |
1764 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 1765 | int arg2 ; |
d14a1e28 RD |
1766 | wxString *arg3 = 0 ; |
1767 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1768 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1769 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1770 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1771 | long arg6 = (long) 0 ; | |
1772 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1773 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1774 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1775 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1776 | wxCheckBox *result; | |
e811c8ce | 1777 | bool temp3 = False ; |
d14a1e28 RD |
1778 | wxPoint temp4 ; |
1779 | wxSize temp5 ; | |
e811c8ce | 1780 | bool temp8 = False ; |
d14a1e28 | 1781 | PyObject * obj0 = 0 ; |
994141e6 | 1782 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1783 | PyObject * obj2 = 0 ; |
1784 | PyObject * obj3 = 0 ; | |
1785 | PyObject * obj4 = 0 ; | |
994141e6 | 1786 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1787 | PyObject * obj6 = 0 ; |
1788 | PyObject * obj7 = 0 ; | |
1789 | char *kwnames[] = { | |
1790 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1791 | }; | |
1792 | ||
994141e6 | 1793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 1794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1795 | { |
1796 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1797 | if (PyErr_Occurred()) SWIG_fail; | |
1798 | } | |
d14a1e28 RD |
1799 | { |
1800 | arg3 = wxString_in_helper(obj2); | |
1801 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 1802 | temp3 = True; |
d14a1e28 RD |
1803 | } |
1804 | if (obj3) { | |
1805 | { | |
1806 | arg4 = &temp4; | |
1807 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1808 | } | |
1809 | } | |
1810 | if (obj4) { | |
1811 | { | |
1812 | arg5 = &temp5; | |
1813 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1814 | } | |
1815 | } | |
994141e6 RD |
1816 | if (obj5) { |
1817 | { | |
1818 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1819 | if (PyErr_Occurred()) SWIG_fail; | |
1820 | } | |
1821 | } | |
d14a1e28 RD |
1822 | if (obj6) { |
1823 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1824 | if (arg7 == NULL) { | |
1825 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1826 | } | |
1827 | } | |
1828 | if (obj7) { | |
1829 | { | |
1830 | arg8 = wxString_in_helper(obj7); | |
1831 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1832 | temp8 = True; |
d14a1e28 RD |
1833 | } |
1834 | } | |
1835 | { | |
1836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1837 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1838 | ||
1839 | wxPyEndAllowThreads(__tstate); | |
1840 | if (PyErr_Occurred()) SWIG_fail; | |
1841 | } | |
1842 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1843 | { | |
1844 | if (temp3) | |
1845 | delete arg3; | |
1846 | } | |
1847 | { | |
1848 | if (temp8) | |
1849 | delete arg8; | |
1850 | } | |
1851 | return resultobj; | |
1852 | fail: | |
1853 | { | |
1854 | if (temp3) | |
1855 | delete arg3; | |
1856 | } | |
1857 | { | |
1858 | if (temp8) | |
1859 | delete arg8; | |
1860 | } | |
1861 | return NULL; | |
1862 | } | |
1863 | ||
1864 | ||
1865 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1866 | PyObject *resultobj; | |
1867 | wxCheckBox *result; | |
1868 | char *kwnames[] = { | |
1869 | NULL | |
1870 | }; | |
1871 | ||
1872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
1873 | { | |
1874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1875 | result = (wxCheckBox *)new wxCheckBox(); | |
1876 | ||
1877 | wxPyEndAllowThreads(__tstate); | |
1878 | if (PyErr_Occurred()) SWIG_fail; | |
1879 | } | |
1880 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1881 | return resultobj; | |
1882 | fail: | |
1883 | return NULL; | |
1884 | } | |
1885 | ||
1886 | ||
1887 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1888 | PyObject *resultobj; | |
1889 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1890 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 1891 | int arg3 ; |
d14a1e28 RD |
1892 | wxString *arg4 = 0 ; |
1893 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1894 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1895 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1896 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1897 | long arg7 = (long) 0 ; | |
1898 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1899 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1900 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
1901 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1902 | bool result; | |
e811c8ce | 1903 | bool temp4 = False ; |
d14a1e28 RD |
1904 | wxPoint temp5 ; |
1905 | wxSize temp6 ; | |
e811c8ce | 1906 | bool temp9 = False ; |
d14a1e28 RD |
1907 | PyObject * obj0 = 0 ; |
1908 | PyObject * obj1 = 0 ; | |
994141e6 | 1909 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1910 | PyObject * obj3 = 0 ; |
1911 | PyObject * obj4 = 0 ; | |
1912 | PyObject * obj5 = 0 ; | |
994141e6 | 1913 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1914 | PyObject * obj7 = 0 ; |
1915 | PyObject * obj8 = 0 ; | |
1916 | char *kwnames[] = { | |
1917 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1918 | }; | |
1919 | ||
994141e6 | 1920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1922 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
1923 | { |
1924 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1925 | if (PyErr_Occurred()) SWIG_fail; | |
1926 | } | |
d14a1e28 RD |
1927 | { |
1928 | arg4 = wxString_in_helper(obj3); | |
1929 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 1930 | temp4 = True; |
d14a1e28 RD |
1931 | } |
1932 | if (obj4) { | |
1933 | { | |
1934 | arg5 = &temp5; | |
1935 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1936 | } | |
1937 | } | |
1938 | if (obj5) { | |
1939 | { | |
1940 | arg6 = &temp6; | |
1941 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1942 | } | |
1943 | } | |
994141e6 RD |
1944 | if (obj6) { |
1945 | { | |
1946 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1947 | if (PyErr_Occurred()) SWIG_fail; | |
1948 | } | |
1949 | } | |
d14a1e28 RD |
1950 | if (obj7) { |
1951 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1952 | if (arg8 == NULL) { | |
1953 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1954 | } | |
1955 | } | |
1956 | if (obj8) { | |
1957 | { | |
1958 | arg9 = wxString_in_helper(obj8); | |
1959 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1960 | temp9 = True; |
d14a1e28 RD |
1961 | } |
1962 | } | |
1963 | { | |
1964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1965 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1966 | ||
1967 | wxPyEndAllowThreads(__tstate); | |
1968 | if (PyErr_Occurred()) SWIG_fail; | |
1969 | } | |
4d5c3d91 | 1970 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1971 | { |
1972 | if (temp4) | |
1973 | delete arg4; | |
1974 | } | |
1975 | { | |
1976 | if (temp9) | |
1977 | delete arg9; | |
1978 | } | |
1979 | return resultobj; | |
1980 | fail: | |
1981 | { | |
1982 | if (temp4) | |
1983 | delete arg4; | |
1984 | } | |
1985 | { | |
1986 | if (temp9) | |
1987 | delete arg9; | |
1988 | } | |
1989 | return NULL; | |
1990 | } | |
1991 | ||
1992 | ||
1993 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1994 | PyObject *resultobj; | |
1995 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1996 | bool result; | |
1997 | PyObject * obj0 = 0 ; | |
1998 | char *kwnames[] = { | |
1999 | (char *) "self", NULL | |
2000 | }; | |
2001 | ||
2002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
2003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2004 | { | |
2005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2006 | result = (bool)(arg1)->GetValue(); | |
2007 | ||
2008 | wxPyEndAllowThreads(__tstate); | |
2009 | if (PyErr_Occurred()) SWIG_fail; | |
2010 | } | |
4d5c3d91 | 2011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2012 | return resultobj; |
2013 | fail: | |
2014 | return NULL; | |
2015 | } | |
2016 | ||
2017 | ||
2018 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2019 | PyObject *resultobj; | |
2020 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2021 | bool result; | |
2022 | PyObject * obj0 = 0 ; | |
2023 | char *kwnames[] = { | |
2024 | (char *) "self", NULL | |
2025 | }; | |
2026 | ||
2027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2029 | { | |
2030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2031 | result = (bool)(arg1)->IsChecked(); | |
2032 | ||
2033 | wxPyEndAllowThreads(__tstate); | |
2034 | if (PyErr_Occurred()) SWIG_fail; | |
2035 | } | |
4d5c3d91 | 2036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2037 | return resultobj; |
2038 | fail: | |
2039 | return NULL; | |
2040 | } | |
2041 | ||
2042 | ||
2043 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2044 | PyObject *resultobj; | |
2045 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2046 | bool arg2 ; | |
2047 | PyObject * obj0 = 0 ; | |
2048 | PyObject * obj1 = 0 ; | |
2049 | char *kwnames[] = { | |
2050 | (char *) "self",(char *) "state", NULL | |
2051 | }; | |
2052 | ||
2053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 2055 | { |
994141e6 | 2056 | arg2 = (bool const) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
2057 | if (PyErr_Occurred()) SWIG_fail; |
2058 | } | |
d14a1e28 RD |
2059 | { |
2060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2061 | (arg1)->SetValue(arg2); | |
2062 | ||
2063 | wxPyEndAllowThreads(__tstate); | |
2064 | if (PyErr_Occurred()) SWIG_fail; | |
2065 | } | |
2066 | Py_INCREF(Py_None); resultobj = Py_None; | |
2067 | return resultobj; | |
2068 | fail: | |
2069 | return NULL; | |
2070 | } | |
2071 | ||
2072 | ||
2073 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2074 | PyObject *resultobj; | |
2075 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2076 | int result; | |
2077 | PyObject * obj0 = 0 ; | |
2078 | char *kwnames[] = { | |
2079 | (char *) "self", NULL | |
2080 | }; | |
2081 | ||
2082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2084 | { | |
2085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2086 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2087 | ||
2088 | wxPyEndAllowThreads(__tstate); | |
2089 | if (PyErr_Occurred()) SWIG_fail; | |
2090 | } | |
994141e6 | 2091 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2092 | return resultobj; |
2093 | fail: | |
2094 | return NULL; | |
2095 | } | |
2096 | ||
2097 | ||
2098 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2099 | PyObject *resultobj; | |
2100 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2101 | int arg2 ; | |
2102 | PyObject * obj0 = 0 ; | |
994141e6 | 2103 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2104 | char *kwnames[] = { |
2105 | (char *) "self",(char *) "state", NULL | |
2106 | }; | |
2107 | ||
994141e6 | 2108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2110 | { |
2111 | arg2 = (wxCheckBoxState) SWIG_PyObj_AsInt(obj1); | |
2112 | if (PyErr_Occurred()) SWIG_fail; | |
2113 | } | |
d14a1e28 RD |
2114 | { |
2115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2116 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2117 | ||
2118 | wxPyEndAllowThreads(__tstate); | |
2119 | if (PyErr_Occurred()) SWIG_fail; | |
2120 | } | |
2121 | Py_INCREF(Py_None); resultobj = Py_None; | |
2122 | return resultobj; | |
2123 | fail: | |
2124 | return NULL; | |
2125 | } | |
2126 | ||
2127 | ||
2128 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2129 | PyObject *resultobj; | |
2130 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2131 | bool result; | |
2132 | PyObject * obj0 = 0 ; | |
2133 | char *kwnames[] = { | |
2134 | (char *) "self", NULL | |
2135 | }; | |
2136 | ||
2137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2139 | { | |
2140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2141 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2142 | ||
2143 | wxPyEndAllowThreads(__tstate); | |
2144 | if (PyErr_Occurred()) SWIG_fail; | |
2145 | } | |
4d5c3d91 | 2146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2147 | return resultobj; |
2148 | fail: | |
2149 | return NULL; | |
2150 | } | |
2151 | ||
2152 | ||
2153 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2154 | PyObject *resultobj; | |
2155 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2156 | bool result; | |
2157 | PyObject * obj0 = 0 ; | |
2158 | char *kwnames[] = { | |
2159 | (char *) "self", NULL | |
2160 | }; | |
2161 | ||
2162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2164 | { | |
2165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2166 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2167 | ||
2168 | wxPyEndAllowThreads(__tstate); | |
2169 | if (PyErr_Occurred()) SWIG_fail; | |
2170 | } | |
4d5c3d91 | 2171 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2172 | return resultobj; |
2173 | fail: | |
2174 | return NULL; | |
2175 | } | |
2176 | ||
2177 | ||
2178 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { | |
2179 | PyObject *obj; | |
2180 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2181 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2182 | Py_INCREF(obj); | |
2183 | return Py_BuildValue((char *)""); | |
2184 | } | |
b2dc1044 RD |
2185 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { |
2186 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); | |
2187 | return 1; | |
2188 | } | |
2189 | ||
2190 | ||
2191 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2192 | PyObject *pyobj; | |
2193 | ||
2194 | { | |
2195 | #if wxUSE_UNICODE | |
2196 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2197 | #else | |
2198 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2199 | #endif | |
2200 | } | |
2201 | return pyobj; | |
2202 | } | |
2203 | ||
2204 | ||
d14a1e28 RD |
2205 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { |
2206 | PyObject *resultobj; | |
2207 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 2208 | int arg2 ; |
d14a1e28 RD |
2209 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2210 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2211 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2212 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
2213 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
2214 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2215 | long arg6 = (long) 0 ; | |
2216 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2217 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2218 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2219 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
2220 | wxChoice *result; |
2221 | wxPoint temp3 ; | |
2222 | wxSize temp4 ; | |
3adfb63b | 2223 | bool temp5 = False ; |
e811c8ce | 2224 | bool temp8 = False ; |
d14a1e28 | 2225 | PyObject * obj0 = 0 ; |
994141e6 | 2226 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2227 | PyObject * obj2 = 0 ; |
2228 | PyObject * obj3 = 0 ; | |
2229 | PyObject * obj4 = 0 ; | |
994141e6 | 2230 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2231 | PyObject * obj6 = 0 ; |
2232 | PyObject * obj7 = 0 ; | |
2233 | char *kwnames[] = { | |
2234 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2235 | }; | |
2236 | ||
994141e6 | 2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 2238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2239 | { |
2240 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2241 | if (PyErr_Occurred()) SWIG_fail; | |
2242 | } | |
d14a1e28 RD |
2243 | if (obj2) { |
2244 | { | |
2245 | arg3 = &temp3; | |
2246 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2247 | } | |
2248 | } | |
2249 | if (obj3) { | |
2250 | { | |
2251 | arg4 = &temp4; | |
2252 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2253 | } | |
2254 | } | |
2255 | if (obj4) { | |
2256 | { | |
4d5c3d91 RD |
2257 | if (! PySequence_Check(obj4)) { |
2258 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2259 | SWIG_fail; | |
2260 | } | |
2261 | arg5 = new wxArrayString; | |
3adfb63b | 2262 | temp5 = True; |
4d5c3d91 RD |
2263 | int i, len=PySequence_Length(obj4); |
2264 | for (i=0; i<len; i++) { | |
2265 | PyObject* item = PySequence_GetItem(obj4, i); | |
2266 | #if wxUSE_UNICODE | |
2267 | PyObject* str = PyObject_Unicode(item); | |
2268 | #else | |
2269 | PyObject* str = PyObject_Str(item); | |
2270 | #endif | |
2271 | arg5->Add(Py2wxString(str)); | |
2272 | Py_DECREF(item); | |
2273 | Py_DECREF(str); | |
2274 | } | |
d14a1e28 RD |
2275 | } |
2276 | } | |
994141e6 RD |
2277 | if (obj5) { |
2278 | { | |
4d5c3d91 | 2279 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
994141e6 RD |
2280 | if (PyErr_Occurred()) SWIG_fail; |
2281 | } | |
2282 | } | |
d14a1e28 | 2283 | if (obj6) { |
4d5c3d91 RD |
2284 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2285 | if (arg7 == NULL) { | |
d14a1e28 RD |
2286 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2287 | } | |
2288 | } | |
2289 | if (obj7) { | |
2290 | { | |
4d5c3d91 RD |
2291 | arg8 = wxString_in_helper(obj7); |
2292 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 2293 | temp8 = True; |
d14a1e28 RD |
2294 | } |
2295 | } | |
2296 | { | |
2297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 2298 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
2299 | |
2300 | wxPyEndAllowThreads(__tstate); | |
2301 | if (PyErr_Occurred()) SWIG_fail; | |
2302 | } | |
2303 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2304 | { | |
3adfb63b | 2305 | if (temp5) delete arg5; |
d14a1e28 RD |
2306 | } |
2307 | { | |
2308 | if (temp8) | |
4d5c3d91 | 2309 | delete arg8; |
d14a1e28 RD |
2310 | } |
2311 | return resultobj; | |
2312 | fail: | |
2313 | { | |
3adfb63b | 2314 | if (temp5) delete arg5; |
d14a1e28 RD |
2315 | } |
2316 | { | |
2317 | if (temp8) | |
4d5c3d91 | 2318 | delete arg8; |
d14a1e28 RD |
2319 | } |
2320 | return NULL; | |
2321 | } | |
2322 | ||
2323 | ||
2324 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2325 | PyObject *resultobj; | |
2326 | wxChoice *result; | |
2327 | char *kwnames[] = { | |
2328 | NULL | |
2329 | }; | |
2330 | ||
2331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2332 | { | |
2333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2334 | result = (wxChoice *)new wxChoice(); | |
2335 | ||
2336 | wxPyEndAllowThreads(__tstate); | |
2337 | if (PyErr_Occurred()) SWIG_fail; | |
2338 | } | |
2339 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2340 | return resultobj; | |
2341 | fail: | |
2342 | return NULL; | |
2343 | } | |
2344 | ||
2345 | ||
2346 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2347 | PyObject *resultobj; | |
2348 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2349 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 2350 | int arg3 ; |
d14a1e28 RD |
2351 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2352 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2353 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2354 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
2355 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2356 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2357 | long arg7 = (long) 0 ; | |
2358 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2359 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2360 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2361 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
2362 | bool result; |
2363 | wxPoint temp4 ; | |
2364 | wxSize temp5 ; | |
3adfb63b | 2365 | bool temp6 = False ; |
e811c8ce | 2366 | bool temp9 = False ; |
d14a1e28 RD |
2367 | PyObject * obj0 = 0 ; |
2368 | PyObject * obj1 = 0 ; | |
994141e6 | 2369 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2370 | PyObject * obj3 = 0 ; |
2371 | PyObject * obj4 = 0 ; | |
2372 | PyObject * obj5 = 0 ; | |
994141e6 | 2373 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2374 | PyObject * obj7 = 0 ; |
2375 | PyObject * obj8 = 0 ; | |
2376 | char *kwnames[] = { | |
2377 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2378 | }; | |
2379 | ||
994141e6 | 2380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
2381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2382 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
2383 | { |
2384 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2385 | if (PyErr_Occurred()) SWIG_fail; | |
2386 | } | |
d14a1e28 RD |
2387 | if (obj3) { |
2388 | { | |
2389 | arg4 = &temp4; | |
2390 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2391 | } | |
2392 | } | |
2393 | if (obj4) { | |
2394 | { | |
2395 | arg5 = &temp5; | |
2396 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2397 | } | |
2398 | } | |
2399 | if (obj5) { | |
2400 | { | |
4d5c3d91 RD |
2401 | if (! PySequence_Check(obj5)) { |
2402 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2403 | SWIG_fail; | |
2404 | } | |
2405 | arg6 = new wxArrayString; | |
3adfb63b | 2406 | temp6 = True; |
4d5c3d91 RD |
2407 | int i, len=PySequence_Length(obj5); |
2408 | for (i=0; i<len; i++) { | |
2409 | PyObject* item = PySequence_GetItem(obj5, i); | |
2410 | #if wxUSE_UNICODE | |
2411 | PyObject* str = PyObject_Unicode(item); | |
2412 | #else | |
2413 | PyObject* str = PyObject_Str(item); | |
2414 | #endif | |
2415 | arg6->Add(Py2wxString(str)); | |
2416 | Py_DECREF(item); | |
2417 | Py_DECREF(str); | |
2418 | } | |
d14a1e28 RD |
2419 | } |
2420 | } | |
994141e6 RD |
2421 | if (obj6) { |
2422 | { | |
4d5c3d91 | 2423 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
994141e6 RD |
2424 | if (PyErr_Occurred()) SWIG_fail; |
2425 | } | |
2426 | } | |
d14a1e28 | 2427 | if (obj7) { |
4d5c3d91 RD |
2428 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2429 | if (arg8 == NULL) { | |
d14a1e28 RD |
2430 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2431 | } | |
2432 | } | |
2433 | if (obj8) { | |
2434 | { | |
4d5c3d91 RD |
2435 | arg9 = wxString_in_helper(obj8); |
2436 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 2437 | temp9 = True; |
d14a1e28 RD |
2438 | } |
2439 | } | |
2440 | { | |
2441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 2442 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
2443 | |
2444 | wxPyEndAllowThreads(__tstate); | |
2445 | if (PyErr_Occurred()) SWIG_fail; | |
2446 | } | |
4d5c3d91 | 2447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 2448 | { |
3adfb63b | 2449 | if (temp6) delete arg6; |
d14a1e28 RD |
2450 | } |
2451 | { | |
2452 | if (temp9) | |
4d5c3d91 | 2453 | delete arg9; |
d14a1e28 RD |
2454 | } |
2455 | return resultobj; | |
2456 | fail: | |
2457 | { | |
3adfb63b | 2458 | if (temp6) delete arg6; |
d14a1e28 RD |
2459 | } |
2460 | { | |
2461 | if (temp9) | |
4d5c3d91 | 2462 | delete arg9; |
d14a1e28 RD |
2463 | } |
2464 | return NULL; | |
2465 | } | |
2466 | ||
2467 | ||
d14a1e28 RD |
2468 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2469 | PyObject *resultobj; | |
2470 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2471 | int arg2 ; | |
2472 | PyObject * obj0 = 0 ; | |
994141e6 | 2473 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2474 | char *kwnames[] = { |
2475 | (char *) "self",(char *) "n", NULL | |
2476 | }; | |
2477 | ||
994141e6 | 2478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2480 | { |
2481 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
2482 | if (PyErr_Occurred()) SWIG_fail; | |
2483 | } | |
d14a1e28 RD |
2484 | { |
2485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2486 | (arg1)->SetSelection(arg2); | |
2487 | ||
2488 | wxPyEndAllowThreads(__tstate); | |
2489 | if (PyErr_Occurred()) SWIG_fail; | |
2490 | } | |
2491 | Py_INCREF(Py_None); resultobj = Py_None; | |
2492 | return resultobj; | |
2493 | fail: | |
2494 | return NULL; | |
2495 | } | |
2496 | ||
2497 | ||
2498 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2499 | PyObject *resultobj; | |
2500 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2501 | wxString *arg2 = 0 ; | |
e811c8ce | 2502 | bool temp2 = False ; |
d14a1e28 RD |
2503 | PyObject * obj0 = 0 ; |
2504 | PyObject * obj1 = 0 ; | |
2505 | char *kwnames[] = { | |
2506 | (char *) "self",(char *) "string", NULL | |
2507 | }; | |
2508 | ||
2509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2511 | { | |
2512 | arg2 = wxString_in_helper(obj1); | |
2513 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2514 | temp2 = True; |
d14a1e28 RD |
2515 | } |
2516 | { | |
2517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2518 | (arg1)->SetStringSelection((wxString const &)*arg2); | |
2519 | ||
2520 | wxPyEndAllowThreads(__tstate); | |
2521 | if (PyErr_Occurred()) SWIG_fail; | |
2522 | } | |
2523 | Py_INCREF(Py_None); resultobj = Py_None; | |
2524 | { | |
2525 | if (temp2) | |
2526 | delete arg2; | |
2527 | } | |
2528 | return resultobj; | |
2529 | fail: | |
2530 | { | |
2531 | if (temp2) | |
2532 | delete arg2; | |
2533 | } | |
2534 | return NULL; | |
2535 | } | |
2536 | ||
2537 | ||
2538 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2539 | PyObject *resultobj; | |
2540 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2541 | int arg2 ; | |
2542 | wxString *arg3 = 0 ; | |
e811c8ce | 2543 | bool temp3 = False ; |
d14a1e28 | 2544 | PyObject * obj0 = 0 ; |
994141e6 | 2545 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2546 | PyObject * obj2 = 0 ; |
2547 | char *kwnames[] = { | |
fcafa8a9 | 2548 | (char *) "self",(char *) "n",(char *) "string", NULL |
d14a1e28 RD |
2549 | }; |
2550 | ||
994141e6 | 2551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2553 | { |
2554 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2555 | if (PyErr_Occurred()) SWIG_fail; | |
2556 | } | |
d14a1e28 RD |
2557 | { |
2558 | arg3 = wxString_in_helper(obj2); | |
2559 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2560 | temp3 = True; |
d14a1e28 RD |
2561 | } |
2562 | { | |
2563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2564 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2565 | ||
2566 | wxPyEndAllowThreads(__tstate); | |
2567 | if (PyErr_Occurred()) SWIG_fail; | |
2568 | } | |
2569 | Py_INCREF(Py_None); resultobj = Py_None; | |
2570 | { | |
2571 | if (temp3) | |
2572 | delete arg3; | |
2573 | } | |
2574 | return resultobj; | |
2575 | fail: | |
2576 | { | |
2577 | if (temp3) | |
2578 | delete arg3; | |
2579 | } | |
2580 | return NULL; | |
2581 | } | |
2582 | ||
2583 | ||
2584 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2585 | PyObject *obj; | |
2586 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2587 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2588 | Py_INCREF(obj); | |
2589 | return Py_BuildValue((char *)""); | |
2590 | } | |
b2dc1044 RD |
2591 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { |
2592 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); | |
2593 | return 1; | |
2594 | } | |
2595 | ||
2596 | ||
2597 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2598 | PyObject *pyobj; | |
2599 | ||
2600 | { | |
2601 | #if wxUSE_UNICODE | |
2602 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2603 | #else | |
2604 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2605 | #endif | |
2606 | } | |
2607 | return pyobj; | |
2608 | } | |
2609 | ||
2610 | ||
d14a1e28 RD |
2611 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2612 | PyObject *resultobj; | |
2613 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 2614 | int arg2 ; |
d14a1e28 RD |
2615 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2616 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2617 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2618 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2619 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2620 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
2621 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2622 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2623 | long arg7 = (long) 0 ; | |
2624 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2625 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2626 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2627 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 2628 | wxComboBox *result; |
e811c8ce | 2629 | bool temp3 = False ; |
d14a1e28 RD |
2630 | wxPoint temp4 ; |
2631 | wxSize temp5 ; | |
3adfb63b | 2632 | bool temp6 = False ; |
e811c8ce | 2633 | bool temp9 = False ; |
d14a1e28 | 2634 | PyObject * obj0 = 0 ; |
994141e6 | 2635 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2636 | PyObject * obj2 = 0 ; |
2637 | PyObject * obj3 = 0 ; | |
2638 | PyObject * obj4 = 0 ; | |
2639 | PyObject * obj5 = 0 ; | |
994141e6 | 2640 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2641 | PyObject * obj7 = 0 ; |
2642 | PyObject * obj8 = 0 ; | |
2643 | char *kwnames[] = { | |
2644 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2645 | }; | |
2646 | ||
994141e6 | 2647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 2648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2649 | { |
2650 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2651 | if (PyErr_Occurred()) SWIG_fail; | |
2652 | } | |
d14a1e28 RD |
2653 | if (obj2) { |
2654 | { | |
2655 | arg3 = wxString_in_helper(obj2); | |
2656 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2657 | temp3 = True; |
d14a1e28 RD |
2658 | } |
2659 | } | |
2660 | if (obj3) { | |
2661 | { | |
2662 | arg4 = &temp4; | |
2663 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2664 | } | |
2665 | } | |
2666 | if (obj4) { | |
2667 | { | |
2668 | arg5 = &temp5; | |
2669 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2670 | } | |
2671 | } | |
2672 | if (obj5) { | |
2673 | { | |
4d5c3d91 RD |
2674 | if (! PySequence_Check(obj5)) { |
2675 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2676 | SWIG_fail; | |
2677 | } | |
2678 | arg6 = new wxArrayString; | |
3adfb63b | 2679 | temp6 = True; |
4d5c3d91 RD |
2680 | int i, len=PySequence_Length(obj5); |
2681 | for (i=0; i<len; i++) { | |
2682 | PyObject* item = PySequence_GetItem(obj5, i); | |
2683 | #if wxUSE_UNICODE | |
2684 | PyObject* str = PyObject_Unicode(item); | |
2685 | #else | |
2686 | PyObject* str = PyObject_Str(item); | |
2687 | #endif | |
2688 | arg6->Add(Py2wxString(str)); | |
2689 | Py_DECREF(item); | |
2690 | Py_DECREF(str); | |
2691 | } | |
d14a1e28 RD |
2692 | } |
2693 | } | |
994141e6 RD |
2694 | if (obj6) { |
2695 | { | |
4d5c3d91 | 2696 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
994141e6 RD |
2697 | if (PyErr_Occurred()) SWIG_fail; |
2698 | } | |
2699 | } | |
d14a1e28 | 2700 | if (obj7) { |
4d5c3d91 RD |
2701 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2702 | if (arg8 == NULL) { | |
d14a1e28 RD |
2703 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2704 | } | |
2705 | } | |
2706 | if (obj8) { | |
2707 | { | |
4d5c3d91 RD |
2708 | arg9 = wxString_in_helper(obj8); |
2709 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 2710 | temp9 = True; |
d14a1e28 RD |
2711 | } |
2712 | } | |
2713 | { | |
2714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 2715 | 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 |
2716 | |
2717 | wxPyEndAllowThreads(__tstate); | |
2718 | if (PyErr_Occurred()) SWIG_fail; | |
2719 | } | |
2720 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2721 | { | |
2722 | if (temp3) | |
2723 | delete arg3; | |
2724 | } | |
2725 | { | |
3adfb63b | 2726 | if (temp6) delete arg6; |
d14a1e28 RD |
2727 | } |
2728 | { | |
2729 | if (temp9) | |
4d5c3d91 | 2730 | delete arg9; |
d14a1e28 RD |
2731 | } |
2732 | return resultobj; | |
2733 | fail: | |
2734 | { | |
2735 | if (temp3) | |
2736 | delete arg3; | |
2737 | } | |
2738 | { | |
3adfb63b | 2739 | if (temp6) delete arg6; |
d14a1e28 RD |
2740 | } |
2741 | { | |
2742 | if (temp9) | |
4d5c3d91 | 2743 | delete arg9; |
d14a1e28 RD |
2744 | } |
2745 | return NULL; | |
2746 | } | |
2747 | ||
2748 | ||
2749 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2750 | PyObject *resultobj; | |
2751 | wxComboBox *result; | |
2752 | char *kwnames[] = { | |
2753 | NULL | |
2754 | }; | |
2755 | ||
2756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2757 | { | |
2758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2759 | result = (wxComboBox *)new wxComboBox(); | |
2760 | ||
2761 | wxPyEndAllowThreads(__tstate); | |
2762 | if (PyErr_Occurred()) SWIG_fail; | |
2763 | } | |
2764 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2765 | return resultobj; | |
2766 | fail: | |
2767 | return NULL; | |
2768 | } | |
2769 | ||
2770 | ||
2771 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2772 | PyObject *resultobj; | |
2773 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2774 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 2775 | int arg3 ; |
d14a1e28 RD |
2776 | wxString const &arg4_defvalue = wxPyEmptyString ; |
2777 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2778 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2779 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2780 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2781 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
2782 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
2783 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
2784 | long arg8 = (long) 0 ; | |
2785 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2786 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
b88bce5f | 2787 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4d5c3d91 | 2788 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 2789 | bool result; |
e811c8ce | 2790 | bool temp4 = False ; |
d14a1e28 RD |
2791 | wxPoint temp5 ; |
2792 | wxSize temp6 ; | |
3adfb63b | 2793 | bool temp7 = False ; |
e811c8ce | 2794 | bool temp10 = False ; |
d14a1e28 RD |
2795 | PyObject * obj0 = 0 ; |
2796 | PyObject * obj1 = 0 ; | |
994141e6 | 2797 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2798 | PyObject * obj3 = 0 ; |
2799 | PyObject * obj4 = 0 ; | |
2800 | PyObject * obj5 = 0 ; | |
2801 | PyObject * obj6 = 0 ; | |
994141e6 | 2802 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
2803 | PyObject * obj8 = 0 ; |
2804 | PyObject * obj9 = 0 ; | |
2805 | char *kwnames[] = { | |
2806 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2807 | }; | |
2808 | ||
994141e6 | 2809 | 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 |
2810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2811 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
2812 | { |
2813 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2814 | if (PyErr_Occurred()) SWIG_fail; | |
2815 | } | |
d14a1e28 RD |
2816 | if (obj3) { |
2817 | { | |
2818 | arg4 = wxString_in_helper(obj3); | |
2819 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 2820 | temp4 = True; |
d14a1e28 RD |
2821 | } |
2822 | } | |
2823 | if (obj4) { | |
2824 | { | |
2825 | arg5 = &temp5; | |
2826 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2827 | } | |
2828 | } | |
2829 | if (obj5) { | |
2830 | { | |
2831 | arg6 = &temp6; | |
2832 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2833 | } | |
2834 | } | |
2835 | if (obj6) { | |
2836 | { | |
4d5c3d91 RD |
2837 | if (! PySequence_Check(obj6)) { |
2838 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2839 | SWIG_fail; | |
2840 | } | |
2841 | arg7 = new wxArrayString; | |
3adfb63b | 2842 | temp7 = True; |
4d5c3d91 RD |
2843 | int i, len=PySequence_Length(obj6); |
2844 | for (i=0; i<len; i++) { | |
2845 | PyObject* item = PySequence_GetItem(obj6, i); | |
2846 | #if wxUSE_UNICODE | |
2847 | PyObject* str = PyObject_Unicode(item); | |
2848 | #else | |
2849 | PyObject* str = PyObject_Str(item); | |
2850 | #endif | |
2851 | arg7->Add(Py2wxString(str)); | |
2852 | Py_DECREF(item); | |
2853 | Py_DECREF(str); | |
2854 | } | |
d14a1e28 RD |
2855 | } |
2856 | } | |
994141e6 RD |
2857 | if (obj7) { |
2858 | { | |
4d5c3d91 | 2859 | arg8 = (long) SWIG_PyObj_AsLong(obj7); |
994141e6 RD |
2860 | if (PyErr_Occurred()) SWIG_fail; |
2861 | } | |
2862 | } | |
d14a1e28 | 2863 | if (obj8) { |
4d5c3d91 RD |
2864 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2865 | if (arg9 == NULL) { | |
d14a1e28 RD |
2866 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2867 | } | |
2868 | } | |
2869 | if (obj9) { | |
2870 | { | |
4d5c3d91 RD |
2871 | arg10 = wxString_in_helper(obj9); |
2872 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 2873 | temp10 = True; |
d14a1e28 RD |
2874 | } |
2875 | } | |
2876 | { | |
2877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 2878 | 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 |
2879 | |
2880 | wxPyEndAllowThreads(__tstate); | |
2881 | if (PyErr_Occurred()) SWIG_fail; | |
2882 | } | |
4d5c3d91 | 2883 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2884 | { |
2885 | if (temp4) | |
2886 | delete arg4; | |
2887 | } | |
2888 | { | |
3adfb63b | 2889 | if (temp7) delete arg7; |
d14a1e28 RD |
2890 | } |
2891 | { | |
2892 | if (temp10) | |
4d5c3d91 | 2893 | delete arg10; |
d14a1e28 RD |
2894 | } |
2895 | return resultobj; | |
2896 | fail: | |
2897 | { | |
2898 | if (temp4) | |
2899 | delete arg4; | |
2900 | } | |
2901 | { | |
3adfb63b | 2902 | if (temp7) delete arg7; |
d14a1e28 RD |
2903 | } |
2904 | { | |
2905 | if (temp10) | |
4d5c3d91 | 2906 | delete arg10; |
d14a1e28 RD |
2907 | } |
2908 | return NULL; | |
2909 | } | |
2910 | ||
2911 | ||
2912 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2913 | PyObject *resultobj; | |
2914 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2915 | wxString result; | |
2916 | PyObject * obj0 = 0 ; | |
2917 | char *kwnames[] = { | |
2918 | (char *) "self", NULL | |
2919 | }; | |
2920 | ||
2921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
2922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2923 | { | |
2924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2925 | result = ((wxComboBox const *)arg1)->GetValue(); | |
2926 | ||
2927 | wxPyEndAllowThreads(__tstate); | |
2928 | if (PyErr_Occurred()) SWIG_fail; | |
2929 | } | |
2930 | { | |
2931 | #if wxUSE_UNICODE | |
2932 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2933 | #else | |
2934 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2935 | #endif | |
2936 | } | |
2937 | return resultobj; | |
2938 | fail: | |
2939 | return NULL; | |
2940 | } | |
2941 | ||
2942 | ||
2943 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2944 | PyObject *resultobj; | |
2945 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2946 | wxString *arg2 = 0 ; | |
e811c8ce | 2947 | bool temp2 = False ; |
d14a1e28 RD |
2948 | PyObject * obj0 = 0 ; |
2949 | PyObject * obj1 = 0 ; | |
2950 | char *kwnames[] = { | |
2951 | (char *) "self",(char *) "value", NULL | |
2952 | }; | |
2953 | ||
2954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2956 | { | |
2957 | arg2 = wxString_in_helper(obj1); | |
2958 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2959 | temp2 = True; |
d14a1e28 RD |
2960 | } |
2961 | { | |
2962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2963 | (arg1)->SetValue((wxString const &)*arg2); | |
2964 | ||
2965 | wxPyEndAllowThreads(__tstate); | |
2966 | if (PyErr_Occurred()) SWIG_fail; | |
2967 | } | |
2968 | Py_INCREF(Py_None); resultobj = Py_None; | |
2969 | { | |
2970 | if (temp2) | |
2971 | delete arg2; | |
2972 | } | |
2973 | return resultobj; | |
2974 | fail: | |
2975 | { | |
2976 | if (temp2) | |
2977 | delete arg2; | |
2978 | } | |
2979 | return NULL; | |
2980 | } | |
2981 | ||
2982 | ||
2983 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2984 | PyObject *resultobj; | |
2985 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2986 | PyObject * obj0 = 0 ; | |
2987 | char *kwnames[] = { | |
2988 | (char *) "self", NULL | |
2989 | }; | |
2990 | ||
2991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
2992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2993 | { | |
2994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2995 | (arg1)->Copy(); | |
2996 | ||
2997 | wxPyEndAllowThreads(__tstate); | |
2998 | if (PyErr_Occurred()) SWIG_fail; | |
2999 | } | |
3000 | Py_INCREF(Py_None); resultobj = Py_None; | |
3001 | return resultobj; | |
3002 | fail: | |
3003 | return NULL; | |
3004 | } | |
3005 | ||
3006 | ||
3007 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3008 | PyObject *resultobj; | |
3009 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3010 | PyObject * obj0 = 0 ; | |
3011 | char *kwnames[] = { | |
3012 | (char *) "self", NULL | |
3013 | }; | |
3014 | ||
3015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
3016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3017 | { | |
3018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3019 | (arg1)->Cut(); | |
3020 | ||
3021 | wxPyEndAllowThreads(__tstate); | |
3022 | if (PyErr_Occurred()) SWIG_fail; | |
3023 | } | |
3024 | Py_INCREF(Py_None); resultobj = Py_None; | |
3025 | return resultobj; | |
3026 | fail: | |
3027 | return NULL; | |
3028 | } | |
3029 | ||
3030 | ||
3031 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3032 | PyObject *resultobj; | |
3033 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3034 | PyObject * obj0 = 0 ; | |
3035 | char *kwnames[] = { | |
3036 | (char *) "self", NULL | |
3037 | }; | |
3038 | ||
3039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
3040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3041 | { | |
3042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3043 | (arg1)->Paste(); | |
3044 | ||
3045 | wxPyEndAllowThreads(__tstate); | |
3046 | if (PyErr_Occurred()) SWIG_fail; | |
3047 | } | |
3048 | Py_INCREF(Py_None); resultobj = Py_None; | |
3049 | return resultobj; | |
3050 | fail: | |
3051 | return NULL; | |
3052 | } | |
3053 | ||
3054 | ||
3055 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3056 | PyObject *resultobj; | |
3057 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3058 | long arg2 ; | |
3059 | PyObject * obj0 = 0 ; | |
994141e6 | 3060 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3061 | char *kwnames[] = { |
3062 | (char *) "self",(char *) "pos", NULL | |
3063 | }; | |
3064 | ||
994141e6 | 3065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3067 | { |
3068 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3069 | if (PyErr_Occurred()) SWIG_fail; | |
3070 | } | |
d14a1e28 RD |
3071 | { |
3072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3073 | (arg1)->SetInsertionPoint(arg2); | |
3074 | ||
3075 | wxPyEndAllowThreads(__tstate); | |
3076 | if (PyErr_Occurred()) SWIG_fail; | |
3077 | } | |
3078 | Py_INCREF(Py_None); resultobj = Py_None; | |
3079 | return resultobj; | |
3080 | fail: | |
3081 | return NULL; | |
3082 | } | |
3083 | ||
3084 | ||
3085 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3086 | PyObject *resultobj; | |
3087 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3088 | long result; | |
3089 | PyObject * obj0 = 0 ; | |
3090 | char *kwnames[] = { | |
3091 | (char *) "self", NULL | |
3092 | }; | |
3093 | ||
3094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
3095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3096 | { | |
3097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3098 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3099 | ||
3100 | wxPyEndAllowThreads(__tstate); | |
3101 | if (PyErr_Occurred()) SWIG_fail; | |
3102 | } | |
994141e6 | 3103 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
3104 | return resultobj; |
3105 | fail: | |
3106 | return NULL; | |
3107 | } | |
3108 | ||
3109 | ||
3110 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3111 | PyObject *resultobj; | |
3112 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3113 | long result; | |
3114 | PyObject * obj0 = 0 ; | |
3115 | char *kwnames[] = { | |
3116 | (char *) "self", NULL | |
3117 | }; | |
3118 | ||
3119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
3120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3121 | { | |
3122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3123 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3124 | ||
3125 | wxPyEndAllowThreads(__tstate); | |
3126 | if (PyErr_Occurred()) SWIG_fail; | |
3127 | } | |
994141e6 | 3128 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
3129 | return resultobj; |
3130 | fail: | |
3131 | return NULL; | |
3132 | } | |
3133 | ||
3134 | ||
3135 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3136 | PyObject *resultobj; | |
3137 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3138 | long arg2 ; | |
3139 | long arg3 ; | |
3140 | wxString *arg4 = 0 ; | |
e811c8ce | 3141 | bool temp4 = False ; |
d14a1e28 | 3142 | PyObject * obj0 = 0 ; |
994141e6 RD |
3143 | PyObject * obj1 = 0 ; |
3144 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3145 | PyObject * obj3 = 0 ; |
3146 | char *kwnames[] = { | |
3147 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3148 | }; | |
3149 | ||
994141e6 | 3150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 3151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3152 | { |
3153 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3154 | if (PyErr_Occurred()) SWIG_fail; | |
3155 | } | |
3156 | { | |
3157 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3158 | if (PyErr_Occurred()) SWIG_fail; | |
3159 | } | |
d14a1e28 RD |
3160 | { |
3161 | arg4 = wxString_in_helper(obj3); | |
3162 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3163 | temp4 = True; |
d14a1e28 RD |
3164 | } |
3165 | { | |
3166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3167 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3168 | ||
3169 | wxPyEndAllowThreads(__tstate); | |
3170 | if (PyErr_Occurred()) SWIG_fail; | |
3171 | } | |
3172 | Py_INCREF(Py_None); resultobj = Py_None; | |
3173 | { | |
3174 | if (temp4) | |
3175 | delete arg4; | |
3176 | } | |
3177 | return resultobj; | |
3178 | fail: | |
3179 | { | |
3180 | if (temp4) | |
3181 | delete arg4; | |
3182 | } | |
3183 | return NULL; | |
3184 | } | |
3185 | ||
3186 | ||
fd3f2efe RD |
3187 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3188 | PyObject *resultobj; | |
3189 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3190 | int arg2 ; | |
3191 | PyObject * obj0 = 0 ; | |
994141e6 | 3192 | PyObject * obj1 = 0 ; |
fd3f2efe RD |
3193 | char *kwnames[] = { |
3194 | (char *) "self",(char *) "n", NULL | |
3195 | }; | |
3196 | ||
994141e6 | 3197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
fd3f2efe | 3198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3199 | { |
3200 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3201 | if (PyErr_Occurred()) SWIG_fail; | |
3202 | } | |
fd3f2efe RD |
3203 | { |
3204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3205 | (arg1)->SetSelection(arg2); | |
3206 | ||
3207 | wxPyEndAllowThreads(__tstate); | |
3208 | if (PyErr_Occurred()) SWIG_fail; | |
3209 | } | |
3210 | Py_INCREF(Py_None); resultobj = Py_None; | |
3211 | return resultobj; | |
3212 | fail: | |
3213 | return NULL; | |
3214 | } | |
3215 | ||
3216 | ||
d14a1e28 RD |
3217 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
3218 | PyObject *resultobj; | |
3219 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3220 | long arg2 ; | |
3221 | long arg3 ; | |
3222 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3223 | PyObject * obj1 = 0 ; |
3224 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3225 | char *kwnames[] = { |
3226 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3227 | }; | |
3228 | ||
994141e6 | 3229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3231 | { |
3232 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3233 | if (PyErr_Occurred()) SWIG_fail; | |
3234 | } | |
3235 | { | |
3236 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3237 | if (PyErr_Occurred()) SWIG_fail; | |
3238 | } | |
d14a1e28 RD |
3239 | { |
3240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3241 | (arg1)->SetSelection(arg2,arg3); | |
3242 | ||
3243 | wxPyEndAllowThreads(__tstate); | |
3244 | if (PyErr_Occurred()) SWIG_fail; | |
3245 | } | |
3246 | Py_INCREF(Py_None); resultobj = Py_None; | |
3247 | return resultobj; | |
3248 | fail: | |
3249 | return NULL; | |
3250 | } | |
3251 | ||
3252 | ||
3253 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3254 | PyObject *resultobj; | |
3255 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3256 | bool arg2 ; | |
3257 | PyObject * obj0 = 0 ; | |
3258 | PyObject * obj1 = 0 ; | |
3259 | char *kwnames[] = { | |
3260 | (char *) "self",(char *) "editable", NULL | |
3261 | }; | |
3262 | ||
3263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
3264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 3265 | { |
994141e6 | 3266 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
3267 | if (PyErr_Occurred()) SWIG_fail; |
3268 | } | |
d14a1e28 RD |
3269 | { |
3270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3271 | (arg1)->SetEditable(arg2); | |
3272 | ||
3273 | wxPyEndAllowThreads(__tstate); | |
3274 | if (PyErr_Occurred()) SWIG_fail; | |
3275 | } | |
3276 | Py_INCREF(Py_None); resultobj = Py_None; | |
3277 | return resultobj; | |
3278 | fail: | |
3279 | return NULL; | |
3280 | } | |
3281 | ||
3282 | ||
3283 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3284 | PyObject *resultobj; | |
3285 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3286 | PyObject * obj0 = 0 ; | |
3287 | char *kwnames[] = { | |
3288 | (char *) "self", NULL | |
3289 | }; | |
3290 | ||
3291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
3292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3293 | { | |
3294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3295 | (arg1)->SetInsertionPointEnd(); | |
3296 | ||
3297 | wxPyEndAllowThreads(__tstate); | |
3298 | if (PyErr_Occurred()) SWIG_fail; | |
3299 | } | |
3300 | Py_INCREF(Py_None); resultobj = Py_None; | |
3301 | return resultobj; | |
3302 | fail: | |
3303 | return NULL; | |
3304 | } | |
3305 | ||
3306 | ||
3307 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3308 | PyObject *resultobj; | |
3309 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3310 | long arg2 ; | |
3311 | long arg3 ; | |
3312 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3313 | PyObject * obj1 = 0 ; |
3314 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3315 | char *kwnames[] = { |
3316 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3317 | }; | |
3318 | ||
994141e6 | 3319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3321 | { |
3322 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3323 | if (PyErr_Occurred()) SWIG_fail; | |
3324 | } | |
3325 | { | |
3326 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3327 | if (PyErr_Occurred()) SWIG_fail; | |
3328 | } | |
d14a1e28 RD |
3329 | { |
3330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3331 | (arg1)->Remove(arg2,arg3); | |
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 | ||
3343 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
3344 | PyObject *obj; | |
3345 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3346 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3347 | Py_INCREF(obj); | |
3348 | return Py_BuildValue((char *)""); | |
3349 | } | |
b2dc1044 RD |
3350 | static int _wrap_GaugeNameStr_set(PyObject *_val) { |
3351 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); | |
3352 | return 1; | |
3353 | } | |
3354 | ||
3355 | ||
3356 | static PyObject *_wrap_GaugeNameStr_get() { | |
3357 | PyObject *pyobj; | |
3358 | ||
3359 | { | |
3360 | #if wxUSE_UNICODE | |
3361 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3362 | #else | |
3363 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3364 | #endif | |
3365 | } | |
3366 | return pyobj; | |
3367 | } | |
3368 | ||
3369 | ||
d14a1e28 RD |
3370 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3371 | PyObject *resultobj; | |
3372 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 3373 | int arg2 ; |
d14a1e28 RD |
3374 | int arg3 ; |
3375 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3376 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3377 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3378 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3379 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3380 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3381 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3382 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3383 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3384 | wxGauge *result; | |
3385 | wxPoint temp4 ; | |
3386 | wxSize temp5 ; | |
e811c8ce | 3387 | bool temp8 = False ; |
d14a1e28 | 3388 | PyObject * obj0 = 0 ; |
994141e6 RD |
3389 | PyObject * obj1 = 0 ; |
3390 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3391 | PyObject * obj3 = 0 ; |
3392 | PyObject * obj4 = 0 ; | |
994141e6 | 3393 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3394 | PyObject * obj6 = 0 ; |
3395 | PyObject * obj7 = 0 ; | |
3396 | char *kwnames[] = { | |
3397 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3398 | }; | |
3399 | ||
994141e6 | 3400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 3401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3402 | { |
3403 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3404 | if (PyErr_Occurred()) SWIG_fail; | |
3405 | } | |
3406 | { | |
3407 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3408 | if (PyErr_Occurred()) SWIG_fail; | |
3409 | } | |
d14a1e28 RD |
3410 | if (obj3) { |
3411 | { | |
3412 | arg4 = &temp4; | |
3413 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3414 | } | |
3415 | } | |
3416 | if (obj4) { | |
3417 | { | |
3418 | arg5 = &temp5; | |
3419 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3420 | } | |
3421 | } | |
994141e6 RD |
3422 | if (obj5) { |
3423 | { | |
3424 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3425 | if (PyErr_Occurred()) SWIG_fail; | |
3426 | } | |
3427 | } | |
d14a1e28 RD |
3428 | if (obj6) { |
3429 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3430 | if (arg7 == NULL) { | |
3431 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3432 | } | |
3433 | } | |
3434 | if (obj7) { | |
3435 | { | |
3436 | arg8 = wxString_in_helper(obj7); | |
3437 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 3438 | temp8 = True; |
d14a1e28 RD |
3439 | } |
3440 | } | |
3441 | { | |
3442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3443 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3444 | ||
3445 | wxPyEndAllowThreads(__tstate); | |
3446 | if (PyErr_Occurred()) SWIG_fail; | |
3447 | } | |
3448 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3449 | { | |
3450 | if (temp8) | |
3451 | delete arg8; | |
3452 | } | |
3453 | return resultobj; | |
3454 | fail: | |
3455 | { | |
3456 | if (temp8) | |
3457 | delete arg8; | |
3458 | } | |
3459 | return NULL; | |
3460 | } | |
3461 | ||
3462 | ||
3463 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3464 | PyObject *resultobj; | |
3465 | wxGauge *result; | |
3466 | char *kwnames[] = { | |
3467 | NULL | |
3468 | }; | |
3469 | ||
3470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3471 | { | |
3472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3473 | result = (wxGauge *)new wxGauge(); | |
3474 | ||
3475 | wxPyEndAllowThreads(__tstate); | |
3476 | if (PyErr_Occurred()) SWIG_fail; | |
3477 | } | |
3478 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3479 | return resultobj; | |
3480 | fail: | |
3481 | return NULL; | |
3482 | } | |
3483 | ||
3484 | ||
3485 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3486 | PyObject *resultobj; | |
3487 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3488 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 3489 | int arg3 ; |
d14a1e28 RD |
3490 | int arg4 ; |
3491 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3492 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3493 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3494 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3495 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3496 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3497 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3498 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3499 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3500 | bool result; | |
3501 | wxPoint temp5 ; | |
3502 | wxSize temp6 ; | |
e811c8ce | 3503 | bool temp9 = False ; |
d14a1e28 RD |
3504 | PyObject * obj0 = 0 ; |
3505 | PyObject * obj1 = 0 ; | |
994141e6 RD |
3506 | PyObject * obj2 = 0 ; |
3507 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3508 | PyObject * obj4 = 0 ; |
3509 | PyObject * obj5 = 0 ; | |
994141e6 | 3510 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3511 | PyObject * obj7 = 0 ; |
3512 | PyObject * obj8 = 0 ; | |
3513 | char *kwnames[] = { | |
3514 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3515 | }; | |
3516 | ||
994141e6 | 3517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3519 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
3520 | { |
3521 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3522 | if (PyErr_Occurred()) SWIG_fail; | |
3523 | } | |
3524 | { | |
3525 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
3526 | if (PyErr_Occurred()) SWIG_fail; | |
3527 | } | |
d14a1e28 RD |
3528 | if (obj4) { |
3529 | { | |
3530 | arg5 = &temp5; | |
3531 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3532 | } | |
3533 | } | |
3534 | if (obj5) { | |
3535 | { | |
3536 | arg6 = &temp6; | |
3537 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3538 | } | |
3539 | } | |
994141e6 RD |
3540 | if (obj6) { |
3541 | { | |
3542 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
3543 | if (PyErr_Occurred()) SWIG_fail; | |
3544 | } | |
3545 | } | |
d14a1e28 RD |
3546 | if (obj7) { |
3547 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3548 | if (arg8 == NULL) { | |
3549 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3550 | } | |
3551 | } | |
3552 | if (obj8) { | |
3553 | { | |
3554 | arg9 = wxString_in_helper(obj8); | |
3555 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 3556 | temp9 = True; |
d14a1e28 RD |
3557 | } |
3558 | } | |
3559 | { | |
3560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3561 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3562 | ||
3563 | wxPyEndAllowThreads(__tstate); | |
3564 | if (PyErr_Occurred()) SWIG_fail; | |
3565 | } | |
4d5c3d91 | 3566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3567 | { |
3568 | if (temp9) | |
3569 | delete arg9; | |
3570 | } | |
3571 | return resultobj; | |
3572 | fail: | |
3573 | { | |
3574 | if (temp9) | |
3575 | delete arg9; | |
3576 | } | |
3577 | return NULL; | |
3578 | } | |
3579 | ||
3580 | ||
3581 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3582 | PyObject *resultobj; | |
3583 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3584 | int arg2 ; | |
3585 | PyObject * obj0 = 0 ; | |
994141e6 | 3586 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3587 | char *kwnames[] = { |
3588 | (char *) "self",(char *) "range", NULL | |
3589 | }; | |
3590 | ||
994141e6 | 3591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3593 | { |
3594 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3595 | if (PyErr_Occurred()) SWIG_fail; | |
3596 | } | |
d14a1e28 RD |
3597 | { |
3598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3599 | (arg1)->SetRange(arg2); | |
3600 | ||
3601 | wxPyEndAllowThreads(__tstate); | |
3602 | if (PyErr_Occurred()) SWIG_fail; | |
3603 | } | |
3604 | Py_INCREF(Py_None); resultobj = Py_None; | |
3605 | return resultobj; | |
3606 | fail: | |
3607 | return NULL; | |
3608 | } | |
3609 | ||
3610 | ||
3611 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3612 | PyObject *resultobj; | |
3613 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3614 | int result; | |
3615 | PyObject * obj0 = 0 ; | |
3616 | char *kwnames[] = { | |
3617 | (char *) "self", NULL | |
3618 | }; | |
3619 | ||
3620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
3621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3622 | { | |
3623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3624 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3625 | ||
3626 | wxPyEndAllowThreads(__tstate); | |
3627 | if (PyErr_Occurred()) SWIG_fail; | |
3628 | } | |
994141e6 | 3629 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3630 | return resultobj; |
3631 | fail: | |
3632 | return NULL; | |
3633 | } | |
3634 | ||
3635 | ||
3636 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3637 | PyObject *resultobj; | |
3638 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3639 | int arg2 ; | |
3640 | PyObject * obj0 = 0 ; | |
994141e6 | 3641 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3642 | char *kwnames[] = { |
3643 | (char *) "self",(char *) "pos", NULL | |
3644 | }; | |
3645 | ||
994141e6 | 3646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3648 | { |
3649 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3650 | if (PyErr_Occurred()) SWIG_fail; | |
3651 | } | |
d14a1e28 RD |
3652 | { |
3653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3654 | (arg1)->SetValue(arg2); | |
3655 | ||
3656 | wxPyEndAllowThreads(__tstate); | |
3657 | if (PyErr_Occurred()) SWIG_fail; | |
3658 | } | |
3659 | Py_INCREF(Py_None); resultobj = Py_None; | |
3660 | return resultobj; | |
3661 | fail: | |
3662 | return NULL; | |
3663 | } | |
3664 | ||
3665 | ||
3666 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3667 | PyObject *resultobj; | |
3668 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3669 | int result; | |
3670 | PyObject * obj0 = 0 ; | |
3671 | char *kwnames[] = { | |
3672 | (char *) "self", NULL | |
3673 | }; | |
3674 | ||
3675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
3676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3677 | { | |
3678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3679 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3680 | ||
3681 | wxPyEndAllowThreads(__tstate); | |
3682 | if (PyErr_Occurred()) SWIG_fail; | |
3683 | } | |
994141e6 | 3684 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3685 | return resultobj; |
3686 | fail: | |
3687 | return NULL; | |
3688 | } | |
3689 | ||
3690 | ||
3691 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3692 | PyObject *resultobj; | |
3693 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3694 | bool result; | |
3695 | PyObject * obj0 = 0 ; | |
3696 | char *kwnames[] = { | |
3697 | (char *) "self", NULL | |
3698 | }; | |
3699 | ||
3700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
3701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3702 | { | |
3703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3704 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3705 | ||
3706 | wxPyEndAllowThreads(__tstate); | |
3707 | if (PyErr_Occurred()) SWIG_fail; | |
3708 | } | |
4d5c3d91 | 3709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3710 | return resultobj; |
3711 | fail: | |
3712 | return NULL; | |
3713 | } | |
3714 | ||
3715 | ||
3716 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3717 | PyObject *resultobj; | |
3718 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3719 | int arg2 ; | |
3720 | PyObject * obj0 = 0 ; | |
994141e6 | 3721 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3722 | char *kwnames[] = { |
3723 | (char *) "self",(char *) "w", NULL | |
3724 | }; | |
3725 | ||
994141e6 | 3726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3728 | { |
3729 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3730 | if (PyErr_Occurred()) SWIG_fail; | |
3731 | } | |
d14a1e28 RD |
3732 | { |
3733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3734 | (arg1)->SetShadowWidth(arg2); | |
3735 | ||
3736 | wxPyEndAllowThreads(__tstate); | |
3737 | if (PyErr_Occurred()) SWIG_fail; | |
3738 | } | |
3739 | Py_INCREF(Py_None); resultobj = Py_None; | |
3740 | return resultobj; | |
3741 | fail: | |
3742 | return NULL; | |
3743 | } | |
3744 | ||
3745 | ||
3746 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3747 | PyObject *resultobj; | |
3748 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3749 | int result; | |
3750 | PyObject * obj0 = 0 ; | |
3751 | char *kwnames[] = { | |
3752 | (char *) "self", NULL | |
3753 | }; | |
3754 | ||
3755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
3756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3757 | { | |
3758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3759 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3760 | ||
3761 | wxPyEndAllowThreads(__tstate); | |
3762 | if (PyErr_Occurred()) SWIG_fail; | |
3763 | } | |
994141e6 | 3764 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3765 | return resultobj; |
3766 | fail: | |
3767 | return NULL; | |
3768 | } | |
3769 | ||
3770 | ||
3771 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3772 | PyObject *resultobj; | |
3773 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3774 | int arg2 ; | |
3775 | PyObject * obj0 = 0 ; | |
994141e6 | 3776 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3777 | char *kwnames[] = { |
3778 | (char *) "self",(char *) "w", NULL | |
3779 | }; | |
3780 | ||
994141e6 | 3781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3783 | { |
3784 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3785 | if (PyErr_Occurred()) SWIG_fail; | |
3786 | } | |
d14a1e28 RD |
3787 | { |
3788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3789 | (arg1)->SetBezelFace(arg2); | |
3790 | ||
3791 | wxPyEndAllowThreads(__tstate); | |
3792 | if (PyErr_Occurred()) SWIG_fail; | |
3793 | } | |
3794 | Py_INCREF(Py_None); resultobj = Py_None; | |
3795 | return resultobj; | |
3796 | fail: | |
3797 | return NULL; | |
3798 | } | |
3799 | ||
3800 | ||
3801 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3802 | PyObject *resultobj; | |
3803 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3804 | int result; | |
3805 | PyObject * obj0 = 0 ; | |
3806 | char *kwnames[] = { | |
3807 | (char *) "self", NULL | |
3808 | }; | |
3809 | ||
3810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
3811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3812 | { | |
3813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3814 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3815 | ||
3816 | wxPyEndAllowThreads(__tstate); | |
3817 | if (PyErr_Occurred()) SWIG_fail; | |
3818 | } | |
994141e6 | 3819 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3820 | return resultobj; |
3821 | fail: | |
3822 | return NULL; | |
3823 | } | |
3824 | ||
3825 | ||
3826 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
3827 | PyObject *obj; | |
3828 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3829 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
3830 | Py_INCREF(obj); | |
3831 | return Py_BuildValue((char *)""); | |
3832 | } | |
b2dc1044 RD |
3833 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { |
3834 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); | |
3835 | return 1; | |
3836 | } | |
3837 | ||
3838 | ||
3839 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
3840 | PyObject *pyobj; | |
3841 | ||
3842 | { | |
3843 | #if wxUSE_UNICODE | |
3844 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3845 | #else | |
3846 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3847 | #endif | |
3848 | } | |
3849 | return pyobj; | |
3850 | } | |
3851 | ||
3852 | ||
3853 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { | |
3854 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); | |
3855 | return 1; | |
3856 | } | |
3857 | ||
3858 | ||
3859 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
3860 | PyObject *pyobj; | |
3861 | ||
3862 | { | |
3863 | #if wxUSE_UNICODE | |
3864 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3865 | #else | |
3866 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3867 | #endif | |
3868 | } | |
3869 | return pyobj; | |
3870 | } | |
3871 | ||
3872 | ||
3873 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { | |
3874 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); | |
3875 | return 1; | |
3876 | } | |
3877 | ||
3878 | ||
3879 | static PyObject *_wrap_StaticTextNameStr_get() { | |
3880 | PyObject *pyobj; | |
3881 | ||
3882 | { | |
3883 | #if wxUSE_UNICODE | |
3884 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3885 | #else | |
3886 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3887 | #endif | |
3888 | } | |
3889 | return pyobj; | |
3890 | } | |
3891 | ||
3892 | ||
d14a1e28 RD |
3893 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
3894 | PyObject *resultobj; | |
3895 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 3896 | int arg2 ; |
d14a1e28 RD |
3897 | wxString *arg3 = 0 ; |
3898 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3899 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3900 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3901 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3902 | long arg6 = (long) 0 ; | |
3903 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
3904 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3905 | wxStaticBox *result; | |
e811c8ce | 3906 | bool temp3 = False ; |
d14a1e28 RD |
3907 | wxPoint temp4 ; |
3908 | wxSize temp5 ; | |
e811c8ce | 3909 | bool temp7 = False ; |
d14a1e28 | 3910 | PyObject * obj0 = 0 ; |
994141e6 | 3911 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3912 | PyObject * obj2 = 0 ; |
3913 | PyObject * obj3 = 0 ; | |
3914 | PyObject * obj4 = 0 ; | |
994141e6 | 3915 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3916 | PyObject * obj6 = 0 ; |
3917 | char *kwnames[] = { | |
3918 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3919 | }; | |
3920 | ||
994141e6 | 3921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 3922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3923 | { |
3924 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3925 | if (PyErr_Occurred()) SWIG_fail; | |
3926 | } | |
d14a1e28 RD |
3927 | { |
3928 | arg3 = wxString_in_helper(obj2); | |
3929 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3930 | temp3 = True; |
d14a1e28 RD |
3931 | } |
3932 | if (obj3) { | |
3933 | { | |
3934 | arg4 = &temp4; | |
3935 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3936 | } | |
3937 | } | |
3938 | if (obj4) { | |
3939 | { | |
3940 | arg5 = &temp5; | |
3941 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3942 | } | |
3943 | } | |
994141e6 RD |
3944 | if (obj5) { |
3945 | { | |
3946 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3947 | if (PyErr_Occurred()) SWIG_fail; | |
3948 | } | |
3949 | } | |
d14a1e28 RD |
3950 | if (obj6) { |
3951 | { | |
3952 | arg7 = wxString_in_helper(obj6); | |
3953 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 3954 | temp7 = True; |
d14a1e28 RD |
3955 | } |
3956 | } | |
3957 | { | |
3958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3959 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3960 | ||
3961 | wxPyEndAllowThreads(__tstate); | |
3962 | if (PyErr_Occurred()) SWIG_fail; | |
3963 | } | |
3964 | { | |
3965 | resultobj = wxPyMake_wxObject(result); | |
3966 | } | |
3967 | { | |
3968 | if (temp3) | |
3969 | delete arg3; | |
3970 | } | |
3971 | { | |
3972 | if (temp7) | |
3973 | delete arg7; | |
3974 | } | |
3975 | return resultobj; | |
3976 | fail: | |
3977 | { | |
3978 | if (temp3) | |
3979 | delete arg3; | |
3980 | } | |
3981 | { | |
3982 | if (temp7) | |
3983 | delete arg7; | |
3984 | } | |
3985 | return NULL; | |
3986 | } | |
3987 | ||
3988 | ||
3989 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3990 | PyObject *resultobj; | |
3991 | wxStaticBox *result; | |
3992 | char *kwnames[] = { | |
3993 | NULL | |
3994 | }; | |
3995 | ||
3996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
3997 | { | |
3998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3999 | result = (wxStaticBox *)new wxStaticBox(); | |
4000 | ||
4001 | wxPyEndAllowThreads(__tstate); | |
4002 | if (PyErr_Occurred()) SWIG_fail; | |
4003 | } | |
4004 | { | |
4005 | resultobj = wxPyMake_wxObject(result); | |
4006 | } | |
4007 | return resultobj; | |
4008 | fail: | |
4009 | return NULL; | |
4010 | } | |
4011 | ||
4012 | ||
4013 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4014 | PyObject *resultobj; | |
4015 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4016 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4017 | int arg3 ; |
d14a1e28 RD |
4018 | wxString *arg4 = 0 ; |
4019 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4020 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4021 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4022 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4023 | long arg7 = (long) 0 ; | |
4024 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4025 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4026 | bool result; | |
e811c8ce | 4027 | bool temp4 = False ; |
d14a1e28 RD |
4028 | wxPoint temp5 ; |
4029 | wxSize temp6 ; | |
e811c8ce | 4030 | bool temp8 = False ; |
d14a1e28 RD |
4031 | PyObject * obj0 = 0 ; |
4032 | PyObject * obj1 = 0 ; | |
994141e6 | 4033 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4034 | PyObject * obj3 = 0 ; |
4035 | PyObject * obj4 = 0 ; | |
4036 | PyObject * obj5 = 0 ; | |
994141e6 | 4037 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4038 | PyObject * obj7 = 0 ; |
4039 | char *kwnames[] = { | |
4040 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4041 | }; | |
4042 | ||
994141e6 | 4043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4045 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
4046 | { |
4047 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4048 | if (PyErr_Occurred()) SWIG_fail; | |
4049 | } | |
d14a1e28 RD |
4050 | { |
4051 | arg4 = wxString_in_helper(obj3); | |
4052 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 4053 | temp4 = True; |
d14a1e28 RD |
4054 | } |
4055 | if (obj4) { | |
4056 | { | |
4057 | arg5 = &temp5; | |
4058 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4059 | } | |
4060 | } | |
4061 | if (obj5) { | |
4062 | { | |
4063 | arg6 = &temp6; | |
4064 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4065 | } | |
4066 | } | |
994141e6 RD |
4067 | if (obj6) { |
4068 | { | |
4069 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4070 | if (PyErr_Occurred()) SWIG_fail; | |
4071 | } | |
4072 | } | |
d14a1e28 RD |
4073 | if (obj7) { |
4074 | { | |
4075 | arg8 = wxString_in_helper(obj7); | |
4076 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 4077 | temp8 = True; |
d14a1e28 RD |
4078 | } |
4079 | } | |
4080 | { | |
4081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4082 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4083 | ||
4084 | wxPyEndAllowThreads(__tstate); | |
4085 | if (PyErr_Occurred()) SWIG_fail; | |
4086 | } | |
4d5c3d91 | 4087 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4088 | { |
4089 | if (temp4) | |
4090 | delete arg4; | |
4091 | } | |
4092 | { | |
4093 | if (temp8) | |
4094 | delete arg8; | |
4095 | } | |
4096 | return resultobj; | |
4097 | fail: | |
4098 | { | |
4099 | if (temp4) | |
4100 | delete arg4; | |
4101 | } | |
4102 | { | |
4103 | if (temp8) | |
4104 | delete arg8; | |
4105 | } | |
4106 | return NULL; | |
4107 | } | |
4108 | ||
4109 | ||
4110 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
4111 | PyObject *obj; | |
4112 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4113 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4114 | Py_INCREF(obj); | |
4115 | return Py_BuildValue((char *)""); | |
4116 | } | |
4117 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4118 | PyObject *resultobj; | |
4119 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4120 | int arg2 ; |
d14a1e28 RD |
4121 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4122 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4123 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4124 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4125 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4126 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4127 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4128 | wxStaticLine *result; | |
4129 | wxPoint temp3 ; | |
4130 | wxSize temp4 ; | |
e811c8ce | 4131 | bool temp6 = False ; |
d14a1e28 | 4132 | PyObject * obj0 = 0 ; |
994141e6 | 4133 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4134 | PyObject * obj2 = 0 ; |
4135 | PyObject * obj3 = 0 ; | |
994141e6 | 4136 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4137 | PyObject * obj5 = 0 ; |
4138 | char *kwnames[] = { | |
4139 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4140 | }; | |
4141 | ||
994141e6 | 4142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 4143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4144 | { |
4145 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4146 | if (PyErr_Occurred()) SWIG_fail; | |
4147 | } | |
d14a1e28 RD |
4148 | if (obj2) { |
4149 | { | |
4150 | arg3 = &temp3; | |
4151 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4152 | } | |
4153 | } | |
4154 | if (obj3) { | |
4155 | { | |
4156 | arg4 = &temp4; | |
4157 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4158 | } | |
4159 | } | |
994141e6 RD |
4160 | if (obj4) { |
4161 | { | |
4162 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
4163 | if (PyErr_Occurred()) SWIG_fail; | |
4164 | } | |
4165 | } | |
d14a1e28 RD |
4166 | if (obj5) { |
4167 | { | |
4168 | arg6 = wxString_in_helper(obj5); | |
4169 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 4170 | temp6 = True; |
d14a1e28 RD |
4171 | } |
4172 | } | |
4173 | { | |
4174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4175 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4176 | ||
4177 | wxPyEndAllowThreads(__tstate); | |
4178 | if (PyErr_Occurred()) SWIG_fail; | |
4179 | } | |
4180 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
4181 | { | |
4182 | if (temp6) | |
4183 | delete arg6; | |
4184 | } | |
4185 | return resultobj; | |
4186 | fail: | |
4187 | { | |
4188 | if (temp6) | |
4189 | delete arg6; | |
4190 | } | |
4191 | return NULL; | |
4192 | } | |
4193 | ||
4194 | ||
4195 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4196 | PyObject *resultobj; | |
4197 | wxStaticLine *result; | |
4198 | char *kwnames[] = { | |
4199 | NULL | |
4200 | }; | |
4201 | ||
4202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4203 | { | |
4204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4205 | result = (wxStaticLine *)new wxStaticLine(); | |
4206 | ||
4207 | wxPyEndAllowThreads(__tstate); | |
4208 | if (PyErr_Occurred()) SWIG_fail; | |
4209 | } | |
4210 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
4211 | return resultobj; | |
4212 | fail: | |
4213 | return NULL; | |
4214 | } | |
4215 | ||
4216 | ||
4217 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4218 | PyObject *resultobj; | |
4219 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4220 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4221 | int arg3 ; |
d14a1e28 RD |
4222 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4223 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4224 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4225 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4226 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4227 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4228 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4229 | bool result; | |
4230 | wxPoint temp4 ; | |
4231 | wxSize temp5 ; | |
e811c8ce | 4232 | bool temp7 = False ; |
d14a1e28 RD |
4233 | PyObject * obj0 = 0 ; |
4234 | PyObject * obj1 = 0 ; | |
994141e6 | 4235 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4236 | PyObject * obj3 = 0 ; |
4237 | PyObject * obj4 = 0 ; | |
994141e6 | 4238 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4239 | PyObject * obj6 = 0 ; |
4240 | char *kwnames[] = { | |
4241 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4242 | }; | |
4243 | ||
994141e6 | 4244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
4245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4246 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
4247 | { |
4248 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4249 | if (PyErr_Occurred()) SWIG_fail; | |
4250 | } | |
d14a1e28 RD |
4251 | if (obj3) { |
4252 | { | |
4253 | arg4 = &temp4; | |
4254 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4255 | } | |
4256 | } | |
4257 | if (obj4) { | |
4258 | { | |
4259 | arg5 = &temp5; | |
4260 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4261 | } | |
4262 | } | |
994141e6 RD |
4263 | if (obj5) { |
4264 | { | |
4265 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4266 | if (PyErr_Occurred()) SWIG_fail; | |
4267 | } | |
4268 | } | |
d14a1e28 RD |
4269 | if (obj6) { |
4270 | { | |
4271 | arg7 = wxString_in_helper(obj6); | |
4272 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4273 | temp7 = True; |
d14a1e28 RD |
4274 | } |
4275 | } | |
4276 | { | |
4277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4278 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4279 | ||
4280 | wxPyEndAllowThreads(__tstate); | |
4281 | if (PyErr_Occurred()) SWIG_fail; | |
4282 | } | |
4d5c3d91 | 4283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4284 | { |
4285 | if (temp7) | |
4286 | delete arg7; | |
4287 | } | |
4288 | return resultobj; | |
4289 | fail: | |
4290 | { | |
4291 | if (temp7) | |
4292 | delete arg7; | |
4293 | } | |
4294 | return NULL; | |
4295 | } | |
4296 | ||
4297 | ||
4298 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4299 | PyObject *resultobj; | |
4300 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4301 | bool result; | |
4302 | PyObject * obj0 = 0 ; | |
4303 | char *kwnames[] = { | |
4304 | (char *) "self", NULL | |
4305 | }; | |
4306 | ||
4307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
4308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4309 | { | |
4310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4311 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4312 | ||
4313 | wxPyEndAllowThreads(__tstate); | |
4314 | if (PyErr_Occurred()) SWIG_fail; | |
4315 | } | |
4d5c3d91 | 4316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4317 | return resultobj; |
4318 | fail: | |
4319 | return NULL; | |
4320 | } | |
4321 | ||
4322 | ||
4323 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4324 | PyObject *resultobj; | |
4325 | int result; | |
4326 | char *kwnames[] = { | |
4327 | NULL | |
4328 | }; | |
4329 | ||
4330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4331 | { | |
4332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4333 | result = (int)wxStaticLine::GetDefaultSize(); | |
4334 | ||
4335 | wxPyEndAllowThreads(__tstate); | |
4336 | if (PyErr_Occurred()) SWIG_fail; | |
4337 | } | |
994141e6 | 4338 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4339 | return resultobj; |
4340 | fail: | |
4341 | return NULL; | |
4342 | } | |
4343 | ||
4344 | ||
4345 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
4346 | PyObject *obj; | |
4347 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4348 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4349 | Py_INCREF(obj); | |
4350 | return Py_BuildValue((char *)""); | |
4351 | } | |
4352 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4353 | PyObject *resultobj; | |
4354 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4355 | int arg2 ; |
d14a1e28 RD |
4356 | wxString *arg3 = 0 ; |
4357 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4358 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4359 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4360 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4361 | long arg6 = (long) 0 ; | |
4362 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4363 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4364 | wxStaticText *result; | |
e811c8ce | 4365 | bool temp3 = False ; |
d14a1e28 RD |
4366 | wxPoint temp4 ; |
4367 | wxSize temp5 ; | |
e811c8ce | 4368 | bool temp7 = False ; |
d14a1e28 | 4369 | PyObject * obj0 = 0 ; |
994141e6 | 4370 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4371 | PyObject * obj2 = 0 ; |
4372 | PyObject * obj3 = 0 ; | |
4373 | PyObject * obj4 = 0 ; | |
994141e6 | 4374 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4375 | PyObject * obj6 = 0 ; |
4376 | char *kwnames[] = { | |
4377 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4378 | }; | |
4379 | ||
994141e6 | 4380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 4381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4382 | { |
4383 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4384 | if (PyErr_Occurred()) SWIG_fail; | |
4385 | } | |
d14a1e28 RD |
4386 | { |
4387 | arg3 = wxString_in_helper(obj2); | |
4388 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 4389 | temp3 = True; |
d14a1e28 RD |
4390 | } |
4391 | if (obj3) { | |
4392 | { | |
4393 | arg4 = &temp4; | |
4394 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4395 | } | |
4396 | } | |
4397 | if (obj4) { | |
4398 | { | |
4399 | arg5 = &temp5; | |
4400 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4401 | } | |
4402 | } | |
994141e6 RD |
4403 | if (obj5) { |
4404 | { | |
4405 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4406 | if (PyErr_Occurred()) SWIG_fail; | |
4407 | } | |
4408 | } | |
d14a1e28 RD |
4409 | if (obj6) { |
4410 | { | |
4411 | arg7 = wxString_in_helper(obj6); | |
4412 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4413 | temp7 = True; |
d14a1e28 RD |
4414 | } |
4415 | } | |
4416 | { | |
4417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4418 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4419 | ||
4420 | wxPyEndAllowThreads(__tstate); | |
4421 | if (PyErr_Occurred()) SWIG_fail; | |
4422 | } | |
4423 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4424 | { | |
4425 | if (temp3) | |
4426 | delete arg3; | |
4427 | } | |
4428 | { | |
4429 | if (temp7) | |
4430 | delete arg7; | |
4431 | } | |
4432 | return resultobj; | |
4433 | fail: | |
4434 | { | |
4435 | if (temp3) | |
4436 | delete arg3; | |
4437 | } | |
4438 | { | |
4439 | if (temp7) | |
4440 | delete arg7; | |
4441 | } | |
4442 | return NULL; | |
4443 | } | |
4444 | ||
4445 | ||
4446 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4447 | PyObject *resultobj; | |
4448 | wxStaticText *result; | |
4449 | char *kwnames[] = { | |
4450 | NULL | |
4451 | }; | |
4452 | ||
4453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4454 | { | |
4455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4456 | result = (wxStaticText *)new wxStaticText(); | |
4457 | ||
4458 | wxPyEndAllowThreads(__tstate); | |
4459 | if (PyErr_Occurred()) SWIG_fail; | |
4460 | } | |
4461 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4462 | return resultobj; | |
4463 | fail: | |
4464 | return NULL; | |
4465 | } | |
4466 | ||
4467 | ||
4468 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4469 | PyObject *resultobj; | |
4470 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4471 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4472 | int arg3 ; |
d14a1e28 RD |
4473 | wxString *arg4 = 0 ; |
4474 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4475 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4476 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4477 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4478 | long arg7 = (long) 0 ; | |
4479 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4480 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4481 | bool result; | |
e811c8ce | 4482 | bool temp4 = False ; |
d14a1e28 RD |
4483 | wxPoint temp5 ; |
4484 | wxSize temp6 ; | |
e811c8ce | 4485 | bool temp8 = False ; |
d14a1e28 RD |
4486 | PyObject * obj0 = 0 ; |
4487 | PyObject * obj1 = 0 ; | |
994141e6 | 4488 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4489 | PyObject * obj3 = 0 ; |
4490 | PyObject * obj4 = 0 ; | |
4491 | PyObject * obj5 = 0 ; | |
994141e6 | 4492 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4493 | PyObject * obj7 = 0 ; |
4494 | char *kwnames[] = { | |
4495 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4496 | }; | |
4497 | ||
994141e6 | 4498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticText,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4500 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
4501 | { |
4502 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4503 | if (PyErr_Occurred()) SWIG_fail; | |
4504 | } | |
d14a1e28 RD |
4505 | { |
4506 | arg4 = wxString_in_helper(obj3); | |
4507 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 4508 | temp4 = True; |
d14a1e28 RD |
4509 | } |
4510 | if (obj4) { | |
4511 | { | |
4512 | arg5 = &temp5; | |
4513 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4514 | } | |
4515 | } | |
4516 | if (obj5) { | |
4517 | { | |
4518 | arg6 = &temp6; | |
4519 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4520 | } | |
4521 | } | |
994141e6 RD |
4522 | if (obj6) { |
4523 | { | |
4524 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4525 | if (PyErr_Occurred()) SWIG_fail; | |
4526 | } | |
4527 | } | |
d14a1e28 RD |
4528 | if (obj7) { |
4529 | { | |
4530 | arg8 = wxString_in_helper(obj7); | |
4531 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 4532 | temp8 = True; |
d14a1e28 RD |
4533 | } |
4534 | } | |
4535 | { | |
4536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4537 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4538 | ||
4539 | wxPyEndAllowThreads(__tstate); | |
4540 | if (PyErr_Occurred()) SWIG_fail; | |
4541 | } | |
4d5c3d91 | 4542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4543 | { |
4544 | if (temp4) | |
4545 | delete arg4; | |
4546 | } | |
4547 | { | |
4548 | if (temp8) | |
4549 | delete arg8; | |
4550 | } | |
4551 | return resultobj; | |
4552 | fail: | |
4553 | { | |
4554 | if (temp4) | |
4555 | delete arg4; | |
4556 | } | |
4557 | { | |
4558 | if (temp8) | |
4559 | delete arg8; | |
4560 | } | |
4561 | return NULL; | |
4562 | } | |
4563 | ||
4564 | ||
4565 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4566 | PyObject *obj; | |
4567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4568 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4569 | Py_INCREF(obj); | |
4570 | return Py_BuildValue((char *)""); | |
4571 | } | |
4572 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4573 | PyObject *resultobj; | |
4574 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4575 | int arg2 ; |
d14a1e28 RD |
4576 | wxBitmap *arg3 = 0 ; |
4577 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4578 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4579 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4580 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4581 | long arg6 = (long) 0 ; | |
4582 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4583 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4584 | wxStaticBitmap *result; | |
4585 | wxPoint temp4 ; | |
4586 | wxSize temp5 ; | |
e811c8ce | 4587 | bool temp7 = False ; |
d14a1e28 | 4588 | PyObject * obj0 = 0 ; |
994141e6 | 4589 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4590 | PyObject * obj2 = 0 ; |
4591 | PyObject * obj3 = 0 ; | |
4592 | PyObject * obj4 = 0 ; | |
994141e6 | 4593 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4594 | PyObject * obj6 = 0 ; |
4595 | char *kwnames[] = { | |
4596 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4597 | }; | |
4598 | ||
994141e6 | 4599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 4600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4601 | { |
4602 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4603 | if (PyErr_Occurred()) SWIG_fail; | |
4604 | } | |
d14a1e28 RD |
4605 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4606 | if (arg3 == NULL) { | |
4607 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4608 | } | |
4609 | if (obj3) { | |
4610 | { | |
4611 | arg4 = &temp4; | |
4612 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4613 | } | |
4614 | } | |
4615 | if (obj4) { | |
4616 | { | |
4617 | arg5 = &temp5; | |
4618 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4619 | } | |
4620 | } | |
994141e6 RD |
4621 | if (obj5) { |
4622 | { | |
4623 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4624 | if (PyErr_Occurred()) SWIG_fail; | |
4625 | } | |
4626 | } | |
d14a1e28 RD |
4627 | if (obj6) { |
4628 | { | |
4629 | arg7 = wxString_in_helper(obj6); | |
4630 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4631 | temp7 = True; |
d14a1e28 RD |
4632 | } |
4633 | } | |
4634 | { | |
4635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4636 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4637 | ||
4638 | wxPyEndAllowThreads(__tstate); | |
4639 | if (PyErr_Occurred()) SWIG_fail; | |
4640 | } | |
4641 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4642 | { | |
4643 | if (temp7) | |
4644 | delete arg7; | |
4645 | } | |
4646 | return resultobj; | |
4647 | fail: | |
4648 | { | |
4649 | if (temp7) | |
4650 | delete arg7; | |
4651 | } | |
4652 | return NULL; | |
4653 | } | |
4654 | ||
4655 | ||
4656 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4657 | PyObject *resultobj; | |
4658 | wxStaticBitmap *result; | |
4659 | char *kwnames[] = { | |
4660 | NULL | |
4661 | }; | |
4662 | ||
4663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4664 | { | |
4665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4666 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4667 | ||
4668 | wxPyEndAllowThreads(__tstate); | |
4669 | if (PyErr_Occurred()) SWIG_fail; | |
4670 | } | |
4671 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4672 | return resultobj; | |
4673 | fail: | |
4674 | return NULL; | |
4675 | } | |
4676 | ||
4677 | ||
4678 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4679 | PyObject *resultobj; | |
4680 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4681 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4682 | int arg3 ; |
d14a1e28 RD |
4683 | wxBitmap *arg4 = 0 ; |
4684 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4685 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4686 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4687 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4688 | long arg7 = (long) 0 ; | |
4689 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4690 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4691 | bool result; | |
4692 | wxPoint temp5 ; | |
4693 | wxSize temp6 ; | |
e811c8ce | 4694 | bool temp8 = False ; |
d14a1e28 RD |
4695 | PyObject * obj0 = 0 ; |
4696 | PyObject * obj1 = 0 ; | |
994141e6 | 4697 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4698 | PyObject * obj3 = 0 ; |
4699 | PyObject * obj4 = 0 ; | |
4700 | PyObject * obj5 = 0 ; | |
994141e6 | 4701 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4702 | PyObject * obj7 = 0 ; |
4703 | char *kwnames[] = { | |
4704 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4705 | }; | |
4706 | ||
994141e6 | 4707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4709 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
4710 | { |
4711 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4712 | if (PyErr_Occurred()) SWIG_fail; | |
4713 | } | |
d14a1e28 RD |
4714 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4715 | if (arg4 == NULL) { | |
4716 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4717 | } | |
4718 | if (obj4) { | |
4719 | { | |
4720 | arg5 = &temp5; | |
4721 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4722 | } | |
4723 | } | |
4724 | if (obj5) { | |
4725 | { | |
4726 | arg6 = &temp6; | |
4727 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4728 | } | |
4729 | } | |
994141e6 RD |
4730 | if (obj6) { |
4731 | { | |
4732 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4733 | if (PyErr_Occurred()) SWIG_fail; | |
4734 | } | |
4735 | } | |
d14a1e28 RD |
4736 | if (obj7) { |
4737 | { | |
4738 | arg8 = wxString_in_helper(obj7); | |
4739 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 4740 | temp8 = True; |
d14a1e28 RD |
4741 | } |
4742 | } | |
4743 | { | |
4744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4745 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4746 | ||
4747 | wxPyEndAllowThreads(__tstate); | |
4748 | if (PyErr_Occurred()) SWIG_fail; | |
4749 | } | |
4d5c3d91 | 4750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4751 | { |
4752 | if (temp8) | |
4753 | delete arg8; | |
4754 | } | |
4755 | return resultobj; | |
4756 | fail: | |
4757 | { | |
4758 | if (temp8) | |
4759 | delete arg8; | |
4760 | } | |
4761 | return NULL; | |
4762 | } | |
4763 | ||
4764 | ||
4765 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4766 | PyObject *resultobj; | |
4767 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4768 | wxBitmap result; | |
4769 | PyObject * obj0 = 0 ; | |
4770 | char *kwnames[] = { | |
4771 | (char *) "self", NULL | |
4772 | }; | |
4773 | ||
4774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
4775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4776 | { | |
4777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4778 | result = (arg1)->GetBitmap(); | |
4779 | ||
4780 | wxPyEndAllowThreads(__tstate); | |
4781 | if (PyErr_Occurred()) SWIG_fail; | |
4782 | } | |
4783 | { | |
4784 | wxBitmap * resultptr; | |
4785 | resultptr = new wxBitmap((wxBitmap &) result); | |
4786 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
4787 | } | |
4788 | return resultobj; | |
4789 | fail: | |
4790 | return NULL; | |
4791 | } | |
4792 | ||
4793 | ||
4794 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4795 | PyObject *resultobj; | |
4796 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4797 | wxBitmap *arg2 = 0 ; | |
4798 | PyObject * obj0 = 0 ; | |
4799 | PyObject * obj1 = 0 ; | |
4800 | char *kwnames[] = { | |
4801 | (char *) "self",(char *) "bitmap", NULL | |
4802 | }; | |
4803 | ||
4804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4806 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4807 | if (arg2 == NULL) { | |
4808 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4809 | } | |
4810 | { | |
4811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4812 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4813 | ||
4814 | wxPyEndAllowThreads(__tstate); | |
4815 | if (PyErr_Occurred()) SWIG_fail; | |
4816 | } | |
4817 | Py_INCREF(Py_None); resultobj = Py_None; | |
4818 | return resultobj; | |
4819 | fail: | |
4820 | return NULL; | |
4821 | } | |
4822 | ||
4823 | ||
4824 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4825 | PyObject *resultobj; | |
4826 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4827 | wxIcon *arg2 = 0 ; | |
4828 | PyObject * obj0 = 0 ; | |
4829 | PyObject * obj1 = 0 ; | |
4830 | char *kwnames[] = { | |
4831 | (char *) "self",(char *) "icon", NULL | |
4832 | }; | |
4833 | ||
4834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4836 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4837 | if (arg2 == NULL) { | |
4838 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4839 | } | |
4840 | { | |
4841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4842 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
4843 | ||
4844 | wxPyEndAllowThreads(__tstate); | |
4845 | if (PyErr_Occurred()) SWIG_fail; | |
4846 | } | |
4847 | Py_INCREF(Py_None); resultobj = Py_None; | |
4848 | return resultobj; | |
4849 | fail: | |
4850 | return NULL; | |
4851 | } | |
4852 | ||
4853 | ||
4854 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
4855 | PyObject *obj; | |
4856 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4857 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
4858 | Py_INCREF(obj); | |
4859 | return Py_BuildValue((char *)""); | |
4860 | } | |
b2dc1044 RD |
4861 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { |
4862 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); | |
4863 | return 1; | |
4864 | } | |
4865 | ||
4866 | ||
4867 | static PyObject *_wrap_ListBoxNameStr_get() { | |
4868 | PyObject *pyobj; | |
4869 | ||
4870 | { | |
4871 | #if wxUSE_UNICODE | |
4872 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4873 | #else | |
4874 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4875 | #endif | |
4876 | } | |
4877 | return pyobj; | |
4878 | } | |
4879 | ||
4880 | ||
d14a1e28 RD |
4881 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4882 | PyObject *resultobj; | |
4883 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4884 | int arg2 ; |
d14a1e28 RD |
4885 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4886 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4887 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4888 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
4889 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
4890 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
4891 | long arg6 = (long) 0 ; | |
4892 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
4893 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
4894 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
4895 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
4896 | wxListBox *result; |
4897 | wxPoint temp3 ; | |
4898 | wxSize temp4 ; | |
3adfb63b | 4899 | bool temp5 = False ; |
e811c8ce | 4900 | bool temp8 = False ; |
d14a1e28 | 4901 | PyObject * obj0 = 0 ; |
994141e6 | 4902 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4903 | PyObject * obj2 = 0 ; |
4904 | PyObject * obj3 = 0 ; | |
4905 | PyObject * obj4 = 0 ; | |
994141e6 | 4906 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4907 | PyObject * obj6 = 0 ; |
4908 | PyObject * obj7 = 0 ; | |
4909 | char *kwnames[] = { | |
4910 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4911 | }; | |
4912 | ||
994141e6 | 4913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 4914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4915 | { |
4916 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4917 | if (PyErr_Occurred()) SWIG_fail; | |
4918 | } | |
d14a1e28 RD |
4919 | if (obj2) { |
4920 | { | |
4921 | arg3 = &temp3; | |
4922 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4923 | } | |
4924 | } | |
4925 | if (obj3) { | |
4926 | { | |
4927 | arg4 = &temp4; | |
4928 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4929 | } | |
4930 | } | |
4931 | if (obj4) { | |
4932 | { | |
4d5c3d91 RD |
4933 | if (! PySequence_Check(obj4)) { |
4934 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4935 | SWIG_fail; | |
4936 | } | |
4937 | arg5 = new wxArrayString; | |
3adfb63b | 4938 | temp5 = True; |
4d5c3d91 RD |
4939 | int i, len=PySequence_Length(obj4); |
4940 | for (i=0; i<len; i++) { | |
4941 | PyObject* item = PySequence_GetItem(obj4, i); | |
4942 | #if wxUSE_UNICODE | |
4943 | PyObject* str = PyObject_Unicode(item); | |
4944 | #else | |
4945 | PyObject* str = PyObject_Str(item); | |
4946 | #endif | |
4947 | arg5->Add(Py2wxString(str)); | |
4948 | Py_DECREF(item); | |
4949 | Py_DECREF(str); | |
4950 | } | |
d14a1e28 RD |
4951 | } |
4952 | } | |
994141e6 RD |
4953 | if (obj5) { |
4954 | { | |
4d5c3d91 | 4955 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
994141e6 RD |
4956 | if (PyErr_Occurred()) SWIG_fail; |
4957 | } | |
4958 | } | |
d14a1e28 | 4959 | if (obj6) { |
4d5c3d91 RD |
4960 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4961 | if (arg7 == NULL) { | |
d14a1e28 RD |
4962 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
4963 | } | |
4964 | } | |
4965 | if (obj7) { | |
4966 | { | |
4d5c3d91 RD |
4967 | arg8 = wxString_in_helper(obj7); |
4968 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 4969 | temp8 = True; |
d14a1e28 RD |
4970 | } |
4971 | } | |
4972 | { | |
4973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 4974 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
4975 | |
4976 | wxPyEndAllowThreads(__tstate); | |
4977 | if (PyErr_Occurred()) SWIG_fail; | |
4978 | } | |
4979 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
4980 | { | |
3adfb63b | 4981 | if (temp5) delete arg5; |
d14a1e28 RD |
4982 | } |
4983 | { | |
4984 | if (temp8) | |
4d5c3d91 | 4985 | delete arg8; |
d14a1e28 RD |
4986 | } |
4987 | return resultobj; | |
4988 | fail: | |
4989 | { | |
3adfb63b | 4990 | if (temp5) delete arg5; |
d14a1e28 RD |
4991 | } |
4992 | { | |
4993 | if (temp8) | |
4d5c3d91 | 4994 | delete arg8; |
d14a1e28 RD |
4995 | } |
4996 | return NULL; | |
4997 | } | |
4998 | ||
4999 | ||
5000 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5001 | PyObject *resultobj; | |
5002 | wxListBox *result; | |
5003 | char *kwnames[] = { | |
5004 | NULL | |
5005 | }; | |
5006 | ||
5007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5008 | { | |
5009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5010 | result = (wxListBox *)new wxListBox(); | |
5011 | ||
5012 | wxPyEndAllowThreads(__tstate); | |
5013 | if (PyErr_Occurred()) SWIG_fail; | |
5014 | } | |
5015 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
5016 | return resultobj; | |
5017 | fail: | |
5018 | return NULL; | |
5019 | } | |
5020 | ||
5021 | ||
5022 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5023 | PyObject *resultobj; | |
5024 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5025 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 5026 | int arg3 ; |
d14a1e28 RD |
5027 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5028 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5029 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5030 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
5031 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5032 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5033 | long arg7 = (long) 0 ; | |
5034 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5035 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5036 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5037 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5038 | bool result; |
5039 | wxPoint temp4 ; | |
5040 | wxSize temp5 ; | |
3adfb63b | 5041 | bool temp6 = False ; |
e811c8ce | 5042 | bool temp9 = False ; |
d14a1e28 RD |
5043 | PyObject * obj0 = 0 ; |
5044 | PyObject * obj1 = 0 ; | |
994141e6 | 5045 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5046 | PyObject * obj3 = 0 ; |
5047 | PyObject * obj4 = 0 ; | |
5048 | PyObject * obj5 = 0 ; | |
994141e6 | 5049 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5050 | PyObject * obj7 = 0 ; |
5051 | PyObject * obj8 = 0 ; | |
5052 | char *kwnames[] = { | |
5053 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5054 | }; | |
5055 | ||
994141e6 | 5056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
5057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5058 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
5059 | { |
5060 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5061 | if (PyErr_Occurred()) SWIG_fail; | |
5062 | } | |
d14a1e28 RD |
5063 | if (obj3) { |
5064 | { | |
5065 | arg4 = &temp4; | |
5066 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5067 | } | |
5068 | } | |
5069 | if (obj4) { | |
5070 | { | |
5071 | arg5 = &temp5; | |
5072 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5073 | } | |
5074 | } | |
5075 | if (obj5) { | |
5076 | { | |
4d5c3d91 RD |
5077 | if (! PySequence_Check(obj5)) { |
5078 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5079 | SWIG_fail; | |
5080 | } | |
5081 | arg6 = new wxArrayString; | |
3adfb63b | 5082 | temp6 = True; |
4d5c3d91 RD |
5083 | int i, len=PySequence_Length(obj5); |
5084 | for (i=0; i<len; i++) { | |
5085 | PyObject* item = PySequence_GetItem(obj5, i); | |
5086 | #if wxUSE_UNICODE | |
5087 | PyObject* str = PyObject_Unicode(item); | |
5088 | #else | |
5089 | PyObject* str = PyObject_Str(item); | |
5090 | #endif | |
5091 | arg6->Add(Py2wxString(str)); | |
5092 | Py_DECREF(item); | |
5093 | Py_DECREF(str); | |
5094 | } | |
d14a1e28 RD |
5095 | } |
5096 | } | |
994141e6 RD |
5097 | if (obj6) { |
5098 | { | |
4d5c3d91 | 5099 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
994141e6 RD |
5100 | if (PyErr_Occurred()) SWIG_fail; |
5101 | } | |
5102 | } | |
d14a1e28 | 5103 | if (obj7) { |
4d5c3d91 RD |
5104 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5105 | if (arg8 == NULL) { | |
d14a1e28 RD |
5106 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5107 | } | |
5108 | } | |
5109 | if (obj8) { | |
5110 | { | |
4d5c3d91 RD |
5111 | arg9 = wxString_in_helper(obj8); |
5112 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 5113 | temp9 = True; |
d14a1e28 RD |
5114 | } |
5115 | } | |
5116 | { | |
5117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 5118 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5119 | |
5120 | wxPyEndAllowThreads(__tstate); | |
5121 | if (PyErr_Occurred()) SWIG_fail; | |
5122 | } | |
4d5c3d91 | 5123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 5124 | { |
3adfb63b | 5125 | if (temp6) delete arg6; |
d14a1e28 RD |
5126 | } |
5127 | { | |
5128 | if (temp9) | |
4d5c3d91 | 5129 | delete arg9; |
d14a1e28 RD |
5130 | } |
5131 | return resultobj; | |
5132 | fail: | |
5133 | { | |
3adfb63b | 5134 | if (temp6) delete arg6; |
d14a1e28 RD |
5135 | } |
5136 | { | |
5137 | if (temp9) | |
4d5c3d91 | 5138 | delete arg9; |
d14a1e28 RD |
5139 | } |
5140 | return NULL; | |
5141 | } | |
5142 | ||
5143 | ||
5144 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5145 | PyObject *resultobj; | |
5146 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5147 | wxString *arg2 = 0 ; | |
5148 | int arg3 ; | |
5149 | PyObject *arg4 = (PyObject *) NULL ; | |
e811c8ce | 5150 | bool temp2 = False ; |
d14a1e28 RD |
5151 | PyObject * obj0 = 0 ; |
5152 | PyObject * obj1 = 0 ; | |
994141e6 | 5153 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5154 | PyObject * obj3 = 0 ; |
5155 | char *kwnames[] = { | |
5156 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5157 | }; | |
5158 | ||
994141e6 | 5159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5161 | { | |
5162 | arg2 = wxString_in_helper(obj1); | |
5163 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5164 | temp2 = True; |
d14a1e28 | 5165 | } |
994141e6 RD |
5166 | { |
5167 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5168 | if (PyErr_Occurred()) SWIG_fail; | |
5169 | } | |
d14a1e28 RD |
5170 | if (obj3) { |
5171 | arg4 = obj3; | |
5172 | } | |
5173 | { | |
5174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5175 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5176 | ||
5177 | wxPyEndAllowThreads(__tstate); | |
5178 | if (PyErr_Occurred()) SWIG_fail; | |
5179 | } | |
5180 | Py_INCREF(Py_None); resultobj = Py_None; | |
5181 | { | |
5182 | if (temp2) | |
5183 | delete arg2; | |
5184 | } | |
5185 | return resultobj; | |
5186 | fail: | |
5187 | { | |
5188 | if (temp2) | |
5189 | delete arg2; | |
5190 | } | |
5191 | return NULL; | |
5192 | } | |
5193 | ||
5194 | ||
5195 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5196 | PyObject *resultobj; | |
5197 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5198 | wxArrayString *arg2 = 0 ; | |
5199 | int arg3 ; | |
3adfb63b | 5200 | bool temp2 = False ; |
d14a1e28 RD |
5201 | PyObject * obj0 = 0 ; |
5202 | PyObject * obj1 = 0 ; | |
994141e6 | 5203 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5204 | char *kwnames[] = { |
5205 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5206 | }; | |
5207 | ||
994141e6 | 5208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
5209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5210 | { | |
5211 | if (! PySequence_Check(obj1)) { | |
5212 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5213 | SWIG_fail; | |
5214 | } | |
5215 | arg2 = new wxArrayString; | |
3adfb63b | 5216 | temp2 = True; |
d14a1e28 RD |
5217 | int i, len=PySequence_Length(obj1); |
5218 | for (i=0; i<len; i++) { | |
5219 | PyObject* item = PySequence_GetItem(obj1, i); | |
5220 | #if wxUSE_UNICODE | |
5221 | PyObject* str = PyObject_Unicode(item); | |
5222 | #else | |
5223 | PyObject* str = PyObject_Str(item); | |
5224 | #endif | |
5225 | arg2->Add(Py2wxString(str)); | |
5226 | Py_DECREF(item); | |
5227 | Py_DECREF(str); | |
5228 | } | |
5229 | } | |
994141e6 RD |
5230 | { |
5231 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5232 | if (PyErr_Occurred()) SWIG_fail; | |
5233 | } | |
d14a1e28 RD |
5234 | { |
5235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5236 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5237 | ||
5238 | wxPyEndAllowThreads(__tstate); | |
5239 | if (PyErr_Occurred()) SWIG_fail; | |
5240 | } | |
5241 | Py_INCREF(Py_None); resultobj = Py_None; | |
5242 | { | |
3adfb63b | 5243 | if (temp2) delete arg2; |
d14a1e28 RD |
5244 | } |
5245 | return resultobj; | |
5246 | fail: | |
5247 | { | |
3adfb63b | 5248 | if (temp2) delete arg2; |
d14a1e28 RD |
5249 | } |
5250 | return NULL; | |
5251 | } | |
5252 | ||
5253 | ||
5254 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5255 | PyObject *resultobj; | |
5256 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5257 | wxArrayString *arg2 = 0 ; | |
3adfb63b | 5258 | bool temp2 = False ; |
d14a1e28 RD |
5259 | PyObject * obj0 = 0 ; |
5260 | PyObject * obj1 = 0 ; | |
5261 | char *kwnames[] = { | |
5262 | (char *) "self",(char *) "items", NULL | |
5263 | }; | |
5264 | ||
5265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
5266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5267 | { | |
5268 | if (! PySequence_Check(obj1)) { | |
5269 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5270 | SWIG_fail; | |
5271 | } | |
5272 | arg2 = new wxArrayString; | |
3adfb63b | 5273 | temp2 = True; |
d14a1e28 RD |
5274 | int i, len=PySequence_Length(obj1); |
5275 | for (i=0; i<len; i++) { | |
5276 | PyObject* item = PySequence_GetItem(obj1, i); | |
5277 | #if wxUSE_UNICODE | |
5278 | PyObject* str = PyObject_Unicode(item); | |
5279 | #else | |
5280 | PyObject* str = PyObject_Str(item); | |
5281 | #endif | |
5282 | arg2->Add(Py2wxString(str)); | |
5283 | Py_DECREF(item); | |
5284 | Py_DECREF(str); | |
5285 | } | |
5286 | } | |
5287 | { | |
5288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5289 | (arg1)->Set((wxArrayString const &)*arg2); | |
5290 | ||
5291 | wxPyEndAllowThreads(__tstate); | |
5292 | if (PyErr_Occurred()) SWIG_fail; | |
5293 | } | |
5294 | Py_INCREF(Py_None); resultobj = Py_None; | |
5295 | { | |
3adfb63b | 5296 | if (temp2) delete arg2; |
d14a1e28 RD |
5297 | } |
5298 | return resultobj; | |
5299 | fail: | |
5300 | { | |
3adfb63b | 5301 | if (temp2) delete arg2; |
d14a1e28 RD |
5302 | } |
5303 | return NULL; | |
5304 | } | |
5305 | ||
5306 | ||
5307 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5308 | PyObject *resultobj; | |
5309 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5310 | int arg2 ; | |
5311 | bool result; | |
5312 | PyObject * obj0 = 0 ; | |
994141e6 | 5313 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5314 | char *kwnames[] = { |
5315 | (char *) "self",(char *) "n", NULL | |
5316 | }; | |
5317 | ||
994141e6 | 5318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5320 | { |
5321 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5322 | if (PyErr_Occurred()) SWIG_fail; | |
5323 | } | |
d14a1e28 RD |
5324 | { |
5325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5326 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
5327 | ||
5328 | wxPyEndAllowThreads(__tstate); | |
5329 | if (PyErr_Occurred()) SWIG_fail; | |
5330 | } | |
4d5c3d91 | 5331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5332 | return resultobj; |
5333 | fail: | |
5334 | return NULL; | |
5335 | } | |
5336 | ||
5337 | ||
5338 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5339 | PyObject *resultobj; | |
5340 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5341 | int arg2 ; | |
e811c8ce | 5342 | bool arg3 = (bool) True ; |
d14a1e28 | 5343 | PyObject * obj0 = 0 ; |
994141e6 | 5344 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5345 | PyObject * obj2 = 0 ; |
5346 | char *kwnames[] = { | |
5347 | (char *) "self",(char *) "n",(char *) "select", NULL | |
5348 | }; | |
5349 | ||
994141e6 | 5350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5352 | { |
5353 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5354 | if (PyErr_Occurred()) SWIG_fail; | |
5355 | } | |
d14a1e28 | 5356 | if (obj2) { |
a41e16b6 | 5357 | { |
994141e6 | 5358 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
5359 | if (PyErr_Occurred()) SWIG_fail; |
5360 | } | |
d14a1e28 RD |
5361 | } |
5362 | { | |
5363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5364 | (arg1)->SetSelection(arg2,arg3); | |
5365 | ||
5366 | wxPyEndAllowThreads(__tstate); | |
5367 | if (PyErr_Occurred()) SWIG_fail; | |
5368 | } | |
5369 | Py_INCREF(Py_None); resultobj = Py_None; | |
5370 | return resultobj; | |
5371 | fail: | |
5372 | return NULL; | |
5373 | } | |
5374 | ||
5375 | ||
5376 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5377 | PyObject *resultobj; | |
5378 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5379 | int arg2 ; | |
5380 | PyObject * obj0 = 0 ; | |
994141e6 | 5381 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5382 | char *kwnames[] = { |
5383 | (char *) "self",(char *) "n", NULL | |
5384 | }; | |
5385 | ||
994141e6 | 5386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5388 | { |
5389 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5390 | if (PyErr_Occurred()) SWIG_fail; | |
5391 | } | |
d14a1e28 RD |
5392 | { |
5393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5394 | (arg1)->Select(arg2); | |
5395 | ||
5396 | wxPyEndAllowThreads(__tstate); | |
5397 | if (PyErr_Occurred()) SWIG_fail; | |
5398 | } | |
5399 | Py_INCREF(Py_None); resultobj = Py_None; | |
5400 | return resultobj; | |
5401 | fail: | |
5402 | return NULL; | |
5403 | } | |
5404 | ||
5405 | ||
5406 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5407 | PyObject *resultobj; | |
5408 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5409 | int arg2 ; | |
5410 | PyObject * obj0 = 0 ; | |
994141e6 | 5411 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5412 | char *kwnames[] = { |
5413 | (char *) "self",(char *) "n", NULL | |
5414 | }; | |
5415 | ||
994141e6 | 5416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5418 | { |
5419 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5420 | if (PyErr_Occurred()) SWIG_fail; | |
5421 | } | |
d14a1e28 RD |
5422 | { |
5423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5424 | (arg1)->Deselect(arg2); | |
5425 | ||
5426 | wxPyEndAllowThreads(__tstate); | |
5427 | if (PyErr_Occurred()) SWIG_fail; | |
5428 | } | |
5429 | Py_INCREF(Py_None); resultobj = Py_None; | |
5430 | return resultobj; | |
5431 | fail: | |
5432 | return NULL; | |
5433 | } | |
5434 | ||
5435 | ||
5436 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5437 | PyObject *resultobj; | |
5438 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5439 | int arg2 = (int) -1 ; | |
5440 | PyObject * obj0 = 0 ; | |
994141e6 | 5441 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5442 | char *kwnames[] = { |
5443 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
5444 | }; | |
5445 | ||
994141e6 | 5446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5448 | if (obj1) { |
5449 | { | |
5450 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5451 | if (PyErr_Occurred()) SWIG_fail; | |
5452 | } | |
5453 | } | |
d14a1e28 RD |
5454 | { |
5455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5456 | (arg1)->DeselectAll(arg2); | |
5457 | ||
5458 | wxPyEndAllowThreads(__tstate); | |
5459 | if (PyErr_Occurred()) SWIG_fail; | |
5460 | } | |
5461 | Py_INCREF(Py_None); resultobj = Py_None; | |
5462 | return resultobj; | |
5463 | fail: | |
5464 | return NULL; | |
5465 | } | |
5466 | ||
5467 | ||
5468 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5469 | PyObject *resultobj; | |
5470 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5471 | wxString *arg2 = 0 ; | |
e811c8ce | 5472 | bool arg3 = (bool) True ; |
d14a1e28 | 5473 | bool result; |
e811c8ce | 5474 | bool temp2 = False ; |
d14a1e28 RD |
5475 | PyObject * obj0 = 0 ; |
5476 | PyObject * obj1 = 0 ; | |
5477 | PyObject * obj2 = 0 ; | |
5478 | char *kwnames[] = { | |
5479 | (char *) "self",(char *) "s",(char *) "select", NULL | |
5480 | }; | |
5481 | ||
5482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5484 | { | |
5485 | arg2 = wxString_in_helper(obj1); | |
5486 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5487 | temp2 = True; |
d14a1e28 RD |
5488 | } |
5489 | if (obj2) { | |
a41e16b6 | 5490 | { |
994141e6 | 5491 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
5492 | if (PyErr_Occurred()) SWIG_fail; |
5493 | } | |
d14a1e28 RD |
5494 | } |
5495 | { | |
5496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5497 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
5498 | ||
5499 | wxPyEndAllowThreads(__tstate); | |
5500 | if (PyErr_Occurred()) SWIG_fail; | |
5501 | } | |
4d5c3d91 | 5502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5503 | { |
5504 | if (temp2) | |
5505 | delete arg2; | |
5506 | } | |
5507 | return resultobj; | |
5508 | fail: | |
5509 | { | |
5510 | if (temp2) | |
5511 | delete arg2; | |
5512 | } | |
5513 | return NULL; | |
5514 | } | |
5515 | ||
5516 | ||
5517 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5518 | PyObject *resultobj; | |
5519 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5520 | PyObject *result; | |
5521 | PyObject * obj0 = 0 ; | |
5522 | char *kwnames[] = { | |
5523 | (char *) "self", NULL | |
5524 | }; | |
5525 | ||
5526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
5527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5528 | { | |
5529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5530 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
5531 | ||
5532 | wxPyEndAllowThreads(__tstate); | |
5533 | if (PyErr_Occurred()) SWIG_fail; | |
5534 | } | |
5535 | resultobj = result; | |
5536 | return resultobj; | |
5537 | fail: | |
5538 | return NULL; | |
5539 | } | |
5540 | ||
5541 | ||
5542 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5543 | PyObject *resultobj; | |
5544 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5545 | int arg2 ; | |
5546 | PyObject * obj0 = 0 ; | |
994141e6 | 5547 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5548 | char *kwnames[] = { |
5549 | (char *) "self",(char *) "n", NULL | |
5550 | }; | |
5551 | ||
994141e6 | 5552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5554 | { |
5555 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5556 | if (PyErr_Occurred()) SWIG_fail; | |
5557 | } | |
d14a1e28 RD |
5558 | { |
5559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5560 | (arg1)->SetFirstItem(arg2); | |
5561 | ||
5562 | wxPyEndAllowThreads(__tstate); | |
5563 | if (PyErr_Occurred()) SWIG_fail; | |
5564 | } | |
5565 | Py_INCREF(Py_None); resultobj = Py_None; | |
5566 | return resultobj; | |
5567 | fail: | |
5568 | return NULL; | |
5569 | } | |
5570 | ||
5571 | ||
5572 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5573 | PyObject *resultobj; | |
5574 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5575 | wxString *arg2 = 0 ; | |
e811c8ce | 5576 | bool temp2 = False ; |
d14a1e28 RD |
5577 | PyObject * obj0 = 0 ; |
5578 | PyObject * obj1 = 0 ; | |
5579 | char *kwnames[] = { | |
5580 | (char *) "self",(char *) "s", NULL | |
5581 | }; | |
5582 | ||
5583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
5584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5585 | { | |
5586 | arg2 = wxString_in_helper(obj1); | |
5587 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5588 | temp2 = True; |
d14a1e28 RD |
5589 | } |
5590 | { | |
5591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5592 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
5593 | ||
5594 | wxPyEndAllowThreads(__tstate); | |
5595 | if (PyErr_Occurred()) SWIG_fail; | |
5596 | } | |
5597 | Py_INCREF(Py_None); resultobj = Py_None; | |
5598 | { | |
5599 | if (temp2) | |
5600 | delete arg2; | |
5601 | } | |
5602 | return resultobj; | |
5603 | fail: | |
5604 | { | |
5605 | if (temp2) | |
5606 | delete arg2; | |
5607 | } | |
5608 | return NULL; | |
5609 | } | |
5610 | ||
5611 | ||
5612 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5613 | PyObject *resultobj; | |
5614 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5615 | int arg2 ; | |
5616 | PyObject * obj0 = 0 ; | |
994141e6 | 5617 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5618 | char *kwnames[] = { |
5619 | (char *) "self",(char *) "n", NULL | |
5620 | }; | |
5621 | ||
994141e6 | 5622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5624 | { |
5625 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5626 | if (PyErr_Occurred()) SWIG_fail; | |
5627 | } | |
d14a1e28 RD |
5628 | { |
5629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5630 | (arg1)->EnsureVisible(arg2); | |
5631 | ||
5632 | wxPyEndAllowThreads(__tstate); | |
5633 | if (PyErr_Occurred()) SWIG_fail; | |
5634 | } | |
5635 | Py_INCREF(Py_None); resultobj = Py_None; | |
5636 | return resultobj; | |
5637 | fail: | |
5638 | return NULL; | |
5639 | } | |
5640 | ||
5641 | ||
5642 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5643 | PyObject *resultobj; | |
5644 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5645 | wxString *arg2 = 0 ; | |
e811c8ce | 5646 | bool temp2 = False ; |
d14a1e28 RD |
5647 | PyObject * obj0 = 0 ; |
5648 | PyObject * obj1 = 0 ; | |
5649 | char *kwnames[] = { | |
5650 | (char *) "self",(char *) "s", NULL | |
5651 | }; | |
5652 | ||
5653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
5654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5655 | { | |
5656 | arg2 = wxString_in_helper(obj1); | |
5657 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5658 | temp2 = True; |
d14a1e28 RD |
5659 | } |
5660 | { | |
5661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5662 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
5663 | ||
5664 | wxPyEndAllowThreads(__tstate); | |
5665 | if (PyErr_Occurred()) SWIG_fail; | |
5666 | } | |
5667 | Py_INCREF(Py_None); resultobj = Py_None; | |
5668 | { | |
5669 | if (temp2) | |
5670 | delete arg2; | |
5671 | } | |
5672 | return resultobj; | |
5673 | fail: | |
5674 | { | |
5675 | if (temp2) | |
5676 | delete arg2; | |
5677 | } | |
5678 | return NULL; | |
5679 | } | |
5680 | ||
5681 | ||
5682 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5683 | PyObject *resultobj; | |
5684 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5685 | bool result; | |
5686 | PyObject * obj0 = 0 ; | |
5687 | char *kwnames[] = { | |
5688 | (char *) "self", NULL | |
5689 | }; | |
5690 | ||
5691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
5692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5693 | { | |
5694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5695 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
5696 | ||
5697 | wxPyEndAllowThreads(__tstate); | |
5698 | if (PyErr_Occurred()) SWIG_fail; | |
5699 | } | |
4d5c3d91 | 5700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5701 | return resultobj; |
5702 | fail: | |
5703 | return NULL; | |
5704 | } | |
5705 | ||
5706 | ||
c3eb6258 RD |
5707 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
5708 | PyObject *resultobj; | |
5709 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5710 | int arg2 ; | |
5711 | wxColour *arg3 = 0 ; | |
5712 | wxColour temp3 ; | |
5713 | PyObject * obj0 = 0 ; | |
5714 | PyObject * obj1 = 0 ; | |
5715 | PyObject * obj2 = 0 ; | |
5716 | char *kwnames[] = { | |
5717 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5718 | }; | |
5719 | ||
5720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5722 | { | |
5723 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5724 | if (PyErr_Occurred()) SWIG_fail; | |
5725 | } | |
5726 | { | |
5727 | arg3 = &temp3; | |
5728 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5729 | } | |
5730 | { | |
5731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5732 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5733 | ||
5734 | wxPyEndAllowThreads(__tstate); | |
5735 | if (PyErr_Occurred()) SWIG_fail; | |
5736 | } | |
5737 | Py_INCREF(Py_None); resultobj = Py_None; | |
5738 | return resultobj; | |
5739 | fail: | |
5740 | return NULL; | |
5741 | } | |
5742 | ||
5743 | ||
5744 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5745 | PyObject *resultobj; | |
5746 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5747 | int arg2 ; | |
5748 | wxColour *arg3 = 0 ; | |
5749 | wxColour temp3 ; | |
5750 | PyObject * obj0 = 0 ; | |
5751 | PyObject * obj1 = 0 ; | |
5752 | PyObject * obj2 = 0 ; | |
5753 | char *kwnames[] = { | |
5754 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5755 | }; | |
5756 | ||
5757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5759 | { | |
5760 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5761 | if (PyErr_Occurred()) SWIG_fail; | |
5762 | } | |
5763 | { | |
5764 | arg3 = &temp3; | |
5765 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5766 | } | |
5767 | { | |
5768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5769 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5770 | ||
5771 | wxPyEndAllowThreads(__tstate); | |
5772 | if (PyErr_Occurred()) SWIG_fail; | |
5773 | } | |
5774 | Py_INCREF(Py_None); resultobj = Py_None; | |
5775 | return resultobj; | |
5776 | fail: | |
5777 | return NULL; | |
5778 | } | |
5779 | ||
5780 | ||
5781 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5782 | PyObject *resultobj; | |
5783 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5784 | int arg2 ; | |
5785 | wxFont *arg3 = 0 ; | |
5786 | PyObject * obj0 = 0 ; | |
5787 | PyObject * obj1 = 0 ; | |
5788 | PyObject * obj2 = 0 ; | |
5789 | char *kwnames[] = { | |
5790 | (char *) "self",(char *) "item",(char *) "f", NULL | |
5791 | }; | |
5792 | ||
5793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5795 | { | |
5796 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5797 | if (PyErr_Occurred()) SWIG_fail; | |
5798 | } | |
5799 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5800 | if (arg3 == NULL) { | |
5801 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5802 | } | |
5803 | { | |
5804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5805 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
5806 | ||
5807 | wxPyEndAllowThreads(__tstate); | |
5808 | if (PyErr_Occurred()) SWIG_fail; | |
5809 | } | |
5810 | Py_INCREF(Py_None); resultobj = Py_None; | |
5811 | return resultobj; | |
5812 | fail: | |
5813 | return NULL; | |
5814 | } | |
5815 | ||
5816 | ||
d14a1e28 RD |
5817 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { |
5818 | PyObject *obj; | |
5819 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5820 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
5821 | Py_INCREF(obj); | |
5822 | return Py_BuildValue((char *)""); | |
5823 | } | |
5824 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5825 | PyObject *resultobj; | |
5826 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 5827 | int arg2 ; |
d14a1e28 RD |
5828 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5829 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5830 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5831 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
5832 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5833 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5834 | long arg6 = (long) 0 ; | |
5835 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5836 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5837 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5838 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5839 | wxCheckListBox *result; |
5840 | wxPoint temp3 ; | |
5841 | wxSize temp4 ; | |
3adfb63b | 5842 | bool temp5 = False ; |
e811c8ce | 5843 | bool temp8 = False ; |
d14a1e28 | 5844 | PyObject * obj0 = 0 ; |
994141e6 | 5845 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5846 | PyObject * obj2 = 0 ; |
5847 | PyObject * obj3 = 0 ; | |
5848 | PyObject * obj4 = 0 ; | |
994141e6 | 5849 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5850 | PyObject * obj6 = 0 ; |
5851 | PyObject * obj7 = 0 ; | |
5852 | char *kwnames[] = { | |
5853 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5854 | }; | |
5855 | ||
994141e6 | 5856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 5857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5858 | { |
5859 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5860 | if (PyErr_Occurred()) SWIG_fail; | |
5861 | } | |
d14a1e28 RD |
5862 | if (obj2) { |
5863 | { | |
5864 | arg3 = &temp3; | |
5865 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5866 | } | |
5867 | } | |
5868 | if (obj3) { | |
5869 | { | |
5870 | arg4 = &temp4; | |
5871 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5872 | } | |
5873 | } | |
5874 | if (obj4) { | |
5875 | { | |
4d5c3d91 RD |
5876 | if (! PySequence_Check(obj4)) { |
5877 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5878 | SWIG_fail; | |
5879 | } | |
5880 | arg5 = new wxArrayString; | |
3adfb63b | 5881 | temp5 = True; |
4d5c3d91 RD |
5882 | int i, len=PySequence_Length(obj4); |
5883 | for (i=0; i<len; i++) { | |
5884 | PyObject* item = PySequence_GetItem(obj4, i); | |
5885 | #if wxUSE_UNICODE | |
5886 | PyObject* str = PyObject_Unicode(item); | |
5887 | #else | |
5888 | PyObject* str = PyObject_Str(item); | |
5889 | #endif | |
5890 | arg5->Add(Py2wxString(str)); | |
5891 | Py_DECREF(item); | |
5892 | Py_DECREF(str); | |
5893 | } | |
d14a1e28 RD |
5894 | } |
5895 | } | |
994141e6 RD |
5896 | if (obj5) { |
5897 | { | |
4d5c3d91 | 5898 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
994141e6 RD |
5899 | if (PyErr_Occurred()) SWIG_fail; |
5900 | } | |
5901 | } | |
d14a1e28 | 5902 | if (obj6) { |
4d5c3d91 RD |
5903 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5904 | if (arg7 == NULL) { | |
d14a1e28 RD |
5905 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5906 | } | |
5907 | } | |
5908 | if (obj7) { | |
5909 | { | |
4d5c3d91 RD |
5910 | arg8 = wxString_in_helper(obj7); |
5911 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5912 | temp8 = True; |
d14a1e28 RD |
5913 | } |
5914 | } | |
5915 | { | |
5916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 5917 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5918 | |
5919 | wxPyEndAllowThreads(__tstate); | |
5920 | if (PyErr_Occurred()) SWIG_fail; | |
5921 | } | |
5922 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5923 | { | |
3adfb63b | 5924 | if (temp5) delete arg5; |
d14a1e28 RD |
5925 | } |
5926 | { | |
5927 | if (temp8) | |
4d5c3d91 | 5928 | delete arg8; |
d14a1e28 RD |
5929 | } |
5930 | return resultobj; | |
5931 | fail: | |
5932 | { | |
3adfb63b | 5933 | if (temp5) delete arg5; |
d14a1e28 RD |
5934 | } |
5935 | { | |
5936 | if (temp8) | |
4d5c3d91 | 5937 | delete arg8; |
d14a1e28 RD |
5938 | } |
5939 | return NULL; | |
5940 | } | |
5941 | ||
5942 | ||
5943 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5944 | PyObject *resultobj; | |
5945 | wxCheckListBox *result; | |
5946 | char *kwnames[] = { | |
5947 | NULL | |
5948 | }; | |
5949 | ||
5950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
5951 | { | |
5952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5953 | result = (wxCheckListBox *)new wxCheckListBox(); | |
5954 | ||
5955 | wxPyEndAllowThreads(__tstate); | |
5956 | if (PyErr_Occurred()) SWIG_fail; | |
5957 | } | |
5958 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5959 | return resultobj; | |
5960 | fail: | |
5961 | return NULL; | |
5962 | } | |
5963 | ||
5964 | ||
5965 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5966 | PyObject *resultobj; | |
5967 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5968 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 5969 | int arg3 ; |
d14a1e28 RD |
5970 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5971 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5972 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5973 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
5974 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5975 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5976 | long arg7 = (long) 0 ; | |
5977 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5978 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5979 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5980 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5981 | bool result; |
5982 | wxPoint temp4 ; | |
5983 | wxSize temp5 ; | |
3adfb63b | 5984 | bool temp6 = False ; |
e811c8ce | 5985 | bool temp9 = False ; |
d14a1e28 RD |
5986 | PyObject * obj0 = 0 ; |
5987 | PyObject * obj1 = 0 ; | |
994141e6 | 5988 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5989 | PyObject * obj3 = 0 ; |
5990 | PyObject * obj4 = 0 ; | |
5991 | PyObject * obj5 = 0 ; | |
994141e6 | 5992 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5993 | PyObject * obj7 = 0 ; |
5994 | PyObject * obj8 = 0 ; | |
5995 | char *kwnames[] = { | |
5996 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5997 | }; | |
5998 | ||
994141e6 | 5999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
6000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6001 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
6002 | { |
6003 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6004 | if (PyErr_Occurred()) SWIG_fail; | |
6005 | } | |
d14a1e28 RD |
6006 | if (obj3) { |
6007 | { | |
6008 | arg4 = &temp4; | |
6009 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6010 | } | |
6011 | } | |
6012 | if (obj4) { | |
6013 | { | |
6014 | arg5 = &temp5; | |
6015 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6016 | } | |
6017 | } | |
6018 | if (obj5) { | |
6019 | { | |
4d5c3d91 RD |
6020 | if (! PySequence_Check(obj5)) { |
6021 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6022 | SWIG_fail; | |
6023 | } | |
6024 | arg6 = new wxArrayString; | |
3adfb63b | 6025 | temp6 = True; |
4d5c3d91 RD |
6026 | int i, len=PySequence_Length(obj5); |
6027 | for (i=0; i<len; i++) { | |
6028 | PyObject* item = PySequence_GetItem(obj5, i); | |
6029 | #if wxUSE_UNICODE | |
6030 | PyObject* str = PyObject_Unicode(item); | |
6031 | #else | |
6032 | PyObject* str = PyObject_Str(item); | |
6033 | #endif | |
6034 | arg6->Add(Py2wxString(str)); | |
6035 | Py_DECREF(item); | |
6036 | Py_DECREF(str); | |
6037 | } | |
d14a1e28 RD |
6038 | } |
6039 | } | |
994141e6 RD |
6040 | if (obj6) { |
6041 | { | |
4d5c3d91 | 6042 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
994141e6 RD |
6043 | if (PyErr_Occurred()) SWIG_fail; |
6044 | } | |
6045 | } | |
d14a1e28 | 6046 | if (obj7) { |
4d5c3d91 RD |
6047 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6048 | if (arg8 == NULL) { | |
d14a1e28 RD |
6049 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
6050 | } | |
6051 | } | |
6052 | if (obj8) { | |
6053 | { | |
4d5c3d91 RD |
6054 | arg9 = wxString_in_helper(obj8); |
6055 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 6056 | temp9 = True; |
d14a1e28 RD |
6057 | } |
6058 | } | |
6059 | { | |
6060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 6061 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
6062 | |
6063 | wxPyEndAllowThreads(__tstate); | |
6064 | if (PyErr_Occurred()) SWIG_fail; | |
6065 | } | |
4d5c3d91 | 6066 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 6067 | { |
3adfb63b | 6068 | if (temp6) delete arg6; |
d14a1e28 RD |
6069 | } |
6070 | { | |
6071 | if (temp9) | |
4d5c3d91 | 6072 | delete arg9; |
d14a1e28 RD |
6073 | } |
6074 | return resultobj; | |
6075 | fail: | |
6076 | { | |
3adfb63b | 6077 | if (temp6) delete arg6; |
d14a1e28 RD |
6078 | } |
6079 | { | |
6080 | if (temp9) | |
4d5c3d91 | 6081 | delete arg9; |
d14a1e28 RD |
6082 | } |
6083 | return NULL; | |
6084 | } | |
6085 | ||
6086 | ||
6087 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6088 | PyObject *resultobj; | |
6089 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6090 | int arg2 ; | |
6091 | bool result; | |
6092 | PyObject * obj0 = 0 ; | |
994141e6 | 6093 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6094 | char *kwnames[] = { |
6095 | (char *) "self",(char *) "index", NULL | |
6096 | }; | |
6097 | ||
994141e6 | 6098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6100 | { |
6101 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6102 | if (PyErr_Occurred()) SWIG_fail; | |
6103 | } | |
d14a1e28 RD |
6104 | { |
6105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6106 | result = (bool)(arg1)->IsChecked(arg2); | |
6107 | ||
6108 | wxPyEndAllowThreads(__tstate); | |
6109 | if (PyErr_Occurred()) SWIG_fail; | |
6110 | } | |
4d5c3d91 | 6111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6112 | return resultobj; |
6113 | fail: | |
6114 | return NULL; | |
6115 | } | |
6116 | ||
6117 | ||
6118 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6119 | PyObject *resultobj; | |
6120 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6121 | int arg2 ; | |
e811c8ce | 6122 | int arg3 = (int) True ; |
d14a1e28 | 6123 | PyObject * obj0 = 0 ; |
994141e6 RD |
6124 | PyObject * obj1 = 0 ; |
6125 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6126 | char *kwnames[] = { |
6127 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6128 | }; | |
6129 | ||
994141e6 | 6130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6132 | { |
6133 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6134 | if (PyErr_Occurred()) SWIG_fail; | |
6135 | } | |
6136 | if (obj2) { | |
6137 | { | |
6138 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6139 | if (PyErr_Occurred()) SWIG_fail; | |
6140 | } | |
6141 | } | |
d14a1e28 RD |
6142 | { |
6143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6144 | (arg1)->Check(arg2,arg3); | |
6145 | ||
6146 | wxPyEndAllowThreads(__tstate); | |
6147 | if (PyErr_Occurred()) SWIG_fail; | |
6148 | } | |
6149 | Py_INCREF(Py_None); resultobj = Py_None; | |
6150 | return resultobj; | |
6151 | fail: | |
6152 | return NULL; | |
6153 | } | |
6154 | ||
6155 | ||
6156 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6157 | PyObject *resultobj; | |
6158 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6159 | int result; | |
6160 | PyObject * obj0 = 0 ; | |
6161 | char *kwnames[] = { | |
6162 | (char *) "self", NULL | |
6163 | }; | |
6164 | ||
6165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
6166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6167 | { | |
6168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6169 | result = (int)(arg1)->GetItemHeight(); | |
6170 | ||
6171 | wxPyEndAllowThreads(__tstate); | |
6172 | if (PyErr_Occurred()) SWIG_fail; | |
6173 | } | |
994141e6 | 6174 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6175 | return resultobj; |
6176 | fail: | |
6177 | return NULL; | |
6178 | } | |
6179 | ||
6180 | ||
6181 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6182 | PyObject *resultobj; | |
6183 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6184 | wxPoint *arg2 = 0 ; | |
6185 | int result; | |
6186 | wxPoint temp2 ; | |
6187 | PyObject * obj0 = 0 ; | |
6188 | PyObject * obj1 = 0 ; | |
6189 | char *kwnames[] = { | |
6190 | (char *) "self",(char *) "pt", NULL | |
6191 | }; | |
6192 | ||
6193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
6194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6195 | { | |
6196 | arg2 = &temp2; | |
6197 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6198 | } | |
6199 | { | |
6200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6201 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6202 | ||
6203 | wxPyEndAllowThreads(__tstate); | |
6204 | if (PyErr_Occurred()) SWIG_fail; | |
6205 | } | |
994141e6 | 6206 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6207 | return resultobj; |
6208 | fail: | |
6209 | return NULL; | |
6210 | } | |
6211 | ||
6212 | ||
6213 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6214 | PyObject *resultobj; | |
6215 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
e811c8ce RD |
6216 | int arg2 ; |
6217 | int arg3 ; | |
d14a1e28 RD |
6218 | int result; |
6219 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6220 | PyObject * obj1 = 0 ; |
6221 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6222 | char *kwnames[] = { |
6223 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6224 | }; | |
6225 | ||
994141e6 | 6226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6228 | { |
6229 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6230 | if (PyErr_Occurred()) SWIG_fail; | |
6231 | } | |
6232 | { | |
6233 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6234 | if (PyErr_Occurred()) SWIG_fail; | |
6235 | } | |
d14a1e28 RD |
6236 | { |
6237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6238 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6239 | ||
6240 | wxPyEndAllowThreads(__tstate); | |
6241 | if (PyErr_Occurred()) SWIG_fail; | |
6242 | } | |
994141e6 | 6243 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6244 | return resultobj; |
6245 | fail: | |
6246 | return NULL; | |
6247 | } | |
6248 | ||
6249 | ||
6250 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6251 | PyObject *obj; | |
6252 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6253 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6254 | Py_INCREF(obj); | |
6255 | return Py_BuildValue((char *)""); | |
6256 | } | |
b2dc1044 RD |
6257 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { |
6258 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); | |
6259 | return 1; | |
6260 | } | |
6261 | ||
6262 | ||
6263 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6264 | PyObject *pyobj; | |
6265 | ||
6266 | { | |
6267 | #if wxUSE_UNICODE | |
6268 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6269 | #else | |
6270 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6271 | #endif | |
6272 | } | |
6273 | return pyobj; | |
6274 | } | |
6275 | ||
6276 | ||
d14a1e28 RD |
6277 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { |
6278 | PyObject *resultobj; | |
6279 | wxTextAttr *result; | |
6280 | ||
6281 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
6282 | { | |
6283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6284 | result = (wxTextAttr *)new wxTextAttr(); | |
6285 | ||
6286 | wxPyEndAllowThreads(__tstate); | |
6287 | if (PyErr_Occurred()) SWIG_fail; | |
6288 | } | |
6289 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6290 | return resultobj; | |
6291 | fail: | |
6292 | return NULL; | |
6293 | } | |
6294 | ||
6295 | ||
6296 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
6297 | PyObject *resultobj; | |
6298 | wxColour *arg1 = 0 ; | |
6299 | wxColour const &arg2_defvalue = wxNullColour ; | |
6300 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6301 | wxFont const &arg3_defvalue = wxNullFont ; | |
6302 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6303 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6304 | wxTextAttr *result; | |
6305 | wxColour temp1 ; | |
6306 | wxColour temp2 ; | |
6307 | PyObject * obj0 = 0 ; | |
6308 | PyObject * obj1 = 0 ; | |
6309 | PyObject * obj2 = 0 ; | |
994141e6 | 6310 | PyObject * obj3 = 0 ; |
d14a1e28 | 6311 | |
994141e6 | 6312 | if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
6313 | { |
6314 | arg1 = &temp1; | |
6315 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
6316 | } | |
6317 | if (obj1) { | |
6318 | { | |
6319 | arg2 = &temp2; | |
6320 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6321 | } | |
6322 | } | |
6323 | if (obj2) { | |
6324 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6325 | if (arg3 == NULL) { | |
6326 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6327 | } | |
6328 | } | |
994141e6 RD |
6329 | if (obj3) { |
6330 | { | |
6331 | arg4 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj3); | |
6332 | if (PyErr_Occurred()) SWIG_fail; | |
6333 | } | |
6334 | } | |
d14a1e28 RD |
6335 | { |
6336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6337 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
6338 | ||
6339 | wxPyEndAllowThreads(__tstate); | |
6340 | if (PyErr_Occurred()) SWIG_fail; | |
6341 | } | |
6342 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6343 | return resultobj; | |
6344 | fail: | |
6345 | return NULL; | |
6346 | } | |
6347 | ||
6348 | ||
6349 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
6350 | int argc; | |
6351 | PyObject *argv[5]; | |
6352 | int ii; | |
6353 | ||
6354 | argc = PyObject_Length(args); | |
6355 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
6356 | argv[ii] = PyTuple_GetItem(args,ii); | |
6357 | } | |
6358 | if (argc == 0) { | |
6359 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
6360 | } | |
6361 | if ((argc >= 1) && (argc <= 4)) { | |
6362 | int _v; | |
6363 | { | |
6364 | _v = wxColour_typecheck(argv[0]); | |
6365 | } | |
6366 | if (_v) { | |
6367 | if (argc <= 1) { | |
6368 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6369 | } | |
6370 | { | |
6371 | _v = wxColour_typecheck(argv[1]); | |
6372 | } | |
6373 | if (_v) { | |
6374 | if (argc <= 2) { | |
6375 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6376 | } | |
6377 | { | |
6378 | void *ptr; | |
6379 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxFont, 0) == -1) { | |
6380 | _v = 0; | |
6381 | PyErr_Clear(); | |
6382 | } else { | |
6383 | _v = 1; | |
6384 | } | |
6385 | } | |
6386 | if (_v) { | |
6387 | if (argc <= 3) { | |
6388 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6389 | } | |
994141e6 RD |
6390 | { |
6391 | SWIG_PyObj_AsInt(argv[3]); | |
6392 | if (PyErr_Occurred()) { | |
6393 | _v = 0; | |
6394 | PyErr_Clear(); | |
6395 | } else { | |
6396 | _v = 1; | |
6397 | } | |
6398 | } | |
6399 | if (_v) { | |
6400 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6401 | } | |
d14a1e28 RD |
6402 | } |
6403 | } | |
6404 | } | |
6405 | } | |
6406 | ||
6407 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
6408 | return NULL; | |
6409 | } | |
6410 | ||
6411 | ||
994141e6 | 6412 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6413 | PyObject *resultobj; |
6414 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6415 | PyObject * obj0 = 0 ; | |
6416 | char *kwnames[] = { | |
6417 | (char *) "self", NULL | |
6418 | }; | |
6419 | ||
994141e6 | 6420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
6421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6422 | { | |
6423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
994141e6 | 6424 | delete arg1; |
d14a1e28 RD |
6425 | |
6426 | wxPyEndAllowThreads(__tstate); | |
6427 | if (PyErr_Occurred()) SWIG_fail; | |
6428 | } | |
6429 | Py_INCREF(Py_None); resultobj = Py_None; | |
6430 | return resultobj; | |
6431 | fail: | |
6432 | return NULL; | |
6433 | } | |
6434 | ||
6435 | ||
994141e6 RD |
6436 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { |
6437 | PyObject *resultobj; | |
6438 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6439 | PyObject * obj0 = 0 ; | |
6440 | char *kwnames[] = { | |
6441 | (char *) "self", NULL | |
6442 | }; | |
6443 | ||
6444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
6445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6446 | { | |
6447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6448 | (arg1)->Init(); | |
6449 | ||
6450 | wxPyEndAllowThreads(__tstate); | |
6451 | if (PyErr_Occurred()) SWIG_fail; | |
6452 | } | |
6453 | Py_INCREF(Py_None); resultobj = Py_None; | |
6454 | return resultobj; | |
6455 | fail: | |
6456 | return NULL; | |
6457 | } | |
6458 | ||
6459 | ||
6460 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
6461 | PyObject *resultobj; |
6462 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6463 | wxColour *arg2 = 0 ; | |
6464 | wxColour temp2 ; | |
6465 | PyObject * obj0 = 0 ; | |
6466 | PyObject * obj1 = 0 ; | |
6467 | char *kwnames[] = { | |
6468 | (char *) "self",(char *) "colText", NULL | |
6469 | }; | |
6470 | ||
6471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
6472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6473 | { | |
6474 | arg2 = &temp2; | |
6475 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6476 | } | |
6477 | { | |
6478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6479 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
6480 | ||
6481 | wxPyEndAllowThreads(__tstate); | |
6482 | if (PyErr_Occurred()) SWIG_fail; | |
6483 | } | |
6484 | Py_INCREF(Py_None); resultobj = Py_None; | |
6485 | return resultobj; | |
6486 | fail: | |
6487 | return NULL; | |
6488 | } | |
6489 | ||
6490 | ||
6491 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6492 | PyObject *resultobj; | |
6493 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6494 | wxColour *arg2 = 0 ; | |
6495 | wxColour temp2 ; | |
6496 | PyObject * obj0 = 0 ; | |
6497 | PyObject * obj1 = 0 ; | |
6498 | char *kwnames[] = { | |
6499 | (char *) "self",(char *) "colBack", NULL | |
6500 | }; | |
6501 | ||
6502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
6503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6504 | { | |
6505 | arg2 = &temp2; | |
6506 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6507 | } | |
6508 | { | |
6509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6510 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
6511 | ||
6512 | wxPyEndAllowThreads(__tstate); | |
6513 | if (PyErr_Occurred()) SWIG_fail; | |
6514 | } | |
6515 | Py_INCREF(Py_None); resultobj = Py_None; | |
6516 | return resultobj; | |
6517 | fail: | |
6518 | return NULL; | |
6519 | } | |
6520 | ||
6521 | ||
6522 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6523 | PyObject *resultobj; | |
6524 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6525 | wxFont *arg2 = 0 ; | |
6526 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
6527 | PyObject * obj0 = 0 ; | |
6528 | PyObject * obj1 = 0 ; | |
994141e6 | 6529 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6530 | char *kwnames[] = { |
6531 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
6532 | }; | |
6533 | ||
994141e6 | 6534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6536 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6537 | if (arg2 == NULL) { | |
6538 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6539 | } | |
994141e6 RD |
6540 | if (obj2) { |
6541 | { | |
6542 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
6543 | if (PyErr_Occurred()) SWIG_fail; | |
6544 | } | |
6545 | } | |
d14a1e28 RD |
6546 | { |
6547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6548 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
6549 | ||
6550 | wxPyEndAllowThreads(__tstate); | |
6551 | if (PyErr_Occurred()) SWIG_fail; | |
6552 | } | |
6553 | Py_INCREF(Py_None); resultobj = Py_None; | |
6554 | return resultobj; | |
6555 | fail: | |
6556 | return NULL; | |
6557 | } | |
6558 | ||
6559 | ||
6560 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6561 | PyObject *resultobj; | |
6562 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6563 | int arg2 ; | |
6564 | PyObject * obj0 = 0 ; | |
994141e6 | 6565 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6566 | char *kwnames[] = { |
6567 | (char *) "self",(char *) "alignment", NULL | |
6568 | }; | |
6569 | ||
994141e6 | 6570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6572 | { |
6573 | arg2 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj1); | |
6574 | if (PyErr_Occurred()) SWIG_fail; | |
6575 | } | |
d14a1e28 RD |
6576 | { |
6577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6578 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
6579 | ||
6580 | wxPyEndAllowThreads(__tstate); | |
6581 | if (PyErr_Occurred()) SWIG_fail; | |
6582 | } | |
6583 | Py_INCREF(Py_None); resultobj = Py_None; | |
6584 | return resultobj; | |
6585 | fail: | |
6586 | return NULL; | |
6587 | } | |
6588 | ||
6589 | ||
6590 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6591 | PyObject *resultobj; | |
6592 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6593 | wxArrayInt *arg2 = 0 ; | |
3adfb63b | 6594 | bool temp2 = False ; |
d14a1e28 RD |
6595 | PyObject * obj0 = 0 ; |
6596 | PyObject * obj1 = 0 ; | |
6597 | char *kwnames[] = { | |
6598 | (char *) "self",(char *) "tabs", NULL | |
6599 | }; | |
6600 | ||
6601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
6602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6603 | { | |
6604 | if (! PySequence_Check(obj1)) { | |
6605 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
6606 | SWIG_fail; | |
6607 | } | |
6608 | arg2 = new wxArrayInt; | |
3adfb63b | 6609 | temp2 = True; |
d14a1e28 RD |
6610 | int i, len=PySequence_Length(obj1); |
6611 | for (i=0; i<len; i++) { | |
6612 | PyObject* item = PySequence_GetItem(obj1, i); | |
6613 | PyObject* number = PyNumber_Int(item); | |
6614 | arg2->Add(PyInt_AS_LONG(number)); | |
6615 | Py_DECREF(item); | |
6616 | Py_DECREF(number); | |
6617 | } | |
6618 | } | |
6619 | { | |
6620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6621 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
6622 | ||
6623 | wxPyEndAllowThreads(__tstate); | |
6624 | if (PyErr_Occurred()) SWIG_fail; | |
6625 | } | |
6626 | Py_INCREF(Py_None); resultobj = Py_None; | |
6627 | { | |
3adfb63b | 6628 | if (temp2) delete arg2; |
d14a1e28 RD |
6629 | } |
6630 | return resultobj; | |
6631 | fail: | |
6632 | { | |
3adfb63b | 6633 | if (temp2) delete arg2; |
d14a1e28 RD |
6634 | } |
6635 | return NULL; | |
6636 | } | |
6637 | ||
6638 | ||
6639 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6640 | PyObject *resultobj; | |
6641 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6642 | int arg2 ; | |
6643 | PyObject * obj0 = 0 ; | |
994141e6 | 6644 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6645 | char *kwnames[] = { |
6646 | (char *) "self",(char *) "indent", NULL | |
6647 | }; | |
6648 | ||
994141e6 | 6649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6651 | { |
6652 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6653 | if (PyErr_Occurred()) SWIG_fail; | |
6654 | } | |
d14a1e28 RD |
6655 | { |
6656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6657 | (arg1)->SetLeftIndent(arg2); | |
6658 | ||
6659 | wxPyEndAllowThreads(__tstate); | |
6660 | if (PyErr_Occurred()) SWIG_fail; | |
6661 | } | |
6662 | Py_INCREF(Py_None); resultobj = Py_None; | |
6663 | return resultobj; | |
6664 | fail: | |
6665 | return NULL; | |
6666 | } | |
6667 | ||
6668 | ||
6669 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6670 | PyObject *resultobj; | |
6671 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6672 | int arg2 ; | |
6673 | PyObject * obj0 = 0 ; | |
994141e6 | 6674 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6675 | char *kwnames[] = { |
6676 | (char *) "self",(char *) "indent", NULL | |
6677 | }; | |
6678 | ||
994141e6 | 6679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6681 | { |
6682 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6683 | if (PyErr_Occurred()) SWIG_fail; | |
6684 | } | |
d14a1e28 RD |
6685 | { |
6686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6687 | (arg1)->SetRightIndent(arg2); | |
6688 | ||
6689 | wxPyEndAllowThreads(__tstate); | |
6690 | if (PyErr_Occurred()) SWIG_fail; | |
6691 | } | |
6692 | Py_INCREF(Py_None); resultobj = Py_None; | |
6693 | return resultobj; | |
6694 | fail: | |
6695 | return NULL; | |
6696 | } | |
6697 | ||
6698 | ||
6699 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6700 | PyObject *resultobj; | |
6701 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6702 | long arg2 ; | |
6703 | PyObject * obj0 = 0 ; | |
994141e6 | 6704 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6705 | char *kwnames[] = { |
6706 | (char *) "self",(char *) "flags", NULL | |
6707 | }; | |
6708 | ||
994141e6 | 6709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6711 | { |
6712 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
6713 | if (PyErr_Occurred()) SWIG_fail; | |
6714 | } | |
d14a1e28 RD |
6715 | { |
6716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6717 | (arg1)->SetFlags(arg2); | |
6718 | ||
6719 | wxPyEndAllowThreads(__tstate); | |
6720 | if (PyErr_Occurred()) SWIG_fail; | |
6721 | } | |
6722 | Py_INCREF(Py_None); resultobj = Py_None; | |
6723 | return resultobj; | |
6724 | fail: | |
6725 | return NULL; | |
6726 | } | |
6727 | ||
6728 | ||
6729 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6730 | PyObject *resultobj; | |
6731 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6732 | bool result; | |
6733 | PyObject * obj0 = 0 ; | |
6734 | char *kwnames[] = { | |
6735 | (char *) "self", NULL | |
6736 | }; | |
6737 | ||
6738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
6739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6740 | { | |
6741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6742 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
6743 | ||
6744 | wxPyEndAllowThreads(__tstate); | |
6745 | if (PyErr_Occurred()) SWIG_fail; | |
6746 | } | |
4d5c3d91 | 6747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6748 | return resultobj; |
6749 | fail: | |
6750 | return NULL; | |
6751 | } | |
6752 | ||
6753 | ||
6754 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6755 | PyObject *resultobj; | |
6756 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6757 | bool result; | |
6758 | PyObject * obj0 = 0 ; | |
6759 | char *kwnames[] = { | |
6760 | (char *) "self", NULL | |
6761 | }; | |
6762 | ||
6763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
6764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6765 | { | |
6766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6767 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
6768 | ||
6769 | wxPyEndAllowThreads(__tstate); | |
6770 | if (PyErr_Occurred()) SWIG_fail; | |
6771 | } | |
4d5c3d91 | 6772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6773 | return resultobj; |
6774 | fail: | |
6775 | return NULL; | |
6776 | } | |
6777 | ||
6778 | ||
6779 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6780 | PyObject *resultobj; | |
6781 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6782 | bool result; | |
6783 | PyObject * obj0 = 0 ; | |
6784 | char *kwnames[] = { | |
6785 | (char *) "self", NULL | |
6786 | }; | |
6787 | ||
6788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
6789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6790 | { | |
6791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6792 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
6793 | ||
6794 | wxPyEndAllowThreads(__tstate); | |
6795 | if (PyErr_Occurred()) SWIG_fail; | |
6796 | } | |
4d5c3d91 | 6797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6798 | return resultobj; |
6799 | fail: | |
6800 | return NULL; | |
6801 | } | |
6802 | ||
6803 | ||
6804 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6805 | PyObject *resultobj; | |
6806 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6807 | bool result; | |
6808 | PyObject * obj0 = 0 ; | |
6809 | char *kwnames[] = { | |
6810 | (char *) "self", NULL | |
6811 | }; | |
6812 | ||
6813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
6814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6815 | { | |
6816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6817 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
6818 | ||
6819 | wxPyEndAllowThreads(__tstate); | |
6820 | if (PyErr_Occurred()) SWIG_fail; | |
6821 | } | |
4d5c3d91 | 6822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6823 | return resultobj; |
6824 | fail: | |
6825 | return NULL; | |
6826 | } | |
6827 | ||
6828 | ||
6829 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6830 | PyObject *resultobj; | |
6831 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6832 | bool result; | |
6833 | PyObject * obj0 = 0 ; | |
6834 | char *kwnames[] = { | |
6835 | (char *) "self", NULL | |
6836 | }; | |
6837 | ||
6838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
6839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6840 | { | |
6841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6842 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
6843 | ||
6844 | wxPyEndAllowThreads(__tstate); | |
6845 | if (PyErr_Occurred()) SWIG_fail; | |
6846 | } | |
4d5c3d91 | 6847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6848 | return resultobj; |
6849 | fail: | |
6850 | return NULL; | |
6851 | } | |
6852 | ||
6853 | ||
6854 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6855 | PyObject *resultobj; | |
6856 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6857 | bool result; | |
6858 | PyObject * obj0 = 0 ; | |
6859 | char *kwnames[] = { | |
6860 | (char *) "self", NULL | |
6861 | }; | |
6862 | ||
6863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
6864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6865 | { | |
6866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6867 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
6868 | ||
6869 | wxPyEndAllowThreads(__tstate); | |
6870 | if (PyErr_Occurred()) SWIG_fail; | |
6871 | } | |
4d5c3d91 | 6872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6873 | return resultobj; |
6874 | fail: | |
6875 | return NULL; | |
6876 | } | |
6877 | ||
6878 | ||
6879 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6880 | PyObject *resultobj; | |
6881 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6882 | bool result; | |
6883 | PyObject * obj0 = 0 ; | |
6884 | char *kwnames[] = { | |
6885 | (char *) "self", NULL | |
6886 | }; | |
6887 | ||
6888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
6889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6890 | { | |
6891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6892 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
6893 | ||
6894 | wxPyEndAllowThreads(__tstate); | |
6895 | if (PyErr_Occurred()) SWIG_fail; | |
6896 | } | |
4d5c3d91 | 6897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6898 | return resultobj; |
6899 | fail: | |
6900 | return NULL; | |
6901 | } | |
6902 | ||
6903 | ||
6904 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6905 | PyObject *resultobj; | |
6906 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6907 | long arg2 ; | |
6908 | bool result; | |
6909 | PyObject * obj0 = 0 ; | |
994141e6 | 6910 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6911 | char *kwnames[] = { |
6912 | (char *) "self",(char *) "flag", NULL | |
6913 | }; | |
6914 | ||
994141e6 | 6915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6917 | { |
6918 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
6919 | if (PyErr_Occurred()) SWIG_fail; | |
6920 | } | |
d14a1e28 RD |
6921 | { |
6922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6923 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
6924 | ||
6925 | wxPyEndAllowThreads(__tstate); | |
6926 | if (PyErr_Occurred()) SWIG_fail; | |
6927 | } | |
4d5c3d91 | 6928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6929 | return resultobj; |
6930 | fail: | |
6931 | return NULL; | |
6932 | } | |
6933 | ||
6934 | ||
6935 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6936 | PyObject *resultobj; | |
6937 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6938 | wxColour *result; | |
6939 | PyObject * obj0 = 0 ; | |
6940 | char *kwnames[] = { | |
6941 | (char *) "self", NULL | |
6942 | }; | |
6943 | ||
6944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
6945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6946 | { | |
6947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6948 | { | |
6949 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
6950 | result = (wxColour *) &_result_ref; | |
6951 | } | |
6952 | ||
6953 | wxPyEndAllowThreads(__tstate); | |
6954 | if (PyErr_Occurred()) SWIG_fail; | |
6955 | } | |
6956 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6957 | return resultobj; | |
6958 | fail: | |
6959 | return NULL; | |
6960 | } | |
6961 | ||
6962 | ||
6963 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6964 | PyObject *resultobj; | |
6965 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6966 | wxColour *result; | |
6967 | PyObject * obj0 = 0 ; | |
6968 | char *kwnames[] = { | |
6969 | (char *) "self", NULL | |
6970 | }; | |
6971 | ||
6972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
6973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6974 | { | |
6975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6976 | { | |
6977 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
6978 | result = (wxColour *) &_result_ref; | |
6979 | } | |
6980 | ||
6981 | wxPyEndAllowThreads(__tstate); | |
6982 | if (PyErr_Occurred()) SWIG_fail; | |
6983 | } | |
6984 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6985 | return resultobj; | |
6986 | fail: | |
6987 | return NULL; | |
6988 | } | |
6989 | ||
6990 | ||
6991 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6992 | PyObject *resultobj; | |
6993 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6994 | wxFont *result; | |
6995 | PyObject * obj0 = 0 ; | |
6996 | char *kwnames[] = { | |
6997 | (char *) "self", NULL | |
6998 | }; | |
6999 | ||
7000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
7001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7002 | { | |
7003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7004 | { | |
7005 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7006 | result = (wxFont *) &_result_ref; | |
7007 | } | |
7008 | ||
7009 | wxPyEndAllowThreads(__tstate); | |
7010 | if (PyErr_Occurred()) SWIG_fail; | |
7011 | } | |
7012 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
7013 | return resultobj; | |
7014 | fail: | |
7015 | return NULL; | |
7016 | } | |
7017 | ||
7018 | ||
7019 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7020 | PyObject *resultobj; | |
7021 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7022 | int result; | |
7023 | PyObject * obj0 = 0 ; | |
7024 | char *kwnames[] = { | |
7025 | (char *) "self", NULL | |
7026 | }; | |
7027 | ||
7028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
7029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7030 | { | |
7031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7032 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7033 | ||
7034 | wxPyEndAllowThreads(__tstate); | |
7035 | if (PyErr_Occurred()) SWIG_fail; | |
7036 | } | |
994141e6 | 7037 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7038 | return resultobj; |
7039 | fail: | |
7040 | return NULL; | |
7041 | } | |
7042 | ||
7043 | ||
7044 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7045 | PyObject *resultobj; | |
7046 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7047 | wxArrayInt *result; | |
7048 | PyObject * obj0 = 0 ; | |
7049 | char *kwnames[] = { | |
7050 | (char *) "self", NULL | |
7051 | }; | |
7052 | ||
7053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
7054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7055 | { | |
7056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7057 | { | |
7058 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7059 | result = (wxArrayInt *) &_result_ref; | |
7060 | } | |
7061 | ||
7062 | wxPyEndAllowThreads(__tstate); | |
7063 | if (PyErr_Occurred()) SWIG_fail; | |
7064 | } | |
7065 | { | |
7066 | resultobj = PyList_New(0); | |
7067 | size_t idx; | |
7068 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7069 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7070 | PyList_Append(resultobj, val); | |
7071 | Py_DECREF(val); | |
7072 | } | |
7073 | } | |
7074 | return resultobj; | |
7075 | fail: | |
7076 | return NULL; | |
7077 | } | |
7078 | ||
7079 | ||
7080 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7081 | PyObject *resultobj; | |
7082 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7083 | long result; | |
7084 | PyObject * obj0 = 0 ; | |
7085 | char *kwnames[] = { | |
7086 | (char *) "self", NULL | |
7087 | }; | |
7088 | ||
7089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
7090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7091 | { | |
7092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7093 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7094 | ||
7095 | wxPyEndAllowThreads(__tstate); | |
7096 | if (PyErr_Occurred()) SWIG_fail; | |
7097 | } | |
994141e6 | 7098 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7099 | return resultobj; |
7100 | fail: | |
7101 | return NULL; | |
7102 | } | |
7103 | ||
7104 | ||
7105 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7106 | PyObject *resultobj; | |
7107 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7108 | long result; | |
7109 | PyObject * obj0 = 0 ; | |
7110 | char *kwnames[] = { | |
7111 | (char *) "self", NULL | |
7112 | }; | |
7113 | ||
7114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
7115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7116 | { | |
7117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7118 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7119 | ||
7120 | wxPyEndAllowThreads(__tstate); | |
7121 | if (PyErr_Occurred()) SWIG_fail; | |
7122 | } | |
994141e6 | 7123 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7124 | return resultobj; |
7125 | fail: | |
7126 | return NULL; | |
7127 | } | |
7128 | ||
7129 | ||
7130 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7131 | PyObject *resultobj; | |
7132 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7133 | long result; | |
7134 | PyObject * obj0 = 0 ; | |
7135 | char *kwnames[] = { | |
7136 | (char *) "self", NULL | |
7137 | }; | |
7138 | ||
7139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
7140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7141 | { | |
7142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7143 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7144 | ||
7145 | wxPyEndAllowThreads(__tstate); | |
7146 | if (PyErr_Occurred()) SWIG_fail; | |
7147 | } | |
994141e6 | 7148 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7149 | return resultobj; |
7150 | fail: | |
7151 | return NULL; | |
7152 | } | |
7153 | ||
7154 | ||
7155 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7156 | PyObject *resultobj; | |
7157 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7158 | bool result; | |
7159 | PyObject * obj0 = 0 ; | |
7160 | char *kwnames[] = { | |
7161 | (char *) "self", NULL | |
7162 | }; | |
7163 | ||
7164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
7165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7166 | { | |
7167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7168 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7169 | ||
7170 | wxPyEndAllowThreads(__tstate); | |
7171 | if (PyErr_Occurred()) SWIG_fail; | |
7172 | } | |
4d5c3d91 | 7173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7174 | return resultobj; |
7175 | fail: | |
7176 | return NULL; | |
7177 | } | |
7178 | ||
7179 | ||
7180 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7181 | PyObject *resultobj; | |
7182 | wxTextAttr *arg1 = 0 ; | |
7183 | wxTextAttr *arg2 = 0 ; | |
7184 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7185 | wxTextAttr result; | |
7186 | PyObject * obj0 = 0 ; | |
7187 | PyObject * obj1 = 0 ; | |
7188 | PyObject * obj2 = 0 ; | |
7189 | char *kwnames[] = { | |
7190 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7191 | }; | |
7192 | ||
7193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7195 | if (arg1 == NULL) { | |
7196 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7197 | } | |
7198 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7199 | if (arg2 == NULL) { | |
7200 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7201 | } | |
7202 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7203 | { | |
7204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7205 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7206 | ||
7207 | wxPyEndAllowThreads(__tstate); | |
7208 | if (PyErr_Occurred()) SWIG_fail; | |
7209 | } | |
7210 | { | |
7211 | wxTextAttr * resultptr; | |
7212 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
7213 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTextAttr, 1); | |
7214 | } | |
7215 | return resultobj; | |
7216 | fail: | |
7217 | return NULL; | |
7218 | } | |
7219 | ||
7220 | ||
7221 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7222 | PyObject *obj; | |
7223 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7224 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7225 | Py_INCREF(obj); | |
7226 | return Py_BuildValue((char *)""); | |
7227 | } | |
7228 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7229 | PyObject *resultobj; | |
7230 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 7231 | int arg2 ; |
d14a1e28 RD |
7232 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7233 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7234 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7235 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7236 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7237 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7238 | long arg6 = (long) 0 ; | |
7239 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7240 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7241 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7242 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7243 | wxTextCtrl *result; | |
e811c8ce | 7244 | bool temp3 = False ; |
d14a1e28 RD |
7245 | wxPoint temp4 ; |
7246 | wxSize temp5 ; | |
e811c8ce | 7247 | bool temp8 = False ; |
d14a1e28 | 7248 | PyObject * obj0 = 0 ; |
994141e6 | 7249 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7250 | PyObject * obj2 = 0 ; |
7251 | PyObject * obj3 = 0 ; | |
7252 | PyObject * obj4 = 0 ; | |
994141e6 | 7253 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7254 | PyObject * obj6 = 0 ; |
7255 | PyObject * obj7 = 0 ; | |
7256 | char *kwnames[] = { | |
7257 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7258 | }; | |
7259 | ||
994141e6 | 7260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 7261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7262 | { |
7263 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7264 | if (PyErr_Occurred()) SWIG_fail; | |
7265 | } | |
d14a1e28 RD |
7266 | if (obj2) { |
7267 | { | |
7268 | arg3 = wxString_in_helper(obj2); | |
7269 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7270 | temp3 = True; |
d14a1e28 RD |
7271 | } |
7272 | } | |
7273 | if (obj3) { | |
7274 | { | |
7275 | arg4 = &temp4; | |
7276 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7277 | } | |
7278 | } | |
7279 | if (obj4) { | |
7280 | { | |
7281 | arg5 = &temp5; | |
7282 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7283 | } | |
7284 | } | |
994141e6 RD |
7285 | if (obj5) { |
7286 | { | |
7287 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
7288 | if (PyErr_Occurred()) SWIG_fail; | |
7289 | } | |
7290 | } | |
d14a1e28 RD |
7291 | if (obj6) { |
7292 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7293 | if (arg7 == NULL) { | |
7294 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7295 | } | |
7296 | } | |
7297 | if (obj7) { | |
7298 | { | |
7299 | arg8 = wxString_in_helper(obj7); | |
7300 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 7301 | temp8 = True; |
d14a1e28 RD |
7302 | } |
7303 | } | |
7304 | { | |
7305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7306 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7307 | ||
7308 | wxPyEndAllowThreads(__tstate); | |
7309 | if (PyErr_Occurred()) SWIG_fail; | |
7310 | } | |
7311 | { | |
7312 | resultobj = wxPyMake_wxObject(result); | |
7313 | } | |
7314 | { | |
7315 | if (temp3) | |
7316 | delete arg3; | |
7317 | } | |
7318 | { | |
7319 | if (temp8) | |
7320 | delete arg8; | |
7321 | } | |
7322 | return resultobj; | |
7323 | fail: | |
7324 | { | |
7325 | if (temp3) | |
7326 | delete arg3; | |
7327 | } | |
7328 | { | |
7329 | if (temp8) | |
7330 | delete arg8; | |
7331 | } | |
7332 | return NULL; | |
7333 | } | |
7334 | ||
7335 | ||
7336 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7337 | PyObject *resultobj; | |
7338 | wxTextCtrl *result; | |
7339 | char *kwnames[] = { | |
7340 | NULL | |
7341 | }; | |
7342 | ||
7343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
7344 | { | |
7345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7346 | result = (wxTextCtrl *)new wxTextCtrl(); | |
7347 | ||
7348 | wxPyEndAllowThreads(__tstate); | |
7349 | if (PyErr_Occurred()) SWIG_fail; | |
7350 | } | |
7351 | { | |
7352 | resultobj = wxPyMake_wxObject(result); | |
7353 | } | |
7354 | return resultobj; | |
7355 | fail: | |
7356 | return NULL; | |
7357 | } | |
7358 | ||
7359 | ||
7360 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7361 | PyObject *resultobj; | |
7362 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7363 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 7364 | int arg3 ; |
d14a1e28 RD |
7365 | wxString const &arg4_defvalue = wxPyEmptyString ; |
7366 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7367 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7368 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7369 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7370 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7371 | long arg7 = (long) 0 ; | |
7372 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7373 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7374 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
7375 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7376 | bool result; | |
e811c8ce | 7377 | bool temp4 = False ; |
d14a1e28 RD |
7378 | wxPoint temp5 ; |
7379 | wxSize temp6 ; | |
e811c8ce | 7380 | bool temp9 = False ; |
d14a1e28 RD |
7381 | PyObject * obj0 = 0 ; |
7382 | PyObject * obj1 = 0 ; | |
994141e6 | 7383 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7384 | PyObject * obj3 = 0 ; |
7385 | PyObject * obj4 = 0 ; | |
7386 | PyObject * obj5 = 0 ; | |
994141e6 | 7387 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7388 | PyObject * obj7 = 0 ; |
7389 | PyObject * obj8 = 0 ; | |
7390 | char *kwnames[] = { | |
7391 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7392 | }; | |
7393 | ||
994141e6 | 7394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
7395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7396 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
7397 | { |
7398 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7399 | if (PyErr_Occurred()) SWIG_fail; | |
7400 | } | |
d14a1e28 RD |
7401 | if (obj3) { |
7402 | { | |
7403 | arg4 = wxString_in_helper(obj3); | |
7404 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 7405 | temp4 = True; |
d14a1e28 RD |
7406 | } |
7407 | } | |
7408 | if (obj4) { | |
7409 | { | |
7410 | arg5 = &temp5; | |
7411 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
7412 | } | |
7413 | } | |
7414 | if (obj5) { | |
7415 | { | |
7416 | arg6 = &temp6; | |
7417 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7418 | } | |
7419 | } | |
994141e6 RD |
7420 | if (obj6) { |
7421 | { | |
7422 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
7423 | if (PyErr_Occurred()) SWIG_fail; | |
7424 | } | |
7425 | } | |
d14a1e28 RD |
7426 | if (obj7) { |
7427 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7428 | if (arg8 == NULL) { | |
7429 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7430 | } | |
7431 | } | |
7432 | if (obj8) { | |
7433 | { | |
7434 | arg9 = wxString_in_helper(obj8); | |
7435 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 7436 | temp9 = True; |
d14a1e28 RD |
7437 | } |
7438 | } | |
7439 | { | |
7440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7441 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7442 | ||
7443 | wxPyEndAllowThreads(__tstate); | |
7444 | if (PyErr_Occurred()) SWIG_fail; | |
7445 | } | |
4d5c3d91 | 7446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7447 | { |
7448 | if (temp4) | |
7449 | delete arg4; | |
7450 | } | |
7451 | { | |
7452 | if (temp9) | |
7453 | delete arg9; | |
7454 | } | |
7455 | return resultobj; | |
7456 | fail: | |
7457 | { | |
7458 | if (temp4) | |
7459 | delete arg4; | |
7460 | } | |
7461 | { | |
7462 | if (temp9) | |
7463 | delete arg9; | |
7464 | } | |
7465 | return NULL; | |
7466 | } | |
7467 | ||
7468 | ||
7469 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7470 | PyObject *resultobj; | |
7471 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7472 | wxString result; | |
7473 | PyObject * obj0 = 0 ; | |
7474 | char *kwnames[] = { | |
7475 | (char *) "self", NULL | |
7476 | }; | |
7477 | ||
7478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
7479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7480 | { | |
7481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7482 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
7483 | ||
7484 | wxPyEndAllowThreads(__tstate); | |
7485 | if (PyErr_Occurred()) SWIG_fail; | |
7486 | } | |
7487 | { | |
7488 | #if wxUSE_UNICODE | |
7489 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7490 | #else | |
7491 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7492 | #endif | |
7493 | } | |
7494 | return resultobj; | |
7495 | fail: | |
7496 | return NULL; | |
7497 | } | |
7498 | ||
7499 | ||
7500 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7501 | PyObject *resultobj; | |
7502 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7503 | wxString *arg2 = 0 ; | |
e811c8ce | 7504 | bool temp2 = False ; |
d14a1e28 RD |
7505 | PyObject * obj0 = 0 ; |
7506 | PyObject * obj1 = 0 ; | |
7507 | char *kwnames[] = { | |
7508 | (char *) "self",(char *) "value", NULL | |
7509 | }; | |
7510 | ||
7511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
7512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7513 | { | |
7514 | arg2 = wxString_in_helper(obj1); | |
7515 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7516 | temp2 = True; |
d14a1e28 RD |
7517 | } |
7518 | { | |
7519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7520 | (arg1)->SetValue((wxString const &)*arg2); | |
7521 | ||
7522 | wxPyEndAllowThreads(__tstate); | |
7523 | if (PyErr_Occurred()) SWIG_fail; | |
7524 | } | |
7525 | Py_INCREF(Py_None); resultobj = Py_None; | |
7526 | { | |
7527 | if (temp2) | |
7528 | delete arg2; | |
7529 | } | |
7530 | return resultobj; | |
7531 | fail: | |
7532 | { | |
7533 | if (temp2) | |
7534 | delete arg2; | |
7535 | } | |
7536 | return NULL; | |
7537 | } | |
7538 | ||
7539 | ||
7540 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7541 | PyObject *resultobj; | |
7542 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7543 | long arg2 ; | |
7544 | long arg3 ; | |
7545 | wxString result; | |
7546 | PyObject * obj0 = 0 ; | |
994141e6 RD |
7547 | PyObject * obj1 = 0 ; |
7548 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7549 | char *kwnames[] = { |
7550 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7551 | }; | |
7552 | ||
994141e6 | 7553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7555 | { |
7556 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7557 | if (PyErr_Occurred()) SWIG_fail; | |
7558 | } | |
7559 | { | |
7560 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7561 | if (PyErr_Occurred()) SWIG_fail; | |
7562 | } | |
d14a1e28 RD |
7563 | { |
7564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7565 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
7566 | ||
7567 | wxPyEndAllowThreads(__tstate); | |
7568 | if (PyErr_Occurred()) SWIG_fail; | |
7569 | } | |
7570 | { | |
7571 | #if wxUSE_UNICODE | |
7572 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7573 | #else | |
7574 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7575 | #endif | |
7576 | } | |
7577 | return resultobj; | |
7578 | fail: | |
7579 | return NULL; | |
7580 | } | |
7581 | ||
7582 | ||
7583 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7584 | PyObject *resultobj; | |
7585 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7586 | long arg2 ; | |
7587 | int result; | |
7588 | PyObject * obj0 = 0 ; | |
994141e6 | 7589 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7590 | char *kwnames[] = { |
7591 | (char *) "self",(char *) "lineNo", NULL | |
7592 | }; | |
7593 | ||
994141e6 | 7594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7596 | { |
7597 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7598 | if (PyErr_Occurred()) SWIG_fail; | |
7599 | } | |
d14a1e28 RD |
7600 | { |
7601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7602 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
7603 | ||
7604 | wxPyEndAllowThreads(__tstate); | |
7605 | if (PyErr_Occurred()) SWIG_fail; | |
7606 | } | |
994141e6 | 7607 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7608 | return resultobj; |
7609 | fail: | |
7610 | return NULL; | |
7611 | } | |
7612 | ||
7613 | ||
7614 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7615 | PyObject *resultobj; | |
7616 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7617 | long arg2 ; | |
7618 | wxString result; | |
7619 | PyObject * obj0 = 0 ; | |
994141e6 | 7620 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7621 | char *kwnames[] = { |
7622 | (char *) "self",(char *) "lineNo", NULL | |
7623 | }; | |
7624 | ||
994141e6 | 7625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7627 | { |
7628 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7629 | if (PyErr_Occurred()) SWIG_fail; | |
7630 | } | |
d14a1e28 RD |
7631 | { |
7632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7633 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
7634 | ||
7635 | wxPyEndAllowThreads(__tstate); | |
7636 | if (PyErr_Occurred()) SWIG_fail; | |
7637 | } | |
7638 | { | |
7639 | #if wxUSE_UNICODE | |
7640 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7641 | #else | |
7642 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7643 | #endif | |
7644 | } | |
7645 | return resultobj; | |
7646 | fail: | |
7647 | return NULL; | |
7648 | } | |
7649 | ||
7650 | ||
7651 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7652 | PyObject *resultobj; | |
7653 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7654 | int result; | |
7655 | PyObject * obj0 = 0 ; | |
7656 | char *kwnames[] = { | |
7657 | (char *) "self", NULL | |
7658 | }; | |
7659 | ||
7660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
7661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7662 | { | |
7663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7664 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
7665 | ||
7666 | wxPyEndAllowThreads(__tstate); | |
7667 | if (PyErr_Occurred()) SWIG_fail; | |
7668 | } | |
994141e6 | 7669 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7670 | return resultobj; |
7671 | fail: | |
7672 | return NULL; | |
7673 | } | |
7674 | ||
7675 | ||
7676 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7677 | PyObject *resultobj; | |
7678 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7679 | bool result; | |
7680 | PyObject * obj0 = 0 ; | |
7681 | char *kwnames[] = { | |
7682 | (char *) "self", NULL | |
7683 | }; | |
7684 | ||
7685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
7686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7687 | { | |
7688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7689 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
7690 | ||
7691 | wxPyEndAllowThreads(__tstate); | |
7692 | if (PyErr_Occurred()) SWIG_fail; | |
7693 | } | |
4d5c3d91 | 7694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7695 | return resultobj; |
7696 | fail: | |
7697 | return NULL; | |
7698 | } | |
7699 | ||
7700 | ||
7701 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7702 | PyObject *resultobj; | |
7703 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7704 | bool result; | |
7705 | PyObject * obj0 = 0 ; | |
7706 | char *kwnames[] = { | |
7707 | (char *) "self", NULL | |
7708 | }; | |
7709 | ||
7710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
7711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7712 | { | |
7713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7714 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
7715 | ||
7716 | wxPyEndAllowThreads(__tstate); | |
7717 | if (PyErr_Occurred()) SWIG_fail; | |
7718 | } | |
4d5c3d91 | 7719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7720 | return resultobj; |
7721 | fail: | |
7722 | return NULL; | |
7723 | } | |
7724 | ||
7725 | ||
7726 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7727 | PyObject *resultobj; | |
7728 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7729 | bool result; | |
7730 | PyObject * obj0 = 0 ; | |
7731 | char *kwnames[] = { | |
7732 | (char *) "self", NULL | |
7733 | }; | |
7734 | ||
7735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
7736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7737 | { | |
7738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7739 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
7740 | ||
7741 | wxPyEndAllowThreads(__tstate); | |
7742 | if (PyErr_Occurred()) SWIG_fail; | |
7743 | } | |
4d5c3d91 | 7744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7745 | return resultobj; |
7746 | fail: | |
7747 | return NULL; | |
7748 | } | |
7749 | ||
7750 | ||
7751 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7752 | PyObject *resultobj; | |
7753 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7754 | bool result; | |
7755 | PyObject * obj0 = 0 ; | |
7756 | char *kwnames[] = { | |
7757 | (char *) "self", NULL | |
7758 | }; | |
7759 | ||
7760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
7761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7762 | { | |
7763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7764 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
7765 | ||
7766 | wxPyEndAllowThreads(__tstate); | |
7767 | if (PyErr_Occurred()) SWIG_fail; | |
7768 | } | |
4d5c3d91 | 7769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7770 | return resultobj; |
7771 | fail: | |
7772 | return NULL; | |
7773 | } | |
7774 | ||
7775 | ||
7776 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7777 | PyObject *resultobj; | |
7778 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7779 | long *arg2 = (long *) 0 ; | |
7780 | long *arg3 = (long *) 0 ; | |
7781 | long temp2 ; | |
7782 | long temp3 ; | |
7783 | PyObject * obj0 = 0 ; | |
7784 | char *kwnames[] = { | |
7785 | (char *) "self", NULL | |
7786 | }; | |
7787 | ||
7788 | arg2 = &temp2; | |
7789 | arg3 = &temp3; | |
7790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
7791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7792 | { | |
7793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7794 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
7795 | ||
7796 | wxPyEndAllowThreads(__tstate); | |
7797 | if (PyErr_Occurred()) SWIG_fail; | |
7798 | } | |
7799 | Py_INCREF(Py_None); resultobj = Py_None; | |
7800 | { | |
7801 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
7802 | resultobj = t_output_helper(resultobj,o); | |
7803 | } | |
7804 | { | |
7805 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7806 | resultobj = t_output_helper(resultobj,o); | |
7807 | } | |
7808 | return resultobj; | |
7809 | fail: | |
7810 | return NULL; | |
7811 | } | |
7812 | ||
7813 | ||
7814 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7815 | PyObject *resultobj; | |
7816 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7817 | wxString result; | |
7818 | PyObject * obj0 = 0 ; | |
7819 | char *kwnames[] = { | |
7820 | (char *) "self", NULL | |
7821 | }; | |
7822 | ||
7823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
7824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7825 | { | |
7826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7827 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
7828 | ||
7829 | wxPyEndAllowThreads(__tstate); | |
7830 | if (PyErr_Occurred()) SWIG_fail; | |
7831 | } | |
7832 | { | |
7833 | #if wxUSE_UNICODE | |
7834 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7835 | #else | |
7836 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7837 | #endif | |
7838 | } | |
7839 | return resultobj; | |
7840 | fail: | |
7841 | return NULL; | |
7842 | } | |
7843 | ||
7844 | ||
7845 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7846 | PyObject *resultobj; | |
7847 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7848 | PyObject * obj0 = 0 ; | |
7849 | char *kwnames[] = { | |
7850 | (char *) "self", NULL | |
7851 | }; | |
7852 | ||
7853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
7854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7855 | { | |
7856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7857 | (arg1)->Clear(); | |
7858 | ||
7859 | wxPyEndAllowThreads(__tstate); | |
7860 | if (PyErr_Occurred()) SWIG_fail; | |
7861 | } | |
7862 | Py_INCREF(Py_None); resultobj = Py_None; | |
7863 | return resultobj; | |
7864 | fail: | |
7865 | return NULL; | |
7866 | } | |
7867 | ||
7868 | ||
7869 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7870 | PyObject *resultobj; | |
7871 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7872 | long arg2 ; | |
7873 | long arg3 ; | |
7874 | wxString *arg4 = 0 ; | |
e811c8ce | 7875 | bool temp4 = False ; |
d14a1e28 | 7876 | PyObject * obj0 = 0 ; |
994141e6 RD |
7877 | PyObject * obj1 = 0 ; |
7878 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7879 | PyObject * obj3 = 0 ; |
7880 | char *kwnames[] = { | |
7881 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
7882 | }; | |
7883 | ||
994141e6 | 7884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 7885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7886 | { |
7887 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7888 | if (PyErr_Occurred()) SWIG_fail; | |
7889 | } | |
7890 | { | |
7891 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7892 | if (PyErr_Occurred()) SWIG_fail; | |
7893 | } | |
d14a1e28 RD |
7894 | { |
7895 | arg4 = wxString_in_helper(obj3); | |
7896 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 7897 | temp4 = True; |
d14a1e28 RD |
7898 | } |
7899 | { | |
7900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7901 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
7902 | ||
7903 | wxPyEndAllowThreads(__tstate); | |
7904 | if (PyErr_Occurred()) SWIG_fail; | |
7905 | } | |
7906 | Py_INCREF(Py_None); resultobj = Py_None; | |
7907 | { | |
7908 | if (temp4) | |
7909 | delete arg4; | |
7910 | } | |
7911 | return resultobj; | |
7912 | fail: | |
7913 | { | |
7914 | if (temp4) | |
7915 | delete arg4; | |
7916 | } | |
7917 | return NULL; | |
7918 | } | |
7919 | ||
7920 | ||
7921 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7922 | PyObject *resultobj; | |
7923 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7924 | long arg2 ; | |
7925 | long arg3 ; | |
7926 | PyObject * obj0 = 0 ; | |
994141e6 RD |
7927 | PyObject * obj1 = 0 ; |
7928 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7929 | char *kwnames[] = { |
7930 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7931 | }; | |
7932 | ||
994141e6 | 7933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7935 | { |
7936 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7937 | if (PyErr_Occurred()) SWIG_fail; | |
7938 | } | |
7939 | { | |
7940 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7941 | if (PyErr_Occurred()) SWIG_fail; | |
7942 | } | |
d14a1e28 RD |
7943 | { |
7944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7945 | (arg1)->Remove(arg2,arg3); | |
7946 | ||
7947 | wxPyEndAllowThreads(__tstate); | |
7948 | if (PyErr_Occurred()) SWIG_fail; | |
7949 | } | |
7950 | Py_INCREF(Py_None); resultobj = Py_None; | |
7951 | return resultobj; | |
7952 | fail: | |
7953 | return NULL; | |
7954 | } | |
7955 | ||
7956 | ||
7957 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7958 | PyObject *resultobj; | |
7959 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7960 | wxString *arg2 = 0 ; | |
7961 | bool result; | |
e811c8ce | 7962 | bool temp2 = False ; |
d14a1e28 RD |
7963 | PyObject * obj0 = 0 ; |
7964 | PyObject * obj1 = 0 ; | |
7965 | char *kwnames[] = { | |
7966 | (char *) "self",(char *) "file", NULL | |
7967 | }; | |
7968 | ||
7969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
7970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7971 | { | |
7972 | arg2 = wxString_in_helper(obj1); | |
7973 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7974 | temp2 = True; |
d14a1e28 RD |
7975 | } |
7976 | { | |
7977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7978 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
7979 | ||
7980 | wxPyEndAllowThreads(__tstate); | |
7981 | if (PyErr_Occurred()) SWIG_fail; | |
7982 | } | |
4d5c3d91 | 7983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7984 | { |
7985 | if (temp2) | |
7986 | delete arg2; | |
7987 | } | |
7988 | return resultobj; | |
7989 | fail: | |
7990 | { | |
7991 | if (temp2) | |
7992 | delete arg2; | |
7993 | } | |
7994 | return NULL; | |
7995 | } | |
7996 | ||
7997 | ||
7998 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7999 | PyObject *resultobj; | |
8000 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8001 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8002 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8003 | bool result; | |
e811c8ce | 8004 | bool temp2 = False ; |
d14a1e28 RD |
8005 | PyObject * obj0 = 0 ; |
8006 | PyObject * obj1 = 0 ; | |
8007 | char *kwnames[] = { | |
8008 | (char *) "self",(char *) "file", NULL | |
8009 | }; | |
8010 | ||
8011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
8012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8013 | if (obj1) { | |
8014 | { | |
8015 | arg2 = wxString_in_helper(obj1); | |
8016 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8017 | temp2 = True; |
d14a1e28 RD |
8018 | } |
8019 | } | |
8020 | { | |
8021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8022 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8023 | ||
8024 | wxPyEndAllowThreads(__tstate); | |
8025 | if (PyErr_Occurred()) SWIG_fail; | |
8026 | } | |
4d5c3d91 | 8027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8028 | { |
8029 | if (temp2) | |
8030 | delete arg2; | |
8031 | } | |
8032 | return resultobj; | |
8033 | fail: | |
8034 | { | |
8035 | if (temp2) | |
8036 | delete arg2; | |
8037 | } | |
8038 | return NULL; | |
8039 | } | |
8040 | ||
8041 | ||
8042 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8043 | PyObject *resultobj; | |
8044 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8045 | PyObject * obj0 = 0 ; | |
8046 | char *kwnames[] = { | |
8047 | (char *) "self", NULL | |
8048 | }; | |
8049 | ||
8050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
8051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8052 | { | |
8053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8054 | (arg1)->MarkDirty(); | |
8055 | ||
8056 | wxPyEndAllowThreads(__tstate); | |
8057 | if (PyErr_Occurred()) SWIG_fail; | |
8058 | } | |
8059 | Py_INCREF(Py_None); resultobj = Py_None; | |
8060 | return resultobj; | |
8061 | fail: | |
8062 | return NULL; | |
8063 | } | |
8064 | ||
8065 | ||
8066 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8067 | PyObject *resultobj; | |
8068 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8069 | PyObject * obj0 = 0 ; | |
8070 | char *kwnames[] = { | |
8071 | (char *) "self", NULL | |
8072 | }; | |
8073 | ||
8074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
8075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8076 | { | |
8077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8078 | (arg1)->DiscardEdits(); | |
8079 | ||
8080 | wxPyEndAllowThreads(__tstate); | |
8081 | if (PyErr_Occurred()) SWIG_fail; | |
8082 | } | |
8083 | Py_INCREF(Py_None); resultobj = Py_None; | |
8084 | return resultobj; | |
8085 | fail: | |
8086 | return NULL; | |
8087 | } | |
8088 | ||
8089 | ||
8090 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8091 | PyObject *resultobj; | |
8092 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8093 | unsigned long arg2 ; | |
8094 | PyObject * obj0 = 0 ; | |
8095 | PyObject * obj1 = 0 ; | |
8096 | char *kwnames[] = { | |
8097 | (char *) "self",(char *) "len", NULL | |
8098 | }; | |
8099 | ||
8100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
8101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 8102 | { |
994141e6 | 8103 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
8104 | if (PyErr_Occurred()) SWIG_fail; |
8105 | } | |
d14a1e28 RD |
8106 | { |
8107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8108 | (arg1)->SetMaxLength(arg2); | |
8109 | ||
8110 | wxPyEndAllowThreads(__tstate); | |
8111 | if (PyErr_Occurred()) SWIG_fail; | |
8112 | } | |
8113 | Py_INCREF(Py_None); resultobj = Py_None; | |
8114 | return resultobj; | |
8115 | fail: | |
8116 | return NULL; | |
8117 | } | |
8118 | ||
8119 | ||
8120 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8121 | PyObject *resultobj; | |
8122 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8123 | wxString *arg2 = 0 ; | |
e811c8ce | 8124 | bool temp2 = False ; |
d14a1e28 RD |
8125 | PyObject * obj0 = 0 ; |
8126 | PyObject * obj1 = 0 ; | |
8127 | char *kwnames[] = { | |
8128 | (char *) "self",(char *) "text", NULL | |
8129 | }; | |
8130 | ||
8131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
8132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8133 | { | |
8134 | arg2 = wxString_in_helper(obj1); | |
8135 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8136 | temp2 = True; |
d14a1e28 RD |
8137 | } |
8138 | { | |
8139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8140 | (arg1)->WriteText((wxString const &)*arg2); | |
8141 | ||
8142 | wxPyEndAllowThreads(__tstate); | |
8143 | if (PyErr_Occurred()) SWIG_fail; | |
8144 | } | |
8145 | Py_INCREF(Py_None); resultobj = Py_None; | |
8146 | { | |
8147 | if (temp2) | |
8148 | delete arg2; | |
8149 | } | |
8150 | return resultobj; | |
8151 | fail: | |
8152 | { | |
8153 | if (temp2) | |
8154 | delete arg2; | |
8155 | } | |
8156 | return NULL; | |
8157 | } | |
8158 | ||
8159 | ||
8160 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8161 | PyObject *resultobj; | |
8162 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8163 | wxString *arg2 = 0 ; | |
e811c8ce | 8164 | bool temp2 = False ; |
d14a1e28 RD |
8165 | PyObject * obj0 = 0 ; |
8166 | PyObject * obj1 = 0 ; | |
8167 | char *kwnames[] = { | |
8168 | (char *) "self",(char *) "text", NULL | |
8169 | }; | |
8170 | ||
8171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
8172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8173 | { | |
8174 | arg2 = wxString_in_helper(obj1); | |
8175 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8176 | temp2 = True; |
d14a1e28 RD |
8177 | } |
8178 | { | |
8179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8180 | (arg1)->AppendText((wxString const &)*arg2); | |
8181 | ||
8182 | wxPyEndAllowThreads(__tstate); | |
8183 | if (PyErr_Occurred()) SWIG_fail; | |
8184 | } | |
8185 | Py_INCREF(Py_None); resultobj = Py_None; | |
8186 | { | |
8187 | if (temp2) | |
8188 | delete arg2; | |
8189 | } | |
8190 | return resultobj; | |
8191 | fail: | |
8192 | { | |
8193 | if (temp2) | |
8194 | delete arg2; | |
8195 | } | |
8196 | return NULL; | |
8197 | } | |
8198 | ||
8199 | ||
8200 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8201 | PyObject *resultobj; | |
8202 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8203 | wxKeyEvent *arg2 = 0 ; | |
8204 | bool result; | |
8205 | PyObject * obj0 = 0 ; | |
8206 | PyObject * obj1 = 0 ; | |
8207 | char *kwnames[] = { | |
8208 | (char *) "self",(char *) "event", NULL | |
8209 | }; | |
8210 | ||
8211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
8212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8213 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8214 | if (arg2 == NULL) { | |
8215 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8216 | } | |
8217 | { | |
8218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8219 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8220 | ||
8221 | wxPyEndAllowThreads(__tstate); | |
8222 | if (PyErr_Occurred()) SWIG_fail; | |
8223 | } | |
4d5c3d91 | 8224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8225 | return resultobj; |
8226 | fail: | |
8227 | return NULL; | |
8228 | } | |
8229 | ||
8230 | ||
8231 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8232 | PyObject *resultobj; | |
8233 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8234 | long arg2 ; | |
8235 | long arg3 ; | |
8236 | wxTextAttr *arg4 = 0 ; | |
8237 | bool result; | |
8238 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8239 | PyObject * obj1 = 0 ; |
8240 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8241 | PyObject * obj3 = 0 ; |
8242 | char *kwnames[] = { | |
8243 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8244 | }; | |
8245 | ||
994141e6 | 8246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8248 | { |
8249 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8250 | if (PyErr_Occurred()) SWIG_fail; | |
8251 | } | |
8252 | { | |
8253 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8254 | if (PyErr_Occurred()) SWIG_fail; | |
8255 | } | |
d14a1e28 RD |
8256 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8257 | if (arg4 == NULL) { | |
8258 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8259 | } | |
8260 | { | |
8261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8262 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
8263 | ||
8264 | wxPyEndAllowThreads(__tstate); | |
8265 | if (PyErr_Occurred()) SWIG_fail; | |
8266 | } | |
4d5c3d91 | 8267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8268 | return resultobj; |
8269 | fail: | |
8270 | return NULL; | |
8271 | } | |
8272 | ||
8273 | ||
8274 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8275 | PyObject *resultobj; | |
8276 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8277 | long arg2 ; | |
8278 | wxTextAttr *arg3 = 0 ; | |
8279 | bool result; | |
8280 | PyObject * obj0 = 0 ; | |
994141e6 | 8281 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8282 | PyObject * obj2 = 0 ; |
8283 | char *kwnames[] = { | |
8284 | (char *) "self",(char *) "position",(char *) "style", NULL | |
8285 | }; | |
8286 | ||
994141e6 | 8287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8289 | { |
8290 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8291 | if (PyErr_Occurred()) SWIG_fail; | |
8292 | } | |
d14a1e28 RD |
8293 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8294 | if (arg3 == NULL) { | |
8295 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8296 | } | |
8297 | { | |
8298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8299 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
8300 | ||
8301 | wxPyEndAllowThreads(__tstate); | |
8302 | if (PyErr_Occurred()) SWIG_fail; | |
8303 | } | |
4d5c3d91 | 8304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8305 | return resultobj; |
8306 | fail: | |
8307 | return NULL; | |
8308 | } | |
8309 | ||
8310 | ||
8311 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8312 | PyObject *resultobj; | |
8313 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8314 | wxTextAttr *arg2 = 0 ; | |
8315 | bool result; | |
8316 | PyObject * obj0 = 0 ; | |
8317 | PyObject * obj1 = 0 ; | |
8318 | char *kwnames[] = { | |
8319 | (char *) "self",(char *) "style", NULL | |
8320 | }; | |
8321 | ||
8322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
8323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8324 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8325 | if (arg2 == NULL) { | |
8326 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8327 | } | |
8328 | { | |
8329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8330 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
8331 | ||
8332 | wxPyEndAllowThreads(__tstate); | |
8333 | if (PyErr_Occurred()) SWIG_fail; | |
8334 | } | |
4d5c3d91 | 8335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8336 | return resultobj; |
8337 | fail: | |
8338 | return NULL; | |
8339 | } | |
8340 | ||
8341 | ||
8342 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8343 | PyObject *resultobj; | |
8344 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8345 | wxTextAttr *result; | |
8346 | PyObject * obj0 = 0 ; | |
8347 | char *kwnames[] = { | |
8348 | (char *) "self", NULL | |
8349 | }; | |
8350 | ||
8351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
8352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8353 | { | |
8354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8355 | { | |
8356 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
8357 | result = (wxTextAttr *) &_result_ref; | |
8358 | } | |
8359 | ||
8360 | wxPyEndAllowThreads(__tstate); | |
8361 | if (PyErr_Occurred()) SWIG_fail; | |
8362 | } | |
8363 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 0); | |
8364 | return resultobj; | |
8365 | fail: | |
8366 | return NULL; | |
8367 | } | |
8368 | ||
8369 | ||
8370 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8371 | PyObject *resultobj; | |
8372 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8373 | long arg2 ; | |
8374 | long arg3 ; | |
8375 | long result; | |
8376 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8377 | PyObject * obj1 = 0 ; |
8378 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8379 | char *kwnames[] = { |
8380 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8381 | }; | |
8382 | ||
994141e6 | 8383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8385 | { |
8386 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8387 | if (PyErr_Occurred()) SWIG_fail; | |
8388 | } | |
8389 | { | |
8390 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8391 | if (PyErr_Occurred()) SWIG_fail; | |
8392 | } | |
d14a1e28 RD |
8393 | { |
8394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8395 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
8396 | ||
8397 | wxPyEndAllowThreads(__tstate); | |
8398 | if (PyErr_Occurred()) SWIG_fail; | |
8399 | } | |
994141e6 | 8400 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8401 | return resultobj; |
8402 | fail: | |
8403 | return NULL; | |
8404 | } | |
8405 | ||
8406 | ||
8407 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8408 | PyObject *resultobj; | |
8409 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8410 | long arg2 ; | |
8411 | long *arg3 = (long *) 0 ; | |
8412 | long *arg4 = (long *) 0 ; | |
8413 | long temp3 ; | |
8414 | long temp4 ; | |
8415 | PyObject * obj0 = 0 ; | |
994141e6 | 8416 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8417 | char *kwnames[] = { |
8418 | (char *) "self",(char *) "pos", NULL | |
8419 | }; | |
8420 | ||
8421 | arg3 = &temp3; | |
8422 | arg4 = &temp4; | |
994141e6 | 8423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8425 | { |
8426 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8427 | if (PyErr_Occurred()) SWIG_fail; | |
8428 | } | |
d14a1e28 RD |
8429 | { |
8430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8431 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
8432 | ||
8433 | wxPyEndAllowThreads(__tstate); | |
8434 | if (PyErr_Occurred()) SWIG_fail; | |
8435 | } | |
8436 | Py_INCREF(Py_None); resultobj = Py_None; | |
8437 | { | |
8438 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8439 | resultobj = t_output_helper(resultobj,o); | |
8440 | } | |
8441 | { | |
8442 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8443 | resultobj = t_output_helper(resultobj,o); | |
8444 | } | |
8445 | return resultobj; | |
8446 | fail: | |
8447 | return NULL; | |
8448 | } | |
8449 | ||
8450 | ||
8451 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8452 | PyObject *resultobj; | |
8453 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8454 | long arg2 ; | |
8455 | PyObject * obj0 = 0 ; | |
994141e6 | 8456 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8457 | char *kwnames[] = { |
8458 | (char *) "self",(char *) "pos", NULL | |
8459 | }; | |
8460 | ||
994141e6 | 8461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8463 | { |
8464 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8465 | if (PyErr_Occurred()) SWIG_fail; | |
8466 | } | |
d14a1e28 RD |
8467 | { |
8468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8469 | (arg1)->ShowPosition(arg2); | |
8470 | ||
8471 | wxPyEndAllowThreads(__tstate); | |
8472 | if (PyErr_Occurred()) SWIG_fail; | |
8473 | } | |
8474 | Py_INCREF(Py_None); resultobj = Py_None; | |
8475 | return resultobj; | |
8476 | fail: | |
8477 | return NULL; | |
8478 | } | |
8479 | ||
8480 | ||
4d5c3d91 RD |
8481 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8482 | PyObject *resultobj; | |
8483 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8484 | wxPoint *arg2 = 0 ; | |
8485 | long *arg3 = (long *) 0 ; | |
8486 | long *arg4 = (long *) 0 ; | |
8487 | int result; | |
8488 | wxPoint temp2 ; | |
8489 | long temp3 ; | |
8490 | long temp4 ; | |
8491 | PyObject * obj0 = 0 ; | |
8492 | PyObject * obj1 = 0 ; | |
8493 | char *kwnames[] = { | |
8494 | (char *) "self",(char *) "pt", NULL | |
8495 | }; | |
8496 | ||
8497 | arg3 = &temp3; | |
8498 | arg4 = &temp4; | |
8499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
8500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8501 | { | |
8502 | arg2 = &temp2; | |
8503 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8504 | } | |
8505 | { | |
8506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8507 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
8508 | ||
8509 | wxPyEndAllowThreads(__tstate); | |
8510 | if (PyErr_Occurred()) SWIG_fail; | |
8511 | } | |
8512 | resultobj = SWIG_PyObj_FromInt((int)result); | |
8513 | { | |
8514 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8515 | resultobj = t_output_helper(resultobj,o); | |
8516 | } | |
8517 | { | |
8518 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8519 | resultobj = t_output_helper(resultobj,o); | |
8520 | } | |
8521 | return resultobj; | |
8522 | fail: | |
8523 | return NULL; | |
8524 | } | |
8525 | ||
8526 | ||
d14a1e28 RD |
8527 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8528 | PyObject *resultobj; | |
8529 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8530 | PyObject * obj0 = 0 ; | |
8531 | char *kwnames[] = { | |
8532 | (char *) "self", NULL | |
8533 | }; | |
8534 | ||
8535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
8536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8537 | { | |
8538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8539 | (arg1)->Copy(); | |
8540 | ||
8541 | wxPyEndAllowThreads(__tstate); | |
8542 | if (PyErr_Occurred()) SWIG_fail; | |
8543 | } | |
8544 | Py_INCREF(Py_None); resultobj = Py_None; | |
8545 | return resultobj; | |
8546 | fail: | |
8547 | return NULL; | |
8548 | } | |
8549 | ||
8550 | ||
8551 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8552 | PyObject *resultobj; | |
8553 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8554 | PyObject * obj0 = 0 ; | |
8555 | char *kwnames[] = { | |
8556 | (char *) "self", NULL | |
8557 | }; | |
8558 | ||
8559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
8560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8561 | { | |
8562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8563 | (arg1)->Cut(); | |
8564 | ||
8565 | wxPyEndAllowThreads(__tstate); | |
8566 | if (PyErr_Occurred()) SWIG_fail; | |
8567 | } | |
8568 | Py_INCREF(Py_None); resultobj = Py_None; | |
8569 | return resultobj; | |
8570 | fail: | |
8571 | return NULL; | |
8572 | } | |
8573 | ||
8574 | ||
8575 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8576 | PyObject *resultobj; | |
8577 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8578 | PyObject * obj0 = 0 ; | |
8579 | char *kwnames[] = { | |
8580 | (char *) "self", NULL | |
8581 | }; | |
8582 | ||
8583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
8584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8585 | { | |
8586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8587 | (arg1)->Paste(); | |
8588 | ||
8589 | wxPyEndAllowThreads(__tstate); | |
8590 | if (PyErr_Occurred()) SWIG_fail; | |
8591 | } | |
8592 | Py_INCREF(Py_None); resultobj = Py_None; | |
8593 | return resultobj; | |
8594 | fail: | |
8595 | return NULL; | |
8596 | } | |
8597 | ||
8598 | ||
8599 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8600 | PyObject *resultobj; | |
8601 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8602 | bool result; | |
8603 | PyObject * obj0 = 0 ; | |
8604 | char *kwnames[] = { | |
8605 | (char *) "self", NULL | |
8606 | }; | |
8607 | ||
8608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
8609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8610 | { | |
8611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8612 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
8613 | ||
8614 | wxPyEndAllowThreads(__tstate); | |
8615 | if (PyErr_Occurred()) SWIG_fail; | |
8616 | } | |
4d5c3d91 | 8617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8618 | return resultobj; |
8619 | fail: | |
8620 | return NULL; | |
8621 | } | |
8622 | ||
8623 | ||
8624 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8625 | PyObject *resultobj; | |
8626 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8627 | bool result; | |
8628 | PyObject * obj0 = 0 ; | |
8629 | char *kwnames[] = { | |
8630 | (char *) "self", NULL | |
8631 | }; | |
8632 | ||
8633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
8634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8635 | { | |
8636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8637 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
8638 | ||
8639 | wxPyEndAllowThreads(__tstate); | |
8640 | if (PyErr_Occurred()) SWIG_fail; | |
8641 | } | |
4d5c3d91 | 8642 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8643 | return resultobj; |
8644 | fail: | |
8645 | return NULL; | |
8646 | } | |
8647 | ||
8648 | ||
8649 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8650 | PyObject *resultobj; | |
8651 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8652 | bool result; | |
8653 | PyObject * obj0 = 0 ; | |
8654 | char *kwnames[] = { | |
8655 | (char *) "self", NULL | |
8656 | }; | |
8657 | ||
8658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
8659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8660 | { | |
8661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8662 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
8663 | ||
8664 | wxPyEndAllowThreads(__tstate); | |
8665 | if (PyErr_Occurred()) SWIG_fail; | |
8666 | } | |
4d5c3d91 | 8667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8668 | return resultobj; |
8669 | fail: | |
8670 | return NULL; | |
8671 | } | |
8672 | ||
8673 | ||
8674 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8675 | PyObject *resultobj; | |
8676 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8677 | PyObject * obj0 = 0 ; | |
8678 | char *kwnames[] = { | |
8679 | (char *) "self", NULL | |
8680 | }; | |
8681 | ||
8682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
8683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8684 | { | |
8685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8686 | (arg1)->Undo(); | |
8687 | ||
8688 | wxPyEndAllowThreads(__tstate); | |
8689 | if (PyErr_Occurred()) SWIG_fail; | |
8690 | } | |
8691 | Py_INCREF(Py_None); resultobj = Py_None; | |
8692 | return resultobj; | |
8693 | fail: | |
8694 | return NULL; | |
8695 | } | |
8696 | ||
8697 | ||
8698 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8699 | PyObject *resultobj; | |
8700 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8701 | PyObject * obj0 = 0 ; | |
8702 | char *kwnames[] = { | |
8703 | (char *) "self", NULL | |
8704 | }; | |
8705 | ||
8706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
8707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8708 | { | |
8709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8710 | (arg1)->Redo(); | |
8711 | ||
8712 | wxPyEndAllowThreads(__tstate); | |
8713 | if (PyErr_Occurred()) SWIG_fail; | |
8714 | } | |
8715 | Py_INCREF(Py_None); resultobj = Py_None; | |
8716 | return resultobj; | |
8717 | fail: | |
8718 | return NULL; | |
8719 | } | |
8720 | ||
8721 | ||
8722 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8723 | PyObject *resultobj; | |
8724 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8725 | bool result; | |
8726 | PyObject * obj0 = 0 ; | |
8727 | char *kwnames[] = { | |
8728 | (char *) "self", NULL | |
8729 | }; | |
8730 | ||
8731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
8732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8733 | { | |
8734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8735 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
8736 | ||
8737 | wxPyEndAllowThreads(__tstate); | |
8738 | if (PyErr_Occurred()) SWIG_fail; | |
8739 | } | |
4d5c3d91 | 8740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8741 | return resultobj; |
8742 | fail: | |
8743 | return NULL; | |
8744 | } | |
8745 | ||
8746 | ||
8747 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8748 | PyObject *resultobj; | |
8749 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8750 | bool result; | |
8751 | PyObject * obj0 = 0 ; | |
8752 | char *kwnames[] = { | |
8753 | (char *) "self", NULL | |
8754 | }; | |
8755 | ||
8756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
8757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8758 | { | |
8759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8760 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
8761 | ||
8762 | wxPyEndAllowThreads(__tstate); | |
8763 | if (PyErr_Occurred()) SWIG_fail; | |
8764 | } | |
4d5c3d91 | 8765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8766 | return resultobj; |
8767 | fail: | |
8768 | return NULL; | |
8769 | } | |
8770 | ||
8771 | ||
8772 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8773 | PyObject *resultobj; | |
8774 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8775 | long arg2 ; | |
8776 | PyObject * obj0 = 0 ; | |
994141e6 | 8777 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8778 | char *kwnames[] = { |
8779 | (char *) "self",(char *) "pos", NULL | |
8780 | }; | |
8781 | ||
994141e6 | 8782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8784 | { |
8785 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8786 | if (PyErr_Occurred()) SWIG_fail; | |
8787 | } | |
d14a1e28 RD |
8788 | { |
8789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8790 | (arg1)->SetInsertionPoint(arg2); | |
8791 | ||
8792 | wxPyEndAllowThreads(__tstate); | |
8793 | if (PyErr_Occurred()) SWIG_fail; | |
8794 | } | |
8795 | Py_INCREF(Py_None); resultobj = Py_None; | |
8796 | return resultobj; | |
8797 | fail: | |
8798 | return NULL; | |
8799 | } | |
8800 | ||
8801 | ||
8802 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8803 | PyObject *resultobj; | |
8804 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8805 | PyObject * obj0 = 0 ; | |
8806 | char *kwnames[] = { | |
8807 | (char *) "self", NULL | |
8808 | }; | |
8809 | ||
8810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
8811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8812 | { | |
8813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8814 | (arg1)->SetInsertionPointEnd(); | |
8815 | ||
8816 | wxPyEndAllowThreads(__tstate); | |
8817 | if (PyErr_Occurred()) SWIG_fail; | |
8818 | } | |
8819 | Py_INCREF(Py_None); resultobj = Py_None; | |
8820 | return resultobj; | |
8821 | fail: | |
8822 | return NULL; | |
8823 | } | |
8824 | ||
8825 | ||
8826 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8827 | PyObject *resultobj; | |
8828 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8829 | long result; | |
8830 | PyObject * obj0 = 0 ; | |
8831 | char *kwnames[] = { | |
8832 | (char *) "self", NULL | |
8833 | }; | |
8834 | ||
8835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
8836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8837 | { | |
8838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8839 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
8840 | ||
8841 | wxPyEndAllowThreads(__tstate); | |
8842 | if (PyErr_Occurred()) SWIG_fail; | |
8843 | } | |
994141e6 | 8844 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8845 | return resultobj; |
8846 | fail: | |
8847 | return NULL; | |
8848 | } | |
8849 | ||
8850 | ||
8851 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8852 | PyObject *resultobj; | |
8853 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8854 | long result; | |
8855 | PyObject * obj0 = 0 ; | |
8856 | char *kwnames[] = { | |
8857 | (char *) "self", NULL | |
8858 | }; | |
8859 | ||
8860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
8861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8862 | { | |
8863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8864 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
8865 | ||
8866 | wxPyEndAllowThreads(__tstate); | |
8867 | if (PyErr_Occurred()) SWIG_fail; | |
8868 | } | |
994141e6 | 8869 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8870 | return resultobj; |
8871 | fail: | |
8872 | return NULL; | |
8873 | } | |
8874 | ||
8875 | ||
8876 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8877 | PyObject *resultobj; | |
8878 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8879 | long arg2 ; | |
8880 | long arg3 ; | |
8881 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8882 | PyObject * obj1 = 0 ; |
8883 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8884 | char *kwnames[] = { |
8885 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8886 | }; | |
8887 | ||
994141e6 | 8888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8890 | { |
8891 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8892 | if (PyErr_Occurred()) SWIG_fail; | |
8893 | } | |
8894 | { | |
8895 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8896 | if (PyErr_Occurred()) SWIG_fail; | |
8897 | } | |
d14a1e28 RD |
8898 | { |
8899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8900 | (arg1)->SetSelection(arg2,arg3); | |
8901 | ||
8902 | wxPyEndAllowThreads(__tstate); | |
8903 | if (PyErr_Occurred()) SWIG_fail; | |
8904 | } | |
8905 | Py_INCREF(Py_None); resultobj = Py_None; | |
8906 | return resultobj; | |
8907 | fail: | |
8908 | return NULL; | |
8909 | } | |
8910 | ||
8911 | ||
8912 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8913 | PyObject *resultobj; | |
8914 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8915 | PyObject * obj0 = 0 ; | |
8916 | char *kwnames[] = { | |
8917 | (char *) "self", NULL | |
8918 | }; | |
8919 | ||
8920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
8921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8922 | { | |
8923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8924 | (arg1)->SelectAll(); | |
8925 | ||
8926 | wxPyEndAllowThreads(__tstate); | |
8927 | if (PyErr_Occurred()) SWIG_fail; | |
8928 | } | |
8929 | Py_INCREF(Py_None); resultobj = Py_None; | |
8930 | return resultobj; | |
8931 | fail: | |
8932 | return NULL; | |
8933 | } | |
8934 | ||
8935 | ||
8936 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8937 | PyObject *resultobj; | |
8938 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8939 | bool arg2 ; | |
8940 | PyObject * obj0 = 0 ; | |
8941 | PyObject * obj1 = 0 ; | |
8942 | char *kwnames[] = { | |
8943 | (char *) "self",(char *) "editable", NULL | |
8944 | }; | |
8945 | ||
8946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
8947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 8948 | { |
994141e6 | 8949 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
8950 | if (PyErr_Occurred()) SWIG_fail; |
8951 | } | |
d14a1e28 RD |
8952 | { |
8953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8954 | (arg1)->SetEditable(arg2); | |
8955 | ||
8956 | wxPyEndAllowThreads(__tstate); | |
8957 | if (PyErr_Occurred()) SWIG_fail; | |
8958 | } | |
8959 | Py_INCREF(Py_None); resultobj = Py_None; | |
8960 | return resultobj; | |
8961 | fail: | |
8962 | return NULL; | |
8963 | } | |
8964 | ||
8965 | ||
8966 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8967 | PyObject *resultobj; | |
8968 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8969 | wxString *arg2 = 0 ; | |
e811c8ce | 8970 | bool temp2 = False ; |
d14a1e28 RD |
8971 | PyObject * obj0 = 0 ; |
8972 | PyObject * obj1 = 0 ; | |
8973 | char *kwnames[] = { | |
8974 | (char *) "self",(char *) "text", NULL | |
8975 | }; | |
8976 | ||
8977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
8978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8979 | { | |
8980 | arg2 = wxString_in_helper(obj1); | |
8981 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8982 | temp2 = True; |
d14a1e28 RD |
8983 | } |
8984 | { | |
8985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8986 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
8987 | ||
8988 | wxPyEndAllowThreads(__tstate); | |
8989 | if (PyErr_Occurred()) SWIG_fail; | |
8990 | } | |
8991 | Py_INCREF(Py_None); resultobj = Py_None; | |
8992 | { | |
8993 | if (temp2) | |
8994 | delete arg2; | |
8995 | } | |
8996 | return resultobj; | |
8997 | fail: | |
8998 | { | |
8999 | if (temp2) | |
9000 | delete arg2; | |
9001 | } | |
9002 | return NULL; | |
9003 | } | |
9004 | ||
9005 | ||
9006 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9007 | PyObject *resultobj; | |
9008 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9009 | long arg2 ; | |
9010 | long arg3 ; | |
9011 | wxString result; | |
9012 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9013 | PyObject * obj1 = 0 ; |
9014 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9015 | char *kwnames[] = { |
9016 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9017 | }; | |
9018 | ||
994141e6 | 9019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 9020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9021 | { |
9022 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
9023 | if (PyErr_Occurred()) SWIG_fail; | |
9024 | } | |
9025 | { | |
9026 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9027 | if (PyErr_Occurred()) SWIG_fail; | |
9028 | } | |
d14a1e28 RD |
9029 | { |
9030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9031 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9032 | ||
9033 | wxPyEndAllowThreads(__tstate); | |
9034 | if (PyErr_Occurred()) SWIG_fail; | |
9035 | } | |
9036 | { | |
9037 | #if wxUSE_UNICODE | |
9038 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9039 | #else | |
9040 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9041 | #endif | |
9042 | } | |
9043 | return resultobj; | |
9044 | fail: | |
9045 | return NULL; | |
9046 | } | |
9047 | ||
9048 | ||
9049 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
9050 | PyObject *obj; | |
9051 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9052 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9053 | Py_INCREF(obj); | |
9054 | return Py_BuildValue((char *)""); | |
9055 | } | |
9056 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9057 | PyObject *resultobj; | |
9058 | int arg1 ; | |
9059 | wxMouseEvent *arg2 = 0 ; | |
9060 | long arg3 ; | |
9061 | long arg4 ; | |
9062 | wxTextUrlEvent *result; | |
994141e6 | 9063 | PyObject * obj0 = 0 ; |
d14a1e28 | 9064 | PyObject * obj1 = 0 ; |
994141e6 RD |
9065 | PyObject * obj2 = 0 ; |
9066 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9067 | char *kwnames[] = { |
9068 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9069 | }; | |
9070 | ||
994141e6 RD |
9071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
9072 | { | |
9073 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9074 | if (PyErr_Occurred()) SWIG_fail; | |
9075 | } | |
d14a1e28 RD |
9076 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9077 | if (arg2 == NULL) { | |
9078 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9079 | } | |
994141e6 RD |
9080 | { |
9081 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9082 | if (PyErr_Occurred()) SWIG_fail; | |
9083 | } | |
9084 | { | |
9085 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
9086 | if (PyErr_Occurred()) SWIG_fail; | |
9087 | } | |
d14a1e28 RD |
9088 | { |
9089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9090 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9091 | ||
9092 | wxPyEndAllowThreads(__tstate); | |
9093 | if (PyErr_Occurred()) SWIG_fail; | |
9094 | } | |
9095 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextUrlEvent, 1); | |
9096 | return resultobj; | |
9097 | fail: | |
9098 | return NULL; | |
9099 | } | |
9100 | ||
9101 | ||
9102 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9103 | PyObject *resultobj; | |
9104 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9105 | wxMouseEvent *result; | |
9106 | PyObject * obj0 = 0 ; | |
9107 | char *kwnames[] = { | |
9108 | (char *) "self", NULL | |
9109 | }; | |
9110 | ||
9111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
9112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9113 | { | |
9114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9115 | { | |
9116 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9117 | result = (wxMouseEvent *) &_result_ref; | |
9118 | } | |
9119 | ||
9120 | wxPyEndAllowThreads(__tstate); | |
9121 | if (PyErr_Occurred()) SWIG_fail; | |
9122 | } | |
9123 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseEvent, 0); | |
9124 | return resultobj; | |
9125 | fail: | |
9126 | return NULL; | |
9127 | } | |
9128 | ||
9129 | ||
9130 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9131 | PyObject *resultobj; | |
9132 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9133 | long result; | |
9134 | PyObject * obj0 = 0 ; | |
9135 | char *kwnames[] = { | |
9136 | (char *) "self", NULL | |
9137 | }; | |
9138 | ||
9139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
9140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9141 | { | |
9142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9143 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9144 | ||
9145 | wxPyEndAllowThreads(__tstate); | |
9146 | if (PyErr_Occurred()) SWIG_fail; | |
9147 | } | |
994141e6 | 9148 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9149 | return resultobj; |
9150 | fail: | |
9151 | return NULL; | |
9152 | } | |
9153 | ||
9154 | ||
9155 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9156 | PyObject *resultobj; | |
9157 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9158 | long result; | |
9159 | PyObject * obj0 = 0 ; | |
9160 | char *kwnames[] = { | |
9161 | (char *) "self", NULL | |
9162 | }; | |
9163 | ||
9164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
9165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9166 | { | |
9167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9168 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
9169 | ||
9170 | wxPyEndAllowThreads(__tstate); | |
9171 | if (PyErr_Occurred()) SWIG_fail; | |
9172 | } | |
994141e6 | 9173 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9174 | return resultobj; |
9175 | fail: | |
9176 | return NULL; | |
9177 | } | |
9178 | ||
9179 | ||
9180 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
9181 | PyObject *obj; | |
9182 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9183 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
9184 | Py_INCREF(obj); | |
9185 | return Py_BuildValue((char *)""); | |
9186 | } | |
b2dc1044 RD |
9187 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { |
9188 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); | |
9189 | return 1; | |
9190 | } | |
9191 | ||
9192 | ||
9193 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
9194 | PyObject *pyobj; | |
9195 | ||
9196 | { | |
9197 | #if wxUSE_UNICODE | |
9198 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9199 | #else | |
9200 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9201 | #endif | |
9202 | } | |
9203 | return pyobj; | |
9204 | } | |
9205 | ||
9206 | ||
d14a1e28 RD |
9207 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9208 | PyObject *resultobj; | |
9209 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 9210 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9211 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9212 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9213 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9214 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9215 | long arg5 = (long) wxSB_HORIZONTAL ; | |
9216 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
9217 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
9218 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
9219 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9220 | wxScrollBar *result; | |
9221 | wxPoint temp3 ; | |
9222 | wxSize temp4 ; | |
e811c8ce | 9223 | bool temp7 = False ; |
d14a1e28 | 9224 | PyObject * obj0 = 0 ; |
994141e6 | 9225 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9226 | PyObject * obj2 = 0 ; |
9227 | PyObject * obj3 = 0 ; | |
994141e6 | 9228 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9229 | PyObject * obj5 = 0 ; |
9230 | PyObject * obj6 = 0 ; | |
9231 | char *kwnames[] = { | |
9232 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9233 | }; | |
9234 | ||
994141e6 | 9235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 9236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9237 | if (obj1) { |
9238 | { | |
9239 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9240 | if (PyErr_Occurred()) SWIG_fail; | |
9241 | } | |
9242 | } | |
d14a1e28 RD |
9243 | if (obj2) { |
9244 | { | |
9245 | arg3 = &temp3; | |
9246 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9247 | } | |
9248 | } | |
9249 | if (obj3) { | |
9250 | { | |
9251 | arg4 = &temp4; | |
9252 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9253 | } | |
9254 | } | |
994141e6 RD |
9255 | if (obj4) { |
9256 | { | |
9257 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9258 | if (PyErr_Occurred()) SWIG_fail; | |
9259 | } | |
9260 | } | |
d14a1e28 RD |
9261 | if (obj5) { |
9262 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9263 | if (arg6 == NULL) { | |
9264 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9265 | } | |
9266 | } | |
9267 | if (obj6) { | |
9268 | { | |
9269 | arg7 = wxString_in_helper(obj6); | |
9270 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 9271 | temp7 = True; |
d14a1e28 RD |
9272 | } |
9273 | } | |
9274 | { | |
9275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9276 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
9277 | ||
9278 | wxPyEndAllowThreads(__tstate); | |
9279 | if (PyErr_Occurred()) SWIG_fail; | |
9280 | } | |
9281 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9282 | { | |
9283 | if (temp7) | |
9284 | delete arg7; | |
9285 | } | |
9286 | return resultobj; | |
9287 | fail: | |
9288 | { | |
9289 | if (temp7) | |
9290 | delete arg7; | |
9291 | } | |
9292 | return NULL; | |
9293 | } | |
9294 | ||
9295 | ||
9296 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9297 | PyObject *resultobj; | |
9298 | wxScrollBar *result; | |
9299 | char *kwnames[] = { | |
9300 | NULL | |
9301 | }; | |
9302 | ||
9303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
9304 | { | |
9305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9306 | result = (wxScrollBar *)new wxScrollBar(); | |
9307 | ||
9308 | wxPyEndAllowThreads(__tstate); | |
9309 | if (PyErr_Occurred()) SWIG_fail; | |
9310 | } | |
9311 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9312 | return resultobj; | |
9313 | fail: | |
9314 | return NULL; | |
9315 | } | |
9316 | ||
9317 | ||
9318 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9319 | PyObject *resultobj; | |
9320 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9321 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 9322 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9323 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9324 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9325 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9326 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9327 | long arg6 = (long) wxSB_HORIZONTAL ; | |
9328 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9329 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9330 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
9331 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9332 | bool result; | |
9333 | wxPoint temp4 ; | |
9334 | wxSize temp5 ; | |
e811c8ce | 9335 | bool temp8 = False ; |
d14a1e28 RD |
9336 | PyObject * obj0 = 0 ; |
9337 | PyObject * obj1 = 0 ; | |
994141e6 | 9338 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9339 | PyObject * obj3 = 0 ; |
9340 | PyObject * obj4 = 0 ; | |
994141e6 | 9341 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9342 | PyObject * obj6 = 0 ; |
9343 | PyObject * obj7 = 0 ; | |
9344 | char *kwnames[] = { | |
9345 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9346 | }; | |
9347 | ||
994141e6 | 9348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
9349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9350 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
9351 | if (obj2) { |
9352 | { | |
9353 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9354 | if (PyErr_Occurred()) SWIG_fail; | |
9355 | } | |
9356 | } | |
d14a1e28 RD |
9357 | if (obj3) { |
9358 | { | |
9359 | arg4 = &temp4; | |
9360 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9361 | } | |
9362 | } | |
9363 | if (obj4) { | |
9364 | { | |
9365 | arg5 = &temp5; | |
9366 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9367 | } | |
9368 | } | |
994141e6 RD |
9369 | if (obj5) { |
9370 | { | |
9371 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9372 | if (PyErr_Occurred()) SWIG_fail; | |
9373 | } | |
9374 | } | |
d14a1e28 RD |
9375 | if (obj6) { |
9376 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9377 | if (arg7 == NULL) { | |
9378 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9379 | } | |
9380 | } | |
9381 | if (obj7) { | |
9382 | { | |
9383 | arg8 = wxString_in_helper(obj7); | |
9384 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 9385 | temp8 = True; |
d14a1e28 RD |
9386 | } |
9387 | } | |
9388 | { | |
9389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9390 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9391 | ||
9392 | wxPyEndAllowThreads(__tstate); | |
9393 | if (PyErr_Occurred()) SWIG_fail; | |
9394 | } | |
4d5c3d91 | 9395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9396 | { |
9397 | if (temp8) | |
9398 | delete arg8; | |
9399 | } | |
9400 | return resultobj; | |
9401 | fail: | |
9402 | { | |
9403 | if (temp8) | |
9404 | delete arg8; | |
9405 | } | |
9406 | return NULL; | |
9407 | } | |
9408 | ||
9409 | ||
9410 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9411 | PyObject *resultobj; | |
9412 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9413 | int result; | |
9414 | PyObject * obj0 = 0 ; | |
9415 | char *kwnames[] = { | |
9416 | (char *) "self", NULL | |
9417 | }; | |
9418 | ||
9419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
9420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9421 | { | |
9422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9423 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
9424 | ||
9425 | wxPyEndAllowThreads(__tstate); | |
9426 | if (PyErr_Occurred()) SWIG_fail; | |
9427 | } | |
994141e6 | 9428 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9429 | return resultobj; |
9430 | fail: | |
9431 | return NULL; | |
9432 | } | |
9433 | ||
9434 | ||
9435 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9436 | PyObject *resultobj; | |
9437 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9438 | int result; | |
9439 | PyObject * obj0 = 0 ; | |
9440 | char *kwnames[] = { | |
9441 | (char *) "self", NULL | |
9442 | }; | |
9443 | ||
9444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
9445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9446 | { | |
9447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9448 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
9449 | ||
9450 | wxPyEndAllowThreads(__tstate); | |
9451 | if (PyErr_Occurred()) SWIG_fail; | |
9452 | } | |
994141e6 | 9453 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9454 | return resultobj; |
9455 | fail: | |
9456 | return NULL; | |
9457 | } | |
9458 | ||
9459 | ||
9460 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9461 | PyObject *resultobj; | |
9462 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9463 | int result; | |
9464 | PyObject * obj0 = 0 ; | |
9465 | char *kwnames[] = { | |
9466 | (char *) "self", NULL | |
9467 | }; | |
9468 | ||
9469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
9470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9471 | { | |
9472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9473 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
9474 | ||
9475 | wxPyEndAllowThreads(__tstate); | |
9476 | if (PyErr_Occurred()) SWIG_fail; | |
9477 | } | |
994141e6 | 9478 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9479 | return resultobj; |
9480 | fail: | |
9481 | return NULL; | |
9482 | } | |
9483 | ||
9484 | ||
9485 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9486 | PyObject *resultobj; | |
9487 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9488 | int result; | |
9489 | PyObject * obj0 = 0 ; | |
9490 | char *kwnames[] = { | |
9491 | (char *) "self", NULL | |
9492 | }; | |
9493 | ||
9494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
9495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9496 | { | |
9497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9498 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
9499 | ||
9500 | wxPyEndAllowThreads(__tstate); | |
9501 | if (PyErr_Occurred()) SWIG_fail; | |
9502 | } | |
994141e6 | 9503 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9504 | return resultobj; |
9505 | fail: | |
9506 | return NULL; | |
9507 | } | |
9508 | ||
9509 | ||
9510 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9511 | PyObject *resultobj; | |
9512 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9513 | bool result; | |
9514 | PyObject * obj0 = 0 ; | |
9515 | char *kwnames[] = { | |
9516 | (char *) "self", NULL | |
9517 | }; | |
9518 | ||
9519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
9520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9521 | { | |
9522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9523 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
9524 | ||
9525 | wxPyEndAllowThreads(__tstate); | |
9526 | if (PyErr_Occurred()) SWIG_fail; | |
9527 | } | |
4d5c3d91 | 9528 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9529 | return resultobj; |
9530 | fail: | |
9531 | return NULL; | |
9532 | } | |
9533 | ||
9534 | ||
9535 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9536 | PyObject *resultobj; | |
9537 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9538 | int arg2 ; | |
9539 | PyObject * obj0 = 0 ; | |
994141e6 | 9540 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9541 | char *kwnames[] = { |
9542 | (char *) "self",(char *) "viewStart", NULL | |
9543 | }; | |
9544 | ||
994141e6 | 9545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9547 | { |
9548 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9549 | if (PyErr_Occurred()) SWIG_fail; | |
9550 | } | |
d14a1e28 RD |
9551 | { |
9552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9553 | (arg1)->SetThumbPosition(arg2); | |
9554 | ||
9555 | wxPyEndAllowThreads(__tstate); | |
9556 | if (PyErr_Occurred()) SWIG_fail; | |
9557 | } | |
9558 | Py_INCREF(Py_None); resultobj = Py_None; | |
9559 | return resultobj; | |
9560 | fail: | |
9561 | return NULL; | |
9562 | } | |
9563 | ||
9564 | ||
9565 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9566 | PyObject *resultobj; | |
9567 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9568 | int arg2 ; | |
9569 | int arg3 ; | |
9570 | int arg4 ; | |
9571 | int arg5 ; | |
e811c8ce | 9572 | bool arg6 = (bool) True ; |
d14a1e28 | 9573 | PyObject * obj0 = 0 ; |
994141e6 RD |
9574 | PyObject * obj1 = 0 ; |
9575 | PyObject * obj2 = 0 ; | |
9576 | PyObject * obj3 = 0 ; | |
9577 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
9578 | PyObject * obj5 = 0 ; |
9579 | char *kwnames[] = { | |
9580 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
9581 | }; | |
9582 | ||
994141e6 | 9583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9585 | { |
9586 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9587 | if (PyErr_Occurred()) SWIG_fail; | |
9588 | } | |
9589 | { | |
9590 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9591 | if (PyErr_Occurred()) SWIG_fail; | |
9592 | } | |
9593 | { | |
9594 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9595 | if (PyErr_Occurred()) SWIG_fail; | |
9596 | } | |
9597 | { | |
9598 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
9599 | if (PyErr_Occurred()) SWIG_fail; | |
9600 | } | |
d14a1e28 | 9601 | if (obj5) { |
a41e16b6 | 9602 | { |
994141e6 | 9603 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
a41e16b6 RD |
9604 | if (PyErr_Occurred()) SWIG_fail; |
9605 | } | |
d14a1e28 RD |
9606 | } |
9607 | { | |
9608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9609 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
9610 | ||
9611 | wxPyEndAllowThreads(__tstate); | |
9612 | if (PyErr_Occurred()) SWIG_fail; | |
9613 | } | |
9614 | Py_INCREF(Py_None); resultobj = Py_None; | |
9615 | return resultobj; | |
9616 | fail: | |
9617 | return NULL; | |
9618 | } | |
9619 | ||
9620 | ||
9621 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
9622 | PyObject *obj; | |
9623 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9624 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
9625 | Py_INCREF(obj); | |
9626 | return Py_BuildValue((char *)""); | |
9627 | } | |
b2dc1044 RD |
9628 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { |
9629 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
9630 | return 1; | |
9631 | } | |
9632 | ||
9633 | ||
9634 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
9635 | PyObject *pyobj; | |
9636 | ||
9637 | { | |
9638 | #if wxUSE_UNICODE | |
9639 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9640 | #else | |
9641 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9642 | #endif | |
9643 | } | |
9644 | return pyobj; | |
9645 | } | |
9646 | ||
9647 | ||
9648 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { | |
9649 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); | |
9650 | return 1; | |
9651 | } | |
9652 | ||
9653 | ||
9654 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
9655 | PyObject *pyobj; | |
9656 | ||
9657 | { | |
9658 | #if wxUSE_UNICODE | |
9659 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9660 | #else | |
9661 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9662 | #endif | |
9663 | } | |
9664 | return pyobj; | |
9665 | } | |
9666 | ||
9667 | ||
d14a1e28 RD |
9668 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
9669 | PyObject *resultobj; | |
9670 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 9671 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9672 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9673 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9674 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9675 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9676 | long arg5 = (long) wxSP_HORIZONTAL ; | |
9677 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
9678 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9679 | wxSpinButton *result; | |
9680 | wxPoint temp3 ; | |
9681 | wxSize temp4 ; | |
e811c8ce | 9682 | bool temp6 = False ; |
d14a1e28 | 9683 | PyObject * obj0 = 0 ; |
994141e6 | 9684 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9685 | PyObject * obj2 = 0 ; |
9686 | PyObject * obj3 = 0 ; | |
994141e6 | 9687 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9688 | PyObject * obj5 = 0 ; |
9689 | char *kwnames[] = { | |
9690 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9691 | }; | |
9692 | ||
994141e6 | 9693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9695 | if (obj1) { |
9696 | { | |
9697 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9698 | if (PyErr_Occurred()) SWIG_fail; | |
9699 | } | |
9700 | } | |
d14a1e28 RD |
9701 | if (obj2) { |
9702 | { | |
9703 | arg3 = &temp3; | |
9704 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9705 | } | |
9706 | } | |
9707 | if (obj3) { | |
9708 | { | |
9709 | arg4 = &temp4; | |
9710 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9711 | } | |
9712 | } | |
994141e6 RD |
9713 | if (obj4) { |
9714 | { | |
9715 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9716 | if (PyErr_Occurred()) SWIG_fail; | |
9717 | } | |
9718 | } | |
d14a1e28 RD |
9719 | if (obj5) { |
9720 | { | |
9721 | arg6 = wxString_in_helper(obj5); | |
9722 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 9723 | temp6 = True; |
d14a1e28 RD |
9724 | } |
9725 | } | |
9726 | { | |
9727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9728 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9729 | ||
9730 | wxPyEndAllowThreads(__tstate); | |
9731 | if (PyErr_Occurred()) SWIG_fail; | |
9732 | } | |
9733 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9734 | { | |
9735 | if (temp6) | |
9736 | delete arg6; | |
9737 | } | |
9738 | return resultobj; | |
9739 | fail: | |
9740 | { | |
9741 | if (temp6) | |
9742 | delete arg6; | |
9743 | } | |
9744 | return NULL; | |
9745 | } | |
9746 | ||
9747 | ||
9748 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9749 | PyObject *resultobj; | |
9750 | wxSpinButton *result; | |
9751 | char *kwnames[] = { | |
9752 | NULL | |
9753 | }; | |
9754 | ||
9755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
9756 | { | |
9757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9758 | result = (wxSpinButton *)new wxSpinButton(); | |
9759 | ||
9760 | wxPyEndAllowThreads(__tstate); | |
9761 | if (PyErr_Occurred()) SWIG_fail; | |
9762 | } | |
9763 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9764 | return resultobj; | |
9765 | fail: | |
9766 | return NULL; | |
9767 | } | |
9768 | ||
9769 | ||
9770 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9771 | PyObject *resultobj; | |
9772 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9773 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 9774 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9775 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9776 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9777 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9778 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9779 | long arg6 = (long) wxSP_HORIZONTAL ; | |
9780 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
9781 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9782 | bool result; | |
9783 | wxPoint temp4 ; | |
9784 | wxSize temp5 ; | |
e811c8ce | 9785 | bool temp7 = False ; |
d14a1e28 RD |
9786 | PyObject * obj0 = 0 ; |
9787 | PyObject * obj1 = 0 ; | |
994141e6 | 9788 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9789 | PyObject * obj3 = 0 ; |
9790 | PyObject * obj4 = 0 ; | |
994141e6 | 9791 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9792 | PyObject * obj6 = 0 ; |
9793 | char *kwnames[] = { | |
9794 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9795 | }; | |
9796 | ||
994141e6 | 9797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
9798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9799 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
9800 | if (obj2) { |
9801 | { | |
9802 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9803 | if (PyErr_Occurred()) SWIG_fail; | |
9804 | } | |
9805 | } | |
d14a1e28 RD |
9806 | if (obj3) { |
9807 | { | |
9808 | arg4 = &temp4; | |
9809 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9810 | } | |
9811 | } | |
9812 | if (obj4) { | |
9813 | { | |
9814 | arg5 = &temp5; | |
9815 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9816 | } | |
9817 | } | |
994141e6 RD |
9818 | if (obj5) { |
9819 | { | |
9820 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9821 | if (PyErr_Occurred()) SWIG_fail; | |
9822 | } | |
9823 | } | |
d14a1e28 RD |
9824 | if (obj6) { |
9825 | { | |
9826 | arg7 = wxString_in_helper(obj6); | |
9827 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 9828 | temp7 = True; |
d14a1e28 RD |
9829 | } |
9830 | } | |
9831 | { | |
9832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9833 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9834 | ||
9835 | wxPyEndAllowThreads(__tstate); | |
9836 | if (PyErr_Occurred()) SWIG_fail; | |
9837 | } | |
4d5c3d91 | 9838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9839 | { |
9840 | if (temp7) | |
9841 | delete arg7; | |
9842 | } | |
9843 | return resultobj; | |
9844 | fail: | |
9845 | { | |
9846 | if (temp7) | |
9847 | delete arg7; | |
9848 | } | |
9849 | return NULL; | |
9850 | } | |
9851 | ||
9852 | ||
9853 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9854 | PyObject *resultobj; | |
9855 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9856 | int result; | |
9857 | PyObject * obj0 = 0 ; | |
9858 | char *kwnames[] = { | |
9859 | (char *) "self", NULL | |
9860 | }; | |
9861 | ||
9862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
9863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9864 | { | |
9865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9866 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
9867 | ||
9868 | wxPyEndAllowThreads(__tstate); | |
9869 | if (PyErr_Occurred()) SWIG_fail; | |
9870 | } | |
994141e6 | 9871 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9872 | return resultobj; |
9873 | fail: | |
9874 | return NULL; | |
9875 | } | |
9876 | ||
9877 | ||
9878 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9879 | PyObject *resultobj; | |
9880 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9881 | int result; | |
9882 | PyObject * obj0 = 0 ; | |
9883 | char *kwnames[] = { | |
9884 | (char *) "self", NULL | |
9885 | }; | |
9886 | ||
9887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
9888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9889 | { | |
9890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9891 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
9892 | ||
9893 | wxPyEndAllowThreads(__tstate); | |
9894 | if (PyErr_Occurred()) SWIG_fail; | |
9895 | } | |
994141e6 | 9896 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9897 | return resultobj; |
9898 | fail: | |
9899 | return NULL; | |
9900 | } | |
9901 | ||
9902 | ||
9903 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9904 | PyObject *resultobj; | |
9905 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9906 | int result; | |
9907 | PyObject * obj0 = 0 ; | |
9908 | char *kwnames[] = { | |
9909 | (char *) "self", NULL | |
9910 | }; | |
9911 | ||
9912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
9913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9914 | { | |
9915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9916 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
9917 | ||
9918 | wxPyEndAllowThreads(__tstate); | |
9919 | if (PyErr_Occurred()) SWIG_fail; | |
9920 | } | |
994141e6 | 9921 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9922 | return resultobj; |
9923 | fail: | |
9924 | return NULL; | |
9925 | } | |
9926 | ||
9927 | ||
9928 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9929 | PyObject *resultobj; | |
9930 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9931 | int arg2 ; | |
9932 | PyObject * obj0 = 0 ; | |
994141e6 | 9933 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9934 | char *kwnames[] = { |
9935 | (char *) "self",(char *) "val", NULL | |
9936 | }; | |
9937 | ||
994141e6 | 9938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9940 | { |
9941 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9942 | if (PyErr_Occurred()) SWIG_fail; | |
9943 | } | |
d14a1e28 RD |
9944 | { |
9945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9946 | (arg1)->SetValue(arg2); | |
9947 | ||
9948 | wxPyEndAllowThreads(__tstate); | |
9949 | if (PyErr_Occurred()) SWIG_fail; | |
9950 | } | |
9951 | Py_INCREF(Py_None); resultobj = Py_None; | |
9952 | return resultobj; | |
9953 | fail: | |
9954 | return NULL; | |
9955 | } | |
9956 | ||
9957 | ||
9958 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9959 | PyObject *resultobj; | |
9960 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9961 | int arg2 ; | |
9962 | PyObject * obj0 = 0 ; | |
994141e6 | 9963 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9964 | char *kwnames[] = { |
9965 | (char *) "self",(char *) "minVal", NULL | |
9966 | }; | |
9967 | ||
994141e6 | 9968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9970 | { |
9971 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9972 | if (PyErr_Occurred()) SWIG_fail; | |
9973 | } | |
d14a1e28 RD |
9974 | { |
9975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9976 | (arg1)->SetMin(arg2); | |
9977 | ||
9978 | wxPyEndAllowThreads(__tstate); | |
9979 | if (PyErr_Occurred()) SWIG_fail; | |
9980 | } | |
9981 | Py_INCREF(Py_None); resultobj = Py_None; | |
9982 | return resultobj; | |
9983 | fail: | |
9984 | return NULL; | |
9985 | } | |
9986 | ||
9987 | ||
9988 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9989 | PyObject *resultobj; | |
9990 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9991 | int arg2 ; | |
9992 | PyObject * obj0 = 0 ; | |
994141e6 | 9993 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9994 | char *kwnames[] = { |
9995 | (char *) "self",(char *) "maxVal", NULL | |
9996 | }; | |
9997 | ||
994141e6 | 9998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10000 | { |
10001 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10002 | if (PyErr_Occurred()) SWIG_fail; | |
10003 | } | |
d14a1e28 RD |
10004 | { |
10005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10006 | (arg1)->SetMax(arg2); | |
10007 | ||
10008 | wxPyEndAllowThreads(__tstate); | |
10009 | if (PyErr_Occurred()) SWIG_fail; | |
10010 | } | |
10011 | Py_INCREF(Py_None); resultobj = Py_None; | |
10012 | return resultobj; | |
10013 | fail: | |
10014 | return NULL; | |
10015 | } | |
10016 | ||
10017 | ||
10018 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10019 | PyObject *resultobj; | |
10020 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10021 | int arg2 ; | |
10022 | int arg3 ; | |
10023 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10024 | PyObject * obj1 = 0 ; |
10025 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10026 | char *kwnames[] = { |
10027 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10028 | }; | |
10029 | ||
994141e6 | 10030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10032 | { |
10033 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10034 | if (PyErr_Occurred()) SWIG_fail; | |
10035 | } | |
10036 | { | |
10037 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10038 | if (PyErr_Occurred()) SWIG_fail; | |
10039 | } | |
d14a1e28 RD |
10040 | { |
10041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10042 | (arg1)->SetRange(arg2,arg3); | |
10043 | ||
10044 | wxPyEndAllowThreads(__tstate); | |
10045 | if (PyErr_Occurred()) SWIG_fail; | |
10046 | } | |
10047 | Py_INCREF(Py_None); resultobj = Py_None; | |
10048 | return resultobj; | |
10049 | fail: | |
10050 | return NULL; | |
10051 | } | |
10052 | ||
10053 | ||
10054 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10055 | PyObject *resultobj; | |
10056 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10057 | bool result; | |
10058 | PyObject * obj0 = 0 ; | |
10059 | char *kwnames[] = { | |
10060 | (char *) "self", NULL | |
10061 | }; | |
10062 | ||
10063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
10064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10065 | { | |
10066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10067 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10068 | ||
10069 | wxPyEndAllowThreads(__tstate); | |
10070 | if (PyErr_Occurred()) SWIG_fail; | |
10071 | } | |
4d5c3d91 | 10072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10073 | return resultobj; |
10074 | fail: | |
10075 | return NULL; | |
10076 | } | |
10077 | ||
10078 | ||
10079 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
10080 | PyObject *obj; | |
10081 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10082 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
10083 | Py_INCREF(obj); | |
10084 | return Py_BuildValue((char *)""); | |
10085 | } | |
10086 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10087 | PyObject *resultobj; | |
10088 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10089 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10090 | wxString const &arg3_defvalue = wxPyEmptyString ; |
10091 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10092 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10093 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10094 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10095 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10096 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
10097 | int arg7 = (int) 0 ; | |
10098 | int arg8 = (int) 100 ; | |
10099 | int arg9 = (int) 0 ; | |
10100 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
10101 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10102 | wxSpinCtrl *result; | |
e811c8ce | 10103 | bool temp3 = False ; |
d14a1e28 RD |
10104 | wxPoint temp4 ; |
10105 | wxSize temp5 ; | |
e811c8ce | 10106 | bool temp10 = False ; |
d14a1e28 | 10107 | PyObject * obj0 = 0 ; |
994141e6 | 10108 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10109 | PyObject * obj2 = 0 ; |
10110 | PyObject * obj3 = 0 ; | |
10111 | PyObject * obj4 = 0 ; | |
994141e6 RD |
10112 | PyObject * obj5 = 0 ; |
10113 | PyObject * obj6 = 0 ; | |
10114 | PyObject * obj7 = 0 ; | |
10115 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10116 | PyObject * obj9 = 0 ; |
10117 | char *kwnames[] = { | |
10118 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10119 | }; | |
10120 | ||
994141e6 | 10121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 10122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10123 | if (obj1) { |
10124 | { | |
10125 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10126 | if (PyErr_Occurred()) SWIG_fail; | |
10127 | } | |
10128 | } | |
10129 | if (obj2) { | |
d14a1e28 RD |
10130 | { |
10131 | arg3 = wxString_in_helper(obj2); | |
10132 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10133 | temp3 = True; |
d14a1e28 RD |
10134 | } |
10135 | } | |
10136 | if (obj3) { | |
10137 | { | |
10138 | arg4 = &temp4; | |
10139 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10140 | } | |
10141 | } | |
10142 | if (obj4) { | |
10143 | { | |
10144 | arg5 = &temp5; | |
10145 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10146 | } | |
10147 | } | |
994141e6 RD |
10148 | if (obj5) { |
10149 | { | |
10150 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
10151 | if (PyErr_Occurred()) SWIG_fail; | |
10152 | } | |
10153 | } | |
10154 | if (obj6) { | |
10155 | { | |
10156 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
10157 | if (PyErr_Occurred()) SWIG_fail; | |
10158 | } | |
10159 | } | |
10160 | if (obj7) { | |
10161 | { | |
10162 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
10163 | if (PyErr_Occurred()) SWIG_fail; | |
10164 | } | |
10165 | } | |
10166 | if (obj8) { | |
10167 | { | |
10168 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
10169 | if (PyErr_Occurred()) SWIG_fail; | |
10170 | } | |
10171 | } | |
d14a1e28 RD |
10172 | if (obj9) { |
10173 | { | |
10174 | arg10 = wxString_in_helper(obj9); | |
10175 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 10176 | temp10 = True; |
d14a1e28 RD |
10177 | } |
10178 | } | |
10179 | { | |
10180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10181 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
10182 | ||
10183 | wxPyEndAllowThreads(__tstate); | |
10184 | if (PyErr_Occurred()) SWIG_fail; | |
10185 | } | |
10186 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
10187 | { | |
10188 | if (temp3) | |
10189 | delete arg3; | |
10190 | } | |
10191 | { | |
10192 | if (temp10) | |
10193 | delete arg10; | |
10194 | } | |
10195 | return resultobj; | |
10196 | fail: | |
10197 | { | |
10198 | if (temp3) | |
10199 | delete arg3; | |
10200 | } | |
10201 | { | |
10202 | if (temp10) | |
10203 | delete arg10; | |
10204 | } | |
10205 | return NULL; | |
10206 | } | |
10207 | ||
10208 | ||
10209 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10210 | PyObject *resultobj; | |
10211 | wxSpinCtrl *result; | |
10212 | char *kwnames[] = { | |
10213 | NULL | |
10214 | }; | |
10215 | ||
10216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
10217 | { | |
10218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10219 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
10220 | ||
10221 | wxPyEndAllowThreads(__tstate); | |
10222 | if (PyErr_Occurred()) SWIG_fail; | |
10223 | } | |
10224 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
10225 | return resultobj; | |
10226 | fail: | |
10227 | return NULL; | |
10228 | } | |
10229 | ||
10230 | ||
10231 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10232 | PyObject *resultobj; | |
10233 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10234 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10235 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10236 | wxString const &arg4_defvalue = wxPyEmptyString ; |
10237 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
10238 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10239 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10240 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10241 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10242 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
10243 | int arg8 = (int) 0 ; | |
10244 | int arg9 = (int) 100 ; | |
10245 | int arg10 = (int) 0 ; | |
10246 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
10247 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10248 | bool result; | |
e811c8ce | 10249 | bool temp4 = False ; |
d14a1e28 RD |
10250 | wxPoint temp5 ; |
10251 | wxSize temp6 ; | |
e811c8ce | 10252 | bool temp11 = False ; |
d14a1e28 RD |
10253 | PyObject * obj0 = 0 ; |
10254 | PyObject * obj1 = 0 ; | |
994141e6 | 10255 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10256 | PyObject * obj3 = 0 ; |
10257 | PyObject * obj4 = 0 ; | |
10258 | PyObject * obj5 = 0 ; | |
994141e6 RD |
10259 | PyObject * obj6 = 0 ; |
10260 | PyObject * obj7 = 0 ; | |
10261 | PyObject * obj8 = 0 ; | |
10262 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
10263 | PyObject * obj10 = 0 ; |
10264 | char *kwnames[] = { | |
10265 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10266 | }; | |
10267 | ||
994141e6 | 10268 | 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 |
10269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10270 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
10271 | if (obj2) { |
10272 | { | |
10273 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10274 | if (PyErr_Occurred()) SWIG_fail; | |
10275 | } | |
10276 | } | |
d14a1e28 RD |
10277 | if (obj3) { |
10278 | { | |
10279 | arg4 = wxString_in_helper(obj3); | |
10280 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 10281 | temp4 = True; |
d14a1e28 RD |
10282 | } |
10283 | } | |
10284 | if (obj4) { | |
10285 | { | |
10286 | arg5 = &temp5; | |
10287 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10288 | } | |
10289 | } | |
10290 | if (obj5) { | |
10291 | { | |
10292 | arg6 = &temp6; | |
10293 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10294 | } | |
10295 | } | |
994141e6 RD |
10296 | if (obj6) { |
10297 | { | |
10298 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
10299 | if (PyErr_Occurred()) SWIG_fail; | |
10300 | } | |
10301 | } | |
10302 | if (obj7) { | |
10303 | { | |
10304 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
10305 | if (PyErr_Occurred()) SWIG_fail; | |
10306 | } | |
10307 | } | |
10308 | if (obj8) { | |
10309 | { | |
10310 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
10311 | if (PyErr_Occurred()) SWIG_fail; | |
10312 | } | |
10313 | } | |
10314 | if (obj9) { | |
10315 | { | |
10316 | arg10 = (int) SWIG_PyObj_AsInt(obj9); | |
10317 | if (PyErr_Occurred()) SWIG_fail; | |
10318 | } | |
10319 | } | |
d14a1e28 RD |
10320 | if (obj10) { |
10321 | { | |
10322 | arg11 = wxString_in_helper(obj10); | |
10323 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 10324 | temp11 = True; |
d14a1e28 RD |
10325 | } |
10326 | } | |
10327 | { | |
10328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10329 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
10330 | ||
10331 | wxPyEndAllowThreads(__tstate); | |
10332 | if (PyErr_Occurred()) SWIG_fail; | |
10333 | } | |
4d5c3d91 | 10334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10335 | { |
10336 | if (temp4) | |
10337 | delete arg4; | |
10338 | } | |
10339 | { | |
10340 | if (temp11) | |
10341 | delete arg11; | |
10342 | } | |
10343 | return resultobj; | |
10344 | fail: | |
10345 | { | |
10346 | if (temp4) | |
10347 | delete arg4; | |
10348 | } | |
10349 | { | |
10350 | if (temp11) | |
10351 | delete arg11; | |
10352 | } | |
10353 | return NULL; | |
10354 | } | |
10355 | ||
10356 | ||
10357 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10358 | PyObject *resultobj; | |
10359 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10360 | int result; | |
10361 | PyObject * obj0 = 0 ; | |
10362 | char *kwnames[] = { | |
10363 | (char *) "self", NULL | |
10364 | }; | |
10365 | ||
10366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
10367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10368 | { | |
10369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10370 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
10371 | ||
10372 | wxPyEndAllowThreads(__tstate); | |
10373 | if (PyErr_Occurred()) SWIG_fail; | |
10374 | } | |
994141e6 | 10375 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10376 | return resultobj; |
10377 | fail: | |
10378 | return NULL; | |
10379 | } | |
10380 | ||
10381 | ||
10382 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10383 | PyObject *resultobj; | |
10384 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10385 | int arg2 ; | |
10386 | PyObject * obj0 = 0 ; | |
994141e6 | 10387 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10388 | char *kwnames[] = { |
10389 | (char *) "self",(char *) "value", NULL | |
10390 | }; | |
10391 | ||
994141e6 | 10392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10394 | { |
10395 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10396 | if (PyErr_Occurred()) SWIG_fail; | |
10397 | } | |
d14a1e28 RD |
10398 | { |
10399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10400 | (arg1)->SetValue(arg2); | |
10401 | ||
10402 | wxPyEndAllowThreads(__tstate); | |
10403 | if (PyErr_Occurred()) SWIG_fail; | |
10404 | } | |
10405 | Py_INCREF(Py_None); resultobj = Py_None; | |
10406 | return resultobj; | |
10407 | fail: | |
10408 | return NULL; | |
10409 | } | |
10410 | ||
10411 | ||
10412 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10413 | PyObject *resultobj; | |
10414 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10415 | wxString *arg2 = 0 ; | |
e811c8ce | 10416 | bool temp2 = False ; |
d14a1e28 RD |
10417 | PyObject * obj0 = 0 ; |
10418 | PyObject * obj1 = 0 ; | |
10419 | char *kwnames[] = { | |
10420 | (char *) "self",(char *) "text", NULL | |
10421 | }; | |
10422 | ||
10423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
10424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10425 | { | |
10426 | arg2 = wxString_in_helper(obj1); | |
10427 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10428 | temp2 = True; |
d14a1e28 RD |
10429 | } |
10430 | { | |
10431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10432 | (arg1)->SetValue((wxString const &)*arg2); | |
10433 | ||
10434 | wxPyEndAllowThreads(__tstate); | |
10435 | if (PyErr_Occurred()) SWIG_fail; | |
10436 | } | |
10437 | Py_INCREF(Py_None); resultobj = Py_None; | |
10438 | { | |
10439 | if (temp2) | |
10440 | delete arg2; | |
10441 | } | |
10442 | return resultobj; | |
10443 | fail: | |
10444 | { | |
10445 | if (temp2) | |
10446 | delete arg2; | |
10447 | } | |
10448 | return NULL; | |
10449 | } | |
10450 | ||
10451 | ||
10452 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10453 | PyObject *resultobj; | |
10454 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10455 | int arg2 ; | |
10456 | int arg3 ; | |
10457 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10458 | PyObject * obj1 = 0 ; |
10459 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10460 | char *kwnames[] = { |
10461 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10462 | }; | |
10463 | ||
994141e6 | 10464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10466 | { |
10467 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10468 | if (PyErr_Occurred()) SWIG_fail; | |
10469 | } | |
10470 | { | |
10471 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10472 | if (PyErr_Occurred()) SWIG_fail; | |
10473 | } | |
d14a1e28 RD |
10474 | { |
10475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10476 | (arg1)->SetRange(arg2,arg3); | |
10477 | ||
10478 | wxPyEndAllowThreads(__tstate); | |
10479 | if (PyErr_Occurred()) SWIG_fail; | |
10480 | } | |
10481 | Py_INCREF(Py_None); resultobj = Py_None; | |
10482 | return resultobj; | |
10483 | fail: | |
10484 | return NULL; | |
10485 | } | |
10486 | ||
10487 | ||
10488 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10489 | PyObject *resultobj; | |
10490 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10491 | int result; | |
10492 | PyObject * obj0 = 0 ; | |
10493 | char *kwnames[] = { | |
10494 | (char *) "self", NULL | |
10495 | }; | |
10496 | ||
10497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
10498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10499 | { | |
10500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10501 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
10502 | ||
10503 | wxPyEndAllowThreads(__tstate); | |
10504 | if (PyErr_Occurred()) SWIG_fail; | |
10505 | } | |
994141e6 | 10506 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10507 | return resultobj; |
10508 | fail: | |
10509 | return NULL; | |
10510 | } | |
10511 | ||
10512 | ||
10513 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10514 | PyObject *resultobj; | |
10515 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10516 | int result; | |
10517 | PyObject * obj0 = 0 ; | |
10518 | char *kwnames[] = { | |
10519 | (char *) "self", NULL | |
10520 | }; | |
10521 | ||
10522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
10523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10524 | { | |
10525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10526 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
10527 | ||
10528 | wxPyEndAllowThreads(__tstate); | |
10529 | if (PyErr_Occurred()) SWIG_fail; | |
10530 | } | |
994141e6 | 10531 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10532 | return resultobj; |
10533 | fail: | |
10534 | return NULL; | |
10535 | } | |
10536 | ||
10537 | ||
10538 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10539 | PyObject *resultobj; | |
10540 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10541 | long arg2 ; | |
10542 | long arg3 ; | |
10543 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10544 | PyObject * obj1 = 0 ; |
10545 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10546 | char *kwnames[] = { |
10547 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10548 | }; | |
10549 | ||
994141e6 | 10550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10552 | { |
10553 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
10554 | if (PyErr_Occurred()) SWIG_fail; | |
10555 | } | |
10556 | { | |
10557 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
10558 | if (PyErr_Occurred()) SWIG_fail; | |
10559 | } | |
d14a1e28 RD |
10560 | { |
10561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 10562 | (arg1)->SetSelection(arg2,arg3); |
d14a1e28 RD |
10563 | |
10564 | wxPyEndAllowThreads(__tstate); | |
10565 | if (PyErr_Occurred()) SWIG_fail; | |
10566 | } | |
10567 | Py_INCREF(Py_None); resultobj = Py_None; | |
10568 | return resultobj; | |
10569 | fail: | |
10570 | return NULL; | |
10571 | } | |
10572 | ||
10573 | ||
10574 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
10575 | PyObject *obj; | |
10576 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10577 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
10578 | Py_INCREF(obj); | |
10579 | return Py_BuildValue((char *)""); | |
10580 | } | |
d1e20054 RD |
10581 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
10582 | PyObject *resultobj; | |
10583 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10584 | int arg2 = (int) 0 ; | |
10585 | wxSpinEvent *result; | |
994141e6 RD |
10586 | PyObject * obj0 = 0 ; |
10587 | PyObject * obj1 = 0 ; | |
d1e20054 RD |
10588 | char *kwnames[] = { |
10589 | (char *) "commandType",(char *) "winid", NULL | |
10590 | }; | |
10591 | ||
994141e6 RD |
10592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
10593 | if (obj0) { | |
10594 | { | |
10595 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
10596 | if (PyErr_Occurred()) SWIG_fail; | |
10597 | } | |
10598 | } | |
10599 | if (obj1) { | |
10600 | { | |
10601 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10602 | if (PyErr_Occurred()) SWIG_fail; | |
10603 | } | |
10604 | } | |
d1e20054 RD |
10605 | { |
10606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10607 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
10608 | ||
10609 | wxPyEndAllowThreads(__tstate); | |
10610 | if (PyErr_Occurred()) SWIG_fail; | |
10611 | } | |
10612 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinEvent, 1); | |
10613 | return resultobj; | |
10614 | fail: | |
10615 | return NULL; | |
10616 | } | |
10617 | ||
10618 | ||
10619 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10620 | PyObject *resultobj; | |
10621 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10622 | int result; | |
10623 | PyObject * obj0 = 0 ; | |
10624 | char *kwnames[] = { | |
10625 | (char *) "self", NULL | |
10626 | }; | |
10627 | ||
10628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10630 | { | |
10631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10632 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
10633 | ||
10634 | wxPyEndAllowThreads(__tstate); | |
10635 | if (PyErr_Occurred()) SWIG_fail; | |
10636 | } | |
994141e6 | 10637 | resultobj = SWIG_PyObj_FromInt((int)result); |
d1e20054 RD |
10638 | return resultobj; |
10639 | fail: | |
10640 | return NULL; | |
10641 | } | |
10642 | ||
10643 | ||
10644 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10645 | PyObject *resultobj; | |
10646 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10647 | int arg2 ; | |
10648 | PyObject * obj0 = 0 ; | |
994141e6 | 10649 | PyObject * obj1 = 0 ; |
d1e20054 RD |
10650 | char *kwnames[] = { |
10651 | (char *) "self",(char *) "pos", NULL | |
10652 | }; | |
10653 | ||
994141e6 | 10654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
d1e20054 | 10655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10656 | { |
10657 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10658 | if (PyErr_Occurred()) SWIG_fail; | |
10659 | } | |
d1e20054 RD |
10660 | { |
10661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10662 | (arg1)->SetPosition(arg2); | |
10663 | ||
10664 | wxPyEndAllowThreads(__tstate); | |
10665 | if (PyErr_Occurred()) SWIG_fail; | |
10666 | } | |
10667 | Py_INCREF(Py_None); resultobj = Py_None; | |
10668 | return resultobj; | |
10669 | fail: | |
10670 | return NULL; | |
10671 | } | |
10672 | ||
10673 | ||
10674 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
10675 | PyObject *obj; | |
10676 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10677 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
10678 | Py_INCREF(obj); | |
10679 | return Py_BuildValue((char *)""); | |
10680 | } | |
b2dc1044 RD |
10681 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { |
10682 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); | |
10683 | return 1; | |
10684 | } | |
10685 | ||
10686 | ||
10687 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
10688 | PyObject *pyobj; | |
10689 | ||
10690 | { | |
10691 | #if wxUSE_UNICODE | |
10692 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10693 | #else | |
10694 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10695 | #endif | |
10696 | } | |
10697 | return pyobj; | |
10698 | } | |
10699 | ||
10700 | ||
10701 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { | |
10702 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); | |
10703 | return 1; | |
10704 | } | |
10705 | ||
10706 | ||
10707 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
10708 | PyObject *pyobj; | |
10709 | ||
10710 | { | |
10711 | #if wxUSE_UNICODE | |
10712 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10713 | #else | |
10714 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10715 | #endif | |
10716 | } | |
10717 | return pyobj; | |
10718 | } | |
10719 | ||
10720 | ||
d14a1e28 RD |
10721 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
10722 | PyObject *resultobj; | |
10723 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10724 | int arg2 ; |
d14a1e28 RD |
10725 | wxString *arg3 = 0 ; |
10726 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10727 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10728 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10729 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
10730 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
10731 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
10732 | int arg7 = (int) 0 ; | |
10733 | long arg8 = (long) wxRA_HORIZONTAL ; | |
10734 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
10735 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
10736 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
10737 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 10738 | wxRadioBox *result; |
e811c8ce | 10739 | bool temp3 = False ; |
d14a1e28 RD |
10740 | wxPoint temp4 ; |
10741 | wxSize temp5 ; | |
3adfb63b | 10742 | bool temp6 = False ; |
e811c8ce | 10743 | bool temp10 = False ; |
d14a1e28 | 10744 | PyObject * obj0 = 0 ; |
994141e6 | 10745 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10746 | PyObject * obj2 = 0 ; |
10747 | PyObject * obj3 = 0 ; | |
10748 | PyObject * obj4 = 0 ; | |
10749 | PyObject * obj5 = 0 ; | |
994141e6 RD |
10750 | PyObject * obj6 = 0 ; |
10751 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
10752 | PyObject * obj8 = 0 ; |
10753 | PyObject * obj9 = 0 ; | |
10754 | char *kwnames[] = { | |
994141e6 | 10755 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
10756 | }; |
10757 | ||
994141e6 | 10758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 10759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10760 | { |
10761 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10762 | if (PyErr_Occurred()) SWIG_fail; | |
10763 | } | |
d14a1e28 RD |
10764 | { |
10765 | arg3 = wxString_in_helper(obj2); | |
10766 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10767 | temp3 = True; |
d14a1e28 RD |
10768 | } |
10769 | if (obj3) { | |
10770 | { | |
10771 | arg4 = &temp4; | |
10772 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10773 | } | |
10774 | } | |
10775 | if (obj4) { | |
10776 | { | |
10777 | arg5 = &temp5; | |
10778 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10779 | } | |
10780 | } | |
10781 | if (obj5) { | |
10782 | { | |
4d5c3d91 RD |
10783 | if (! PySequence_Check(obj5)) { |
10784 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10785 | SWIG_fail; | |
10786 | } | |
10787 | arg6 = new wxArrayString; | |
3adfb63b | 10788 | temp6 = True; |
4d5c3d91 RD |
10789 | int i, len=PySequence_Length(obj5); |
10790 | for (i=0; i<len; i++) { | |
10791 | PyObject* item = PySequence_GetItem(obj5, i); | |
10792 | #if wxUSE_UNICODE | |
10793 | PyObject* str = PyObject_Unicode(item); | |
10794 | #else | |
10795 | PyObject* str = PyObject_Str(item); | |
10796 | #endif | |
10797 | arg6->Add(Py2wxString(str)); | |
10798 | Py_DECREF(item); | |
10799 | Py_DECREF(str); | |
10800 | } | |
d14a1e28 RD |
10801 | } |
10802 | } | |
994141e6 RD |
10803 | if (obj6) { |
10804 | { | |
4d5c3d91 | 10805 | arg7 = (int) SWIG_PyObj_AsInt(obj6); |
994141e6 RD |
10806 | if (PyErr_Occurred()) SWIG_fail; |
10807 | } | |
10808 | } | |
10809 | if (obj7) { | |
10810 | { | |
4d5c3d91 | 10811 | arg8 = (long) SWIG_PyObj_AsLong(obj7); |
994141e6 RD |
10812 | if (PyErr_Occurred()) SWIG_fail; |
10813 | } | |
10814 | } | |
d14a1e28 | 10815 | if (obj8) { |
4d5c3d91 RD |
10816 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10817 | if (arg9 == NULL) { | |
d14a1e28 RD |
10818 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
10819 | } | |
10820 | } | |
10821 | if (obj9) { | |
10822 | { | |
4d5c3d91 RD |
10823 | arg10 = wxString_in_helper(obj9); |
10824 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 10825 | temp10 = True; |
d14a1e28 RD |
10826 | } |
10827 | } | |
10828 | { | |
10829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 10830 | 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 |
10831 | |
10832 | wxPyEndAllowThreads(__tstate); | |
10833 | if (PyErr_Occurred()) SWIG_fail; | |
10834 | } | |
10835 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
10836 | { | |
10837 | if (temp3) | |
10838 | delete arg3; | |
10839 | } | |
10840 | { | |
3adfb63b | 10841 | if (temp6) delete arg6; |
d14a1e28 RD |
10842 | } |
10843 | { | |
10844 | if (temp10) | |
4d5c3d91 | 10845 | delete arg10; |
d14a1e28 RD |
10846 | } |
10847 | return resultobj; | |
10848 | fail: | |
10849 | { | |
10850 | if (temp3) | |
10851 | delete arg3; | |
10852 | } | |
10853 | { | |
3adfb63b | 10854 | if (temp6) delete arg6; |
d14a1e28 RD |
10855 | } |
10856 | { | |
10857 | if (temp10) | |
4d5c3d91 | 10858 | delete arg10; |
d14a1e28 RD |
10859 | } |
10860 | return NULL; | |
10861 | } | |
10862 | ||
10863 | ||
10864 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10865 | PyObject *resultobj; | |
10866 | wxRadioBox *result; | |
10867 | char *kwnames[] = { | |
10868 | NULL | |
10869 | }; | |
10870 | ||
10871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
10872 | { | |
10873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10874 | result = (wxRadioBox *)new wxRadioBox(); | |
10875 | ||
10876 | wxPyEndAllowThreads(__tstate); | |
10877 | if (PyErr_Occurred()) SWIG_fail; | |
10878 | } | |
10879 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
10880 | return resultobj; | |
10881 | fail: | |
10882 | return NULL; | |
10883 | } | |
10884 | ||
10885 | ||
10886 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10887 | PyObject *resultobj; | |
10888 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10889 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10890 | int arg3 ; |
d14a1e28 RD |
10891 | wxString *arg4 = 0 ; |
10892 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10893 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10894 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10895 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
10896 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
10897 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
10898 | int arg8 = (int) 0 ; | |
10899 | long arg9 = (long) wxRA_HORIZONTAL ; | |
10900 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
10901 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
10902 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
10903 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 10904 | bool result; |
e811c8ce | 10905 | bool temp4 = False ; |
d14a1e28 RD |
10906 | wxPoint temp5 ; |
10907 | wxSize temp6 ; | |
3adfb63b | 10908 | bool temp7 = False ; |
e811c8ce | 10909 | bool temp11 = False ; |
d14a1e28 RD |
10910 | PyObject * obj0 = 0 ; |
10911 | PyObject * obj1 = 0 ; | |
994141e6 | 10912 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10913 | PyObject * obj3 = 0 ; |
10914 | PyObject * obj4 = 0 ; | |
10915 | PyObject * obj5 = 0 ; | |
10916 | PyObject * obj6 = 0 ; | |
994141e6 RD |
10917 | PyObject * obj7 = 0 ; |
10918 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10919 | PyObject * obj9 = 0 ; |
10920 | PyObject * obj10 = 0 ; | |
10921 | char *kwnames[] = { | |
994141e6 | 10922 | (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 |
10923 | }; |
10924 | ||
994141e6 | 10925 | 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 |
10926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10927 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
10928 | { |
10929 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10930 | if (PyErr_Occurred()) SWIG_fail; | |
10931 | } | |
d14a1e28 RD |
10932 | { |
10933 | arg4 = wxString_in_helper(obj3); | |
10934 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 10935 | temp4 = True; |
d14a1e28 RD |
10936 | } |
10937 | if (obj4) { | |
10938 | { | |
10939 | arg5 = &temp5; | |
10940 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10941 | } | |
10942 | } | |
10943 | if (obj5) { | |
10944 | { | |
10945 | arg6 = &temp6; | |
10946 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10947 | } | |
10948 | } | |
10949 | if (obj6) { | |
10950 | { | |
4d5c3d91 RD |
10951 | if (! PySequence_Check(obj6)) { |
10952 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10953 | SWIG_fail; | |
10954 | } | |
10955 | arg7 = new wxArrayString; | |
3adfb63b | 10956 | temp7 = True; |
4d5c3d91 RD |
10957 | int i, len=PySequence_Length(obj6); |
10958 | for (i=0; i<len; i++) { | |
10959 | PyObject* item = PySequence_GetItem(obj6, i); | |
10960 | #if wxUSE_UNICODE | |
10961 | PyObject* str = PyObject_Unicode(item); | |
10962 | #else | |
10963 | PyObject* str = PyObject_Str(item); | |
10964 | #endif | |
10965 | arg7->Add(Py2wxString(str)); | |
10966 | Py_DECREF(item); | |
10967 | Py_DECREF(str); | |
10968 | } | |
d14a1e28 RD |
10969 | } |
10970 | } | |
994141e6 RD |
10971 | if (obj7) { |
10972 | { | |
4d5c3d91 | 10973 | arg8 = (int) SWIG_PyObj_AsInt(obj7); |
994141e6 RD |
10974 | if (PyErr_Occurred()) SWIG_fail; |
10975 | } | |
10976 | } | |
10977 | if (obj8) { | |
10978 | { | |
4d5c3d91 | 10979 | arg9 = (long) SWIG_PyObj_AsLong(obj8); |
994141e6 RD |
10980 | if (PyErr_Occurred()) SWIG_fail; |
10981 | } | |
10982 | } | |
d14a1e28 | 10983 | if (obj9) { |
4d5c3d91 RD |
10984 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10985 | if (arg10 == NULL) { | |
d14a1e28 RD |
10986 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
10987 | } | |
10988 | } | |
10989 | if (obj10) { | |
10990 | { | |
4d5c3d91 RD |
10991 | arg11 = wxString_in_helper(obj10); |
10992 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 10993 | temp11 = True; |
d14a1e28 RD |
10994 | } |
10995 | } | |
10996 | { | |
10997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 10998 | 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 |
10999 | |
11000 | wxPyEndAllowThreads(__tstate); | |
11001 | if (PyErr_Occurred()) SWIG_fail; | |
11002 | } | |
4d5c3d91 | 11003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11004 | { |
11005 | if (temp4) | |
11006 | delete arg4; | |
11007 | } | |
11008 | { | |
3adfb63b | 11009 | if (temp7) delete arg7; |
d14a1e28 RD |
11010 | } |
11011 | { | |
11012 | if (temp11) | |
4d5c3d91 | 11013 | delete arg11; |
d14a1e28 RD |
11014 | } |
11015 | return resultobj; | |
11016 | fail: | |
11017 | { | |
11018 | if (temp4) | |
11019 | delete arg4; | |
11020 | } | |
11021 | { | |
3adfb63b | 11022 | if (temp7) delete arg7; |
d14a1e28 RD |
11023 | } |
11024 | { | |
11025 | if (temp11) | |
4d5c3d91 | 11026 | delete arg11; |
d14a1e28 RD |
11027 | } |
11028 | return NULL; | |
11029 | } | |
11030 | ||
11031 | ||
11032 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11033 | PyObject *resultobj; | |
11034 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11035 | int arg2 ; | |
11036 | PyObject * obj0 = 0 ; | |
994141e6 | 11037 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11038 | char *kwnames[] = { |
11039 | (char *) "self",(char *) "n", NULL | |
11040 | }; | |
11041 | ||
994141e6 | 11042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11044 | { |
11045 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11046 | if (PyErr_Occurred()) SWIG_fail; | |
11047 | } | |
d14a1e28 RD |
11048 | { |
11049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11050 | (arg1)->SetSelection(arg2); | |
11051 | ||
11052 | wxPyEndAllowThreads(__tstate); | |
11053 | if (PyErr_Occurred()) SWIG_fail; | |
11054 | } | |
11055 | Py_INCREF(Py_None); resultobj = Py_None; | |
11056 | return resultobj; | |
11057 | fail: | |
11058 | return NULL; | |
11059 | } | |
11060 | ||
11061 | ||
11062 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11063 | PyObject *resultobj; | |
11064 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11065 | int result; | |
11066 | PyObject * obj0 = 0 ; | |
11067 | char *kwnames[] = { | |
11068 | (char *) "self", NULL | |
11069 | }; | |
11070 | ||
11071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
11072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11073 | { | |
11074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11075 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
11076 | ||
11077 | wxPyEndAllowThreads(__tstate); | |
11078 | if (PyErr_Occurred()) SWIG_fail; | |
11079 | } | |
994141e6 | 11080 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11081 | return resultobj; |
11082 | fail: | |
11083 | return NULL; | |
11084 | } | |
11085 | ||
11086 | ||
11087 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11088 | PyObject *resultobj; | |
11089 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11090 | wxString result; | |
11091 | PyObject * obj0 = 0 ; | |
11092 | char *kwnames[] = { | |
11093 | (char *) "self", NULL | |
11094 | }; | |
11095 | ||
11096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
11097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11098 | { | |
11099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11100 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
11101 | ||
11102 | wxPyEndAllowThreads(__tstate); | |
11103 | if (PyErr_Occurred()) SWIG_fail; | |
11104 | } | |
11105 | { | |
11106 | #if wxUSE_UNICODE | |
11107 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11108 | #else | |
11109 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11110 | #endif | |
11111 | } | |
11112 | return resultobj; | |
11113 | fail: | |
11114 | return NULL; | |
11115 | } | |
11116 | ||
11117 | ||
11118 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11119 | PyObject *resultobj; | |
11120 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11121 | wxString *arg2 = 0 ; | |
11122 | bool result; | |
e811c8ce | 11123 | bool temp2 = False ; |
d14a1e28 RD |
11124 | PyObject * obj0 = 0 ; |
11125 | PyObject * obj1 = 0 ; | |
11126 | char *kwnames[] = { | |
11127 | (char *) "self",(char *) "s", NULL | |
11128 | }; | |
11129 | ||
11130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
11131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11132 | { | |
11133 | arg2 = wxString_in_helper(obj1); | |
11134 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11135 | temp2 = True; |
d14a1e28 RD |
11136 | } |
11137 | { | |
11138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11139 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
11140 | ||
11141 | wxPyEndAllowThreads(__tstate); | |
11142 | if (PyErr_Occurred()) SWIG_fail; | |
11143 | } | |
4d5c3d91 | 11144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11145 | { |
11146 | if (temp2) | |
11147 | delete arg2; | |
11148 | } | |
11149 | return resultobj; | |
11150 | fail: | |
11151 | { | |
11152 | if (temp2) | |
11153 | delete arg2; | |
11154 | } | |
11155 | return NULL; | |
11156 | } | |
11157 | ||
11158 | ||
11159 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11160 | PyObject *resultobj; | |
11161 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11162 | int result; | |
11163 | PyObject * obj0 = 0 ; | |
11164 | char *kwnames[] = { | |
11165 | (char *) "self", NULL | |
11166 | }; | |
11167 | ||
11168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
11169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11170 | { | |
11171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11172 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
11173 | ||
11174 | wxPyEndAllowThreads(__tstate); | |
11175 | if (PyErr_Occurred()) SWIG_fail; | |
11176 | } | |
994141e6 | 11177 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11178 | return resultobj; |
11179 | fail: | |
11180 | return NULL; | |
11181 | } | |
11182 | ||
11183 | ||
11184 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11185 | PyObject *resultobj; | |
11186 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11187 | wxString *arg2 = 0 ; | |
11188 | int result; | |
e811c8ce | 11189 | bool temp2 = False ; |
d14a1e28 RD |
11190 | PyObject * obj0 = 0 ; |
11191 | PyObject * obj1 = 0 ; | |
11192 | char *kwnames[] = { | |
11193 | (char *) "self",(char *) "s", NULL | |
11194 | }; | |
11195 | ||
11196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
11197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11198 | { | |
11199 | arg2 = wxString_in_helper(obj1); | |
11200 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11201 | temp2 = True; |
d14a1e28 RD |
11202 | } |
11203 | { | |
11204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11205 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
11206 | ||
11207 | wxPyEndAllowThreads(__tstate); | |
11208 | if (PyErr_Occurred()) SWIG_fail; | |
11209 | } | |
994141e6 | 11210 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11211 | { |
11212 | if (temp2) | |
11213 | delete arg2; | |
11214 | } | |
11215 | return resultobj; | |
11216 | fail: | |
11217 | { | |
11218 | if (temp2) | |
11219 | delete arg2; | |
11220 | } | |
11221 | return NULL; | |
11222 | } | |
11223 | ||
11224 | ||
11225 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11226 | PyObject *resultobj; | |
11227 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11228 | int arg2 ; | |
11229 | wxString result; | |
11230 | PyObject * obj0 = 0 ; | |
994141e6 | 11231 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11232 | char *kwnames[] = { |
11233 | (char *) "self",(char *) "n", NULL | |
11234 | }; | |
11235 | ||
994141e6 | 11236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11238 | { |
11239 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11240 | if (PyErr_Occurred()) SWIG_fail; | |
11241 | } | |
d14a1e28 RD |
11242 | { |
11243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11244 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
11245 | ||
11246 | wxPyEndAllowThreads(__tstate); | |
11247 | if (PyErr_Occurred()) SWIG_fail; | |
11248 | } | |
11249 | { | |
11250 | #if wxUSE_UNICODE | |
11251 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11252 | #else | |
11253 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11254 | #endif | |
11255 | } | |
11256 | return resultobj; | |
11257 | fail: | |
11258 | return NULL; | |
11259 | } | |
11260 | ||
11261 | ||
11262 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11263 | PyObject *resultobj; | |
11264 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11265 | int arg2 ; | |
11266 | wxString *arg3 = 0 ; | |
e811c8ce | 11267 | bool temp3 = False ; |
d14a1e28 | 11268 | PyObject * obj0 = 0 ; |
994141e6 | 11269 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11270 | PyObject * obj2 = 0 ; |
11271 | char *kwnames[] = { | |
11272 | (char *) "self",(char *) "n",(char *) "label", NULL | |
11273 | }; | |
11274 | ||
994141e6 | 11275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11277 | { |
11278 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11279 | if (PyErr_Occurred()) SWIG_fail; | |
11280 | } | |
d14a1e28 RD |
11281 | { |
11282 | arg3 = wxString_in_helper(obj2); | |
11283 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11284 | temp3 = True; |
d14a1e28 RD |
11285 | } |
11286 | { | |
11287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11288 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
11289 | ||
11290 | wxPyEndAllowThreads(__tstate); | |
11291 | if (PyErr_Occurred()) SWIG_fail; | |
11292 | } | |
11293 | Py_INCREF(Py_None); resultobj = Py_None; | |
11294 | { | |
11295 | if (temp3) | |
11296 | delete arg3; | |
11297 | } | |
11298 | return resultobj; | |
11299 | fail: | |
11300 | { | |
11301 | if (temp3) | |
11302 | delete arg3; | |
11303 | } | |
11304 | return NULL; | |
11305 | } | |
11306 | ||
11307 | ||
11308 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11309 | PyObject *resultobj; | |
11310 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11311 | int arg2 ; | |
e811c8ce | 11312 | bool arg3 = (bool) True ; |
d14a1e28 | 11313 | PyObject * obj0 = 0 ; |
994141e6 | 11314 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11315 | PyObject * obj2 = 0 ; |
11316 | char *kwnames[] = { | |
11317 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
11318 | }; | |
11319 | ||
994141e6 | 11320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11322 | { |
11323 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11324 | if (PyErr_Occurred()) SWIG_fail; | |
11325 | } | |
d14a1e28 | 11326 | if (obj2) { |
a41e16b6 | 11327 | { |
994141e6 | 11328 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
11329 | if (PyErr_Occurred()) SWIG_fail; |
11330 | } | |
d14a1e28 RD |
11331 | } |
11332 | { | |
11333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11334 | (arg1)->Enable(arg2,arg3); | |
11335 | ||
11336 | wxPyEndAllowThreads(__tstate); | |
11337 | if (PyErr_Occurred()) SWIG_fail; | |
11338 | } | |
11339 | Py_INCREF(Py_None); resultobj = Py_None; | |
11340 | return resultobj; | |
11341 | fail: | |
11342 | return NULL; | |
11343 | } | |
11344 | ||
11345 | ||
11346 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11347 | PyObject *resultobj; | |
11348 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11349 | int arg2 ; | |
e811c8ce | 11350 | bool arg3 = (bool) True ; |
d14a1e28 | 11351 | PyObject * obj0 = 0 ; |
994141e6 | 11352 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11353 | PyObject * obj2 = 0 ; |
11354 | char *kwnames[] = { | |
11355 | (char *) "self",(char *) "n",(char *) "show", NULL | |
11356 | }; | |
11357 | ||
994141e6 | 11358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11360 | { |
11361 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11362 | if (PyErr_Occurred()) SWIG_fail; | |
11363 | } | |
d14a1e28 | 11364 | if (obj2) { |
a41e16b6 | 11365 | { |
994141e6 | 11366 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
11367 | if (PyErr_Occurred()) SWIG_fail; |
11368 | } | |
d14a1e28 RD |
11369 | } |
11370 | { | |
11371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11372 | (arg1)->Show(arg2,arg3); | |
11373 | ||
11374 | wxPyEndAllowThreads(__tstate); | |
11375 | if (PyErr_Occurred()) SWIG_fail; | |
11376 | } | |
11377 | Py_INCREF(Py_None); resultobj = Py_None; | |
11378 | return resultobj; | |
11379 | fail: | |
11380 | return NULL; | |
11381 | } | |
11382 | ||
11383 | ||
11384 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11385 | PyObject *resultobj; | |
11386 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11387 | int result; | |
11388 | PyObject * obj0 = 0 ; | |
11389 | char *kwnames[] = { | |
11390 | (char *) "self", NULL | |
11391 | }; | |
11392 | ||
11393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
11394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11395 | { | |
11396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11397 | result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1); | |
11398 | ||
11399 | wxPyEndAllowThreads(__tstate); | |
11400 | if (PyErr_Occurred()) SWIG_fail; | |
11401 | } | |
994141e6 | 11402 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11403 | return resultobj; |
11404 | fail: | |
11405 | return NULL; | |
11406 | } | |
11407 | ||
11408 | ||
11409 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11410 | PyObject *resultobj; | |
11411 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11412 | int result; | |
11413 | PyObject * obj0 = 0 ; | |
11414 | char *kwnames[] = { | |
11415 | (char *) "self", NULL | |
11416 | }; | |
11417 | ||
11418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
11419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11420 | { | |
11421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11422 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
11423 | ||
11424 | wxPyEndAllowThreads(__tstate); | |
11425 | if (PyErr_Occurred()) SWIG_fail; | |
11426 | } | |
994141e6 | 11427 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11428 | return resultobj; |
11429 | fail: | |
11430 | return NULL; | |
11431 | } | |
11432 | ||
11433 | ||
11434 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11435 | PyObject *resultobj; | |
11436 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11437 | int arg2 ; | |
11438 | int arg3 ; | |
11439 | long arg4 ; | |
11440 | int result; | |
11441 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11442 | PyObject * obj1 = 0 ; |
11443 | PyObject * obj2 = 0 ; | |
11444 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11445 | char *kwnames[] = { |
11446 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
11447 | }; | |
11448 | ||
994141e6 | 11449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 11450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11451 | { |
11452 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11453 | if (PyErr_Occurred()) SWIG_fail; | |
11454 | } | |
11455 | { | |
11456 | arg3 = (wxDirection) SWIG_PyObj_AsInt(obj2); | |
11457 | if (PyErr_Occurred()) SWIG_fail; | |
11458 | } | |
11459 | { | |
11460 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
11461 | if (PyErr_Occurred()) SWIG_fail; | |
11462 | } | |
d14a1e28 RD |
11463 | { |
11464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11465 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4); | |
11466 | ||
11467 | wxPyEndAllowThreads(__tstate); | |
11468 | if (PyErr_Occurred()) SWIG_fail; | |
11469 | } | |
994141e6 | 11470 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11471 | return resultobj; |
11472 | fail: | |
11473 | return NULL; | |
11474 | } | |
11475 | ||
11476 | ||
11477 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
11478 | PyObject *obj; | |
11479 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11480 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
11481 | Py_INCREF(obj); | |
11482 | return Py_BuildValue((char *)""); | |
11483 | } | |
11484 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11485 | PyObject *resultobj; | |
11486 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 11487 | int arg2 ; |
d14a1e28 RD |
11488 | wxString *arg3 = 0 ; |
11489 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11490 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11491 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11492 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11493 | long arg6 = (long) 0 ; | |
11494 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11495 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11496 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
11497 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11498 | wxRadioButton *result; | |
e811c8ce | 11499 | bool temp3 = False ; |
d14a1e28 RD |
11500 | wxPoint temp4 ; |
11501 | wxSize temp5 ; | |
e811c8ce | 11502 | bool temp8 = False ; |
d14a1e28 | 11503 | PyObject * obj0 = 0 ; |
994141e6 | 11504 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11505 | PyObject * obj2 = 0 ; |
11506 | PyObject * obj3 = 0 ; | |
11507 | PyObject * obj4 = 0 ; | |
994141e6 | 11508 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11509 | PyObject * obj6 = 0 ; |
11510 | PyObject * obj7 = 0 ; | |
11511 | char *kwnames[] = { | |
11512 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11513 | }; | |
11514 | ||
994141e6 | 11515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 11516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11517 | { |
11518 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11519 | if (PyErr_Occurred()) SWIG_fail; | |
11520 | } | |
d14a1e28 RD |
11521 | { |
11522 | arg3 = wxString_in_helper(obj2); | |
11523 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11524 | temp3 = True; |
d14a1e28 RD |
11525 | } |
11526 | if (obj3) { | |
11527 | { | |
11528 | arg4 = &temp4; | |
11529 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11530 | } | |
11531 | } | |
11532 | if (obj4) { | |
11533 | { | |
11534 | arg5 = &temp5; | |
11535 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11536 | } | |
11537 | } | |
994141e6 RD |
11538 | if (obj5) { |
11539 | { | |
11540 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
11541 | if (PyErr_Occurred()) SWIG_fail; | |
11542 | } | |
11543 | } | |
d14a1e28 RD |
11544 | if (obj6) { |
11545 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11546 | if (arg7 == NULL) { | |
11547 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11548 | } | |
11549 | } | |
11550 | if (obj7) { | |
11551 | { | |
11552 | arg8 = wxString_in_helper(obj7); | |
11553 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 11554 | temp8 = True; |
d14a1e28 RD |
11555 | } |
11556 | } | |
11557 | { | |
11558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11559 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11560 | ||
11561 | wxPyEndAllowThreads(__tstate); | |
11562 | if (PyErr_Occurred()) SWIG_fail; | |
11563 | } | |
11564 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11565 | { | |
11566 | if (temp3) | |
11567 | delete arg3; | |
11568 | } | |
11569 | { | |
11570 | if (temp8) | |
11571 | delete arg8; | |
11572 | } | |
11573 | return resultobj; | |
11574 | fail: | |
11575 | { | |
11576 | if (temp3) | |
11577 | delete arg3; | |
11578 | } | |
11579 | { | |
11580 | if (temp8) | |
11581 | delete arg8; | |
11582 | } | |
11583 | return NULL; | |
11584 | } | |
11585 | ||
11586 | ||
11587 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11588 | PyObject *resultobj; | |
11589 | wxRadioButton *result; | |
11590 | char *kwnames[] = { | |
11591 | NULL | |
11592 | }; | |
11593 | ||
11594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
11595 | { | |
11596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11597 | result = (wxRadioButton *)new wxRadioButton(); | |
11598 | ||
11599 | wxPyEndAllowThreads(__tstate); | |
11600 | if (PyErr_Occurred()) SWIG_fail; | |
11601 | } | |
11602 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11603 | return resultobj; | |
11604 | fail: | |
11605 | return NULL; | |
11606 | } | |
11607 | ||
11608 | ||
11609 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11610 | PyObject *resultobj; | |
11611 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11612 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11613 | int arg3 ; |
d14a1e28 RD |
11614 | wxString *arg4 = 0 ; |
11615 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11616 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11617 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11618 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11619 | long arg7 = (long) 0 ; | |
11620 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11621 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11622 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
11623 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11624 | bool result; | |
e811c8ce | 11625 | bool temp4 = False ; |
d14a1e28 RD |
11626 | wxPoint temp5 ; |
11627 | wxSize temp6 ; | |
e811c8ce | 11628 | bool temp9 = False ; |
d14a1e28 RD |
11629 | PyObject * obj0 = 0 ; |
11630 | PyObject * obj1 = 0 ; | |
994141e6 | 11631 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11632 | PyObject * obj3 = 0 ; |
11633 | PyObject * obj4 = 0 ; | |
11634 | PyObject * obj5 = 0 ; | |
994141e6 | 11635 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
11636 | PyObject * obj7 = 0 ; |
11637 | PyObject * obj8 = 0 ; | |
11638 | char *kwnames[] = { | |
11639 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11640 | }; | |
11641 | ||
994141e6 | 11642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
11643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11644 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
11645 | { |
11646 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11647 | if (PyErr_Occurred()) SWIG_fail; | |
11648 | } | |
d14a1e28 RD |
11649 | { |
11650 | arg4 = wxString_in_helper(obj3); | |
11651 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11652 | temp4 = True; |
d14a1e28 RD |
11653 | } |
11654 | if (obj4) { | |
11655 | { | |
11656 | arg5 = &temp5; | |
11657 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11658 | } | |
11659 | } | |
11660 | if (obj5) { | |
11661 | { | |
11662 | arg6 = &temp6; | |
11663 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11664 | } | |
11665 | } | |
994141e6 RD |
11666 | if (obj6) { |
11667 | { | |
11668 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
11669 | if (PyErr_Occurred()) SWIG_fail; | |
11670 | } | |
11671 | } | |
d14a1e28 RD |
11672 | if (obj7) { |
11673 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11674 | if (arg8 == NULL) { | |
11675 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11676 | } | |
11677 | } | |
11678 | if (obj8) { | |
11679 | { | |
11680 | arg9 = wxString_in_helper(obj8); | |
11681 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 11682 | temp9 = True; |
d14a1e28 RD |
11683 | } |
11684 | } | |
11685 | { | |
11686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11687 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11688 | ||
11689 | wxPyEndAllowThreads(__tstate); | |
11690 | if (PyErr_Occurred()) SWIG_fail; | |
11691 | } | |
4d5c3d91 | 11692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11693 | { |
11694 | if (temp4) | |
11695 | delete arg4; | |
11696 | } | |
11697 | { | |
11698 | if (temp9) | |
11699 | delete arg9; | |
11700 | } | |
11701 | return resultobj; | |
11702 | fail: | |
11703 | { | |
11704 | if (temp4) | |
11705 | delete arg4; | |
11706 | } | |
11707 | { | |
11708 | if (temp9) | |
11709 | delete arg9; | |
11710 | } | |
11711 | return NULL; | |
11712 | } | |
11713 | ||
11714 | ||
11715 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11716 | PyObject *resultobj; | |
11717 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11718 | bool result; | |
11719 | PyObject * obj0 = 0 ; | |
11720 | char *kwnames[] = { | |
11721 | (char *) "self", NULL | |
11722 | }; | |
11723 | ||
11724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
11725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11726 | { | |
11727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11728 | result = (bool)(arg1)->GetValue(); | |
11729 | ||
11730 | wxPyEndAllowThreads(__tstate); | |
11731 | if (PyErr_Occurred()) SWIG_fail; | |
11732 | } | |
4d5c3d91 | 11733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11734 | return resultobj; |
11735 | fail: | |
11736 | return NULL; | |
11737 | } | |
11738 | ||
11739 | ||
11740 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11741 | PyObject *resultobj; | |
11742 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11743 | bool arg2 ; | |
11744 | PyObject * obj0 = 0 ; | |
11745 | PyObject * obj1 = 0 ; | |
11746 | char *kwnames[] = { | |
11747 | (char *) "self",(char *) "value", NULL | |
11748 | }; | |
11749 | ||
11750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 11752 | { |
994141e6 | 11753 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
11754 | if (PyErr_Occurred()) SWIG_fail; |
11755 | } | |
d14a1e28 RD |
11756 | { |
11757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11758 | (arg1)->SetValue(arg2); | |
11759 | ||
11760 | wxPyEndAllowThreads(__tstate); | |
11761 | if (PyErr_Occurred()) SWIG_fail; | |
11762 | } | |
11763 | Py_INCREF(Py_None); resultobj = Py_None; | |
11764 | return resultobj; | |
11765 | fail: | |
11766 | return NULL; | |
11767 | } | |
11768 | ||
11769 | ||
11770 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
11771 | PyObject *obj; | |
11772 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11773 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
11774 | Py_INCREF(obj); | |
11775 | return Py_BuildValue((char *)""); | |
11776 | } | |
b2dc1044 RD |
11777 | static int _wrap_SliderNameStr_set(PyObject *_val) { |
11778 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); | |
11779 | return 1; | |
11780 | } | |
11781 | ||
11782 | ||
11783 | static PyObject *_wrap_SliderNameStr_get() { | |
11784 | PyObject *pyobj; | |
11785 | ||
11786 | { | |
11787 | #if wxUSE_UNICODE | |
11788 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11789 | #else | |
11790 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11791 | #endif | |
11792 | } | |
11793 | return pyobj; | |
11794 | } | |
11795 | ||
11796 | ||
d14a1e28 RD |
11797 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
11798 | PyObject *resultobj; | |
11799 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 11800 | int arg2 ; |
d14a1e28 RD |
11801 | int arg3 ; |
11802 | int arg4 ; | |
11803 | int arg5 ; | |
11804 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
11805 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
11806 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
11807 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
11808 | long arg8 = (long) wxSL_HORIZONTAL ; | |
11809 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11810 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11811 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
11812 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11813 | wxSlider *result; | |
11814 | wxPoint temp6 ; | |
11815 | wxSize temp7 ; | |
e811c8ce | 11816 | bool temp10 = False ; |
d14a1e28 | 11817 | PyObject * obj0 = 0 ; |
994141e6 RD |
11818 | PyObject * obj1 = 0 ; |
11819 | PyObject * obj2 = 0 ; | |
11820 | PyObject * obj3 = 0 ; | |
11821 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11822 | PyObject * obj5 = 0 ; |
11823 | PyObject * obj6 = 0 ; | |
994141e6 | 11824 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
11825 | PyObject * obj8 = 0 ; |
11826 | PyObject * obj9 = 0 ; | |
11827 | char *kwnames[] = { | |
994141e6 | 11828 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11829 | }; |
11830 | ||
994141e6 | 11831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 11832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11833 | { |
11834 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11835 | if (PyErr_Occurred()) SWIG_fail; | |
11836 | } | |
11837 | { | |
11838 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11839 | if (PyErr_Occurred()) SWIG_fail; | |
11840 | } | |
11841 | { | |
11842 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11843 | if (PyErr_Occurred()) SWIG_fail; | |
11844 | } | |
11845 | { | |
11846 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11847 | if (PyErr_Occurred()) SWIG_fail; | |
11848 | } | |
d14a1e28 RD |
11849 | if (obj5) { |
11850 | { | |
11851 | arg6 = &temp6; | |
11852 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
11853 | } | |
11854 | } | |
11855 | if (obj6) { | |
11856 | { | |
11857 | arg7 = &temp7; | |
11858 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
11859 | } | |
11860 | } | |
994141e6 RD |
11861 | if (obj7) { |
11862 | { | |
11863 | arg8 = (long) SWIG_PyObj_AsLong(obj7); | |
11864 | if (PyErr_Occurred()) SWIG_fail; | |
11865 | } | |
11866 | } | |
d14a1e28 RD |
11867 | if (obj8) { |
11868 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11869 | if (arg9 == NULL) { | |
11870 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11871 | } | |
11872 | } | |
11873 | if (obj9) { | |
11874 | { | |
11875 | arg10 = wxString_in_helper(obj9); | |
11876 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 11877 | temp10 = True; |
d14a1e28 RD |
11878 | } |
11879 | } | |
11880 | { | |
11881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11882 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
11883 | ||
11884 | wxPyEndAllowThreads(__tstate); | |
11885 | if (PyErr_Occurred()) SWIG_fail; | |
11886 | } | |
11887 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
11888 | { | |
11889 | if (temp10) | |
11890 | delete arg10; | |
11891 | } | |
11892 | return resultobj; | |
11893 | fail: | |
11894 | { | |
11895 | if (temp10) | |
11896 | delete arg10; | |
11897 | } | |
11898 | return NULL; | |
11899 | } | |
11900 | ||
11901 | ||
11902 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11903 | PyObject *resultobj; | |
11904 | wxSlider *result; | |
11905 | char *kwnames[] = { | |
11906 | NULL | |
11907 | }; | |
11908 | ||
11909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
11910 | { | |
11911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11912 | result = (wxSlider *)new wxSlider(); | |
11913 | ||
11914 | wxPyEndAllowThreads(__tstate); | |
11915 | if (PyErr_Occurred()) SWIG_fail; | |
11916 | } | |
11917 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
11918 | return resultobj; | |
11919 | fail: | |
11920 | return NULL; | |
11921 | } | |
11922 | ||
11923 | ||
11924 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11925 | PyObject *resultobj; | |
11926 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11927 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11928 | int arg3 ; |
d14a1e28 RD |
11929 | int arg4 ; |
11930 | int arg5 ; | |
11931 | int arg6 ; | |
11932 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11933 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11934 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
11935 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
11936 | long arg9 = (long) wxSL_HORIZONTAL ; | |
11937 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11938 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11939 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
11940 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11941 | bool result; | |
11942 | wxPoint temp7 ; | |
11943 | wxSize temp8 ; | |
e811c8ce | 11944 | bool temp11 = False ; |
d14a1e28 RD |
11945 | PyObject * obj0 = 0 ; |
11946 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11947 | PyObject * obj2 = 0 ; |
11948 | PyObject * obj3 = 0 ; | |
11949 | PyObject * obj4 = 0 ; | |
11950 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11951 | PyObject * obj6 = 0 ; |
11952 | PyObject * obj7 = 0 ; | |
994141e6 | 11953 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
11954 | PyObject * obj9 = 0 ; |
11955 | PyObject * obj10 = 0 ; | |
11956 | char *kwnames[] = { | |
994141e6 | 11957 | (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 |
11958 | }; |
11959 | ||
994141e6 | 11960 | 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 |
11961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11962 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
11963 | { |
11964 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11965 | if (PyErr_Occurred()) SWIG_fail; | |
11966 | } | |
11967 | { | |
11968 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11969 | if (PyErr_Occurred()) SWIG_fail; | |
11970 | } | |
11971 | { | |
11972 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11973 | if (PyErr_Occurred()) SWIG_fail; | |
11974 | } | |
11975 | { | |
11976 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
11977 | if (PyErr_Occurred()) SWIG_fail; | |
11978 | } | |
d14a1e28 RD |
11979 | if (obj6) { |
11980 | { | |
11981 | arg7 = &temp7; | |
11982 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
11983 | } | |
11984 | } | |
11985 | if (obj7) { | |
11986 | { | |
11987 | arg8 = &temp8; | |
11988 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
11989 | } | |
11990 | } | |
994141e6 RD |
11991 | if (obj8) { |
11992 | { | |
11993 | arg9 = (long) SWIG_PyObj_AsLong(obj8); | |
11994 | if (PyErr_Occurred()) SWIG_fail; | |
11995 | } | |
11996 | } | |
d14a1e28 RD |
11997 | if (obj9) { |
11998 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11999 | if (arg10 == NULL) { | |
12000 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12001 | } | |
12002 | } | |
12003 | if (obj10) { | |
12004 | { | |
12005 | arg11 = wxString_in_helper(obj10); | |
12006 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 12007 | temp11 = True; |
d14a1e28 RD |
12008 | } |
12009 | } | |
12010 | { | |
12011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12012 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
12013 | ||
12014 | wxPyEndAllowThreads(__tstate); | |
12015 | if (PyErr_Occurred()) SWIG_fail; | |
12016 | } | |
4d5c3d91 | 12017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12018 | { |
12019 | if (temp11) | |
12020 | delete arg11; | |
12021 | } | |
12022 | return resultobj; | |
12023 | fail: | |
12024 | { | |
12025 | if (temp11) | |
12026 | delete arg11; | |
12027 | } | |
12028 | return NULL; | |
12029 | } | |
12030 | ||
12031 | ||
12032 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12033 | PyObject *resultobj; | |
12034 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12035 | int result; | |
12036 | PyObject * obj0 = 0 ; | |
12037 | char *kwnames[] = { | |
12038 | (char *) "self", NULL | |
12039 | }; | |
12040 | ||
12041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
12042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12043 | { | |
12044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12045 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
12046 | ||
12047 | wxPyEndAllowThreads(__tstate); | |
12048 | if (PyErr_Occurred()) SWIG_fail; | |
12049 | } | |
994141e6 | 12050 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12051 | return resultobj; |
12052 | fail: | |
12053 | return NULL; | |
12054 | } | |
12055 | ||
12056 | ||
12057 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12058 | PyObject *resultobj; | |
12059 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12060 | int arg2 ; | |
12061 | PyObject * obj0 = 0 ; | |
994141e6 | 12062 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12063 | char *kwnames[] = { |
12064 | (char *) "self",(char *) "value", NULL | |
12065 | }; | |
12066 | ||
994141e6 | 12067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12069 | { |
12070 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12071 | if (PyErr_Occurred()) SWIG_fail; | |
12072 | } | |
d14a1e28 RD |
12073 | { |
12074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12075 | (arg1)->SetValue(arg2); | |
12076 | ||
12077 | wxPyEndAllowThreads(__tstate); | |
12078 | if (PyErr_Occurred()) SWIG_fail; | |
12079 | } | |
12080 | Py_INCREF(Py_None); resultobj = Py_None; | |
12081 | return resultobj; | |
12082 | fail: | |
12083 | return NULL; | |
12084 | } | |
12085 | ||
12086 | ||
12087 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12088 | PyObject *resultobj; | |
12089 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12090 | int arg2 ; | |
12091 | int arg3 ; | |
12092 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12093 | PyObject * obj1 = 0 ; |
12094 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12095 | char *kwnames[] = { |
12096 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
12097 | }; | |
12098 | ||
994141e6 | 12099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12101 | { |
12102 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12103 | if (PyErr_Occurred()) SWIG_fail; | |
12104 | } | |
12105 | { | |
12106 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12107 | if (PyErr_Occurred()) SWIG_fail; | |
12108 | } | |
d14a1e28 RD |
12109 | { |
12110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12111 | (arg1)->SetRange(arg2,arg3); | |
12112 | ||
12113 | wxPyEndAllowThreads(__tstate); | |
12114 | if (PyErr_Occurred()) SWIG_fail; | |
12115 | } | |
12116 | Py_INCREF(Py_None); resultobj = Py_None; | |
12117 | return resultobj; | |
12118 | fail: | |
12119 | return NULL; | |
12120 | } | |
12121 | ||
12122 | ||
12123 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12124 | PyObject *resultobj; | |
12125 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12126 | int result; | |
12127 | PyObject * obj0 = 0 ; | |
12128 | char *kwnames[] = { | |
12129 | (char *) "self", NULL | |
12130 | }; | |
12131 | ||
12132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
12133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12134 | { | |
12135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12136 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
12137 | ||
12138 | wxPyEndAllowThreads(__tstate); | |
12139 | if (PyErr_Occurred()) SWIG_fail; | |
12140 | } | |
994141e6 | 12141 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12142 | return resultobj; |
12143 | fail: | |
12144 | return NULL; | |
12145 | } | |
12146 | ||
12147 | ||
12148 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12149 | PyObject *resultobj; | |
12150 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12151 | int result; | |
12152 | PyObject * obj0 = 0 ; | |
12153 | char *kwnames[] = { | |
12154 | (char *) "self", NULL | |
12155 | }; | |
12156 | ||
12157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
12158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12159 | { | |
12160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12161 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
12162 | ||
12163 | wxPyEndAllowThreads(__tstate); | |
12164 | if (PyErr_Occurred()) SWIG_fail; | |
12165 | } | |
994141e6 | 12166 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12167 | return resultobj; |
12168 | fail: | |
12169 | return NULL; | |
12170 | } | |
12171 | ||
12172 | ||
12173 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12174 | PyObject *resultobj; | |
12175 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12176 | int arg2 ; | |
12177 | PyObject * obj0 = 0 ; | |
994141e6 | 12178 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12179 | char *kwnames[] = { |
12180 | (char *) "self",(char *) "minValue", NULL | |
12181 | }; | |
12182 | ||
994141e6 | 12183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12185 | { |
12186 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12187 | if (PyErr_Occurred()) SWIG_fail; | |
12188 | } | |
d14a1e28 RD |
12189 | { |
12190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12191 | (arg1)->SetMin(arg2); | |
12192 | ||
12193 | wxPyEndAllowThreads(__tstate); | |
12194 | if (PyErr_Occurred()) SWIG_fail; | |
12195 | } | |
12196 | Py_INCREF(Py_None); resultobj = Py_None; | |
12197 | return resultobj; | |
12198 | fail: | |
12199 | return NULL; | |
12200 | } | |
12201 | ||
12202 | ||
12203 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12204 | PyObject *resultobj; | |
12205 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12206 | int arg2 ; | |
12207 | PyObject * obj0 = 0 ; | |
994141e6 | 12208 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12209 | char *kwnames[] = { |
12210 | (char *) "self",(char *) "maxValue", NULL | |
12211 | }; | |
12212 | ||
994141e6 | 12213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12215 | { |
12216 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12217 | if (PyErr_Occurred()) SWIG_fail; | |
12218 | } | |
d14a1e28 RD |
12219 | { |
12220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12221 | (arg1)->SetMax(arg2); | |
12222 | ||
12223 | wxPyEndAllowThreads(__tstate); | |
12224 | if (PyErr_Occurred()) SWIG_fail; | |
12225 | } | |
12226 | Py_INCREF(Py_None); resultobj = Py_None; | |
12227 | return resultobj; | |
12228 | fail: | |
12229 | return NULL; | |
12230 | } | |
12231 | ||
12232 | ||
12233 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12234 | PyObject *resultobj; | |
12235 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12236 | int arg2 ; | |
12237 | PyObject * obj0 = 0 ; | |
994141e6 | 12238 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12239 | char *kwnames[] = { |
12240 | (char *) "self",(char *) "lineSize", NULL | |
12241 | }; | |
12242 | ||
994141e6 | 12243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12245 | { |
12246 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12247 | if (PyErr_Occurred()) SWIG_fail; | |
12248 | } | |
d14a1e28 RD |
12249 | { |
12250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12251 | (arg1)->SetLineSize(arg2); | |
12252 | ||
12253 | wxPyEndAllowThreads(__tstate); | |
12254 | if (PyErr_Occurred()) SWIG_fail; | |
12255 | } | |
12256 | Py_INCREF(Py_None); resultobj = Py_None; | |
12257 | return resultobj; | |
12258 | fail: | |
12259 | return NULL; | |
12260 | } | |
12261 | ||
12262 | ||
12263 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12264 | PyObject *resultobj; | |
12265 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12266 | int arg2 ; | |
12267 | PyObject * obj0 = 0 ; | |
994141e6 | 12268 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12269 | char *kwnames[] = { |
12270 | (char *) "self",(char *) "pageSize", NULL | |
12271 | }; | |
12272 | ||
994141e6 | 12273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12275 | { |
12276 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12277 | if (PyErr_Occurred()) SWIG_fail; | |
12278 | } | |
d14a1e28 RD |
12279 | { |
12280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12281 | (arg1)->SetPageSize(arg2); | |
12282 | ||
12283 | wxPyEndAllowThreads(__tstate); | |
12284 | if (PyErr_Occurred()) SWIG_fail; | |
12285 | } | |
12286 | Py_INCREF(Py_None); resultobj = Py_None; | |
12287 | return resultobj; | |
12288 | fail: | |
12289 | return NULL; | |
12290 | } | |
12291 | ||
12292 | ||
12293 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12294 | PyObject *resultobj; | |
12295 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12296 | int result; | |
12297 | PyObject * obj0 = 0 ; | |
12298 | char *kwnames[] = { | |
12299 | (char *) "self", NULL | |
12300 | }; | |
12301 | ||
12302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
12303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12304 | { | |
12305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12306 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
12307 | ||
12308 | wxPyEndAllowThreads(__tstate); | |
12309 | if (PyErr_Occurred()) SWIG_fail; | |
12310 | } | |
994141e6 | 12311 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12312 | return resultobj; |
12313 | fail: | |
12314 | return NULL; | |
12315 | } | |
12316 | ||
12317 | ||
12318 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12319 | PyObject *resultobj; | |
12320 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12321 | int result; | |
12322 | PyObject * obj0 = 0 ; | |
12323 | char *kwnames[] = { | |
12324 | (char *) "self", NULL | |
12325 | }; | |
12326 | ||
12327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
12328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12329 | { | |
12330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12331 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
12332 | ||
12333 | wxPyEndAllowThreads(__tstate); | |
12334 | if (PyErr_Occurred()) SWIG_fail; | |
12335 | } | |
994141e6 | 12336 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12337 | return resultobj; |
12338 | fail: | |
12339 | return NULL; | |
12340 | } | |
12341 | ||
12342 | ||
12343 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12344 | PyObject *resultobj; | |
12345 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12346 | int arg2 ; | |
12347 | PyObject * obj0 = 0 ; | |
994141e6 | 12348 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12349 | char *kwnames[] = { |
12350 | (char *) "self",(char *) "lenPixels", NULL | |
12351 | }; | |
12352 | ||
994141e6 | 12353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12355 | { |
12356 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12357 | if (PyErr_Occurred()) SWIG_fail; | |
12358 | } | |
d14a1e28 RD |
12359 | { |
12360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12361 | (arg1)->SetThumbLength(arg2); | |
12362 | ||
12363 | wxPyEndAllowThreads(__tstate); | |
12364 | if (PyErr_Occurred()) SWIG_fail; | |
12365 | } | |
12366 | Py_INCREF(Py_None); resultobj = Py_None; | |
12367 | return resultobj; | |
12368 | fail: | |
12369 | return NULL; | |
12370 | } | |
12371 | ||
12372 | ||
12373 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12374 | PyObject *resultobj; | |
12375 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12376 | int result; | |
12377 | PyObject * obj0 = 0 ; | |
12378 | char *kwnames[] = { | |
12379 | (char *) "self", NULL | |
12380 | }; | |
12381 | ||
12382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
12383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12384 | { | |
12385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12386 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
12387 | ||
12388 | wxPyEndAllowThreads(__tstate); | |
12389 | if (PyErr_Occurred()) SWIG_fail; | |
12390 | } | |
994141e6 | 12391 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12392 | return resultobj; |
12393 | fail: | |
12394 | return NULL; | |
12395 | } | |
12396 | ||
12397 | ||
12398 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12399 | PyObject *resultobj; | |
12400 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12401 | int arg2 ; | |
994141e6 | 12402 | int arg3 = (int) 1 ; |
d14a1e28 | 12403 | PyObject * obj0 = 0 ; |
994141e6 RD |
12404 | PyObject * obj1 = 0 ; |
12405 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12406 | char *kwnames[] = { |
12407 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
12408 | }; | |
12409 | ||
994141e6 | 12410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12412 | { |
12413 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12414 | if (PyErr_Occurred()) SWIG_fail; | |
12415 | } | |
12416 | if (obj2) { | |
12417 | { | |
12418 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12419 | if (PyErr_Occurred()) SWIG_fail; | |
12420 | } | |
12421 | } | |
d14a1e28 RD |
12422 | { |
12423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12424 | (arg1)->SetTickFreq(arg2,arg3); | |
12425 | ||
12426 | wxPyEndAllowThreads(__tstate); | |
12427 | if (PyErr_Occurred()) SWIG_fail; | |
12428 | } | |
12429 | Py_INCREF(Py_None); resultobj = Py_None; | |
12430 | return resultobj; | |
12431 | fail: | |
12432 | return NULL; | |
12433 | } | |
12434 | ||
12435 | ||
12436 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12437 | PyObject *resultobj; | |
12438 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12439 | int result; | |
12440 | PyObject * obj0 = 0 ; | |
12441 | char *kwnames[] = { | |
12442 | (char *) "self", NULL | |
12443 | }; | |
12444 | ||
12445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
12446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12447 | { | |
12448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12449 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
12450 | ||
12451 | wxPyEndAllowThreads(__tstate); | |
12452 | if (PyErr_Occurred()) SWIG_fail; | |
12453 | } | |
994141e6 | 12454 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12455 | return resultobj; |
12456 | fail: | |
12457 | return NULL; | |
12458 | } | |
12459 | ||
12460 | ||
12461 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12462 | PyObject *resultobj; | |
12463 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12464 | PyObject * obj0 = 0 ; | |
12465 | char *kwnames[] = { | |
12466 | (char *) "self", NULL | |
12467 | }; | |
12468 | ||
12469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
12470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12471 | { | |
12472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12473 | (arg1)->ClearTicks(); | |
12474 | ||
12475 | wxPyEndAllowThreads(__tstate); | |
12476 | if (PyErr_Occurred()) SWIG_fail; | |
12477 | } | |
12478 | Py_INCREF(Py_None); resultobj = Py_None; | |
12479 | return resultobj; | |
12480 | fail: | |
12481 | return NULL; | |
12482 | } | |
12483 | ||
12484 | ||
12485 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12486 | PyObject *resultobj; | |
12487 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12488 | int arg2 ; | |
12489 | PyObject * obj0 = 0 ; | |
994141e6 | 12490 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12491 | char *kwnames[] = { |
12492 | (char *) "self",(char *) "tickPos", NULL | |
12493 | }; | |
12494 | ||
994141e6 | 12495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12497 | { |
12498 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12499 | if (PyErr_Occurred()) SWIG_fail; | |
12500 | } | |
d14a1e28 RD |
12501 | { |
12502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12503 | (arg1)->SetTick(arg2); | |
12504 | ||
12505 | wxPyEndAllowThreads(__tstate); | |
12506 | if (PyErr_Occurred()) SWIG_fail; | |
12507 | } | |
12508 | Py_INCREF(Py_None); resultobj = Py_None; | |
12509 | return resultobj; | |
12510 | fail: | |
12511 | return NULL; | |
12512 | } | |
12513 | ||
12514 | ||
12515 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12516 | PyObject *resultobj; | |
12517 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12518 | PyObject * obj0 = 0 ; | |
12519 | char *kwnames[] = { | |
12520 | (char *) "self", NULL | |
12521 | }; | |
12522 | ||
12523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
12524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12525 | { | |
12526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12527 | (arg1)->ClearSel(); | |
12528 | ||
12529 | wxPyEndAllowThreads(__tstate); | |
12530 | if (PyErr_Occurred()) SWIG_fail; | |
12531 | } | |
12532 | Py_INCREF(Py_None); resultobj = Py_None; | |
12533 | return resultobj; | |
12534 | fail: | |
12535 | return NULL; | |
12536 | } | |
12537 | ||
12538 | ||
12539 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12540 | PyObject *resultobj; | |
12541 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12542 | int result; | |
12543 | PyObject * obj0 = 0 ; | |
12544 | char *kwnames[] = { | |
12545 | (char *) "self", NULL | |
12546 | }; | |
12547 | ||
12548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
12549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12550 | { | |
12551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12552 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
12553 | ||
12554 | wxPyEndAllowThreads(__tstate); | |
12555 | if (PyErr_Occurred()) SWIG_fail; | |
12556 | } | |
994141e6 | 12557 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12558 | return resultobj; |
12559 | fail: | |
12560 | return NULL; | |
12561 | } | |
12562 | ||
12563 | ||
12564 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12565 | PyObject *resultobj; | |
12566 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12567 | int result; | |
12568 | PyObject * obj0 = 0 ; | |
12569 | char *kwnames[] = { | |
12570 | (char *) "self", NULL | |
12571 | }; | |
12572 | ||
12573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
12574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12575 | { | |
12576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12577 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
12578 | ||
12579 | wxPyEndAllowThreads(__tstate); | |
12580 | if (PyErr_Occurred()) SWIG_fail; | |
12581 | } | |
994141e6 | 12582 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12583 | return resultobj; |
12584 | fail: | |
12585 | return NULL; | |
12586 | } | |
12587 | ||
12588 | ||
12589 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12590 | PyObject *resultobj; | |
12591 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12592 | int arg2 ; | |
12593 | int arg3 ; | |
12594 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12595 | PyObject * obj1 = 0 ; |
12596 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12597 | char *kwnames[] = { |
12598 | (char *) "self",(char *) "min",(char *) "max", NULL | |
12599 | }; | |
12600 | ||
994141e6 | 12601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12603 | { |
12604 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12605 | if (PyErr_Occurred()) SWIG_fail; | |
12606 | } | |
12607 | { | |
12608 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12609 | if (PyErr_Occurred()) SWIG_fail; | |
12610 | } | |
d14a1e28 RD |
12611 | { |
12612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12613 | (arg1)->SetSelection(arg2,arg3); | |
12614 | ||
12615 | wxPyEndAllowThreads(__tstate); | |
12616 | if (PyErr_Occurred()) SWIG_fail; | |
12617 | } | |
12618 | Py_INCREF(Py_None); resultobj = Py_None; | |
12619 | return resultobj; | |
12620 | fail: | |
12621 | return NULL; | |
12622 | } | |
12623 | ||
12624 | ||
12625 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
12626 | PyObject *obj; | |
12627 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12628 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
12629 | Py_INCREF(obj); | |
12630 | return Py_BuildValue((char *)""); | |
12631 | } | |
b2dc1044 RD |
12632 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { |
12633 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); | |
12634 | return 1; | |
12635 | } | |
12636 | ||
12637 | ||
12638 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
12639 | PyObject *pyobj; | |
12640 | ||
12641 | { | |
12642 | #if wxUSE_UNICODE | |
12643 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12644 | #else | |
12645 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12646 | #endif | |
12647 | } | |
12648 | return pyobj; | |
12649 | } | |
12650 | ||
12651 | ||
d14a1e28 RD |
12652 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
12653 | PyObject *resultobj; | |
12654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 12655 | int arg2 ; |
d14a1e28 RD |
12656 | wxString *arg3 = 0 ; |
12657 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12658 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12659 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12660 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12661 | long arg6 = (long) 0 ; | |
12662 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12663 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12664 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
12665 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12666 | wxToggleButton *result; | |
e811c8ce | 12667 | bool temp3 = False ; |
d14a1e28 RD |
12668 | wxPoint temp4 ; |
12669 | wxSize temp5 ; | |
e811c8ce | 12670 | bool temp8 = False ; |
d14a1e28 | 12671 | PyObject * obj0 = 0 ; |
994141e6 | 12672 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12673 | PyObject * obj2 = 0 ; |
12674 | PyObject * obj3 = 0 ; | |
12675 | PyObject * obj4 = 0 ; | |
994141e6 | 12676 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12677 | PyObject * obj6 = 0 ; |
12678 | PyObject * obj7 = 0 ; | |
12679 | char *kwnames[] = { | |
12680 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12681 | }; | |
12682 | ||
994141e6 | 12683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 12684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12685 | { |
12686 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12687 | if (PyErr_Occurred()) SWIG_fail; | |
12688 | } | |
d14a1e28 RD |
12689 | { |
12690 | arg3 = wxString_in_helper(obj2); | |
12691 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12692 | temp3 = True; |
d14a1e28 RD |
12693 | } |
12694 | if (obj3) { | |
12695 | { | |
12696 | arg4 = &temp4; | |
12697 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12698 | } | |
12699 | } | |
12700 | if (obj4) { | |
12701 | { | |
12702 | arg5 = &temp5; | |
12703 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12704 | } | |
12705 | } | |
994141e6 RD |
12706 | if (obj5) { |
12707 | { | |
12708 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
12709 | if (PyErr_Occurred()) SWIG_fail; | |
12710 | } | |
12711 | } | |
d14a1e28 RD |
12712 | if (obj6) { |
12713 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12714 | if (arg7 == NULL) { | |
12715 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12716 | } | |
12717 | } | |
12718 | if (obj7) { | |
12719 | { | |
12720 | arg8 = wxString_in_helper(obj7); | |
12721 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 12722 | temp8 = True; |
d14a1e28 RD |
12723 | } |
12724 | } | |
12725 | { | |
12726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12727 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12728 | ||
12729 | wxPyEndAllowThreads(__tstate); | |
12730 | if (PyErr_Occurred()) SWIG_fail; | |
12731 | } | |
12732 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12733 | { | |
12734 | if (temp3) | |
12735 | delete arg3; | |
12736 | } | |
12737 | { | |
12738 | if (temp8) | |
12739 | delete arg8; | |
12740 | } | |
12741 | return resultobj; | |
12742 | fail: | |
12743 | { | |
12744 | if (temp3) | |
12745 | delete arg3; | |
12746 | } | |
12747 | { | |
12748 | if (temp8) | |
12749 | delete arg8; | |
12750 | } | |
12751 | return NULL; | |
12752 | } | |
12753 | ||
12754 | ||
12755 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12756 | PyObject *resultobj; | |
12757 | wxToggleButton *result; | |
12758 | char *kwnames[] = { | |
12759 | NULL | |
12760 | }; | |
12761 | ||
12762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
12763 | { | |
12764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12765 | result = (wxToggleButton *)new wxToggleButton(); | |
12766 | ||
12767 | wxPyEndAllowThreads(__tstate); | |
12768 | if (PyErr_Occurred()) SWIG_fail; | |
12769 | } | |
12770 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12771 | return resultobj; | |
12772 | fail: | |
12773 | return NULL; | |
12774 | } | |
12775 | ||
12776 | ||
12777 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12778 | PyObject *resultobj; | |
12779 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
12780 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12781 | int arg3 ; |
d14a1e28 RD |
12782 | wxString *arg4 = 0 ; |
12783 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
12784 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12785 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12786 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12787 | long arg7 = (long) 0 ; | |
12788 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12789 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12790 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
12791 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12792 | bool result; | |
e811c8ce | 12793 | bool temp4 = False ; |
d14a1e28 RD |
12794 | wxPoint temp5 ; |
12795 | wxSize temp6 ; | |
e811c8ce | 12796 | bool temp9 = False ; |
d14a1e28 RD |
12797 | PyObject * obj0 = 0 ; |
12798 | PyObject * obj1 = 0 ; | |
994141e6 | 12799 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12800 | PyObject * obj3 = 0 ; |
12801 | PyObject * obj4 = 0 ; | |
12802 | PyObject * obj5 = 0 ; | |
994141e6 | 12803 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
12804 | PyObject * obj7 = 0 ; |
12805 | PyObject * obj8 = 0 ; | |
12806 | char *kwnames[] = { | |
12807 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12808 | }; | |
12809 | ||
994141e6 | 12810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
12811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12812 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
12813 | { |
12814 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12815 | if (PyErr_Occurred()) SWIG_fail; | |
12816 | } | |
d14a1e28 RD |
12817 | { |
12818 | arg4 = wxString_in_helper(obj3); | |
12819 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 12820 | temp4 = True; |
d14a1e28 RD |
12821 | } |
12822 | if (obj4) { | |
12823 | { | |
12824 | arg5 = &temp5; | |
12825 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12826 | } | |
12827 | } | |
12828 | if (obj5) { | |
12829 | { | |
12830 | arg6 = &temp6; | |
12831 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12832 | } | |
12833 | } | |
994141e6 RD |
12834 | if (obj6) { |
12835 | { | |
12836 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
12837 | if (PyErr_Occurred()) SWIG_fail; | |
12838 | } | |
12839 | } | |
d14a1e28 RD |
12840 | if (obj7) { |
12841 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12842 | if (arg8 == NULL) { | |
12843 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12844 | } | |
12845 | } | |
12846 | if (obj8) { | |
12847 | { | |
12848 | arg9 = wxString_in_helper(obj8); | |
12849 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 12850 | temp9 = True; |
d14a1e28 RD |
12851 | } |
12852 | } | |
12853 | { | |
12854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12855 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
12856 | ||
12857 | wxPyEndAllowThreads(__tstate); | |
12858 | if (PyErr_Occurred()) SWIG_fail; | |
12859 | } | |
4d5c3d91 | 12860 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12861 | { |
12862 | if (temp4) | |
12863 | delete arg4; | |
12864 | } | |
12865 | { | |
12866 | if (temp9) | |
12867 | delete arg9; | |
12868 | } | |
12869 | return resultobj; | |
12870 | fail: | |
12871 | { | |
12872 | if (temp4) | |
12873 | delete arg4; | |
12874 | } | |
12875 | { | |
12876 | if (temp9) | |
12877 | delete arg9; | |
12878 | } | |
12879 | return NULL; | |
12880 | } | |
12881 | ||
12882 | ||
12883 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12884 | PyObject *resultobj; | |
12885 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
12886 | bool arg2 ; | |
12887 | PyObject * obj0 = 0 ; | |
12888 | PyObject * obj1 = 0 ; | |
12889 | char *kwnames[] = { | |
12890 | (char *) "self",(char *) "value", NULL | |
12891 | }; | |
12892 | ||
12893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 12895 | { |
994141e6 | 12896 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
12897 | if (PyErr_Occurred()) SWIG_fail; |
12898 | } | |
d14a1e28 RD |
12899 | { |
12900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12901 | (arg1)->SetValue(arg2); | |
12902 | ||
12903 | wxPyEndAllowThreads(__tstate); | |
12904 | if (PyErr_Occurred()) SWIG_fail; | |
12905 | } | |
12906 | Py_INCREF(Py_None); resultobj = Py_None; | |
12907 | return resultobj; | |
12908 | fail: | |
12909 | return NULL; | |
12910 | } | |
12911 | ||
12912 | ||
12913 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12914 | PyObject *resultobj; | |
12915 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
12916 | bool result; | |
12917 | PyObject * obj0 = 0 ; | |
12918 | char *kwnames[] = { | |
12919 | (char *) "self", NULL | |
12920 | }; | |
12921 | ||
12922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
12923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12924 | { | |
12925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12926 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
12927 | ||
12928 | wxPyEndAllowThreads(__tstate); | |
12929 | if (PyErr_Occurred()) SWIG_fail; | |
12930 | } | |
4d5c3d91 | 12931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12932 | return resultobj; |
12933 | fail: | |
12934 | return NULL; | |
12935 | } | |
12936 | ||
12937 | ||
12938 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12939 | PyObject *resultobj; | |
12940 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
12941 | wxString *arg2 = 0 ; | |
e811c8ce | 12942 | bool temp2 = False ; |
d14a1e28 RD |
12943 | PyObject * obj0 = 0 ; |
12944 | PyObject * obj1 = 0 ; | |
12945 | char *kwnames[] = { | |
12946 | (char *) "self",(char *) "label", NULL | |
12947 | }; | |
12948 | ||
12949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
12950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12951 | { | |
12952 | arg2 = wxString_in_helper(obj1); | |
12953 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12954 | temp2 = True; |
d14a1e28 RD |
12955 | } |
12956 | { | |
12957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12958 | (arg1)->SetLabel((wxString const &)*arg2); | |
12959 | ||
12960 | wxPyEndAllowThreads(__tstate); | |
12961 | if (PyErr_Occurred()) SWIG_fail; | |
12962 | } | |
12963 | Py_INCREF(Py_None); resultobj = Py_None; | |
12964 | { | |
12965 | if (temp2) | |
12966 | delete arg2; | |
12967 | } | |
12968 | return resultobj; | |
12969 | fail: | |
12970 | { | |
12971 | if (temp2) | |
12972 | delete arg2; | |
12973 | } | |
12974 | return NULL; | |
12975 | } | |
12976 | ||
12977 | ||
12978 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
12979 | PyObject *obj; | |
12980 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12981 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
12982 | Py_INCREF(obj); | |
12983 | return Py_BuildValue((char *)""); | |
12984 | } | |
b2dc1044 RD |
12985 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { |
12986 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); | |
12987 | return 1; | |
12988 | } | |
12989 | ||
12990 | ||
12991 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
12992 | PyObject *pyobj; | |
12993 | ||
12994 | { | |
12995 | #if wxUSE_UNICODE | |
12996 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
12997 | #else | |
12998 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
12999 | #endif | |
13000 | } | |
13001 | return pyobj; | |
13002 | } | |
13003 | ||
13004 | ||
d14a1e28 RD |
13005 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
13006 | PyObject *resultobj; | |
13007 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13008 | size_t result; | |
13009 | PyObject * obj0 = 0 ; | |
13010 | char *kwnames[] = { | |
13011 | (char *) "self", NULL | |
13012 | }; | |
13013 | ||
13014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
13015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13016 | { | |
13017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13018 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
13019 | ||
13020 | wxPyEndAllowThreads(__tstate); | |
13021 | if (PyErr_Occurred()) SWIG_fail; | |
13022 | } | |
994141e6 | 13023 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
13024 | return resultobj; |
13025 | fail: | |
13026 | return NULL; | |
13027 | } | |
13028 | ||
13029 | ||
13030 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13031 | PyObject *resultobj; | |
13032 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13033 | size_t arg2 ; | |
13034 | wxWindow *result; | |
13035 | PyObject * obj0 = 0 ; | |
13036 | PyObject * obj1 = 0 ; | |
13037 | char *kwnames[] = { | |
13038 | (char *) "self",(char *) "n", NULL | |
13039 | }; | |
13040 | ||
13041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
13042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 13043 | { |
994141e6 | 13044 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
13045 | if (PyErr_Occurred()) SWIG_fail; |
13046 | } | |
d14a1e28 RD |
13047 | { |
13048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13049 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
13050 | ||
13051 | wxPyEndAllowThreads(__tstate); | |
13052 | if (PyErr_Occurred()) SWIG_fail; | |
13053 | } | |
13054 | { | |
13055 | resultobj = wxPyMake_wxObject(result); | |
13056 | } | |
13057 | return resultobj; | |
13058 | fail: | |
13059 | return NULL; | |
13060 | } | |
13061 | ||
13062 | ||
13063 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13064 | PyObject *resultobj; | |
13065 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13066 | int result; | |
13067 | PyObject * obj0 = 0 ; | |
13068 | char *kwnames[] = { | |
13069 | (char *) "self", NULL | |
13070 | }; | |
13071 | ||
13072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
13073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13074 | { | |
13075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13076 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
13077 | ||
13078 | wxPyEndAllowThreads(__tstate); | |
13079 | if (PyErr_Occurred()) SWIG_fail; | |
13080 | } | |
994141e6 | 13081 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13082 | return resultobj; |
13083 | fail: | |
13084 | return NULL; | |
13085 | } | |
13086 | ||
13087 | ||
13088 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13089 | PyObject *resultobj; | |
13090 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13091 | size_t arg2 ; | |
13092 | wxString *arg3 = 0 ; | |
13093 | bool result; | |
e811c8ce | 13094 | bool temp3 = False ; |
d14a1e28 RD |
13095 | PyObject * obj0 = 0 ; |
13096 | PyObject * obj1 = 0 ; | |
13097 | PyObject * obj2 = 0 ; | |
13098 | char *kwnames[] = { | |
13099 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
13100 | }; | |
13101 | ||
13102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 13104 | { |
994141e6 | 13105 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
13106 | if (PyErr_Occurred()) SWIG_fail; |
13107 | } | |
d14a1e28 RD |
13108 | { |
13109 | arg3 = wxString_in_helper(obj2); | |
13110 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13111 | temp3 = True; |
d14a1e28 RD |
13112 | } |
13113 | { | |
13114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13115 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
13116 | ||
13117 | wxPyEndAllowThreads(__tstate); | |
13118 | if (PyErr_Occurred()) SWIG_fail; | |
13119 | } | |
4d5c3d91 | 13120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13121 | { |
13122 | if (temp3) | |
13123 | delete arg3; | |
13124 | } | |
13125 | return resultobj; | |
13126 | fail: | |
13127 | { | |
13128 | if (temp3) | |
13129 | delete arg3; | |
13130 | } | |
13131 | return NULL; | |
13132 | } | |
13133 | ||
13134 | ||
13135 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13136 | PyObject *resultobj; | |
13137 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13138 | size_t arg2 ; | |
13139 | wxString result; | |
13140 | PyObject * obj0 = 0 ; | |
13141 | PyObject * obj1 = 0 ; | |
13142 | char *kwnames[] = { | |
13143 | (char *) "self",(char *) "n", NULL | |
13144 | }; | |
13145 | ||
13146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
13147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 13148 | { |
994141e6 | 13149 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
13150 | if (PyErr_Occurred()) SWIG_fail; |
13151 | } | |
d14a1e28 RD |
13152 | { |
13153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13154 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
13155 | ||
13156 | wxPyEndAllowThreads(__tstate); | |
13157 | if (PyErr_Occurred()) SWIG_fail; | |
13158 | } | |
13159 | { | |
13160 | #if wxUSE_UNICODE | |
13161 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13162 | #else | |
13163 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13164 | #endif | |
13165 | } | |
13166 | return resultobj; | |
13167 | fail: | |
13168 | return NULL; | |
13169 | } | |
13170 | ||
13171 | ||
13172 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13173 | PyObject *resultobj; | |
13174 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13175 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13176 | PyObject * obj0 = 0 ; | |
13177 | PyObject * obj1 = 0 ; | |
13178 | char *kwnames[] = { | |
13179 | (char *) "self",(char *) "imageList", NULL | |
13180 | }; | |
13181 | ||
13182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
13183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13184 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13185 | { | |
13186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13187 | (arg1)->SetImageList(arg2); | |
13188 | ||
13189 | wxPyEndAllowThreads(__tstate); | |
13190 | if (PyErr_Occurred()) SWIG_fail; | |
13191 | } | |
13192 | Py_INCREF(Py_None); resultobj = Py_None; | |
13193 | return resultobj; | |
13194 | fail: | |
13195 | return NULL; | |
13196 | } | |
13197 | ||
13198 | ||
13199 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13200 | PyObject *resultobj; | |
13201 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13202 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13203 | PyObject * obj0 = 0 ; | |
13204 | PyObject * obj1 = 0 ; | |
13205 | char *kwnames[] = { | |
13206 | (char *) "self",(char *) "imageList", NULL | |
13207 | }; | |
13208 | ||
13209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
13210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 13211 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
13212 | { |
13213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13214 | (arg1)->AssignImageList(arg2); | |
13215 | ||
13216 | wxPyEndAllowThreads(__tstate); | |
13217 | if (PyErr_Occurred()) SWIG_fail; | |
13218 | } | |
13219 | Py_INCREF(Py_None); resultobj = Py_None; | |
13220 | return resultobj; | |
13221 | fail: | |
13222 | return NULL; | |
13223 | } | |
13224 | ||
13225 | ||
13226 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13227 | PyObject *resultobj; | |
13228 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13229 | wxImageList *result; | |
13230 | PyObject * obj0 = 0 ; | |
13231 | char *kwnames[] = { | |
13232 | (char *) "self", NULL | |
13233 | }; | |
13234 | ||
13235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
13236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13237 | { | |
13238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13239 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
13240 | ||
13241 | wxPyEndAllowThreads(__tstate); | |
13242 | if (PyErr_Occurred()) SWIG_fail; | |
13243 | } | |
13244 | { | |
13245 | resultobj = wxPyMake_wxObject(result); | |
13246 | } | |
13247 | return resultobj; | |
13248 | fail: | |
13249 | return NULL; | |
13250 | } | |
13251 | ||
13252 | ||
13253 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13254 | PyObject *resultobj; | |
13255 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13256 | size_t arg2 ; | |
13257 | int result; | |
13258 | PyObject * obj0 = 0 ; | |
13259 | PyObject * obj1 = 0 ; | |
13260 | char *kwnames[] = { | |
13261 | (char *) "self",(char *) "n", NULL | |
13262 | }; | |
13263 | ||
13264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
13265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 13266 | { |
994141e6 | 13267 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
13268 | if (PyErr_Occurred()) SWIG_fail; |
13269 | } | |
d14a1e28 RD |
13270 | { |
13271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13272 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
13273 | ||
13274 | wxPyEndAllowThreads(__tstate); | |
13275 | if (PyErr_Occurred()) SWIG_fail; | |
13276 | } | |
994141e6 | 13277 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13278 | return resultobj; |
13279 | fail: | |
13280 | return NULL; | |
13281 | } | |
13282 | ||
13283 | ||
13284 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13285 | PyObject *resultobj; | |
13286 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13287 | size_t arg2 ; | |
13288 | int arg3 ; | |
13289 | bool result; | |
13290 | PyObject * obj0 = 0 ; | |
13291 | PyObject * obj1 = 0 ; | |
994141e6 | 13292 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13293 | char *kwnames[] = { |
13294 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
13295 | }; | |
13296 | ||
994141e6 | 13297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 13299 | { |
994141e6 RD |
13300 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
13301 | if (PyErr_Occurred()) SWIG_fail; | |
13302 | } | |
13303 | { | |
13304 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
a41e16b6 RD |
13305 | if (PyErr_Occurred()) SWIG_fail; |
13306 | } | |
d14a1e28 RD |
13307 | { |
13308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13309 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
13310 | ||
13311 | wxPyEndAllowThreads(__tstate); | |
13312 | if (PyErr_Occurred()) SWIG_fail; | |
13313 | } | |
4d5c3d91 | 13314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13315 | return resultobj; |
13316 | fail: | |
13317 | return NULL; | |
13318 | } | |
13319 | ||
13320 | ||
13321 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13322 | PyObject *resultobj; | |
13323 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13324 | wxSize *arg2 = 0 ; | |
13325 | wxSize temp2 ; | |
13326 | PyObject * obj0 = 0 ; | |
13327 | PyObject * obj1 = 0 ; | |
13328 | char *kwnames[] = { | |
13329 | (char *) "self",(char *) "size", NULL | |
13330 | }; | |
13331 | ||
13332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
13333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13334 | { | |
13335 | arg2 = &temp2; | |
13336 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13337 | } | |
13338 | { | |
13339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13340 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
13341 | ||
13342 | wxPyEndAllowThreads(__tstate); | |
13343 | if (PyErr_Occurred()) SWIG_fail; | |
13344 | } | |
13345 | Py_INCREF(Py_None); resultobj = Py_None; | |
13346 | return resultobj; | |
13347 | fail: | |
13348 | return NULL; | |
13349 | } | |
13350 | ||
13351 | ||
13352 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13353 | PyObject *resultobj; | |
13354 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13355 | wxSize *arg2 = 0 ; | |
13356 | wxSize result; | |
13357 | wxSize temp2 ; | |
13358 | PyObject * obj0 = 0 ; | |
13359 | PyObject * obj1 = 0 ; | |
13360 | char *kwnames[] = { | |
13361 | (char *) "self",(char *) "sizePage", NULL | |
13362 | }; | |
13363 | ||
13364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
13365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13366 | { | |
13367 | arg2 = &temp2; | |
13368 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13369 | } | |
13370 | { | |
13371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13372 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13373 | ||
13374 | wxPyEndAllowThreads(__tstate); | |
13375 | if (PyErr_Occurred()) SWIG_fail; | |
13376 | } | |
13377 | { | |
13378 | wxSize * resultptr; | |
13379 | resultptr = new wxSize((wxSize &) result); | |
13380 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13381 | } | |
13382 | return resultobj; | |
13383 | fail: | |
13384 | return NULL; | |
13385 | } | |
13386 | ||
13387 | ||
13388 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13389 | PyObject *resultobj; | |
13390 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13391 | size_t arg2 ; | |
13392 | bool result; | |
13393 | PyObject * obj0 = 0 ; | |
13394 | PyObject * obj1 = 0 ; | |
13395 | char *kwnames[] = { | |
13396 | (char *) "self",(char *) "n", NULL | |
13397 | }; | |
13398 | ||
13399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
13400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 13401 | { |
994141e6 | 13402 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
13403 | if (PyErr_Occurred()) SWIG_fail; |
13404 | } | |
d14a1e28 RD |
13405 | { |
13406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13407 | result = (bool)(arg1)->DeletePage(arg2); | |
13408 | ||
13409 | wxPyEndAllowThreads(__tstate); | |
13410 | if (PyErr_Occurred()) SWIG_fail; | |
13411 | } | |
4d5c3d91 | 13412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13413 | return resultobj; |
13414 | fail: | |
13415 | return NULL; | |
13416 | } | |
13417 | ||
13418 | ||
13419 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13420 | PyObject *resultobj; | |
13421 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13422 | size_t arg2 ; | |
13423 | bool result; | |
13424 | PyObject * obj0 = 0 ; | |
13425 | PyObject * obj1 = 0 ; | |
13426 | char *kwnames[] = { | |
13427 | (char *) "self",(char *) "n", NULL | |
13428 | }; | |
13429 | ||
13430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
13431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 13432 | { |
994141e6 | 13433 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
13434 | if (PyErr_Occurred()) SWIG_fail; |
13435 | } | |
d14a1e28 RD |
13436 | { |
13437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13438 | result = (bool)(arg1)->RemovePage(arg2); | |
13439 | ||
13440 | wxPyEndAllowThreads(__tstate); | |
13441 | if (PyErr_Occurred()) SWIG_fail; | |
13442 | } | |
4d5c3d91 | 13443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13444 | return resultobj; |
13445 | fail: | |
13446 | return NULL; | |
13447 | } | |
13448 | ||
13449 | ||
13450 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13451 | PyObject *resultobj; | |
13452 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13453 | bool result; | |
13454 | PyObject * obj0 = 0 ; | |
13455 | char *kwnames[] = { | |
13456 | (char *) "self", NULL | |
13457 | }; | |
13458 | ||
13459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
13460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13461 | { | |
13462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13463 | result = (bool)(arg1)->DeleteAllPages(); | |
13464 | ||
13465 | wxPyEndAllowThreads(__tstate); | |
13466 | if (PyErr_Occurred()) SWIG_fail; | |
13467 | } | |
4d5c3d91 | 13468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13469 | return resultobj; |
13470 | fail: | |
13471 | return NULL; | |
13472 | } | |
13473 | ||
13474 | ||
13475 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13476 | PyObject *resultobj; | |
13477 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13478 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13479 | wxString *arg3 = 0 ; | |
e811c8ce | 13480 | bool arg4 = (bool) False ; |
d14a1e28 RD |
13481 | int arg5 = (int) -1 ; |
13482 | bool result; | |
e811c8ce | 13483 | bool temp3 = False ; |
d14a1e28 RD |
13484 | PyObject * obj0 = 0 ; |
13485 | PyObject * obj1 = 0 ; | |
13486 | PyObject * obj2 = 0 ; | |
13487 | PyObject * obj3 = 0 ; | |
994141e6 | 13488 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13489 | char *kwnames[] = { |
13490 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13491 | }; | |
13492 | ||
994141e6 | 13493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
13494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13495 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13496 | { | |
13497 | arg3 = wxString_in_helper(obj2); | |
13498 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13499 | temp3 = True; |
d14a1e28 RD |
13500 | } |
13501 | if (obj3) { | |
a41e16b6 | 13502 | { |
994141e6 RD |
13503 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
13504 | if (PyErr_Occurred()) SWIG_fail; | |
13505 | } | |
13506 | } | |
13507 | if (obj4) { | |
13508 | { | |
13509 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
a41e16b6 RD |
13510 | if (PyErr_Occurred()) SWIG_fail; |
13511 | } | |
d14a1e28 RD |
13512 | } |
13513 | { | |
13514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13515 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
13516 | ||
13517 | wxPyEndAllowThreads(__tstate); | |
13518 | if (PyErr_Occurred()) SWIG_fail; | |
13519 | } | |
4d5c3d91 | 13520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13521 | { |
13522 | if (temp3) | |
13523 | delete arg3; | |
13524 | } | |
13525 | return resultobj; | |
13526 | fail: | |
13527 | { | |
13528 | if (temp3) | |
13529 | delete arg3; | |
13530 | } | |
13531 | return NULL; | |
13532 | } | |
13533 | ||
13534 | ||
13535 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13536 | PyObject *resultobj; | |
13537 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13538 | size_t arg2 ; | |
13539 | wxWindow *arg3 = (wxWindow *) 0 ; | |
13540 | wxString *arg4 = 0 ; | |
e811c8ce | 13541 | bool arg5 = (bool) False ; |
d14a1e28 RD |
13542 | int arg6 = (int) -1 ; |
13543 | bool result; | |
e811c8ce | 13544 | bool temp4 = False ; |
d14a1e28 RD |
13545 | PyObject * obj0 = 0 ; |
13546 | PyObject * obj1 = 0 ; | |
13547 | PyObject * obj2 = 0 ; | |
13548 | PyObject * obj3 = 0 ; | |
13549 | PyObject * obj4 = 0 ; | |
994141e6 | 13550 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13551 | char *kwnames[] = { |
13552 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13553 | }; | |
13554 | ||
994141e6 | 13555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 13556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 13557 | { |
994141e6 | 13558 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
13559 | if (PyErr_Occurred()) SWIG_fail; |
13560 | } | |
d14a1e28 RD |
13561 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13562 | { | |
13563 | arg4 = wxString_in_helper(obj3); | |
13564 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 13565 | temp4 = True; |
d14a1e28 RD |
13566 | } |
13567 | if (obj4) { | |
a41e16b6 | 13568 | { |
994141e6 RD |
13569 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
13570 | if (PyErr_Occurred()) SWIG_fail; | |
13571 | } | |
13572 | } | |
13573 | if (obj5) { | |
13574 | { | |
13575 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
a41e16b6 RD |
13576 | if (PyErr_Occurred()) SWIG_fail; |
13577 | } | |
d14a1e28 RD |
13578 | } |
13579 | { | |
13580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13581 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
13582 | ||
13583 | wxPyEndAllowThreads(__tstate); | |
13584 | if (PyErr_Occurred()) SWIG_fail; | |
13585 | } | |
4d5c3d91 | 13586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13587 | { |
13588 | if (temp4) | |
13589 | delete arg4; | |
13590 | } | |
13591 | return resultobj; | |
13592 | fail: | |
13593 | { | |
13594 | if (temp4) | |
13595 | delete arg4; | |
13596 | } | |
13597 | return NULL; | |
13598 | } | |
13599 | ||
13600 | ||
13601 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13602 | PyObject *resultobj; | |
13603 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13604 | size_t arg2 ; | |
13605 | int result; | |
13606 | PyObject * obj0 = 0 ; | |
13607 | PyObject * obj1 = 0 ; | |
13608 | char *kwnames[] = { | |
13609 | (char *) "self",(char *) "n", NULL | |
13610 | }; | |
13611 | ||
13612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
13613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 13614 | { |
994141e6 | 13615 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
13616 | if (PyErr_Occurred()) SWIG_fail; |
13617 | } | |
d14a1e28 RD |
13618 | { |
13619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13620 | result = (int)(arg1)->SetSelection(arg2); | |
13621 | ||
13622 | wxPyEndAllowThreads(__tstate); | |
13623 | if (PyErr_Occurred()) SWIG_fail; | |
13624 | } | |
994141e6 | 13625 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13626 | return resultobj; |
13627 | fail: | |
13628 | return NULL; | |
13629 | } | |
13630 | ||
13631 | ||
13632 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13633 | PyObject *resultobj; | |
13634 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
e811c8ce | 13635 | bool arg2 = (bool) True ; |
d14a1e28 RD |
13636 | PyObject * obj0 = 0 ; |
13637 | PyObject * obj1 = 0 ; | |
13638 | char *kwnames[] = { | |
13639 | (char *) "self",(char *) "forward", NULL | |
13640 | }; | |
13641 | ||
13642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
13643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13644 | if (obj1) { | |
a41e16b6 | 13645 | { |
994141e6 | 13646 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
13647 | if (PyErr_Occurred()) SWIG_fail; |
13648 | } | |
d14a1e28 RD |
13649 | } |
13650 | { | |
13651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13652 | (arg1)->AdvanceSelection(arg2); | |
13653 | ||
13654 | wxPyEndAllowThreads(__tstate); | |
13655 | if (PyErr_Occurred()) SWIG_fail; | |
13656 | } | |
13657 | Py_INCREF(Py_None); resultobj = Py_None; | |
13658 | return resultobj; | |
13659 | fail: | |
13660 | return NULL; | |
13661 | } | |
13662 | ||
13663 | ||
13664 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
13665 | PyObject *obj; | |
13666 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13667 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
13668 | Py_INCREF(obj); | |
13669 | return Py_BuildValue((char *)""); | |
13670 | } | |
13671 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13672 | PyObject *resultobj; | |
13673 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13674 | int arg2 = (int) 0 ; | |
13675 | int arg3 = (int) -1 ; | |
13676 | int arg4 = (int) -1 ; | |
13677 | wxBookCtrlEvent *result; | |
994141e6 RD |
13678 | PyObject * obj0 = 0 ; |
13679 | PyObject * obj1 = 0 ; | |
13680 | PyObject * obj2 = 0 ; | |
13681 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13682 | char *kwnames[] = { |
13683 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13684 | }; | |
13685 | ||
994141e6 RD |
13686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13687 | if (obj0) { | |
13688 | { | |
13689 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13690 | if (PyErr_Occurred()) SWIG_fail; | |
13691 | } | |
13692 | } | |
13693 | if (obj1) { | |
13694 | { | |
13695 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13696 | if (PyErr_Occurred()) SWIG_fail; | |
13697 | } | |
13698 | } | |
13699 | if (obj2) { | |
13700 | { | |
13701 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13702 | if (PyErr_Occurred()) SWIG_fail; | |
13703 | } | |
13704 | } | |
13705 | if (obj3) { | |
13706 | { | |
13707 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
13708 | if (PyErr_Occurred()) SWIG_fail; | |
13709 | } | |
13710 | } | |
d14a1e28 RD |
13711 | { |
13712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13713 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
13714 | ||
13715 | wxPyEndAllowThreads(__tstate); | |
13716 | if (PyErr_Occurred()) SWIG_fail; | |
13717 | } | |
13718 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlEvent, 1); | |
13719 | return resultobj; | |
13720 | fail: | |
13721 | return NULL; | |
13722 | } | |
13723 | ||
13724 | ||
13725 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13726 | PyObject *resultobj; | |
13727 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13728 | int result; | |
13729 | PyObject * obj0 = 0 ; | |
13730 | char *kwnames[] = { | |
13731 | (char *) "self", NULL | |
13732 | }; | |
13733 | ||
13734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
13735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13736 | { | |
13737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13738 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
13739 | ||
13740 | wxPyEndAllowThreads(__tstate); | |
13741 | if (PyErr_Occurred()) SWIG_fail; | |
13742 | } | |
994141e6 | 13743 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13744 | return resultobj; |
13745 | fail: | |
13746 | return NULL; | |
13747 | } | |
13748 | ||
13749 | ||
13750 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13751 | PyObject *resultobj; | |
13752 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13753 | int arg2 ; | |
13754 | PyObject * obj0 = 0 ; | |
994141e6 | 13755 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13756 | char *kwnames[] = { |
13757 | (char *) "self",(char *) "nSel", NULL | |
13758 | }; | |
13759 | ||
994141e6 | 13760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13762 | { |
13763 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13764 | if (PyErr_Occurred()) SWIG_fail; | |
13765 | } | |
d14a1e28 RD |
13766 | { |
13767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13768 | (arg1)->SetSelection(arg2); | |
13769 | ||
13770 | wxPyEndAllowThreads(__tstate); | |
13771 | if (PyErr_Occurred()) SWIG_fail; | |
13772 | } | |
13773 | Py_INCREF(Py_None); resultobj = Py_None; | |
13774 | return resultobj; | |
13775 | fail: | |
13776 | return NULL; | |
13777 | } | |
13778 | ||
13779 | ||
13780 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13781 | PyObject *resultobj; | |
13782 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13783 | int result; | |
13784 | PyObject * obj0 = 0 ; | |
13785 | char *kwnames[] = { | |
13786 | (char *) "self", NULL | |
13787 | }; | |
13788 | ||
13789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
13790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13791 | { | |
13792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13793 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
13794 | ||
13795 | wxPyEndAllowThreads(__tstate); | |
13796 | if (PyErr_Occurred()) SWIG_fail; | |
13797 | } | |
994141e6 | 13798 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13799 | return resultobj; |
13800 | fail: | |
13801 | return NULL; | |
13802 | } | |
13803 | ||
13804 | ||
13805 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13806 | PyObject *resultobj; | |
13807 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13808 | int arg2 ; | |
13809 | PyObject * obj0 = 0 ; | |
994141e6 | 13810 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13811 | char *kwnames[] = { |
13812 | (char *) "self",(char *) "nOldSel", NULL | |
13813 | }; | |
13814 | ||
994141e6 | 13815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13817 | { |
13818 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13819 | if (PyErr_Occurred()) SWIG_fail; | |
13820 | } | |
d14a1e28 RD |
13821 | { |
13822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13823 | (arg1)->SetOldSelection(arg2); | |
13824 | ||
13825 | wxPyEndAllowThreads(__tstate); | |
13826 | if (PyErr_Occurred()) SWIG_fail; | |
13827 | } | |
13828 | Py_INCREF(Py_None); resultobj = Py_None; | |
13829 | return resultobj; | |
13830 | fail: | |
13831 | return NULL; | |
13832 | } | |
13833 | ||
13834 | ||
13835 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
13836 | PyObject *obj; | |
13837 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13838 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
13839 | Py_INCREF(obj); | |
13840 | return Py_BuildValue((char *)""); | |
13841 | } | |
13842 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13843 | PyObject *resultobj; | |
13844 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 13845 | int arg2 ; |
d14a1e28 RD |
13846 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
13847 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13848 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13849 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13850 | long arg5 = (long) 0 ; | |
13851 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
13852 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13853 | wxNotebook *result; | |
13854 | wxPoint temp3 ; | |
13855 | wxSize temp4 ; | |
e811c8ce | 13856 | bool temp6 = False ; |
d14a1e28 | 13857 | PyObject * obj0 = 0 ; |
994141e6 | 13858 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13859 | PyObject * obj2 = 0 ; |
13860 | PyObject * obj3 = 0 ; | |
994141e6 | 13861 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13862 | PyObject * obj5 = 0 ; |
13863 | char *kwnames[] = { | |
13864 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13865 | }; | |
13866 | ||
994141e6 | 13867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 13868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13869 | { |
13870 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13871 | if (PyErr_Occurred()) SWIG_fail; | |
13872 | } | |
d14a1e28 RD |
13873 | if (obj2) { |
13874 | { | |
13875 | arg3 = &temp3; | |
13876 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13877 | } | |
13878 | } | |
13879 | if (obj3) { | |
13880 | { | |
13881 | arg4 = &temp4; | |
13882 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
13883 | } | |
13884 | } | |
994141e6 RD |
13885 | if (obj4) { |
13886 | { | |
13887 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
13888 | if (PyErr_Occurred()) SWIG_fail; | |
13889 | } | |
13890 | } | |
d14a1e28 RD |
13891 | if (obj5) { |
13892 | { | |
13893 | arg6 = wxString_in_helper(obj5); | |
13894 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 13895 | temp6 = True; |
d14a1e28 RD |
13896 | } |
13897 | } | |
13898 | { | |
13899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13900 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
13901 | ||
13902 | wxPyEndAllowThreads(__tstate); | |
13903 | if (PyErr_Occurred()) SWIG_fail; | |
13904 | } | |
13905 | { | |
13906 | resultobj = wxPyMake_wxObject(result); | |
13907 | } | |
13908 | { | |
13909 | if (temp6) | |
13910 | delete arg6; | |
13911 | } | |
13912 | return resultobj; | |
13913 | fail: | |
13914 | { | |
13915 | if (temp6) | |
13916 | delete arg6; | |
13917 | } | |
13918 | return NULL; | |
13919 | } | |
13920 | ||
13921 | ||
13922 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13923 | PyObject *resultobj; | |
13924 | wxNotebook *result; | |
13925 | char *kwnames[] = { | |
13926 | NULL | |
13927 | }; | |
13928 | ||
13929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
13930 | { | |
13931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13932 | result = (wxNotebook *)new wxNotebook(); | |
13933 | ||
13934 | wxPyEndAllowThreads(__tstate); | |
13935 | if (PyErr_Occurred()) SWIG_fail; | |
13936 | } | |
13937 | { | |
13938 | resultobj = wxPyMake_wxObject(result); | |
13939 | } | |
13940 | return resultobj; | |
13941 | fail: | |
13942 | return NULL; | |
13943 | } | |
13944 | ||
13945 | ||
13946 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13947 | PyObject *resultobj; | |
13948 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13949 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 13950 | int arg3 ; |
d14a1e28 RD |
13951 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13952 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13953 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13954 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13955 | long arg6 = (long) 0 ; | |
13956 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
13957 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13958 | bool result; | |
13959 | wxPoint temp4 ; | |
13960 | wxSize temp5 ; | |
e811c8ce | 13961 | bool temp7 = False ; |
d14a1e28 RD |
13962 | PyObject * obj0 = 0 ; |
13963 | PyObject * obj1 = 0 ; | |
994141e6 | 13964 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13965 | PyObject * obj3 = 0 ; |
13966 | PyObject * obj4 = 0 ; | |
994141e6 | 13967 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13968 | PyObject * obj6 = 0 ; |
13969 | char *kwnames[] = { | |
13970 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13971 | }; | |
13972 | ||
994141e6 | 13973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
13974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13975 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
13976 | { |
13977 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13978 | if (PyErr_Occurred()) SWIG_fail; | |
13979 | } | |
d14a1e28 RD |
13980 | if (obj3) { |
13981 | { | |
13982 | arg4 = &temp4; | |
13983 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13984 | } | |
13985 | } | |
13986 | if (obj4) { | |
13987 | { | |
13988 | arg5 = &temp5; | |
13989 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13990 | } | |
13991 | } | |
994141e6 RD |
13992 | if (obj5) { |
13993 | { | |
13994 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
13995 | if (PyErr_Occurred()) SWIG_fail; | |
13996 | } | |
13997 | } | |
d14a1e28 RD |
13998 | if (obj6) { |
13999 | { | |
14000 | arg7 = wxString_in_helper(obj6); | |
14001 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 14002 | temp7 = True; |
d14a1e28 RD |
14003 | } |
14004 | } | |
14005 | { | |
14006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14007 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14008 | ||
14009 | wxPyEndAllowThreads(__tstate); | |
14010 | if (PyErr_Occurred()) SWIG_fail; | |
14011 | } | |
4d5c3d91 | 14012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14013 | { |
14014 | if (temp7) | |
14015 | delete arg7; | |
14016 | } | |
14017 | return resultobj; | |
14018 | fail: | |
14019 | { | |
14020 | if (temp7) | |
14021 | delete arg7; | |
14022 | } | |
14023 | return NULL; | |
14024 | } | |
14025 | ||
14026 | ||
14027 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14028 | PyObject *resultobj; | |
14029 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14030 | int result; | |
14031 | PyObject * obj0 = 0 ; | |
14032 | char *kwnames[] = { | |
14033 | (char *) "self", NULL | |
14034 | }; | |
14035 | ||
14036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
14037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14038 | { | |
14039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14040 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
14041 | ||
14042 | wxPyEndAllowThreads(__tstate); | |
14043 | if (PyErr_Occurred()) SWIG_fail; | |
14044 | } | |
994141e6 | 14045 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14046 | return resultobj; |
14047 | fail: | |
14048 | return NULL; | |
14049 | } | |
14050 | ||
14051 | ||
14052 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14053 | PyObject *resultobj; | |
14054 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14055 | wxSize *arg2 = 0 ; | |
14056 | wxSize temp2 ; | |
14057 | PyObject * obj0 = 0 ; | |
14058 | PyObject * obj1 = 0 ; | |
14059 | char *kwnames[] = { | |
14060 | (char *) "self",(char *) "padding", NULL | |
14061 | }; | |
14062 | ||
14063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
14064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14065 | { | |
14066 | arg2 = &temp2; | |
14067 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14068 | } | |
14069 | { | |
14070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14071 | (arg1)->SetPadding((wxSize const &)*arg2); | |
14072 | ||
14073 | wxPyEndAllowThreads(__tstate); | |
14074 | if (PyErr_Occurred()) SWIG_fail; | |
14075 | } | |
14076 | Py_INCREF(Py_None); resultobj = Py_None; | |
14077 | return resultobj; | |
14078 | fail: | |
14079 | return NULL; | |
14080 | } | |
14081 | ||
14082 | ||
14083 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14084 | PyObject *resultobj; | |
14085 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14086 | wxSize *arg2 = 0 ; | |
14087 | wxSize temp2 ; | |
14088 | PyObject * obj0 = 0 ; | |
14089 | PyObject * obj1 = 0 ; | |
14090 | char *kwnames[] = { | |
14091 | (char *) "self",(char *) "sz", NULL | |
14092 | }; | |
14093 | ||
14094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
14095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14096 | { | |
14097 | arg2 = &temp2; | |
14098 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14099 | } | |
14100 | { | |
14101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14102 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
14103 | ||
14104 | wxPyEndAllowThreads(__tstate); | |
14105 | if (PyErr_Occurred()) SWIG_fail; | |
14106 | } | |
14107 | Py_INCREF(Py_None); resultobj = Py_None; | |
14108 | return resultobj; | |
14109 | fail: | |
14110 | return NULL; | |
14111 | } | |
14112 | ||
14113 | ||
14114 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14115 | PyObject *resultobj; | |
14116 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14117 | wxPoint *arg2 = 0 ; | |
14118 | long *arg3 = (long *) 0 ; | |
14119 | int result; | |
14120 | wxPoint temp2 ; | |
14121 | long temp3 ; | |
14122 | PyObject * obj0 = 0 ; | |
14123 | PyObject * obj1 = 0 ; | |
14124 | char *kwnames[] = { | |
14125 | (char *) "self",(char *) "pt", NULL | |
14126 | }; | |
14127 | ||
14128 | arg3 = &temp3; | |
14129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
14130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14131 | { | |
14132 | arg2 = &temp2; | |
14133 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14134 | } | |
14135 | { | |
14136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14137 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
14138 | ||
14139 | wxPyEndAllowThreads(__tstate); | |
14140 | if (PyErr_Occurred()) SWIG_fail; | |
14141 | } | |
994141e6 | 14142 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14143 | { |
14144 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14145 | resultobj = t_output_helper(resultobj,o); | |
14146 | } | |
14147 | return resultobj; | |
14148 | fail: | |
14149 | return NULL; | |
14150 | } | |
14151 | ||
14152 | ||
14153 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14154 | PyObject *resultobj; | |
14155 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14156 | wxSize *arg2 = 0 ; | |
14157 | wxSize result; | |
14158 | wxSize temp2 ; | |
14159 | PyObject * obj0 = 0 ; | |
14160 | PyObject * obj1 = 0 ; | |
14161 | char *kwnames[] = { | |
14162 | (char *) "self",(char *) "sizePage", NULL | |
14163 | }; | |
14164 | ||
14165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
14166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14167 | { | |
14168 | arg2 = &temp2; | |
14169 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14170 | } | |
14171 | { | |
14172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14173 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14174 | ||
14175 | wxPyEndAllowThreads(__tstate); | |
14176 | if (PyErr_Occurred()) SWIG_fail; | |
14177 | } | |
14178 | { | |
14179 | wxSize * resultptr; | |
14180 | resultptr = new wxSize((wxSize &) result); | |
14181 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14182 | } | |
14183 | return resultobj; | |
14184 | fail: | |
14185 | return NULL; | |
14186 | } | |
14187 | ||
14188 | ||
14189 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
14190 | PyObject *obj; | |
14191 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14192 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
14193 | Py_INCREF(obj); | |
14194 | return Py_BuildValue((char *)""); | |
14195 | } | |
14196 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14197 | PyObject *resultobj; | |
14198 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14199 | int arg2 = (int) 0 ; | |
14200 | int arg3 = (int) -1 ; | |
14201 | int arg4 = (int) -1 ; | |
14202 | wxNotebookEvent *result; | |
994141e6 RD |
14203 | PyObject * obj0 = 0 ; |
14204 | PyObject * obj1 = 0 ; | |
14205 | PyObject * obj2 = 0 ; | |
14206 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14207 | char *kwnames[] = { |
14208 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14209 | }; | |
14210 | ||
994141e6 RD |
14211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14212 | if (obj0) { | |
14213 | { | |
14214 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
14215 | if (PyErr_Occurred()) SWIG_fail; | |
14216 | } | |
14217 | } | |
14218 | if (obj1) { | |
14219 | { | |
14220 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14221 | if (PyErr_Occurred()) SWIG_fail; | |
14222 | } | |
14223 | } | |
14224 | if (obj2) { | |
14225 | { | |
14226 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14227 | if (PyErr_Occurred()) SWIG_fail; | |
14228 | } | |
14229 | } | |
14230 | if (obj3) { | |
14231 | { | |
14232 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14233 | if (PyErr_Occurred()) SWIG_fail; | |
14234 | } | |
14235 | } | |
d14a1e28 RD |
14236 | { |
14237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14238 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
14239 | ||
14240 | wxPyEndAllowThreads(__tstate); | |
14241 | if (PyErr_Occurred()) SWIG_fail; | |
14242 | } | |
14243 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookEvent, 1); | |
14244 | return resultobj; | |
14245 | fail: | |
14246 | return NULL; | |
14247 | } | |
14248 | ||
14249 | ||
14250 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
14251 | PyObject *obj; | |
14252 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14253 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
14254 | Py_INCREF(obj); | |
14255 | return Py_BuildValue((char *)""); | |
14256 | } | |
14257 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14258 | PyObject *resultobj; | |
14259 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 14260 | int arg2 ; |
d14a1e28 RD |
14261 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14262 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14263 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14264 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14265 | long arg5 = (long) 0 ; | |
14266 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
14267 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14268 | wxListbook *result; | |
14269 | wxPoint temp3 ; | |
14270 | wxSize temp4 ; | |
e811c8ce | 14271 | bool temp6 = False ; |
d14a1e28 | 14272 | PyObject * obj0 = 0 ; |
994141e6 | 14273 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14274 | PyObject * obj2 = 0 ; |
14275 | PyObject * obj3 = 0 ; | |
994141e6 | 14276 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14277 | PyObject * obj5 = 0 ; |
14278 | char *kwnames[] = { | |
14279 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14280 | }; | |
14281 | ||
994141e6 | 14282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 14283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14284 | { |
14285 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14286 | if (PyErr_Occurred()) SWIG_fail; | |
14287 | } | |
d14a1e28 RD |
14288 | if (obj2) { |
14289 | { | |
14290 | arg3 = &temp3; | |
14291 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14292 | } | |
14293 | } | |
14294 | if (obj3) { | |
14295 | { | |
14296 | arg4 = &temp4; | |
14297 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14298 | } | |
14299 | } | |
994141e6 RD |
14300 | if (obj4) { |
14301 | { | |
14302 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
14303 | if (PyErr_Occurred()) SWIG_fail; | |
14304 | } | |
14305 | } | |
d14a1e28 RD |
14306 | if (obj5) { |
14307 | { | |
14308 | arg6 = wxString_in_helper(obj5); | |
14309 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 14310 | temp6 = True; |
d14a1e28 RD |
14311 | } |
14312 | } | |
14313 | { | |
14314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14315 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14316 | ||
14317 | wxPyEndAllowThreads(__tstate); | |
14318 | if (PyErr_Occurred()) SWIG_fail; | |
14319 | } | |
14320 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
14321 | { | |
14322 | if (temp6) | |
14323 | delete arg6; | |
14324 | } | |
14325 | return resultobj; | |
14326 | fail: | |
14327 | { | |
14328 | if (temp6) | |
14329 | delete arg6; | |
14330 | } | |
14331 | return NULL; | |
14332 | } | |
14333 | ||
14334 | ||
14335 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14336 | PyObject *resultobj; | |
14337 | wxListbook *result; | |
14338 | char *kwnames[] = { | |
14339 | NULL | |
14340 | }; | |
14341 | ||
14342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
14343 | { | |
14344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14345 | result = (wxListbook *)new wxListbook(); | |
14346 | ||
14347 | wxPyEndAllowThreads(__tstate); | |
14348 | if (PyErr_Occurred()) SWIG_fail; | |
14349 | } | |
14350 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
14351 | return resultobj; | |
14352 | fail: | |
14353 | return NULL; | |
14354 | } | |
14355 | ||
14356 | ||
14357 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14358 | PyObject *resultobj; | |
14359 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14360 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 14361 | int arg3 ; |
d14a1e28 RD |
14362 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14363 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14364 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14365 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14366 | long arg6 = (long) 0 ; | |
14367 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
14368 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14369 | bool result; | |
14370 | wxPoint temp4 ; | |
14371 | wxSize temp5 ; | |
e811c8ce | 14372 | bool temp7 = False ; |
d14a1e28 RD |
14373 | PyObject * obj0 = 0 ; |
14374 | PyObject * obj1 = 0 ; | |
994141e6 | 14375 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14376 | PyObject * obj3 = 0 ; |
14377 | PyObject * obj4 = 0 ; | |
994141e6 | 14378 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14379 | PyObject * obj6 = 0 ; |
14380 | char *kwnames[] = { | |
14381 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14382 | }; | |
14383 | ||
994141e6 | 14384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
14385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14386 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
14387 | { |
14388 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14389 | if (PyErr_Occurred()) SWIG_fail; | |
14390 | } | |
d14a1e28 RD |
14391 | if (obj3) { |
14392 | { | |
14393 | arg4 = &temp4; | |
14394 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14395 | } | |
14396 | } | |
14397 | if (obj4) { | |
14398 | { | |
14399 | arg5 = &temp5; | |
14400 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14401 | } | |
14402 | } | |
994141e6 RD |
14403 | if (obj5) { |
14404 | { | |
14405 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
14406 | if (PyErr_Occurred()) SWIG_fail; | |
14407 | } | |
14408 | } | |
d14a1e28 RD |
14409 | if (obj6) { |
14410 | { | |
14411 | arg7 = wxString_in_helper(obj6); | |
14412 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 14413 | temp7 = True; |
d14a1e28 RD |
14414 | } |
14415 | } | |
14416 | { | |
14417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14418 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14419 | ||
14420 | wxPyEndAllowThreads(__tstate); | |
14421 | if (PyErr_Occurred()) SWIG_fail; | |
14422 | } | |
4d5c3d91 | 14423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14424 | { |
14425 | if (temp7) | |
14426 | delete arg7; | |
14427 | } | |
14428 | return resultobj; | |
14429 | fail: | |
14430 | { | |
14431 | if (temp7) | |
14432 | delete arg7; | |
14433 | } | |
14434 | return NULL; | |
14435 | } | |
14436 | ||
14437 | ||
14438 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14439 | PyObject *resultobj; | |
14440 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14441 | bool result; | |
14442 | PyObject * obj0 = 0 ; | |
14443 | char *kwnames[] = { | |
14444 | (char *) "self", NULL | |
14445 | }; | |
14446 | ||
14447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
14448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14449 | { | |
14450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14451 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
14452 | ||
14453 | wxPyEndAllowThreads(__tstate); | |
14454 | if (PyErr_Occurred()) SWIG_fail; | |
14455 | } | |
4d5c3d91 | 14456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14457 | return resultobj; |
14458 | fail: | |
14459 | return NULL; | |
14460 | } | |
14461 | ||
14462 | ||
14463 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
14464 | PyObject *obj; | |
14465 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14466 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
14467 | Py_INCREF(obj); | |
14468 | return Py_BuildValue((char *)""); | |
14469 | } | |
14470 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14471 | PyObject *resultobj; | |
14472 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14473 | int arg2 = (int) 0 ; | |
14474 | int arg3 = (int) -1 ; | |
14475 | int arg4 = (int) -1 ; | |
14476 | wxListbookEvent *result; | |
994141e6 RD |
14477 | PyObject * obj0 = 0 ; |
14478 | PyObject * obj1 = 0 ; | |
14479 | PyObject * obj2 = 0 ; | |
14480 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14481 | char *kwnames[] = { |
14482 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14483 | }; | |
14484 | ||
994141e6 RD |
14485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14486 | if (obj0) { | |
14487 | { | |
14488 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
14489 | if (PyErr_Occurred()) SWIG_fail; | |
14490 | } | |
14491 | } | |
14492 | if (obj1) { | |
14493 | { | |
14494 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14495 | if (PyErr_Occurred()) SWIG_fail; | |
14496 | } | |
14497 | } | |
14498 | if (obj2) { | |
14499 | { | |
14500 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14501 | if (PyErr_Occurred()) SWIG_fail; | |
14502 | } | |
14503 | } | |
14504 | if (obj3) { | |
14505 | { | |
14506 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14507 | if (PyErr_Occurred()) SWIG_fail; | |
14508 | } | |
14509 | } | |
d14a1e28 RD |
14510 | { |
14511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14512 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
14513 | ||
14514 | wxPyEndAllowThreads(__tstate); | |
14515 | if (PyErr_Occurred()) SWIG_fail; | |
14516 | } | |
14517 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbookEvent, 1); | |
14518 | return resultobj; | |
14519 | fail: | |
14520 | return NULL; | |
14521 | } | |
14522 | ||
14523 | ||
14524 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
14525 | PyObject *obj; | |
14526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14527 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
14528 | Py_INCREF(obj); | |
14529 | return Py_BuildValue((char *)""); | |
14530 | } | |
14531 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14532 | PyObject *resultobj; | |
14533 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14534 | wxBookCtrlSizer *result; | |
14535 | PyObject * obj0 = 0 ; | |
14536 | char *kwnames[] = { | |
14537 | (char *) "nb", NULL | |
14538 | }; | |
14539 | ||
14540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
14541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14542 | { | |
14543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14544 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
14545 | ||
14546 | wxPyEndAllowThreads(__tstate); | |
14547 | if (PyErr_Occurred()) SWIG_fail; | |
14548 | } | |
14549 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlSizer, 1); | |
14550 | return resultobj; | |
14551 | fail: | |
14552 | return NULL; | |
14553 | } | |
14554 | ||
14555 | ||
14556 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14557 | PyObject *resultobj; | |
14558 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14559 | PyObject * obj0 = 0 ; | |
14560 | char *kwnames[] = { | |
14561 | (char *) "self", NULL | |
14562 | }; | |
14563 | ||
14564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14566 | { | |
14567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14568 | (arg1)->RecalcSizes(); | |
14569 | ||
14570 | wxPyEndAllowThreads(__tstate); | |
14571 | if (PyErr_Occurred()) SWIG_fail; | |
14572 | } | |
14573 | Py_INCREF(Py_None); resultobj = Py_None; | |
14574 | return resultobj; | |
14575 | fail: | |
14576 | return NULL; | |
14577 | } | |
14578 | ||
14579 | ||
14580 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14581 | PyObject *resultobj; | |
14582 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14583 | wxSize result; | |
14584 | PyObject * obj0 = 0 ; | |
14585 | char *kwnames[] = { | |
14586 | (char *) "self", NULL | |
14587 | }; | |
14588 | ||
14589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14591 | { | |
14592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14593 | result = (arg1)->CalcMin(); | |
14594 | ||
14595 | wxPyEndAllowThreads(__tstate); | |
14596 | if (PyErr_Occurred()) SWIG_fail; | |
14597 | } | |
14598 | { | |
14599 | wxSize * resultptr; | |
14600 | resultptr = new wxSize((wxSize &) result); | |
14601 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14602 | } | |
14603 | return resultobj; | |
14604 | fail: | |
14605 | return NULL; | |
14606 | } | |
14607 | ||
14608 | ||
14609 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14610 | PyObject *resultobj; | |
14611 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14612 | wxBookCtrl *result; | |
14613 | PyObject * obj0 = 0 ; | |
14614 | char *kwnames[] = { | |
14615 | (char *) "self", NULL | |
14616 | }; | |
14617 | ||
14618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
14619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14620 | { | |
14621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14622 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
14623 | ||
14624 | wxPyEndAllowThreads(__tstate); | |
14625 | if (PyErr_Occurred()) SWIG_fail; | |
14626 | } | |
14627 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrl, 0); | |
14628 | return resultobj; | |
14629 | fail: | |
14630 | return NULL; | |
14631 | } | |
14632 | ||
14633 | ||
14634 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
14635 | PyObject *obj; | |
14636 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14637 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
14638 | Py_INCREF(obj); | |
14639 | return Py_BuildValue((char *)""); | |
14640 | } | |
14641 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14642 | PyObject *resultobj; | |
14643 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14644 | wxNotebookSizer *result; | |
14645 | PyObject * obj0 = 0 ; | |
14646 | char *kwnames[] = { | |
14647 | (char *) "nb", NULL | |
14648 | }; | |
14649 | ||
14650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
14651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14652 | { | |
14653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14654 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
14655 | ||
14656 | wxPyEndAllowThreads(__tstate); | |
14657 | if (PyErr_Occurred()) SWIG_fail; | |
14658 | } | |
14659 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookSizer, 1); | |
14660 | return resultobj; | |
14661 | fail: | |
14662 | return NULL; | |
14663 | } | |
14664 | ||
14665 | ||
14666 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14667 | PyObject *resultobj; | |
14668 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14669 | PyObject * obj0 = 0 ; | |
14670 | char *kwnames[] = { | |
14671 | (char *) "self", NULL | |
14672 | }; | |
14673 | ||
14674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14676 | { | |
14677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14678 | (arg1)->RecalcSizes(); | |
14679 | ||
14680 | wxPyEndAllowThreads(__tstate); | |
14681 | if (PyErr_Occurred()) SWIG_fail; | |
14682 | } | |
14683 | Py_INCREF(Py_None); resultobj = Py_None; | |
14684 | return resultobj; | |
14685 | fail: | |
14686 | return NULL; | |
14687 | } | |
14688 | ||
14689 | ||
14690 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14691 | PyObject *resultobj; | |
14692 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14693 | wxSize result; | |
14694 | PyObject * obj0 = 0 ; | |
14695 | char *kwnames[] = { | |
14696 | (char *) "self", NULL | |
14697 | }; | |
14698 | ||
14699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14701 | { | |
14702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14703 | result = (arg1)->CalcMin(); | |
14704 | ||
14705 | wxPyEndAllowThreads(__tstate); | |
14706 | if (PyErr_Occurred()) SWIG_fail; | |
14707 | } | |
14708 | { | |
14709 | wxSize * resultptr; | |
14710 | resultptr = new wxSize((wxSize &) result); | |
14711 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14712 | } | |
14713 | return resultobj; | |
14714 | fail: | |
14715 | return NULL; | |
14716 | } | |
14717 | ||
14718 | ||
14719 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14720 | PyObject *resultobj; | |
14721 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14722 | wxNotebook *result; | |
14723 | PyObject * obj0 = 0 ; | |
14724 | char *kwnames[] = { | |
14725 | (char *) "self", NULL | |
14726 | }; | |
14727 | ||
14728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
14729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14730 | { | |
14731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14732 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
14733 | ||
14734 | wxPyEndAllowThreads(__tstate); | |
14735 | if (PyErr_Occurred()) SWIG_fail; | |
14736 | } | |
14737 | { | |
14738 | resultobj = wxPyMake_wxObject(result); | |
14739 | } | |
14740 | return resultobj; | |
14741 | fail: | |
14742 | return NULL; | |
14743 | } | |
14744 | ||
14745 | ||
14746 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
14747 | PyObject *obj; | |
14748 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14749 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
14750 | Py_INCREF(obj); | |
14751 | return Py_BuildValue((char *)""); | |
14752 | } | |
14753 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14754 | PyObject *resultobj; | |
14755 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14756 | int result; | |
14757 | PyObject * obj0 = 0 ; | |
14758 | char *kwnames[] = { | |
14759 | (char *) "self", NULL | |
14760 | }; | |
14761 | ||
14762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
14763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14764 | { | |
14765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14766 | result = (int)(arg1)->GetId(); | |
14767 | ||
14768 | wxPyEndAllowThreads(__tstate); | |
14769 | if (PyErr_Occurred()) SWIG_fail; | |
14770 | } | |
994141e6 | 14771 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14772 | return resultobj; |
14773 | fail: | |
14774 | return NULL; | |
14775 | } | |
14776 | ||
14777 | ||
14778 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14779 | PyObject *resultobj; | |
14780 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14781 | wxControl *result; | |
14782 | PyObject * obj0 = 0 ; | |
14783 | char *kwnames[] = { | |
14784 | (char *) "self", NULL | |
14785 | }; | |
14786 | ||
14787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
14788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14789 | { | |
14790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14791 | result = (wxControl *)(arg1)->GetControl(); | |
14792 | ||
14793 | wxPyEndAllowThreads(__tstate); | |
14794 | if (PyErr_Occurred()) SWIG_fail; | |
14795 | } | |
14796 | { | |
14797 | resultobj = wxPyMake_wxObject(result); | |
14798 | } | |
14799 | return resultobj; | |
14800 | fail: | |
14801 | return NULL; | |
14802 | } | |
14803 | ||
14804 | ||
14805 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14806 | PyObject *resultobj; | |
14807 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14808 | wxToolBarBase *result; | |
14809 | PyObject * obj0 = 0 ; | |
14810 | char *kwnames[] = { | |
14811 | (char *) "self", NULL | |
14812 | }; | |
14813 | ||
14814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
14815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14816 | { | |
14817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14818 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
14819 | ||
14820 | wxPyEndAllowThreads(__tstate); | |
14821 | if (PyErr_Occurred()) SWIG_fail; | |
14822 | } | |
14823 | { | |
14824 | resultobj = wxPyMake_wxObject(result); | |
14825 | } | |
14826 | return resultobj; | |
14827 | fail: | |
14828 | return NULL; | |
14829 | } | |
14830 | ||
14831 | ||
14832 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14833 | PyObject *resultobj; | |
14834 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14835 | int result; | |
14836 | PyObject * obj0 = 0 ; | |
14837 | char *kwnames[] = { | |
14838 | (char *) "self", NULL | |
14839 | }; | |
14840 | ||
14841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
14842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14843 | { | |
14844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14845 | result = (int)(arg1)->IsButton(); | |
14846 | ||
14847 | wxPyEndAllowThreads(__tstate); | |
14848 | if (PyErr_Occurred()) SWIG_fail; | |
14849 | } | |
994141e6 | 14850 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14851 | return resultobj; |
14852 | fail: | |
14853 | return NULL; | |
14854 | } | |
14855 | ||
14856 | ||
14857 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14858 | PyObject *resultobj; | |
14859 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14860 | int result; | |
14861 | PyObject * obj0 = 0 ; | |
14862 | char *kwnames[] = { | |
14863 | (char *) "self", NULL | |
14864 | }; | |
14865 | ||
14866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
14867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14868 | { | |
14869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14870 | result = (int)(arg1)->IsControl(); | |
14871 | ||
14872 | wxPyEndAllowThreads(__tstate); | |
14873 | if (PyErr_Occurred()) SWIG_fail; | |
14874 | } | |
994141e6 | 14875 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14876 | return resultobj; |
14877 | fail: | |
14878 | return NULL; | |
14879 | } | |
14880 | ||
14881 | ||
14882 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14883 | PyObject *resultobj; | |
14884 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14885 | int result; | |
14886 | PyObject * obj0 = 0 ; | |
14887 | char *kwnames[] = { | |
14888 | (char *) "self", NULL | |
14889 | }; | |
14890 | ||
14891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
14892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14893 | { | |
14894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14895 | result = (int)(arg1)->IsSeparator(); | |
14896 | ||
14897 | wxPyEndAllowThreads(__tstate); | |
14898 | if (PyErr_Occurred()) SWIG_fail; | |
14899 | } | |
994141e6 | 14900 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14901 | return resultobj; |
14902 | fail: | |
14903 | return NULL; | |
14904 | } | |
14905 | ||
14906 | ||
14907 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14908 | PyObject *resultobj; | |
14909 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14910 | int result; | |
14911 | PyObject * obj0 = 0 ; | |
14912 | char *kwnames[] = { | |
14913 | (char *) "self", NULL | |
14914 | }; | |
14915 | ||
14916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
14917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14918 | { | |
14919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14920 | result = (int)(arg1)->GetStyle(); | |
14921 | ||
14922 | wxPyEndAllowThreads(__tstate); | |
14923 | if (PyErr_Occurred()) SWIG_fail; | |
14924 | } | |
994141e6 | 14925 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14926 | return resultobj; |
14927 | fail: | |
14928 | return NULL; | |
14929 | } | |
14930 | ||
14931 | ||
14932 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14933 | PyObject *resultobj; | |
14934 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14935 | int result; | |
14936 | PyObject * obj0 = 0 ; | |
14937 | char *kwnames[] = { | |
14938 | (char *) "self", NULL | |
14939 | }; | |
14940 | ||
14941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
14942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14943 | { | |
14944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14945 | result = (int)(arg1)->GetKind(); | |
14946 | ||
14947 | wxPyEndAllowThreads(__tstate); | |
14948 | if (PyErr_Occurred()) SWIG_fail; | |
14949 | } | |
994141e6 | 14950 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14951 | return resultobj; |
14952 | fail: | |
14953 | return NULL; | |
14954 | } | |
14955 | ||
14956 | ||
14957 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14958 | PyObject *resultobj; | |
14959 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14960 | bool result; | |
14961 | PyObject * obj0 = 0 ; | |
14962 | char *kwnames[] = { | |
14963 | (char *) "self", NULL | |
14964 | }; | |
14965 | ||
14966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
14967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14968 | { | |
14969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14970 | result = (bool)(arg1)->IsEnabled(); | |
14971 | ||
14972 | wxPyEndAllowThreads(__tstate); | |
14973 | if (PyErr_Occurred()) SWIG_fail; | |
14974 | } | |
4d5c3d91 | 14975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14976 | return resultobj; |
14977 | fail: | |
14978 | return NULL; | |
14979 | } | |
14980 | ||
14981 | ||
14982 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14983 | PyObject *resultobj; | |
14984 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14985 | bool result; | |
14986 | PyObject * obj0 = 0 ; | |
14987 | char *kwnames[] = { | |
14988 | (char *) "self", NULL | |
14989 | }; | |
14990 | ||
14991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
14992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14993 | { | |
14994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14995 | result = (bool)(arg1)->IsToggled(); | |
14996 | ||
14997 | wxPyEndAllowThreads(__tstate); | |
14998 | if (PyErr_Occurred()) SWIG_fail; | |
14999 | } | |
4d5c3d91 | 15000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15001 | return resultobj; |
15002 | fail: | |
15003 | return NULL; | |
15004 | } | |
15005 | ||
15006 | ||
15007 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15008 | PyObject *resultobj; | |
15009 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15010 | bool result; | |
15011 | PyObject * obj0 = 0 ; | |
15012 | char *kwnames[] = { | |
15013 | (char *) "self", NULL | |
15014 | }; | |
15015 | ||
15016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
15017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15018 | { | |
15019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15020 | result = (bool)(arg1)->CanBeToggled(); | |
15021 | ||
15022 | wxPyEndAllowThreads(__tstate); | |
15023 | if (PyErr_Occurred()) SWIG_fail; | |
15024 | } | |
4d5c3d91 | 15025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15026 | return resultobj; |
15027 | fail: | |
15028 | return NULL; | |
15029 | } | |
15030 | ||
15031 | ||
15032 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15033 | PyObject *resultobj; | |
15034 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15035 | wxBitmap *result; | |
15036 | PyObject * obj0 = 0 ; | |
15037 | char *kwnames[] = { | |
15038 | (char *) "self", NULL | |
15039 | }; | |
15040 | ||
15041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
15042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15043 | { | |
15044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15045 | { | |
15046 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
15047 | result = (wxBitmap *) &_result_ref; | |
15048 | } | |
15049 | ||
15050 | wxPyEndAllowThreads(__tstate); | |
15051 | if (PyErr_Occurred()) SWIG_fail; | |
15052 | } | |
15053 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
15054 | return resultobj; | |
15055 | fail: | |
15056 | return NULL; | |
15057 | } | |
15058 | ||
15059 | ||
15060 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15061 | PyObject *resultobj; | |
15062 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15063 | wxBitmap *result; | |
15064 | PyObject * obj0 = 0 ; | |
15065 | char *kwnames[] = { | |
15066 | (char *) "self", NULL | |
15067 | }; | |
15068 | ||
15069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
15070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15071 | { | |
15072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15073 | { | |
15074 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
15075 | result = (wxBitmap *) &_result_ref; | |
15076 | } | |
15077 | ||
15078 | wxPyEndAllowThreads(__tstate); | |
15079 | if (PyErr_Occurred()) SWIG_fail; | |
15080 | } | |
15081 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
15082 | return resultobj; | |
15083 | fail: | |
15084 | return NULL; | |
15085 | } | |
15086 | ||
15087 | ||
15088 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15089 | PyObject *resultobj; | |
15090 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15091 | wxBitmap result; | |
15092 | PyObject * obj0 = 0 ; | |
15093 | char *kwnames[] = { | |
15094 | (char *) "self", NULL | |
15095 | }; | |
15096 | ||
15097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
15098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15099 | { | |
15100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15101 | result = (arg1)->GetBitmap(); | |
15102 | ||
15103 | wxPyEndAllowThreads(__tstate); | |
15104 | if (PyErr_Occurred()) SWIG_fail; | |
15105 | } | |
15106 | { | |
15107 | wxBitmap * resultptr; | |
15108 | resultptr = new wxBitmap((wxBitmap &) result); | |
15109 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
15110 | } | |
15111 | return resultobj; | |
15112 | fail: | |
15113 | return NULL; | |
15114 | } | |
15115 | ||
15116 | ||
15117 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15118 | PyObject *resultobj; | |
15119 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15120 | wxString result; | |
15121 | PyObject * obj0 = 0 ; | |
15122 | char *kwnames[] = { | |
15123 | (char *) "self", NULL | |
15124 | }; | |
15125 | ||
15126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
15127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15128 | { | |
15129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15130 | result = (arg1)->GetLabel(); | |
15131 | ||
15132 | wxPyEndAllowThreads(__tstate); | |
15133 | if (PyErr_Occurred()) SWIG_fail; | |
15134 | } | |
15135 | { | |
15136 | #if wxUSE_UNICODE | |
15137 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15138 | #else | |
15139 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15140 | #endif | |
15141 | } | |
15142 | return resultobj; | |
15143 | fail: | |
15144 | return NULL; | |
15145 | } | |
15146 | ||
15147 | ||
15148 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15149 | PyObject *resultobj; | |
15150 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15151 | wxString result; | |
15152 | PyObject * obj0 = 0 ; | |
15153 | char *kwnames[] = { | |
15154 | (char *) "self", NULL | |
15155 | }; | |
15156 | ||
15157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
15158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15159 | { | |
15160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15161 | result = (arg1)->GetShortHelp(); | |
15162 | ||
15163 | wxPyEndAllowThreads(__tstate); | |
15164 | if (PyErr_Occurred()) SWIG_fail; | |
15165 | } | |
15166 | { | |
15167 | #if wxUSE_UNICODE | |
15168 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15169 | #else | |
15170 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15171 | #endif | |
15172 | } | |
15173 | return resultobj; | |
15174 | fail: | |
15175 | return NULL; | |
15176 | } | |
15177 | ||
15178 | ||
15179 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15180 | PyObject *resultobj; | |
15181 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15182 | wxString result; | |
15183 | PyObject * obj0 = 0 ; | |
15184 | char *kwnames[] = { | |
15185 | (char *) "self", NULL | |
15186 | }; | |
15187 | ||
15188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
15189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15190 | { | |
15191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15192 | result = (arg1)->GetLongHelp(); | |
15193 | ||
15194 | wxPyEndAllowThreads(__tstate); | |
15195 | if (PyErr_Occurred()) SWIG_fail; | |
15196 | } | |
15197 | { | |
15198 | #if wxUSE_UNICODE | |
15199 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15200 | #else | |
15201 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15202 | #endif | |
15203 | } | |
15204 | return resultobj; | |
15205 | fail: | |
15206 | return NULL; | |
15207 | } | |
15208 | ||
15209 | ||
15210 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15211 | PyObject *resultobj; | |
15212 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15213 | bool arg2 ; | |
15214 | bool result; | |
15215 | PyObject * obj0 = 0 ; | |
15216 | PyObject * obj1 = 0 ; | |
15217 | char *kwnames[] = { | |
15218 | (char *) "self",(char *) "enable", NULL | |
15219 | }; | |
15220 | ||
15221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 15223 | { |
994141e6 | 15224 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
15225 | if (PyErr_Occurred()) SWIG_fail; |
15226 | } | |
d14a1e28 RD |
15227 | { |
15228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15229 | result = (bool)(arg1)->Enable(arg2); | |
15230 | ||
15231 | wxPyEndAllowThreads(__tstate); | |
15232 | if (PyErr_Occurred()) SWIG_fail; | |
15233 | } | |
4d5c3d91 | 15234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15235 | return resultobj; |
15236 | fail: | |
15237 | return NULL; | |
15238 | } | |
15239 | ||
15240 | ||
15241 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15242 | PyObject *resultobj; | |
15243 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15244 | PyObject * obj0 = 0 ; | |
15245 | char *kwnames[] = { | |
15246 | (char *) "self", NULL | |
15247 | }; | |
15248 | ||
15249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
15250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15251 | { | |
15252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15253 | (arg1)->Toggle(); | |
15254 | ||
15255 | wxPyEndAllowThreads(__tstate); | |
15256 | if (PyErr_Occurred()) SWIG_fail; | |
15257 | } | |
15258 | Py_INCREF(Py_None); resultobj = Py_None; | |
15259 | return resultobj; | |
15260 | fail: | |
15261 | return NULL; | |
15262 | } | |
15263 | ||
15264 | ||
15265 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15266 | PyObject *resultobj; | |
15267 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15268 | bool arg2 ; | |
15269 | bool result; | |
15270 | PyObject * obj0 = 0 ; | |
15271 | PyObject * obj1 = 0 ; | |
15272 | char *kwnames[] = { | |
15273 | (char *) "self",(char *) "toggle", NULL | |
15274 | }; | |
15275 | ||
15276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
15277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 15278 | { |
994141e6 | 15279 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
15280 | if (PyErr_Occurred()) SWIG_fail; |
15281 | } | |
d14a1e28 RD |
15282 | { |
15283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15284 | result = (bool)(arg1)->SetToggle(arg2); | |
15285 | ||
15286 | wxPyEndAllowThreads(__tstate); | |
15287 | if (PyErr_Occurred()) SWIG_fail; | |
15288 | } | |
4d5c3d91 | 15289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15290 | return resultobj; |
15291 | fail: | |
15292 | return NULL; | |
15293 | } | |
15294 | ||
15295 | ||
15296 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15297 | PyObject *resultobj; | |
15298 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15299 | wxString *arg2 = 0 ; | |
15300 | bool result; | |
e811c8ce | 15301 | bool temp2 = False ; |
d14a1e28 RD |
15302 | PyObject * obj0 = 0 ; |
15303 | PyObject * obj1 = 0 ; | |
15304 | char *kwnames[] = { | |
15305 | (char *) "self",(char *) "help", NULL | |
15306 | }; | |
15307 | ||
15308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
15309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15310 | { | |
15311 | arg2 = wxString_in_helper(obj1); | |
15312 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15313 | temp2 = True; |
d14a1e28 RD |
15314 | } |
15315 | { | |
15316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15317 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
15318 | ||
15319 | wxPyEndAllowThreads(__tstate); | |
15320 | if (PyErr_Occurred()) SWIG_fail; | |
15321 | } | |
4d5c3d91 | 15322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15323 | { |
15324 | if (temp2) | |
15325 | delete arg2; | |
15326 | } | |
15327 | return resultobj; | |
15328 | fail: | |
15329 | { | |
15330 | if (temp2) | |
15331 | delete arg2; | |
15332 | } | |
15333 | return NULL; | |
15334 | } | |
15335 | ||
15336 | ||
15337 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15338 | PyObject *resultobj; | |
15339 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15340 | wxString *arg2 = 0 ; | |
15341 | bool result; | |
e811c8ce | 15342 | bool temp2 = False ; |
d14a1e28 RD |
15343 | PyObject * obj0 = 0 ; |
15344 | PyObject * obj1 = 0 ; | |
15345 | char *kwnames[] = { | |
15346 | (char *) "self",(char *) "help", NULL | |
15347 | }; | |
15348 | ||
15349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15351 | { | |
15352 | arg2 = wxString_in_helper(obj1); | |
15353 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15354 | temp2 = True; |
d14a1e28 RD |
15355 | } |
15356 | { | |
15357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15358 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
15359 | ||
15360 | wxPyEndAllowThreads(__tstate); | |
15361 | if (PyErr_Occurred()) SWIG_fail; | |
15362 | } | |
4d5c3d91 | 15363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15364 | { |
15365 | if (temp2) | |
15366 | delete arg2; | |
15367 | } | |
15368 | return resultobj; | |
15369 | fail: | |
15370 | { | |
15371 | if (temp2) | |
15372 | delete arg2; | |
15373 | } | |
15374 | return NULL; | |
15375 | } | |
15376 | ||
15377 | ||
15378 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15379 | PyObject *resultobj; | |
15380 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15381 | wxBitmap *arg2 = 0 ; | |
15382 | PyObject * obj0 = 0 ; | |
15383 | PyObject * obj1 = 0 ; | |
15384 | char *kwnames[] = { | |
15385 | (char *) "self",(char *) "bmp", NULL | |
15386 | }; | |
15387 | ||
15388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15390 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15391 | if (arg2 == NULL) { | |
15392 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15393 | } | |
15394 | { | |
15395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15396 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
15397 | ||
15398 | wxPyEndAllowThreads(__tstate); | |
15399 | if (PyErr_Occurred()) SWIG_fail; | |
15400 | } | |
15401 | Py_INCREF(Py_None); resultobj = Py_None; | |
15402 | return resultobj; | |
15403 | fail: | |
15404 | return NULL; | |
15405 | } | |
15406 | ||
15407 | ||
15408 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15409 | PyObject *resultobj; | |
15410 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15411 | wxBitmap *arg2 = 0 ; | |
15412 | PyObject * obj0 = 0 ; | |
15413 | PyObject * obj1 = 0 ; | |
15414 | char *kwnames[] = { | |
15415 | (char *) "self",(char *) "bmp", NULL | |
15416 | }; | |
15417 | ||
15418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15420 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15421 | if (arg2 == NULL) { | |
15422 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15423 | } | |
15424 | { | |
15425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15426 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
15427 | ||
15428 | wxPyEndAllowThreads(__tstate); | |
15429 | if (PyErr_Occurred()) SWIG_fail; | |
15430 | } | |
15431 | Py_INCREF(Py_None); resultobj = Py_None; | |
15432 | return resultobj; | |
15433 | fail: | |
15434 | return NULL; | |
15435 | } | |
15436 | ||
15437 | ||
15438 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15439 | PyObject *resultobj; | |
15440 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15441 | wxString *arg2 = 0 ; | |
e811c8ce | 15442 | bool temp2 = False ; |
d14a1e28 RD |
15443 | PyObject * obj0 = 0 ; |
15444 | PyObject * obj1 = 0 ; | |
15445 | char *kwnames[] = { | |
15446 | (char *) "self",(char *) "label", NULL | |
15447 | }; | |
15448 | ||
15449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15451 | { | |
15452 | arg2 = wxString_in_helper(obj1); | |
15453 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15454 | temp2 = True; |
d14a1e28 RD |
15455 | } |
15456 | { | |
15457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15458 | (arg1)->SetLabel((wxString const &)*arg2); | |
15459 | ||
15460 | wxPyEndAllowThreads(__tstate); | |
15461 | if (PyErr_Occurred()) SWIG_fail; | |
15462 | } | |
15463 | Py_INCREF(Py_None); resultobj = Py_None; | |
15464 | { | |
15465 | if (temp2) | |
15466 | delete arg2; | |
15467 | } | |
15468 | return resultobj; | |
15469 | fail: | |
15470 | { | |
15471 | if (temp2) | |
15472 | delete arg2; | |
15473 | } | |
15474 | return NULL; | |
15475 | } | |
15476 | ||
15477 | ||
15478 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15479 | PyObject *resultobj; | |
15480 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15481 | PyObject * obj0 = 0 ; | |
15482 | char *kwnames[] = { | |
15483 | (char *) "self", NULL | |
15484 | }; | |
15485 | ||
15486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
15487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15488 | { | |
15489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15490 | (arg1)->Detach(); | |
15491 | ||
15492 | wxPyEndAllowThreads(__tstate); | |
15493 | if (PyErr_Occurred()) SWIG_fail; | |
15494 | } | |
15495 | Py_INCREF(Py_None); resultobj = Py_None; | |
15496 | return resultobj; | |
15497 | fail: | |
15498 | return NULL; | |
15499 | } | |
15500 | ||
15501 | ||
15502 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15503 | PyObject *resultobj; | |
15504 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15505 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
15506 | PyObject * obj0 = 0 ; | |
15507 | PyObject * obj1 = 0 ; | |
15508 | char *kwnames[] = { | |
15509 | (char *) "self",(char *) "tbar", NULL | |
15510 | }; | |
15511 | ||
15512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15514 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15515 | { | |
15516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15517 | (arg1)->Attach(arg2); | |
15518 | ||
15519 | wxPyEndAllowThreads(__tstate); | |
15520 | if (PyErr_Occurred()) SWIG_fail; | |
15521 | } | |
15522 | Py_INCREF(Py_None); resultobj = Py_None; | |
15523 | return resultobj; | |
15524 | fail: | |
15525 | return NULL; | |
15526 | } | |
15527 | ||
15528 | ||
15529 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15530 | PyObject *resultobj; | |
15531 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15532 | PyObject *result; | |
15533 | PyObject * obj0 = 0 ; | |
15534 | char *kwnames[] = { | |
15535 | (char *) "self", NULL | |
15536 | }; | |
15537 | ||
15538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15540 | { | |
15541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15542 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
15543 | ||
15544 | wxPyEndAllowThreads(__tstate); | |
15545 | if (PyErr_Occurred()) SWIG_fail; | |
15546 | } | |
15547 | resultobj = result; | |
15548 | return resultobj; | |
15549 | fail: | |
15550 | return NULL; | |
15551 | } | |
15552 | ||
15553 | ||
15554 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15555 | PyObject *resultobj; | |
15556 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15557 | PyObject *arg2 = (PyObject *) 0 ; | |
15558 | PyObject * obj0 = 0 ; | |
15559 | PyObject * obj1 = 0 ; | |
15560 | char *kwnames[] = { | |
15561 | (char *) "self",(char *) "clientData", NULL | |
15562 | }; | |
15563 | ||
15564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15566 | arg2 = obj1; | |
15567 | { | |
15568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15569 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
15570 | ||
15571 | wxPyEndAllowThreads(__tstate); | |
15572 | if (PyErr_Occurred()) SWIG_fail; | |
15573 | } | |
15574 | Py_INCREF(Py_None); resultobj = Py_None; | |
15575 | return resultobj; | |
15576 | fail: | |
15577 | return NULL; | |
15578 | } | |
15579 | ||
15580 | ||
15581 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
15582 | PyObject *obj; | |
15583 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15584 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
15585 | Py_INCREF(obj); | |
15586 | return Py_BuildValue((char *)""); | |
15587 | } | |
15588 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15589 | PyObject *resultobj; | |
15590 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15591 | int arg2 ; | |
15592 | wxString *arg3 = 0 ; | |
15593 | wxBitmap *arg4 = 0 ; | |
15594 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
15595 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
15596 | int arg6 = (int) wxITEM_NORMAL ; | |
15597 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15598 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15599 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15600 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15601 | PyObject *arg9 = (PyObject *) NULL ; | |
15602 | wxToolBarToolBase *result; | |
e811c8ce RD |
15603 | bool temp3 = False ; |
15604 | bool temp7 = False ; | |
15605 | bool temp8 = False ; | |
d14a1e28 | 15606 | PyObject * obj0 = 0 ; |
994141e6 | 15607 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15608 | PyObject * obj2 = 0 ; |
15609 | PyObject * obj3 = 0 ; | |
15610 | PyObject * obj4 = 0 ; | |
994141e6 | 15611 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15612 | PyObject * obj6 = 0 ; |
15613 | PyObject * obj7 = 0 ; | |
15614 | PyObject * obj8 = 0 ; | |
15615 | char *kwnames[] = { | |
15616 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15617 | }; | |
15618 | ||
994141e6 | 15619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 15620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15621 | { |
15622 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15623 | if (PyErr_Occurred()) SWIG_fail; | |
15624 | } | |
d14a1e28 RD |
15625 | { |
15626 | arg3 = wxString_in_helper(obj2); | |
15627 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15628 | temp3 = True; |
d14a1e28 RD |
15629 | } |
15630 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15631 | if (arg4 == NULL) { | |
15632 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15633 | } | |
15634 | if (obj4) { | |
15635 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15636 | if (arg5 == NULL) { | |
15637 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15638 | } | |
15639 | } | |
994141e6 RD |
15640 | if (obj5) { |
15641 | { | |
15642 | arg6 = (wxItemKind) SWIG_PyObj_AsInt(obj5); | |
15643 | if (PyErr_Occurred()) SWIG_fail; | |
15644 | } | |
15645 | } | |
d14a1e28 RD |
15646 | if (obj6) { |
15647 | { | |
15648 | arg7 = wxString_in_helper(obj6); | |
15649 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 15650 | temp7 = True; |
d14a1e28 RD |
15651 | } |
15652 | } | |
15653 | if (obj7) { | |
15654 | { | |
15655 | arg8 = wxString_in_helper(obj7); | |
15656 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 15657 | temp8 = True; |
d14a1e28 RD |
15658 | } |
15659 | } | |
15660 | if (obj8) { | |
15661 | arg9 = obj8; | |
15662 | } | |
15663 | { | |
15664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15665 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
15666 | ||
15667 | wxPyEndAllowThreads(__tstate); | |
15668 | if (PyErr_Occurred()) SWIG_fail; | |
15669 | } | |
15670 | { | |
15671 | resultobj = wxPyMake_wxObject(result); | |
15672 | } | |
15673 | { | |
15674 | if (temp3) | |
15675 | delete arg3; | |
15676 | } | |
15677 | { | |
15678 | if (temp7) | |
15679 | delete arg7; | |
15680 | } | |
15681 | { | |
15682 | if (temp8) | |
15683 | delete arg8; | |
15684 | } | |
15685 | return resultobj; | |
15686 | fail: | |
15687 | { | |
15688 | if (temp3) | |
15689 | delete arg3; | |
15690 | } | |
15691 | { | |
15692 | if (temp7) | |
15693 | delete arg7; | |
15694 | } | |
15695 | { | |
15696 | if (temp8) | |
15697 | delete arg8; | |
15698 | } | |
15699 | return NULL; | |
15700 | } | |
15701 | ||
15702 | ||
15703 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15704 | PyObject *resultobj; | |
15705 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15706 | size_t arg2 ; | |
15707 | int arg3 ; | |
15708 | wxString *arg4 = 0 ; | |
15709 | wxBitmap *arg5 = 0 ; | |
15710 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
15711 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
15712 | int arg7 = (int) wxITEM_NORMAL ; | |
15713 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15714 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15715 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
15716 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
15717 | PyObject *arg10 = (PyObject *) NULL ; | |
15718 | wxToolBarToolBase *result; | |
e811c8ce RD |
15719 | bool temp4 = False ; |
15720 | bool temp8 = False ; | |
15721 | bool temp9 = False ; | |
d14a1e28 RD |
15722 | PyObject * obj0 = 0 ; |
15723 | PyObject * obj1 = 0 ; | |
994141e6 | 15724 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15725 | PyObject * obj3 = 0 ; |
15726 | PyObject * obj4 = 0 ; | |
15727 | PyObject * obj5 = 0 ; | |
994141e6 | 15728 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
15729 | PyObject * obj7 = 0 ; |
15730 | PyObject * obj8 = 0 ; | |
15731 | PyObject * obj9 = 0 ; | |
15732 | char *kwnames[] = { | |
15733 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15734 | }; | |
15735 | ||
994141e6 | 15736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 15737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 15738 | { |
994141e6 RD |
15739 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
15740 | if (PyErr_Occurred()) SWIG_fail; | |
15741 | } | |
15742 | { | |
15743 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
a41e16b6 RD |
15744 | if (PyErr_Occurred()) SWIG_fail; |
15745 | } | |
d14a1e28 RD |
15746 | { |
15747 | arg4 = wxString_in_helper(obj3); | |
15748 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 15749 | temp4 = True; |
d14a1e28 RD |
15750 | } |
15751 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15752 | if (arg5 == NULL) { | |
15753 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15754 | } | |
15755 | if (obj5) { | |
15756 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15757 | if (arg6 == NULL) { | |
15758 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15759 | } | |
15760 | } | |
994141e6 RD |
15761 | if (obj6) { |
15762 | { | |
15763 | arg7 = (wxItemKind) SWIG_PyObj_AsInt(obj6); | |
15764 | if (PyErr_Occurred()) SWIG_fail; | |
15765 | } | |
15766 | } | |
d14a1e28 RD |
15767 | if (obj7) { |
15768 | { | |
15769 | arg8 = wxString_in_helper(obj7); | |
15770 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 15771 | temp8 = True; |
d14a1e28 RD |
15772 | } |
15773 | } | |
15774 | if (obj8) { | |
15775 | { | |
15776 | arg9 = wxString_in_helper(obj8); | |
15777 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 15778 | temp9 = True; |
d14a1e28 RD |
15779 | } |
15780 | } | |
15781 | if (obj9) { | |
15782 | arg10 = obj9; | |
15783 | } | |
15784 | { | |
15785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15786 | 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); | |
15787 | ||
15788 | wxPyEndAllowThreads(__tstate); | |
15789 | if (PyErr_Occurred()) SWIG_fail; | |
15790 | } | |
15791 | { | |
15792 | resultobj = wxPyMake_wxObject(result); | |
15793 | } | |
15794 | { | |
15795 | if (temp4) | |
15796 | delete arg4; | |
15797 | } | |
15798 | { | |
15799 | if (temp8) | |
15800 | delete arg8; | |
15801 | } | |
15802 | { | |
15803 | if (temp9) | |
15804 | delete arg9; | |
15805 | } | |
15806 | return resultobj; | |
15807 | fail: | |
15808 | { | |
15809 | if (temp4) | |
15810 | delete arg4; | |
15811 | } | |
15812 | { | |
15813 | if (temp8) | |
15814 | delete arg8; | |
15815 | } | |
15816 | { | |
15817 | if (temp9) | |
15818 | delete arg9; | |
15819 | } | |
15820 | return NULL; | |
15821 | } | |
15822 | ||
15823 | ||
3a04f143 RD |
15824 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
15825 | PyObject *resultobj; | |
15826 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15827 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
15828 | wxToolBarToolBase *result; | |
15829 | PyObject * obj0 = 0 ; | |
15830 | PyObject * obj1 = 0 ; | |
15831 | char *kwnames[] = { | |
15832 | (char *) "self",(char *) "tool", NULL | |
15833 | }; | |
15834 | ||
15835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
15836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15837 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15838 | { | |
15839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15840 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
15841 | ||
15842 | wxPyEndAllowThreads(__tstate); | |
15843 | if (PyErr_Occurred()) SWIG_fail; | |
15844 | } | |
15845 | { | |
15846 | resultobj = wxPyMake_wxObject(result); | |
15847 | } | |
15848 | return resultobj; | |
15849 | fail: | |
15850 | return NULL; | |
15851 | } | |
15852 | ||
15853 | ||
15854 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15855 | PyObject *resultobj; | |
15856 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15857 | size_t arg2 ; | |
15858 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
15859 | wxToolBarToolBase *result; | |
15860 | PyObject * obj0 = 0 ; | |
15861 | PyObject * obj1 = 0 ; | |
15862 | PyObject * obj2 = 0 ; | |
15863 | char *kwnames[] = { | |
15864 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
15865 | }; | |
15866 | ||
15867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 15869 | { |
994141e6 | 15870 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
15871 | if (PyErr_Occurred()) SWIG_fail; |
15872 | } | |
3a04f143 RD |
15873 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15874 | { | |
15875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15876 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
15877 | ||
15878 | wxPyEndAllowThreads(__tstate); | |
15879 | if (PyErr_Occurred()) SWIG_fail; | |
15880 | } | |
15881 | { | |
15882 | resultobj = wxPyMake_wxObject(result); | |
15883 | } | |
15884 | return resultobj; | |
15885 | fail: | |
15886 | return NULL; | |
15887 | } | |
15888 | ||
15889 | ||
d14a1e28 RD |
15890 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
15891 | PyObject *resultobj; | |
15892 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15893 | wxControl *arg2 = (wxControl *) 0 ; | |
15894 | wxToolBarToolBase *result; | |
15895 | PyObject * obj0 = 0 ; | |
15896 | PyObject * obj1 = 0 ; | |
15897 | char *kwnames[] = { | |
15898 | (char *) "self",(char *) "control", NULL | |
15899 | }; | |
15900 | ||
15901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
15902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15903 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15904 | { | |
15905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15906 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
15907 | ||
15908 | wxPyEndAllowThreads(__tstate); | |
15909 | if (PyErr_Occurred()) SWIG_fail; | |
15910 | } | |
15911 | { | |
15912 | resultobj = wxPyMake_wxObject(result); | |
15913 | } | |
15914 | return resultobj; | |
15915 | fail: | |
15916 | return NULL; | |
15917 | } | |
15918 | ||
15919 | ||
15920 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15921 | PyObject *resultobj; | |
15922 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15923 | size_t arg2 ; | |
15924 | wxControl *arg3 = (wxControl *) 0 ; | |
15925 | wxToolBarToolBase *result; | |
15926 | PyObject * obj0 = 0 ; | |
15927 | PyObject * obj1 = 0 ; | |
15928 | PyObject * obj2 = 0 ; | |
15929 | char *kwnames[] = { | |
15930 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
15931 | }; | |
15932 | ||
15933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 15935 | { |
994141e6 | 15936 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
15937 | if (PyErr_Occurred()) SWIG_fail; |
15938 | } | |
d14a1e28 RD |
15939 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15940 | { | |
15941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15942 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
15943 | ||
15944 | wxPyEndAllowThreads(__tstate); | |
15945 | if (PyErr_Occurred()) SWIG_fail; | |
15946 | } | |
15947 | { | |
15948 | resultobj = wxPyMake_wxObject(result); | |
15949 | } | |
15950 | return resultobj; | |
15951 | fail: | |
15952 | return NULL; | |
15953 | } | |
15954 | ||
15955 | ||
15956 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15957 | PyObject *resultobj; | |
15958 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15959 | int arg2 ; | |
15960 | wxControl *result; | |
15961 | PyObject * obj0 = 0 ; | |
994141e6 | 15962 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15963 | char *kwnames[] = { |
15964 | (char *) "self",(char *) "id", NULL | |
15965 | }; | |
15966 | ||
994141e6 | 15967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15969 | { |
15970 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15971 | if (PyErr_Occurred()) SWIG_fail; | |
15972 | } | |
d14a1e28 RD |
15973 | { |
15974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15975 | result = (wxControl *)(arg1)->FindControl(arg2); | |
15976 | ||
15977 | wxPyEndAllowThreads(__tstate); | |
15978 | if (PyErr_Occurred()) SWIG_fail; | |
15979 | } | |
15980 | { | |
15981 | resultobj = wxPyMake_wxObject(result); | |
15982 | } | |
15983 | return resultobj; | |
15984 | fail: | |
15985 | return NULL; | |
15986 | } | |
15987 | ||
15988 | ||
15989 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15990 | PyObject *resultobj; | |
15991 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15992 | wxToolBarToolBase *result; | |
15993 | PyObject * obj0 = 0 ; | |
15994 | char *kwnames[] = { | |
15995 | (char *) "self", NULL | |
15996 | }; | |
15997 | ||
15998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
15999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16000 | { | |
16001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16002 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
16003 | ||
16004 | wxPyEndAllowThreads(__tstate); | |
16005 | if (PyErr_Occurred()) SWIG_fail; | |
16006 | } | |
16007 | { | |
16008 | resultobj = wxPyMake_wxObject(result); | |
16009 | } | |
16010 | return resultobj; | |
16011 | fail: | |
16012 | return NULL; | |
16013 | } | |
16014 | ||
16015 | ||
16016 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16017 | PyObject *resultobj; | |
16018 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16019 | size_t arg2 ; | |
16020 | wxToolBarToolBase *result; | |
16021 | PyObject * obj0 = 0 ; | |
16022 | PyObject * obj1 = 0 ; | |
16023 | char *kwnames[] = { | |
16024 | (char *) "self",(char *) "pos", NULL | |
16025 | }; | |
16026 | ||
16027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
16028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 16029 | { |
994141e6 | 16030 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
16031 | if (PyErr_Occurred()) SWIG_fail; |
16032 | } | |
d14a1e28 RD |
16033 | { |
16034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16035 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
16036 | ||
16037 | wxPyEndAllowThreads(__tstate); | |
16038 | if (PyErr_Occurred()) SWIG_fail; | |
16039 | } | |
16040 | { | |
16041 | resultobj = wxPyMake_wxObject(result); | |
16042 | } | |
16043 | return resultobj; | |
16044 | fail: | |
16045 | return NULL; | |
16046 | } | |
16047 | ||
16048 | ||
16049 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16050 | PyObject *resultobj; | |
16051 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16052 | int arg2 ; | |
16053 | wxToolBarToolBase *result; | |
16054 | PyObject * obj0 = 0 ; | |
994141e6 | 16055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16056 | char *kwnames[] = { |
16057 | (char *) "self",(char *) "id", NULL | |
16058 | }; | |
16059 | ||
994141e6 | 16060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16062 | { |
16063 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16064 | if (PyErr_Occurred()) SWIG_fail; | |
16065 | } | |
d14a1e28 RD |
16066 | { |
16067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16068 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
16069 | ||
16070 | wxPyEndAllowThreads(__tstate); | |
16071 | if (PyErr_Occurred()) SWIG_fail; | |
16072 | } | |
16073 | { | |
16074 | resultobj = wxPyMake_wxObject(result); | |
16075 | } | |
16076 | return resultobj; | |
16077 | fail: | |
16078 | return NULL; | |
16079 | } | |
16080 | ||
16081 | ||
16082 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16083 | PyObject *resultobj; | |
16084 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16085 | size_t arg2 ; | |
16086 | bool result; | |
16087 | PyObject * obj0 = 0 ; | |
16088 | PyObject * obj1 = 0 ; | |
16089 | char *kwnames[] = { | |
16090 | (char *) "self",(char *) "pos", NULL | |
16091 | }; | |
16092 | ||
16093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
16094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 16095 | { |
994141e6 | 16096 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
16097 | if (PyErr_Occurred()) SWIG_fail; |
16098 | } | |
d14a1e28 RD |
16099 | { |
16100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16101 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
16102 | ||
16103 | wxPyEndAllowThreads(__tstate); | |
16104 | if (PyErr_Occurred()) SWIG_fail; | |
16105 | } | |
4d5c3d91 | 16106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16107 | return resultobj; |
16108 | fail: | |
16109 | return NULL; | |
16110 | } | |
16111 | ||
16112 | ||
16113 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16114 | PyObject *resultobj; | |
16115 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16116 | int arg2 ; | |
16117 | bool result; | |
16118 | PyObject * obj0 = 0 ; | |
994141e6 | 16119 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16120 | char *kwnames[] = { |
16121 | (char *) "self",(char *) "id", NULL | |
16122 | }; | |
16123 | ||
994141e6 | 16124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16126 | { |
16127 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16128 | if (PyErr_Occurred()) SWIG_fail; | |
16129 | } | |
d14a1e28 RD |
16130 | { |
16131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16132 | result = (bool)(arg1)->DeleteTool(arg2); | |
16133 | ||
16134 | wxPyEndAllowThreads(__tstate); | |
16135 | if (PyErr_Occurred()) SWIG_fail; | |
16136 | } | |
4d5c3d91 | 16137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16138 | return resultobj; |
16139 | fail: | |
16140 | return NULL; | |
16141 | } | |
16142 | ||
16143 | ||
16144 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16145 | PyObject *resultobj; | |
16146 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16147 | PyObject * obj0 = 0 ; | |
16148 | char *kwnames[] = { | |
16149 | (char *) "self", NULL | |
16150 | }; | |
16151 | ||
16152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
16153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16154 | { | |
16155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16156 | (arg1)->ClearTools(); | |
16157 | ||
16158 | wxPyEndAllowThreads(__tstate); | |
16159 | if (PyErr_Occurred()) SWIG_fail; | |
16160 | } | |
16161 | Py_INCREF(Py_None); resultobj = Py_None; | |
16162 | return resultobj; | |
16163 | fail: | |
16164 | return NULL; | |
16165 | } | |
16166 | ||
16167 | ||
16168 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16169 | PyObject *resultobj; | |
16170 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16171 | bool result; | |
16172 | PyObject * obj0 = 0 ; | |
16173 | char *kwnames[] = { | |
16174 | (char *) "self", NULL | |
16175 | }; | |
16176 | ||
16177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
16178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16179 | { | |
16180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16181 | result = (bool)(arg1)->Realize(); | |
16182 | ||
16183 | wxPyEndAllowThreads(__tstate); | |
16184 | if (PyErr_Occurred()) SWIG_fail; | |
16185 | } | |
4d5c3d91 | 16186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16187 | return resultobj; |
16188 | fail: | |
16189 | return NULL; | |
16190 | } | |
16191 | ||
16192 | ||
16193 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16194 | PyObject *resultobj; | |
16195 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16196 | int arg2 ; | |
16197 | bool arg3 ; | |
16198 | PyObject * obj0 = 0 ; | |
994141e6 | 16199 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16200 | PyObject * obj2 = 0 ; |
16201 | char *kwnames[] = { | |
16202 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
16203 | }; | |
16204 | ||
994141e6 | 16205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 16207 | { |
994141e6 RD |
16208 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16209 | if (PyErr_Occurred()) SWIG_fail; | |
16210 | } | |
16211 | { | |
16212 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
a41e16b6 RD |
16213 | if (PyErr_Occurred()) SWIG_fail; |
16214 | } | |
d14a1e28 RD |
16215 | { |
16216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16217 | (arg1)->EnableTool(arg2,arg3); | |
16218 | ||
16219 | wxPyEndAllowThreads(__tstate); | |
16220 | if (PyErr_Occurred()) SWIG_fail; | |
16221 | } | |
16222 | Py_INCREF(Py_None); resultobj = Py_None; | |
16223 | return resultobj; | |
16224 | fail: | |
16225 | return NULL; | |
16226 | } | |
16227 | ||
16228 | ||
16229 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16230 | PyObject *resultobj; | |
16231 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16232 | int arg2 ; | |
16233 | bool arg3 ; | |
16234 | PyObject * obj0 = 0 ; | |
994141e6 | 16235 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16236 | PyObject * obj2 = 0 ; |
16237 | char *kwnames[] = { | |
16238 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16239 | }; | |
16240 | ||
994141e6 | 16241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 16243 | { |
994141e6 RD |
16244 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16245 | if (PyErr_Occurred()) SWIG_fail; | |
16246 | } | |
16247 | { | |
16248 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
a41e16b6 RD |
16249 | if (PyErr_Occurred()) SWIG_fail; |
16250 | } | |
d14a1e28 RD |
16251 | { |
16252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16253 | (arg1)->ToggleTool(arg2,arg3); | |
16254 | ||
16255 | wxPyEndAllowThreads(__tstate); | |
16256 | if (PyErr_Occurred()) SWIG_fail; | |
16257 | } | |
16258 | Py_INCREF(Py_None); resultobj = Py_None; | |
16259 | return resultobj; | |
16260 | fail: | |
16261 | return NULL; | |
16262 | } | |
16263 | ||
16264 | ||
16265 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16266 | PyObject *resultobj; | |
16267 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16268 | int arg2 ; | |
16269 | bool arg3 ; | |
16270 | PyObject * obj0 = 0 ; | |
994141e6 | 16271 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16272 | PyObject * obj2 = 0 ; |
16273 | char *kwnames[] = { | |
16274 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16275 | }; | |
16276 | ||
994141e6 | 16277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 16279 | { |
994141e6 RD |
16280 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16281 | if (PyErr_Occurred()) SWIG_fail; | |
16282 | } | |
16283 | { | |
16284 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
a41e16b6 RD |
16285 | if (PyErr_Occurred()) SWIG_fail; |
16286 | } | |
d14a1e28 RD |
16287 | { |
16288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16289 | (arg1)->SetToggle(arg2,arg3); | |
16290 | ||
16291 | wxPyEndAllowThreads(__tstate); | |
16292 | if (PyErr_Occurred()) SWIG_fail; | |
16293 | } | |
16294 | Py_INCREF(Py_None); resultobj = Py_None; | |
16295 | return resultobj; | |
16296 | fail: | |
16297 | return NULL; | |
16298 | } | |
16299 | ||
16300 | ||
16301 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16302 | PyObject *resultobj; | |
16303 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16304 | int arg2 ; | |
16305 | PyObject *result; | |
16306 | PyObject * obj0 = 0 ; | |
994141e6 | 16307 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16308 | char *kwnames[] = { |
16309 | (char *) "self",(char *) "id", NULL | |
16310 | }; | |
16311 | ||
994141e6 | 16312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16314 | { |
16315 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16316 | if (PyErr_Occurred()) SWIG_fail; | |
16317 | } | |
d14a1e28 RD |
16318 | { |
16319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16320 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
16321 | ||
16322 | wxPyEndAllowThreads(__tstate); | |
16323 | if (PyErr_Occurred()) SWIG_fail; | |
16324 | } | |
16325 | resultobj = result; | |
16326 | return resultobj; | |
16327 | fail: | |
16328 | return NULL; | |
16329 | } | |
16330 | ||
16331 | ||
16332 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16333 | PyObject *resultobj; | |
16334 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16335 | int arg2 ; | |
16336 | PyObject *arg3 = (PyObject *) 0 ; | |
16337 | PyObject * obj0 = 0 ; | |
994141e6 | 16338 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16339 | PyObject * obj2 = 0 ; |
16340 | char *kwnames[] = { | |
16341 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
16342 | }; | |
16343 | ||
994141e6 | 16344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16346 | { |
16347 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16348 | if (PyErr_Occurred()) SWIG_fail; | |
16349 | } | |
d14a1e28 RD |
16350 | arg3 = obj2; |
16351 | { | |
16352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16353 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
16354 | ||
16355 | wxPyEndAllowThreads(__tstate); | |
16356 | if (PyErr_Occurred()) SWIG_fail; | |
16357 | } | |
16358 | Py_INCREF(Py_None); resultobj = Py_None; | |
16359 | return resultobj; | |
16360 | fail: | |
16361 | return NULL; | |
16362 | } | |
16363 | ||
16364 | ||
16365 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16366 | PyObject *resultobj; | |
16367 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16368 | int arg2 ; | |
16369 | int result; | |
16370 | PyObject * obj0 = 0 ; | |
994141e6 | 16371 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16372 | char *kwnames[] = { |
16373 | (char *) "self",(char *) "id", NULL | |
16374 | }; | |
16375 | ||
994141e6 | 16376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16378 | { |
16379 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16380 | if (PyErr_Occurred()) SWIG_fail; | |
16381 | } | |
d14a1e28 RD |
16382 | { |
16383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16384 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
16385 | ||
16386 | wxPyEndAllowThreads(__tstate); | |
16387 | if (PyErr_Occurred()) SWIG_fail; | |
16388 | } | |
994141e6 | 16389 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16390 | return resultobj; |
16391 | fail: | |
16392 | return NULL; | |
16393 | } | |
16394 | ||
16395 | ||
16396 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16397 | PyObject *resultobj; | |
16398 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16399 | int arg2 ; | |
16400 | bool result; | |
16401 | PyObject * obj0 = 0 ; | |
994141e6 | 16402 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16403 | char *kwnames[] = { |
16404 | (char *) "self",(char *) "id", NULL | |
16405 | }; | |
16406 | ||
994141e6 | 16407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16409 | { |
16410 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16411 | if (PyErr_Occurred()) SWIG_fail; | |
16412 | } | |
d14a1e28 RD |
16413 | { |
16414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16415 | result = (bool)(arg1)->GetToolState(arg2); | |
16416 | ||
16417 | wxPyEndAllowThreads(__tstate); | |
16418 | if (PyErr_Occurred()) SWIG_fail; | |
16419 | } | |
4d5c3d91 | 16420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16421 | return resultobj; |
16422 | fail: | |
16423 | return NULL; | |
16424 | } | |
16425 | ||
16426 | ||
16427 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16428 | PyObject *resultobj; | |
16429 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16430 | int arg2 ; | |
16431 | bool result; | |
16432 | PyObject * obj0 = 0 ; | |
994141e6 | 16433 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16434 | char *kwnames[] = { |
16435 | (char *) "self",(char *) "id", NULL | |
16436 | }; | |
16437 | ||
994141e6 | 16438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16440 | { |
16441 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16442 | if (PyErr_Occurred()) SWIG_fail; | |
16443 | } | |
d14a1e28 RD |
16444 | { |
16445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16446 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
16447 | ||
16448 | wxPyEndAllowThreads(__tstate); | |
16449 | if (PyErr_Occurred()) SWIG_fail; | |
16450 | } | |
4d5c3d91 | 16451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16452 | return resultobj; |
16453 | fail: | |
16454 | return NULL; | |
16455 | } | |
16456 | ||
16457 | ||
16458 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16459 | PyObject *resultobj; | |
16460 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16461 | int arg2 ; | |
16462 | wxString *arg3 = 0 ; | |
e811c8ce | 16463 | bool temp3 = False ; |
d14a1e28 | 16464 | PyObject * obj0 = 0 ; |
994141e6 | 16465 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16466 | PyObject * obj2 = 0 ; |
16467 | char *kwnames[] = { | |
16468 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16469 | }; | |
16470 | ||
994141e6 | 16471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16473 | { |
16474 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16475 | if (PyErr_Occurred()) SWIG_fail; | |
16476 | } | |
d14a1e28 RD |
16477 | { |
16478 | arg3 = wxString_in_helper(obj2); | |
16479 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16480 | temp3 = True; |
d14a1e28 RD |
16481 | } |
16482 | { | |
16483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16484 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
16485 | ||
16486 | wxPyEndAllowThreads(__tstate); | |
16487 | if (PyErr_Occurred()) SWIG_fail; | |
16488 | } | |
16489 | Py_INCREF(Py_None); resultobj = Py_None; | |
16490 | { | |
16491 | if (temp3) | |
16492 | delete arg3; | |
16493 | } | |
16494 | return resultobj; | |
16495 | fail: | |
16496 | { | |
16497 | if (temp3) | |
16498 | delete arg3; | |
16499 | } | |
16500 | return NULL; | |
16501 | } | |
16502 | ||
16503 | ||
16504 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16505 | PyObject *resultobj; | |
16506 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16507 | int arg2 ; | |
16508 | wxString result; | |
16509 | PyObject * obj0 = 0 ; | |
994141e6 | 16510 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16511 | char *kwnames[] = { |
16512 | (char *) "self",(char *) "id", NULL | |
16513 | }; | |
16514 | ||
994141e6 | 16515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16517 | { |
16518 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16519 | if (PyErr_Occurred()) SWIG_fail; | |
16520 | } | |
d14a1e28 RD |
16521 | { |
16522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16523 | result = (arg1)->GetToolShortHelp(arg2); | |
16524 | ||
16525 | wxPyEndAllowThreads(__tstate); | |
16526 | if (PyErr_Occurred()) SWIG_fail; | |
16527 | } | |
16528 | { | |
16529 | #if wxUSE_UNICODE | |
16530 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16531 | #else | |
16532 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16533 | #endif | |
16534 | } | |
16535 | return resultobj; | |
16536 | fail: | |
16537 | return NULL; | |
16538 | } | |
16539 | ||
16540 | ||
16541 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16542 | PyObject *resultobj; | |
16543 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16544 | int arg2 ; | |
16545 | wxString *arg3 = 0 ; | |
e811c8ce | 16546 | bool temp3 = False ; |
d14a1e28 | 16547 | PyObject * obj0 = 0 ; |
994141e6 | 16548 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16549 | PyObject * obj2 = 0 ; |
16550 | char *kwnames[] = { | |
16551 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16552 | }; | |
16553 | ||
994141e6 | 16554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16556 | { |
16557 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16558 | if (PyErr_Occurred()) SWIG_fail; | |
16559 | } | |
d14a1e28 RD |
16560 | { |
16561 | arg3 = wxString_in_helper(obj2); | |
16562 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16563 | temp3 = True; |
d14a1e28 RD |
16564 | } |
16565 | { | |
16566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16567 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
16568 | ||
16569 | wxPyEndAllowThreads(__tstate); | |
16570 | if (PyErr_Occurred()) SWIG_fail; | |
16571 | } | |
16572 | Py_INCREF(Py_None); resultobj = Py_None; | |
16573 | { | |
16574 | if (temp3) | |
16575 | delete arg3; | |
16576 | } | |
16577 | return resultobj; | |
16578 | fail: | |
16579 | { | |
16580 | if (temp3) | |
16581 | delete arg3; | |
16582 | } | |
16583 | return NULL; | |
16584 | } | |
16585 | ||
16586 | ||
16587 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16588 | PyObject *resultobj; | |
16589 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16590 | int arg2 ; | |
16591 | wxString result; | |
16592 | PyObject * obj0 = 0 ; | |
994141e6 | 16593 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16594 | char *kwnames[] = { |
16595 | (char *) "self",(char *) "id", NULL | |
16596 | }; | |
16597 | ||
994141e6 | 16598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16600 | { |
16601 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16602 | if (PyErr_Occurred()) SWIG_fail; | |
16603 | } | |
d14a1e28 RD |
16604 | { |
16605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16606 | result = (arg1)->GetToolLongHelp(arg2); | |
16607 | ||
16608 | wxPyEndAllowThreads(__tstate); | |
16609 | if (PyErr_Occurred()) SWIG_fail; | |
16610 | } | |
16611 | { | |
16612 | #if wxUSE_UNICODE | |
16613 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16614 | #else | |
16615 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16616 | #endif | |
16617 | } | |
16618 | return resultobj; | |
16619 | fail: | |
16620 | return NULL; | |
16621 | } | |
16622 | ||
16623 | ||
16624 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16625 | PyObject *resultobj; | |
16626 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16627 | int arg2 ; | |
16628 | int arg3 ; | |
16629 | PyObject * obj0 = 0 ; | |
994141e6 RD |
16630 | PyObject * obj1 = 0 ; |
16631 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16632 | char *kwnames[] = { |
16633 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16634 | }; | |
16635 | ||
994141e6 | 16636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16638 | { |
16639 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16640 | if (PyErr_Occurred()) SWIG_fail; | |
16641 | } | |
16642 | { | |
16643 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16644 | if (PyErr_Occurred()) SWIG_fail; | |
16645 | } | |
d14a1e28 RD |
16646 | { |
16647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16648 | (arg1)->SetMargins(arg2,arg3); | |
16649 | ||
16650 | wxPyEndAllowThreads(__tstate); | |
16651 | if (PyErr_Occurred()) SWIG_fail; | |
16652 | } | |
16653 | Py_INCREF(Py_None); resultobj = Py_None; | |
16654 | return resultobj; | |
16655 | fail: | |
16656 | return NULL; | |
16657 | } | |
16658 | ||
16659 | ||
16660 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16661 | PyObject *resultobj; | |
16662 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16663 | wxSize *arg2 = 0 ; | |
16664 | wxSize temp2 ; | |
16665 | PyObject * obj0 = 0 ; | |
16666 | PyObject * obj1 = 0 ; | |
16667 | char *kwnames[] = { | |
16668 | (char *) "self",(char *) "size", NULL | |
16669 | }; | |
16670 | ||
16671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
16672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16673 | { | |
16674 | arg2 = &temp2; | |
16675 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16676 | } | |
16677 | { | |
16678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16679 | (arg1)->SetMargins((wxSize const &)*arg2); | |
16680 | ||
16681 | wxPyEndAllowThreads(__tstate); | |
16682 | if (PyErr_Occurred()) SWIG_fail; | |
16683 | } | |
16684 | Py_INCREF(Py_None); resultobj = Py_None; | |
16685 | return resultobj; | |
16686 | fail: | |
16687 | return NULL; | |
16688 | } | |
16689 | ||
16690 | ||
16691 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16692 | PyObject *resultobj; | |
16693 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16694 | int arg2 ; | |
16695 | PyObject * obj0 = 0 ; | |
994141e6 | 16696 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16697 | char *kwnames[] = { |
16698 | (char *) "self",(char *) "packing", NULL | |
16699 | }; | |
16700 | ||
994141e6 | 16701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16703 | { |
16704 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16705 | if (PyErr_Occurred()) SWIG_fail; | |
16706 | } | |
d14a1e28 RD |
16707 | { |
16708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16709 | (arg1)->SetToolPacking(arg2); | |
16710 | ||
16711 | wxPyEndAllowThreads(__tstate); | |
16712 | if (PyErr_Occurred()) SWIG_fail; | |
16713 | } | |
16714 | Py_INCREF(Py_None); resultobj = Py_None; | |
16715 | return resultobj; | |
16716 | fail: | |
16717 | return NULL; | |
16718 | } | |
16719 | ||
16720 | ||
16721 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16722 | PyObject *resultobj; | |
16723 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16724 | int arg2 ; | |
16725 | PyObject * obj0 = 0 ; | |
994141e6 | 16726 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16727 | char *kwnames[] = { |
16728 | (char *) "self",(char *) "separation", NULL | |
16729 | }; | |
16730 | ||
994141e6 | 16731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16733 | { |
16734 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16735 | if (PyErr_Occurred()) SWIG_fail; | |
16736 | } | |
d14a1e28 RD |
16737 | { |
16738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16739 | (arg1)->SetToolSeparation(arg2); | |
16740 | ||
16741 | wxPyEndAllowThreads(__tstate); | |
16742 | if (PyErr_Occurred()) SWIG_fail; | |
16743 | } | |
16744 | Py_INCREF(Py_None); resultobj = Py_None; | |
16745 | return resultobj; | |
16746 | fail: | |
16747 | return NULL; | |
16748 | } | |
16749 | ||
16750 | ||
16751 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16752 | PyObject *resultobj; | |
16753 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16754 | wxSize result; | |
16755 | PyObject * obj0 = 0 ; | |
16756 | char *kwnames[] = { | |
16757 | (char *) "self", NULL | |
16758 | }; | |
16759 | ||
16760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
16761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16762 | { | |
16763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16764 | result = (arg1)->GetToolMargins(); | |
16765 | ||
16766 | wxPyEndAllowThreads(__tstate); | |
16767 | if (PyErr_Occurred()) SWIG_fail; | |
16768 | } | |
16769 | { | |
16770 | wxSize * resultptr; | |
16771 | resultptr = new wxSize((wxSize &) result); | |
16772 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16773 | } | |
16774 | return resultobj; | |
16775 | fail: | |
16776 | return NULL; | |
16777 | } | |
16778 | ||
16779 | ||
16780 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16781 | PyObject *resultobj; | |
16782 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16783 | wxSize result; | |
16784 | PyObject * obj0 = 0 ; | |
16785 | char *kwnames[] = { | |
16786 | (char *) "self", NULL | |
16787 | }; | |
16788 | ||
16789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
16790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16791 | { | |
16792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16793 | result = (arg1)->GetMargins(); | |
16794 | ||
16795 | wxPyEndAllowThreads(__tstate); | |
16796 | if (PyErr_Occurred()) SWIG_fail; | |
16797 | } | |
16798 | { | |
16799 | wxSize * resultptr; | |
16800 | resultptr = new wxSize((wxSize &) result); | |
16801 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16802 | } | |
16803 | return resultobj; | |
16804 | fail: | |
16805 | return NULL; | |
16806 | } | |
16807 | ||
16808 | ||
16809 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16810 | PyObject *resultobj; | |
16811 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16812 | int result; | |
16813 | PyObject * obj0 = 0 ; | |
16814 | char *kwnames[] = { | |
16815 | (char *) "self", NULL | |
16816 | }; | |
16817 | ||
16818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
16819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16820 | { | |
16821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16822 | result = (int)(arg1)->GetToolPacking(); | |
16823 | ||
16824 | wxPyEndAllowThreads(__tstate); | |
16825 | if (PyErr_Occurred()) SWIG_fail; | |
16826 | } | |
994141e6 | 16827 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16828 | return resultobj; |
16829 | fail: | |
16830 | return NULL; | |
16831 | } | |
16832 | ||
16833 | ||
16834 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16835 | PyObject *resultobj; | |
16836 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16837 | int result; | |
16838 | PyObject * obj0 = 0 ; | |
16839 | char *kwnames[] = { | |
16840 | (char *) "self", NULL | |
16841 | }; | |
16842 | ||
16843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
16844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16845 | { | |
16846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16847 | result = (int)(arg1)->GetToolSeparation(); | |
16848 | ||
16849 | wxPyEndAllowThreads(__tstate); | |
16850 | if (PyErr_Occurred()) SWIG_fail; | |
16851 | } | |
994141e6 | 16852 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16853 | return resultobj; |
16854 | fail: | |
16855 | return NULL; | |
16856 | } | |
16857 | ||
16858 | ||
16859 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16860 | PyObject *resultobj; | |
16861 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16862 | int arg2 ; | |
16863 | PyObject * obj0 = 0 ; | |
994141e6 | 16864 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16865 | char *kwnames[] = { |
16866 | (char *) "self",(char *) "nRows", NULL | |
16867 | }; | |
16868 | ||
994141e6 | 16869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16871 | { |
16872 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16873 | if (PyErr_Occurred()) SWIG_fail; | |
16874 | } | |
d14a1e28 RD |
16875 | { |
16876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16877 | (arg1)->SetRows(arg2); | |
16878 | ||
16879 | wxPyEndAllowThreads(__tstate); | |
16880 | if (PyErr_Occurred()) SWIG_fail; | |
16881 | } | |
16882 | Py_INCREF(Py_None); resultobj = Py_None; | |
16883 | return resultobj; | |
16884 | fail: | |
16885 | return NULL; | |
16886 | } | |
16887 | ||
16888 | ||
16889 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16890 | PyObject *resultobj; | |
16891 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16892 | int arg2 ; | |
16893 | int arg3 ; | |
16894 | PyObject * obj0 = 0 ; | |
994141e6 RD |
16895 | PyObject * obj1 = 0 ; |
16896 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16897 | char *kwnames[] = { |
16898 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
16899 | }; | |
16900 | ||
994141e6 | 16901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16903 | { |
16904 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16905 | if (PyErr_Occurred()) SWIG_fail; | |
16906 | } | |
16907 | { | |
16908 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16909 | if (PyErr_Occurred()) SWIG_fail; | |
16910 | } | |
d14a1e28 RD |
16911 | { |
16912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16913 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
16914 | ||
16915 | wxPyEndAllowThreads(__tstate); | |
16916 | if (PyErr_Occurred()) SWIG_fail; | |
16917 | } | |
16918 | Py_INCREF(Py_None); resultobj = Py_None; | |
16919 | return resultobj; | |
16920 | fail: | |
16921 | return NULL; | |
16922 | } | |
16923 | ||
16924 | ||
16925 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16926 | PyObject *resultobj; | |
16927 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16928 | int result; | |
16929 | PyObject * obj0 = 0 ; | |
16930 | char *kwnames[] = { | |
16931 | (char *) "self", NULL | |
16932 | }; | |
16933 | ||
16934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
16935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16936 | { | |
16937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16938 | result = (int)(arg1)->GetMaxRows(); | |
16939 | ||
16940 | wxPyEndAllowThreads(__tstate); | |
16941 | if (PyErr_Occurred()) SWIG_fail; | |
16942 | } | |
994141e6 | 16943 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16944 | return resultobj; |
16945 | fail: | |
16946 | return NULL; | |
16947 | } | |
16948 | ||
16949 | ||
16950 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16951 | PyObject *resultobj; | |
16952 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16953 | int result; | |
16954 | PyObject * obj0 = 0 ; | |
16955 | char *kwnames[] = { | |
16956 | (char *) "self", NULL | |
16957 | }; | |
16958 | ||
16959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
16960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16961 | { | |
16962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16963 | result = (int)(arg1)->GetMaxCols(); | |
16964 | ||
16965 | wxPyEndAllowThreads(__tstate); | |
16966 | if (PyErr_Occurred()) SWIG_fail; | |
16967 | } | |
994141e6 | 16968 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16969 | return resultobj; |
16970 | fail: | |
16971 | return NULL; | |
16972 | } | |
16973 | ||
16974 | ||
16975 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16976 | PyObject *resultobj; | |
16977 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16978 | wxSize *arg2 = 0 ; | |
16979 | wxSize temp2 ; | |
16980 | PyObject * obj0 = 0 ; | |
16981 | PyObject * obj1 = 0 ; | |
16982 | char *kwnames[] = { | |
16983 | (char *) "self",(char *) "size", NULL | |
16984 | }; | |
16985 | ||
16986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
16987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16988 | { | |
16989 | arg2 = &temp2; | |
16990 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16991 | } | |
16992 | { | |
16993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16994 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
16995 | ||
16996 | wxPyEndAllowThreads(__tstate); | |
16997 | if (PyErr_Occurred()) SWIG_fail; | |
16998 | } | |
16999 | Py_INCREF(Py_None); resultobj = Py_None; | |
17000 | return resultobj; | |
17001 | fail: | |
17002 | return NULL; | |
17003 | } | |
17004 | ||
17005 | ||
17006 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17007 | PyObject *resultobj; | |
17008 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17009 | wxSize result; | |
17010 | PyObject * obj0 = 0 ; | |
17011 | char *kwnames[] = { | |
17012 | (char *) "self", NULL | |
17013 | }; | |
17014 | ||
17015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
17016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17017 | { | |
17018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17019 | result = (arg1)->GetToolBitmapSize(); | |
17020 | ||
17021 | wxPyEndAllowThreads(__tstate); | |
17022 | if (PyErr_Occurred()) SWIG_fail; | |
17023 | } | |
17024 | { | |
17025 | wxSize * resultptr; | |
17026 | resultptr = new wxSize((wxSize &) result); | |
17027 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
17028 | } | |
17029 | return resultobj; | |
17030 | fail: | |
17031 | return NULL; | |
17032 | } | |
17033 | ||
17034 | ||
17035 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17036 | PyObject *resultobj; | |
17037 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17038 | wxSize result; | |
17039 | PyObject * obj0 = 0 ; | |
17040 | char *kwnames[] = { | |
17041 | (char *) "self", NULL | |
17042 | }; | |
17043 | ||
17044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
17045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17046 | { | |
17047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17048 | result = (arg1)->GetToolSize(); | |
17049 | ||
17050 | wxPyEndAllowThreads(__tstate); | |
17051 | if (PyErr_Occurred()) SWIG_fail; | |
17052 | } | |
17053 | { | |
17054 | wxSize * resultptr; | |
17055 | resultptr = new wxSize((wxSize &) result); | |
17056 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
17057 | } | |
17058 | return resultobj; | |
17059 | fail: | |
17060 | return NULL; | |
17061 | } | |
17062 | ||
17063 | ||
17064 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17065 | PyObject *resultobj; | |
17066 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
e811c8ce RD |
17067 | int arg2 ; |
17068 | int arg3 ; | |
d14a1e28 RD |
17069 | wxToolBarToolBase *result; |
17070 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17071 | PyObject * obj1 = 0 ; |
17072 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17073 | char *kwnames[] = { |
17074 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17075 | }; | |
17076 | ||
994141e6 | 17077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17079 | { |
17080 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17081 | if (PyErr_Occurred()) SWIG_fail; | |
17082 | } | |
17083 | { | |
17084 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17085 | if (PyErr_Occurred()) SWIG_fail; | |
17086 | } | |
d14a1e28 RD |
17087 | { |
17088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17089 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17090 | ||
17091 | wxPyEndAllowThreads(__tstate); | |
17092 | if (PyErr_Occurred()) SWIG_fail; | |
17093 | } | |
17094 | { | |
17095 | resultobj = wxPyMake_wxObject(result); | |
17096 | } | |
17097 | return resultobj; | |
17098 | fail: | |
17099 | return NULL; | |
17100 | } | |
17101 | ||
17102 | ||
3a04f143 RD |
17103 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
17104 | PyObject *resultobj; | |
17105 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17106 | int arg2 ; | |
17107 | wxToolBarToolBase *result; | |
17108 | PyObject * obj0 = 0 ; | |
994141e6 | 17109 | PyObject * obj1 = 0 ; |
3a04f143 RD |
17110 | char *kwnames[] = { |
17111 | (char *) "self",(char *) "toolid", NULL | |
17112 | }; | |
17113 | ||
994141e6 | 17114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
3a04f143 | 17115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17116 | { |
17117 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17118 | if (PyErr_Occurred()) SWIG_fail; | |
17119 | } | |
3a04f143 RD |
17120 | { |
17121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17122 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
17123 | ||
17124 | wxPyEndAllowThreads(__tstate); | |
17125 | if (PyErr_Occurred()) SWIG_fail; | |
17126 | } | |
17127 | { | |
17128 | resultobj = wxPyMake_wxObject(result); | |
17129 | } | |
17130 | return resultobj; | |
17131 | fail: | |
17132 | return NULL; | |
17133 | } | |
17134 | ||
17135 | ||
d14a1e28 RD |
17136 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
17137 | PyObject *resultobj; | |
17138 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17139 | bool result; | |
17140 | PyObject * obj0 = 0 ; | |
17141 | char *kwnames[] = { | |
17142 | (char *) "self", NULL | |
17143 | }; | |
17144 | ||
17145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
17146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17147 | { | |
17148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17149 | result = (bool)(arg1)->IsVertical(); | |
17150 | ||
17151 | wxPyEndAllowThreads(__tstate); | |
17152 | if (PyErr_Occurred()) SWIG_fail; | |
17153 | } | |
4d5c3d91 | 17154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17155 | return resultobj; |
17156 | fail: | |
17157 | return NULL; | |
17158 | } | |
17159 | ||
17160 | ||
17161 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
17162 | PyObject *obj; | |
17163 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17164 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
17165 | Py_INCREF(obj); | |
17166 | return Py_BuildValue((char *)""); | |
17167 | } | |
17168 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17169 | PyObject *resultobj; | |
17170 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 17171 | int arg2 ; |
d14a1e28 RD |
17172 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17173 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17174 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17175 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17176 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17177 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
17178 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17179 | wxToolBar *result; | |
17180 | wxPoint temp3 ; | |
17181 | wxSize temp4 ; | |
e811c8ce | 17182 | bool temp6 = False ; |
d14a1e28 | 17183 | PyObject * obj0 = 0 ; |
994141e6 | 17184 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17185 | PyObject * obj2 = 0 ; |
17186 | PyObject * obj3 = 0 ; | |
994141e6 | 17187 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17188 | PyObject * obj5 = 0 ; |
17189 | char *kwnames[] = { | |
17190 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17191 | }; | |
17192 | ||
994141e6 | 17193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 17194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17195 | { |
17196 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17197 | if (PyErr_Occurred()) SWIG_fail; | |
17198 | } | |
d14a1e28 RD |
17199 | if (obj2) { |
17200 | { | |
17201 | arg3 = &temp3; | |
17202 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17203 | } | |
17204 | } | |
17205 | if (obj3) { | |
17206 | { | |
17207 | arg4 = &temp4; | |
17208 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17209 | } | |
17210 | } | |
994141e6 RD |
17211 | if (obj4) { |
17212 | { | |
17213 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
17214 | if (PyErr_Occurred()) SWIG_fail; | |
17215 | } | |
17216 | } | |
d14a1e28 RD |
17217 | if (obj5) { |
17218 | { | |
17219 | arg6 = wxString_in_helper(obj5); | |
17220 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 17221 | temp6 = True; |
d14a1e28 RD |
17222 | } |
17223 | } | |
17224 | { | |
17225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17226 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17227 | ||
17228 | wxPyEndAllowThreads(__tstate); | |
17229 | if (PyErr_Occurred()) SWIG_fail; | |
17230 | } | |
17231 | { | |
17232 | resultobj = wxPyMake_wxObject(result); | |
17233 | } | |
17234 | { | |
17235 | if (temp6) | |
17236 | delete arg6; | |
17237 | } | |
17238 | return resultobj; | |
17239 | fail: | |
17240 | { | |
17241 | if (temp6) | |
17242 | delete arg6; | |
17243 | } | |
17244 | return NULL; | |
17245 | } | |
17246 | ||
17247 | ||
17248 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17249 | PyObject *resultobj; | |
17250 | wxToolBar *result; | |
17251 | char *kwnames[] = { | |
17252 | NULL | |
17253 | }; | |
17254 | ||
17255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
17256 | { | |
17257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17258 | result = (wxToolBar *)new wxToolBar(); | |
17259 | ||
17260 | wxPyEndAllowThreads(__tstate); | |
17261 | if (PyErr_Occurred()) SWIG_fail; | |
17262 | } | |
17263 | { | |
17264 | resultobj = wxPyMake_wxObject(result); | |
17265 | } | |
17266 | return resultobj; | |
17267 | fail: | |
17268 | return NULL; | |
17269 | } | |
17270 | ||
17271 | ||
17272 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17273 | PyObject *resultobj; | |
17274 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
17275 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 17276 | int arg3 ; |
d14a1e28 RD |
17277 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17278 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17279 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17280 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17281 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17282 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
17283 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17284 | bool result; | |
17285 | wxPoint temp4 ; | |
17286 | wxSize temp5 ; | |
e811c8ce | 17287 | bool temp7 = False ; |
d14a1e28 RD |
17288 | PyObject * obj0 = 0 ; |
17289 | PyObject * obj1 = 0 ; | |
994141e6 | 17290 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17291 | PyObject * obj3 = 0 ; |
17292 | PyObject * obj4 = 0 ; | |
994141e6 | 17293 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17294 | PyObject * obj6 = 0 ; |
17295 | char *kwnames[] = { | |
17296 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17297 | }; | |
17298 | ||
994141e6 | 17299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
17300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
17301 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
17302 | { |
17303 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17304 | if (PyErr_Occurred()) SWIG_fail; | |
17305 | } | |
d14a1e28 RD |
17306 | if (obj3) { |
17307 | { | |
17308 | arg4 = &temp4; | |
17309 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17310 | } | |
17311 | } | |
17312 | if (obj4) { | |
17313 | { | |
17314 | arg5 = &temp5; | |
17315 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17316 | } | |
17317 | } | |
994141e6 RD |
17318 | if (obj5) { |
17319 | { | |
17320 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
17321 | if (PyErr_Occurred()) SWIG_fail; | |
17322 | } | |
17323 | } | |
d14a1e28 RD |
17324 | if (obj6) { |
17325 | { | |
17326 | arg7 = wxString_in_helper(obj6); | |
17327 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 17328 | temp7 = True; |
d14a1e28 RD |
17329 | } |
17330 | } | |
17331 | { | |
17332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17333 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17334 | ||
17335 | wxPyEndAllowThreads(__tstate); | |
17336 | if (PyErr_Occurred()) SWIG_fail; | |
17337 | } | |
4d5c3d91 | 17338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17339 | { |
17340 | if (temp7) | |
17341 | delete arg7; | |
17342 | } | |
17343 | return resultobj; | |
17344 | fail: | |
17345 | { | |
17346 | if (temp7) | |
17347 | delete arg7; | |
17348 | } | |
17349 | return NULL; | |
17350 | } | |
17351 | ||
17352 | ||
17353 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17354 | PyObject *resultobj; | |
17355 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
e811c8ce RD |
17356 | int arg2 ; |
17357 | int arg3 ; | |
d14a1e28 RD |
17358 | wxToolBarToolBase *result; |
17359 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17360 | PyObject * obj1 = 0 ; |
17361 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17362 | char *kwnames[] = { |
17363 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17364 | }; | |
17365 | ||
994141e6 | 17366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17368 | { |
17369 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17370 | if (PyErr_Occurred()) SWIG_fail; | |
17371 | } | |
17372 | { | |
17373 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17374 | if (PyErr_Occurred()) SWIG_fail; | |
17375 | } | |
d14a1e28 RD |
17376 | { |
17377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17378 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17379 | ||
17380 | wxPyEndAllowThreads(__tstate); | |
17381 | if (PyErr_Occurred()) SWIG_fail; | |
17382 | } | |
17383 | { | |
17384 | resultobj = wxPyMake_wxObject(result); | |
17385 | } | |
17386 | return resultobj; | |
17387 | fail: | |
17388 | return NULL; | |
17389 | } | |
17390 | ||
17391 | ||
17392 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
17393 | PyObject *obj; | |
17394 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17395 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
17396 | Py_INCREF(obj); | |
17397 | return Py_BuildValue((char *)""); | |
17398 | } | |
b2dc1044 RD |
17399 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { |
17400 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); | |
17401 | return 1; | |
17402 | } | |
17403 | ||
17404 | ||
17405 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
17406 | PyObject *pyobj; | |
17407 | ||
17408 | { | |
17409 | #if wxUSE_UNICODE | |
17410 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17411 | #else | |
17412 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17413 | #endif | |
17414 | } | |
17415 | return pyobj; | |
17416 | } | |
17417 | ||
17418 | ||
d14a1e28 RD |
17419 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
17420 | PyObject *resultobj; | |
17421 | wxColour const &arg1_defvalue = wxNullColour ; | |
17422 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
17423 | wxColour const &arg2_defvalue = wxNullColour ; | |
17424 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
17425 | wxFont const &arg3_defvalue = wxNullFont ; | |
17426 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
17427 | wxListItemAttr *result; | |
17428 | wxColour temp1 ; | |
17429 | wxColour temp2 ; | |
17430 | PyObject * obj0 = 0 ; | |
17431 | PyObject * obj1 = 0 ; | |
17432 | PyObject * obj2 = 0 ; | |
17433 | char *kwnames[] = { | |
17434 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
17435 | }; | |
17436 | ||
17437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17438 | if (obj0) { | |
17439 | { | |
17440 | arg1 = &temp1; | |
17441 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
17442 | } | |
17443 | } | |
17444 | if (obj1) { | |
17445 | { | |
17446 | arg2 = &temp2; | |
17447 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17448 | } | |
17449 | } | |
17450 | if (obj2) { | |
17451 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17452 | if (arg3 == NULL) { | |
17453 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17454 | } | |
17455 | } | |
17456 | { | |
17457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17458 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
17459 | ||
17460 | wxPyEndAllowThreads(__tstate); | |
17461 | if (PyErr_Occurred()) SWIG_fail; | |
17462 | } | |
17463 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 1); | |
17464 | return resultobj; | |
17465 | fail: | |
17466 | return NULL; | |
17467 | } | |
17468 | ||
17469 | ||
17470 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17471 | PyObject *resultobj; | |
17472 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17473 | wxColour *arg2 = 0 ; | |
17474 | wxColour temp2 ; | |
17475 | PyObject * obj0 = 0 ; | |
17476 | PyObject * obj1 = 0 ; | |
17477 | char *kwnames[] = { | |
17478 | (char *) "self",(char *) "colText", NULL | |
17479 | }; | |
17480 | ||
17481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
17482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17483 | { | |
17484 | arg2 = &temp2; | |
17485 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17486 | } | |
17487 | { | |
17488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17489 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
17490 | ||
17491 | wxPyEndAllowThreads(__tstate); | |
17492 | if (PyErr_Occurred()) SWIG_fail; | |
17493 | } | |
17494 | Py_INCREF(Py_None); resultobj = Py_None; | |
17495 | return resultobj; | |
17496 | fail: | |
17497 | return NULL; | |
17498 | } | |
17499 | ||
17500 | ||
17501 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17502 | PyObject *resultobj; | |
17503 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17504 | wxColour *arg2 = 0 ; | |
17505 | wxColour temp2 ; | |
17506 | PyObject * obj0 = 0 ; | |
17507 | PyObject * obj1 = 0 ; | |
17508 | char *kwnames[] = { | |
17509 | (char *) "self",(char *) "colBack", NULL | |
17510 | }; | |
17511 | ||
17512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17514 | { | |
17515 | arg2 = &temp2; | |
17516 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17517 | } | |
17518 | { | |
17519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17520 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17521 | ||
17522 | wxPyEndAllowThreads(__tstate); | |
17523 | if (PyErr_Occurred()) SWIG_fail; | |
17524 | } | |
17525 | Py_INCREF(Py_None); resultobj = Py_None; | |
17526 | return resultobj; | |
17527 | fail: | |
17528 | return NULL; | |
17529 | } | |
17530 | ||
17531 | ||
17532 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17533 | PyObject *resultobj; | |
17534 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17535 | wxFont *arg2 = 0 ; | |
17536 | PyObject * obj0 = 0 ; | |
17537 | PyObject * obj1 = 0 ; | |
17538 | char *kwnames[] = { | |
17539 | (char *) "self",(char *) "font", NULL | |
17540 | }; | |
17541 | ||
17542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
17543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17544 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17545 | if (arg2 == NULL) { | |
17546 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17547 | } | |
17548 | { | |
17549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17550 | (arg1)->SetFont((wxFont const &)*arg2); | |
17551 | ||
17552 | wxPyEndAllowThreads(__tstate); | |
17553 | if (PyErr_Occurred()) SWIG_fail; | |
17554 | } | |
17555 | Py_INCREF(Py_None); resultobj = Py_None; | |
17556 | return resultobj; | |
17557 | fail: | |
17558 | return NULL; | |
17559 | } | |
17560 | ||
17561 | ||
17562 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17563 | PyObject *resultobj; | |
17564 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17565 | bool result; | |
17566 | PyObject * obj0 = 0 ; | |
17567 | char *kwnames[] = { | |
17568 | (char *) "self", NULL | |
17569 | }; | |
17570 | ||
17571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
17572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17573 | { | |
17574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17575 | result = (bool)(arg1)->HasTextColour(); | |
17576 | ||
17577 | wxPyEndAllowThreads(__tstate); | |
17578 | if (PyErr_Occurred()) SWIG_fail; | |
17579 | } | |
4d5c3d91 | 17580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17581 | return resultobj; |
17582 | fail: | |
17583 | return NULL; | |
17584 | } | |
17585 | ||
17586 | ||
17587 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17588 | PyObject *resultobj; | |
17589 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17590 | bool result; | |
17591 | PyObject * obj0 = 0 ; | |
17592 | char *kwnames[] = { | |
17593 | (char *) "self", NULL | |
17594 | }; | |
17595 | ||
17596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
17597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17598 | { | |
17599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17600 | result = (bool)(arg1)->HasBackgroundColour(); | |
17601 | ||
17602 | wxPyEndAllowThreads(__tstate); | |
17603 | if (PyErr_Occurred()) SWIG_fail; | |
17604 | } | |
4d5c3d91 | 17605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17606 | return resultobj; |
17607 | fail: | |
17608 | return NULL; | |
17609 | } | |
17610 | ||
17611 | ||
17612 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17613 | PyObject *resultobj; | |
17614 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17615 | bool result; | |
17616 | PyObject * obj0 = 0 ; | |
17617 | char *kwnames[] = { | |
17618 | (char *) "self", NULL | |
17619 | }; | |
17620 | ||
17621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
17622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17623 | { | |
17624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17625 | result = (bool)(arg1)->HasFont(); | |
17626 | ||
17627 | wxPyEndAllowThreads(__tstate); | |
17628 | if (PyErr_Occurred()) SWIG_fail; | |
17629 | } | |
4d5c3d91 | 17630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17631 | return resultobj; |
17632 | fail: | |
17633 | return NULL; | |
17634 | } | |
17635 | ||
17636 | ||
17637 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17638 | PyObject *resultobj; | |
17639 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17640 | wxColour result; | |
17641 | PyObject * obj0 = 0 ; | |
17642 | char *kwnames[] = { | |
17643 | (char *) "self", NULL | |
17644 | }; | |
17645 | ||
17646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
17647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17648 | { | |
17649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17650 | result = (arg1)->GetTextColour(); | |
17651 | ||
17652 | wxPyEndAllowThreads(__tstate); | |
17653 | if (PyErr_Occurred()) SWIG_fail; | |
17654 | } | |
17655 | { | |
17656 | wxColour * resultptr; | |
17657 | resultptr = new wxColour((wxColour &) result); | |
17658 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17659 | } | |
17660 | return resultobj; | |
17661 | fail: | |
17662 | return NULL; | |
17663 | } | |
17664 | ||
17665 | ||
17666 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17667 | PyObject *resultobj; | |
17668 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17669 | wxColour result; | |
17670 | PyObject * obj0 = 0 ; | |
17671 | char *kwnames[] = { | |
17672 | (char *) "self", NULL | |
17673 | }; | |
17674 | ||
17675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
17676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17677 | { | |
17678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17679 | result = (arg1)->GetBackgroundColour(); | |
17680 | ||
17681 | wxPyEndAllowThreads(__tstate); | |
17682 | if (PyErr_Occurred()) SWIG_fail; | |
17683 | } | |
17684 | { | |
17685 | wxColour * resultptr; | |
17686 | resultptr = new wxColour((wxColour &) result); | |
17687 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17688 | } | |
17689 | return resultobj; | |
17690 | fail: | |
17691 | return NULL; | |
17692 | } | |
17693 | ||
17694 | ||
17695 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17696 | PyObject *resultobj; | |
17697 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17698 | wxFont result; | |
17699 | PyObject * obj0 = 0 ; | |
17700 | char *kwnames[] = { | |
17701 | (char *) "self", NULL | |
17702 | }; | |
17703 | ||
17704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
17705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17706 | { | |
17707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17708 | result = (arg1)->GetFont(); | |
17709 | ||
17710 | wxPyEndAllowThreads(__tstate); | |
17711 | if (PyErr_Occurred()) SWIG_fail; | |
17712 | } | |
17713 | { | |
17714 | wxFont * resultptr; | |
17715 | resultptr = new wxFont((wxFont &) result); | |
17716 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
17717 | } | |
17718 | return resultobj; | |
17719 | fail: | |
17720 | return NULL; | |
17721 | } | |
17722 | ||
17723 | ||
17724 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17725 | PyObject *resultobj; | |
17726 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17727 | PyObject * obj0 = 0 ; | |
17728 | char *kwnames[] = { | |
17729 | (char *) "self", NULL | |
17730 | }; | |
17731 | ||
17732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
17733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17734 | { | |
17735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17736 | wxListItemAttr_Destroy(arg1); | |
17737 | ||
17738 | wxPyEndAllowThreads(__tstate); | |
17739 | if (PyErr_Occurred()) SWIG_fail; | |
17740 | } | |
17741 | Py_INCREF(Py_None); resultobj = Py_None; | |
17742 | return resultobj; | |
17743 | fail: | |
17744 | return NULL; | |
17745 | } | |
17746 | ||
17747 | ||
17748 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
17749 | PyObject *obj; | |
17750 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17751 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
17752 | Py_INCREF(obj); | |
17753 | return Py_BuildValue((char *)""); | |
17754 | } | |
17755 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17756 | PyObject *resultobj; | |
17757 | wxListItem *result; | |
17758 | char *kwnames[] = { | |
17759 | NULL | |
17760 | }; | |
17761 | ||
17762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
17763 | { | |
17764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17765 | result = (wxListItem *)new wxListItem(); | |
17766 | ||
17767 | wxPyEndAllowThreads(__tstate); | |
17768 | if (PyErr_Occurred()) SWIG_fail; | |
17769 | } | |
17770 | { | |
17771 | resultobj = wxPyMake_wxObject(result); | |
17772 | } | |
17773 | return resultobj; | |
17774 | fail: | |
17775 | return NULL; | |
17776 | } | |
17777 | ||
17778 | ||
17779 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17780 | PyObject *resultobj; | |
17781 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17782 | PyObject * obj0 = 0 ; | |
17783 | char *kwnames[] = { | |
17784 | (char *) "self", NULL | |
17785 | }; | |
17786 | ||
17787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
17788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17789 | { | |
17790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17791 | delete arg1; | |
17792 | ||
17793 | wxPyEndAllowThreads(__tstate); | |
17794 | if (PyErr_Occurred()) SWIG_fail; | |
17795 | } | |
17796 | Py_INCREF(Py_None); resultobj = Py_None; | |
17797 | return resultobj; | |
17798 | fail: | |
17799 | return NULL; | |
17800 | } | |
17801 | ||
17802 | ||
17803 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17804 | PyObject *resultobj; | |
17805 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17806 | PyObject * obj0 = 0 ; | |
17807 | char *kwnames[] = { | |
17808 | (char *) "self", NULL | |
17809 | }; | |
17810 | ||
17811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
17812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17813 | { | |
17814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17815 | (arg1)->Clear(); | |
17816 | ||
17817 | wxPyEndAllowThreads(__tstate); | |
17818 | if (PyErr_Occurred()) SWIG_fail; | |
17819 | } | |
17820 | Py_INCREF(Py_None); resultobj = Py_None; | |
17821 | return resultobj; | |
17822 | fail: | |
17823 | return NULL; | |
17824 | } | |
17825 | ||
17826 | ||
17827 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17828 | PyObject *resultobj; | |
17829 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17830 | PyObject * obj0 = 0 ; | |
17831 | char *kwnames[] = { | |
17832 | (char *) "self", NULL | |
17833 | }; | |
17834 | ||
17835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
17836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17837 | { | |
17838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17839 | (arg1)->ClearAttributes(); | |
17840 | ||
17841 | wxPyEndAllowThreads(__tstate); | |
17842 | if (PyErr_Occurred()) SWIG_fail; | |
17843 | } | |
17844 | Py_INCREF(Py_None); resultobj = Py_None; | |
17845 | return resultobj; | |
17846 | fail: | |
17847 | return NULL; | |
17848 | } | |
17849 | ||
17850 | ||
17851 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17852 | PyObject *resultobj; | |
17853 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17854 | long arg2 ; | |
17855 | PyObject * obj0 = 0 ; | |
994141e6 | 17856 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17857 | char *kwnames[] = { |
17858 | (char *) "self",(char *) "mask", NULL | |
17859 | }; | |
17860 | ||
994141e6 | 17861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17863 | { |
17864 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17865 | if (PyErr_Occurred()) SWIG_fail; | |
17866 | } | |
d14a1e28 RD |
17867 | { |
17868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17869 | (arg1)->SetMask(arg2); | |
17870 | ||
17871 | wxPyEndAllowThreads(__tstate); | |
17872 | if (PyErr_Occurred()) SWIG_fail; | |
17873 | } | |
17874 | Py_INCREF(Py_None); resultobj = Py_None; | |
17875 | return resultobj; | |
17876 | fail: | |
17877 | return NULL; | |
17878 | } | |
17879 | ||
17880 | ||
17881 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17882 | PyObject *resultobj; | |
17883 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17884 | long arg2 ; | |
17885 | PyObject * obj0 = 0 ; | |
994141e6 | 17886 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17887 | char *kwnames[] = { |
17888 | (char *) "self",(char *) "id", NULL | |
17889 | }; | |
17890 | ||
994141e6 | 17891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17893 | { |
17894 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17895 | if (PyErr_Occurred()) SWIG_fail; | |
17896 | } | |
d14a1e28 RD |
17897 | { |
17898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17899 | (arg1)->SetId(arg2); | |
17900 | ||
17901 | wxPyEndAllowThreads(__tstate); | |
17902 | if (PyErr_Occurred()) SWIG_fail; | |
17903 | } | |
17904 | Py_INCREF(Py_None); resultobj = Py_None; | |
17905 | return resultobj; | |
17906 | fail: | |
17907 | return NULL; | |
17908 | } | |
17909 | ||
17910 | ||
17911 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17912 | PyObject *resultobj; | |
17913 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17914 | int arg2 ; | |
17915 | PyObject * obj0 = 0 ; | |
994141e6 | 17916 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17917 | char *kwnames[] = { |
17918 | (char *) "self",(char *) "col", NULL | |
17919 | }; | |
17920 | ||
994141e6 | 17921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17923 | { |
17924 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17925 | if (PyErr_Occurred()) SWIG_fail; | |
17926 | } | |
d14a1e28 RD |
17927 | { |
17928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17929 | (arg1)->SetColumn(arg2); | |
17930 | ||
17931 | wxPyEndAllowThreads(__tstate); | |
17932 | if (PyErr_Occurred()) SWIG_fail; | |
17933 | } | |
17934 | Py_INCREF(Py_None); resultobj = Py_None; | |
17935 | return resultobj; | |
17936 | fail: | |
17937 | return NULL; | |
17938 | } | |
17939 | ||
17940 | ||
17941 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17942 | PyObject *resultobj; | |
17943 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17944 | long arg2 ; | |
17945 | PyObject * obj0 = 0 ; | |
994141e6 | 17946 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17947 | char *kwnames[] = { |
17948 | (char *) "self",(char *) "state", NULL | |
17949 | }; | |
17950 | ||
994141e6 | 17951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17953 | { |
17954 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17955 | if (PyErr_Occurred()) SWIG_fail; | |
17956 | } | |
d14a1e28 RD |
17957 | { |
17958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17959 | (arg1)->SetState(arg2); | |
17960 | ||
17961 | wxPyEndAllowThreads(__tstate); | |
17962 | if (PyErr_Occurred()) SWIG_fail; | |
17963 | } | |
17964 | Py_INCREF(Py_None); resultobj = Py_None; | |
17965 | return resultobj; | |
17966 | fail: | |
17967 | return NULL; | |
17968 | } | |
17969 | ||
17970 | ||
17971 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17972 | PyObject *resultobj; | |
17973 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17974 | long arg2 ; | |
17975 | PyObject * obj0 = 0 ; | |
994141e6 | 17976 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17977 | char *kwnames[] = { |
17978 | (char *) "self",(char *) "stateMask", NULL | |
17979 | }; | |
17980 | ||
994141e6 | 17981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17983 | { |
17984 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17985 | if (PyErr_Occurred()) SWIG_fail; | |
17986 | } | |
d14a1e28 RD |
17987 | { |
17988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17989 | (arg1)->SetStateMask(arg2); | |
17990 | ||
17991 | wxPyEndAllowThreads(__tstate); | |
17992 | if (PyErr_Occurred()) SWIG_fail; | |
17993 | } | |
17994 | Py_INCREF(Py_None); resultobj = Py_None; | |
17995 | return resultobj; | |
17996 | fail: | |
17997 | return NULL; | |
17998 | } | |
17999 | ||
18000 | ||
18001 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18002 | PyObject *resultobj; | |
18003 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18004 | wxString *arg2 = 0 ; | |
e811c8ce | 18005 | bool temp2 = False ; |
d14a1e28 RD |
18006 | PyObject * obj0 = 0 ; |
18007 | PyObject * obj1 = 0 ; | |
18008 | char *kwnames[] = { | |
18009 | (char *) "self",(char *) "text", NULL | |
18010 | }; | |
18011 | ||
18012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18014 | { | |
18015 | arg2 = wxString_in_helper(obj1); | |
18016 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 18017 | temp2 = True; |
d14a1e28 RD |
18018 | } |
18019 | { | |
18020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18021 | (arg1)->SetText((wxString const &)*arg2); | |
18022 | ||
18023 | wxPyEndAllowThreads(__tstate); | |
18024 | if (PyErr_Occurred()) SWIG_fail; | |
18025 | } | |
18026 | Py_INCREF(Py_None); resultobj = Py_None; | |
18027 | { | |
18028 | if (temp2) | |
18029 | delete arg2; | |
18030 | } | |
18031 | return resultobj; | |
18032 | fail: | |
18033 | { | |
18034 | if (temp2) | |
18035 | delete arg2; | |
18036 | } | |
18037 | return NULL; | |
18038 | } | |
18039 | ||
18040 | ||
18041 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18042 | PyObject *resultobj; | |
18043 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18044 | int arg2 ; | |
18045 | PyObject * obj0 = 0 ; | |
994141e6 | 18046 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18047 | char *kwnames[] = { |
18048 | (char *) "self",(char *) "image", NULL | |
18049 | }; | |
18050 | ||
994141e6 | 18051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18053 | { |
18054 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18055 | if (PyErr_Occurred()) SWIG_fail; | |
18056 | } | |
d14a1e28 RD |
18057 | { |
18058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18059 | (arg1)->SetImage(arg2); | |
18060 | ||
18061 | wxPyEndAllowThreads(__tstate); | |
18062 | if (PyErr_Occurred()) SWIG_fail; | |
18063 | } | |
18064 | Py_INCREF(Py_None); resultobj = Py_None; | |
18065 | return resultobj; | |
18066 | fail: | |
18067 | return NULL; | |
18068 | } | |
18069 | ||
18070 | ||
18071 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18072 | PyObject *resultobj; | |
18073 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18074 | long arg2 ; | |
18075 | PyObject * obj0 = 0 ; | |
994141e6 | 18076 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18077 | char *kwnames[] = { |
18078 | (char *) "self",(char *) "data", NULL | |
18079 | }; | |
18080 | ||
994141e6 | 18081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18083 | { |
18084 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18085 | if (PyErr_Occurred()) SWIG_fail; | |
18086 | } | |
d14a1e28 RD |
18087 | { |
18088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18089 | (arg1)->SetData(arg2); | |
18090 | ||
18091 | wxPyEndAllowThreads(__tstate); | |
18092 | if (PyErr_Occurred()) SWIG_fail; | |
18093 | } | |
18094 | Py_INCREF(Py_None); resultobj = Py_None; | |
18095 | return resultobj; | |
18096 | fail: | |
18097 | return NULL; | |
18098 | } | |
18099 | ||
18100 | ||
18101 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18102 | PyObject *resultobj; | |
18103 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18104 | int arg2 ; | |
18105 | PyObject * obj0 = 0 ; | |
994141e6 | 18106 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18107 | char *kwnames[] = { |
18108 | (char *) "self",(char *) "width", NULL | |
18109 | }; | |
18110 | ||
994141e6 | 18111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18113 | { |
18114 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18115 | if (PyErr_Occurred()) SWIG_fail; | |
18116 | } | |
d14a1e28 RD |
18117 | { |
18118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18119 | (arg1)->SetWidth(arg2); | |
18120 | ||
18121 | wxPyEndAllowThreads(__tstate); | |
18122 | if (PyErr_Occurred()) SWIG_fail; | |
18123 | } | |
18124 | Py_INCREF(Py_None); resultobj = Py_None; | |
18125 | return resultobj; | |
18126 | fail: | |
18127 | return NULL; | |
18128 | } | |
18129 | ||
18130 | ||
18131 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18132 | PyObject *resultobj; | |
18133 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18134 | int arg2 ; | |
18135 | PyObject * obj0 = 0 ; | |
994141e6 | 18136 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18137 | char *kwnames[] = { |
18138 | (char *) "self",(char *) "align", NULL | |
18139 | }; | |
18140 | ||
994141e6 | 18141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18143 | { |
18144 | arg2 = (wxListColumnFormat) SWIG_PyObj_AsInt(obj1); | |
18145 | if (PyErr_Occurred()) SWIG_fail; | |
18146 | } | |
d14a1e28 RD |
18147 | { |
18148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18149 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
18150 | ||
18151 | wxPyEndAllowThreads(__tstate); | |
18152 | if (PyErr_Occurred()) SWIG_fail; | |
18153 | } | |
18154 | Py_INCREF(Py_None); resultobj = Py_None; | |
18155 | return resultobj; | |
18156 | fail: | |
18157 | return NULL; | |
18158 | } | |
18159 | ||
18160 | ||
18161 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18162 | PyObject *resultobj; | |
18163 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18164 | wxColour *arg2 = 0 ; | |
18165 | wxColour temp2 ; | |
18166 | PyObject * obj0 = 0 ; | |
18167 | PyObject * obj1 = 0 ; | |
18168 | char *kwnames[] = { | |
18169 | (char *) "self",(char *) "colText", NULL | |
18170 | }; | |
18171 | ||
18172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18174 | { | |
18175 | arg2 = &temp2; | |
18176 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18177 | } | |
18178 | { | |
18179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18180 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18181 | ||
18182 | wxPyEndAllowThreads(__tstate); | |
18183 | if (PyErr_Occurred()) SWIG_fail; | |
18184 | } | |
18185 | Py_INCREF(Py_None); resultobj = Py_None; | |
18186 | return resultobj; | |
18187 | fail: | |
18188 | return NULL; | |
18189 | } | |
18190 | ||
18191 | ||
18192 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18193 | PyObject *resultobj; | |
18194 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18195 | wxColour *arg2 = 0 ; | |
18196 | wxColour temp2 ; | |
18197 | PyObject * obj0 = 0 ; | |
18198 | PyObject * obj1 = 0 ; | |
18199 | char *kwnames[] = { | |
18200 | (char *) "self",(char *) "colBack", NULL | |
18201 | }; | |
18202 | ||
18203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
18204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18205 | { | |
18206 | arg2 = &temp2; | |
18207 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18208 | } | |
18209 | { | |
18210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18211 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18212 | ||
18213 | wxPyEndAllowThreads(__tstate); | |
18214 | if (PyErr_Occurred()) SWIG_fail; | |
18215 | } | |
18216 | Py_INCREF(Py_None); resultobj = Py_None; | |
18217 | return resultobj; | |
18218 | fail: | |
18219 | return NULL; | |
18220 | } | |
18221 | ||
18222 | ||
18223 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18224 | PyObject *resultobj; | |
18225 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18226 | wxFont *arg2 = 0 ; | |
18227 | PyObject * obj0 = 0 ; | |
18228 | PyObject * obj1 = 0 ; | |
18229 | char *kwnames[] = { | |
18230 | (char *) "self",(char *) "font", NULL | |
18231 | }; | |
18232 | ||
18233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
18234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18235 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18236 | if (arg2 == NULL) { | |
18237 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18238 | } | |
18239 | { | |
18240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18241 | (arg1)->SetFont((wxFont const &)*arg2); | |
18242 | ||
18243 | wxPyEndAllowThreads(__tstate); | |
18244 | if (PyErr_Occurred()) SWIG_fail; | |
18245 | } | |
18246 | Py_INCREF(Py_None); resultobj = Py_None; | |
18247 | return resultobj; | |
18248 | fail: | |
18249 | return NULL; | |
18250 | } | |
18251 | ||
18252 | ||
18253 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18254 | PyObject *resultobj; | |
18255 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18256 | long result; | |
18257 | PyObject * obj0 = 0 ; | |
18258 | char *kwnames[] = { | |
18259 | (char *) "self", NULL | |
18260 | }; | |
18261 | ||
18262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
18263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18264 | { | |
18265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18266 | result = (long)(arg1)->GetMask(); | |
18267 | ||
18268 | wxPyEndAllowThreads(__tstate); | |
18269 | if (PyErr_Occurred()) SWIG_fail; | |
18270 | } | |
994141e6 | 18271 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18272 | return resultobj; |
18273 | fail: | |
18274 | return NULL; | |
18275 | } | |
18276 | ||
18277 | ||
18278 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18279 | PyObject *resultobj; | |
18280 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18281 | long result; | |
18282 | PyObject * obj0 = 0 ; | |
18283 | char *kwnames[] = { | |
18284 | (char *) "self", NULL | |
18285 | }; | |
18286 | ||
18287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
18288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18289 | { | |
18290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18291 | result = (long)(arg1)->GetId(); | |
18292 | ||
18293 | wxPyEndAllowThreads(__tstate); | |
18294 | if (PyErr_Occurred()) SWIG_fail; | |
18295 | } | |
994141e6 | 18296 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18297 | return resultobj; |
18298 | fail: | |
18299 | return NULL; | |
18300 | } | |
18301 | ||
18302 | ||
18303 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18304 | PyObject *resultobj; | |
18305 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18306 | int result; | |
18307 | PyObject * obj0 = 0 ; | |
18308 | char *kwnames[] = { | |
18309 | (char *) "self", NULL | |
18310 | }; | |
18311 | ||
18312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
18313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18314 | { | |
18315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18316 | result = (int)(arg1)->GetColumn(); | |
18317 | ||
18318 | wxPyEndAllowThreads(__tstate); | |
18319 | if (PyErr_Occurred()) SWIG_fail; | |
18320 | } | |
994141e6 | 18321 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18322 | return resultobj; |
18323 | fail: | |
18324 | return NULL; | |
18325 | } | |
18326 | ||
18327 | ||
18328 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18329 | PyObject *resultobj; | |
18330 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18331 | long result; | |
18332 | PyObject * obj0 = 0 ; | |
18333 | char *kwnames[] = { | |
18334 | (char *) "self", NULL | |
18335 | }; | |
18336 | ||
18337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
18338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18339 | { | |
18340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18341 | result = (long)(arg1)->GetState(); | |
18342 | ||
18343 | wxPyEndAllowThreads(__tstate); | |
18344 | if (PyErr_Occurred()) SWIG_fail; | |
18345 | } | |
994141e6 | 18346 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18347 | return resultobj; |
18348 | fail: | |
18349 | return NULL; | |
18350 | } | |
18351 | ||
18352 | ||
18353 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18354 | PyObject *resultobj; | |
18355 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18356 | wxString *result; | |
18357 | PyObject * obj0 = 0 ; | |
18358 | char *kwnames[] = { | |
18359 | (char *) "self", NULL | |
18360 | }; | |
18361 | ||
18362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
18363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18364 | { | |
18365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18366 | { | |
18367 | wxString const &_result_ref = (arg1)->GetText(); | |
18368 | result = (wxString *) &_result_ref; | |
18369 | } | |
18370 | ||
18371 | wxPyEndAllowThreads(__tstate); | |
18372 | if (PyErr_Occurred()) SWIG_fail; | |
18373 | } | |
cc6dd355 RD |
18374 | { |
18375 | #if wxUSE_UNICODE | |
18376 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18377 | #else | |
18378 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18379 | #endif | |
18380 | } | |
d14a1e28 RD |
18381 | return resultobj; |
18382 | fail: | |
18383 | return NULL; | |
18384 | } | |
18385 | ||
18386 | ||
18387 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18388 | PyObject *resultobj; | |
18389 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18390 | int result; | |
18391 | PyObject * obj0 = 0 ; | |
18392 | char *kwnames[] = { | |
18393 | (char *) "self", NULL | |
18394 | }; | |
18395 | ||
18396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
18397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18398 | { | |
18399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18400 | result = (int)(arg1)->GetImage(); | |
18401 | ||
18402 | wxPyEndAllowThreads(__tstate); | |
18403 | if (PyErr_Occurred()) SWIG_fail; | |
18404 | } | |
994141e6 | 18405 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18406 | return resultobj; |
18407 | fail: | |
18408 | return NULL; | |
18409 | } | |
18410 | ||
18411 | ||
18412 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18413 | PyObject *resultobj; | |
18414 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18415 | long result; | |
18416 | PyObject * obj0 = 0 ; | |
18417 | char *kwnames[] = { | |
18418 | (char *) "self", NULL | |
18419 | }; | |
18420 | ||
18421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
18422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18423 | { | |
18424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18425 | result = (long)(arg1)->GetData(); | |
18426 | ||
18427 | wxPyEndAllowThreads(__tstate); | |
18428 | if (PyErr_Occurred()) SWIG_fail; | |
18429 | } | |
994141e6 | 18430 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18431 | return resultobj; |
18432 | fail: | |
18433 | return NULL; | |
18434 | } | |
18435 | ||
18436 | ||
18437 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18438 | PyObject *resultobj; | |
18439 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18440 | int result; | |
18441 | PyObject * obj0 = 0 ; | |
18442 | char *kwnames[] = { | |
18443 | (char *) "self", NULL | |
18444 | }; | |
18445 | ||
18446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
18447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18448 | { | |
18449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18450 | result = (int)(arg1)->GetWidth(); | |
18451 | ||
18452 | wxPyEndAllowThreads(__tstate); | |
18453 | if (PyErr_Occurred()) SWIG_fail; | |
18454 | } | |
994141e6 | 18455 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18456 | return resultobj; |
18457 | fail: | |
18458 | return NULL; | |
18459 | } | |
18460 | ||
18461 | ||
18462 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18463 | PyObject *resultobj; | |
18464 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18465 | int result; | |
18466 | PyObject * obj0 = 0 ; | |
18467 | char *kwnames[] = { | |
18468 | (char *) "self", NULL | |
18469 | }; | |
18470 | ||
18471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
18472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18473 | { | |
18474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18475 | result = (int)(arg1)->GetAlign(); | |
18476 | ||
18477 | wxPyEndAllowThreads(__tstate); | |
18478 | if (PyErr_Occurred()) SWIG_fail; | |
18479 | } | |
994141e6 | 18480 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18481 | return resultobj; |
18482 | fail: | |
18483 | return NULL; | |
18484 | } | |
18485 | ||
18486 | ||
18487 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18488 | PyObject *resultobj; | |
18489 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18490 | wxListItemAttr *result; | |
18491 | PyObject * obj0 = 0 ; | |
18492 | char *kwnames[] = { | |
18493 | (char *) "self", NULL | |
18494 | }; | |
18495 | ||
18496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
18497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18498 | { | |
18499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18500 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
18501 | ||
18502 | wxPyEndAllowThreads(__tstate); | |
18503 | if (PyErr_Occurred()) SWIG_fail; | |
18504 | } | |
18505 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 0); | |
18506 | return resultobj; | |
18507 | fail: | |
18508 | return NULL; | |
18509 | } | |
18510 | ||
18511 | ||
18512 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18513 | PyObject *resultobj; | |
18514 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18515 | bool result; | |
18516 | PyObject * obj0 = 0 ; | |
18517 | char *kwnames[] = { | |
18518 | (char *) "self", NULL | |
18519 | }; | |
18520 | ||
18521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
18522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18523 | { | |
18524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18525 | result = (bool)(arg1)->HasAttributes(); | |
18526 | ||
18527 | wxPyEndAllowThreads(__tstate); | |
18528 | if (PyErr_Occurred()) SWIG_fail; | |
18529 | } | |
4d5c3d91 | 18530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18531 | return resultobj; |
18532 | fail: | |
18533 | return NULL; | |
18534 | } | |
18535 | ||
18536 | ||
18537 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18538 | PyObject *resultobj; | |
18539 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18540 | wxColour result; | |
18541 | PyObject * obj0 = 0 ; | |
18542 | char *kwnames[] = { | |
18543 | (char *) "self", NULL | |
18544 | }; | |
18545 | ||
18546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
18547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18548 | { | |
18549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18550 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
18551 | ||
18552 | wxPyEndAllowThreads(__tstate); | |
18553 | if (PyErr_Occurred()) SWIG_fail; | |
18554 | } | |
18555 | { | |
18556 | wxColour * resultptr; | |
18557 | resultptr = new wxColour((wxColour &) result); | |
18558 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18559 | } | |
18560 | return resultobj; | |
18561 | fail: | |
18562 | return NULL; | |
18563 | } | |
18564 | ||
18565 | ||
18566 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18567 | PyObject *resultobj; | |
18568 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18569 | wxColour result; | |
18570 | PyObject * obj0 = 0 ; | |
18571 | char *kwnames[] = { | |
18572 | (char *) "self", NULL | |
18573 | }; | |
18574 | ||
18575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
18576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18577 | { | |
18578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18579 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
18580 | ||
18581 | wxPyEndAllowThreads(__tstate); | |
18582 | if (PyErr_Occurred()) SWIG_fail; | |
18583 | } | |
18584 | { | |
18585 | wxColour * resultptr; | |
18586 | resultptr = new wxColour((wxColour &) result); | |
18587 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18588 | } | |
18589 | return resultobj; | |
18590 | fail: | |
18591 | return NULL; | |
18592 | } | |
18593 | ||
18594 | ||
18595 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18596 | PyObject *resultobj; | |
18597 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18598 | wxFont result; | |
18599 | PyObject * obj0 = 0 ; | |
18600 | char *kwnames[] = { | |
18601 | (char *) "self", NULL | |
18602 | }; | |
18603 | ||
18604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
18605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18606 | { | |
18607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18608 | result = ((wxListItem const *)arg1)->GetFont(); | |
18609 | ||
18610 | wxPyEndAllowThreads(__tstate); | |
18611 | if (PyErr_Occurred()) SWIG_fail; | |
18612 | } | |
18613 | { | |
18614 | wxFont * resultptr; | |
18615 | resultptr = new wxFont((wxFont &) result); | |
18616 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
18617 | } | |
18618 | return resultobj; | |
18619 | fail: | |
18620 | return NULL; | |
18621 | } | |
18622 | ||
18623 | ||
18624 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18625 | PyObject *resultobj; | |
18626 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18627 | long arg2 ; | |
18628 | PyObject * obj0 = 0 ; | |
994141e6 | 18629 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18630 | char *kwnames[] = { |
18631 | (char *) "self",(char *) "m_mask", NULL | |
18632 | }; | |
18633 | ||
994141e6 | 18634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18636 | { |
18637 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18638 | if (PyErr_Occurred()) SWIG_fail; | |
18639 | } | |
d14a1e28 RD |
18640 | if (arg1) (arg1)->m_mask = arg2; |
18641 | ||
18642 | Py_INCREF(Py_None); resultobj = Py_None; | |
18643 | return resultobj; | |
18644 | fail: | |
18645 | return NULL; | |
18646 | } | |
18647 | ||
18648 | ||
18649 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18650 | PyObject *resultobj; | |
18651 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18652 | long result; | |
18653 | PyObject * obj0 = 0 ; | |
18654 | char *kwnames[] = { | |
18655 | (char *) "self", NULL | |
18656 | }; | |
18657 | ||
18658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
18659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18660 | result = (long) ((arg1)->m_mask); | |
18661 | ||
994141e6 | 18662 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18663 | return resultobj; |
18664 | fail: | |
18665 | return NULL; | |
18666 | } | |
18667 | ||
18668 | ||
18669 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18670 | PyObject *resultobj; | |
18671 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18672 | long arg2 ; | |
18673 | PyObject * obj0 = 0 ; | |
994141e6 | 18674 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18675 | char *kwnames[] = { |
18676 | (char *) "self",(char *) "m_itemId", NULL | |
18677 | }; | |
18678 | ||
994141e6 | 18679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18681 | { |
18682 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18683 | if (PyErr_Occurred()) SWIG_fail; | |
18684 | } | |
d14a1e28 RD |
18685 | if (arg1) (arg1)->m_itemId = arg2; |
18686 | ||
18687 | Py_INCREF(Py_None); resultobj = Py_None; | |
18688 | return resultobj; | |
18689 | fail: | |
18690 | return NULL; | |
18691 | } | |
18692 | ||
18693 | ||
18694 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18695 | PyObject *resultobj; | |
18696 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18697 | long result; | |
18698 | PyObject * obj0 = 0 ; | |
18699 | char *kwnames[] = { | |
18700 | (char *) "self", NULL | |
18701 | }; | |
18702 | ||
18703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
18704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18705 | result = (long) ((arg1)->m_itemId); | |
18706 | ||
994141e6 | 18707 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18708 | return resultobj; |
18709 | fail: | |
18710 | return NULL; | |
18711 | } | |
18712 | ||
18713 | ||
18714 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18715 | PyObject *resultobj; | |
18716 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18717 | int arg2 ; | |
18718 | PyObject * obj0 = 0 ; | |
994141e6 | 18719 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18720 | char *kwnames[] = { |
18721 | (char *) "self",(char *) "m_col", NULL | |
18722 | }; | |
18723 | ||
994141e6 | 18724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18726 | { |
18727 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18728 | if (PyErr_Occurred()) SWIG_fail; | |
18729 | } | |
d14a1e28 RD |
18730 | if (arg1) (arg1)->m_col = arg2; |
18731 | ||
18732 | Py_INCREF(Py_None); resultobj = Py_None; | |
18733 | return resultobj; | |
18734 | fail: | |
18735 | return NULL; | |
18736 | } | |
18737 | ||
18738 | ||
18739 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18740 | PyObject *resultobj; | |
18741 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18742 | int result; | |
18743 | PyObject * obj0 = 0 ; | |
18744 | char *kwnames[] = { | |
18745 | (char *) "self", NULL | |
18746 | }; | |
18747 | ||
18748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
18749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18750 | result = (int) ((arg1)->m_col); | |
18751 | ||
994141e6 | 18752 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18753 | return resultobj; |
18754 | fail: | |
18755 | return NULL; | |
18756 | } | |
18757 | ||
18758 | ||
18759 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18760 | PyObject *resultobj; | |
18761 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18762 | long arg2 ; | |
18763 | PyObject * obj0 = 0 ; | |
994141e6 | 18764 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18765 | char *kwnames[] = { |
18766 | (char *) "self",(char *) "m_state", NULL | |
18767 | }; | |
18768 | ||
994141e6 | 18769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18771 | { |
18772 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18773 | if (PyErr_Occurred()) SWIG_fail; | |
18774 | } | |
d14a1e28 RD |
18775 | if (arg1) (arg1)->m_state = arg2; |
18776 | ||
18777 | Py_INCREF(Py_None); resultobj = Py_None; | |
18778 | return resultobj; | |
18779 | fail: | |
18780 | return NULL; | |
18781 | } | |
18782 | ||
18783 | ||
18784 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18785 | PyObject *resultobj; | |
18786 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18787 | long result; | |
18788 | PyObject * obj0 = 0 ; | |
18789 | char *kwnames[] = { | |
18790 | (char *) "self", NULL | |
18791 | }; | |
18792 | ||
18793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
18794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18795 | result = (long) ((arg1)->m_state); | |
18796 | ||
994141e6 | 18797 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18798 | return resultobj; |
18799 | fail: | |
18800 | return NULL; | |
18801 | } | |
18802 | ||
18803 | ||
18804 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18805 | PyObject *resultobj; | |
18806 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18807 | long arg2 ; | |
18808 | PyObject * obj0 = 0 ; | |
994141e6 | 18809 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18810 | char *kwnames[] = { |
18811 | (char *) "self",(char *) "m_stateMask", NULL | |
18812 | }; | |
18813 | ||
994141e6 | 18814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18816 | { |
18817 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18818 | if (PyErr_Occurred()) SWIG_fail; | |
18819 | } | |
d14a1e28 RD |
18820 | if (arg1) (arg1)->m_stateMask = arg2; |
18821 | ||
18822 | Py_INCREF(Py_None); resultobj = Py_None; | |
18823 | return resultobj; | |
18824 | fail: | |
18825 | return NULL; | |
18826 | } | |
18827 | ||
18828 | ||
18829 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18830 | PyObject *resultobj; | |
18831 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18832 | long result; | |
18833 | PyObject * obj0 = 0 ; | |
18834 | char *kwnames[] = { | |
18835 | (char *) "self", NULL | |
18836 | }; | |
18837 | ||
18838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
18839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18840 | result = (long) ((arg1)->m_stateMask); | |
18841 | ||
994141e6 | 18842 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18843 | return resultobj; |
18844 | fail: | |
18845 | return NULL; | |
18846 | } | |
18847 | ||
18848 | ||
18849 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18850 | PyObject *resultobj; | |
18851 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 18852 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 18853 | bool temp2 = False ; |
d14a1e28 RD |
18854 | PyObject * obj0 = 0 ; |
18855 | PyObject * obj1 = 0 ; | |
18856 | char *kwnames[] = { | |
18857 | (char *) "self",(char *) "m_text", NULL | |
18858 | }; | |
18859 | ||
18860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
18861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7eae615b RD |
18862 | { |
18863 | arg2 = wxString_in_helper(obj1); | |
18864 | if (arg2 == NULL) SWIG_fail; | |
18865 | temp2 = True; | |
18866 | } | |
196addbf | 18867 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
18868 | |
18869 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
18870 | { |
18871 | if (temp2) | |
18872 | delete arg2; | |
18873 | } | |
d14a1e28 RD |
18874 | return resultobj; |
18875 | fail: | |
7eae615b RD |
18876 | { |
18877 | if (temp2) | |
18878 | delete arg2; | |
18879 | } | |
d14a1e28 RD |
18880 | return NULL; |
18881 | } | |
18882 | ||
18883 | ||
18884 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18885 | PyObject *resultobj; | |
18886 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 18887 | wxString *result; |
d14a1e28 RD |
18888 | PyObject * obj0 = 0 ; |
18889 | char *kwnames[] = { | |
18890 | (char *) "self", NULL | |
18891 | }; | |
18892 | ||
18893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
18894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
196addbf | 18895 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
18896 | |
18897 | { | |
18898 | #if wxUSE_UNICODE | |
196addbf | 18899 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 18900 | #else |
196addbf | 18901 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
18902 | #endif |
18903 | } | |
18904 | return resultobj; | |
18905 | fail: | |
18906 | return NULL; | |
18907 | } | |
18908 | ||
18909 | ||
18910 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18911 | PyObject *resultobj; | |
18912 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18913 | int arg2 ; | |
18914 | PyObject * obj0 = 0 ; | |
994141e6 | 18915 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18916 | char *kwnames[] = { |
18917 | (char *) "self",(char *) "m_image", NULL | |
18918 | }; | |
18919 | ||
994141e6 | 18920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18922 | { |
18923 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18924 | if (PyErr_Occurred()) SWIG_fail; | |
18925 | } | |
d14a1e28 RD |
18926 | if (arg1) (arg1)->m_image = arg2; |
18927 | ||
18928 | Py_INCREF(Py_None); resultobj = Py_None; | |
18929 | return resultobj; | |
18930 | fail: | |
18931 | return NULL; | |
18932 | } | |
18933 | ||
18934 | ||
18935 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18936 | PyObject *resultobj; | |
18937 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18938 | int result; | |
18939 | PyObject * obj0 = 0 ; | |
18940 | char *kwnames[] = { | |
18941 | (char *) "self", NULL | |
18942 | }; | |
18943 | ||
18944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
18945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18946 | result = (int) ((arg1)->m_image); | |
18947 | ||
994141e6 | 18948 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18949 | return resultobj; |
18950 | fail: | |
18951 | return NULL; | |
18952 | } | |
18953 | ||
18954 | ||
18955 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18956 | PyObject *resultobj; | |
18957 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18958 | long arg2 ; | |
18959 | PyObject * obj0 = 0 ; | |
994141e6 | 18960 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18961 | char *kwnames[] = { |
18962 | (char *) "self",(char *) "m_data", NULL | |
18963 | }; | |
18964 | ||
994141e6 | 18965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18967 | { |
18968 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18969 | if (PyErr_Occurred()) SWIG_fail; | |
18970 | } | |
d14a1e28 RD |
18971 | if (arg1) (arg1)->m_data = arg2; |
18972 | ||
18973 | Py_INCREF(Py_None); resultobj = Py_None; | |
18974 | return resultobj; | |
18975 | fail: | |
18976 | return NULL; | |
18977 | } | |
18978 | ||
18979 | ||
18980 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18981 | PyObject *resultobj; | |
18982 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18983 | long result; | |
18984 | PyObject * obj0 = 0 ; | |
18985 | char *kwnames[] = { | |
18986 | (char *) "self", NULL | |
18987 | }; | |
18988 | ||
18989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
18990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18991 | result = (long) ((arg1)->m_data); | |
18992 | ||
994141e6 | 18993 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18994 | return resultobj; |
18995 | fail: | |
18996 | return NULL; | |
18997 | } | |
18998 | ||
18999 | ||
19000 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19001 | PyObject *resultobj; | |
19002 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19003 | int arg2 ; | |
19004 | PyObject * obj0 = 0 ; | |
994141e6 | 19005 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19006 | char *kwnames[] = { |
19007 | (char *) "self",(char *) "m_format", NULL | |
19008 | }; | |
19009 | ||
994141e6 | 19010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
19012 | { |
19013 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19014 | if (PyErr_Occurred()) SWIG_fail; | |
19015 | } | |
d14a1e28 RD |
19016 | if (arg1) (arg1)->m_format = arg2; |
19017 | ||
19018 | Py_INCREF(Py_None); resultobj = Py_None; | |
19019 | return resultobj; | |
19020 | fail: | |
19021 | return NULL; | |
19022 | } | |
19023 | ||
19024 | ||
19025 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19026 | PyObject *resultobj; | |
19027 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19028 | int result; | |
19029 | PyObject * obj0 = 0 ; | |
19030 | char *kwnames[] = { | |
19031 | (char *) "self", NULL | |
19032 | }; | |
19033 | ||
19034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
19035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19036 | result = (int) ((arg1)->m_format); | |
19037 | ||
994141e6 | 19038 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19039 | return resultobj; |
19040 | fail: | |
19041 | return NULL; | |
19042 | } | |
19043 | ||
19044 | ||
19045 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19046 | PyObject *resultobj; | |
19047 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19048 | int arg2 ; | |
19049 | PyObject * obj0 = 0 ; | |
994141e6 | 19050 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19051 | char *kwnames[] = { |
19052 | (char *) "self",(char *) "m_width", NULL | |
19053 | }; | |
19054 | ||
994141e6 | 19055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
19057 | { |
19058 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19059 | if (PyErr_Occurred()) SWIG_fail; | |
19060 | } | |
d14a1e28 RD |
19061 | if (arg1) (arg1)->m_width = arg2; |
19062 | ||
19063 | Py_INCREF(Py_None); resultobj = Py_None; | |
19064 | return resultobj; | |
19065 | fail: | |
19066 | return NULL; | |
19067 | } | |
19068 | ||
19069 | ||
19070 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19071 | PyObject *resultobj; | |
19072 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19073 | int result; | |
19074 | PyObject * obj0 = 0 ; | |
19075 | char *kwnames[] = { | |
19076 | (char *) "self", NULL | |
19077 | }; | |
19078 | ||
19079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
19080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19081 | result = (int) ((arg1)->m_width); | |
19082 | ||
994141e6 | 19083 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19084 | return resultobj; |
19085 | fail: | |
19086 | return NULL; | |
19087 | } | |
19088 | ||
19089 | ||
19090 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
19091 | PyObject *obj; | |
19092 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19093 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
19094 | Py_INCREF(obj); | |
19095 | return Py_BuildValue((char *)""); | |
19096 | } | |
19097 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19098 | PyObject *resultobj; | |
19099 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19100 | int arg2 = (int) 0 ; | |
19101 | wxListEvent *result; | |
994141e6 RD |
19102 | PyObject * obj0 = 0 ; |
19103 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19104 | char *kwnames[] = { |
19105 | (char *) "commandType",(char *) "id", NULL | |
19106 | }; | |
19107 | ||
994141e6 RD |
19108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
19109 | if (obj0) { | |
19110 | { | |
19111 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
19112 | if (PyErr_Occurred()) SWIG_fail; | |
19113 | } | |
19114 | } | |
19115 | if (obj1) { | |
19116 | { | |
19117 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19118 | if (PyErr_Occurred()) SWIG_fail; | |
19119 | } | |
19120 | } | |
d14a1e28 RD |
19121 | { |
19122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19123 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
19124 | ||
19125 | wxPyEndAllowThreads(__tstate); | |
19126 | if (PyErr_Occurred()) SWIG_fail; | |
19127 | } | |
19128 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListEvent, 1); | |
19129 | return resultobj; | |
19130 | fail: | |
19131 | return NULL; | |
19132 | } | |
19133 | ||
19134 | ||
19135 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19136 | PyObject *resultobj; | |
19137 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19138 | int arg2 ; | |
19139 | PyObject * obj0 = 0 ; | |
994141e6 | 19140 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19141 | char *kwnames[] = { |
19142 | (char *) "self",(char *) "m_code", NULL | |
19143 | }; | |
19144 | ||
994141e6 | 19145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
19147 | { |
19148 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19149 | if (PyErr_Occurred()) SWIG_fail; | |
19150 | } | |
d14a1e28 RD |
19151 | if (arg1) (arg1)->m_code = arg2; |
19152 | ||
19153 | Py_INCREF(Py_None); resultobj = Py_None; | |
19154 | return resultobj; | |
19155 | fail: | |
19156 | return NULL; | |
19157 | } | |
19158 | ||
19159 | ||
19160 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19161 | PyObject *resultobj; | |
19162 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19163 | int result; | |
19164 | PyObject * obj0 = 0 ; | |
19165 | char *kwnames[] = { | |
19166 | (char *) "self", NULL | |
19167 | }; | |
19168 | ||
19169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
19170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19171 | result = (int) ((arg1)->m_code); | |
19172 | ||
994141e6 | 19173 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19174 | return resultobj; |
19175 | fail: | |
19176 | return NULL; | |
19177 | } | |
19178 | ||
19179 | ||
19180 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19181 | PyObject *resultobj; | |
19182 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19183 | long arg2 ; | |
19184 | PyObject * obj0 = 0 ; | |
994141e6 | 19185 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19186 | char *kwnames[] = { |
19187 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
19188 | }; | |
19189 | ||
994141e6 | 19190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
19192 | { |
19193 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19194 | if (PyErr_Occurred()) SWIG_fail; | |
19195 | } | |
d14a1e28 RD |
19196 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
19197 | ||
19198 | Py_INCREF(Py_None); resultobj = Py_None; | |
19199 | return resultobj; | |
19200 | fail: | |
19201 | return NULL; | |
19202 | } | |
19203 | ||
19204 | ||
19205 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19206 | PyObject *resultobj; | |
19207 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19208 | long result; | |
19209 | PyObject * obj0 = 0 ; | |
19210 | char *kwnames[] = { | |
19211 | (char *) "self", NULL | |
19212 | }; | |
19213 | ||
19214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
19215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19216 | result = (long) ((arg1)->m_oldItemIndex); | |
19217 | ||
994141e6 | 19218 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19219 | return resultobj; |
19220 | fail: | |
19221 | return NULL; | |
19222 | } | |
19223 | ||
19224 | ||
19225 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19226 | PyObject *resultobj; | |
19227 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19228 | long arg2 ; | |
19229 | PyObject * obj0 = 0 ; | |
994141e6 | 19230 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19231 | char *kwnames[] = { |
19232 | (char *) "self",(char *) "m_itemIndex", NULL | |
19233 | }; | |
19234 | ||
994141e6 | 19235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
19237 | { |
19238 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19239 | if (PyErr_Occurred()) SWIG_fail; | |
19240 | } | |
d14a1e28 RD |
19241 | if (arg1) (arg1)->m_itemIndex = arg2; |
19242 | ||
19243 | Py_INCREF(Py_None); resultobj = Py_None; | |
19244 | return resultobj; | |
19245 | fail: | |
19246 | return NULL; | |
19247 | } | |
19248 | ||
19249 | ||
19250 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19251 | PyObject *resultobj; | |
19252 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19253 | long result; | |
19254 | PyObject * obj0 = 0 ; | |
19255 | char *kwnames[] = { | |
19256 | (char *) "self", NULL | |
19257 | }; | |
19258 | ||
19259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
19260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19261 | result = (long) ((arg1)->m_itemIndex); | |
19262 | ||
994141e6 | 19263 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19264 | return resultobj; |
19265 | fail: | |
19266 | return NULL; | |
19267 | } | |
19268 | ||
19269 | ||
19270 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19271 | PyObject *resultobj; | |
19272 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19273 | int arg2 ; | |
19274 | PyObject * obj0 = 0 ; | |
994141e6 | 19275 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19276 | char *kwnames[] = { |
19277 | (char *) "self",(char *) "m_col", NULL | |
19278 | }; | |
19279 | ||
994141e6 | 19280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
19282 | { |
19283 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19284 | if (PyErr_Occurred()) SWIG_fail; | |
19285 | } | |
d14a1e28 RD |
19286 | if (arg1) (arg1)->m_col = arg2; |
19287 | ||
19288 | Py_INCREF(Py_None); resultobj = Py_None; | |
19289 | return resultobj; | |
19290 | fail: | |
19291 | return NULL; | |
19292 | } | |
19293 | ||
19294 | ||
19295 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19296 | PyObject *resultobj; | |
19297 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19298 | int result; | |
19299 | PyObject * obj0 = 0 ; | |
19300 | char *kwnames[] = { | |
19301 | (char *) "self", NULL | |
19302 | }; | |
19303 | ||
19304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
19305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19306 | result = (int) ((arg1)->m_col); | |
19307 | ||
994141e6 | 19308 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19309 | return resultobj; |
19310 | fail: | |
19311 | return NULL; | |
19312 | } | |
19313 | ||
19314 | ||
19315 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19316 | PyObject *resultobj; | |
19317 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19318 | wxPoint *arg2 = (wxPoint *) 0 ; | |
19319 | PyObject * obj0 = 0 ; | |
19320 | PyObject * obj1 = 0 ; | |
19321 | char *kwnames[] = { | |
19322 | (char *) "self",(char *) "m_pointDrag", NULL | |
19323 | }; | |
19324 | ||
19325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
19326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19327 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19328 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
19329 | ||
19330 | Py_INCREF(Py_None); resultobj = Py_None; | |
19331 | return resultobj; | |
19332 | fail: | |
19333 | return NULL; | |
19334 | } | |
19335 | ||
19336 | ||
19337 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19338 | PyObject *resultobj; | |
19339 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19340 | wxPoint *result; | |
19341 | PyObject * obj0 = 0 ; | |
19342 | char *kwnames[] = { | |
19343 | (char *) "self", NULL | |
19344 | }; | |
19345 | ||
19346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
19347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19348 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
19349 | ||
19350 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
19351 | return resultobj; | |
19352 | fail: | |
19353 | return NULL; | |
19354 | } | |
19355 | ||
19356 | ||
19357 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19358 | PyObject *resultobj; | |
19359 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19360 | wxListItem *result; | |
19361 | PyObject * obj0 = 0 ; | |
19362 | char *kwnames[] = { | |
19363 | (char *) "self", NULL | |
19364 | }; | |
19365 | ||
19366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
19367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19368 | result = (wxListItem *)& ((arg1)->m_item); | |
19369 | ||
19370 | { | |
19371 | resultobj = wxPyMake_wxObject(result); | |
19372 | } | |
19373 | return resultobj; | |
19374 | fail: | |
19375 | return NULL; | |
19376 | } | |
19377 | ||
19378 | ||
19379 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19380 | PyObject *resultobj; | |
19381 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19382 | int result; | |
19383 | PyObject * obj0 = 0 ; | |
19384 | char *kwnames[] = { | |
19385 | (char *) "self", NULL | |
19386 | }; | |
19387 | ||
19388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
19389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19390 | { | |
19391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19392 | result = (int)(arg1)->GetKeyCode(); | |
19393 | ||
19394 | wxPyEndAllowThreads(__tstate); | |
19395 | if (PyErr_Occurred()) SWIG_fail; | |
19396 | } | |
994141e6 | 19397 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19398 | return resultobj; |
19399 | fail: | |
19400 | return NULL; | |
19401 | } | |
19402 | ||
19403 | ||
19404 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19405 | PyObject *resultobj; | |
19406 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19407 | long result; | |
19408 | PyObject * obj0 = 0 ; | |
19409 | char *kwnames[] = { | |
19410 | (char *) "self", NULL | |
19411 | }; | |
19412 | ||
19413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
19414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19415 | { | |
19416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19417 | result = (long)(arg1)->GetIndex(); | |
19418 | ||
19419 | wxPyEndAllowThreads(__tstate); | |
19420 | if (PyErr_Occurred()) SWIG_fail; | |
19421 | } | |
994141e6 | 19422 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19423 | return resultobj; |
19424 | fail: | |
19425 | return NULL; | |
19426 | } | |
19427 | ||
19428 | ||
19429 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19430 | PyObject *resultobj; | |
19431 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19432 | int result; | |
19433 | PyObject * obj0 = 0 ; | |
19434 | char *kwnames[] = { | |
19435 | (char *) "self", NULL | |
19436 | }; | |
19437 | ||
19438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
19439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19440 | { | |
19441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19442 | result = (int)(arg1)->GetColumn(); | |
19443 | ||
19444 | wxPyEndAllowThreads(__tstate); | |
19445 | if (PyErr_Occurred()) SWIG_fail; | |
19446 | } | |
994141e6 | 19447 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19448 | return resultobj; |
19449 | fail: | |
19450 | return NULL; | |
19451 | } | |
19452 | ||
19453 | ||
19454 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19455 | PyObject *resultobj; | |
19456 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19457 | wxPoint result; | |
19458 | PyObject * obj0 = 0 ; | |
19459 | char *kwnames[] = { | |
19460 | (char *) "self", NULL | |
19461 | }; | |
19462 | ||
19463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
19464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19465 | { | |
19466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19467 | result = (arg1)->GetPoint(); | |
19468 | ||
19469 | wxPyEndAllowThreads(__tstate); | |
19470 | if (PyErr_Occurred()) SWIG_fail; | |
19471 | } | |
19472 | { | |
19473 | wxPoint * resultptr; | |
19474 | resultptr = new wxPoint((wxPoint &) result); | |
19475 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
19476 | } | |
19477 | return resultobj; | |
19478 | fail: | |
19479 | return NULL; | |
19480 | } | |
19481 | ||
19482 | ||
19483 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19484 | PyObject *resultobj; | |
19485 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19486 | wxString *result; | |
19487 | PyObject * obj0 = 0 ; | |
19488 | char *kwnames[] = { | |
19489 | (char *) "self", NULL | |
19490 | }; | |
19491 | ||
19492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
19493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19494 | { | |
19495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19496 | { | |
19497 | wxString const &_result_ref = (arg1)->GetLabel(); | |
19498 | result = (wxString *) &_result_ref; | |
19499 | } | |
19500 | ||
19501 | wxPyEndAllowThreads(__tstate); | |
19502 | if (PyErr_Occurred()) SWIG_fail; | |
19503 | } | |
cc6dd355 RD |
19504 | { |
19505 | #if wxUSE_UNICODE | |
19506 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19507 | #else | |
19508 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19509 | #endif | |
19510 | } | |
d14a1e28 RD |
19511 | return resultobj; |
19512 | fail: | |
19513 | return NULL; | |
19514 | } | |
19515 | ||
19516 | ||
19517 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19518 | PyObject *resultobj; | |
19519 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19520 | wxString *result; | |
19521 | PyObject * obj0 = 0 ; | |
19522 | char *kwnames[] = { | |
19523 | (char *) "self", NULL | |
19524 | }; | |
19525 | ||
19526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
19527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19528 | { | |
19529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19530 | { | |
19531 | wxString const &_result_ref = (arg1)->GetText(); | |
19532 | result = (wxString *) &_result_ref; | |
19533 | } | |
19534 | ||
19535 | wxPyEndAllowThreads(__tstate); | |
19536 | if (PyErr_Occurred()) SWIG_fail; | |
19537 | } | |
cc6dd355 RD |
19538 | { |
19539 | #if wxUSE_UNICODE | |
19540 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19541 | #else | |
19542 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19543 | #endif | |
19544 | } | |
d14a1e28 RD |
19545 | return resultobj; |
19546 | fail: | |
19547 | return NULL; | |
19548 | } | |
19549 | ||
19550 | ||
19551 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19552 | PyObject *resultobj; | |
19553 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19554 | int result; | |
19555 | PyObject * obj0 = 0 ; | |
19556 | char *kwnames[] = { | |
19557 | (char *) "self", NULL | |
19558 | }; | |
19559 | ||
19560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
19561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19562 | { | |
19563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19564 | result = (int)(arg1)->GetImage(); | |
19565 | ||
19566 | wxPyEndAllowThreads(__tstate); | |
19567 | if (PyErr_Occurred()) SWIG_fail; | |
19568 | } | |
994141e6 | 19569 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19570 | return resultobj; |
19571 | fail: | |
19572 | return NULL; | |
19573 | } | |
19574 | ||
19575 | ||
19576 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19577 | PyObject *resultobj; | |
19578 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19579 | long result; | |
19580 | PyObject * obj0 = 0 ; | |
19581 | char *kwnames[] = { | |
19582 | (char *) "self", NULL | |
19583 | }; | |
19584 | ||
19585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
19586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19587 | { | |
19588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19589 | result = (long)(arg1)->GetData(); | |
19590 | ||
19591 | wxPyEndAllowThreads(__tstate); | |
19592 | if (PyErr_Occurred()) SWIG_fail; | |
19593 | } | |
994141e6 | 19594 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19595 | return resultobj; |
19596 | fail: | |
19597 | return NULL; | |
19598 | } | |
19599 | ||
19600 | ||
19601 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19602 | PyObject *resultobj; | |
19603 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19604 | long result; | |
19605 | PyObject * obj0 = 0 ; | |
19606 | char *kwnames[] = { | |
19607 | (char *) "self", NULL | |
19608 | }; | |
19609 | ||
19610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
19611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19612 | { | |
19613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19614 | result = (long)(arg1)->GetMask(); | |
19615 | ||
19616 | wxPyEndAllowThreads(__tstate); | |
19617 | if (PyErr_Occurred()) SWIG_fail; | |
19618 | } | |
994141e6 | 19619 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19620 | return resultobj; |
19621 | fail: | |
19622 | return NULL; | |
19623 | } | |
19624 | ||
19625 | ||
19626 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19627 | PyObject *resultobj; | |
19628 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19629 | wxListItem *result; | |
19630 | PyObject * obj0 = 0 ; | |
19631 | char *kwnames[] = { | |
19632 | (char *) "self", NULL | |
19633 | }; | |
19634 | ||
19635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
19636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19637 | { | |
19638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19639 | { | |
19640 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
19641 | result = (wxListItem *) &_result_ref; | |
19642 | } | |
19643 | ||
19644 | wxPyEndAllowThreads(__tstate); | |
19645 | if (PyErr_Occurred()) SWIG_fail; | |
19646 | } | |
19647 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItem, 0); | |
19648 | return resultobj; | |
19649 | fail: | |
19650 | return NULL; | |
19651 | } | |
19652 | ||
19653 | ||
19654 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19655 | PyObject *resultobj; | |
19656 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19657 | long result; | |
19658 | PyObject * obj0 = 0 ; | |
19659 | char *kwnames[] = { | |
19660 | (char *) "self", NULL | |
19661 | }; | |
19662 | ||
19663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
19664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19665 | { | |
19666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19667 | result = (long)(arg1)->GetCacheFrom(); | |
19668 | ||
19669 | wxPyEndAllowThreads(__tstate); | |
19670 | if (PyErr_Occurred()) SWIG_fail; | |
19671 | } | |
994141e6 | 19672 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19673 | return resultobj; |
19674 | fail: | |
19675 | return NULL; | |
19676 | } | |
19677 | ||
19678 | ||
19679 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19680 | PyObject *resultobj; | |
19681 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19682 | long result; | |
19683 | PyObject * obj0 = 0 ; | |
19684 | char *kwnames[] = { | |
19685 | (char *) "self", NULL | |
19686 | }; | |
19687 | ||
19688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
19689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19690 | { | |
19691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19692 | result = (long)(arg1)->GetCacheTo(); | |
19693 | ||
19694 | wxPyEndAllowThreads(__tstate); | |
19695 | if (PyErr_Occurred()) SWIG_fail; | |
19696 | } | |
994141e6 | 19697 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19698 | return resultobj; |
19699 | fail: | |
19700 | return NULL; | |
19701 | } | |
19702 | ||
19703 | ||
19704 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19705 | PyObject *resultobj; | |
19706 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19707 | bool result; | |
19708 | PyObject * obj0 = 0 ; | |
19709 | char *kwnames[] = { | |
19710 | (char *) "self", NULL | |
19711 | }; | |
19712 | ||
19713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
19714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19715 | { | |
19716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19717 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
19718 | ||
19719 | wxPyEndAllowThreads(__tstate); | |
19720 | if (PyErr_Occurred()) SWIG_fail; | |
19721 | } | |
4d5c3d91 | 19722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19723 | return resultobj; |
19724 | fail: | |
19725 | return NULL; | |
19726 | } | |
19727 | ||
19728 | ||
19729 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19730 | PyObject *resultobj; | |
19731 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19732 | bool arg2 ; | |
19733 | PyObject * obj0 = 0 ; | |
19734 | PyObject * obj1 = 0 ; | |
19735 | char *kwnames[] = { | |
19736 | (char *) "self",(char *) "editCancelled", NULL | |
19737 | }; | |
19738 | ||
19739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
19740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 19741 | { |
994141e6 | 19742 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
19743 | if (PyErr_Occurred()) SWIG_fail; |
19744 | } | |
d14a1e28 RD |
19745 | { |
19746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19747 | (arg1)->SetEditCanceled(arg2); | |
19748 | ||
19749 | wxPyEndAllowThreads(__tstate); | |
19750 | if (PyErr_Occurred()) SWIG_fail; | |
19751 | } | |
19752 | Py_INCREF(Py_None); resultobj = Py_None; | |
19753 | return resultobj; | |
19754 | fail: | |
19755 | return NULL; | |
19756 | } | |
19757 | ||
19758 | ||
19759 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
19760 | PyObject *obj; | |
19761 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19762 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
19763 | Py_INCREF(obj); | |
19764 | return Py_BuildValue((char *)""); | |
19765 | } | |
19766 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19767 | PyObject *resultobj; | |
19768 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 19769 | int arg2 = (int) -1 ; |
d14a1e28 RD |
19770 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19771 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19772 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19773 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19774 | long arg5 = (long) wxLC_ICON ; | |
19775 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
19776 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
19777 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
19778 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19779 | wxPyListCtrl *result; | |
19780 | wxPoint temp3 ; | |
19781 | wxSize temp4 ; | |
e811c8ce | 19782 | bool temp7 = False ; |
d14a1e28 | 19783 | PyObject * obj0 = 0 ; |
994141e6 | 19784 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19785 | PyObject * obj2 = 0 ; |
19786 | PyObject * obj3 = 0 ; | |
994141e6 | 19787 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
19788 | PyObject * obj5 = 0 ; |
19789 | PyObject * obj6 = 0 ; | |
19790 | char *kwnames[] = { | |
19791 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19792 | }; | |
19793 | ||
994141e6 | 19794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 19795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
19796 | if (obj1) { |
19797 | { | |
19798 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19799 | if (PyErr_Occurred()) SWIG_fail; | |
19800 | } | |
19801 | } | |
d14a1e28 RD |
19802 | if (obj2) { |
19803 | { | |
19804 | arg3 = &temp3; | |
19805 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19806 | } | |
19807 | } | |
19808 | if (obj3) { | |
19809 | { | |
19810 | arg4 = &temp4; | |
19811 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19812 | } | |
19813 | } | |
994141e6 RD |
19814 | if (obj4) { |
19815 | { | |
19816 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
19817 | if (PyErr_Occurred()) SWIG_fail; | |
19818 | } | |
19819 | } | |
d14a1e28 RD |
19820 | if (obj5) { |
19821 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19822 | if (arg6 == NULL) { | |
19823 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19824 | } | |
19825 | } | |
19826 | if (obj6) { | |
19827 | { | |
19828 | arg7 = wxString_in_helper(obj6); | |
19829 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 19830 | temp7 = True; |
d14a1e28 RD |
19831 | } |
19832 | } | |
19833 | { | |
19834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19835 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
19836 | ||
19837 | wxPyEndAllowThreads(__tstate); | |
19838 | if (PyErr_Occurred()) SWIG_fail; | |
19839 | } | |
19840 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
19841 | { | |
19842 | if (temp7) | |
19843 | delete arg7; | |
19844 | } | |
19845 | return resultobj; | |
19846 | fail: | |
19847 | { | |
19848 | if (temp7) | |
19849 | delete arg7; | |
19850 | } | |
19851 | return NULL; | |
19852 | } | |
19853 | ||
19854 | ||
19855 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19856 | PyObject *resultobj; | |
19857 | wxPyListCtrl *result; | |
19858 | char *kwnames[] = { | |
19859 | NULL | |
19860 | }; | |
19861 | ||
19862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
19863 | { | |
19864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19865 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
19866 | ||
19867 | wxPyEndAllowThreads(__tstate); | |
19868 | if (PyErr_Occurred()) SWIG_fail; | |
19869 | } | |
19870 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
19871 | return resultobj; | |
19872 | fail: | |
19873 | return NULL; | |
19874 | } | |
19875 | ||
19876 | ||
19877 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19878 | PyObject *resultobj; | |
19879 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19880 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 19881 | int arg3 = (int) -1 ; |
d14a1e28 RD |
19882 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
19883 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19884 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19885 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19886 | long arg6 = (long) wxLC_ICON ; | |
19887 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
19888 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
19889 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
19890 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19891 | bool result; | |
19892 | wxPoint temp4 ; | |
19893 | wxSize temp5 ; | |
e811c8ce | 19894 | bool temp8 = False ; |
d14a1e28 RD |
19895 | PyObject * obj0 = 0 ; |
19896 | PyObject * obj1 = 0 ; | |
994141e6 | 19897 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
19898 | PyObject * obj3 = 0 ; |
19899 | PyObject * obj4 = 0 ; | |
994141e6 | 19900 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
19901 | PyObject * obj6 = 0 ; |
19902 | PyObject * obj7 = 0 ; | |
19903 | char *kwnames[] = { | |
19904 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19905 | }; | |
19906 | ||
994141e6 | 19907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
19908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
19909 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
19910 | if (obj2) { |
19911 | { | |
19912 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
19913 | if (PyErr_Occurred()) SWIG_fail; | |
19914 | } | |
19915 | } | |
d14a1e28 RD |
19916 | if (obj3) { |
19917 | { | |
19918 | arg4 = &temp4; | |
19919 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
19920 | } | |
19921 | } | |
19922 | if (obj4) { | |
19923 | { | |
19924 | arg5 = &temp5; | |
19925 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
19926 | } | |
19927 | } | |
994141e6 RD |
19928 | if (obj5) { |
19929 | { | |
19930 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
19931 | if (PyErr_Occurred()) SWIG_fail; | |
19932 | } | |
19933 | } | |
d14a1e28 RD |
19934 | if (obj6) { |
19935 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19936 | if (arg7 == NULL) { | |
19937 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19938 | } | |
19939 | } | |
19940 | if (obj7) { | |
19941 | { | |
19942 | arg8 = wxString_in_helper(obj7); | |
19943 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 19944 | temp8 = True; |
d14a1e28 RD |
19945 | } |
19946 | } | |
19947 | { | |
19948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19949 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
19950 | ||
19951 | wxPyEndAllowThreads(__tstate); | |
19952 | if (PyErr_Occurred()) SWIG_fail; | |
19953 | } | |
4d5c3d91 | 19954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19955 | { |
19956 | if (temp8) | |
19957 | delete arg8; | |
19958 | } | |
19959 | return resultobj; | |
19960 | fail: | |
19961 | { | |
19962 | if (temp8) | |
19963 | delete arg8; | |
19964 | } | |
19965 | return NULL; | |
19966 | } | |
19967 | ||
19968 | ||
19969 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19970 | PyObject *resultobj; | |
19971 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19972 | PyObject *arg2 = (PyObject *) 0 ; | |
19973 | PyObject *arg3 = (PyObject *) 0 ; | |
19974 | PyObject * obj0 = 0 ; | |
19975 | PyObject * obj1 = 0 ; | |
19976 | PyObject * obj2 = 0 ; | |
19977 | char *kwnames[] = { | |
19978 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19979 | }; | |
19980 | ||
19981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19983 | arg2 = obj1; | |
19984 | arg3 = obj2; | |
19985 | { | |
19986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19987 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19988 | ||
19989 | wxPyEndAllowThreads(__tstate); | |
19990 | if (PyErr_Occurred()) SWIG_fail; | |
19991 | } | |
19992 | Py_INCREF(Py_None); resultobj = Py_None; | |
19993 | return resultobj; | |
19994 | fail: | |
19995 | return NULL; | |
19996 | } | |
19997 | ||
19998 | ||
19999 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20000 | PyObject *resultobj; | |
20001 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20002 | wxColour *arg2 = 0 ; | |
20003 | bool result; | |
20004 | wxColour temp2 ; | |
20005 | PyObject * obj0 = 0 ; | |
20006 | PyObject * obj1 = 0 ; | |
20007 | char *kwnames[] = { | |
20008 | (char *) "self",(char *) "col", NULL | |
20009 | }; | |
20010 | ||
20011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
20012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20013 | { | |
20014 | arg2 = &temp2; | |
20015 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20016 | } | |
20017 | { | |
20018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20019 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
20020 | ||
20021 | wxPyEndAllowThreads(__tstate); | |
20022 | if (PyErr_Occurred()) SWIG_fail; | |
20023 | } | |
4d5c3d91 | 20024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20025 | return resultobj; |
20026 | fail: | |
20027 | return NULL; | |
20028 | } | |
20029 | ||
20030 | ||
20031 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20032 | PyObject *resultobj; | |
20033 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20034 | wxColour *arg2 = 0 ; | |
20035 | bool result; | |
20036 | wxColour temp2 ; | |
20037 | PyObject * obj0 = 0 ; | |
20038 | PyObject * obj1 = 0 ; | |
20039 | char *kwnames[] = { | |
20040 | (char *) "self",(char *) "col", NULL | |
20041 | }; | |
20042 | ||
20043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
20044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20045 | { | |
20046 | arg2 = &temp2; | |
20047 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20048 | } | |
20049 | { | |
20050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20051 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
20052 | ||
20053 | wxPyEndAllowThreads(__tstate); | |
20054 | if (PyErr_Occurred()) SWIG_fail; | |
20055 | } | |
4d5c3d91 | 20056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20057 | return resultobj; |
20058 | fail: | |
20059 | return NULL; | |
20060 | } | |
20061 | ||
20062 | ||
20063 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20064 | PyObject *resultobj; | |
20065 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20066 | int arg2 ; | |
20067 | wxListItem *result; | |
20068 | PyObject * obj0 = 0 ; | |
994141e6 | 20069 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20070 | char *kwnames[] = { |
20071 | (char *) "self",(char *) "col", NULL | |
20072 | }; | |
20073 | ||
994141e6 | 20074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20076 | { |
20077 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20078 | if (PyErr_Occurred()) SWIG_fail; | |
20079 | } | |
d14a1e28 RD |
20080 | { |
20081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20082 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
20083 | ||
20084 | wxPyEndAllowThreads(__tstate); | |
20085 | if (PyErr_Occurred()) SWIG_fail; | |
20086 | } | |
20087 | { | |
20088 | resultobj = wxPyMake_wxObject(result); | |
20089 | } | |
20090 | return resultobj; | |
20091 | fail: | |
20092 | return NULL; | |
20093 | } | |
20094 | ||
20095 | ||
20096 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20097 | PyObject *resultobj; | |
20098 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20099 | int arg2 ; | |
20100 | wxListItem *arg3 = 0 ; | |
20101 | bool result; | |
20102 | PyObject * obj0 = 0 ; | |
994141e6 | 20103 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20104 | PyObject * obj2 = 0 ; |
20105 | char *kwnames[] = { | |
20106 | (char *) "self",(char *) "col",(char *) "item", NULL | |
20107 | }; | |
20108 | ||
994141e6 | 20109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20111 | { |
20112 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20113 | if (PyErr_Occurred()) SWIG_fail; | |
20114 | } | |
d14a1e28 RD |
20115 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20116 | if (arg3 == NULL) { | |
20117 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20118 | } | |
20119 | { | |
20120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20121 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
20122 | ||
20123 | wxPyEndAllowThreads(__tstate); | |
20124 | if (PyErr_Occurred()) SWIG_fail; | |
20125 | } | |
4d5c3d91 | 20126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20127 | return resultobj; |
20128 | fail: | |
20129 | return NULL; | |
20130 | } | |
20131 | ||
20132 | ||
20133 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20134 | PyObject *resultobj; | |
20135 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20136 | int arg2 ; | |
20137 | int result; | |
20138 | PyObject * obj0 = 0 ; | |
994141e6 | 20139 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20140 | char *kwnames[] = { |
20141 | (char *) "self",(char *) "col", NULL | |
20142 | }; | |
20143 | ||
994141e6 | 20144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20146 | { |
20147 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20148 | if (PyErr_Occurred()) SWIG_fail; | |
20149 | } | |
d14a1e28 RD |
20150 | { |
20151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20152 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
20153 | ||
20154 | wxPyEndAllowThreads(__tstate); | |
20155 | if (PyErr_Occurred()) SWIG_fail; | |
20156 | } | |
994141e6 | 20157 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20158 | return resultobj; |
20159 | fail: | |
20160 | return NULL; | |
20161 | } | |
20162 | ||
20163 | ||
20164 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20165 | PyObject *resultobj; | |
20166 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20167 | int arg2 ; | |
20168 | int arg3 ; | |
20169 | bool result; | |
20170 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20171 | PyObject * obj1 = 0 ; |
20172 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20173 | char *kwnames[] = { |
20174 | (char *) "self",(char *) "col",(char *) "width", NULL | |
20175 | }; | |
20176 | ||
994141e6 | 20177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20179 | { |
20180 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20181 | if (PyErr_Occurred()) SWIG_fail; | |
20182 | } | |
20183 | { | |
20184 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20185 | if (PyErr_Occurred()) SWIG_fail; | |
20186 | } | |
d14a1e28 RD |
20187 | { |
20188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20189 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
20190 | ||
20191 | wxPyEndAllowThreads(__tstate); | |
20192 | if (PyErr_Occurred()) SWIG_fail; | |
20193 | } | |
4d5c3d91 | 20194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20195 | return resultobj; |
20196 | fail: | |
20197 | return NULL; | |
20198 | } | |
20199 | ||
20200 | ||
20201 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20202 | PyObject *resultobj; | |
20203 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20204 | int result; | |
20205 | PyObject * obj0 = 0 ; | |
20206 | char *kwnames[] = { | |
20207 | (char *) "self", NULL | |
20208 | }; | |
20209 | ||
20210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
20211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20212 | { | |
20213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20214 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
20215 | ||
20216 | wxPyEndAllowThreads(__tstate); | |
20217 | if (PyErr_Occurred()) SWIG_fail; | |
20218 | } | |
994141e6 | 20219 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20220 | return resultobj; |
20221 | fail: | |
20222 | return NULL; | |
20223 | } | |
20224 | ||
20225 | ||
20226 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20227 | PyObject *resultobj; | |
20228 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20229 | wxRect result; | |
20230 | PyObject * obj0 = 0 ; | |
20231 | char *kwnames[] = { | |
20232 | (char *) "self", NULL | |
20233 | }; | |
20234 | ||
20235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
20236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20237 | { | |
20238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20239 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
20240 | ||
20241 | wxPyEndAllowThreads(__tstate); | |
20242 | if (PyErr_Occurred()) SWIG_fail; | |
20243 | } | |
20244 | { | |
20245 | wxRect * resultptr; | |
20246 | resultptr = new wxRect((wxRect &) result); | |
20247 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20248 | } | |
20249 | return resultobj; | |
20250 | fail: | |
20251 | return NULL; | |
20252 | } | |
20253 | ||
20254 | ||
20255 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20256 | PyObject *resultobj; | |
20257 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20258 | long arg2 ; | |
20259 | int arg3 = (int) 0 ; | |
20260 | wxListItem *result; | |
20261 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20262 | PyObject * obj1 = 0 ; |
20263 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20264 | char *kwnames[] = { |
20265 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
20266 | }; | |
20267 | ||
994141e6 | 20268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20270 | { |
20271 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20272 | if (PyErr_Occurred()) SWIG_fail; | |
20273 | } | |
20274 | if (obj2) { | |
20275 | { | |
20276 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20277 | if (PyErr_Occurred()) SWIG_fail; | |
20278 | } | |
20279 | } | |
d14a1e28 RD |
20280 | { |
20281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20282 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
20283 | ||
20284 | wxPyEndAllowThreads(__tstate); | |
20285 | if (PyErr_Occurred()) SWIG_fail; | |
20286 | } | |
20287 | { | |
20288 | resultobj = wxPyMake_wxObject(result); | |
20289 | } | |
20290 | return resultobj; | |
20291 | fail: | |
20292 | return NULL; | |
20293 | } | |
20294 | ||
20295 | ||
20296 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20297 | PyObject *resultobj; | |
20298 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20299 | wxListItem *arg2 = 0 ; | |
20300 | bool result; | |
20301 | PyObject * obj0 = 0 ; | |
20302 | PyObject * obj1 = 0 ; | |
20303 | char *kwnames[] = { | |
20304 | (char *) "self",(char *) "info", NULL | |
20305 | }; | |
20306 | ||
20307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
20308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20309 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20310 | if (arg2 == NULL) { | |
20311 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20312 | } | |
20313 | { | |
20314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20315 | result = (bool)(arg1)->SetItem(*arg2); | |
20316 | ||
20317 | wxPyEndAllowThreads(__tstate); | |
20318 | if (PyErr_Occurred()) SWIG_fail; | |
20319 | } | |
4d5c3d91 | 20320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20321 | return resultobj; |
20322 | fail: | |
20323 | return NULL; | |
20324 | } | |
20325 | ||
20326 | ||
20327 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20328 | PyObject *resultobj; | |
20329 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20330 | long arg2 ; | |
20331 | int arg3 ; | |
20332 | wxString *arg4 = 0 ; | |
20333 | int arg5 = (int) -1 ; | |
20334 | long result; | |
e811c8ce | 20335 | bool temp4 = False ; |
d14a1e28 | 20336 | PyObject * obj0 = 0 ; |
994141e6 RD |
20337 | PyObject * obj1 = 0 ; |
20338 | PyObject * obj2 = 0 ; | |
d14a1e28 | 20339 | PyObject * obj3 = 0 ; |
994141e6 | 20340 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20341 | char *kwnames[] = { |
20342 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
20343 | }; | |
20344 | ||
994141e6 | 20345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 20346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20347 | { |
20348 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20349 | if (PyErr_Occurred()) SWIG_fail; | |
20350 | } | |
20351 | { | |
20352 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20353 | if (PyErr_Occurred()) SWIG_fail; | |
20354 | } | |
d14a1e28 RD |
20355 | { |
20356 | arg4 = wxString_in_helper(obj3); | |
20357 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 20358 | temp4 = True; |
d14a1e28 | 20359 | } |
994141e6 RD |
20360 | if (obj4) { |
20361 | { | |
20362 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
20363 | if (PyErr_Occurred()) SWIG_fail; | |
20364 | } | |
20365 | } | |
d14a1e28 RD |
20366 | { |
20367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20368 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
20369 | ||
20370 | wxPyEndAllowThreads(__tstate); | |
20371 | if (PyErr_Occurred()) SWIG_fail; | |
20372 | } | |
994141e6 | 20373 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20374 | { |
20375 | if (temp4) | |
20376 | delete arg4; | |
20377 | } | |
20378 | return resultobj; | |
20379 | fail: | |
20380 | { | |
20381 | if (temp4) | |
20382 | delete arg4; | |
20383 | } | |
20384 | return NULL; | |
20385 | } | |
20386 | ||
20387 | ||
20388 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20389 | PyObject *resultobj; | |
20390 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20391 | long arg2 ; | |
20392 | long arg3 ; | |
20393 | int result; | |
20394 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20395 | PyObject * obj1 = 0 ; |
20396 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20397 | char *kwnames[] = { |
20398 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
20399 | }; | |
20400 | ||
994141e6 | 20401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20403 | { |
20404 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20405 | if (PyErr_Occurred()) SWIG_fail; | |
20406 | } | |
20407 | { | |
20408 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20409 | if (PyErr_Occurred()) SWIG_fail; | |
20410 | } | |
d14a1e28 RD |
20411 | { |
20412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20413 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
20414 | ||
20415 | wxPyEndAllowThreads(__tstate); | |
20416 | if (PyErr_Occurred()) SWIG_fail; | |
20417 | } | |
994141e6 | 20418 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20419 | return resultobj; |
20420 | fail: | |
20421 | return NULL; | |
20422 | } | |
20423 | ||
20424 | ||
20425 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20426 | PyObject *resultobj; | |
20427 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20428 | long arg2 ; | |
20429 | long arg3 ; | |
20430 | long arg4 ; | |
20431 | bool result; | |
20432 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20433 | PyObject * obj1 = 0 ; |
20434 | PyObject * obj2 = 0 ; | |
20435 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20436 | char *kwnames[] = { |
20437 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
20438 | }; | |
20439 | ||
994141e6 | 20440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20442 | { |
20443 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20444 | if (PyErr_Occurred()) SWIG_fail; | |
20445 | } | |
20446 | { | |
20447 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20448 | if (PyErr_Occurred()) SWIG_fail; | |
20449 | } | |
20450 | { | |
20451 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
20452 | if (PyErr_Occurred()) SWIG_fail; | |
20453 | } | |
d14a1e28 RD |
20454 | { |
20455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20456 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
20457 | ||
20458 | wxPyEndAllowThreads(__tstate); | |
20459 | if (PyErr_Occurred()) SWIG_fail; | |
20460 | } | |
4d5c3d91 | 20461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20462 | return resultobj; |
20463 | fail: | |
20464 | return NULL; | |
20465 | } | |
20466 | ||
20467 | ||
20468 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20469 | PyObject *resultobj; | |
20470 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20471 | long arg2 ; | |
20472 | int arg3 ; | |
20473 | int arg4 ; | |
20474 | bool result; | |
20475 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20476 | PyObject * obj1 = 0 ; |
20477 | PyObject * obj2 = 0 ; | |
20478 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20479 | char *kwnames[] = { |
20480 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
20481 | }; | |
20482 | ||
994141e6 | 20483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20485 | { |
20486 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20487 | if (PyErr_Occurred()) SWIG_fail; | |
20488 | } | |
20489 | { | |
20490 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20491 | if (PyErr_Occurred()) SWIG_fail; | |
20492 | } | |
20493 | { | |
20494 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
20495 | if (PyErr_Occurred()) SWIG_fail; | |
20496 | } | |
d14a1e28 RD |
20497 | { |
20498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20499 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
20500 | ||
20501 | wxPyEndAllowThreads(__tstate); | |
20502 | if (PyErr_Occurred()) SWIG_fail; | |
20503 | } | |
4d5c3d91 | 20504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20505 | return resultobj; |
20506 | fail: | |
20507 | return NULL; | |
20508 | } | |
20509 | ||
20510 | ||
20511 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20512 | PyObject *resultobj; | |
20513 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20514 | long arg2 ; | |
20515 | wxString result; | |
20516 | PyObject * obj0 = 0 ; | |
994141e6 | 20517 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20518 | char *kwnames[] = { |
20519 | (char *) "self",(char *) "item", NULL | |
20520 | }; | |
20521 | ||
994141e6 | 20522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20524 | { |
20525 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20526 | if (PyErr_Occurred()) SWIG_fail; | |
20527 | } | |
d14a1e28 RD |
20528 | { |
20529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20530 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
20531 | ||
20532 | wxPyEndAllowThreads(__tstate); | |
20533 | if (PyErr_Occurred()) SWIG_fail; | |
20534 | } | |
20535 | { | |
20536 | #if wxUSE_UNICODE | |
20537 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20538 | #else | |
20539 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20540 | #endif | |
20541 | } | |
20542 | return resultobj; | |
20543 | fail: | |
20544 | return NULL; | |
20545 | } | |
20546 | ||
20547 | ||
20548 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20549 | PyObject *resultobj; | |
20550 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20551 | long arg2 ; | |
20552 | wxString *arg3 = 0 ; | |
e811c8ce | 20553 | bool temp3 = False ; |
d14a1e28 | 20554 | PyObject * obj0 = 0 ; |
994141e6 | 20555 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20556 | PyObject * obj2 = 0 ; |
20557 | char *kwnames[] = { | |
20558 | (char *) "self",(char *) "item",(char *) "str", NULL | |
20559 | }; | |
20560 | ||
994141e6 | 20561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20563 | { |
20564 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20565 | if (PyErr_Occurred()) SWIG_fail; | |
20566 | } | |
d14a1e28 RD |
20567 | { |
20568 | arg3 = wxString_in_helper(obj2); | |
20569 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 20570 | temp3 = True; |
d14a1e28 RD |
20571 | } |
20572 | { | |
20573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20574 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
20575 | ||
20576 | wxPyEndAllowThreads(__tstate); | |
20577 | if (PyErr_Occurred()) SWIG_fail; | |
20578 | } | |
20579 | Py_INCREF(Py_None); resultobj = Py_None; | |
20580 | { | |
20581 | if (temp3) | |
20582 | delete arg3; | |
20583 | } | |
20584 | return resultobj; | |
20585 | fail: | |
20586 | { | |
20587 | if (temp3) | |
20588 | delete arg3; | |
20589 | } | |
20590 | return NULL; | |
20591 | } | |
20592 | ||
20593 | ||
20594 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20595 | PyObject *resultobj; | |
20596 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20597 | long arg2 ; | |
20598 | long result; | |
20599 | PyObject * obj0 = 0 ; | |
994141e6 | 20600 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20601 | char *kwnames[] = { |
20602 | (char *) "self",(char *) "item", NULL | |
20603 | }; | |
20604 | ||
994141e6 | 20605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20607 | { |
20608 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20609 | if (PyErr_Occurred()) SWIG_fail; | |
20610 | } | |
d14a1e28 RD |
20611 | { |
20612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20613 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
20614 | ||
20615 | wxPyEndAllowThreads(__tstate); | |
20616 | if (PyErr_Occurred()) SWIG_fail; | |
20617 | } | |
994141e6 | 20618 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20619 | return resultobj; |
20620 | fail: | |
20621 | return NULL; | |
20622 | } | |
20623 | ||
20624 | ||
20625 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20626 | PyObject *resultobj; | |
20627 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20628 | long arg2 ; | |
20629 | long arg3 ; | |
20630 | bool result; | |
20631 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20632 | PyObject * obj1 = 0 ; |
20633 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20634 | char *kwnames[] = { |
20635 | (char *) "self",(char *) "item",(char *) "data", NULL | |
20636 | }; | |
20637 | ||
994141e6 | 20638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20640 | { |
20641 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20642 | if (PyErr_Occurred()) SWIG_fail; | |
20643 | } | |
20644 | { | |
20645 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20646 | if (PyErr_Occurred()) SWIG_fail; | |
20647 | } | |
d14a1e28 RD |
20648 | { |
20649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20650 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
20651 | ||
20652 | wxPyEndAllowThreads(__tstate); | |
20653 | if (PyErr_Occurred()) SWIG_fail; | |
20654 | } | |
4d5c3d91 | 20655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20656 | return resultobj; |
20657 | fail: | |
20658 | return NULL; | |
20659 | } | |
20660 | ||
20661 | ||
20662 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20663 | PyObject *resultobj; | |
20664 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20665 | long arg2 ; | |
20666 | wxPoint result; | |
20667 | PyObject * obj0 = 0 ; | |
994141e6 | 20668 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20669 | char *kwnames[] = { |
20670 | (char *) "self",(char *) "item", NULL | |
20671 | }; | |
20672 | ||
994141e6 | 20673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20675 | { |
20676 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20677 | if (PyErr_Occurred()) SWIG_fail; | |
20678 | } | |
d14a1e28 RD |
20679 | { |
20680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20681 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
20682 | ||
20683 | wxPyEndAllowThreads(__tstate); | |
20684 | if (PyErr_Occurred()) SWIG_fail; | |
20685 | } | |
20686 | { | |
20687 | wxPoint * resultptr; | |
20688 | resultptr = new wxPoint((wxPoint &) result); | |
20689 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20690 | } | |
20691 | return resultobj; | |
20692 | fail: | |
20693 | return NULL; | |
20694 | } | |
20695 | ||
20696 | ||
20697 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20698 | PyObject *resultobj; | |
20699 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20700 | long arg2 ; | |
20701 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
20702 | wxRect result; | |
20703 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20704 | PyObject * obj1 = 0 ; |
20705 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20706 | char *kwnames[] = { |
20707 | (char *) "self",(char *) "item",(char *) "code", NULL | |
20708 | }; | |
20709 | ||
994141e6 | 20710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20712 | { |
20713 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20714 | if (PyErr_Occurred()) SWIG_fail; | |
20715 | } | |
20716 | if (obj2) { | |
20717 | { | |
20718 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20719 | if (PyErr_Occurred()) SWIG_fail; | |
20720 | } | |
20721 | } | |
d14a1e28 RD |
20722 | { |
20723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20724 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
20725 | ||
20726 | wxPyEndAllowThreads(__tstate); | |
20727 | if (PyErr_Occurred()) SWIG_fail; | |
20728 | } | |
20729 | { | |
20730 | wxRect * resultptr; | |
20731 | resultptr = new wxRect((wxRect &) result); | |
20732 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20733 | } | |
20734 | return resultobj; | |
20735 | fail: | |
20736 | return NULL; | |
20737 | } | |
20738 | ||
20739 | ||
20740 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20741 | PyObject *resultobj; | |
20742 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20743 | long arg2 ; | |
20744 | wxPoint *arg3 = 0 ; | |
20745 | bool result; | |
20746 | wxPoint temp3 ; | |
20747 | PyObject * obj0 = 0 ; | |
994141e6 | 20748 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20749 | PyObject * obj2 = 0 ; |
20750 | char *kwnames[] = { | |
20751 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
20752 | }; | |
20753 | ||
994141e6 | 20754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20756 | { |
20757 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20758 | if (PyErr_Occurred()) SWIG_fail; | |
20759 | } | |
d14a1e28 RD |
20760 | { |
20761 | arg3 = &temp3; | |
20762 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20763 | } | |
20764 | { | |
20765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20766 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
20767 | ||
20768 | wxPyEndAllowThreads(__tstate); | |
20769 | if (PyErr_Occurred()) SWIG_fail; | |
20770 | } | |
4d5c3d91 | 20771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20772 | return resultobj; |
20773 | fail: | |
20774 | return NULL; | |
20775 | } | |
20776 | ||
20777 | ||
20778 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20779 | PyObject *resultobj; | |
20780 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20781 | int result; | |
20782 | PyObject * obj0 = 0 ; | |
20783 | char *kwnames[] = { | |
20784 | (char *) "self", NULL | |
20785 | }; | |
20786 | ||
20787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
20788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20789 | { | |
20790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20791 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
20792 | ||
20793 | wxPyEndAllowThreads(__tstate); | |
20794 | if (PyErr_Occurred()) SWIG_fail; | |
20795 | } | |
994141e6 | 20796 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20797 | return resultobj; |
20798 | fail: | |
20799 | return NULL; | |
20800 | } | |
20801 | ||
20802 | ||
20803 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20804 | PyObject *resultobj; | |
20805 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20806 | int result; | |
20807 | PyObject * obj0 = 0 ; | |
20808 | char *kwnames[] = { | |
20809 | (char *) "self", NULL | |
20810 | }; | |
20811 | ||
20812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
20813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20814 | { | |
20815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20816 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
20817 | ||
20818 | wxPyEndAllowThreads(__tstate); | |
20819 | if (PyErr_Occurred()) SWIG_fail; | |
20820 | } | |
994141e6 | 20821 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20822 | return resultobj; |
20823 | fail: | |
20824 | return NULL; | |
20825 | } | |
20826 | ||
20827 | ||
20828 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20829 | PyObject *resultobj; | |
20830 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20831 | wxSize result; | |
20832 | PyObject * obj0 = 0 ; | |
20833 | char *kwnames[] = { | |
20834 | (char *) "self", NULL | |
20835 | }; | |
20836 | ||
20837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
20838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20839 | { | |
20840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20841 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
20842 | ||
20843 | wxPyEndAllowThreads(__tstate); | |
20844 | if (PyErr_Occurred()) SWIG_fail; | |
20845 | } | |
20846 | { | |
20847 | wxSize * resultptr; | |
20848 | resultptr = new wxSize((wxSize &) result); | |
20849 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20850 | } | |
20851 | return resultobj; | |
20852 | fail: | |
20853 | return NULL; | |
20854 | } | |
20855 | ||
20856 | ||
20857 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20858 | PyObject *resultobj; | |
20859 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20860 | int arg2 ; | |
e811c8ce | 20861 | bool arg3 = (bool) False ; |
d14a1e28 | 20862 | PyObject * obj0 = 0 ; |
994141e6 | 20863 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20864 | PyObject * obj2 = 0 ; |
20865 | char *kwnames[] = { | |
20866 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
20867 | }; | |
20868 | ||
994141e6 | 20869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20871 | { |
20872 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20873 | if (PyErr_Occurred()) SWIG_fail; | |
20874 | } | |
d14a1e28 | 20875 | if (obj2) { |
a41e16b6 | 20876 | { |
994141e6 | 20877 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
20878 | if (PyErr_Occurred()) SWIG_fail; |
20879 | } | |
d14a1e28 RD |
20880 | } |
20881 | { | |
20882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20883 | (arg1)->SetItemSpacing(arg2,arg3); | |
20884 | ||
20885 | wxPyEndAllowThreads(__tstate); | |
20886 | if (PyErr_Occurred()) SWIG_fail; | |
20887 | } | |
20888 | Py_INCREF(Py_None); resultobj = Py_None; | |
20889 | return resultobj; | |
20890 | fail: | |
20891 | return NULL; | |
20892 | } | |
20893 | ||
20894 | ||
20895 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20896 | PyObject *resultobj; | |
20897 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20898 | int result; | |
20899 | PyObject * obj0 = 0 ; | |
20900 | char *kwnames[] = { | |
20901 | (char *) "self", NULL | |
20902 | }; | |
20903 | ||
20904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
20905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20906 | { | |
20907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20908 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
20909 | ||
20910 | wxPyEndAllowThreads(__tstate); | |
20911 | if (PyErr_Occurred()) SWIG_fail; | |
20912 | } | |
994141e6 | 20913 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20914 | return resultobj; |
20915 | fail: | |
20916 | return NULL; | |
20917 | } | |
20918 | ||
20919 | ||
20920 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20921 | PyObject *resultobj; | |
20922 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20923 | wxColour result; | |
20924 | PyObject * obj0 = 0 ; | |
20925 | char *kwnames[] = { | |
20926 | (char *) "self", NULL | |
20927 | }; | |
20928 | ||
20929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
20930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20931 | { | |
20932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20933 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
20934 | ||
20935 | wxPyEndAllowThreads(__tstate); | |
20936 | if (PyErr_Occurred()) SWIG_fail; | |
20937 | } | |
20938 | { | |
20939 | wxColour * resultptr; | |
20940 | resultptr = new wxColour((wxColour &) result); | |
20941 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
20942 | } | |
20943 | return resultobj; | |
20944 | fail: | |
20945 | return NULL; | |
20946 | } | |
20947 | ||
20948 | ||
20949 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20950 | PyObject *resultobj; | |
20951 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20952 | wxColour *arg2 = 0 ; | |
20953 | wxColour temp2 ; | |
20954 | PyObject * obj0 = 0 ; | |
20955 | PyObject * obj1 = 0 ; | |
20956 | char *kwnames[] = { | |
20957 | (char *) "self",(char *) "col", NULL | |
20958 | }; | |
20959 | ||
20960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
20961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20962 | { | |
20963 | arg2 = &temp2; | |
20964 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20965 | } | |
20966 | { | |
20967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20968 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
20969 | ||
20970 | wxPyEndAllowThreads(__tstate); | |
20971 | if (PyErr_Occurred()) SWIG_fail; | |
20972 | } | |
20973 | Py_INCREF(Py_None); resultobj = Py_None; | |
20974 | return resultobj; | |
20975 | fail: | |
20976 | return NULL; | |
20977 | } | |
20978 | ||
20979 | ||
20980 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20981 | PyObject *resultobj; | |
20982 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20983 | long result; | |
20984 | PyObject * obj0 = 0 ; | |
20985 | char *kwnames[] = { | |
20986 | (char *) "self", NULL | |
20987 | }; | |
20988 | ||
20989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
20990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20991 | { | |
20992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20993 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
20994 | ||
20995 | wxPyEndAllowThreads(__tstate); | |
20996 | if (PyErr_Occurred()) SWIG_fail; | |
20997 | } | |
994141e6 | 20998 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20999 | return resultobj; |
21000 | fail: | |
21001 | return NULL; | |
21002 | } | |
21003 | ||
21004 | ||
21005 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21006 | PyObject *resultobj; | |
21007 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21008 | long arg2 ; | |
e811c8ce | 21009 | bool arg3 = (bool) True ; |
d14a1e28 | 21010 | PyObject * obj0 = 0 ; |
994141e6 | 21011 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21012 | PyObject * obj2 = 0 ; |
21013 | char *kwnames[] = { | |
21014 | (char *) "self",(char *) "style",(char *) "add", NULL | |
21015 | }; | |
21016 | ||
994141e6 | 21017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21019 | { |
21020 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21021 | if (PyErr_Occurred()) SWIG_fail; | |
21022 | } | |
d14a1e28 | 21023 | if (obj2) { |
a41e16b6 | 21024 | { |
994141e6 | 21025 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
21026 | if (PyErr_Occurred()) SWIG_fail; |
21027 | } | |
d14a1e28 RD |
21028 | } |
21029 | { | |
21030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21031 | (arg1)->SetSingleStyle(arg2,arg3); | |
21032 | ||
21033 | wxPyEndAllowThreads(__tstate); | |
21034 | if (PyErr_Occurred()) SWIG_fail; | |
21035 | } | |
21036 | Py_INCREF(Py_None); resultobj = Py_None; | |
21037 | return resultobj; | |
21038 | fail: | |
21039 | return NULL; | |
21040 | } | |
21041 | ||
21042 | ||
21043 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21044 | PyObject *resultobj; | |
21045 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21046 | long arg2 ; | |
21047 | PyObject * obj0 = 0 ; | |
994141e6 | 21048 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21049 | char *kwnames[] = { |
21050 | (char *) "self",(char *) "style", NULL | |
21051 | }; | |
21052 | ||
994141e6 | 21053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21055 | { |
21056 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21057 | if (PyErr_Occurred()) SWIG_fail; | |
21058 | } | |
d14a1e28 RD |
21059 | { |
21060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21061 | (arg1)->SetWindowStyleFlag(arg2); | |
21062 | ||
21063 | wxPyEndAllowThreads(__tstate); | |
21064 | if (PyErr_Occurred()) SWIG_fail; | |
21065 | } | |
21066 | Py_INCREF(Py_None); resultobj = Py_None; | |
21067 | return resultobj; | |
21068 | fail: | |
21069 | return NULL; | |
21070 | } | |
21071 | ||
21072 | ||
21073 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21074 | PyObject *resultobj; | |
21075 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21076 | long arg2 ; | |
21077 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
21078 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
21079 | long result; | |
21080 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21081 | PyObject * obj1 = 0 ; |
21082 | PyObject * obj2 = 0 ; | |
21083 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21084 | char *kwnames[] = { |
21085 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
21086 | }; | |
21087 | ||
994141e6 | 21088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21090 | { |
21091 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21092 | if (PyErr_Occurred()) SWIG_fail; | |
21093 | } | |
21094 | if (obj2) { | |
21095 | { | |
21096 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21097 | if (PyErr_Occurred()) SWIG_fail; | |
21098 | } | |
21099 | } | |
21100 | if (obj3) { | |
21101 | { | |
21102 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21103 | if (PyErr_Occurred()) SWIG_fail; | |
21104 | } | |
21105 | } | |
d14a1e28 RD |
21106 | { |
21107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21108 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
21109 | ||
21110 | wxPyEndAllowThreads(__tstate); | |
21111 | if (PyErr_Occurred()) SWIG_fail; | |
21112 | } | |
994141e6 | 21113 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21114 | return resultobj; |
21115 | fail: | |
21116 | return NULL; | |
21117 | } | |
21118 | ||
21119 | ||
21120 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21121 | PyObject *resultobj; | |
21122 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21123 | int arg2 ; | |
21124 | wxImageList *result; | |
21125 | PyObject * obj0 = 0 ; | |
994141e6 | 21126 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21127 | char *kwnames[] = { |
21128 | (char *) "self",(char *) "which", NULL | |
21129 | }; | |
21130 | ||
994141e6 | 21131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21133 | { |
21134 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21135 | if (PyErr_Occurred()) SWIG_fail; | |
21136 | } | |
d14a1e28 RD |
21137 | { |
21138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21139 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
21140 | ||
21141 | wxPyEndAllowThreads(__tstate); | |
21142 | if (PyErr_Occurred()) SWIG_fail; | |
21143 | } | |
21144 | { | |
21145 | resultobj = wxPyMake_wxObject(result); | |
21146 | } | |
21147 | return resultobj; | |
21148 | fail: | |
21149 | return NULL; | |
21150 | } | |
21151 | ||
21152 | ||
21153 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21154 | PyObject *resultobj; | |
21155 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21156 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21157 | int arg3 ; | |
21158 | PyObject * obj0 = 0 ; | |
21159 | PyObject * obj1 = 0 ; | |
994141e6 | 21160 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21161 | char *kwnames[] = { |
21162 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21163 | }; | |
21164 | ||
994141e6 | 21165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
21166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
21167 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
21168 | { |
21169 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21170 | if (PyErr_Occurred()) SWIG_fail; | |
21171 | } | |
d14a1e28 RD |
21172 | { |
21173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21174 | (arg1)->SetImageList(arg2,arg3); | |
21175 | ||
21176 | wxPyEndAllowThreads(__tstate); | |
21177 | if (PyErr_Occurred()) SWIG_fail; | |
21178 | } | |
21179 | Py_INCREF(Py_None); resultobj = Py_None; | |
21180 | return resultobj; | |
21181 | fail: | |
21182 | return NULL; | |
21183 | } | |
21184 | ||
21185 | ||
21186 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21187 | PyObject *resultobj; | |
21188 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21189 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21190 | int arg3 ; | |
21191 | PyObject * obj0 = 0 ; | |
21192 | PyObject * obj1 = 0 ; | |
994141e6 | 21193 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21194 | char *kwnames[] = { |
21195 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21196 | }; | |
21197 | ||
994141e6 | 21198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
58203fa6 | 21200 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
994141e6 RD |
21201 | { |
21202 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21203 | if (PyErr_Occurred()) SWIG_fail; | |
21204 | } | |
d14a1e28 RD |
21205 | { |
21206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21207 | (arg1)->AssignImageList(arg2,arg3); | |
21208 | ||
21209 | wxPyEndAllowThreads(__tstate); | |
21210 | if (PyErr_Occurred()) SWIG_fail; | |
21211 | } | |
21212 | Py_INCREF(Py_None); resultobj = Py_None; | |
21213 | return resultobj; | |
21214 | fail: | |
21215 | return NULL; | |
21216 | } | |
21217 | ||
21218 | ||
21219 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21220 | PyObject *resultobj; | |
21221 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21222 | bool result; | |
21223 | PyObject * obj0 = 0 ; | |
21224 | char *kwnames[] = { | |
21225 | (char *) "self", NULL | |
21226 | }; | |
21227 | ||
21228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
21229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21230 | { | |
21231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21232 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
21233 | ||
21234 | wxPyEndAllowThreads(__tstate); | |
21235 | if (PyErr_Occurred()) SWIG_fail; | |
21236 | } | |
4d5c3d91 | 21237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21238 | return resultobj; |
21239 | fail: | |
21240 | return NULL; | |
21241 | } | |
21242 | ||
21243 | ||
21244 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21245 | PyObject *resultobj; | |
21246 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21247 | long arg2 ; | |
21248 | PyObject * obj0 = 0 ; | |
994141e6 | 21249 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21250 | char *kwnames[] = { |
21251 | (char *) "self",(char *) "item", NULL | |
21252 | }; | |
21253 | ||
994141e6 | 21254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21256 | { |
21257 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21258 | if (PyErr_Occurred()) SWIG_fail; | |
21259 | } | |
d14a1e28 RD |
21260 | { |
21261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21262 | (arg1)->RefreshItem(arg2); | |
21263 | ||
21264 | wxPyEndAllowThreads(__tstate); | |
21265 | if (PyErr_Occurred()) SWIG_fail; | |
21266 | } | |
21267 | Py_INCREF(Py_None); resultobj = Py_None; | |
21268 | return resultobj; | |
21269 | fail: | |
21270 | return NULL; | |
21271 | } | |
21272 | ||
21273 | ||
21274 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21275 | PyObject *resultobj; | |
21276 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21277 | long arg2 ; | |
21278 | long arg3 ; | |
21279 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21280 | PyObject * obj1 = 0 ; |
21281 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21282 | char *kwnames[] = { |
21283 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
21284 | }; | |
21285 | ||
994141e6 | 21286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21288 | { |
21289 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21290 | if (PyErr_Occurred()) SWIG_fail; | |
21291 | } | |
21292 | { | |
21293 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21294 | if (PyErr_Occurred()) SWIG_fail; | |
21295 | } | |
d14a1e28 RD |
21296 | { |
21297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21298 | (arg1)->RefreshItems(arg2,arg3); | |
21299 | ||
21300 | wxPyEndAllowThreads(__tstate); | |
21301 | if (PyErr_Occurred()) SWIG_fail; | |
21302 | } | |
21303 | Py_INCREF(Py_None); resultobj = Py_None; | |
21304 | return resultobj; | |
21305 | fail: | |
21306 | return NULL; | |
21307 | } | |
21308 | ||
21309 | ||
21310 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21311 | PyObject *resultobj; | |
21312 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21313 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
21314 | bool result; | |
21315 | PyObject * obj0 = 0 ; | |
994141e6 | 21316 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21317 | char *kwnames[] = { |
21318 | (char *) "self",(char *) "flag", NULL | |
21319 | }; | |
21320 | ||
994141e6 | 21321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21323 | if (obj1) { |
21324 | { | |
21325 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21326 | if (PyErr_Occurred()) SWIG_fail; | |
21327 | } | |
21328 | } | |
d14a1e28 RD |
21329 | { |
21330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21331 | result = (bool)(arg1)->Arrange(arg2); | |
21332 | ||
21333 | wxPyEndAllowThreads(__tstate); | |
21334 | if (PyErr_Occurred()) SWIG_fail; | |
21335 | } | |
4d5c3d91 | 21336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21337 | return resultobj; |
21338 | fail: | |
21339 | return NULL; | |
21340 | } | |
21341 | ||
21342 | ||
21343 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21344 | PyObject *resultobj; | |
21345 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21346 | long arg2 ; | |
21347 | bool result; | |
21348 | PyObject * obj0 = 0 ; | |
994141e6 | 21349 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21350 | char *kwnames[] = { |
21351 | (char *) "self",(char *) "item", NULL | |
21352 | }; | |
21353 | ||
994141e6 | 21354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21356 | { |
21357 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21358 | if (PyErr_Occurred()) SWIG_fail; | |
21359 | } | |
d14a1e28 RD |
21360 | { |
21361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21362 | result = (bool)(arg1)->DeleteItem(arg2); | |
21363 | ||
21364 | wxPyEndAllowThreads(__tstate); | |
21365 | if (PyErr_Occurred()) SWIG_fail; | |
21366 | } | |
4d5c3d91 | 21367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21368 | return resultobj; |
21369 | fail: | |
21370 | return NULL; | |
21371 | } | |
21372 | ||
21373 | ||
21374 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21375 | PyObject *resultobj; | |
21376 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21377 | bool result; | |
21378 | PyObject * obj0 = 0 ; | |
21379 | char *kwnames[] = { | |
21380 | (char *) "self", NULL | |
21381 | }; | |
21382 | ||
21383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
21384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21385 | { | |
21386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21387 | result = (bool)(arg1)->DeleteAllItems(); | |
21388 | ||
21389 | wxPyEndAllowThreads(__tstate); | |
21390 | if (PyErr_Occurred()) SWIG_fail; | |
21391 | } | |
4d5c3d91 | 21392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21393 | return resultobj; |
21394 | fail: | |
21395 | return NULL; | |
21396 | } | |
21397 | ||
21398 | ||
21399 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21400 | PyObject *resultobj; | |
21401 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21402 | int arg2 ; | |
21403 | bool result; | |
21404 | PyObject * obj0 = 0 ; | |
994141e6 | 21405 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21406 | char *kwnames[] = { |
21407 | (char *) "self",(char *) "col", NULL | |
21408 | }; | |
21409 | ||
994141e6 | 21410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21412 | { |
21413 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21414 | if (PyErr_Occurred()) SWIG_fail; | |
21415 | } | |
d14a1e28 RD |
21416 | { |
21417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21418 | result = (bool)(arg1)->DeleteColumn(arg2); | |
21419 | ||
21420 | wxPyEndAllowThreads(__tstate); | |
21421 | if (PyErr_Occurred()) SWIG_fail; | |
21422 | } | |
4d5c3d91 | 21423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21424 | return resultobj; |
21425 | fail: | |
21426 | return NULL; | |
21427 | } | |
21428 | ||
21429 | ||
21430 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21431 | PyObject *resultobj; | |
21432 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21433 | bool result; | |
21434 | PyObject * obj0 = 0 ; | |
21435 | char *kwnames[] = { | |
21436 | (char *) "self", NULL | |
21437 | }; | |
21438 | ||
21439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
21440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21441 | { | |
21442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21443 | result = (bool)(arg1)->DeleteAllColumns(); | |
21444 | ||
21445 | wxPyEndAllowThreads(__tstate); | |
21446 | if (PyErr_Occurred()) SWIG_fail; | |
21447 | } | |
4d5c3d91 | 21448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21449 | return resultobj; |
21450 | fail: | |
21451 | return NULL; | |
21452 | } | |
21453 | ||
21454 | ||
21455 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21456 | PyObject *resultobj; | |
21457 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21458 | PyObject * obj0 = 0 ; | |
21459 | char *kwnames[] = { | |
21460 | (char *) "self", NULL | |
21461 | }; | |
21462 | ||
21463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
21464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21465 | { | |
21466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21467 | (arg1)->ClearAll(); | |
21468 | ||
21469 | wxPyEndAllowThreads(__tstate); | |
21470 | if (PyErr_Occurred()) SWIG_fail; | |
21471 | } | |
21472 | Py_INCREF(Py_None); resultobj = Py_None; | |
21473 | return resultobj; | |
21474 | fail: | |
21475 | return NULL; | |
21476 | } | |
21477 | ||
21478 | ||
21479 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21480 | PyObject *resultobj; | |
21481 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21482 | long arg2 ; | |
21483 | PyObject * obj0 = 0 ; | |
994141e6 | 21484 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21485 | char *kwnames[] = { |
21486 | (char *) "self",(char *) "item", NULL | |
21487 | }; | |
21488 | ||
994141e6 | 21489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21491 | { |
21492 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21493 | if (PyErr_Occurred()) SWIG_fail; | |
21494 | } | |
d14a1e28 RD |
21495 | { |
21496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21497 | (arg1)->EditLabel(arg2); | |
21498 | ||
21499 | wxPyEndAllowThreads(__tstate); | |
21500 | if (PyErr_Occurred()) SWIG_fail; | |
21501 | } | |
21502 | Py_INCREF(Py_None); resultobj = Py_None; | |
21503 | return resultobj; | |
21504 | fail: | |
21505 | return NULL; | |
21506 | } | |
21507 | ||
21508 | ||
21509 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21510 | PyObject *resultobj; | |
21511 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21512 | long arg2 ; | |
21513 | bool result; | |
21514 | PyObject * obj0 = 0 ; | |
994141e6 | 21515 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21516 | char *kwnames[] = { |
21517 | (char *) "self",(char *) "item", NULL | |
21518 | }; | |
21519 | ||
994141e6 | 21520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21522 | { |
21523 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21524 | if (PyErr_Occurred()) SWIG_fail; | |
21525 | } | |
d14a1e28 RD |
21526 | { |
21527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21528 | result = (bool)(arg1)->EnsureVisible(arg2); | |
21529 | ||
21530 | wxPyEndAllowThreads(__tstate); | |
21531 | if (PyErr_Occurred()) SWIG_fail; | |
21532 | } | |
4d5c3d91 | 21533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21534 | return resultobj; |
21535 | fail: | |
21536 | return NULL; | |
21537 | } | |
21538 | ||
21539 | ||
21540 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21541 | PyObject *resultobj; | |
21542 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21543 | long arg2 ; | |
21544 | wxString *arg3 = 0 ; | |
e811c8ce | 21545 | bool arg4 = (bool) False ; |
d14a1e28 | 21546 | long result; |
e811c8ce | 21547 | bool temp3 = False ; |
d14a1e28 | 21548 | PyObject * obj0 = 0 ; |
994141e6 | 21549 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21550 | PyObject * obj2 = 0 ; |
21551 | PyObject * obj3 = 0 ; | |
21552 | char *kwnames[] = { | |
21553 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
21554 | }; | |
21555 | ||
994141e6 | 21556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21558 | { |
21559 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21560 | if (PyErr_Occurred()) SWIG_fail; | |
21561 | } | |
d14a1e28 RD |
21562 | { |
21563 | arg3 = wxString_in_helper(obj2); | |
21564 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 21565 | temp3 = True; |
d14a1e28 RD |
21566 | } |
21567 | if (obj3) { | |
a41e16b6 | 21568 | { |
994141e6 | 21569 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
21570 | if (PyErr_Occurred()) SWIG_fail; |
21571 | } | |
d14a1e28 RD |
21572 | } |
21573 | { | |
21574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21575 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
21576 | ||
21577 | wxPyEndAllowThreads(__tstate); | |
21578 | if (PyErr_Occurred()) SWIG_fail; | |
21579 | } | |
994141e6 | 21580 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21581 | { |
21582 | if (temp3) | |
21583 | delete arg3; | |
21584 | } | |
21585 | return resultobj; | |
21586 | fail: | |
21587 | { | |
21588 | if (temp3) | |
21589 | delete arg3; | |
21590 | } | |
21591 | return NULL; | |
21592 | } | |
21593 | ||
21594 | ||
21595 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21596 | PyObject *resultobj; | |
21597 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21598 | long arg2 ; | |
21599 | long arg3 ; | |
21600 | long result; | |
21601 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21602 | PyObject * obj1 = 0 ; |
21603 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21604 | char *kwnames[] = { |
21605 | (char *) "self",(char *) "start",(char *) "data", NULL | |
21606 | }; | |
21607 | ||
994141e6 | 21608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21610 | { |
21611 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21612 | if (PyErr_Occurred()) SWIG_fail; | |
21613 | } | |
21614 | { | |
21615 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21616 | if (PyErr_Occurred()) SWIG_fail; | |
21617 | } | |
d14a1e28 RD |
21618 | { |
21619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21620 | result = (long)(arg1)->FindItem(arg2,arg3); | |
21621 | ||
21622 | wxPyEndAllowThreads(__tstate); | |
21623 | if (PyErr_Occurred()) SWIG_fail; | |
21624 | } | |
994141e6 | 21625 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21626 | return resultobj; |
21627 | fail: | |
21628 | return NULL; | |
21629 | } | |
21630 | ||
21631 | ||
21632 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21633 | PyObject *resultobj; | |
21634 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21635 | long arg2 ; | |
21636 | wxPoint *arg3 = 0 ; | |
21637 | int arg4 ; | |
21638 | long result; | |
21639 | wxPoint temp3 ; | |
21640 | PyObject * obj0 = 0 ; | |
994141e6 | 21641 | PyObject * obj1 = 0 ; |
d14a1e28 | 21642 | PyObject * obj2 = 0 ; |
994141e6 | 21643 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
21644 | char *kwnames[] = { |
21645 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
21646 | }; | |
21647 | ||
994141e6 | 21648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21650 | { |
21651 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21652 | if (PyErr_Occurred()) SWIG_fail; | |
21653 | } | |
d14a1e28 RD |
21654 | { |
21655 | arg3 = &temp3; | |
21656 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21657 | } | |
994141e6 RD |
21658 | { |
21659 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21660 | if (PyErr_Occurred()) SWIG_fail; | |
21661 | } | |
d14a1e28 RD |
21662 | { |
21663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21664 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
21665 | ||
21666 | wxPyEndAllowThreads(__tstate); | |
21667 | if (PyErr_Occurred()) SWIG_fail; | |
21668 | } | |
994141e6 | 21669 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21670 | return resultobj; |
21671 | fail: | |
21672 | return NULL; | |
21673 | } | |
21674 | ||
21675 | ||
21676 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21677 | PyObject *resultobj; | |
21678 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21679 | wxPoint *arg2 = 0 ; | |
21680 | int *arg3 = 0 ; | |
21681 | long result; | |
21682 | wxPoint temp2 ; | |
21683 | int temp3 ; | |
21684 | PyObject * obj0 = 0 ; | |
21685 | PyObject * obj1 = 0 ; | |
21686 | char *kwnames[] = { | |
21687 | (char *) "self",(char *) "point", NULL | |
21688 | }; | |
21689 | ||
21690 | arg3 = &temp3; | |
21691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
21692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21693 | { | |
21694 | arg2 = &temp2; | |
21695 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21696 | } | |
21697 | { | |
21698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21699 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
21700 | ||
21701 | wxPyEndAllowThreads(__tstate); | |
21702 | if (PyErr_Occurred()) SWIG_fail; | |
21703 | } | |
994141e6 | 21704 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21705 | { |
21706 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21707 | resultobj = t_output_helper(resultobj,o); | |
21708 | } | |
21709 | return resultobj; | |
21710 | fail: | |
21711 | return NULL; | |
21712 | } | |
21713 | ||
21714 | ||
21715 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21716 | PyObject *resultobj; | |
21717 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21718 | wxListItem *arg2 = 0 ; | |
21719 | long result; | |
21720 | PyObject * obj0 = 0 ; | |
21721 | PyObject * obj1 = 0 ; | |
21722 | char *kwnames[] = { | |
21723 | (char *) "self",(char *) "info", NULL | |
21724 | }; | |
21725 | ||
21726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
21727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21728 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21729 | if (arg2 == NULL) { | |
21730 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21731 | } | |
21732 | { | |
21733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21734 | result = (long)(arg1)->InsertItem(*arg2); | |
21735 | ||
21736 | wxPyEndAllowThreads(__tstate); | |
21737 | if (PyErr_Occurred()) SWIG_fail; | |
21738 | } | |
994141e6 | 21739 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21740 | return resultobj; |
21741 | fail: | |
21742 | return NULL; | |
21743 | } | |
21744 | ||
21745 | ||
21746 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21747 | PyObject *resultobj; | |
21748 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21749 | long arg2 ; | |
21750 | wxString *arg3 = 0 ; | |
21751 | long result; | |
e811c8ce | 21752 | bool temp3 = False ; |
d14a1e28 | 21753 | PyObject * obj0 = 0 ; |
994141e6 | 21754 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21755 | PyObject * obj2 = 0 ; |
21756 | char *kwnames[] = { | |
21757 | (char *) "self",(char *) "index",(char *) "label", NULL | |
21758 | }; | |
21759 | ||
994141e6 | 21760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21762 | { |
21763 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21764 | if (PyErr_Occurred()) SWIG_fail; | |
21765 | } | |
d14a1e28 RD |
21766 | { |
21767 | arg3 = wxString_in_helper(obj2); | |
21768 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 21769 | temp3 = True; |
d14a1e28 RD |
21770 | } |
21771 | { | |
21772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21773 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
21774 | ||
21775 | wxPyEndAllowThreads(__tstate); | |
21776 | if (PyErr_Occurred()) SWIG_fail; | |
21777 | } | |
994141e6 | 21778 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21779 | { |
21780 | if (temp3) | |
21781 | delete arg3; | |
21782 | } | |
21783 | return resultobj; | |
21784 | fail: | |
21785 | { | |
21786 | if (temp3) | |
21787 | delete arg3; | |
21788 | } | |
21789 | return NULL; | |
21790 | } | |
21791 | ||
21792 | ||
21793 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21794 | PyObject *resultobj; | |
21795 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21796 | long arg2 ; | |
21797 | int arg3 ; | |
21798 | long result; | |
21799 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21800 | PyObject * obj1 = 0 ; |
21801 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21802 | char *kwnames[] = { |
21803 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
21804 | }; | |
21805 | ||
994141e6 | 21806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21808 | { |
21809 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21810 | if (PyErr_Occurred()) SWIG_fail; | |
21811 | } | |
21812 | { | |
21813 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21814 | if (PyErr_Occurred()) SWIG_fail; | |
21815 | } | |
d14a1e28 RD |
21816 | { |
21817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21818 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
21819 | ||
21820 | wxPyEndAllowThreads(__tstate); | |
21821 | if (PyErr_Occurred()) SWIG_fail; | |
21822 | } | |
994141e6 | 21823 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21824 | return resultobj; |
21825 | fail: | |
21826 | return NULL; | |
21827 | } | |
21828 | ||
21829 | ||
21830 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21831 | PyObject *resultobj; | |
21832 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21833 | long arg2 ; | |
21834 | wxString *arg3 = 0 ; | |
21835 | int arg4 ; | |
21836 | long result; | |
e811c8ce | 21837 | bool temp3 = False ; |
d14a1e28 | 21838 | PyObject * obj0 = 0 ; |
994141e6 | 21839 | PyObject * obj1 = 0 ; |
d14a1e28 | 21840 | PyObject * obj2 = 0 ; |
994141e6 | 21841 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
21842 | char *kwnames[] = { |
21843 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
21844 | }; | |
21845 | ||
994141e6 | 21846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21848 | { |
21849 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21850 | if (PyErr_Occurred()) SWIG_fail; | |
21851 | } | |
d14a1e28 RD |
21852 | { |
21853 | arg3 = wxString_in_helper(obj2); | |
21854 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 21855 | temp3 = True; |
d14a1e28 | 21856 | } |
994141e6 RD |
21857 | { |
21858 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21859 | if (PyErr_Occurred()) SWIG_fail; | |
21860 | } | |
d14a1e28 RD |
21861 | { |
21862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21863 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
21864 | ||
21865 | wxPyEndAllowThreads(__tstate); | |
21866 | if (PyErr_Occurred()) SWIG_fail; | |
21867 | } | |
994141e6 | 21868 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21869 | { |
21870 | if (temp3) | |
21871 | delete arg3; | |
21872 | } | |
21873 | return resultobj; | |
21874 | fail: | |
21875 | { | |
21876 | if (temp3) | |
21877 | delete arg3; | |
21878 | } | |
21879 | return NULL; | |
21880 | } | |
21881 | ||
21882 | ||
21883 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21884 | PyObject *resultobj; | |
21885 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21886 | long arg2 ; | |
21887 | wxListItem *arg3 = 0 ; | |
21888 | long result; | |
21889 | PyObject * obj0 = 0 ; | |
994141e6 | 21890 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21891 | PyObject * obj2 = 0 ; |
21892 | char *kwnames[] = { | |
21893 | (char *) "self",(char *) "col",(char *) "info", NULL | |
21894 | }; | |
21895 | ||
994141e6 | 21896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21898 | { |
21899 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21900 | if (PyErr_Occurred()) SWIG_fail; | |
21901 | } | |
d14a1e28 RD |
21902 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
21903 | if (arg3 == NULL) { | |
21904 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21905 | } | |
21906 | { | |
21907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21908 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
21909 | ||
21910 | wxPyEndAllowThreads(__tstate); | |
21911 | if (PyErr_Occurred()) SWIG_fail; | |
21912 | } | |
994141e6 | 21913 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21914 | return resultobj; |
21915 | fail: | |
21916 | return NULL; | |
21917 | } | |
21918 | ||
21919 | ||
21920 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21921 | PyObject *resultobj; | |
21922 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21923 | long arg2 ; | |
21924 | wxString *arg3 = 0 ; | |
21925 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
21926 | int arg5 = (int) -1 ; | |
21927 | long result; | |
e811c8ce | 21928 | bool temp3 = False ; |
d14a1e28 | 21929 | PyObject * obj0 = 0 ; |
994141e6 | 21930 | PyObject * obj1 = 0 ; |
d14a1e28 | 21931 | PyObject * obj2 = 0 ; |
994141e6 RD |
21932 | PyObject * obj3 = 0 ; |
21933 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
21934 | char *kwnames[] = { |
21935 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
21936 | }; | |
21937 | ||
994141e6 | 21938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 21939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21940 | { |
21941 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21942 | if (PyErr_Occurred()) SWIG_fail; | |
21943 | } | |
d14a1e28 RD |
21944 | { |
21945 | arg3 = wxString_in_helper(obj2); | |
21946 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 21947 | temp3 = True; |
d14a1e28 | 21948 | } |
994141e6 RD |
21949 | if (obj3) { |
21950 | { | |
21951 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21952 | if (PyErr_Occurred()) SWIG_fail; | |
21953 | } | |
21954 | } | |
21955 | if (obj4) { | |
21956 | { | |
21957 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
21958 | if (PyErr_Occurred()) SWIG_fail; | |
21959 | } | |
21960 | } | |
d14a1e28 RD |
21961 | { |
21962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21963 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
21964 | ||
21965 | wxPyEndAllowThreads(__tstate); | |
21966 | if (PyErr_Occurred()) SWIG_fail; | |
21967 | } | |
994141e6 | 21968 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21969 | { |
21970 | if (temp3) | |
21971 | delete arg3; | |
21972 | } | |
21973 | return resultobj; | |
21974 | fail: | |
21975 | { | |
21976 | if (temp3) | |
21977 | delete arg3; | |
21978 | } | |
21979 | return NULL; | |
21980 | } | |
21981 | ||
21982 | ||
21983 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21984 | PyObject *resultobj; | |
21985 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21986 | long arg2 ; | |
21987 | PyObject * obj0 = 0 ; | |
994141e6 | 21988 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21989 | char *kwnames[] = { |
21990 | (char *) "self",(char *) "count", NULL | |
21991 | }; | |
21992 | ||
994141e6 | 21993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21995 | { |
21996 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21997 | if (PyErr_Occurred()) SWIG_fail; | |
21998 | } | |
d14a1e28 RD |
21999 | { |
22000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22001 | (arg1)->SetItemCount(arg2); | |
22002 | ||
22003 | wxPyEndAllowThreads(__tstate); | |
22004 | if (PyErr_Occurred()) SWIG_fail; | |
22005 | } | |
22006 | Py_INCREF(Py_None); resultobj = Py_None; | |
22007 | return resultobj; | |
22008 | fail: | |
22009 | return NULL; | |
22010 | } | |
22011 | ||
22012 | ||
22013 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22014 | PyObject *resultobj; | |
22015 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22016 | int arg2 ; | |
22017 | int arg3 ; | |
22018 | bool result; | |
22019 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22020 | PyObject * obj1 = 0 ; |
22021 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22022 | char *kwnames[] = { |
22023 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
22024 | }; | |
22025 | ||
994141e6 | 22026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22028 | { |
22029 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22030 | if (PyErr_Occurred()) SWIG_fail; | |
22031 | } | |
22032 | { | |
22033 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22034 | if (PyErr_Occurred()) SWIG_fail; | |
22035 | } | |
d14a1e28 RD |
22036 | { |
22037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22038 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
22039 | ||
22040 | wxPyEndAllowThreads(__tstate); | |
22041 | if (PyErr_Occurred()) SWIG_fail; | |
22042 | } | |
4d5c3d91 | 22043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22044 | return resultobj; |
22045 | fail: | |
22046 | return NULL; | |
22047 | } | |
22048 | ||
22049 | ||
22050 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22051 | PyObject *resultobj; | |
22052 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22053 | long arg2 ; | |
22054 | wxColour *arg3 = 0 ; | |
22055 | wxColour temp3 ; | |
22056 | PyObject * obj0 = 0 ; | |
994141e6 | 22057 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22058 | PyObject * obj2 = 0 ; |
22059 | char *kwnames[] = { | |
22060 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22061 | }; | |
22062 | ||
994141e6 | 22063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22065 | { |
22066 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22067 | if (PyErr_Occurred()) SWIG_fail; | |
22068 | } | |
d14a1e28 RD |
22069 | { |
22070 | arg3 = &temp3; | |
22071 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22072 | } | |
22073 | { | |
22074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22075 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
22076 | ||
22077 | wxPyEndAllowThreads(__tstate); | |
22078 | if (PyErr_Occurred()) SWIG_fail; | |
22079 | } | |
22080 | Py_INCREF(Py_None); resultobj = Py_None; | |
22081 | return resultobj; | |
22082 | fail: | |
22083 | return NULL; | |
22084 | } | |
22085 | ||
22086 | ||
22087 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22088 | PyObject *resultobj; | |
22089 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22090 | long arg2 ; | |
22091 | wxColour result; | |
22092 | PyObject * obj0 = 0 ; | |
994141e6 | 22093 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22094 | char *kwnames[] = { |
22095 | (char *) "self",(char *) "item", NULL | |
22096 | }; | |
22097 | ||
994141e6 | 22098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22100 | { |
22101 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22102 | if (PyErr_Occurred()) SWIG_fail; | |
22103 | } | |
d14a1e28 RD |
22104 | { |
22105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22106 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
22107 | ||
22108 | wxPyEndAllowThreads(__tstate); | |
22109 | if (PyErr_Occurred()) SWIG_fail; | |
22110 | } | |
22111 | { | |
22112 | wxColour * resultptr; | |
22113 | resultptr = new wxColour((wxColour &) result); | |
22114 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
22115 | } | |
22116 | return resultobj; | |
22117 | fail: | |
22118 | return NULL; | |
22119 | } | |
22120 | ||
22121 | ||
22122 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22123 | PyObject *resultobj; | |
22124 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22125 | long arg2 ; | |
22126 | wxColour *arg3 = 0 ; | |
22127 | wxColour temp3 ; | |
22128 | PyObject * obj0 = 0 ; | |
994141e6 | 22129 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22130 | PyObject * obj2 = 0 ; |
22131 | char *kwnames[] = { | |
22132 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22133 | }; | |
22134 | ||
994141e6 | 22135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22137 | { |
22138 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22139 | if (PyErr_Occurred()) SWIG_fail; | |
22140 | } | |
d14a1e28 RD |
22141 | { |
22142 | arg3 = &temp3; | |
22143 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22144 | } | |
22145 | { | |
22146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22147 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
22148 | ||
22149 | wxPyEndAllowThreads(__tstate); | |
22150 | if (PyErr_Occurred()) SWIG_fail; | |
22151 | } | |
22152 | Py_INCREF(Py_None); resultobj = Py_None; | |
22153 | return resultobj; | |
22154 | fail: | |
22155 | return NULL; | |
22156 | } | |
22157 | ||
22158 | ||
22159 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22160 | PyObject *resultobj; | |
22161 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22162 | long arg2 ; | |
22163 | wxColour result; | |
22164 | PyObject * obj0 = 0 ; | |
994141e6 | 22165 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22166 | char *kwnames[] = { |
22167 | (char *) "self",(char *) "item", NULL | |
22168 | }; | |
22169 | ||
994141e6 | 22170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22172 | { |
22173 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22174 | if (PyErr_Occurred()) SWIG_fail; | |
22175 | } | |
d14a1e28 RD |
22176 | { |
22177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22178 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
22179 | ||
22180 | wxPyEndAllowThreads(__tstate); | |
22181 | if (PyErr_Occurred()) SWIG_fail; | |
22182 | } | |
22183 | { | |
22184 | wxColour * resultptr; | |
22185 | resultptr = new wxColour((wxColour &) result); | |
22186 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
22187 | } | |
22188 | return resultobj; | |
22189 | fail: | |
22190 | return NULL; | |
22191 | } | |
22192 | ||
22193 | ||
22194 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22195 | PyObject *resultobj; | |
22196 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22197 | PyObject *arg2 = (PyObject *) 0 ; | |
22198 | bool result; | |
22199 | PyObject * obj0 = 0 ; | |
22200 | PyObject * obj1 = 0 ; | |
22201 | char *kwnames[] = { | |
22202 | (char *) "self",(char *) "func", NULL | |
22203 | }; | |
22204 | ||
22205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
22206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22207 | arg2 = obj1; | |
22208 | { | |
22209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22210 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
22211 | ||
22212 | wxPyEndAllowThreads(__tstate); | |
22213 | if (PyErr_Occurred()) SWIG_fail; | |
22214 | } | |
4d5c3d91 | 22215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22216 | return resultobj; |
22217 | fail: | |
22218 | return NULL; | |
22219 | } | |
22220 | ||
22221 | ||
22222 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22223 | PyObject *resultobj; | |
22224 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22225 | wxWindow *result; | |
22226 | PyObject * obj0 = 0 ; | |
22227 | char *kwnames[] = { | |
22228 | (char *) "self", NULL | |
22229 | }; | |
22230 | ||
22231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
22232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22233 | { | |
22234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22235 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
22236 | ||
22237 | wxPyEndAllowThreads(__tstate); | |
22238 | if (PyErr_Occurred()) SWIG_fail; | |
22239 | } | |
22240 | { | |
22241 | resultobj = wxPyMake_wxObject(result); | |
22242 | } | |
22243 | return resultobj; | |
22244 | fail: | |
22245 | return NULL; | |
22246 | } | |
22247 | ||
22248 | ||
22249 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
22250 | PyObject *obj; | |
22251 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22252 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
22253 | Py_INCREF(obj); | |
22254 | return Py_BuildValue((char *)""); | |
22255 | } | |
22256 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22257 | PyObject *resultobj; | |
22258 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 22259 | int arg2 = (int) -1 ; |
d14a1e28 RD |
22260 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
22261 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22262 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22263 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22264 | long arg5 = (long) wxLC_REPORT ; | |
22265 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
22266 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
22267 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
22268 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22269 | wxListView *result; | |
22270 | wxPoint temp3 ; | |
22271 | wxSize temp4 ; | |
e811c8ce | 22272 | bool temp7 = False ; |
d14a1e28 | 22273 | PyObject * obj0 = 0 ; |
994141e6 | 22274 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22275 | PyObject * obj2 = 0 ; |
22276 | PyObject * obj3 = 0 ; | |
994141e6 | 22277 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
22278 | PyObject * obj5 = 0 ; |
22279 | PyObject * obj6 = 0 ; | |
22280 | char *kwnames[] = { | |
22281 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22282 | }; | |
22283 | ||
994141e6 | 22284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 22285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22286 | if (obj1) { |
22287 | { | |
22288 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22289 | if (PyErr_Occurred()) SWIG_fail; | |
22290 | } | |
22291 | } | |
d14a1e28 RD |
22292 | if (obj2) { |
22293 | { | |
22294 | arg3 = &temp3; | |
22295 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22296 | } | |
22297 | } | |
22298 | if (obj3) { | |
22299 | { | |
22300 | arg4 = &temp4; | |
22301 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22302 | } | |
22303 | } | |
994141e6 RD |
22304 | if (obj4) { |
22305 | { | |
22306 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
22307 | if (PyErr_Occurred()) SWIG_fail; | |
22308 | } | |
22309 | } | |
d14a1e28 RD |
22310 | if (obj5) { |
22311 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22312 | if (arg6 == NULL) { | |
22313 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22314 | } | |
22315 | } | |
22316 | if (obj6) { | |
22317 | { | |
22318 | arg7 = wxString_in_helper(obj6); | |
22319 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 22320 | temp7 = True; |
d14a1e28 RD |
22321 | } |
22322 | } | |
22323 | { | |
22324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22325 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
22326 | ||
22327 | wxPyEndAllowThreads(__tstate); | |
22328 | if (PyErr_Occurred()) SWIG_fail; | |
22329 | } | |
22330 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
22331 | { | |
22332 | if (temp7) | |
22333 | delete arg7; | |
22334 | } | |
22335 | return resultobj; | |
22336 | fail: | |
22337 | { | |
22338 | if (temp7) | |
22339 | delete arg7; | |
22340 | } | |
22341 | return NULL; | |
22342 | } | |
22343 | ||
22344 | ||
22345 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22346 | PyObject *resultobj; | |
22347 | wxListView *result; | |
22348 | char *kwnames[] = { | |
22349 | NULL | |
22350 | }; | |
22351 | ||
22352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
22353 | { | |
22354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22355 | result = (wxListView *)new wxListView(); | |
22356 | ||
22357 | wxPyEndAllowThreads(__tstate); | |
22358 | if (PyErr_Occurred()) SWIG_fail; | |
22359 | } | |
22360 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
22361 | return resultobj; | |
22362 | fail: | |
22363 | return NULL; | |
22364 | } | |
22365 | ||
22366 | ||
22367 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22368 | PyObject *resultobj; | |
22369 | wxListView *arg1 = (wxListView *) 0 ; | |
22370 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 22371 | int arg3 = (int) -1 ; |
d14a1e28 RD |
22372 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
22373 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22374 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22375 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22376 | long arg6 = (long) wxLC_REPORT ; | |
22377 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
22378 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
22379 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
22380 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
22381 | bool result; | |
22382 | wxPoint temp4 ; | |
22383 | wxSize temp5 ; | |
e811c8ce | 22384 | bool temp8 = False ; |
d14a1e28 RD |
22385 | PyObject * obj0 = 0 ; |
22386 | PyObject * obj1 = 0 ; | |
994141e6 | 22387 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22388 | PyObject * obj3 = 0 ; |
22389 | PyObject * obj4 = 0 ; | |
994141e6 | 22390 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22391 | PyObject * obj6 = 0 ; |
22392 | PyObject * obj7 = 0 ; | |
22393 | char *kwnames[] = { | |
22394 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22395 | }; | |
22396 | ||
994141e6 | 22397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
22398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
22399 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
22400 | if (obj2) { |
22401 | { | |
22402 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22403 | if (PyErr_Occurred()) SWIG_fail; | |
22404 | } | |
22405 | } | |
d14a1e28 RD |
22406 | if (obj3) { |
22407 | { | |
22408 | arg4 = &temp4; | |
22409 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22410 | } | |
22411 | } | |
22412 | if (obj4) { | |
22413 | { | |
22414 | arg5 = &temp5; | |
22415 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22416 | } | |
22417 | } | |
994141e6 RD |
22418 | if (obj5) { |
22419 | { | |
22420 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
22421 | if (PyErr_Occurred()) SWIG_fail; | |
22422 | } | |
22423 | } | |
d14a1e28 RD |
22424 | if (obj6) { |
22425 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22426 | if (arg7 == NULL) { | |
22427 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22428 | } | |
22429 | } | |
22430 | if (obj7) { | |
22431 | { | |
22432 | arg8 = wxString_in_helper(obj7); | |
22433 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 22434 | temp8 = True; |
d14a1e28 RD |
22435 | } |
22436 | } | |
22437 | { | |
22438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22439 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
22440 | ||
22441 | wxPyEndAllowThreads(__tstate); | |
22442 | if (PyErr_Occurred()) SWIG_fail; | |
22443 | } | |
4d5c3d91 | 22444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22445 | { |
22446 | if (temp8) | |
22447 | delete arg8; | |
22448 | } | |
22449 | return resultobj; | |
22450 | fail: | |
22451 | { | |
22452 | if (temp8) | |
22453 | delete arg8; | |
22454 | } | |
22455 | return NULL; | |
22456 | } | |
22457 | ||
22458 | ||
22459 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22460 | PyObject *resultobj; | |
22461 | wxListView *arg1 = (wxListView *) 0 ; | |
22462 | long arg2 ; | |
e811c8ce | 22463 | bool arg3 = (bool) True ; |
d14a1e28 | 22464 | PyObject * obj0 = 0 ; |
994141e6 | 22465 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22466 | PyObject * obj2 = 0 ; |
22467 | char *kwnames[] = { | |
22468 | (char *) "self",(char *) "n",(char *) "on", NULL | |
22469 | }; | |
22470 | ||
994141e6 | 22471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22473 | { |
22474 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22475 | if (PyErr_Occurred()) SWIG_fail; | |
22476 | } | |
d14a1e28 | 22477 | if (obj2) { |
a41e16b6 | 22478 | { |
994141e6 | 22479 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
22480 | if (PyErr_Occurred()) SWIG_fail; |
22481 | } | |
d14a1e28 RD |
22482 | } |
22483 | { | |
22484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22485 | (arg1)->Select(arg2,arg3); | |
22486 | ||
22487 | wxPyEndAllowThreads(__tstate); | |
22488 | if (PyErr_Occurred()) SWIG_fail; | |
22489 | } | |
22490 | Py_INCREF(Py_None); resultobj = Py_None; | |
22491 | return resultobj; | |
22492 | fail: | |
22493 | return NULL; | |
22494 | } | |
22495 | ||
22496 | ||
22497 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22498 | PyObject *resultobj; | |
22499 | wxListView *arg1 = (wxListView *) 0 ; | |
22500 | long arg2 ; | |
22501 | PyObject * obj0 = 0 ; | |
994141e6 | 22502 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22503 | char *kwnames[] = { |
22504 | (char *) "self",(char *) "index", NULL | |
22505 | }; | |
22506 | ||
994141e6 | 22507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22509 | { |
22510 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22511 | if (PyErr_Occurred()) SWIG_fail; | |
22512 | } | |
d14a1e28 RD |
22513 | { |
22514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22515 | (arg1)->Focus(arg2); | |
22516 | ||
22517 | wxPyEndAllowThreads(__tstate); | |
22518 | if (PyErr_Occurred()) SWIG_fail; | |
22519 | } | |
22520 | Py_INCREF(Py_None); resultobj = Py_None; | |
22521 | return resultobj; | |
22522 | fail: | |
22523 | return NULL; | |
22524 | } | |
22525 | ||
22526 | ||
22527 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22528 | PyObject *resultobj; | |
22529 | wxListView *arg1 = (wxListView *) 0 ; | |
22530 | long result; | |
22531 | PyObject * obj0 = 0 ; | |
22532 | char *kwnames[] = { | |
22533 | (char *) "self", NULL | |
22534 | }; | |
22535 | ||
22536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
22537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22538 | { | |
22539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22540 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
22541 | ||
22542 | wxPyEndAllowThreads(__tstate); | |
22543 | if (PyErr_Occurred()) SWIG_fail; | |
22544 | } | |
994141e6 | 22545 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22546 | return resultobj; |
22547 | fail: | |
22548 | return NULL; | |
22549 | } | |
22550 | ||
22551 | ||
22552 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22553 | PyObject *resultobj; | |
22554 | wxListView *arg1 = (wxListView *) 0 ; | |
22555 | long arg2 ; | |
22556 | long result; | |
22557 | PyObject * obj0 = 0 ; | |
994141e6 | 22558 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22559 | char *kwnames[] = { |
22560 | (char *) "self",(char *) "item", NULL | |
22561 | }; | |
22562 | ||
994141e6 | 22563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22565 | { |
22566 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22567 | if (PyErr_Occurred()) SWIG_fail; | |
22568 | } | |
d14a1e28 RD |
22569 | { |
22570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22571 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
22572 | ||
22573 | wxPyEndAllowThreads(__tstate); | |
22574 | if (PyErr_Occurred()) SWIG_fail; | |
22575 | } | |
994141e6 | 22576 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22577 | return resultobj; |
22578 | fail: | |
22579 | return NULL; | |
22580 | } | |
22581 | ||
22582 | ||
22583 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22584 | PyObject *resultobj; | |
22585 | wxListView *arg1 = (wxListView *) 0 ; | |
22586 | long result; | |
22587 | PyObject * obj0 = 0 ; | |
22588 | char *kwnames[] = { | |
22589 | (char *) "self", NULL | |
22590 | }; | |
22591 | ||
22592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
22593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22594 | { | |
22595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22596 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
22597 | ||
22598 | wxPyEndAllowThreads(__tstate); | |
22599 | if (PyErr_Occurred()) SWIG_fail; | |
22600 | } | |
994141e6 | 22601 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22602 | return resultobj; |
22603 | fail: | |
22604 | return NULL; | |
22605 | } | |
22606 | ||
22607 | ||
22608 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22609 | PyObject *resultobj; | |
22610 | wxListView *arg1 = (wxListView *) 0 ; | |
22611 | long arg2 ; | |
22612 | bool result; | |
22613 | PyObject * obj0 = 0 ; | |
994141e6 | 22614 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22615 | char *kwnames[] = { |
22616 | (char *) "self",(char *) "index", NULL | |
22617 | }; | |
22618 | ||
994141e6 | 22619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22621 | { |
22622 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22623 | if (PyErr_Occurred()) SWIG_fail; | |
22624 | } | |
d14a1e28 RD |
22625 | { |
22626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22627 | result = (bool)(arg1)->IsSelected(arg2); | |
22628 | ||
22629 | wxPyEndAllowThreads(__tstate); | |
22630 | if (PyErr_Occurred()) SWIG_fail; | |
22631 | } | |
4d5c3d91 | 22632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22633 | return resultobj; |
22634 | fail: | |
22635 | return NULL; | |
22636 | } | |
22637 | ||
22638 | ||
22639 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22640 | PyObject *resultobj; | |
22641 | wxListView *arg1 = (wxListView *) 0 ; | |
22642 | int arg2 ; | |
22643 | int arg3 ; | |
22644 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22645 | PyObject * obj1 = 0 ; |
22646 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22647 | char *kwnames[] = { |
22648 | (char *) "self",(char *) "col",(char *) "image", NULL | |
22649 | }; | |
22650 | ||
994141e6 | 22651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22653 | { |
22654 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22655 | if (PyErr_Occurred()) SWIG_fail; | |
22656 | } | |
22657 | { | |
22658 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22659 | if (PyErr_Occurred()) SWIG_fail; | |
22660 | } | |
d14a1e28 RD |
22661 | { |
22662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22663 | (arg1)->SetColumnImage(arg2,arg3); | |
22664 | ||
22665 | wxPyEndAllowThreads(__tstate); | |
22666 | if (PyErr_Occurred()) SWIG_fail; | |
22667 | } | |
22668 | Py_INCREF(Py_None); resultobj = Py_None; | |
22669 | return resultobj; | |
22670 | fail: | |
22671 | return NULL; | |
22672 | } | |
22673 | ||
22674 | ||
22675 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22676 | PyObject *resultobj; | |
22677 | wxListView *arg1 = (wxListView *) 0 ; | |
22678 | int arg2 ; | |
22679 | PyObject * obj0 = 0 ; | |
994141e6 | 22680 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22681 | char *kwnames[] = { |
22682 | (char *) "self",(char *) "col", NULL | |
22683 | }; | |
22684 | ||
994141e6 | 22685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22687 | { |
22688 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22689 | if (PyErr_Occurred()) SWIG_fail; | |
22690 | } | |
d14a1e28 RD |
22691 | { |
22692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22693 | (arg1)->ClearColumnImage(arg2); | |
22694 | ||
22695 | wxPyEndAllowThreads(__tstate); | |
22696 | if (PyErr_Occurred()) SWIG_fail; | |
22697 | } | |
22698 | Py_INCREF(Py_None); resultobj = Py_None; | |
22699 | return resultobj; | |
22700 | fail: | |
22701 | return NULL; | |
22702 | } | |
22703 | ||
22704 | ||
22705 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
22706 | PyObject *obj; | |
22707 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22708 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
22709 | Py_INCREF(obj); | |
22710 | return Py_BuildValue((char *)""); | |
22711 | } | |
b2dc1044 RD |
22712 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { |
22713 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); | |
22714 | return 1; | |
22715 | } | |
22716 | ||
22717 | ||
22718 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
22719 | PyObject *pyobj; | |
22720 | ||
22721 | { | |
22722 | #if wxUSE_UNICODE | |
22723 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22724 | #else | |
22725 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22726 | #endif | |
22727 | } | |
22728 | return pyobj; | |
22729 | } | |
22730 | ||
22731 | ||
d14a1e28 RD |
22732 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
22733 | PyObject *resultobj; | |
22734 | wxTreeItemId *result; | |
22735 | char *kwnames[] = { | |
22736 | NULL | |
22737 | }; | |
22738 | ||
22739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
22740 | { | |
22741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22742 | result = (wxTreeItemId *)new wxTreeItemId(); | |
22743 | ||
22744 | wxPyEndAllowThreads(__tstate); | |
22745 | if (PyErr_Occurred()) SWIG_fail; | |
22746 | } | |
22747 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 1); | |
22748 | return resultobj; | |
22749 | fail: | |
22750 | return NULL; | |
22751 | } | |
22752 | ||
22753 | ||
22754 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22755 | PyObject *resultobj; | |
22756 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22757 | PyObject * obj0 = 0 ; | |
22758 | char *kwnames[] = { | |
22759 | (char *) "self", NULL | |
22760 | }; | |
22761 | ||
22762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
22763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22764 | { | |
22765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22766 | delete arg1; | |
22767 | ||
22768 | wxPyEndAllowThreads(__tstate); | |
22769 | if (PyErr_Occurred()) SWIG_fail; | |
22770 | } | |
22771 | Py_INCREF(Py_None); resultobj = Py_None; | |
22772 | return resultobj; | |
22773 | fail: | |
22774 | return NULL; | |
22775 | } | |
22776 | ||
22777 | ||
22778 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22779 | PyObject *resultobj; | |
22780 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22781 | bool result; | |
22782 | PyObject * obj0 = 0 ; | |
22783 | char *kwnames[] = { | |
22784 | (char *) "self", NULL | |
22785 | }; | |
22786 | ||
22787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
22788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22789 | { | |
22790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22791 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
22792 | ||
22793 | wxPyEndAllowThreads(__tstate); | |
22794 | if (PyErr_Occurred()) SWIG_fail; | |
22795 | } | |
4d5c3d91 | 22796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22797 | return resultobj; |
22798 | fail: | |
22799 | return NULL; | |
22800 | } | |
22801 | ||
22802 | ||
22803 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22804 | PyObject *resultobj; | |
22805 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22806 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
22807 | bool result; | |
22808 | PyObject * obj0 = 0 ; | |
22809 | PyObject * obj1 = 0 ; | |
22810 | char *kwnames[] = { | |
22811 | (char *) "self",(char *) "other", NULL | |
22812 | }; | |
22813 | ||
22814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22816 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22817 | { | |
22818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22819 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
22820 | |
22821 | wxPyEndAllowThreads(__tstate); | |
22822 | if (PyErr_Occurred()) SWIG_fail; | |
22823 | } | |
4d5c3d91 | 22824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22825 | return resultobj; |
22826 | fail: | |
22827 | return NULL; | |
22828 | } | |
22829 | ||
22830 | ||
22831 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22832 | PyObject *resultobj; | |
22833 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22834 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
22835 | bool result; | |
22836 | PyObject * obj0 = 0 ; | |
22837 | PyObject * obj1 = 0 ; | |
22838 | char *kwnames[] = { | |
22839 | (char *) "self",(char *) "other", NULL | |
22840 | }; | |
22841 | ||
22842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22844 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22845 | { | |
22846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22847 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
22848 | |
22849 | wxPyEndAllowThreads(__tstate); | |
22850 | if (PyErr_Occurred()) SWIG_fail; | |
22851 | } | |
4d5c3d91 | 22852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22853 | return resultobj; |
22854 | fail: | |
22855 | return NULL; | |
22856 | } | |
22857 | ||
22858 | ||
22859 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22860 | PyObject *resultobj; | |
22861 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 22862 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
22863 | PyObject * obj0 = 0 ; |
22864 | PyObject * obj1 = 0 ; | |
22865 | char *kwnames[] = { | |
22866 | (char *) "self",(char *) "m_pItem", NULL | |
22867 | }; | |
22868 | ||
22869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
22870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22871 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
22872 | if (arg1) (arg1)->m_pItem = arg2; | |
22873 | ||
22874 | Py_INCREF(Py_None); resultobj = Py_None; | |
22875 | return resultobj; | |
22876 | fail: | |
22877 | return NULL; | |
22878 | } | |
22879 | ||
22880 | ||
22881 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22882 | PyObject *resultobj; | |
22883 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 22884 | void *result; |
d14a1e28 RD |
22885 | PyObject * obj0 = 0 ; |
22886 | char *kwnames[] = { | |
22887 | (char *) "self", NULL | |
22888 | }; | |
22889 | ||
22890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
22891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 22892 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 22893 | |
58203fa6 | 22894 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_void, 0); |
d14a1e28 RD |
22895 | return resultobj; |
22896 | fail: | |
22897 | return NULL; | |
22898 | } | |
22899 | ||
22900 | ||
22901 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
22902 | PyObject *obj; | |
22903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22904 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
22905 | Py_INCREF(obj); | |
22906 | return Py_BuildValue((char *)""); | |
22907 | } | |
22908 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22909 | PyObject *resultobj; | |
22910 | PyObject *arg1 = (PyObject *) NULL ; | |
22911 | wxPyTreeItemData *result; | |
22912 | PyObject * obj0 = 0 ; | |
22913 | char *kwnames[] = { | |
22914 | (char *) "obj", NULL | |
22915 | }; | |
22916 | ||
22917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
22918 | if (obj0) { | |
22919 | arg1 = obj0; | |
22920 | } | |
22921 | { | |
22922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22923 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
22924 | ||
22925 | wxPyEndAllowThreads(__tstate); | |
22926 | if (PyErr_Occurred()) SWIG_fail; | |
22927 | } | |
22928 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 1); | |
22929 | return resultobj; | |
22930 | fail: | |
22931 | return NULL; | |
22932 | } | |
22933 | ||
22934 | ||
22935 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22936 | PyObject *resultobj; | |
22937 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22938 | PyObject *result; | |
22939 | PyObject * obj0 = 0 ; | |
22940 | char *kwnames[] = { | |
22941 | (char *) "self", NULL | |
22942 | }; | |
22943 | ||
22944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
22945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22946 | { | |
22947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22948 | result = (PyObject *)(arg1)->GetData(); | |
22949 | ||
22950 | wxPyEndAllowThreads(__tstate); | |
22951 | if (PyErr_Occurred()) SWIG_fail; | |
22952 | } | |
22953 | resultobj = result; | |
22954 | return resultobj; | |
22955 | fail: | |
22956 | return NULL; | |
22957 | } | |
22958 | ||
22959 | ||
22960 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22961 | PyObject *resultobj; | |
22962 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22963 | PyObject *arg2 = (PyObject *) 0 ; | |
22964 | PyObject * obj0 = 0 ; | |
22965 | PyObject * obj1 = 0 ; | |
22966 | char *kwnames[] = { | |
22967 | (char *) "self",(char *) "obj", NULL | |
22968 | }; | |
22969 | ||
22970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
22971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22972 | arg2 = obj1; | |
22973 | { | |
22974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22975 | (arg1)->SetData(arg2); | |
22976 | ||
22977 | wxPyEndAllowThreads(__tstate); | |
22978 | if (PyErr_Occurred()) SWIG_fail; | |
22979 | } | |
22980 | Py_INCREF(Py_None); resultobj = Py_None; | |
22981 | return resultobj; | |
22982 | fail: | |
22983 | return NULL; | |
22984 | } | |
22985 | ||
22986 | ||
22987 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22988 | PyObject *resultobj; | |
22989 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22990 | wxTreeItemId *result; | |
22991 | PyObject * obj0 = 0 ; | |
22992 | char *kwnames[] = { | |
22993 | (char *) "self", NULL | |
22994 | }; | |
22995 | ||
22996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
22997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22998 | { | |
22999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23000 | { | |
23001 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
23002 | result = (wxTreeItemId *) &_result_ref; | |
23003 | } | |
23004 | ||
23005 | wxPyEndAllowThreads(__tstate); | |
23006 | if (PyErr_Occurred()) SWIG_fail; | |
23007 | } | |
23008 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 0); | |
23009 | return resultobj; | |
23010 | fail: | |
23011 | return NULL; | |
23012 | } | |
23013 | ||
23014 | ||
23015 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23016 | PyObject *resultobj; | |
23017 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23018 | wxTreeItemId *arg2 = 0 ; | |
23019 | PyObject * obj0 = 0 ; | |
23020 | PyObject * obj1 = 0 ; | |
23021 | char *kwnames[] = { | |
23022 | (char *) "self",(char *) "id", NULL | |
23023 | }; | |
23024 | ||
23025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
23026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23027 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23028 | if (arg2 == NULL) { | |
23029 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23030 | } | |
23031 | { | |
23032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23033 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
23034 | ||
23035 | wxPyEndAllowThreads(__tstate); | |
23036 | if (PyErr_Occurred()) SWIG_fail; | |
23037 | } | |
23038 | Py_INCREF(Py_None); resultobj = Py_None; | |
23039 | return resultobj; | |
23040 | fail: | |
23041 | return NULL; | |
23042 | } | |
23043 | ||
23044 | ||
23045 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23046 | PyObject *resultobj; | |
23047 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23048 | PyObject * obj0 = 0 ; | |
23049 | char *kwnames[] = { | |
23050 | (char *) "self", NULL | |
23051 | }; | |
23052 | ||
23053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
23054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23055 | { | |
23056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23057 | wxPyTreeItemData_Destroy(arg1); | |
23058 | ||
23059 | wxPyEndAllowThreads(__tstate); | |
23060 | if (PyErr_Occurred()) SWIG_fail; | |
23061 | } | |
23062 | Py_INCREF(Py_None); resultobj = Py_None; | |
23063 | return resultobj; | |
23064 | fail: | |
23065 | return NULL; | |
23066 | } | |
23067 | ||
23068 | ||
23069 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
23070 | PyObject *obj; | |
23071 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23072 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
23073 | Py_INCREF(obj); | |
23074 | return Py_BuildValue((char *)""); | |
23075 | } | |
23076 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23077 | PyObject *resultobj; | |
23078 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
23079 | int arg2 = (int) 0 ; | |
23080 | wxTreeEvent *result; | |
994141e6 RD |
23081 | PyObject * obj0 = 0 ; |
23082 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
23083 | char *kwnames[] = { |
23084 | (char *) "commandType",(char *) "id", NULL | |
23085 | }; | |
23086 | ||
994141e6 RD |
23087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
23088 | if (obj0) { | |
23089 | { | |
23090 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
23091 | if (PyErr_Occurred()) SWIG_fail; | |
23092 | } | |
23093 | } | |
23094 | if (obj1) { | |
23095 | { | |
23096 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23097 | if (PyErr_Occurred()) SWIG_fail; | |
23098 | } | |
23099 | } | |
d14a1e28 RD |
23100 | { |
23101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23102 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
23103 | ||
23104 | wxPyEndAllowThreads(__tstate); | |
23105 | if (PyErr_Occurred()) SWIG_fail; | |
23106 | } | |
23107 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeEvent, 1); | |
23108 | return resultobj; | |
23109 | fail: | |
23110 | return NULL; | |
23111 | } | |
23112 | ||
23113 | ||
23114 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23115 | PyObject *resultobj; | |
23116 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23117 | wxTreeItemId result; | |
23118 | PyObject * obj0 = 0 ; | |
23119 | char *kwnames[] = { | |
23120 | (char *) "self", NULL | |
23121 | }; | |
23122 | ||
23123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
23124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23125 | { | |
23126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23127 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
23128 | ||
23129 | wxPyEndAllowThreads(__tstate); | |
23130 | if (PyErr_Occurred()) SWIG_fail; | |
23131 | } | |
23132 | { | |
23133 | wxTreeItemId * resultptr; | |
23134 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23135 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23136 | } | |
23137 | return resultobj; | |
23138 | fail: | |
23139 | return NULL; | |
23140 | } | |
23141 | ||
23142 | ||
23143 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23144 | PyObject *resultobj; | |
23145 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23146 | wxTreeItemId *arg2 = 0 ; | |
23147 | PyObject * obj0 = 0 ; | |
23148 | PyObject * obj1 = 0 ; | |
23149 | char *kwnames[] = { | |
23150 | (char *) "self",(char *) "item", NULL | |
23151 | }; | |
23152 | ||
23153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
23154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23155 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23156 | if (arg2 == NULL) { | |
23157 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23158 | } | |
23159 | { | |
23160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23161 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
23162 | ||
23163 | wxPyEndAllowThreads(__tstate); | |
23164 | if (PyErr_Occurred()) SWIG_fail; | |
23165 | } | |
23166 | Py_INCREF(Py_None); resultobj = Py_None; | |
23167 | return resultobj; | |
23168 | fail: | |
23169 | return NULL; | |
23170 | } | |
23171 | ||
23172 | ||
23173 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23174 | PyObject *resultobj; | |
23175 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23176 | wxTreeItemId result; | |
23177 | PyObject * obj0 = 0 ; | |
23178 | char *kwnames[] = { | |
23179 | (char *) "self", NULL | |
23180 | }; | |
23181 | ||
23182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
23183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23184 | { | |
23185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23186 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
23187 | ||
23188 | wxPyEndAllowThreads(__tstate); | |
23189 | if (PyErr_Occurred()) SWIG_fail; | |
23190 | } | |
23191 | { | |
23192 | wxTreeItemId * resultptr; | |
23193 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23194 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23195 | } | |
23196 | return resultobj; | |
23197 | fail: | |
23198 | return NULL; | |
23199 | } | |
23200 | ||
23201 | ||
23202 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23203 | PyObject *resultobj; | |
23204 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23205 | wxTreeItemId *arg2 = 0 ; | |
23206 | PyObject * obj0 = 0 ; | |
23207 | PyObject * obj1 = 0 ; | |
23208 | char *kwnames[] = { | |
23209 | (char *) "self",(char *) "item", NULL | |
23210 | }; | |
23211 | ||
23212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
23213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23214 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23215 | if (arg2 == NULL) { | |
23216 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23217 | } | |
23218 | { | |
23219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23220 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
23221 | ||
23222 | wxPyEndAllowThreads(__tstate); | |
23223 | if (PyErr_Occurred()) SWIG_fail; | |
23224 | } | |
23225 | Py_INCREF(Py_None); resultobj = Py_None; | |
23226 | return resultobj; | |
23227 | fail: | |
23228 | return NULL; | |
23229 | } | |
23230 | ||
23231 | ||
23232 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23233 | PyObject *resultobj; | |
23234 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23235 | wxPoint result; | |
23236 | PyObject * obj0 = 0 ; | |
23237 | char *kwnames[] = { | |
23238 | (char *) "self", NULL | |
23239 | }; | |
23240 | ||
23241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
23242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23243 | { | |
23244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23245 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
23246 | ||
23247 | wxPyEndAllowThreads(__tstate); | |
23248 | if (PyErr_Occurred()) SWIG_fail; | |
23249 | } | |
23250 | { | |
23251 | wxPoint * resultptr; | |
23252 | resultptr = new wxPoint((wxPoint &) result); | |
23253 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23254 | } | |
23255 | return resultobj; | |
23256 | fail: | |
23257 | return NULL; | |
23258 | } | |
23259 | ||
23260 | ||
23261 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23262 | PyObject *resultobj; | |
23263 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23264 | wxPoint *arg2 = 0 ; | |
23265 | wxPoint temp2 ; | |
23266 | PyObject * obj0 = 0 ; | |
23267 | PyObject * obj1 = 0 ; | |
23268 | char *kwnames[] = { | |
23269 | (char *) "self",(char *) "pt", NULL | |
23270 | }; | |
23271 | ||
23272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
23273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23274 | { | |
23275 | arg2 = &temp2; | |
23276 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23277 | } | |
23278 | { | |
23279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23280 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
23281 | ||
23282 | wxPyEndAllowThreads(__tstate); | |
23283 | if (PyErr_Occurred()) SWIG_fail; | |
23284 | } | |
23285 | Py_INCREF(Py_None); resultobj = Py_None; | |
23286 | return resultobj; | |
23287 | fail: | |
23288 | return NULL; | |
23289 | } | |
23290 | ||
23291 | ||
23292 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23293 | PyObject *resultobj; | |
23294 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23295 | wxKeyEvent *result; | |
23296 | PyObject * obj0 = 0 ; | |
23297 | char *kwnames[] = { | |
23298 | (char *) "self", NULL | |
23299 | }; | |
23300 | ||
23301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
23302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23303 | { | |
23304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23305 | { | |
23306 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
23307 | result = (wxKeyEvent *) &_result_ref; | |
23308 | } | |
23309 | ||
23310 | wxPyEndAllowThreads(__tstate); | |
23311 | if (PyErr_Occurred()) SWIG_fail; | |
23312 | } | |
23313 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 0); | |
23314 | return resultobj; | |
23315 | fail: | |
23316 | return NULL; | |
23317 | } | |
23318 | ||
23319 | ||
23320 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23321 | PyObject *resultobj; | |
23322 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23323 | int result; | |
23324 | PyObject * obj0 = 0 ; | |
23325 | char *kwnames[] = { | |
23326 | (char *) "self", NULL | |
23327 | }; | |
23328 | ||
23329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
23330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23331 | { | |
23332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23333 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
23334 | ||
23335 | wxPyEndAllowThreads(__tstate); | |
23336 | if (PyErr_Occurred()) SWIG_fail; | |
23337 | } | |
994141e6 | 23338 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
23339 | return resultobj; |
23340 | fail: | |
23341 | return NULL; | |
23342 | } | |
23343 | ||
23344 | ||
23345 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23346 | PyObject *resultobj; | |
23347 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23348 | wxKeyEvent *arg2 = 0 ; | |
23349 | PyObject * obj0 = 0 ; | |
23350 | PyObject * obj1 = 0 ; | |
23351 | char *kwnames[] = { | |
23352 | (char *) "self",(char *) "evt", NULL | |
23353 | }; | |
23354 | ||
23355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
23356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23357 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23358 | if (arg2 == NULL) { | |
23359 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23360 | } | |
23361 | { | |
23362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23363 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
23364 | ||
23365 | wxPyEndAllowThreads(__tstate); | |
23366 | if (PyErr_Occurred()) SWIG_fail; | |
23367 | } | |
23368 | Py_INCREF(Py_None); resultobj = Py_None; | |
23369 | return resultobj; | |
23370 | fail: | |
23371 | return NULL; | |
23372 | } | |
23373 | ||
23374 | ||
23375 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23376 | PyObject *resultobj; | |
23377 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23378 | wxString *result; | |
23379 | PyObject * obj0 = 0 ; | |
23380 | char *kwnames[] = { | |
23381 | (char *) "self", NULL | |
23382 | }; | |
23383 | ||
23384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
23385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23386 | { | |
23387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23388 | { | |
23389 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
23390 | result = (wxString *) &_result_ref; | |
23391 | } | |
23392 | ||
23393 | wxPyEndAllowThreads(__tstate); | |
23394 | if (PyErr_Occurred()) SWIG_fail; | |
23395 | } | |
cc6dd355 RD |
23396 | { |
23397 | #if wxUSE_UNICODE | |
23398 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23399 | #else | |
23400 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23401 | #endif | |
23402 | } | |
d14a1e28 RD |
23403 | return resultobj; |
23404 | fail: | |
23405 | return NULL; | |
23406 | } | |
23407 | ||
23408 | ||
23409 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23410 | PyObject *resultobj; | |
23411 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23412 | wxString *arg2 = 0 ; | |
e811c8ce | 23413 | bool temp2 = False ; |
d14a1e28 RD |
23414 | PyObject * obj0 = 0 ; |
23415 | PyObject * obj1 = 0 ; | |
23416 | char *kwnames[] = { | |
23417 | (char *) "self",(char *) "label", NULL | |
23418 | }; | |
23419 | ||
23420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
23421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23422 | { | |
23423 | arg2 = wxString_in_helper(obj1); | |
23424 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23425 | temp2 = True; |
d14a1e28 RD |
23426 | } |
23427 | { | |
23428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23429 | (arg1)->SetLabel((wxString const &)*arg2); | |
23430 | ||
23431 | wxPyEndAllowThreads(__tstate); | |
23432 | if (PyErr_Occurred()) SWIG_fail; | |
23433 | } | |
23434 | Py_INCREF(Py_None); resultobj = Py_None; | |
23435 | { | |
23436 | if (temp2) | |
23437 | delete arg2; | |
23438 | } | |
23439 | return resultobj; | |
23440 | fail: | |
23441 | { | |
23442 | if (temp2) | |
23443 | delete arg2; | |
23444 | } | |
23445 | return NULL; | |
23446 | } | |
23447 | ||
23448 | ||
23449 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23450 | PyObject *resultobj; | |
23451 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23452 | bool result; | |
23453 | PyObject * obj0 = 0 ; | |
23454 | char *kwnames[] = { | |
23455 | (char *) "self", NULL | |
23456 | }; | |
23457 | ||
23458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
23459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23460 | { | |
23461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23462 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
23463 | ||
23464 | wxPyEndAllowThreads(__tstate); | |
23465 | if (PyErr_Occurred()) SWIG_fail; | |
23466 | } | |
4d5c3d91 | 23467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23468 | return resultobj; |
23469 | fail: | |
23470 | return NULL; | |
23471 | } | |
23472 | ||
23473 | ||
23474 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23475 | PyObject *resultobj; | |
23476 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23477 | bool arg2 ; | |
23478 | PyObject * obj0 = 0 ; | |
23479 | PyObject * obj1 = 0 ; | |
23480 | char *kwnames[] = { | |
23481 | (char *) "self",(char *) "editCancelled", NULL | |
23482 | }; | |
23483 | ||
23484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
23485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 23486 | { |
994141e6 | 23487 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
23488 | if (PyErr_Occurred()) SWIG_fail; |
23489 | } | |
d14a1e28 RD |
23490 | { |
23491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23492 | (arg1)->SetEditCanceled(arg2); | |
23493 | ||
23494 | wxPyEndAllowThreads(__tstate); | |
23495 | if (PyErr_Occurred()) SWIG_fail; | |
23496 | } | |
23497 | Py_INCREF(Py_None); resultobj = Py_None; | |
23498 | return resultobj; | |
23499 | fail: | |
23500 | return NULL; | |
23501 | } | |
23502 | ||
23503 | ||
c9c7117a RD |
23504 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
23505 | PyObject *resultobj; | |
23506 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23507 | wxString *arg2 = 0 ; | |
23508 | bool temp2 = False ; | |
23509 | PyObject * obj0 = 0 ; | |
23510 | PyObject * obj1 = 0 ; | |
23511 | char *kwnames[] = { | |
23512 | (char *) "self",(char *) "toolTip", NULL | |
23513 | }; | |
23514 | ||
23515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
23516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23517 | { | |
23518 | arg2 = wxString_in_helper(obj1); | |
23519 | if (arg2 == NULL) SWIG_fail; | |
23520 | temp2 = True; | |
23521 | } | |
23522 | { | |
23523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23524 | (arg1)->SetToolTip((wxString const &)*arg2); | |
23525 | ||
23526 | wxPyEndAllowThreads(__tstate); | |
23527 | if (PyErr_Occurred()) SWIG_fail; | |
23528 | } | |
23529 | Py_INCREF(Py_None); resultobj = Py_None; | |
23530 | { | |
23531 | if (temp2) | |
23532 | delete arg2; | |
23533 | } | |
23534 | return resultobj; | |
23535 | fail: | |
23536 | { | |
23537 | if (temp2) | |
23538 | delete arg2; | |
23539 | } | |
23540 | return NULL; | |
23541 | } | |
23542 | ||
23543 | ||
d14a1e28 RD |
23544 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
23545 | PyObject *obj; | |
23546 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23547 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
23548 | Py_INCREF(obj); | |
23549 | return Py_BuildValue((char *)""); | |
23550 | } | |
23551 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23552 | PyObject *resultobj; | |
23553 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23554 | int arg2 = (int) -1 ; |
d14a1e28 RD |
23555 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23556 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23557 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23558 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23559 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
23560 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23561 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
b2dc1044 | 23562 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23563 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
23564 | wxPyTreeCtrl *result; | |
23565 | wxPoint temp3 ; | |
23566 | wxSize temp4 ; | |
e811c8ce | 23567 | bool temp7 = False ; |
d14a1e28 | 23568 | PyObject * obj0 = 0 ; |
994141e6 | 23569 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23570 | PyObject * obj2 = 0 ; |
23571 | PyObject * obj3 = 0 ; | |
994141e6 | 23572 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
23573 | PyObject * obj5 = 0 ; |
23574 | PyObject * obj6 = 0 ; | |
23575 | char *kwnames[] = { | |
23576 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23577 | }; | |
23578 | ||
994141e6 | 23579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 23580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
23581 | if (obj1) { |
23582 | { | |
23583 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23584 | if (PyErr_Occurred()) SWIG_fail; | |
23585 | } | |
23586 | } | |
d14a1e28 RD |
23587 | if (obj2) { |
23588 | { | |
23589 | arg3 = &temp3; | |
23590 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23591 | } | |
23592 | } | |
23593 | if (obj3) { | |
23594 | { | |
994141e6 RD |
23595 | arg4 = &temp4; |
23596 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23597 | } | |
23598 | } | |
23599 | if (obj4) { | |
23600 | { | |
23601 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
23602 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23603 | } |
23604 | } | |
23605 | if (obj5) { | |
23606 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23607 | if (arg6 == NULL) { | |
23608 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23609 | } | |
23610 | } | |
23611 | if (obj6) { | |
23612 | { | |
23613 | arg7 = wxString_in_helper(obj6); | |
23614 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 23615 | temp7 = True; |
d14a1e28 RD |
23616 | } |
23617 | } | |
23618 | { | |
23619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23620 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23621 | ||
23622 | wxPyEndAllowThreads(__tstate); | |
23623 | if (PyErr_Occurred()) SWIG_fail; | |
23624 | } | |
b2dc1044 RD |
23625 | { |
23626 | resultobj = wxPyMake_wxObject(result); | |
23627 | } | |
d14a1e28 RD |
23628 | { |
23629 | if (temp7) | |
23630 | delete arg7; | |
23631 | } | |
23632 | return resultobj; | |
23633 | fail: | |
23634 | { | |
23635 | if (temp7) | |
23636 | delete arg7; | |
23637 | } | |
23638 | return NULL; | |
23639 | } | |
23640 | ||
23641 | ||
23642 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23643 | PyObject *resultobj; | |
23644 | wxPyTreeCtrl *result; | |
23645 | char *kwnames[] = { | |
23646 | NULL | |
23647 | }; | |
23648 | ||
23649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
23650 | { | |
23651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23652 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
23653 | ||
23654 | wxPyEndAllowThreads(__tstate); | |
23655 | if (PyErr_Occurred()) SWIG_fail; | |
23656 | } | |
b2dc1044 RD |
23657 | { |
23658 | resultobj = wxPyMake_wxObject(result); | |
23659 | } | |
d14a1e28 RD |
23660 | return resultobj; |
23661 | fail: | |
23662 | return NULL; | |
23663 | } | |
23664 | ||
23665 | ||
23666 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23667 | PyObject *resultobj; | |
23668 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23669 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 23670 | int arg3 = (int) -1 ; |
d14a1e28 RD |
23671 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23672 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23673 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23674 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23675 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
23676 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23677 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
b2dc1044 | 23678 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23679 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
23680 | bool result; | |
23681 | wxPoint temp4 ; | |
23682 | wxSize temp5 ; | |
e811c8ce | 23683 | bool temp8 = False ; |
d14a1e28 RD |
23684 | PyObject * obj0 = 0 ; |
23685 | PyObject * obj1 = 0 ; | |
994141e6 | 23686 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23687 | PyObject * obj3 = 0 ; |
23688 | PyObject * obj4 = 0 ; | |
994141e6 | 23689 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
23690 | PyObject * obj6 = 0 ; |
23691 | PyObject * obj7 = 0 ; | |
23692 | char *kwnames[] = { | |
23693 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23694 | }; | |
23695 | ||
994141e6 | 23696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
23697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
23698 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
23699 | if (obj2) { |
23700 | { | |
23701 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
23702 | if (PyErr_Occurred()) SWIG_fail; | |
23703 | } | |
23704 | } | |
d14a1e28 RD |
23705 | if (obj3) { |
23706 | { | |
23707 | arg4 = &temp4; | |
23708 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23709 | } | |
23710 | } | |
23711 | if (obj4) { | |
23712 | { | |
23713 | arg5 = &temp5; | |
23714 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23715 | } | |
23716 | } | |
994141e6 RD |
23717 | if (obj5) { |
23718 | { | |
23719 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
23720 | if (PyErr_Occurred()) SWIG_fail; | |
23721 | } | |
23722 | } | |
d14a1e28 RD |
23723 | if (obj6) { |
23724 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23725 | if (arg7 == NULL) { | |
23726 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23727 | } | |
23728 | } | |
23729 | if (obj7) { | |
23730 | { | |
23731 | arg8 = wxString_in_helper(obj7); | |
23732 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 23733 | temp8 = True; |
d14a1e28 RD |
23734 | } |
23735 | } | |
23736 | { | |
23737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23738 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23739 | ||
23740 | wxPyEndAllowThreads(__tstate); | |
23741 | if (PyErr_Occurred()) SWIG_fail; | |
23742 | } | |
4d5c3d91 | 23743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23744 | { |
23745 | if (temp8) | |
23746 | delete arg8; | |
23747 | } | |
23748 | return resultobj; | |
23749 | fail: | |
23750 | { | |
23751 | if (temp8) | |
23752 | delete arg8; | |
23753 | } | |
23754 | return NULL; | |
23755 | } | |
23756 | ||
23757 | ||
23758 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23759 | PyObject *resultobj; | |
23760 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23761 | PyObject *arg2 = (PyObject *) 0 ; | |
23762 | PyObject *arg3 = (PyObject *) 0 ; | |
23763 | PyObject * obj0 = 0 ; | |
23764 | PyObject * obj1 = 0 ; | |
23765 | PyObject * obj2 = 0 ; | |
23766 | char *kwnames[] = { | |
23767 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23768 | }; | |
23769 | ||
23770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23772 | arg2 = obj1; | |
23773 | arg3 = obj2; | |
23774 | { | |
23775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23776 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23777 | ||
23778 | wxPyEndAllowThreads(__tstate); | |
23779 | if (PyErr_Occurred()) SWIG_fail; | |
23780 | } | |
23781 | Py_INCREF(Py_None); resultobj = Py_None; | |
23782 | return resultobj; | |
23783 | fail: | |
23784 | return NULL; | |
23785 | } | |
23786 | ||
23787 | ||
23788 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23789 | PyObject *resultobj; | |
23790 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23791 | size_t result; | |
23792 | PyObject * obj0 = 0 ; | |
23793 | char *kwnames[] = { | |
23794 | (char *) "self", NULL | |
23795 | }; | |
23796 | ||
23797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
23798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23799 | { | |
23800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23801 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
23802 | ||
23803 | wxPyEndAllowThreads(__tstate); | |
23804 | if (PyErr_Occurred()) SWIG_fail; | |
23805 | } | |
994141e6 | 23806 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
23807 | return resultobj; |
23808 | fail: | |
23809 | return NULL; | |
23810 | } | |
23811 | ||
23812 | ||
23813 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23814 | PyObject *resultobj; | |
23815 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23816 | unsigned int result; | |
23817 | PyObject * obj0 = 0 ; | |
23818 | char *kwnames[] = { | |
23819 | (char *) "self", NULL | |
23820 | }; | |
23821 | ||
23822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
23823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23824 | { | |
23825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23826 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
23827 | ||
23828 | wxPyEndAllowThreads(__tstate); | |
23829 | if (PyErr_Occurred()) SWIG_fail; | |
23830 | } | |
994141e6 | 23831 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
23832 | return resultobj; |
23833 | fail: | |
23834 | return NULL; | |
23835 | } | |
23836 | ||
23837 | ||
23838 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23839 | PyObject *resultobj; | |
23840 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23841 | unsigned int arg2 ; | |
23842 | PyObject * obj0 = 0 ; | |
23843 | PyObject * obj1 = 0 ; | |
23844 | char *kwnames[] = { | |
23845 | (char *) "self",(char *) "indent", NULL | |
23846 | }; | |
23847 | ||
23848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
23849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 23850 | { |
994141e6 | 23851 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
a41e16b6 RD |
23852 | if (PyErr_Occurred()) SWIG_fail; |
23853 | } | |
d14a1e28 RD |
23854 | { |
23855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23856 | (arg1)->SetIndent(arg2); | |
23857 | ||
23858 | wxPyEndAllowThreads(__tstate); | |
23859 | if (PyErr_Occurred()) SWIG_fail; | |
23860 | } | |
23861 | Py_INCREF(Py_None); resultobj = Py_None; | |
23862 | return resultobj; | |
23863 | fail: | |
23864 | return NULL; | |
23865 | } | |
23866 | ||
23867 | ||
23868 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23869 | PyObject *resultobj; | |
23870 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23871 | unsigned int result; | |
23872 | PyObject * obj0 = 0 ; | |
23873 | char *kwnames[] = { | |
23874 | (char *) "self", NULL | |
23875 | }; | |
23876 | ||
23877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
23878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23879 | { | |
23880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23881 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
23882 | ||
23883 | wxPyEndAllowThreads(__tstate); | |
23884 | if (PyErr_Occurred()) SWIG_fail; | |
23885 | } | |
994141e6 | 23886 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
23887 | return resultobj; |
23888 | fail: | |
23889 | return NULL; | |
23890 | } | |
23891 | ||
23892 | ||
23893 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23894 | PyObject *resultobj; | |
23895 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23896 | unsigned int arg2 ; | |
23897 | PyObject * obj0 = 0 ; | |
23898 | PyObject * obj1 = 0 ; | |
23899 | char *kwnames[] = { | |
23900 | (char *) "self",(char *) "spacing", NULL | |
23901 | }; | |
23902 | ||
23903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
23904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 23905 | { |
994141e6 | 23906 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
a41e16b6 RD |
23907 | if (PyErr_Occurred()) SWIG_fail; |
23908 | } | |
d14a1e28 RD |
23909 | { |
23910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23911 | (arg1)->SetSpacing(arg2); | |
23912 | ||
23913 | wxPyEndAllowThreads(__tstate); | |
23914 | if (PyErr_Occurred()) SWIG_fail; | |
23915 | } | |
23916 | Py_INCREF(Py_None); resultobj = Py_None; | |
23917 | return resultobj; | |
23918 | fail: | |
23919 | return NULL; | |
23920 | } | |
23921 | ||
23922 | ||
23923 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23924 | PyObject *resultobj; | |
23925 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23926 | wxImageList *result; | |
23927 | PyObject * obj0 = 0 ; | |
23928 | char *kwnames[] = { | |
23929 | (char *) "self", NULL | |
23930 | }; | |
23931 | ||
23932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
23933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23934 | { | |
23935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23936 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
23937 | ||
23938 | wxPyEndAllowThreads(__tstate); | |
23939 | if (PyErr_Occurred()) SWIG_fail; | |
23940 | } | |
23941 | { | |
23942 | resultobj = wxPyMake_wxObject(result); | |
23943 | } | |
23944 | return resultobj; | |
23945 | fail: | |
23946 | return NULL; | |
23947 | } | |
23948 | ||
23949 | ||
23950 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23951 | PyObject *resultobj; | |
23952 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23953 | wxImageList *result; | |
23954 | PyObject * obj0 = 0 ; | |
23955 | char *kwnames[] = { | |
23956 | (char *) "self", NULL | |
23957 | }; | |
23958 | ||
23959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
23960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23961 | { | |
23962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23963 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
23964 | ||
23965 | wxPyEndAllowThreads(__tstate); | |
23966 | if (PyErr_Occurred()) SWIG_fail; | |
23967 | } | |
23968 | { | |
23969 | resultobj = wxPyMake_wxObject(result); | |
23970 | } | |
23971 | return resultobj; | |
23972 | fail: | |
23973 | return NULL; | |
23974 | } | |
23975 | ||
23976 | ||
23977 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23978 | PyObject *resultobj; | |
23979 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23980 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23981 | PyObject * obj0 = 0 ; | |
23982 | PyObject * obj1 = 0 ; | |
23983 | char *kwnames[] = { | |
23984 | (char *) "self",(char *) "imageList", NULL | |
23985 | }; | |
23986 | ||
23987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
23988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23989 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23990 | { | |
23991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23992 | (arg1)->SetImageList(arg2); | |
23993 | ||
23994 | wxPyEndAllowThreads(__tstate); | |
23995 | if (PyErr_Occurred()) SWIG_fail; | |
23996 | } | |
23997 | Py_INCREF(Py_None); resultobj = Py_None; | |
23998 | return resultobj; | |
23999 | fail: | |
24000 | return NULL; | |
24001 | } | |
24002 | ||
24003 | ||
24004 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24005 | PyObject *resultobj; | |
24006 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24007 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24008 | PyObject * obj0 = 0 ; | |
24009 | PyObject * obj1 = 0 ; | |
24010 | char *kwnames[] = { | |
24011 | (char *) "self",(char *) "imageList", NULL | |
24012 | }; | |
24013 | ||
24014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
24015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24016 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24017 | { | |
24018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24019 | (arg1)->SetStateImageList(arg2); | |
24020 | ||
24021 | wxPyEndAllowThreads(__tstate); | |
24022 | if (PyErr_Occurred()) SWIG_fail; | |
24023 | } | |
24024 | Py_INCREF(Py_None); resultobj = Py_None; | |
24025 | return resultobj; | |
24026 | fail: | |
24027 | return NULL; | |
24028 | } | |
24029 | ||
24030 | ||
24031 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24032 | PyObject *resultobj; | |
24033 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24034 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24035 | PyObject * obj0 = 0 ; | |
24036 | PyObject * obj1 = 0 ; | |
24037 | char *kwnames[] = { | |
24038 | (char *) "self",(char *) "imageList", NULL | |
24039 | }; | |
24040 | ||
24041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
24042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 24043 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
24044 | { |
24045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24046 | (arg1)->AssignImageList(arg2); | |
24047 | ||
24048 | wxPyEndAllowThreads(__tstate); | |
24049 | if (PyErr_Occurred()) SWIG_fail; | |
24050 | } | |
24051 | Py_INCREF(Py_None); resultobj = Py_None; | |
24052 | return resultobj; | |
24053 | fail: | |
24054 | return NULL; | |
24055 | } | |
24056 | ||
24057 | ||
24058 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24059 | PyObject *resultobj; | |
24060 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24061 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24062 | PyObject * obj0 = 0 ; | |
24063 | PyObject * obj1 = 0 ; | |
24064 | char *kwnames[] = { | |
24065 | (char *) "self",(char *) "imageList", NULL | |
24066 | }; | |
24067 | ||
24068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
24069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 24070 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
24071 | { |
24072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24073 | (arg1)->AssignStateImageList(arg2); | |
24074 | ||
24075 | wxPyEndAllowThreads(__tstate); | |
24076 | if (PyErr_Occurred()) SWIG_fail; | |
24077 | } | |
24078 | Py_INCREF(Py_None); resultobj = Py_None; | |
24079 | return resultobj; | |
24080 | fail: | |
24081 | return NULL; | |
24082 | } | |
24083 | ||
24084 | ||
24085 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24086 | PyObject *resultobj; | |
24087 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24088 | wxTreeItemId *arg2 = 0 ; | |
24089 | wxString result; | |
24090 | PyObject * obj0 = 0 ; | |
24091 | PyObject * obj1 = 0 ; | |
24092 | char *kwnames[] = { | |
24093 | (char *) "self",(char *) "item", NULL | |
24094 | }; | |
24095 | ||
24096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
24097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24098 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24099 | if (arg2 == NULL) { | |
24100 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24101 | } | |
24102 | { | |
24103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24104 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
24105 | ||
24106 | wxPyEndAllowThreads(__tstate); | |
24107 | if (PyErr_Occurred()) SWIG_fail; | |
24108 | } | |
24109 | { | |
24110 | #if wxUSE_UNICODE | |
24111 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24112 | #else | |
24113 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24114 | #endif | |
24115 | } | |
24116 | return resultobj; | |
24117 | fail: | |
24118 | return NULL; | |
24119 | } | |
24120 | ||
24121 | ||
24122 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24123 | PyObject *resultobj; | |
24124 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24125 | wxTreeItemId *arg2 = 0 ; | |
24126 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
24127 | int result; | |
24128 | PyObject * obj0 = 0 ; | |
24129 | PyObject * obj1 = 0 ; | |
994141e6 | 24130 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24131 | char *kwnames[] = { |
24132 | (char *) "self",(char *) "item",(char *) "which", NULL | |
24133 | }; | |
24134 | ||
994141e6 | 24135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
24136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24137 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24138 | if (arg2 == NULL) { | |
24139 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24140 | } | |
994141e6 RD |
24141 | if (obj2) { |
24142 | { | |
24143 | arg3 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj2); | |
24144 | if (PyErr_Occurred()) SWIG_fail; | |
24145 | } | |
24146 | } | |
d14a1e28 RD |
24147 | { |
24148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24149 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
24150 | ||
24151 | wxPyEndAllowThreads(__tstate); | |
24152 | if (PyErr_Occurred()) SWIG_fail; | |
24153 | } | |
994141e6 | 24154 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
24155 | return resultobj; |
24156 | fail: | |
24157 | return NULL; | |
24158 | } | |
24159 | ||
24160 | ||
24161 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24162 | PyObject *resultobj; | |
24163 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24164 | wxTreeItemId *arg2 = 0 ; | |
24165 | wxPyTreeItemData *result; | |
24166 | PyObject * obj0 = 0 ; | |
24167 | PyObject * obj1 = 0 ; | |
24168 | char *kwnames[] = { | |
24169 | (char *) "self",(char *) "item", NULL | |
24170 | }; | |
24171 | ||
24172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
24173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24174 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24175 | if (arg2 == NULL) { | |
24176 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24177 | } | |
24178 | { | |
24179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24180 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
24181 | ||
24182 | wxPyEndAllowThreads(__tstate); | |
24183 | if (PyErr_Occurred()) SWIG_fail; | |
24184 | } | |
24185 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 0); | |
24186 | return resultobj; | |
24187 | fail: | |
24188 | return NULL; | |
24189 | } | |
24190 | ||
24191 | ||
24192 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24193 | PyObject *resultobj; | |
24194 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24195 | wxTreeItemId *arg2 = 0 ; | |
24196 | PyObject *result; | |
24197 | PyObject * obj0 = 0 ; | |
24198 | PyObject * obj1 = 0 ; | |
24199 | char *kwnames[] = { | |
24200 | (char *) "self",(char *) "item", NULL | |
24201 | }; | |
24202 | ||
24203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
24204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24205 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24206 | if (arg2 == NULL) { | |
24207 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24208 | } | |
24209 | { | |
24210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24211 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
24212 | ||
24213 | wxPyEndAllowThreads(__tstate); | |
24214 | if (PyErr_Occurred()) SWIG_fail; | |
24215 | } | |
24216 | resultobj = result; | |
24217 | return resultobj; | |
24218 | fail: | |
24219 | return NULL; | |
24220 | } | |
24221 | ||
24222 | ||
24223 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24224 | PyObject *resultobj; | |
24225 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24226 | wxTreeItemId *arg2 = 0 ; | |
24227 | wxColour result; | |
24228 | PyObject * obj0 = 0 ; | |
24229 | PyObject * obj1 = 0 ; | |
24230 | char *kwnames[] = { | |
24231 | (char *) "self",(char *) "item", NULL | |
24232 | }; | |
24233 | ||
24234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
24235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24236 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24237 | if (arg2 == NULL) { | |
24238 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24239 | } | |
24240 | { | |
24241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24242 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
24243 | ||
24244 | wxPyEndAllowThreads(__tstate); | |
24245 | if (PyErr_Occurred()) SWIG_fail; | |
24246 | } | |
24247 | { | |
24248 | wxColour * resultptr; | |
24249 | resultptr = new wxColour((wxColour &) result); | |
24250 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24251 | } | |
24252 | return resultobj; | |
24253 | fail: | |
24254 | return NULL; | |
24255 | } | |
24256 | ||
24257 | ||
24258 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24259 | PyObject *resultobj; | |
24260 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24261 | wxTreeItemId *arg2 = 0 ; | |
24262 | wxColour result; | |
24263 | PyObject * obj0 = 0 ; | |
24264 | PyObject * obj1 = 0 ; | |
24265 | char *kwnames[] = { | |
24266 | (char *) "self",(char *) "item", NULL | |
24267 | }; | |
24268 | ||
24269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24271 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24272 | if (arg2 == NULL) { | |
24273 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24274 | } | |
24275 | { | |
24276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24277 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
24278 | ||
24279 | wxPyEndAllowThreads(__tstate); | |
24280 | if (PyErr_Occurred()) SWIG_fail; | |
24281 | } | |
24282 | { | |
24283 | wxColour * resultptr; | |
24284 | resultptr = new wxColour((wxColour &) result); | |
24285 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24286 | } | |
24287 | return resultobj; | |
24288 | fail: | |
24289 | return NULL; | |
24290 | } | |
24291 | ||
24292 | ||
24293 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24294 | PyObject *resultobj; | |
24295 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24296 | wxTreeItemId *arg2 = 0 ; | |
24297 | wxFont result; | |
24298 | PyObject * obj0 = 0 ; | |
24299 | PyObject * obj1 = 0 ; | |
24300 | char *kwnames[] = { | |
24301 | (char *) "self",(char *) "item", NULL | |
24302 | }; | |
24303 | ||
24304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
24305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24306 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24307 | if (arg2 == NULL) { | |
24308 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24309 | } | |
24310 | { | |
24311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24312 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
24313 | ||
24314 | wxPyEndAllowThreads(__tstate); | |
24315 | if (PyErr_Occurred()) SWIG_fail; | |
24316 | } | |
24317 | { | |
24318 | wxFont * resultptr; | |
24319 | resultptr = new wxFont((wxFont &) result); | |
24320 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
24321 | } | |
24322 | return resultobj; | |
24323 | fail: | |
24324 | return NULL; | |
24325 | } | |
24326 | ||
24327 | ||
24328 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24329 | PyObject *resultobj; | |
24330 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24331 | wxTreeItemId *arg2 = 0 ; | |
24332 | wxString *arg3 = 0 ; | |
e811c8ce | 24333 | bool temp3 = False ; |
d14a1e28 RD |
24334 | PyObject * obj0 = 0 ; |
24335 | PyObject * obj1 = 0 ; | |
24336 | PyObject * obj2 = 0 ; | |
24337 | char *kwnames[] = { | |
24338 | (char *) "self",(char *) "item",(char *) "text", NULL | |
24339 | }; | |
24340 | ||
24341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24343 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24344 | if (arg2 == NULL) { | |
24345 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24346 | } | |
24347 | { | |
24348 | arg3 = wxString_in_helper(obj2); | |
24349 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 24350 | temp3 = True; |
d14a1e28 RD |
24351 | } |
24352 | { | |
24353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24354 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
24355 | ||
24356 | wxPyEndAllowThreads(__tstate); | |
24357 | if (PyErr_Occurred()) SWIG_fail; | |
24358 | } | |
24359 | Py_INCREF(Py_None); resultobj = Py_None; | |
24360 | { | |
24361 | if (temp3) | |
24362 | delete arg3; | |
24363 | } | |
24364 | return resultobj; | |
24365 | fail: | |
24366 | { | |
24367 | if (temp3) | |
24368 | delete arg3; | |
24369 | } | |
24370 | return NULL; | |
24371 | } | |
24372 | ||
24373 | ||
24374 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24375 | PyObject *resultobj; | |
24376 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24377 | wxTreeItemId *arg2 = 0 ; | |
24378 | int arg3 ; | |
24379 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
24380 | PyObject * obj0 = 0 ; | |
24381 | PyObject * obj1 = 0 ; | |
994141e6 RD |
24382 | PyObject * obj2 = 0 ; |
24383 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24384 | char *kwnames[] = { |
24385 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
24386 | }; | |
24387 | ||
994141e6 | 24388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
24389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24390 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24391 | if (arg2 == NULL) { | |
24392 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24393 | } | |
994141e6 RD |
24394 | { |
24395 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24396 | if (PyErr_Occurred()) SWIG_fail; | |
24397 | } | |
24398 | if (obj3) { | |
24399 | { | |
24400 | arg4 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj3); | |
24401 | if (PyErr_Occurred()) SWIG_fail; | |
24402 | } | |
24403 | } | |
d14a1e28 RD |
24404 | { |
24405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24406 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
24407 | ||
24408 | wxPyEndAllowThreads(__tstate); | |
24409 | if (PyErr_Occurred()) SWIG_fail; | |
24410 | } | |
24411 | Py_INCREF(Py_None); resultobj = Py_None; | |
24412 | return resultobj; | |
24413 | fail: | |
24414 | return NULL; | |
24415 | } | |
24416 | ||
24417 | ||
24418 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24419 | PyObject *resultobj; | |
24420 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24421 | wxTreeItemId *arg2 = 0 ; | |
24422 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
24423 | PyObject * obj0 = 0 ; | |
24424 | PyObject * obj1 = 0 ; | |
24425 | PyObject * obj2 = 0 ; | |
24426 | char *kwnames[] = { | |
24427 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24428 | }; | |
24429 | ||
24430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24432 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24433 | if (arg2 == NULL) { | |
24434 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24435 | } | |
24436 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24437 | { | |
24438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24439 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24440 | ||
24441 | wxPyEndAllowThreads(__tstate); | |
24442 | if (PyErr_Occurred()) SWIG_fail; | |
24443 | } | |
24444 | Py_INCREF(Py_None); resultobj = Py_None; | |
24445 | return resultobj; | |
24446 | fail: | |
24447 | return NULL; | |
24448 | } | |
24449 | ||
24450 | ||
24451 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24452 | PyObject *resultobj; | |
24453 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24454 | wxTreeItemId *arg2 = 0 ; | |
24455 | PyObject *arg3 = (PyObject *) 0 ; | |
24456 | PyObject * obj0 = 0 ; | |
24457 | PyObject * obj1 = 0 ; | |
24458 | PyObject * obj2 = 0 ; | |
24459 | char *kwnames[] = { | |
24460 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
24461 | }; | |
24462 | ||
24463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24465 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24466 | if (arg2 == NULL) { | |
24467 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24468 | } | |
24469 | arg3 = obj2; | |
24470 | { | |
24471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24472 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24473 | ||
24474 | wxPyEndAllowThreads(__tstate); | |
24475 | if (PyErr_Occurred()) SWIG_fail; | |
24476 | } | |
24477 | Py_INCREF(Py_None); resultobj = Py_None; | |
24478 | return resultobj; | |
24479 | fail: | |
24480 | return NULL; | |
24481 | } | |
24482 | ||
24483 | ||
24484 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24485 | PyObject *resultobj; | |
24486 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24487 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 24488 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24489 | PyObject * obj0 = 0 ; |
24490 | PyObject * obj1 = 0 ; | |
24491 | PyObject * obj2 = 0 ; | |
24492 | char *kwnames[] = { | |
24493 | (char *) "self",(char *) "item",(char *) "has", NULL | |
24494 | }; | |
24495 | ||
24496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24498 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24499 | if (arg2 == NULL) { | |
24500 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24501 | } | |
24502 | if (obj2) { | |
a41e16b6 | 24503 | { |
994141e6 | 24504 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
24505 | if (PyErr_Occurred()) SWIG_fail; |
24506 | } | |
d14a1e28 RD |
24507 | } |
24508 | { | |
24509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24510 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
24511 | ||
24512 | wxPyEndAllowThreads(__tstate); | |
24513 | if (PyErr_Occurred()) SWIG_fail; | |
24514 | } | |
24515 | Py_INCREF(Py_None); resultobj = Py_None; | |
24516 | return resultobj; | |
24517 | fail: | |
24518 | return NULL; | |
24519 | } | |
24520 | ||
24521 | ||
24522 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24523 | PyObject *resultobj; | |
24524 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24525 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 24526 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24527 | PyObject * obj0 = 0 ; |
24528 | PyObject * obj1 = 0 ; | |
24529 | PyObject * obj2 = 0 ; | |
24530 | char *kwnames[] = { | |
24531 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
24532 | }; | |
24533 | ||
24534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24536 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24537 | if (arg2 == NULL) { | |
24538 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24539 | } | |
24540 | if (obj2) { | |
a41e16b6 | 24541 | { |
994141e6 | 24542 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
24543 | if (PyErr_Occurred()) SWIG_fail; |
24544 | } | |
d14a1e28 RD |
24545 | } |
24546 | { | |
24547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24548 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
24549 | ||
24550 | wxPyEndAllowThreads(__tstate); | |
24551 | if (PyErr_Occurred()) SWIG_fail; | |
24552 | } | |
24553 | Py_INCREF(Py_None); resultobj = Py_None; | |
24554 | return resultobj; | |
24555 | fail: | |
24556 | return NULL; | |
24557 | } | |
24558 | ||
24559 | ||
24560 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24561 | PyObject *resultobj; | |
24562 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24563 | wxTreeItemId *arg2 = 0 ; | |
24564 | wxColour *arg3 = 0 ; | |
24565 | wxColour temp3 ; | |
24566 | PyObject * obj0 = 0 ; | |
24567 | PyObject * obj1 = 0 ; | |
24568 | PyObject * obj2 = 0 ; | |
24569 | char *kwnames[] = { | |
24570 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24571 | }; | |
24572 | ||
24573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24575 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24576 | if (arg2 == NULL) { | |
24577 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24578 | } | |
24579 | { | |
24580 | arg3 = &temp3; | |
24581 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24582 | } | |
24583 | { | |
24584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24585 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24586 | ||
24587 | wxPyEndAllowThreads(__tstate); | |
24588 | if (PyErr_Occurred()) SWIG_fail; | |
24589 | } | |
24590 | Py_INCREF(Py_None); resultobj = Py_None; | |
24591 | return resultobj; | |
24592 | fail: | |
24593 | return NULL; | |
24594 | } | |
24595 | ||
24596 | ||
24597 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24598 | PyObject *resultobj; | |
24599 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24600 | wxTreeItemId *arg2 = 0 ; | |
24601 | wxColour *arg3 = 0 ; | |
24602 | wxColour temp3 ; | |
24603 | PyObject * obj0 = 0 ; | |
24604 | PyObject * obj1 = 0 ; | |
24605 | PyObject * obj2 = 0 ; | |
24606 | char *kwnames[] = { | |
24607 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24608 | }; | |
24609 | ||
24610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24612 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24613 | if (arg2 == NULL) { | |
24614 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24615 | } | |
24616 | { | |
24617 | arg3 = &temp3; | |
24618 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24619 | } | |
24620 | { | |
24621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24622 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24623 | ||
24624 | wxPyEndAllowThreads(__tstate); | |
24625 | if (PyErr_Occurred()) SWIG_fail; | |
24626 | } | |
24627 | Py_INCREF(Py_None); resultobj = Py_None; | |
24628 | return resultobj; | |
24629 | fail: | |
24630 | return NULL; | |
24631 | } | |
24632 | ||
24633 | ||
24634 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24635 | PyObject *resultobj; | |
24636 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24637 | wxTreeItemId *arg2 = 0 ; | |
24638 | wxFont *arg3 = 0 ; | |
24639 | PyObject * obj0 = 0 ; | |
24640 | PyObject * obj1 = 0 ; | |
24641 | PyObject * obj2 = 0 ; | |
24642 | char *kwnames[] = { | |
24643 | (char *) "self",(char *) "item",(char *) "font", NULL | |
24644 | }; | |
24645 | ||
24646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24648 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24649 | if (arg2 == NULL) { | |
24650 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24651 | } | |
24652 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24653 | if (arg3 == NULL) { | |
24654 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24655 | } | |
24656 | { | |
24657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24658 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
24659 | ||
24660 | wxPyEndAllowThreads(__tstate); | |
24661 | if (PyErr_Occurred()) SWIG_fail; | |
24662 | } | |
24663 | Py_INCREF(Py_None); resultobj = Py_None; | |
24664 | return resultobj; | |
24665 | fail: | |
24666 | return NULL; | |
24667 | } | |
24668 | ||
24669 | ||
24670 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24671 | PyObject *resultobj; | |
24672 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24673 | wxTreeItemId *arg2 = 0 ; | |
24674 | bool result; | |
24675 | PyObject * obj0 = 0 ; | |
24676 | PyObject * obj1 = 0 ; | |
24677 | char *kwnames[] = { | |
24678 | (char *) "self",(char *) "item", NULL | |
24679 | }; | |
24680 | ||
24681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
24682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24683 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24684 | if (arg2 == NULL) { | |
24685 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24686 | } | |
24687 | { | |
24688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24689 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
24690 | ||
24691 | wxPyEndAllowThreads(__tstate); | |
24692 | if (PyErr_Occurred()) SWIG_fail; | |
24693 | } | |
4d5c3d91 | 24694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24695 | return resultobj; |
24696 | fail: | |
24697 | return NULL; | |
24698 | } | |
24699 | ||
24700 | ||
24701 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24702 | PyObject *resultobj; | |
24703 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24704 | wxTreeItemId *arg2 = 0 ; | |
24705 | bool result; | |
24706 | PyObject * obj0 = 0 ; | |
24707 | PyObject * obj1 = 0 ; | |
24708 | char *kwnames[] = { | |
24709 | (char *) "self",(char *) "item", NULL | |
24710 | }; | |
24711 | ||
24712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
24713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24714 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24715 | if (arg2 == NULL) { | |
24716 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24717 | } | |
24718 | { | |
24719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24720 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
24721 | ||
24722 | wxPyEndAllowThreads(__tstate); | |
24723 | if (PyErr_Occurred()) SWIG_fail; | |
24724 | } | |
4d5c3d91 | 24725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24726 | return resultobj; |
24727 | fail: | |
24728 | return NULL; | |
24729 | } | |
24730 | ||
24731 | ||
24732 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24733 | PyObject *resultobj; | |
24734 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24735 | wxTreeItemId *arg2 = 0 ; | |
24736 | bool result; | |
24737 | PyObject * obj0 = 0 ; | |
24738 | PyObject * obj1 = 0 ; | |
24739 | char *kwnames[] = { | |
24740 | (char *) "self",(char *) "item", NULL | |
24741 | }; | |
24742 | ||
24743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
24744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24745 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24746 | if (arg2 == NULL) { | |
24747 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24748 | } | |
24749 | { | |
24750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24751 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
24752 | ||
24753 | wxPyEndAllowThreads(__tstate); | |
24754 | if (PyErr_Occurred()) SWIG_fail; | |
24755 | } | |
4d5c3d91 | 24756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24757 | return resultobj; |
24758 | fail: | |
24759 | return NULL; | |
24760 | } | |
24761 | ||
24762 | ||
24763 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24764 | PyObject *resultobj; | |
24765 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24766 | wxTreeItemId *arg2 = 0 ; | |
24767 | bool result; | |
24768 | PyObject * obj0 = 0 ; | |
24769 | PyObject * obj1 = 0 ; | |
24770 | char *kwnames[] = { | |
24771 | (char *) "self",(char *) "item", NULL | |
24772 | }; | |
24773 | ||
24774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
24775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24776 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24777 | if (arg2 == NULL) { | |
24778 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24779 | } | |
24780 | { | |
24781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24782 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
24783 | ||
24784 | wxPyEndAllowThreads(__tstate); | |
24785 | if (PyErr_Occurred()) SWIG_fail; | |
24786 | } | |
4d5c3d91 | 24787 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24788 | return resultobj; |
24789 | fail: | |
24790 | return NULL; | |
24791 | } | |
24792 | ||
24793 | ||
24794 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24795 | PyObject *resultobj; | |
24796 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24797 | wxTreeItemId *arg2 = 0 ; | |
24798 | bool result; | |
24799 | PyObject * obj0 = 0 ; | |
24800 | PyObject * obj1 = 0 ; | |
24801 | char *kwnames[] = { | |
24802 | (char *) "self",(char *) "item", NULL | |
24803 | }; | |
24804 | ||
24805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
24806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24807 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24808 | if (arg2 == NULL) { | |
24809 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24810 | } | |
24811 | { | |
24812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24813 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
24814 | ||
24815 | wxPyEndAllowThreads(__tstate); | |
24816 | if (PyErr_Occurred()) SWIG_fail; | |
24817 | } | |
4d5c3d91 | 24818 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24819 | return resultobj; |
24820 | fail: | |
24821 | return NULL; | |
24822 | } | |
24823 | ||
24824 | ||
24825 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24826 | PyObject *resultobj; | |
24827 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24828 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 24829 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24830 | size_t result; |
24831 | PyObject * obj0 = 0 ; | |
24832 | PyObject * obj1 = 0 ; | |
24833 | PyObject * obj2 = 0 ; | |
24834 | char *kwnames[] = { | |
24835 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
24836 | }; | |
24837 | ||
24838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24840 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24841 | if (arg2 == NULL) { | |
24842 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24843 | } | |
24844 | if (obj2) { | |
a41e16b6 | 24845 | { |
994141e6 | 24846 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
24847 | if (PyErr_Occurred()) SWIG_fail; |
24848 | } | |
d14a1e28 RD |
24849 | } |
24850 | { | |
24851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24852 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
24853 | ||
24854 | wxPyEndAllowThreads(__tstate); | |
24855 | if (PyErr_Occurred()) SWIG_fail; | |
24856 | } | |
994141e6 | 24857 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24858 | return resultobj; |
24859 | fail: | |
24860 | return NULL; | |
24861 | } | |
24862 | ||
24863 | ||
24864 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24865 | PyObject *resultobj; | |
24866 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24867 | wxTreeItemId result; | |
24868 | PyObject * obj0 = 0 ; | |
24869 | char *kwnames[] = { | |
24870 | (char *) "self", NULL | |
24871 | }; | |
24872 | ||
24873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
24874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24875 | { | |
24876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24877 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
24878 | ||
24879 | wxPyEndAllowThreads(__tstate); | |
24880 | if (PyErr_Occurred()) SWIG_fail; | |
24881 | } | |
24882 | { | |
24883 | wxTreeItemId * resultptr; | |
24884 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24885 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24886 | } | |
24887 | return resultobj; | |
24888 | fail: | |
24889 | return NULL; | |
24890 | } | |
24891 | ||
24892 | ||
24893 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24894 | PyObject *resultobj; | |
24895 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24896 | wxTreeItemId result; | |
24897 | PyObject * obj0 = 0 ; | |
24898 | char *kwnames[] = { | |
24899 | (char *) "self", NULL | |
24900 | }; | |
24901 | ||
24902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
24903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24904 | { | |
24905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24906 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
24907 | ||
24908 | wxPyEndAllowThreads(__tstate); | |
24909 | if (PyErr_Occurred()) SWIG_fail; | |
24910 | } | |
24911 | { | |
24912 | wxTreeItemId * resultptr; | |
24913 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24914 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24915 | } | |
24916 | return resultobj; | |
24917 | fail: | |
24918 | return NULL; | |
24919 | } | |
24920 | ||
24921 | ||
24922 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24923 | PyObject *resultobj; | |
24924 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24925 | PyObject *result; | |
24926 | PyObject * obj0 = 0 ; | |
24927 | char *kwnames[] = { | |
24928 | (char *) "self", NULL | |
24929 | }; | |
24930 | ||
24931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
24932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24933 | { | |
24934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24935 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
24936 | ||
24937 | wxPyEndAllowThreads(__tstate); | |
24938 | if (PyErr_Occurred()) SWIG_fail; | |
24939 | } | |
24940 | resultobj = result; | |
24941 | return resultobj; | |
24942 | fail: | |
24943 | return NULL; | |
24944 | } | |
24945 | ||
24946 | ||
24947 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24948 | PyObject *resultobj; | |
24949 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24950 | wxTreeItemId *arg2 = 0 ; | |
24951 | wxTreeItemId result; | |
24952 | PyObject * obj0 = 0 ; | |
24953 | PyObject * obj1 = 0 ; | |
24954 | char *kwnames[] = { | |
24955 | (char *) "self",(char *) "item", NULL | |
24956 | }; | |
24957 | ||
24958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
24959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24960 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24961 | if (arg2 == NULL) { | |
24962 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24963 | } | |
24964 | { | |
24965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24966 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
24967 | ||
24968 | wxPyEndAllowThreads(__tstate); | |
24969 | if (PyErr_Occurred()) SWIG_fail; | |
24970 | } | |
24971 | { | |
24972 | wxTreeItemId * resultptr; | |
24973 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24974 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24975 | } | |
24976 | return resultobj; | |
24977 | fail: | |
24978 | return NULL; | |
24979 | } | |
24980 | ||
24981 | ||
24982 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24983 | PyObject *resultobj; | |
24984 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24985 | wxTreeItemId *arg2 = 0 ; | |
24986 | PyObject *result; | |
24987 | PyObject * obj0 = 0 ; | |
24988 | PyObject * obj1 = 0 ; | |
24989 | char *kwnames[] = { | |
24990 | (char *) "self",(char *) "item", NULL | |
24991 | }; | |
24992 | ||
24993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
24994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24995 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24996 | if (arg2 == NULL) { | |
24997 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24998 | } | |
24999 | { | |
25000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25001 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
25002 | ||
25003 | wxPyEndAllowThreads(__tstate); | |
25004 | if (PyErr_Occurred()) SWIG_fail; | |
25005 | } | |
25006 | resultobj = result; | |
25007 | return resultobj; | |
25008 | fail: | |
25009 | return NULL; | |
25010 | } | |
25011 | ||
25012 | ||
25013 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25014 | PyObject *resultobj; | |
25015 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25016 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 25017 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
25018 | PyObject *result; |
25019 | PyObject * obj0 = 0 ; | |
25020 | PyObject * obj1 = 0 ; | |
25021 | PyObject * obj2 = 0 ; | |
25022 | char *kwnames[] = { | |
25023 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
25024 | }; | |
25025 | ||
25026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25028 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25029 | if (arg2 == NULL) { | |
25030 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25031 | } | |
58203fa6 | 25032 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
25033 | { |
25034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 25035 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
25036 | |
25037 | wxPyEndAllowThreads(__tstate); | |
25038 | if (PyErr_Occurred()) SWIG_fail; | |
25039 | } | |
25040 | resultobj = result; | |
25041 | return resultobj; | |
25042 | fail: | |
25043 | return NULL; | |
25044 | } | |
25045 | ||
25046 | ||
25047 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25048 | PyObject *resultobj; | |
25049 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25050 | wxTreeItemId *arg2 = 0 ; | |
25051 | wxTreeItemId result; | |
25052 | PyObject * obj0 = 0 ; | |
25053 | PyObject * obj1 = 0 ; | |
25054 | char *kwnames[] = { | |
25055 | (char *) "self",(char *) "item", NULL | |
25056 | }; | |
25057 | ||
25058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
25059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25060 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25061 | if (arg2 == NULL) { | |
25062 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25063 | } | |
25064 | { | |
25065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25066 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
25067 | ||
25068 | wxPyEndAllowThreads(__tstate); | |
25069 | if (PyErr_Occurred()) SWIG_fail; | |
25070 | } | |
25071 | { | |
25072 | wxTreeItemId * resultptr; | |
25073 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25074 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25075 | } | |
25076 | return resultobj; | |
25077 | fail: | |
25078 | return NULL; | |
25079 | } | |
25080 | ||
25081 | ||
25082 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25083 | PyObject *resultobj; | |
25084 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25085 | wxTreeItemId *arg2 = 0 ; | |
25086 | wxTreeItemId result; | |
25087 | PyObject * obj0 = 0 ; | |
25088 | PyObject * obj1 = 0 ; | |
25089 | char *kwnames[] = { | |
25090 | (char *) "self",(char *) "item", NULL | |
25091 | }; | |
25092 | ||
25093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
25094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25095 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25096 | if (arg2 == NULL) { | |
25097 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25098 | } | |
25099 | { | |
25100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25101 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
25102 | ||
25103 | wxPyEndAllowThreads(__tstate); | |
25104 | if (PyErr_Occurred()) SWIG_fail; | |
25105 | } | |
25106 | { | |
25107 | wxTreeItemId * resultptr; | |
25108 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25109 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25110 | } | |
25111 | return resultobj; | |
25112 | fail: | |
25113 | return NULL; | |
25114 | } | |
25115 | ||
25116 | ||
25117 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25118 | PyObject *resultobj; | |
25119 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25120 | wxTreeItemId *arg2 = 0 ; | |
25121 | wxTreeItemId result; | |
25122 | PyObject * obj0 = 0 ; | |
25123 | PyObject * obj1 = 0 ; | |
25124 | char *kwnames[] = { | |
25125 | (char *) "self",(char *) "item", NULL | |
25126 | }; | |
25127 | ||
25128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
25129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25130 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25131 | if (arg2 == NULL) { | |
25132 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25133 | } | |
25134 | { | |
25135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25136 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
25137 | ||
25138 | wxPyEndAllowThreads(__tstate); | |
25139 | if (PyErr_Occurred()) SWIG_fail; | |
25140 | } | |
25141 | { | |
25142 | wxTreeItemId * resultptr; | |
25143 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25144 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25145 | } | |
25146 | return resultobj; | |
25147 | fail: | |
25148 | return NULL; | |
25149 | } | |
25150 | ||
25151 | ||
25152 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25153 | PyObject *resultobj; | |
25154 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25155 | wxTreeItemId result; | |
25156 | PyObject * obj0 = 0 ; | |
25157 | char *kwnames[] = { | |
25158 | (char *) "self", NULL | |
25159 | }; | |
25160 | ||
25161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
25162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25163 | { | |
25164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25165 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
25166 | ||
25167 | wxPyEndAllowThreads(__tstate); | |
25168 | if (PyErr_Occurred()) SWIG_fail; | |
25169 | } | |
25170 | { | |
25171 | wxTreeItemId * resultptr; | |
25172 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25173 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25174 | } | |
25175 | return resultobj; | |
25176 | fail: | |
25177 | return NULL; | |
25178 | } | |
25179 | ||
25180 | ||
25181 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25182 | PyObject *resultobj; | |
25183 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25184 | wxTreeItemId *arg2 = 0 ; | |
25185 | wxTreeItemId result; | |
25186 | PyObject * obj0 = 0 ; | |
25187 | PyObject * obj1 = 0 ; | |
25188 | char *kwnames[] = { | |
25189 | (char *) "self",(char *) "item", NULL | |
25190 | }; | |
25191 | ||
25192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
25193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25194 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25195 | if (arg2 == NULL) { | |
25196 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25197 | } | |
25198 | { | |
25199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25200 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
25201 | ||
25202 | wxPyEndAllowThreads(__tstate); | |
25203 | if (PyErr_Occurred()) SWIG_fail; | |
25204 | } | |
25205 | { | |
25206 | wxTreeItemId * resultptr; | |
25207 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25208 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25209 | } | |
25210 | return resultobj; | |
25211 | fail: | |
25212 | return NULL; | |
25213 | } | |
25214 | ||
25215 | ||
25216 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25217 | PyObject *resultobj; | |
25218 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25219 | wxTreeItemId *arg2 = 0 ; | |
25220 | wxTreeItemId result; | |
25221 | PyObject * obj0 = 0 ; | |
25222 | PyObject * obj1 = 0 ; | |
25223 | char *kwnames[] = { | |
25224 | (char *) "self",(char *) "item", NULL | |
25225 | }; | |
25226 | ||
25227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
25228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25229 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25230 | if (arg2 == NULL) { | |
25231 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25232 | } | |
25233 | { | |
25234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25235 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
25236 | ||
25237 | wxPyEndAllowThreads(__tstate); | |
25238 | if (PyErr_Occurred()) SWIG_fail; | |
25239 | } | |
25240 | { | |
25241 | wxTreeItemId * resultptr; | |
25242 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25243 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25244 | } | |
25245 | return resultobj; | |
25246 | fail: | |
25247 | return NULL; | |
25248 | } | |
25249 | ||
25250 | ||
25251 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25252 | PyObject *resultobj; | |
25253 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25254 | wxString *arg2 = 0 ; | |
25255 | int arg3 = (int) -1 ; | |
25256 | int arg4 = (int) -1 ; | |
25257 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
25258 | wxTreeItemId result; | |
e811c8ce | 25259 | bool temp2 = False ; |
d14a1e28 RD |
25260 | PyObject * obj0 = 0 ; |
25261 | PyObject * obj1 = 0 ; | |
994141e6 RD |
25262 | PyObject * obj2 = 0 ; |
25263 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25264 | PyObject * obj4 = 0 ; |
25265 | char *kwnames[] = { | |
25266 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25267 | }; | |
25268 | ||
994141e6 | 25269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
25270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25271 | { | |
25272 | arg2 = wxString_in_helper(obj1); | |
25273 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25274 | temp2 = True; |
d14a1e28 | 25275 | } |
994141e6 RD |
25276 | if (obj2) { |
25277 | { | |
25278 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25279 | if (PyErr_Occurred()) SWIG_fail; | |
25280 | } | |
25281 | } | |
25282 | if (obj3) { | |
25283 | { | |
25284 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25285 | if (PyErr_Occurred()) SWIG_fail; | |
25286 | } | |
25287 | } | |
d14a1e28 RD |
25288 | if (obj4) { |
25289 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25290 | } | |
25291 | { | |
25292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25293 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
25294 | ||
25295 | wxPyEndAllowThreads(__tstate); | |
25296 | if (PyErr_Occurred()) SWIG_fail; | |
25297 | } | |
25298 | { | |
25299 | wxTreeItemId * resultptr; | |
25300 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25301 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25302 | } | |
25303 | { | |
25304 | if (temp2) | |
25305 | delete arg2; | |
25306 | } | |
25307 | return resultobj; | |
25308 | fail: | |
25309 | { | |
25310 | if (temp2) | |
25311 | delete arg2; | |
25312 | } | |
25313 | return NULL; | |
25314 | } | |
25315 | ||
25316 | ||
25317 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25318 | PyObject *resultobj; | |
25319 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25320 | wxTreeItemId *arg2 = 0 ; | |
25321 | wxString *arg3 = 0 ; | |
25322 | int arg4 = (int) -1 ; | |
25323 | int arg5 = (int) -1 ; | |
25324 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25325 | wxTreeItemId result; | |
e811c8ce | 25326 | bool temp3 = False ; |
d14a1e28 RD |
25327 | PyObject * obj0 = 0 ; |
25328 | PyObject * obj1 = 0 ; | |
25329 | PyObject * obj2 = 0 ; | |
994141e6 RD |
25330 | PyObject * obj3 = 0 ; |
25331 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25332 | PyObject * obj5 = 0 ; |
25333 | char *kwnames[] = { | |
25334 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25335 | }; | |
25336 | ||
994141e6 | 25337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
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 | arg3 = wxString_in_helper(obj2); | |
25345 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25346 | temp3 = True; |
d14a1e28 | 25347 | } |
994141e6 RD |
25348 | if (obj3) { |
25349 | { | |
25350 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25351 | if (PyErr_Occurred()) SWIG_fail; | |
25352 | } | |
25353 | } | |
25354 | if (obj4) { | |
25355 | { | |
25356 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25357 | if (PyErr_Occurred()) SWIG_fail; | |
25358 | } | |
25359 | } | |
d14a1e28 RD |
25360 | if (obj5) { |
25361 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25362 | } | |
25363 | { | |
25364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25365 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25366 | ||
25367 | wxPyEndAllowThreads(__tstate); | |
25368 | if (PyErr_Occurred()) SWIG_fail; | |
25369 | } | |
25370 | { | |
25371 | wxTreeItemId * resultptr; | |
25372 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25373 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25374 | } | |
25375 | { | |
25376 | if (temp3) | |
25377 | delete arg3; | |
25378 | } | |
25379 | return resultobj; | |
25380 | fail: | |
25381 | { | |
25382 | if (temp3) | |
25383 | delete arg3; | |
25384 | } | |
25385 | return NULL; | |
25386 | } | |
25387 | ||
25388 | ||
25389 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25390 | PyObject *resultobj; | |
25391 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25392 | wxTreeItemId *arg2 = 0 ; | |
25393 | wxTreeItemId *arg3 = 0 ; | |
25394 | wxString *arg4 = 0 ; | |
25395 | int arg5 = (int) -1 ; | |
25396 | int arg6 = (int) -1 ; | |
25397 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
25398 | wxTreeItemId result; | |
e811c8ce | 25399 | bool temp4 = False ; |
d14a1e28 RD |
25400 | PyObject * obj0 = 0 ; |
25401 | PyObject * obj1 = 0 ; | |
25402 | PyObject * obj2 = 0 ; | |
25403 | PyObject * obj3 = 0 ; | |
994141e6 RD |
25404 | PyObject * obj4 = 0 ; |
25405 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
25406 | PyObject * obj6 = 0 ; |
25407 | char *kwnames[] = { | |
25408 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25409 | }; | |
25410 | ||
994141e6 | 25411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
25412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25413 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25414 | if (arg2 == NULL) { | |
25415 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25416 | } | |
25417 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25418 | if (arg3 == NULL) { | |
25419 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25420 | } | |
25421 | { | |
25422 | arg4 = wxString_in_helper(obj3); | |
25423 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 25424 | temp4 = True; |
d14a1e28 | 25425 | } |
994141e6 RD |
25426 | if (obj4) { |
25427 | { | |
25428 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25429 | if (PyErr_Occurred()) SWIG_fail; | |
25430 | } | |
25431 | } | |
25432 | if (obj5) { | |
25433 | { | |
25434 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
25435 | if (PyErr_Occurred()) SWIG_fail; | |
25436 | } | |
25437 | } | |
d14a1e28 RD |
25438 | if (obj6) { |
25439 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25440 | } | |
25441 | { | |
25442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25443 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25444 | ||
25445 | wxPyEndAllowThreads(__tstate); | |
25446 | if (PyErr_Occurred()) SWIG_fail; | |
25447 | } | |
25448 | { | |
25449 | wxTreeItemId * resultptr; | |
25450 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25451 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25452 | } | |
25453 | { | |
25454 | if (temp4) | |
25455 | delete arg4; | |
25456 | } | |
25457 | return resultobj; | |
25458 | fail: | |
25459 | { | |
25460 | if (temp4) | |
25461 | delete arg4; | |
25462 | } | |
25463 | return NULL; | |
25464 | } | |
25465 | ||
25466 | ||
25467 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25468 | PyObject *resultobj; | |
25469 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25470 | wxTreeItemId *arg2 = 0 ; | |
25471 | size_t arg3 ; | |
25472 | wxString *arg4 = 0 ; | |
25473 | int arg5 = (int) -1 ; | |
25474 | int arg6 = (int) -1 ; | |
25475 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
25476 | wxTreeItemId result; | |
e811c8ce | 25477 | bool temp4 = False ; |
d14a1e28 RD |
25478 | PyObject * obj0 = 0 ; |
25479 | PyObject * obj1 = 0 ; | |
25480 | PyObject * obj2 = 0 ; | |
25481 | PyObject * obj3 = 0 ; | |
994141e6 RD |
25482 | PyObject * obj4 = 0 ; |
25483 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
25484 | PyObject * obj6 = 0 ; |
25485 | char *kwnames[] = { | |
25486 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25487 | }; | |
25488 | ||
994141e6 | 25489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
25490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25491 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25492 | if (arg2 == NULL) { | |
25493 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25494 | } | |
a41e16b6 | 25495 | { |
994141e6 | 25496 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
a41e16b6 RD |
25497 | if (PyErr_Occurred()) SWIG_fail; |
25498 | } | |
d14a1e28 RD |
25499 | { |
25500 | arg4 = wxString_in_helper(obj3); | |
25501 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 25502 | temp4 = True; |
d14a1e28 | 25503 | } |
994141e6 RD |
25504 | if (obj4) { |
25505 | { | |
25506 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25507 | if (PyErr_Occurred()) SWIG_fail; | |
25508 | } | |
25509 | } | |
25510 | if (obj5) { | |
25511 | { | |
25512 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
25513 | if (PyErr_Occurred()) SWIG_fail; | |
25514 | } | |
25515 | } | |
d14a1e28 RD |
25516 | if (obj6) { |
25517 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25518 | } | |
25519 | { | |
25520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25521 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25522 | ||
25523 | wxPyEndAllowThreads(__tstate); | |
25524 | if (PyErr_Occurred()) SWIG_fail; | |
25525 | } | |
25526 | { | |
25527 | wxTreeItemId * resultptr; | |
25528 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25529 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25530 | } | |
25531 | { | |
25532 | if (temp4) | |
25533 | delete arg4; | |
25534 | } | |
25535 | return resultobj; | |
25536 | fail: | |
25537 | { | |
25538 | if (temp4) | |
25539 | delete arg4; | |
25540 | } | |
25541 | return NULL; | |
25542 | } | |
25543 | ||
25544 | ||
25545 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25546 | PyObject *resultobj; | |
25547 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25548 | wxTreeItemId *arg2 = 0 ; | |
25549 | wxString *arg3 = 0 ; | |
25550 | int arg4 = (int) -1 ; | |
25551 | int arg5 = (int) -1 ; | |
25552 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25553 | wxTreeItemId result; | |
e811c8ce | 25554 | bool temp3 = False ; |
d14a1e28 RD |
25555 | PyObject * obj0 = 0 ; |
25556 | PyObject * obj1 = 0 ; | |
25557 | PyObject * obj2 = 0 ; | |
994141e6 RD |
25558 | PyObject * obj3 = 0 ; |
25559 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25560 | PyObject * obj5 = 0 ; |
25561 | char *kwnames[] = { | |
25562 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25563 | }; | |
25564 | ||
994141e6 | 25565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
25566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25567 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25568 | if (arg2 == NULL) { | |
25569 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25570 | } | |
25571 | { | |
25572 | arg3 = wxString_in_helper(obj2); | |
25573 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25574 | temp3 = True; |
d14a1e28 | 25575 | } |
994141e6 RD |
25576 | if (obj3) { |
25577 | { | |
25578 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25579 | if (PyErr_Occurred()) SWIG_fail; | |
25580 | } | |
25581 | } | |
25582 | if (obj4) { | |
25583 | { | |
25584 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25585 | if (PyErr_Occurred()) SWIG_fail; | |
25586 | } | |
25587 | } | |
d14a1e28 RD |
25588 | if (obj5) { |
25589 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25590 | } | |
25591 | { | |
25592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25593 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25594 | ||
25595 | wxPyEndAllowThreads(__tstate); | |
25596 | if (PyErr_Occurred()) SWIG_fail; | |
25597 | } | |
25598 | { | |
25599 | wxTreeItemId * resultptr; | |
25600 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25601 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25602 | } | |
25603 | { | |
25604 | if (temp3) | |
25605 | delete arg3; | |
25606 | } | |
25607 | return resultobj; | |
25608 | fail: | |
25609 | { | |
25610 | if (temp3) | |
25611 | delete arg3; | |
25612 | } | |
25613 | return NULL; | |
25614 | } | |
25615 | ||
25616 | ||
25617 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25618 | PyObject *resultobj; | |
25619 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25620 | wxTreeItemId *arg2 = 0 ; | |
25621 | PyObject * obj0 = 0 ; | |
25622 | PyObject * obj1 = 0 ; | |
25623 | char *kwnames[] = { | |
25624 | (char *) "self",(char *) "item", NULL | |
25625 | }; | |
25626 | ||
25627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
25628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25629 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25630 | if (arg2 == NULL) { | |
25631 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25632 | } | |
25633 | { | |
25634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25635 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
25636 | ||
25637 | wxPyEndAllowThreads(__tstate); | |
25638 | if (PyErr_Occurred()) SWIG_fail; | |
25639 | } | |
25640 | Py_INCREF(Py_None); resultobj = Py_None; | |
25641 | return resultobj; | |
25642 | fail: | |
25643 | return NULL; | |
25644 | } | |
25645 | ||
25646 | ||
25647 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25648 | PyObject *resultobj; | |
25649 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25650 | wxTreeItemId *arg2 = 0 ; | |
25651 | PyObject * obj0 = 0 ; | |
25652 | PyObject * obj1 = 0 ; | |
25653 | char *kwnames[] = { | |
25654 | (char *) "self",(char *) "item", NULL | |
25655 | }; | |
25656 | ||
25657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
25658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25659 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25660 | if (arg2 == NULL) { | |
25661 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25662 | } | |
25663 | { | |
25664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25665 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
25666 | ||
25667 | wxPyEndAllowThreads(__tstate); | |
25668 | if (PyErr_Occurred()) SWIG_fail; | |
25669 | } | |
25670 | Py_INCREF(Py_None); resultobj = Py_None; | |
25671 | return resultobj; | |
25672 | fail: | |
25673 | return NULL; | |
25674 | } | |
25675 | ||
25676 | ||
25677 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25678 | PyObject *resultobj; | |
25679 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25680 | PyObject * obj0 = 0 ; | |
25681 | char *kwnames[] = { | |
25682 | (char *) "self", NULL | |
25683 | }; | |
25684 | ||
25685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
25686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25687 | { | |
25688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25689 | (arg1)->DeleteAllItems(); | |
25690 | ||
25691 | wxPyEndAllowThreads(__tstate); | |
25692 | if (PyErr_Occurred()) SWIG_fail; | |
25693 | } | |
25694 | Py_INCREF(Py_None); resultobj = Py_None; | |
25695 | return resultobj; | |
25696 | fail: | |
25697 | return NULL; | |
25698 | } | |
25699 | ||
25700 | ||
25701 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25702 | PyObject *resultobj; | |
25703 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25704 | wxTreeItemId *arg2 = 0 ; | |
25705 | PyObject * obj0 = 0 ; | |
25706 | PyObject * obj1 = 0 ; | |
25707 | char *kwnames[] = { | |
25708 | (char *) "self",(char *) "item", NULL | |
25709 | }; | |
25710 | ||
25711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
25712 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25713 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25714 | if (arg2 == NULL) { | |
25715 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25716 | } | |
25717 | { | |
25718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25719 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
25720 | ||
25721 | wxPyEndAllowThreads(__tstate); | |
25722 | if (PyErr_Occurred()) SWIG_fail; | |
25723 | } | |
25724 | Py_INCREF(Py_None); resultobj = Py_None; | |
25725 | return resultobj; | |
25726 | fail: | |
25727 | return NULL; | |
25728 | } | |
25729 | ||
25730 | ||
25731 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25732 | PyObject *resultobj; | |
25733 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25734 | wxTreeItemId *arg2 = 0 ; | |
25735 | PyObject * obj0 = 0 ; | |
25736 | PyObject * obj1 = 0 ; | |
25737 | char *kwnames[] = { | |
25738 | (char *) "self",(char *) "item", NULL | |
25739 | }; | |
25740 | ||
25741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
25742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25743 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25744 | if (arg2 == NULL) { | |
25745 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25746 | } | |
25747 | { | |
25748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25749 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
25750 | ||
25751 | wxPyEndAllowThreads(__tstate); | |
25752 | if (PyErr_Occurred()) SWIG_fail; | |
25753 | } | |
25754 | Py_INCREF(Py_None); resultobj = Py_None; | |
25755 | return resultobj; | |
25756 | fail: | |
25757 | return NULL; | |
25758 | } | |
25759 | ||
25760 | ||
25761 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25762 | PyObject *resultobj; | |
25763 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25764 | wxTreeItemId *arg2 = 0 ; | |
25765 | PyObject * obj0 = 0 ; | |
25766 | PyObject * obj1 = 0 ; | |
25767 | char *kwnames[] = { | |
25768 | (char *) "self",(char *) "item", NULL | |
25769 | }; | |
25770 | ||
25771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
25772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25773 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25774 | if (arg2 == NULL) { | |
25775 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25776 | } | |
25777 | { | |
25778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25779 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
25780 | ||
25781 | wxPyEndAllowThreads(__tstate); | |
25782 | if (PyErr_Occurred()) SWIG_fail; | |
25783 | } | |
25784 | Py_INCREF(Py_None); resultobj = Py_None; | |
25785 | return resultobj; | |
25786 | fail: | |
25787 | return NULL; | |
25788 | } | |
25789 | ||
25790 | ||
25791 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25792 | PyObject *resultobj; | |
25793 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25794 | wxTreeItemId *arg2 = 0 ; | |
25795 | PyObject * obj0 = 0 ; | |
25796 | PyObject * obj1 = 0 ; | |
25797 | char *kwnames[] = { | |
25798 | (char *) "self",(char *) "item", NULL | |
25799 | }; | |
25800 | ||
25801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
25802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25803 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25804 | if (arg2 == NULL) { | |
25805 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25806 | } | |
25807 | { | |
25808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25809 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
25810 | ||
25811 | wxPyEndAllowThreads(__tstate); | |
25812 | if (PyErr_Occurred()) SWIG_fail; | |
25813 | } | |
25814 | Py_INCREF(Py_None); resultobj = Py_None; | |
25815 | return resultobj; | |
25816 | fail: | |
25817 | return NULL; | |
25818 | } | |
25819 | ||
25820 | ||
25821 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25822 | PyObject *resultobj; | |
25823 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25824 | PyObject * obj0 = 0 ; | |
25825 | char *kwnames[] = { | |
25826 | (char *) "self", NULL | |
25827 | }; | |
25828 | ||
25829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
25830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25831 | { | |
25832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25833 | (arg1)->Unselect(); | |
25834 | ||
25835 | wxPyEndAllowThreads(__tstate); | |
25836 | if (PyErr_Occurred()) SWIG_fail; | |
25837 | } | |
25838 | Py_INCREF(Py_None); resultobj = Py_None; | |
25839 | return resultobj; | |
25840 | fail: | |
25841 | return NULL; | |
25842 | } | |
25843 | ||
25844 | ||
3adfb63b RD |
25845 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
25846 | PyObject *resultobj; | |
25847 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25848 | wxTreeItemId *arg2 = 0 ; | |
25849 | PyObject * obj0 = 0 ; | |
25850 | PyObject * obj1 = 0 ; | |
25851 | char *kwnames[] = { | |
25852 | (char *) "self",(char *) "item", NULL | |
25853 | }; | |
25854 | ||
25855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
25856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25857 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25858 | if (arg2 == NULL) { | |
25859 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25860 | } | |
25861 | { | |
25862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25863 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
25864 | ||
25865 | wxPyEndAllowThreads(__tstate); | |
25866 | if (PyErr_Occurred()) SWIG_fail; | |
25867 | } | |
25868 | Py_INCREF(Py_None); resultobj = Py_None; | |
25869 | return resultobj; | |
25870 | fail: | |
25871 | return NULL; | |
25872 | } | |
25873 | ||
25874 | ||
d14a1e28 RD |
25875 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
25876 | PyObject *resultobj; | |
25877 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25878 | PyObject * obj0 = 0 ; | |
25879 | char *kwnames[] = { | |
25880 | (char *) "self", NULL | |
25881 | }; | |
25882 | ||
25883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
25884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25885 | { | |
25886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25887 | (arg1)->UnselectAll(); | |
25888 | ||
25889 | wxPyEndAllowThreads(__tstate); | |
25890 | if (PyErr_Occurred()) SWIG_fail; | |
25891 | } | |
25892 | Py_INCREF(Py_None); resultobj = Py_None; | |
25893 | return resultobj; | |
25894 | fail: | |
25895 | return NULL; | |
25896 | } | |
25897 | ||
25898 | ||
25899 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3adfb63b RD |
25900 | PyObject *resultobj; |
25901 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25902 | wxTreeItemId *arg2 = 0 ; | |
25903 | bool arg3 = (bool) True ; | |
25904 | PyObject * obj0 = 0 ; | |
25905 | PyObject * obj1 = 0 ; | |
25906 | PyObject * obj2 = 0 ; | |
25907 | char *kwnames[] = { | |
25908 | (char *) "self",(char *) "item",(char *) "select", NULL | |
25909 | }; | |
25910 | ||
25911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25913 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25914 | if (arg2 == NULL) { | |
25915 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25916 | } | |
25917 | if (obj2) { | |
25918 | { | |
25919 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
25920 | if (PyErr_Occurred()) SWIG_fail; | |
25921 | } | |
25922 | } | |
25923 | { | |
25924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25925 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
25926 | ||
25927 | wxPyEndAllowThreads(__tstate); | |
25928 | if (PyErr_Occurred()) SWIG_fail; | |
25929 | } | |
25930 | Py_INCREF(Py_None); resultobj = Py_None; | |
25931 | return resultobj; | |
25932 | fail: | |
25933 | return NULL; | |
25934 | } | |
25935 | ||
25936 | ||
25937 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
25938 | PyObject *resultobj; |
25939 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25940 | wxTreeItemId *arg2 = 0 ; | |
25941 | PyObject * obj0 = 0 ; | |
25942 | PyObject * obj1 = 0 ; | |
25943 | char *kwnames[] = { | |
25944 | (char *) "self",(char *) "item", NULL | |
25945 | }; | |
25946 | ||
3adfb63b | 25947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
25948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25949 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25950 | if (arg2 == NULL) { | |
25951 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25952 | } | |
25953 | { | |
25954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 25955 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
25956 | |
25957 | wxPyEndAllowThreads(__tstate); | |
25958 | if (PyErr_Occurred()) SWIG_fail; | |
25959 | } | |
25960 | Py_INCREF(Py_None); resultobj = Py_None; | |
25961 | return resultobj; | |
25962 | fail: | |
25963 | return NULL; | |
25964 | } | |
25965 | ||
25966 | ||
25967 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25968 | PyObject *resultobj; | |
25969 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25970 | wxTreeItemId *arg2 = 0 ; | |
25971 | PyObject * obj0 = 0 ; | |
25972 | PyObject * obj1 = 0 ; | |
25973 | char *kwnames[] = { | |
25974 | (char *) "self",(char *) "item", NULL | |
25975 | }; | |
25976 | ||
25977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
25978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25979 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25980 | if (arg2 == NULL) { | |
25981 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25982 | } | |
25983 | { | |
25984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25985 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
25986 | ||
25987 | wxPyEndAllowThreads(__tstate); | |
25988 | if (PyErr_Occurred()) SWIG_fail; | |
25989 | } | |
25990 | Py_INCREF(Py_None); resultobj = Py_None; | |
25991 | return resultobj; | |
25992 | fail: | |
25993 | return NULL; | |
25994 | } | |
25995 | ||
25996 | ||
25997 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25998 | PyObject *resultobj; | |
25999 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26000 | wxTreeItemId *arg2 = 0 ; | |
26001 | PyObject * obj0 = 0 ; | |
26002 | PyObject * obj1 = 0 ; | |
26003 | char *kwnames[] = { | |
26004 | (char *) "self",(char *) "item", NULL | |
26005 | }; | |
26006 | ||
26007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
26008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26009 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26010 | if (arg2 == NULL) { | |
26011 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26012 | } | |
26013 | { | |
26014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26015 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
26016 | ||
26017 | wxPyEndAllowThreads(__tstate); | |
26018 | if (PyErr_Occurred()) SWIG_fail; | |
26019 | } | |
26020 | Py_INCREF(Py_None); resultobj = Py_None; | |
26021 | return resultobj; | |
26022 | fail: | |
26023 | return NULL; | |
26024 | } | |
26025 | ||
26026 | ||
26027 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26028 | PyObject *resultobj; | |
26029 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26030 | wxTreeItemId *arg2 = 0 ; | |
26031 | PyObject * obj0 = 0 ; | |
26032 | PyObject * obj1 = 0 ; | |
26033 | char *kwnames[] = { | |
26034 | (char *) "self",(char *) "item", NULL | |
26035 | }; | |
26036 | ||
26037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
26038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26039 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26040 | if (arg2 == NULL) { | |
26041 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26042 | } | |
26043 | { | |
26044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26045 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
26046 | ||
26047 | wxPyEndAllowThreads(__tstate); | |
26048 | if (PyErr_Occurred()) SWIG_fail; | |
26049 | } | |
26050 | Py_INCREF(Py_None); resultobj = Py_None; | |
26051 | return resultobj; | |
26052 | fail: | |
26053 | return NULL; | |
26054 | } | |
26055 | ||
26056 | ||
26057 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26058 | PyObject *resultobj; | |
26059 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26060 | wxTextCtrl *result; | |
26061 | PyObject * obj0 = 0 ; | |
26062 | char *kwnames[] = { | |
26063 | (char *) "self", NULL | |
26064 | }; | |
26065 | ||
26066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
26067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26068 | { | |
26069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26070 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
26071 | ||
26072 | wxPyEndAllowThreads(__tstate); | |
26073 | if (PyErr_Occurred()) SWIG_fail; | |
26074 | } | |
26075 | { | |
26076 | resultobj = wxPyMake_wxObject(result); | |
26077 | } | |
26078 | return resultobj; | |
26079 | fail: | |
26080 | return NULL; | |
26081 | } | |
26082 | ||
26083 | ||
26084 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26085 | PyObject *resultobj; | |
26086 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26087 | wxTreeItemId *arg2 = 0 ; | |
26088 | PyObject * obj0 = 0 ; | |
26089 | PyObject * obj1 = 0 ; | |
26090 | char *kwnames[] = { | |
26091 | (char *) "self",(char *) "item", NULL | |
26092 | }; | |
26093 | ||
26094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
26095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26096 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26097 | if (arg2 == NULL) { | |
26098 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26099 | } | |
26100 | { | |
26101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26102 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
26103 | ||
26104 | wxPyEndAllowThreads(__tstate); | |
26105 | if (PyErr_Occurred()) SWIG_fail; | |
26106 | } | |
26107 | Py_INCREF(Py_None); resultobj = Py_None; | |
26108 | return resultobj; | |
26109 | fail: | |
26110 | return NULL; | |
26111 | } | |
26112 | ||
26113 | ||
26114 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26115 | PyObject *resultobj; | |
26116 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26117 | wxPoint *arg2 = 0 ; | |
26118 | int *arg3 = 0 ; | |
26119 | wxTreeItemId result; | |
26120 | wxPoint temp2 ; | |
26121 | int temp3 ; | |
26122 | PyObject * obj0 = 0 ; | |
26123 | PyObject * obj1 = 0 ; | |
26124 | char *kwnames[] = { | |
26125 | (char *) "self",(char *) "point", NULL | |
26126 | }; | |
26127 | ||
26128 | arg3 = &temp3; | |
26129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
26130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26131 | { | |
26132 | arg2 = &temp2; | |
26133 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26134 | } | |
26135 | { | |
26136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26137 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
26138 | ||
26139 | wxPyEndAllowThreads(__tstate); | |
26140 | if (PyErr_Occurred()) SWIG_fail; | |
26141 | } | |
26142 | { | |
26143 | wxTreeItemId * resultptr; | |
26144 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26145 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
26146 | } | |
26147 | { | |
26148 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26149 | resultobj = t_output_helper(resultobj,o); | |
26150 | } | |
26151 | return resultobj; | |
26152 | fail: | |
26153 | return NULL; | |
26154 | } | |
26155 | ||
26156 | ||
26157 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26158 | PyObject *resultobj; | |
26159 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26160 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 26161 | bool arg3 = (bool) False ; |
d14a1e28 RD |
26162 | PyObject *result; |
26163 | PyObject * obj0 = 0 ; | |
26164 | PyObject * obj1 = 0 ; | |
26165 | PyObject * obj2 = 0 ; | |
26166 | char *kwnames[] = { | |
26167 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
26168 | }; | |
26169 | ||
26170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26172 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26173 | if (arg2 == NULL) { | |
26174 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26175 | } | |
26176 | if (obj2) { | |
a41e16b6 | 26177 | { |
994141e6 | 26178 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
26179 | if (PyErr_Occurred()) SWIG_fail; |
26180 | } | |
d14a1e28 RD |
26181 | } |
26182 | { | |
26183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26184 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26185 | ||
26186 | wxPyEndAllowThreads(__tstate); | |
26187 | if (PyErr_Occurred()) SWIG_fail; | |
26188 | } | |
26189 | resultobj = result; | |
26190 | return resultobj; | |
26191 | fail: | |
26192 | return NULL; | |
26193 | } | |
26194 | ||
26195 | ||
26196 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
26197 | PyObject *obj; | |
26198 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26199 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
26200 | Py_INCREF(obj); | |
26201 | return Py_BuildValue((char *)""); | |
26202 | } | |
b2dc1044 RD |
26203 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { |
26204 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
26205 | return 1; | |
26206 | } | |
26207 | ||
26208 | ||
26209 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
26210 | PyObject *pyobj; | |
26211 | ||
26212 | { | |
26213 | #if wxUSE_UNICODE | |
26214 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
26215 | #else | |
26216 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
26217 | #endif | |
26218 | } | |
26219 | return pyobj; | |
26220 | } | |
26221 | ||
26222 | ||
d14a1e28 RD |
26223 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
26224 | PyObject *resultobj; | |
26225 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 26226 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
26227 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
26228 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
26229 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
26230 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26231 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26232 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26233 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
26234 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
26235 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
26236 | int arg8 = (int) 0 ; | |
b2dc1044 | 26237 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
26238 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
26239 | wxGenericDirCtrl *result; | |
e811c8ce | 26240 | bool temp3 = False ; |
d14a1e28 RD |
26241 | wxPoint temp4 ; |
26242 | wxSize temp5 ; | |
e811c8ce RD |
26243 | bool temp7 = False ; |
26244 | bool temp9 = False ; | |
d14a1e28 | 26245 | PyObject * obj0 = 0 ; |
994141e6 | 26246 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26247 | PyObject * obj2 = 0 ; |
26248 | PyObject * obj3 = 0 ; | |
26249 | PyObject * obj4 = 0 ; | |
994141e6 | 26250 | PyObject * obj5 = 0 ; |
d14a1e28 | 26251 | PyObject * obj6 = 0 ; |
994141e6 | 26252 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
26253 | PyObject * obj8 = 0 ; |
26254 | char *kwnames[] = { | |
26255 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
26256 | }; | |
26257 | ||
994141e6 | 26258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 26259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
26260 | if (obj1) { |
26261 | { | |
26262 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
26263 | if (PyErr_Occurred()) SWIG_fail; | |
26264 | } | |
26265 | } | |
d14a1e28 RD |
26266 | if (obj2) { |
26267 | { | |
26268 | arg3 = wxString_in_helper(obj2); | |
26269 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 26270 | temp3 = True; |
d14a1e28 RD |
26271 | } |
26272 | } | |
26273 | if (obj3) { | |
26274 | { | |
26275 | arg4 = &temp4; | |
26276 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26277 | } | |
26278 | } | |
26279 | if (obj4) { | |
26280 | { | |
26281 | arg5 = &temp5; | |
26282 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26283 | } | |
26284 | } | |
994141e6 RD |
26285 | if (obj5) { |
26286 | { | |
26287 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
26288 | if (PyErr_Occurred()) SWIG_fail; | |
26289 | } | |
26290 | } | |
d14a1e28 RD |
26291 | if (obj6) { |
26292 | { | |
26293 | arg7 = wxString_in_helper(obj6); | |
26294 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 26295 | temp7 = True; |
d14a1e28 RD |
26296 | } |
26297 | } | |
994141e6 RD |
26298 | if (obj7) { |
26299 | { | |
26300 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
26301 | if (PyErr_Occurred()) SWIG_fail; | |
26302 | } | |
26303 | } | |
d14a1e28 RD |
26304 | if (obj8) { |
26305 | { | |
26306 | arg9 = wxString_in_helper(obj8); | |
26307 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 26308 | temp9 = True; |
d14a1e28 RD |
26309 | } |
26310 | } | |
26311 | { | |
26312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26313 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
26314 | ||
26315 | wxPyEndAllowThreads(__tstate); | |
26316 | if (PyErr_Occurred()) SWIG_fail; | |
26317 | } | |
26318 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
26319 | { | |
26320 | if (temp3) | |
26321 | delete arg3; | |
26322 | } | |
26323 | { | |
26324 | if (temp7) | |
26325 | delete arg7; | |
26326 | } | |
26327 | { | |
26328 | if (temp9) | |
26329 | delete arg9; | |
26330 | } | |
26331 | return resultobj; | |
26332 | fail: | |
26333 | { | |
26334 | if (temp3) | |
26335 | delete arg3; | |
26336 | } | |
26337 | { | |
26338 | if (temp7) | |
26339 | delete arg7; | |
26340 | } | |
26341 | { | |
26342 | if (temp9) | |
26343 | delete arg9; | |
26344 | } | |
26345 | return NULL; | |
26346 | } | |
26347 | ||
26348 | ||
26349 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26350 | PyObject *resultobj; | |
26351 | wxGenericDirCtrl *result; | |
26352 | char *kwnames[] = { | |
26353 | NULL | |
26354 | }; | |
26355 | ||
26356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
26357 | { | |
26358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26359 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
26360 | ||
26361 | wxPyEndAllowThreads(__tstate); | |
26362 | if (PyErr_Occurred()) SWIG_fail; | |
26363 | } | |
26364 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
26365 | return resultobj; | |
26366 | fail: | |
26367 | return NULL; | |
26368 | } | |
26369 | ||
26370 | ||
26371 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26372 | PyObject *resultobj; | |
26373 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26374 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 26375 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
26376 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
26377 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
26378 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
26379 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
26380 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
26381 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
26382 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
26383 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
26384 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
26385 | int arg9 = (int) 0 ; | |
b2dc1044 | 26386 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
26387 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
26388 | bool result; | |
e811c8ce | 26389 | bool temp4 = False ; |
d14a1e28 RD |
26390 | wxPoint temp5 ; |
26391 | wxSize temp6 ; | |
e811c8ce RD |
26392 | bool temp8 = False ; |
26393 | bool temp10 = False ; | |
d14a1e28 RD |
26394 | PyObject * obj0 = 0 ; |
26395 | PyObject * obj1 = 0 ; | |
994141e6 | 26396 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26397 | PyObject * obj3 = 0 ; |
26398 | PyObject * obj4 = 0 ; | |
26399 | PyObject * obj5 = 0 ; | |
994141e6 | 26400 | PyObject * obj6 = 0 ; |
d14a1e28 | 26401 | PyObject * obj7 = 0 ; |
994141e6 | 26402 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
26403 | PyObject * obj9 = 0 ; |
26404 | char *kwnames[] = { | |
26405 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
26406 | }; | |
26407 | ||
994141e6 | 26408 | 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 |
26409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26410 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
26411 | if (obj2) { |
26412 | { | |
26413 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
26414 | if (PyErr_Occurred()) SWIG_fail; | |
26415 | } | |
26416 | } | |
d14a1e28 RD |
26417 | if (obj3) { |
26418 | { | |
26419 | arg4 = wxString_in_helper(obj3); | |
26420 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 26421 | temp4 = True; |
d14a1e28 RD |
26422 | } |
26423 | } | |
26424 | if (obj4) { | |
26425 | { | |
26426 | arg5 = &temp5; | |
26427 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
26428 | } | |
26429 | } | |
26430 | if (obj5) { | |
26431 | { | |
26432 | arg6 = &temp6; | |
26433 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
26434 | } | |
26435 | } | |
994141e6 RD |
26436 | if (obj6) { |
26437 | { | |
26438 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
26439 | if (PyErr_Occurred()) SWIG_fail; | |
26440 | } | |
26441 | } | |
d14a1e28 RD |
26442 | if (obj7) { |
26443 | { | |
26444 | arg8 = wxString_in_helper(obj7); | |
26445 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 26446 | temp8 = True; |
d14a1e28 RD |
26447 | } |
26448 | } | |
994141e6 RD |
26449 | if (obj8) { |
26450 | { | |
26451 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
26452 | if (PyErr_Occurred()) SWIG_fail; | |
26453 | } | |
26454 | } | |
d14a1e28 RD |
26455 | if (obj9) { |
26456 | { | |
26457 | arg10 = wxString_in_helper(obj9); | |
26458 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 26459 | temp10 = True; |
d14a1e28 RD |
26460 | } |
26461 | } | |
26462 | { | |
26463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26464 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
26465 | ||
26466 | wxPyEndAllowThreads(__tstate); | |
26467 | if (PyErr_Occurred()) SWIG_fail; | |
26468 | } | |
4d5c3d91 | 26469 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26470 | { |
26471 | if (temp4) | |
26472 | delete arg4; | |
26473 | } | |
26474 | { | |
26475 | if (temp8) | |
26476 | delete arg8; | |
26477 | } | |
26478 | { | |
26479 | if (temp10) | |
26480 | delete arg10; | |
26481 | } | |
26482 | return resultobj; | |
26483 | fail: | |
26484 | { | |
26485 | if (temp4) | |
26486 | delete arg4; | |
26487 | } | |
26488 | { | |
26489 | if (temp8) | |
26490 | delete arg8; | |
26491 | } | |
26492 | { | |
26493 | if (temp10) | |
26494 | delete arg10; | |
26495 | } | |
26496 | return NULL; | |
26497 | } | |
26498 | ||
26499 | ||
26500 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26501 | PyObject *resultobj; | |
26502 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26503 | wxString *arg2 = 0 ; | |
26504 | bool result; | |
e811c8ce | 26505 | bool temp2 = False ; |
d14a1e28 RD |
26506 | PyObject * obj0 = 0 ; |
26507 | PyObject * obj1 = 0 ; | |
26508 | char *kwnames[] = { | |
26509 | (char *) "self",(char *) "path", NULL | |
26510 | }; | |
26511 | ||
26512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
26513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26514 | { | |
26515 | arg2 = wxString_in_helper(obj1); | |
26516 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26517 | temp2 = True; |
d14a1e28 RD |
26518 | } |
26519 | { | |
26520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26521 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
26522 | ||
26523 | wxPyEndAllowThreads(__tstate); | |
26524 | if (PyErr_Occurred()) SWIG_fail; | |
26525 | } | |
4d5c3d91 | 26526 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26527 | { |
26528 | if (temp2) | |
26529 | delete arg2; | |
26530 | } | |
26531 | return resultobj; | |
26532 | fail: | |
26533 | { | |
26534 | if (temp2) | |
26535 | delete arg2; | |
26536 | } | |
26537 | return NULL; | |
26538 | } | |
26539 | ||
26540 | ||
26541 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26542 | PyObject *resultobj; | |
26543 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26544 | wxString result; | |
26545 | PyObject * obj0 = 0 ; | |
26546 | char *kwnames[] = { | |
26547 | (char *) "self", NULL | |
26548 | }; | |
26549 | ||
26550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
26551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26552 | { | |
26553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26554 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
26555 | ||
26556 | wxPyEndAllowThreads(__tstate); | |
26557 | if (PyErr_Occurred()) SWIG_fail; | |
26558 | } | |
26559 | { | |
26560 | #if wxUSE_UNICODE | |
26561 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26562 | #else | |
26563 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26564 | #endif | |
26565 | } | |
26566 | return resultobj; | |
26567 | fail: | |
26568 | return NULL; | |
26569 | } | |
26570 | ||
26571 | ||
26572 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26573 | PyObject *resultobj; | |
26574 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26575 | wxString *arg2 = 0 ; | |
e811c8ce | 26576 | bool temp2 = False ; |
d14a1e28 RD |
26577 | PyObject * obj0 = 0 ; |
26578 | PyObject * obj1 = 0 ; | |
26579 | char *kwnames[] = { | |
26580 | (char *) "self",(char *) "path", NULL | |
26581 | }; | |
26582 | ||
26583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
26584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26585 | { | |
26586 | arg2 = wxString_in_helper(obj1); | |
26587 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26588 | temp2 = True; |
d14a1e28 RD |
26589 | } |
26590 | { | |
26591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26592 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
26593 | ||
26594 | wxPyEndAllowThreads(__tstate); | |
26595 | if (PyErr_Occurred()) SWIG_fail; | |
26596 | } | |
26597 | Py_INCREF(Py_None); resultobj = Py_None; | |
26598 | { | |
26599 | if (temp2) | |
26600 | delete arg2; | |
26601 | } | |
26602 | return resultobj; | |
26603 | fail: | |
26604 | { | |
26605 | if (temp2) | |
26606 | delete arg2; | |
26607 | } | |
26608 | return NULL; | |
26609 | } | |
26610 | ||
26611 | ||
26612 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26613 | PyObject *resultobj; | |
26614 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26615 | wxString result; | |
26616 | PyObject * obj0 = 0 ; | |
26617 | char *kwnames[] = { | |
26618 | (char *) "self", NULL | |
26619 | }; | |
26620 | ||
26621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
26622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26623 | { | |
26624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26625 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
26626 | ||
26627 | wxPyEndAllowThreads(__tstate); | |
26628 | if (PyErr_Occurred()) SWIG_fail; | |
26629 | } | |
26630 | { | |
26631 | #if wxUSE_UNICODE | |
26632 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26633 | #else | |
26634 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26635 | #endif | |
26636 | } | |
26637 | return resultobj; | |
26638 | fail: | |
26639 | return NULL; | |
26640 | } | |
26641 | ||
26642 | ||
26643 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26644 | PyObject *resultobj; | |
26645 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26646 | wxString result; | |
26647 | PyObject * obj0 = 0 ; | |
26648 | char *kwnames[] = { | |
26649 | (char *) "self", NULL | |
26650 | }; | |
26651 | ||
26652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
26653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26654 | { | |
26655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26656 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
26657 | ||
26658 | wxPyEndAllowThreads(__tstate); | |
26659 | if (PyErr_Occurred()) SWIG_fail; | |
26660 | } | |
26661 | { | |
26662 | #if wxUSE_UNICODE | |
26663 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26664 | #else | |
26665 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26666 | #endif | |
26667 | } | |
26668 | return resultobj; | |
26669 | fail: | |
26670 | return NULL; | |
26671 | } | |
26672 | ||
26673 | ||
26674 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26675 | PyObject *resultobj; | |
26676 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26677 | wxString *arg2 = 0 ; | |
e811c8ce | 26678 | bool temp2 = False ; |
d14a1e28 RD |
26679 | PyObject * obj0 = 0 ; |
26680 | PyObject * obj1 = 0 ; | |
26681 | char *kwnames[] = { | |
26682 | (char *) "self",(char *) "path", NULL | |
26683 | }; | |
26684 | ||
26685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
26686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26687 | { | |
26688 | arg2 = wxString_in_helper(obj1); | |
26689 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26690 | temp2 = True; |
d14a1e28 RD |
26691 | } |
26692 | { | |
26693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26694 | (arg1)->SetPath((wxString const &)*arg2); | |
26695 | ||
26696 | wxPyEndAllowThreads(__tstate); | |
26697 | if (PyErr_Occurred()) SWIG_fail; | |
26698 | } | |
26699 | Py_INCREF(Py_None); resultobj = Py_None; | |
26700 | { | |
26701 | if (temp2) | |
26702 | delete arg2; | |
26703 | } | |
26704 | return resultobj; | |
26705 | fail: | |
26706 | { | |
26707 | if (temp2) | |
26708 | delete arg2; | |
26709 | } | |
26710 | return NULL; | |
26711 | } | |
26712 | ||
26713 | ||
26714 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26715 | PyObject *resultobj; | |
26716 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26717 | bool arg2 ; | |
26718 | PyObject * obj0 = 0 ; | |
26719 | PyObject * obj1 = 0 ; | |
26720 | char *kwnames[] = { | |
26721 | (char *) "self",(char *) "show", NULL | |
26722 | }; | |
26723 | ||
26724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
26725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 26726 | { |
994141e6 | 26727 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
26728 | if (PyErr_Occurred()) SWIG_fail; |
26729 | } | |
d14a1e28 RD |
26730 | { |
26731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26732 | (arg1)->ShowHidden(arg2); | |
26733 | ||
26734 | wxPyEndAllowThreads(__tstate); | |
26735 | if (PyErr_Occurred()) SWIG_fail; | |
26736 | } | |
26737 | Py_INCREF(Py_None); resultobj = Py_None; | |
26738 | return resultobj; | |
26739 | fail: | |
26740 | return NULL; | |
26741 | } | |
26742 | ||
26743 | ||
26744 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26745 | PyObject *resultobj; | |
26746 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26747 | bool result; | |
26748 | PyObject * obj0 = 0 ; | |
26749 | char *kwnames[] = { | |
26750 | (char *) "self", NULL | |
26751 | }; | |
26752 | ||
26753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
26754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26755 | { | |
26756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26757 | result = (bool)(arg1)->GetShowHidden(); | |
26758 | ||
26759 | wxPyEndAllowThreads(__tstate); | |
26760 | if (PyErr_Occurred()) SWIG_fail; | |
26761 | } | |
4d5c3d91 | 26762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26763 | return resultobj; |
26764 | fail: | |
26765 | return NULL; | |
26766 | } | |
26767 | ||
26768 | ||
26769 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26770 | PyObject *resultobj; | |
26771 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26772 | wxString result; | |
26773 | PyObject * obj0 = 0 ; | |
26774 | char *kwnames[] = { | |
26775 | (char *) "self", NULL | |
26776 | }; | |
26777 | ||
26778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
26779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26780 | { | |
26781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26782 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
26783 | ||
26784 | wxPyEndAllowThreads(__tstate); | |
26785 | if (PyErr_Occurred()) SWIG_fail; | |
26786 | } | |
26787 | { | |
26788 | #if wxUSE_UNICODE | |
26789 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26790 | #else | |
26791 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26792 | #endif | |
26793 | } | |
26794 | return resultobj; | |
26795 | fail: | |
26796 | return NULL; | |
26797 | } | |
26798 | ||
26799 | ||
26800 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26801 | PyObject *resultobj; | |
26802 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26803 | wxString *arg2 = 0 ; | |
e811c8ce | 26804 | bool temp2 = False ; |
d14a1e28 RD |
26805 | PyObject * obj0 = 0 ; |
26806 | PyObject * obj1 = 0 ; | |
26807 | char *kwnames[] = { | |
26808 | (char *) "self",(char *) "filter", NULL | |
26809 | }; | |
26810 | ||
26811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
26812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26813 | { | |
26814 | arg2 = wxString_in_helper(obj1); | |
26815 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26816 | temp2 = True; |
d14a1e28 RD |
26817 | } |
26818 | { | |
26819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26820 | (arg1)->SetFilter((wxString const &)*arg2); | |
26821 | ||
26822 | wxPyEndAllowThreads(__tstate); | |
26823 | if (PyErr_Occurred()) SWIG_fail; | |
26824 | } | |
26825 | Py_INCREF(Py_None); resultobj = Py_None; | |
26826 | { | |
26827 | if (temp2) | |
26828 | delete arg2; | |
26829 | } | |
26830 | return resultobj; | |
26831 | fail: | |
26832 | { | |
26833 | if (temp2) | |
26834 | delete arg2; | |
26835 | } | |
26836 | return NULL; | |
26837 | } | |
26838 | ||
26839 | ||
26840 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26841 | PyObject *resultobj; | |
26842 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26843 | int result; | |
26844 | PyObject * obj0 = 0 ; | |
26845 | char *kwnames[] = { | |
26846 | (char *) "self", NULL | |
26847 | }; | |
26848 | ||
26849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
26850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26851 | { | |
26852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26853 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
26854 | ||
26855 | wxPyEndAllowThreads(__tstate); | |
26856 | if (PyErr_Occurred()) SWIG_fail; | |
26857 | } | |
994141e6 | 26858 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
26859 | return resultobj; |
26860 | fail: | |
26861 | return NULL; | |
26862 | } | |
26863 | ||
26864 | ||
26865 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26866 | PyObject *resultobj; | |
26867 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26868 | int arg2 ; | |
26869 | PyObject * obj0 = 0 ; | |
994141e6 | 26870 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26871 | char *kwnames[] = { |
26872 | (char *) "self",(char *) "n", NULL | |
26873 | }; | |
26874 | ||
994141e6 | 26875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 26876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
26877 | { |
26878 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26879 | if (PyErr_Occurred()) SWIG_fail; | |
26880 | } | |
d14a1e28 RD |
26881 | { |
26882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26883 | (arg1)->SetFilterIndex(arg2); | |
26884 | ||
26885 | wxPyEndAllowThreads(__tstate); | |
26886 | if (PyErr_Occurred()) SWIG_fail; | |
26887 | } | |
26888 | Py_INCREF(Py_None); resultobj = Py_None; | |
26889 | return resultobj; | |
26890 | fail: | |
26891 | return NULL; | |
26892 | } | |
26893 | ||
26894 | ||
26895 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26896 | PyObject *resultobj; | |
26897 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26898 | wxTreeItemId result; | |
26899 | PyObject * obj0 = 0 ; | |
26900 | char *kwnames[] = { | |
26901 | (char *) "self", NULL | |
26902 | }; | |
26903 | ||
26904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
26905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26906 | { | |
26907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26908 | result = (arg1)->GetRootId(); | |
26909 | ||
26910 | wxPyEndAllowThreads(__tstate); | |
26911 | if (PyErr_Occurred()) SWIG_fail; | |
26912 | } | |
26913 | { | |
26914 | wxTreeItemId * resultptr; | |
26915 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26916 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
26917 | } | |
26918 | return resultobj; | |
26919 | fail: | |
26920 | return NULL; | |
26921 | } | |
26922 | ||
26923 | ||
26924 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26925 | PyObject *resultobj; | |
26926 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
b2dc1044 | 26927 | wxPyTreeCtrl *result; |
d14a1e28 RD |
26928 | PyObject * obj0 = 0 ; |
26929 | char *kwnames[] = { | |
26930 | (char *) "self", NULL | |
26931 | }; | |
26932 | ||
26933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
26934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26935 | { | |
26936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 26937 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
26938 | |
26939 | wxPyEndAllowThreads(__tstate); | |
26940 | if (PyErr_Occurred()) SWIG_fail; | |
26941 | } | |
26942 | { | |
26943 | resultobj = wxPyMake_wxObject(result); | |
26944 | } | |
26945 | return resultobj; | |
26946 | fail: | |
26947 | return NULL; | |
26948 | } | |
26949 | ||
26950 | ||
26951 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26952 | PyObject *resultobj; | |
26953 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26954 | wxDirFilterListCtrl *result; | |
26955 | PyObject * obj0 = 0 ; | |
26956 | char *kwnames[] = { | |
26957 | (char *) "self", NULL | |
26958 | }; | |
26959 | ||
26960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
26961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26962 | { | |
26963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26964 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
26965 | ||
26966 | wxPyEndAllowThreads(__tstate); | |
26967 | if (PyErr_Occurred()) SWIG_fail; | |
26968 | } | |
26969 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
26970 | return resultobj; | |
26971 | fail: | |
26972 | return NULL; | |
26973 | } | |
26974 | ||
26975 | ||
26976 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26977 | PyObject *resultobj; | |
26978 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26979 | wxTreeItemId arg2 ; | |
26980 | wxString *arg3 = 0 ; | |
26981 | bool *arg4 = 0 ; | |
26982 | wxTreeItemId result; | |
26983 | wxTreeItemId *argp2 ; | |
e811c8ce | 26984 | bool temp3 = False ; |
d14a1e28 RD |
26985 | bool temp4 ; |
26986 | PyObject * obj0 = 0 ; | |
26987 | PyObject * obj1 = 0 ; | |
26988 | PyObject * obj2 = 0 ; | |
26989 | char *kwnames[] = { | |
26990 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
26991 | }; | |
26992 | ||
26993 | arg4 = &temp4; | |
26994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26996 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
26997 | arg2 = *argp2; | |
26998 | { | |
26999 | arg3 = wxString_in_helper(obj2); | |
27000 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27001 | temp3 = True; |
d14a1e28 RD |
27002 | } |
27003 | { | |
27004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27005 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
27006 | ||
27007 | wxPyEndAllowThreads(__tstate); | |
27008 | if (PyErr_Occurred()) SWIG_fail; | |
27009 | } | |
27010 | { | |
27011 | wxTreeItemId * resultptr; | |
27012 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27013 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
27014 | } | |
27015 | { | |
27016 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
27017 | resultobj = t_output_helper(resultobj,o); | |
27018 | } | |
27019 | { | |
27020 | if (temp3) | |
27021 | delete arg3; | |
27022 | } | |
27023 | return resultobj; | |
27024 | fail: | |
27025 | { | |
27026 | if (temp3) | |
27027 | delete arg3; | |
27028 | } | |
27029 | return NULL; | |
27030 | } | |
27031 | ||
27032 | ||
27033 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27034 | PyObject *resultobj; | |
27035 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27036 | PyObject * obj0 = 0 ; | |
27037 | char *kwnames[] = { | |
27038 | (char *) "self", NULL | |
27039 | }; | |
27040 | ||
27041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
27042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27043 | { | |
27044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27045 | (arg1)->DoResize(); | |
27046 | ||
27047 | wxPyEndAllowThreads(__tstate); | |
27048 | if (PyErr_Occurred()) SWIG_fail; | |
27049 | } | |
27050 | Py_INCREF(Py_None); resultobj = Py_None; | |
27051 | return resultobj; | |
27052 | fail: | |
27053 | return NULL; | |
27054 | } | |
27055 | ||
27056 | ||
27057 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27058 | PyObject *resultobj; | |
27059 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27060 | PyObject * obj0 = 0 ; | |
27061 | char *kwnames[] = { | |
27062 | (char *) "self", NULL | |
27063 | }; | |
27064 | ||
27065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
27066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27067 | { | |
27068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27069 | (arg1)->ReCreateTree(); | |
27070 | ||
27071 | wxPyEndAllowThreads(__tstate); | |
27072 | if (PyErr_Occurred()) SWIG_fail; | |
27073 | } | |
27074 | Py_INCREF(Py_None); resultobj = Py_None; | |
27075 | return resultobj; | |
27076 | fail: | |
27077 | return NULL; | |
27078 | } | |
27079 | ||
27080 | ||
27081 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
27082 | PyObject *obj; | |
27083 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27084 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
27085 | Py_INCREF(obj); | |
27086 | return Py_BuildValue((char *)""); | |
27087 | } | |
27088 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27089 | PyObject *resultobj; | |
27090 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 27091 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
27092 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27093 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27094 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27095 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27096 | long arg5 = (long) 0 ; | |
27097 | wxDirFilterListCtrl *result; | |
27098 | wxPoint temp3 ; | |
27099 | wxSize temp4 ; | |
27100 | PyObject * obj0 = 0 ; | |
994141e6 | 27101 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27102 | PyObject * obj2 = 0 ; |
27103 | PyObject * obj3 = 0 ; | |
994141e6 | 27104 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
27105 | char *kwnames[] = { |
27106 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
27107 | }; | |
27108 | ||
994141e6 | 27109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
27111 | if (obj1) { |
27112 | { | |
27113 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
27114 | if (PyErr_Occurred()) SWIG_fail; | |
27115 | } | |
27116 | } | |
d14a1e28 RD |
27117 | if (obj2) { |
27118 | { | |
27119 | arg3 = &temp3; | |
27120 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27121 | } | |
27122 | } | |
27123 | if (obj3) { | |
27124 | { | |
27125 | arg4 = &temp4; | |
27126 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27127 | } | |
27128 | } | |
994141e6 RD |
27129 | if (obj4) { |
27130 | { | |
27131 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
27132 | if (PyErr_Occurred()) SWIG_fail; | |
27133 | } | |
27134 | } | |
d14a1e28 RD |
27135 | { |
27136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27137 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
27138 | ||
27139 | wxPyEndAllowThreads(__tstate); | |
27140 | if (PyErr_Occurred()) SWIG_fail; | |
27141 | } | |
27142 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
27143 | return resultobj; | |
27144 | fail: | |
27145 | return NULL; | |
27146 | } | |
27147 | ||
27148 | ||
27149 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27150 | PyObject *resultobj; | |
27151 | wxDirFilterListCtrl *result; | |
27152 | char *kwnames[] = { | |
27153 | NULL | |
27154 | }; | |
27155 | ||
27156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
27157 | { | |
27158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27159 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
27160 | ||
27161 | wxPyEndAllowThreads(__tstate); | |
27162 | if (PyErr_Occurred()) SWIG_fail; | |
27163 | } | |
27164 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
27165 | return resultobj; | |
27166 | fail: | |
27167 | return NULL; | |
27168 | } | |
27169 | ||
27170 | ||
27171 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27172 | PyObject *resultobj; | |
27173 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
27174 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 27175 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
27176 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
27177 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27178 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27179 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27180 | long arg6 = (long) 0 ; | |
27181 | bool result; | |
27182 | wxPoint temp4 ; | |
27183 | wxSize temp5 ; | |
27184 | PyObject * obj0 = 0 ; | |
27185 | PyObject * obj1 = 0 ; | |
994141e6 | 27186 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27187 | PyObject * obj3 = 0 ; |
27188 | PyObject * obj4 = 0 ; | |
994141e6 | 27189 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
27190 | char *kwnames[] = { |
27191 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
27192 | }; | |
27193 | ||
994141e6 | 27194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
27195 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
27196 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
27197 | if (obj2) { |
27198 | { | |
27199 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
27200 | if (PyErr_Occurred()) SWIG_fail; | |
27201 | } | |
27202 | } | |
d14a1e28 RD |
27203 | if (obj3) { |
27204 | { | |
27205 | arg4 = &temp4; | |
27206 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27207 | } | |
27208 | } | |
27209 | if (obj4) { | |
27210 | { | |
27211 | arg5 = &temp5; | |
27212 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27213 | } | |
27214 | } | |
994141e6 RD |
27215 | if (obj5) { |
27216 | { | |
27217 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
27218 | if (PyErr_Occurred()) SWIG_fail; | |
27219 | } | |
27220 | } | |
d14a1e28 RD |
27221 | { |
27222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27223 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
27224 | ||
27225 | wxPyEndAllowThreads(__tstate); | |
27226 | if (PyErr_Occurred()) SWIG_fail; | |
27227 | } | |
4d5c3d91 | 27228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27229 | return resultobj; |
27230 | fail: | |
27231 | return NULL; | |
27232 | } | |
27233 | ||
27234 | ||
27235 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27236 | PyObject *resultobj; | |
27237 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
27238 | wxString *arg2 = 0 ; | |
27239 | int arg3 ; | |
e811c8ce | 27240 | bool temp2 = False ; |
d14a1e28 RD |
27241 | PyObject * obj0 = 0 ; |
27242 | PyObject * obj1 = 0 ; | |
994141e6 | 27243 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27244 | char *kwnames[] = { |
27245 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
27246 | }; | |
27247 | ||
994141e6 | 27248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
27249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
27250 | { | |
27251 | arg2 = wxString_in_helper(obj1); | |
27252 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27253 | temp2 = True; |
d14a1e28 | 27254 | } |
994141e6 RD |
27255 | { |
27256 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27257 | if (PyErr_Occurred()) SWIG_fail; | |
27258 | } | |
d14a1e28 RD |
27259 | { |
27260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27261 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
27262 | ||
27263 | wxPyEndAllowThreads(__tstate); | |
27264 | if (PyErr_Occurred()) SWIG_fail; | |
27265 | } | |
27266 | Py_INCREF(Py_None); resultobj = Py_None; | |
27267 | { | |
27268 | if (temp2) | |
27269 | delete arg2; | |
27270 | } | |
27271 | return resultobj; | |
27272 | fail: | |
27273 | { | |
27274 | if (temp2) | |
27275 | delete arg2; | |
27276 | } | |
27277 | return NULL; | |
27278 | } | |
27279 | ||
27280 | ||
27281 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
27282 | PyObject *obj; | |
27283 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27284 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
27285 | Py_INCREF(obj); | |
27286 | return Py_BuildValue((char *)""); | |
27287 | } | |
27288 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27289 | PyObject *resultobj; | |
27290 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 27291 | int arg2 ; |
d14a1e28 RD |
27292 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27293 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27294 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27295 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27296 | long arg5 = (long) 0 ; | |
27297 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
27298 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
27299 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
27300 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27301 | wxPyControl *result; | |
27302 | wxPoint temp3 ; | |
27303 | wxSize temp4 ; | |
e811c8ce | 27304 | bool temp7 = False ; |
d14a1e28 | 27305 | PyObject * obj0 = 0 ; |
994141e6 | 27306 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27307 | PyObject * obj2 = 0 ; |
27308 | PyObject * obj3 = 0 ; | |
994141e6 | 27309 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
27310 | PyObject * obj5 = 0 ; |
27311 | PyObject * obj6 = 0 ; | |
27312 | char *kwnames[] = { | |
27313 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
27314 | }; | |
27315 | ||
994141e6 | 27316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 27317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
27318 | { |
27319 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
27320 | if (PyErr_Occurred()) SWIG_fail; | |
27321 | } | |
d14a1e28 RD |
27322 | if (obj2) { |
27323 | { | |
27324 | arg3 = &temp3; | |
27325 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27326 | } | |
27327 | } | |
27328 | if (obj3) { | |
27329 | { | |
27330 | arg4 = &temp4; | |
27331 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27332 | } | |
27333 | } | |
994141e6 RD |
27334 | if (obj4) { |
27335 | { | |
27336 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
27337 | if (PyErr_Occurred()) SWIG_fail; | |
27338 | } | |
27339 | } | |
d14a1e28 RD |
27340 | if (obj5) { |
27341 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27342 | if (arg6 == NULL) { | |
27343 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
27344 | } | |
27345 | } | |
27346 | if (obj6) { | |
27347 | { | |
27348 | arg7 = wxString_in_helper(obj6); | |
27349 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 27350 | temp7 = True; |
d14a1e28 RD |
27351 | } |
27352 | } | |
27353 | { | |
27354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27355 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
27356 | ||
27357 | wxPyEndAllowThreads(__tstate); | |
27358 | if (PyErr_Occurred()) SWIG_fail; | |
27359 | } | |
27360 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControl, 1); | |
27361 | { | |
27362 | if (temp7) | |
27363 | delete arg7; | |
27364 | } | |
27365 | return resultobj; | |
27366 | fail: | |
27367 | { | |
27368 | if (temp7) | |
27369 | delete arg7; | |
27370 | } | |
27371 | return NULL; | |
27372 | } | |
27373 | ||
27374 | ||
27375 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27376 | PyObject *resultobj; | |
27377 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27378 | PyObject *arg2 = (PyObject *) 0 ; | |
27379 | PyObject *arg3 = (PyObject *) 0 ; | |
27380 | PyObject * obj0 = 0 ; | |
27381 | PyObject * obj1 = 0 ; | |
27382 | PyObject * obj2 = 0 ; | |
27383 | char *kwnames[] = { | |
27384 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27385 | }; | |
27386 | ||
27387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27389 | arg2 = obj1; | |
27390 | arg3 = obj2; | |
27391 | { | |
27392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27393 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27394 | ||
27395 | wxPyEndAllowThreads(__tstate); | |
27396 | if (PyErr_Occurred()) SWIG_fail; | |
27397 | } | |
27398 | Py_INCREF(Py_None); resultobj = Py_None; | |
27399 | return resultobj; | |
27400 | fail: | |
27401 | return NULL; | |
27402 | } | |
27403 | ||
27404 | ||
27405 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27406 | PyObject *resultobj; | |
27407 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27408 | int arg2 ; | |
27409 | int arg3 ; | |
27410 | int arg4 ; | |
27411 | int arg5 ; | |
27412 | PyObject * obj0 = 0 ; | |
994141e6 RD |
27413 | PyObject * obj1 = 0 ; |
27414 | PyObject * obj2 = 0 ; | |
27415 | PyObject * obj3 = 0 ; | |
27416 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27417 | char *kwnames[] = { |
27418 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
27419 | }; | |
27420 | ||
994141e6 | 27421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
27423 | { |
27424 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27425 | if (PyErr_Occurred()) SWIG_fail; | |
27426 | } | |
27427 | { | |
27428 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27429 | if (PyErr_Occurred()) SWIG_fail; | |
27430 | } | |
27431 | { | |
27432 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
27433 | if (PyErr_Occurred()) SWIG_fail; | |
27434 | } | |
27435 | { | |
27436 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
27437 | if (PyErr_Occurred()) SWIG_fail; | |
27438 | } | |
d14a1e28 RD |
27439 | { |
27440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27441 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
27442 | ||
27443 | wxPyEndAllowThreads(__tstate); | |
27444 | if (PyErr_Occurred()) SWIG_fail; | |
27445 | } | |
27446 | Py_INCREF(Py_None); resultobj = Py_None; | |
27447 | return resultobj; | |
27448 | fail: | |
27449 | return NULL; | |
27450 | } | |
27451 | ||
27452 | ||
27453 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27454 | PyObject *resultobj; | |
27455 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27456 | int arg2 ; | |
27457 | int arg3 ; | |
27458 | int arg4 ; | |
27459 | int arg5 ; | |
27460 | int arg6 = (int) wxSIZE_AUTO ; | |
27461 | PyObject * obj0 = 0 ; | |
994141e6 RD |
27462 | PyObject * obj1 = 0 ; |
27463 | PyObject * obj2 = 0 ; | |
27464 | PyObject * obj3 = 0 ; | |
27465 | PyObject * obj4 = 0 ; | |
27466 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
27467 | char *kwnames[] = { |
27468 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
27469 | }; | |
27470 | ||
994141e6 | 27471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 27472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
27473 | { |
27474 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27475 | if (PyErr_Occurred()) SWIG_fail; | |
27476 | } | |
27477 | { | |
27478 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27479 | if (PyErr_Occurred()) SWIG_fail; | |
27480 | } | |
27481 | { | |
27482 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
27483 | if (PyErr_Occurred()) SWIG_fail; | |
27484 | } | |
27485 | { | |
27486 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
27487 | if (PyErr_Occurred()) SWIG_fail; | |
27488 | } | |
27489 | if (obj5) { | |
27490 | { | |
27491 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
27492 | if (PyErr_Occurred()) SWIG_fail; | |
27493 | } | |
27494 | } | |
d14a1e28 RD |
27495 | { |
27496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27497 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
27498 | ||
27499 | wxPyEndAllowThreads(__tstate); | |
27500 | if (PyErr_Occurred()) SWIG_fail; | |
27501 | } | |
27502 | Py_INCREF(Py_None); resultobj = Py_None; | |
27503 | return resultobj; | |
27504 | fail: | |
27505 | return NULL; | |
27506 | } | |
27507 | ||
27508 | ||
27509 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27510 | PyObject *resultobj; | |
27511 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27512 | int arg2 ; | |
27513 | int arg3 ; | |
27514 | PyObject * obj0 = 0 ; | |
994141e6 RD |
27515 | PyObject * obj1 = 0 ; |
27516 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27517 | char *kwnames[] = { |
27518 | (char *) "self",(char *) "width",(char *) "height", NULL | |
27519 | }; | |
27520 | ||
994141e6 | 27521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 27522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
27523 | { |
27524 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27525 | if (PyErr_Occurred()) SWIG_fail; | |
27526 | } | |
27527 | { | |
27528 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27529 | if (PyErr_Occurred()) SWIG_fail; | |
27530 | } | |
d14a1e28 RD |
27531 | { |
27532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27533 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
27534 | ||
27535 | wxPyEndAllowThreads(__tstate); | |
27536 | if (PyErr_Occurred()) SWIG_fail; | |
27537 | } | |
27538 | Py_INCREF(Py_None); resultobj = Py_None; | |
27539 | return resultobj; | |
27540 | fail: | |
27541 | return NULL; | |
27542 | } | |
27543 | ||
27544 | ||
27545 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27546 | PyObject *resultobj; | |
27547 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27548 | int arg2 ; | |
27549 | int arg3 ; | |
27550 | PyObject * obj0 = 0 ; | |
994141e6 RD |
27551 | PyObject * obj1 = 0 ; |
27552 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27553 | char *kwnames[] = { |
27554 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27555 | }; | |
27556 | ||
994141e6 | 27557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 27558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
27559 | { |
27560 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27561 | if (PyErr_Occurred()) SWIG_fail; | |
27562 | } | |
27563 | { | |
27564 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27565 | if (PyErr_Occurred()) SWIG_fail; | |
27566 | } | |
d14a1e28 RD |
27567 | { |
27568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27569 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
27570 | ||
27571 | wxPyEndAllowThreads(__tstate); | |
27572 | if (PyErr_Occurred()) SWIG_fail; | |
27573 | } | |
27574 | Py_INCREF(Py_None); resultobj = Py_None; | |
27575 | return resultobj; | |
27576 | fail: | |
27577 | return NULL; | |
27578 | } | |
27579 | ||
27580 | ||
27581 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27582 | PyObject *resultobj; | |
27583 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27584 | int *arg2 = (int *) 0 ; | |
27585 | int *arg3 = (int *) 0 ; | |
27586 | int temp2 ; | |
27587 | int temp3 ; | |
27588 | PyObject * obj0 = 0 ; | |
27589 | char *kwnames[] = { | |
27590 | (char *) "self", NULL | |
27591 | }; | |
27592 | ||
27593 | arg2 = &temp2; | |
27594 | arg3 = &temp3; | |
27595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
27596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27597 | { | |
27598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27599 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
27600 | ||
27601 | wxPyEndAllowThreads(__tstate); | |
27602 | if (PyErr_Occurred()) SWIG_fail; | |
27603 | } | |
27604 | Py_INCREF(Py_None); resultobj = Py_None; | |
27605 | { | |
27606 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27607 | resultobj = t_output_helper(resultobj,o); | |
27608 | } | |
27609 | { | |
27610 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27611 | resultobj = t_output_helper(resultobj,o); | |
27612 | } | |
27613 | return resultobj; | |
27614 | fail: | |
27615 | return NULL; | |
27616 | } | |
27617 | ||
27618 | ||
27619 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27620 | PyObject *resultobj; | |
27621 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27622 | int *arg2 = (int *) 0 ; | |
27623 | int *arg3 = (int *) 0 ; | |
27624 | int temp2 ; | |
27625 | int temp3 ; | |
27626 | PyObject * obj0 = 0 ; | |
27627 | char *kwnames[] = { | |
27628 | (char *) "self", NULL | |
27629 | }; | |
27630 | ||
27631 | arg2 = &temp2; | |
27632 | arg3 = &temp3; | |
27633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
27634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27635 | { | |
27636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27637 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
27638 | ||
27639 | wxPyEndAllowThreads(__tstate); | |
27640 | if (PyErr_Occurred()) SWIG_fail; | |
27641 | } | |
27642 | Py_INCREF(Py_None); resultobj = Py_None; | |
27643 | { | |
27644 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27645 | resultobj = t_output_helper(resultobj,o); | |
27646 | } | |
27647 | { | |
27648 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27649 | resultobj = t_output_helper(resultobj,o); | |
27650 | } | |
27651 | return resultobj; | |
27652 | fail: | |
27653 | return NULL; | |
27654 | } | |
27655 | ||
27656 | ||
27657 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27658 | PyObject *resultobj; | |
27659 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27660 | int *arg2 = (int *) 0 ; | |
27661 | int *arg3 = (int *) 0 ; | |
27662 | int temp2 ; | |
27663 | int temp3 ; | |
27664 | PyObject * obj0 = 0 ; | |
27665 | char *kwnames[] = { | |
27666 | (char *) "self", NULL | |
27667 | }; | |
27668 | ||
27669 | arg2 = &temp2; | |
27670 | arg3 = &temp3; | |
27671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
27672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27673 | { | |
27674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27675 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
27676 | ||
27677 | wxPyEndAllowThreads(__tstate); | |
27678 | if (PyErr_Occurred()) SWIG_fail; | |
27679 | } | |
27680 | Py_INCREF(Py_None); resultobj = Py_None; | |
27681 | { | |
27682 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27683 | resultobj = t_output_helper(resultobj,o); | |
27684 | } | |
27685 | { | |
27686 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27687 | resultobj = t_output_helper(resultobj,o); | |
27688 | } | |
27689 | return resultobj; | |
27690 | fail: | |
27691 | return NULL; | |
27692 | } | |
27693 | ||
27694 | ||
27695 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27696 | PyObject *resultobj; | |
27697 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27698 | wxSize result; | |
27699 | PyObject * obj0 = 0 ; | |
27700 | char *kwnames[] = { | |
27701 | (char *) "self", NULL | |
27702 | }; | |
27703 | ||
27704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
27705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27706 | { | |
27707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27708 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
27709 | ||
27710 | wxPyEndAllowThreads(__tstate); | |
27711 | if (PyErr_Occurred()) SWIG_fail; | |
27712 | } | |
27713 | { | |
27714 | wxSize * resultptr; | |
27715 | resultptr = new wxSize((wxSize &) result); | |
27716 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27717 | } | |
27718 | return resultobj; | |
27719 | fail: | |
27720 | return NULL; | |
27721 | } | |
27722 | ||
27723 | ||
27724 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27725 | PyObject *resultobj; | |
27726 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27727 | wxSize result; | |
27728 | PyObject * obj0 = 0 ; | |
27729 | char *kwnames[] = { | |
27730 | (char *) "self", NULL | |
27731 | }; | |
27732 | ||
27733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
27734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27735 | { | |
27736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27737 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
27738 | ||
27739 | wxPyEndAllowThreads(__tstate); | |
27740 | if (PyErr_Occurred()) SWIG_fail; | |
27741 | } | |
27742 | { | |
27743 | wxSize * resultptr; | |
27744 | resultptr = new wxSize((wxSize &) result); | |
27745 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27746 | } | |
27747 | return resultobj; | |
27748 | fail: | |
27749 | return NULL; | |
27750 | } | |
27751 | ||
27752 | ||
27753 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27754 | PyObject *resultobj; | |
27755 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27756 | PyObject * obj0 = 0 ; | |
27757 | char *kwnames[] = { | |
27758 | (char *) "self", NULL | |
27759 | }; | |
27760 | ||
27761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
27762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27763 | { | |
27764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27765 | (arg1)->base_InitDialog(); | |
27766 | ||
27767 | wxPyEndAllowThreads(__tstate); | |
27768 | if (PyErr_Occurred()) SWIG_fail; | |
27769 | } | |
27770 | Py_INCREF(Py_None); resultobj = Py_None; | |
27771 | return resultobj; | |
27772 | fail: | |
27773 | return NULL; | |
27774 | } | |
27775 | ||
27776 | ||
27777 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27778 | PyObject *resultobj; | |
27779 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27780 | bool result; | |
27781 | PyObject * obj0 = 0 ; | |
27782 | char *kwnames[] = { | |
27783 | (char *) "self", NULL | |
27784 | }; | |
27785 | ||
27786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
27787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27788 | { | |
27789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27790 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
27791 | ||
27792 | wxPyEndAllowThreads(__tstate); | |
27793 | if (PyErr_Occurred()) SWIG_fail; | |
27794 | } | |
4d5c3d91 | 27795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27796 | return resultobj; |
27797 | fail: | |
27798 | return NULL; | |
27799 | } | |
27800 | ||
27801 | ||
27802 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27803 | PyObject *resultobj; | |
27804 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27805 | bool result; | |
27806 | PyObject * obj0 = 0 ; | |
27807 | char *kwnames[] = { | |
27808 | (char *) "self", NULL | |
27809 | }; | |
27810 | ||
27811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
27812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27813 | { | |
27814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27815 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
27816 | ||
27817 | wxPyEndAllowThreads(__tstate); | |
27818 | if (PyErr_Occurred()) SWIG_fail; | |
27819 | } | |
4d5c3d91 | 27820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27821 | return resultobj; |
27822 | fail: | |
27823 | return NULL; | |
27824 | } | |
27825 | ||
27826 | ||
27827 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27828 | PyObject *resultobj; | |
27829 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27830 | bool result; | |
27831 | PyObject * obj0 = 0 ; | |
27832 | char *kwnames[] = { | |
27833 | (char *) "self", NULL | |
27834 | }; | |
27835 | ||
27836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
27837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27838 | { | |
27839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27840 | result = (bool)(arg1)->base_Validate(); | |
27841 | ||
27842 | wxPyEndAllowThreads(__tstate); | |
27843 | if (PyErr_Occurred()) SWIG_fail; | |
27844 | } | |
4d5c3d91 | 27845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27846 | return resultobj; |
27847 | fail: | |
27848 | return NULL; | |
27849 | } | |
27850 | ||
27851 | ||
27852 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27853 | PyObject *resultobj; | |
27854 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27855 | bool result; | |
27856 | PyObject * obj0 = 0 ; | |
27857 | char *kwnames[] = { | |
27858 | (char *) "self", NULL | |
27859 | }; | |
27860 | ||
27861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
27862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27863 | { | |
27864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27865 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
27866 | ||
27867 | wxPyEndAllowThreads(__tstate); | |
27868 | if (PyErr_Occurred()) SWIG_fail; | |
27869 | } | |
4d5c3d91 | 27870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27871 | return resultobj; |
27872 | fail: | |
27873 | return NULL; | |
27874 | } | |
27875 | ||
27876 | ||
27877 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27878 | PyObject *resultobj; | |
27879 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27880 | bool result; | |
27881 | PyObject * obj0 = 0 ; | |
27882 | char *kwnames[] = { | |
27883 | (char *) "self", NULL | |
27884 | }; | |
27885 | ||
27886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
27887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27888 | { | |
27889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27890 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
27891 | ||
27892 | wxPyEndAllowThreads(__tstate); | |
27893 | if (PyErr_Occurred()) SWIG_fail; | |
27894 | } | |
4d5c3d91 | 27895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27896 | return resultobj; |
27897 | fail: | |
27898 | return NULL; | |
27899 | } | |
27900 | ||
27901 | ||
27902 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27903 | PyObject *resultobj; | |
27904 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27905 | wxSize result; | |
27906 | PyObject * obj0 = 0 ; | |
27907 | char *kwnames[] = { | |
27908 | (char *) "self", NULL | |
27909 | }; | |
27910 | ||
27911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
27912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27913 | { | |
27914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27915 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
27916 | ||
27917 | wxPyEndAllowThreads(__tstate); | |
27918 | if (PyErr_Occurred()) SWIG_fail; | |
27919 | } | |
27920 | { | |
27921 | wxSize * resultptr; | |
27922 | resultptr = new wxSize((wxSize &) result); | |
27923 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27924 | } | |
27925 | return resultobj; | |
27926 | fail: | |
27927 | return NULL; | |
27928 | } | |
27929 | ||
27930 | ||
27931 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27932 | PyObject *resultobj; | |
27933 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27934 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27935 | PyObject * obj0 = 0 ; | |
27936 | PyObject * obj1 = 0 ; | |
27937 | char *kwnames[] = { | |
27938 | (char *) "self",(char *) "child", NULL | |
27939 | }; | |
27940 | ||
27941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
27942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27943 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27944 | { | |
27945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27946 | (arg1)->base_AddChild(arg2); | |
27947 | ||
27948 | wxPyEndAllowThreads(__tstate); | |
27949 | if (PyErr_Occurred()) SWIG_fail; | |
27950 | } | |
27951 | Py_INCREF(Py_None); resultobj = Py_None; | |
27952 | return resultobj; | |
27953 | fail: | |
27954 | return NULL; | |
27955 | } | |
27956 | ||
27957 | ||
27958 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27959 | PyObject *resultobj; | |
27960 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27961 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27962 | PyObject * obj0 = 0 ; | |
27963 | PyObject * obj1 = 0 ; | |
27964 | char *kwnames[] = { | |
27965 | (char *) "self",(char *) "child", NULL | |
27966 | }; | |
27967 | ||
27968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
27969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27970 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27971 | { | |
27972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27973 | (arg1)->base_RemoveChild(arg2); | |
27974 | ||
27975 | wxPyEndAllowThreads(__tstate); | |
27976 | if (PyErr_Occurred()) SWIG_fail; | |
27977 | } | |
27978 | Py_INCREF(Py_None); resultobj = Py_None; | |
27979 | return resultobj; | |
27980 | fail: | |
27981 | return NULL; | |
27982 | } | |
27983 | ||
27984 | ||
27985 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
27986 | PyObject *obj; | |
27987 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27988 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
27989 | Py_INCREF(obj); | |
27990 | return Py_BuildValue((char *)""); | |
27991 | } | |
27992 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27993 | PyObject *resultobj; | |
27994 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 27995 | int arg2 = (int) 0 ; |
d14a1e28 RD |
27996 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27997 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27998 | wxHelpEvent *result; | |
27999 | wxPoint temp3 ; | |
994141e6 RD |
28000 | PyObject * obj0 = 0 ; |
28001 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
28002 | PyObject * obj2 = 0 ; |
28003 | char *kwnames[] = { | |
28004 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
28005 | }; | |
28006 | ||
994141e6 RD |
28007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
28008 | if (obj0) { | |
28009 | { | |
28010 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
28011 | if (PyErr_Occurred()) SWIG_fail; | |
28012 | } | |
28013 | } | |
28014 | if (obj1) { | |
28015 | { | |
28016 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28017 | if (PyErr_Occurred()) SWIG_fail; | |
28018 | } | |
28019 | } | |
d14a1e28 RD |
28020 | if (obj2) { |
28021 | { | |
28022 | arg3 = &temp3; | |
28023 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28024 | } | |
28025 | } | |
28026 | { | |
28027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28028 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
28029 | ||
28030 | wxPyEndAllowThreads(__tstate); | |
28031 | if (PyErr_Occurred()) SWIG_fail; | |
28032 | } | |
28033 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpEvent, 1); | |
28034 | return resultobj; | |
28035 | fail: | |
28036 | return NULL; | |
28037 | } | |
28038 | ||
28039 | ||
28040 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28041 | PyObject *resultobj; | |
28042 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28043 | wxPoint *result; | |
28044 | PyObject * obj0 = 0 ; | |
28045 | char *kwnames[] = { | |
28046 | (char *) "self", NULL | |
28047 | }; | |
28048 | ||
28049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
28050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28051 | { | |
28052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28053 | { | |
28054 | wxPoint const &_result_ref = ((wxHelpEvent const *)arg1)->GetPosition(); | |
28055 | result = (wxPoint *) &_result_ref; | |
28056 | } | |
28057 | ||
28058 | wxPyEndAllowThreads(__tstate); | |
28059 | if (PyErr_Occurred()) SWIG_fail; | |
28060 | } | |
28061 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
28062 | return resultobj; | |
28063 | fail: | |
28064 | return NULL; | |
28065 | } | |
28066 | ||
28067 | ||
28068 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28069 | PyObject *resultobj; | |
28070 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28071 | wxPoint *arg2 = 0 ; | |
28072 | wxPoint temp2 ; | |
28073 | PyObject * obj0 = 0 ; | |
28074 | PyObject * obj1 = 0 ; | |
28075 | char *kwnames[] = { | |
28076 | (char *) "self",(char *) "pos", NULL | |
28077 | }; | |
28078 | ||
28079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
28080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28081 | { | |
28082 | arg2 = &temp2; | |
28083 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28084 | } | |
28085 | { | |
28086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28087 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
28088 | ||
28089 | wxPyEndAllowThreads(__tstate); | |
28090 | if (PyErr_Occurred()) SWIG_fail; | |
28091 | } | |
28092 | Py_INCREF(Py_None); resultobj = Py_None; | |
28093 | return resultobj; | |
28094 | fail: | |
28095 | return NULL; | |
28096 | } | |
28097 | ||
28098 | ||
28099 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28100 | PyObject *resultobj; | |
28101 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28102 | wxString *result; | |
28103 | PyObject * obj0 = 0 ; | |
28104 | char *kwnames[] = { | |
28105 | (char *) "self", NULL | |
28106 | }; | |
28107 | ||
28108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
28109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28110 | { | |
28111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28112 | { | |
28113 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
28114 | result = (wxString *) &_result_ref; | |
28115 | } | |
28116 | ||
28117 | wxPyEndAllowThreads(__tstate); | |
28118 | if (PyErr_Occurred()) SWIG_fail; | |
28119 | } | |
cc6dd355 RD |
28120 | { |
28121 | #if wxUSE_UNICODE | |
28122 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28123 | #else | |
28124 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28125 | #endif | |
28126 | } | |
d14a1e28 RD |
28127 | return resultobj; |
28128 | fail: | |
28129 | return NULL; | |
28130 | } | |
28131 | ||
28132 | ||
28133 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28134 | PyObject *resultobj; | |
28135 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28136 | wxString *arg2 = 0 ; | |
e811c8ce | 28137 | bool temp2 = False ; |
d14a1e28 RD |
28138 | PyObject * obj0 = 0 ; |
28139 | PyObject * obj1 = 0 ; | |
28140 | char *kwnames[] = { | |
28141 | (char *) "self",(char *) "link", NULL | |
28142 | }; | |
28143 | ||
28144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
28145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28146 | { | |
28147 | arg2 = wxString_in_helper(obj1); | |
28148 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28149 | temp2 = True; |
d14a1e28 RD |
28150 | } |
28151 | { | |
28152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28153 | (arg1)->SetLink((wxString const &)*arg2); | |
28154 | ||
28155 | wxPyEndAllowThreads(__tstate); | |
28156 | if (PyErr_Occurred()) SWIG_fail; | |
28157 | } | |
28158 | Py_INCREF(Py_None); resultobj = Py_None; | |
28159 | { | |
28160 | if (temp2) | |
28161 | delete arg2; | |
28162 | } | |
28163 | return resultobj; | |
28164 | fail: | |
28165 | { | |
28166 | if (temp2) | |
28167 | delete arg2; | |
28168 | } | |
28169 | return NULL; | |
28170 | } | |
28171 | ||
28172 | ||
28173 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28174 | PyObject *resultobj; | |
28175 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28176 | wxString *result; | |
28177 | PyObject * obj0 = 0 ; | |
28178 | char *kwnames[] = { | |
28179 | (char *) "self", NULL | |
28180 | }; | |
28181 | ||
28182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
28183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28184 | { | |
28185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28186 | { | |
28187 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
28188 | result = (wxString *) &_result_ref; | |
28189 | } | |
28190 | ||
28191 | wxPyEndAllowThreads(__tstate); | |
28192 | if (PyErr_Occurred()) SWIG_fail; | |
28193 | } | |
cc6dd355 RD |
28194 | { |
28195 | #if wxUSE_UNICODE | |
28196 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28197 | #else | |
28198 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28199 | #endif | |
28200 | } | |
d14a1e28 RD |
28201 | return resultobj; |
28202 | fail: | |
28203 | return NULL; | |
28204 | } | |
28205 | ||
28206 | ||
28207 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28208 | PyObject *resultobj; | |
28209 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28210 | wxString *arg2 = 0 ; | |
e811c8ce | 28211 | bool temp2 = False ; |
d14a1e28 RD |
28212 | PyObject * obj0 = 0 ; |
28213 | PyObject * obj1 = 0 ; | |
28214 | char *kwnames[] = { | |
28215 | (char *) "self",(char *) "target", NULL | |
28216 | }; | |
28217 | ||
28218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
28219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28220 | { | |
28221 | arg2 = wxString_in_helper(obj1); | |
28222 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28223 | temp2 = True; |
d14a1e28 RD |
28224 | } |
28225 | { | |
28226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28227 | (arg1)->SetTarget((wxString const &)*arg2); | |
28228 | ||
28229 | wxPyEndAllowThreads(__tstate); | |
28230 | if (PyErr_Occurred()) SWIG_fail; | |
28231 | } | |
28232 | Py_INCREF(Py_None); resultobj = Py_None; | |
28233 | { | |
28234 | if (temp2) | |
28235 | delete arg2; | |
28236 | } | |
28237 | return resultobj; | |
28238 | fail: | |
28239 | { | |
28240 | if (temp2) | |
28241 | delete arg2; | |
28242 | } | |
28243 | return NULL; | |
28244 | } | |
28245 | ||
28246 | ||
28247 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
28248 | PyObject *obj; | |
28249 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28250 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
28251 | Py_INCREF(obj); | |
28252 | return Py_BuildValue((char *)""); | |
28253 | } | |
28254 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28255 | PyObject *resultobj; | |
28256 | wxWindow *arg1 = (wxWindow *) NULL ; | |
e811c8ce | 28257 | bool arg2 = (bool) True ; |
d14a1e28 RD |
28258 | wxContextHelp *result; |
28259 | PyObject * obj0 = 0 ; | |
28260 | PyObject * obj1 = 0 ; | |
28261 | char *kwnames[] = { | |
28262 | (char *) "window",(char *) "doNow", NULL | |
28263 | }; | |
28264 | ||
28265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
28266 | if (obj0) { | |
28267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28268 | } | |
28269 | if (obj1) { | |
a41e16b6 | 28270 | { |
994141e6 | 28271 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
28272 | if (PyErr_Occurred()) SWIG_fail; |
28273 | } | |
d14a1e28 RD |
28274 | } |
28275 | { | |
28276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28277 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
28278 | ||
28279 | wxPyEndAllowThreads(__tstate); | |
28280 | if (PyErr_Occurred()) SWIG_fail; | |
28281 | } | |
28282 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelp, 1); | |
28283 | return resultobj; | |
28284 | fail: | |
28285 | return NULL; | |
28286 | } | |
28287 | ||
28288 | ||
28289 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28290 | PyObject *resultobj; | |
28291 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28292 | PyObject * obj0 = 0 ; | |
28293 | char *kwnames[] = { | |
28294 | (char *) "self", NULL | |
28295 | }; | |
28296 | ||
28297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
28298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28299 | { | |
28300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28301 | delete arg1; | |
28302 | ||
28303 | wxPyEndAllowThreads(__tstate); | |
28304 | if (PyErr_Occurred()) SWIG_fail; | |
28305 | } | |
28306 | Py_INCREF(Py_None); resultobj = Py_None; | |
28307 | return resultobj; | |
28308 | fail: | |
28309 | return NULL; | |
28310 | } | |
28311 | ||
28312 | ||
28313 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28314 | PyObject *resultobj; | |
28315 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28316 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28317 | bool result; | |
28318 | PyObject * obj0 = 0 ; | |
28319 | PyObject * obj1 = 0 ; | |
28320 | char *kwnames[] = { | |
28321 | (char *) "self",(char *) "window", NULL | |
28322 | }; | |
28323 | ||
28324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
28325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28326 | if (obj1) { | |
28327 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28328 | } | |
28329 | { | |
28330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28331 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
28332 | ||
28333 | wxPyEndAllowThreads(__tstate); | |
28334 | if (PyErr_Occurred()) SWIG_fail; | |
28335 | } | |
4d5c3d91 | 28336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28337 | return resultobj; |
28338 | fail: | |
28339 | return NULL; | |
28340 | } | |
28341 | ||
28342 | ||
28343 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28344 | PyObject *resultobj; | |
28345 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28346 | bool result; | |
28347 | PyObject * obj0 = 0 ; | |
28348 | char *kwnames[] = { | |
28349 | (char *) "self", NULL | |
28350 | }; | |
28351 | ||
28352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
28353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28354 | { | |
28355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28356 | result = (bool)(arg1)->EndContextHelp(); | |
28357 | ||
28358 | wxPyEndAllowThreads(__tstate); | |
28359 | if (PyErr_Occurred()) SWIG_fail; | |
28360 | } | |
4d5c3d91 | 28361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28362 | return resultobj; |
28363 | fail: | |
28364 | return NULL; | |
28365 | } | |
28366 | ||
28367 | ||
28368 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
28369 | PyObject *obj; | |
28370 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28371 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
28372 | Py_INCREF(obj); | |
28373 | return Py_BuildValue((char *)""); | |
28374 | } | |
28375 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28376 | PyObject *resultobj; | |
28377 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 28378 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
28379 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28380 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28381 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28382 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28383 | long arg5 = (long) wxBU_AUTODRAW ; | |
28384 | wxContextHelpButton *result; | |
28385 | wxPoint temp3 ; | |
28386 | wxSize temp4 ; | |
28387 | PyObject * obj0 = 0 ; | |
994141e6 | 28388 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28389 | PyObject * obj2 = 0 ; |
28390 | PyObject * obj3 = 0 ; | |
994141e6 | 28391 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28392 | char *kwnames[] = { |
28393 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28394 | }; | |
28395 | ||
994141e6 | 28396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 28397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
28398 | if (obj1) { |
28399 | { | |
28400 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28401 | if (PyErr_Occurred()) SWIG_fail; | |
28402 | } | |
28403 | } | |
d14a1e28 RD |
28404 | if (obj2) { |
28405 | { | |
28406 | arg3 = &temp3; | |
28407 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28408 | } | |
28409 | } | |
28410 | if (obj3) { | |
28411 | { | |
28412 | arg4 = &temp4; | |
28413 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28414 | } | |
28415 | } | |
994141e6 RD |
28416 | if (obj4) { |
28417 | { | |
28418 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
28419 | if (PyErr_Occurred()) SWIG_fail; | |
28420 | } | |
28421 | } | |
d14a1e28 RD |
28422 | { |
28423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28424 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28425 | ||
28426 | wxPyEndAllowThreads(__tstate); | |
28427 | if (PyErr_Occurred()) SWIG_fail; | |
28428 | } | |
28429 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelpButton, 1); | |
28430 | return resultobj; | |
28431 | fail: | |
28432 | return NULL; | |
28433 | } | |
28434 | ||
28435 | ||
28436 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
28437 | PyObject *obj; | |
28438 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28439 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
28440 | Py_INCREF(obj); | |
28441 | return Py_BuildValue((char *)""); | |
28442 | } | |
28443 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28444 | PyObject *resultobj; | |
28445 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28446 | wxHelpProvider *result; | |
28447 | PyObject * obj0 = 0 ; | |
28448 | char *kwnames[] = { | |
28449 | (char *) "helpProvider", NULL | |
28450 | }; | |
28451 | ||
28452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
28453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28454 | { | |
28455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28456 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
28457 | ||
28458 | wxPyEndAllowThreads(__tstate); | |
28459 | if (PyErr_Occurred()) SWIG_fail; | |
28460 | } | |
28461 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
28462 | return resultobj; | |
28463 | fail: | |
28464 | return NULL; | |
28465 | } | |
28466 | ||
28467 | ||
28468 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28469 | PyObject *resultobj; | |
28470 | wxHelpProvider *result; | |
28471 | char *kwnames[] = { | |
28472 | NULL | |
28473 | }; | |
28474 | ||
28475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
28476 | { | |
28477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28478 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
28479 | ||
28480 | wxPyEndAllowThreads(__tstate); | |
28481 | if (PyErr_Occurred()) SWIG_fail; | |
28482 | } | |
28483 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
28484 | return resultobj; | |
28485 | fail: | |
28486 | return NULL; | |
28487 | } | |
28488 | ||
28489 | ||
28490 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28491 | PyObject *resultobj; | |
28492 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28493 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28494 | wxString result; | |
28495 | PyObject * obj0 = 0 ; | |
28496 | PyObject * obj1 = 0 ; | |
28497 | char *kwnames[] = { | |
28498 | (char *) "self",(char *) "window", NULL | |
28499 | }; | |
28500 | ||
28501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
28502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28503 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28504 | { | |
28505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28506 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
28507 | ||
28508 | wxPyEndAllowThreads(__tstate); | |
28509 | if (PyErr_Occurred()) SWIG_fail; | |
28510 | } | |
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 | } | |
28518 | return resultobj; | |
28519 | fail: | |
28520 | return NULL; | |
28521 | } | |
28522 | ||
28523 | ||
28524 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28525 | PyObject *resultobj; | |
28526 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28527 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28528 | bool result; | |
28529 | PyObject * obj0 = 0 ; | |
28530 | PyObject * obj1 = 0 ; | |
28531 | char *kwnames[] = { | |
28532 | (char *) "self",(char *) "window", NULL | |
28533 | }; | |
28534 | ||
28535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
28536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28537 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28538 | { | |
28539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28540 | result = (bool)(arg1)->ShowHelp(arg2); | |
28541 | ||
28542 | wxPyEndAllowThreads(__tstate); | |
28543 | if (PyErr_Occurred()) SWIG_fail; | |
28544 | } | |
4d5c3d91 | 28545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28546 | return resultobj; |
28547 | fail: | |
28548 | return NULL; | |
28549 | } | |
28550 | ||
28551 | ||
28552 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28553 | PyObject *resultobj; | |
28554 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28555 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28556 | wxString *arg3 = 0 ; | |
e811c8ce | 28557 | bool temp3 = False ; |
d14a1e28 RD |
28558 | PyObject * obj0 = 0 ; |
28559 | PyObject * obj1 = 0 ; | |
28560 | PyObject * obj2 = 0 ; | |
28561 | char *kwnames[] = { | |
28562 | (char *) "self",(char *) "window",(char *) "text", NULL | |
28563 | }; | |
28564 | ||
28565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28567 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28568 | { | |
28569 | arg3 = wxString_in_helper(obj2); | |
28570 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28571 | temp3 = True; |
d14a1e28 RD |
28572 | } |
28573 | { | |
28574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28575 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28576 | ||
28577 | wxPyEndAllowThreads(__tstate); | |
28578 | if (PyErr_Occurred()) SWIG_fail; | |
28579 | } | |
28580 | Py_INCREF(Py_None); resultobj = Py_None; | |
28581 | { | |
28582 | if (temp3) | |
28583 | delete arg3; | |
28584 | } | |
28585 | return resultobj; | |
28586 | fail: | |
28587 | { | |
28588 | if (temp3) | |
28589 | delete arg3; | |
28590 | } | |
28591 | return NULL; | |
28592 | } | |
28593 | ||
28594 | ||
28595 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28596 | PyObject *resultobj; | |
28597 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
e811c8ce | 28598 | int arg2 ; |
d14a1e28 | 28599 | wxString *arg3 = 0 ; |
e811c8ce | 28600 | bool temp3 = False ; |
d14a1e28 | 28601 | PyObject * obj0 = 0 ; |
994141e6 | 28602 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28603 | PyObject * obj2 = 0 ; |
28604 | char *kwnames[] = { | |
28605 | (char *) "self",(char *) "id",(char *) "text", NULL | |
28606 | }; | |
28607 | ||
994141e6 | 28608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
28610 | { |
28611 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28612 | if (PyErr_Occurred()) SWIG_fail; | |
28613 | } | |
d14a1e28 RD |
28614 | { |
28615 | arg3 = wxString_in_helper(obj2); | |
28616 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28617 | temp3 = True; |
d14a1e28 RD |
28618 | } |
28619 | { | |
28620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28621 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28622 | ||
28623 | wxPyEndAllowThreads(__tstate); | |
28624 | if (PyErr_Occurred()) SWIG_fail; | |
28625 | } | |
28626 | Py_INCREF(Py_None); resultobj = Py_None; | |
28627 | { | |
28628 | if (temp3) | |
28629 | delete arg3; | |
28630 | } | |
28631 | return resultobj; | |
28632 | fail: | |
28633 | { | |
28634 | if (temp3) | |
28635 | delete arg3; | |
28636 | } | |
28637 | return NULL; | |
28638 | } | |
28639 | ||
28640 | ||
28641 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28642 | PyObject *resultobj; | |
28643 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28644 | PyObject * obj0 = 0 ; | |
28645 | char *kwnames[] = { | |
28646 | (char *) "self", NULL | |
28647 | }; | |
28648 | ||
28649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
28650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28651 | { | |
28652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28653 | wxHelpProvider_Destroy(arg1); | |
28654 | ||
28655 | wxPyEndAllowThreads(__tstate); | |
28656 | if (PyErr_Occurred()) SWIG_fail; | |
28657 | } | |
28658 | Py_INCREF(Py_None); resultobj = Py_None; | |
28659 | return resultobj; | |
28660 | fail: | |
28661 | return NULL; | |
28662 | } | |
28663 | ||
28664 | ||
28665 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
28666 | PyObject *obj; | |
28667 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28668 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
28669 | Py_INCREF(obj); | |
28670 | return Py_BuildValue((char *)""); | |
28671 | } | |
28672 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28673 | PyObject *resultobj; | |
28674 | wxSimpleHelpProvider *result; | |
28675 | char *kwnames[] = { | |
28676 | NULL | |
28677 | }; | |
28678 | ||
28679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
28680 | { | |
28681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28682 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
28683 | ||
28684 | wxPyEndAllowThreads(__tstate); | |
28685 | if (PyErr_Occurred()) SWIG_fail; | |
28686 | } | |
28687 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
28688 | return resultobj; | |
28689 | fail: | |
28690 | return NULL; | |
28691 | } | |
28692 | ||
28693 | ||
28694 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
28695 | PyObject *obj; | |
28696 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28697 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
28698 | Py_INCREF(obj); | |
28699 | return Py_BuildValue((char *)""); | |
28700 | } | |
e811c8ce RD |
28701 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
28702 | PyObject *resultobj; | |
28703 | wxBitmap *arg1 = 0 ; | |
28704 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28705 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28706 | wxGenericDragImage *result; | |
28707 | PyObject * obj0 = 0 ; | |
28708 | PyObject * obj1 = 0 ; | |
28709 | char *kwnames[] = { | |
28710 | (char *) "image",(char *) "cursor", NULL | |
28711 | }; | |
28712 | ||
28713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
28714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28715 | if (arg1 == NULL) { | |
28716 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28717 | } | |
28718 | if (obj1) { | |
28719 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28720 | if (arg2 == NULL) { | |
28721 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28722 | } | |
28723 | } | |
28724 | { | |
28725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28726 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
28727 | ||
28728 | wxPyEndAllowThreads(__tstate); | |
28729 | if (PyErr_Occurred()) SWIG_fail; | |
28730 | } | |
28731 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28732 | return resultobj; | |
28733 | fail: | |
28734 | return NULL; | |
28735 | } | |
28736 | ||
28737 | ||
28738 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28739 | PyObject *resultobj; | |
28740 | wxIcon *arg1 = 0 ; | |
28741 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28742 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28743 | wxGenericDragImage *result; | |
28744 | PyObject * obj0 = 0 ; | |
28745 | PyObject * obj1 = 0 ; | |
28746 | char *kwnames[] = { | |
28747 | (char *) "image",(char *) "cursor", NULL | |
28748 | }; | |
28749 | ||
28750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
28751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28752 | if (arg1 == NULL) { | |
28753 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28754 | } | |
28755 | if (obj1) { | |
28756 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28757 | if (arg2 == NULL) { | |
28758 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28759 | } | |
28760 | } | |
28761 | { | |
28762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28763 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
28764 | ||
28765 | wxPyEndAllowThreads(__tstate); | |
28766 | if (PyErr_Occurred()) SWIG_fail; | |
28767 | } | |
28768 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28769 | return resultobj; | |
28770 | fail: | |
28771 | return NULL; | |
28772 | } | |
28773 | ||
28774 | ||
28775 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28776 | PyObject *resultobj; | |
28777 | wxString *arg1 = 0 ; | |
28778 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28779 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28780 | wxGenericDragImage *result; | |
28781 | bool temp1 = False ; | |
28782 | PyObject * obj0 = 0 ; | |
28783 | PyObject * obj1 = 0 ; | |
28784 | char *kwnames[] = { | |
28785 | (char *) "str",(char *) "cursor", NULL | |
28786 | }; | |
28787 | ||
28788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
28789 | { | |
28790 | arg1 = wxString_in_helper(obj0); | |
28791 | if (arg1 == NULL) SWIG_fail; | |
28792 | temp1 = True; | |
28793 | } | |
28794 | if (obj1) { | |
28795 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28796 | if (arg2 == NULL) { | |
28797 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28798 | } | |
28799 | } | |
28800 | { | |
28801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28802 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
28803 | ||
28804 | wxPyEndAllowThreads(__tstate); | |
28805 | if (PyErr_Occurred()) SWIG_fail; | |
28806 | } | |
28807 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28808 | { | |
28809 | if (temp1) | |
28810 | delete arg1; | |
28811 | } | |
28812 | return resultobj; | |
28813 | fail: | |
28814 | { | |
28815 | if (temp1) | |
28816 | delete arg1; | |
28817 | } | |
28818 | return NULL; | |
28819 | } | |
28820 | ||
28821 | ||
28822 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28823 | PyObject *resultobj; | |
28824 | wxPyTreeCtrl *arg1 = 0 ; | |
28825 | wxTreeItemId *arg2 = 0 ; | |
28826 | wxGenericDragImage *result; | |
28827 | PyObject * obj0 = 0 ; | |
28828 | PyObject * obj1 = 0 ; | |
28829 | char *kwnames[] = { | |
28830 | (char *) "treeCtrl",(char *) "id", NULL | |
28831 | }; | |
28832 | ||
28833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
28834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28835 | if (arg1 == NULL) { | |
28836 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28837 | } | |
28838 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28839 | if (arg2 == NULL) { | |
28840 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28841 | } | |
28842 | { | |
28843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28844 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
28845 | ||
28846 | wxPyEndAllowThreads(__tstate); | |
28847 | if (PyErr_Occurred()) SWIG_fail; | |
28848 | } | |
28849 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28850 | return resultobj; | |
28851 | fail: | |
28852 | return NULL; | |
28853 | } | |
28854 | ||
28855 | ||
28856 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28857 | PyObject *resultobj; | |
28858 | wxPyListCtrl *arg1 = 0 ; | |
28859 | long arg2 ; | |
28860 | wxGenericDragImage *result; | |
28861 | PyObject * obj0 = 0 ; | |
994141e6 | 28862 | PyObject * obj1 = 0 ; |
e811c8ce RD |
28863 | char *kwnames[] = { |
28864 | (char *) "listCtrl",(char *) "id", NULL | |
28865 | }; | |
28866 | ||
994141e6 | 28867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
e811c8ce RD |
28868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
28869 | if (arg1 == NULL) { | |
28870 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28871 | } | |
994141e6 RD |
28872 | { |
28873 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
28874 | if (PyErr_Occurred()) SWIG_fail; | |
28875 | } | |
e811c8ce RD |
28876 | { |
28877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28878 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
28879 | ||
28880 | wxPyEndAllowThreads(__tstate); | |
28881 | if (PyErr_Occurred()) SWIG_fail; | |
28882 | } | |
28883 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28884 | return resultobj; | |
28885 | fail: | |
28886 | return NULL; | |
28887 | } | |
28888 | ||
28889 | ||
28890 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28891 | PyObject *resultobj; | |
28892 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28893 | PyObject * obj0 = 0 ; | |
28894 | char *kwnames[] = { | |
28895 | (char *) "self", NULL | |
28896 | }; | |
28897 | ||
28898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
28899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28900 | { | |
28901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28902 | delete arg1; | |
28903 | ||
28904 | wxPyEndAllowThreads(__tstate); | |
28905 | if (PyErr_Occurred()) SWIG_fail; | |
28906 | } | |
28907 | Py_INCREF(Py_None); resultobj = Py_None; | |
28908 | return resultobj; | |
28909 | fail: | |
28910 | return NULL; | |
28911 | } | |
28912 | ||
28913 | ||
28914 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28915 | PyObject *resultobj; | |
28916 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28917 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
28918 | PyObject * obj0 = 0 ; | |
28919 | PyObject * obj1 = 0 ; | |
28920 | char *kwnames[] = { | |
28921 | (char *) "self",(char *) "bitmap", NULL | |
28922 | }; | |
28923 | ||
28924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
28925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28926 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28927 | { | |
28928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28929 | (arg1)->SetBackingBitmap(arg2); | |
28930 | ||
28931 | wxPyEndAllowThreads(__tstate); | |
28932 | if (PyErr_Occurred()) SWIG_fail; | |
28933 | } | |
28934 | Py_INCREF(Py_None); resultobj = Py_None; | |
28935 | return resultobj; | |
28936 | fail: | |
28937 | return NULL; | |
28938 | } | |
28939 | ||
28940 | ||
28941 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28942 | PyObject *resultobj; | |
28943 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28944 | wxPoint *arg2 = 0 ; | |
28945 | wxWindow *arg3 = (wxWindow *) 0 ; | |
28946 | bool arg4 = (bool) False ; | |
28947 | wxRect *arg5 = (wxRect *) NULL ; | |
28948 | bool result; | |
28949 | wxPoint temp2 ; | |
28950 | PyObject * obj0 = 0 ; | |
28951 | PyObject * obj1 = 0 ; | |
28952 | PyObject * obj2 = 0 ; | |
28953 | PyObject * obj3 = 0 ; | |
28954 | PyObject * obj4 = 0 ; | |
28955 | char *kwnames[] = { | |
28956 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
28957 | }; | |
28958 | ||
28959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28961 | { | |
28962 | arg2 = &temp2; | |
28963 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28964 | } | |
28965 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28966 | if (obj3) { | |
a41e16b6 | 28967 | { |
994141e6 | 28968 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
28969 | if (PyErr_Occurred()) SWIG_fail; |
28970 | } | |
e811c8ce RD |
28971 | } |
28972 | if (obj4) { | |
28973 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28974 | } | |
28975 | { | |
28976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28977 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
28978 | ||
28979 | wxPyEndAllowThreads(__tstate); | |
28980 | if (PyErr_Occurred()) SWIG_fail; | |
28981 | } | |
4d5c3d91 | 28982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
e811c8ce RD |
28983 | return resultobj; |
28984 | fail: | |
28985 | return NULL; | |
28986 | } | |
28987 | ||
28988 | ||
28989 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28990 | PyObject *resultobj; | |
28991 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28992 | wxPoint *arg2 = 0 ; | |
28993 | wxWindow *arg3 = (wxWindow *) 0 ; | |
28994 | wxWindow *arg4 = (wxWindow *) 0 ; | |
28995 | bool result; | |
28996 | wxPoint temp2 ; | |
28997 | PyObject * obj0 = 0 ; | |
28998 | PyObject * obj1 = 0 ; | |
28999 | PyObject * obj2 = 0 ; | |
29000 | PyObject * obj3 = 0 ; | |
29001 | char *kwnames[] = { | |
29002 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
29003 | }; | |
29004 | ||
29005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29007 | { | |
29008 | arg2 = &temp2; | |
29009 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29010 | } | |
29011 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29012 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29013 | { | |
29014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29015 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
29016 | ||
29017 | wxPyEndAllowThreads(__tstate); | |
29018 | if (PyErr_Occurred()) SWIG_fail; | |
29019 | } | |
4d5c3d91 | 29020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
e811c8ce RD |
29021 | return resultobj; |
29022 | fail: | |
29023 | return NULL; | |
29024 | } | |
29025 | ||
29026 | ||
29027 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29028 | PyObject *resultobj; | |
29029 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29030 | bool result; | |
29031 | PyObject * obj0 = 0 ; | |
29032 | char *kwnames[] = { | |
29033 | (char *) "self", NULL | |
29034 | }; | |
29035 | ||
29036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
29037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29038 | { | |
29039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29040 | result = (bool)(arg1)->EndDrag(); | |
29041 | ||
29042 | wxPyEndAllowThreads(__tstate); | |
29043 | if (PyErr_Occurred()) SWIG_fail; | |
29044 | } | |
4d5c3d91 | 29045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
e811c8ce RD |
29046 | return resultobj; |
29047 | fail: | |
29048 | return NULL; | |
29049 | } | |
29050 | ||
29051 | ||
29052 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29053 | PyObject *resultobj; | |
29054 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29055 | wxPoint *arg2 = 0 ; | |
29056 | bool result; | |
29057 | wxPoint temp2 ; | |
29058 | PyObject * obj0 = 0 ; | |
29059 | PyObject * obj1 = 0 ; | |
29060 | char *kwnames[] = { | |
29061 | (char *) "self",(char *) "pt", NULL | |
29062 | }; | |
29063 | ||
29064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
29065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29066 | { | |
29067 | arg2 = &temp2; | |
29068 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29069 | } | |
29070 | { | |
29071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29072 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
29073 | ||
29074 | wxPyEndAllowThreads(__tstate); | |
29075 | if (PyErr_Occurred()) SWIG_fail; | |
29076 | } | |
4d5c3d91 | 29077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
e811c8ce RD |
29078 | return resultobj; |
29079 | fail: | |
29080 | return NULL; | |
29081 | } | |
29082 | ||
29083 | ||
29084 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29085 | PyObject *resultobj; | |
29086 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29087 | bool result; | |
29088 | PyObject * obj0 = 0 ; | |
29089 | char *kwnames[] = { | |
29090 | (char *) "self", NULL | |
29091 | }; | |
29092 | ||
29093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
29094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29095 | { | |
29096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29097 | result = (bool)(arg1)->Show(); | |
29098 | ||
29099 | wxPyEndAllowThreads(__tstate); | |
29100 | if (PyErr_Occurred()) SWIG_fail; | |
29101 | } | |
4d5c3d91 | 29102 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
e811c8ce RD |
29103 | return resultobj; |
29104 | fail: | |
29105 | return NULL; | |
29106 | } | |
29107 | ||
29108 | ||
29109 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29110 | PyObject *resultobj; | |
29111 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29112 | bool result; | |
29113 | PyObject * obj0 = 0 ; | |
29114 | char *kwnames[] = { | |
29115 | (char *) "self", NULL | |
29116 | }; | |
29117 | ||
29118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
29119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29120 | { | |
29121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29122 | result = (bool)(arg1)->Hide(); | |
29123 | ||
29124 | wxPyEndAllowThreads(__tstate); | |
29125 | if (PyErr_Occurred()) SWIG_fail; | |
29126 | } | |
4d5c3d91 | 29127 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
e811c8ce RD |
29128 | return resultobj; |
29129 | fail: | |
29130 | return NULL; | |
29131 | } | |
29132 | ||
29133 | ||
29134 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29135 | PyObject *resultobj; | |
29136 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29137 | wxPoint *arg2 = 0 ; | |
29138 | wxRect result; | |
29139 | wxPoint temp2 ; | |
29140 | PyObject * obj0 = 0 ; | |
29141 | PyObject * obj1 = 0 ; | |
29142 | char *kwnames[] = { | |
29143 | (char *) "self",(char *) "pos", NULL | |
29144 | }; | |
29145 | ||
29146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
29147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29148 | { | |
29149 | arg2 = &temp2; | |
29150 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29151 | } | |
29152 | { | |
29153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29154 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
29155 | ||
29156 | wxPyEndAllowThreads(__tstate); | |
29157 | if (PyErr_Occurred()) SWIG_fail; | |
29158 | } | |
29159 | { | |
29160 | wxRect * resultptr; | |
29161 | resultptr = new wxRect((wxRect &) result); | |
29162 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
29163 | } | |
29164 | return resultobj; | |
29165 | fail: | |
29166 | return NULL; | |
29167 | } | |
29168 | ||
29169 | ||
29170 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29171 | PyObject *resultobj; | |
29172 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29173 | wxDC *arg2 = 0 ; | |
29174 | wxPoint *arg3 = 0 ; | |
29175 | bool result; | |
29176 | wxPoint temp3 ; | |
29177 | PyObject * obj0 = 0 ; | |
29178 | PyObject * obj1 = 0 ; | |
29179 | PyObject * obj2 = 0 ; | |
29180 | char *kwnames[] = { | |
29181 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
29182 | }; | |
29183 | ||
29184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29186 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29187 | if (arg2 == NULL) { | |
29188 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29189 | } | |
29190 | { | |
29191 | arg3 = &temp3; | |
29192 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29193 | } | |
29194 | { | |
29195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29196 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
29197 | ||
29198 | wxPyEndAllowThreads(__tstate); | |
29199 | if (PyErr_Occurred()) SWIG_fail; | |
29200 | } | |
4d5c3d91 | 29201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
e811c8ce RD |
29202 | return resultobj; |
29203 | fail: | |
29204 | return NULL; | |
29205 | } | |
29206 | ||
29207 | ||
29208 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29209 | PyObject *resultobj; | |
29210 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29211 | wxDC *arg2 = 0 ; | |
29212 | wxMemoryDC *arg3 = 0 ; | |
29213 | wxRect *arg4 = 0 ; | |
29214 | wxRect *arg5 = 0 ; | |
29215 | bool result; | |
29216 | wxRect temp4 ; | |
29217 | wxRect temp5 ; | |
29218 | PyObject * obj0 = 0 ; | |
29219 | PyObject * obj1 = 0 ; | |
29220 | PyObject * obj2 = 0 ; | |
29221 | PyObject * obj3 = 0 ; | |
29222 | PyObject * obj4 = 0 ; | |
29223 | char *kwnames[] = { | |
29224 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
29225 | }; | |
29226 | ||
29227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29229 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29230 | if (arg2 == NULL) { | |
29231 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29232 | } | |
29233 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29234 | if (arg3 == NULL) { | |
29235 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29236 | } | |
29237 | { | |
29238 | arg4 = &temp4; | |
29239 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
29240 | } | |
29241 | { | |
29242 | arg5 = &temp5; | |
29243 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
29244 | } | |
29245 | { | |
29246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29247 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
29248 | ||
29249 | wxPyEndAllowThreads(__tstate); | |
29250 | if (PyErr_Occurred()) SWIG_fail; | |
29251 | } | |
4d5c3d91 | 29252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
e811c8ce RD |
29253 | return resultobj; |
29254 | fail: | |
29255 | return NULL; | |
29256 | } | |
29257 | ||
29258 | ||
29259 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29260 | PyObject *resultobj; | |
29261 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29262 | wxPoint *arg2 = 0 ; | |
29263 | wxPoint *arg3 = 0 ; | |
29264 | bool arg4 ; | |
29265 | bool arg5 ; | |
29266 | bool result; | |
29267 | wxPoint temp2 ; | |
29268 | wxPoint temp3 ; | |
29269 | PyObject * obj0 = 0 ; | |
29270 | PyObject * obj1 = 0 ; | |
29271 | PyObject * obj2 = 0 ; | |
29272 | PyObject * obj3 = 0 ; | |
29273 | PyObject * obj4 = 0 ; | |
29274 | char *kwnames[] = { | |
29275 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
29276 | }; | |
29277 | ||
29278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29280 | { | |
29281 | arg2 = &temp2; | |
29282 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29283 | } | |
29284 | { | |
29285 | arg3 = &temp3; | |
29286 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29287 | } | |
a41e16b6 | 29288 | { |
994141e6 | 29289 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
29290 | if (PyErr_Occurred()) SWIG_fail; |
29291 | } | |
29292 | { | |
994141e6 | 29293 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
a41e16b6 RD |
29294 | if (PyErr_Occurred()) SWIG_fail; |
29295 | } | |
e811c8ce RD |
29296 | { |
29297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29298 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
29299 | ||
29300 | wxPyEndAllowThreads(__tstate); | |
29301 | if (PyErr_Occurred()) SWIG_fail; | |
29302 | } | |
4d5c3d91 | 29303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
e811c8ce RD |
29304 | return resultobj; |
29305 | fail: | |
29306 | return NULL; | |
29307 | } | |
29308 | ||
29309 | ||
29310 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
29311 | PyObject *obj; | |
29312 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29313 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
29314 | Py_INCREF(obj); | |
29315 | return Py_BuildValue((char *)""); | |
29316 | } | |
29317 | static PyMethodDef SwigMethods[] = { | |
29318 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
29319 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
29320 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
29321 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
29322 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
29323 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
29324 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
29325 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
29326 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29327 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
29328 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
29329 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
29330 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
29331 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
29332 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
29333 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
29334 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
29335 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29336 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
29337 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
29338 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
29339 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
29340 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
29341 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29342 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29343 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
29344 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29345 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
29346 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
29347 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
29348 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
29349 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
29350 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
29351 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
29352 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
29353 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
29354 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29355 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
29356 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
29357 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
29358 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
29359 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29360 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29361 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29362 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
29363 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
29364 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
29365 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29366 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29367 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
29368 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
fd3f2efe | 29369 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
29370 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
29371 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
29372 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
29373 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
29374 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
29375 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
29376 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
29377 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
29378 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29379 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29380 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29381 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29382 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29383 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
29384 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
29385 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
29386 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
29387 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
29388 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
29389 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
29390 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29391 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
29392 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
29393 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
29394 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
29395 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29396 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
29397 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
29398 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
29399 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
29400 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
29401 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
29402 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29403 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29404 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
29405 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29406 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29407 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
29408 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
29409 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
29410 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
29411 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29412 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
29413 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
29414 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
29415 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29416 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29417 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
29418 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
29419 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
29420 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29421 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
29422 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
29423 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
29424 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29425 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29426 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
c3eb6258 RD |
29427 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
29428 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29429 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
29430 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, |
29431 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
29432 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
29433 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29434 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
29435 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
29436 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
29437 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29438 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
29439 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
29440 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
994141e6 | 29441 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
29442 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, |
29443 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29444 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29445 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29446 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29447 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
29448 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29449 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29450 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
29451 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29452 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29453 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
29454 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29455 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
29456 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29457 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29458 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
29459 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29460 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29461 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29462 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29463 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
29464 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29465 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29466 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
29467 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
29468 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
29469 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
29470 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29471 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29472 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29473 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29474 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29475 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29476 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
29477 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
29478 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
29479 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
29480 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
29481 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
29482 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
29483 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29484 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29485 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
29486 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
29487 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
29488 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
29489 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
29490 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
29491 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
29492 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
29493 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
29494 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
29495 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
29496 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29497 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29498 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
29499 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
29500 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
29501 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
29502 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 | 29503 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
29504 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, |
29505 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
29506 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
29507 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
29508 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
29509 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
29510 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
29511 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
29512 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
29513 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
29514 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29515 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
29516 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29517 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
29518 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29519 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
29520 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
29521 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
29522 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
29523 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
29524 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
29525 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
29526 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
29527 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
29528 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
29529 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
29530 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
29531 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
29532 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
29533 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
29534 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29535 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29536 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29537 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
29538 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
29539 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
29540 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
29541 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
29542 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29543 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29544 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29545 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29546 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29547 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
29548 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
29549 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29550 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29551 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
29552 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29553 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29554 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29555 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29556 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29557 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
29558 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29559 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29560 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29561 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29562 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
d1e20054 RD |
29563 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
29564 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29565 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29566 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
29567 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
29568 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
29569 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29570 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29571 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29572 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29573 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29574 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
29575 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
29576 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
29577 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
29578 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
29579 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
29580 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
29581 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29582 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
29583 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
29584 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29585 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29586 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29587 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29588 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29589 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
29590 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
29591 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
29592 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
29593 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29594 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29595 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29596 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29597 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29598 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
29599 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
29600 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29601 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29602 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29603 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29604 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29605 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29606 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29607 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29608 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
29609 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
29610 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
29611 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
29612 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
29613 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29614 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
29615 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29616 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29617 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29618 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29619 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29620 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29621 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
29622 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
29623 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
29624 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29625 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29626 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29627 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29628 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29629 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29630 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29631 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29632 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29633 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29634 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
29635 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
29636 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
29637 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
29638 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
29639 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29640 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
29641 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
29642 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
29643 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29644 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29645 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29646 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29647 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
29648 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
29649 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29650 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29651 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29652 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
29653 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
29654 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29655 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29656 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
29657 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29658 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
29659 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
29660 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
29661 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29662 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29663 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
29664 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29665 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
29666 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
29667 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29668 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29669 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
29670 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
29671 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
29672 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29673 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29674 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29675 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
29676 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29677 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
29678 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29679 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
29680 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
29681 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29682 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29683 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
29684 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
29685 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
29686 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
29687 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29688 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29689 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29690 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29691 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29692 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29693 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
29694 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
29695 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
29696 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29697 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29698 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29699 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29700 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29701 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
29702 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
29703 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
29704 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
29705 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
29706 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
29707 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
3a04f143 RD |
29708 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
29709 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
29710 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
29711 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
29712 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
29713 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29714 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29715 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
29716 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
29717 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
29718 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
29719 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
29720 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
29721 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
29722 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
29723 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
29724 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
29725 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
29726 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
29727 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
29728 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29729 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29730 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29731 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29732 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
29733 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29734 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
29735 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
29736 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
29737 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29738 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
29739 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
29740 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
29741 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
29742 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
29743 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
29744 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
29745 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
29746 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
29747 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
3a04f143 | 29748 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29749 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
29750 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
29751 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29752 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29753 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
29754 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
29755 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
29756 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
29757 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29758 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29759 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29760 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29761 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29762 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
29763 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29764 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29765 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29766 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
29767 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
29768 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
29769 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
29770 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
29771 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29772 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
29773 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
29774 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29775 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
29776 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
29777 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
29778 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
29779 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
29780 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
29781 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
29782 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29783 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29784 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29785 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
29786 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29787 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29788 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
29789 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
29790 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
29791 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29792 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
29793 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
29794 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29795 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29796 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29797 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29798 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29799 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
29800 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
29801 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
29802 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
29803 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
29804 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
29805 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
29806 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
29807 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
29808 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
29809 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
29810 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
29811 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
29812 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
29813 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
29814 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
29815 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
29816 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
29817 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
29818 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
29819 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
29820 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
29821 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
29822 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
29823 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
29824 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
29825 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
29826 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
29827 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
29828 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
29829 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
29830 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
29831 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
29832 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
29833 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
29834 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29835 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
29836 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29837 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
29838 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
29839 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29840 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
29841 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
29842 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
29843 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
29844 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
29845 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
29846 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
29847 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29848 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29849 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29850 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29851 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29852 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29853 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29854 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29855 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
29856 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
29857 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
29858 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
29859 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
29860 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
29861 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
29862 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
29863 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
29864 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
29865 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29866 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29867 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29868 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29869 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
29870 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
29871 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
29872 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
29873 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
29874 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29875 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29876 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
29877 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29878 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29879 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
29880 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
29881 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
29882 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
29883 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29884 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29885 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29886 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
29887 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
29888 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
29889 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
29890 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
29891 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
29892 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
29893 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
29894 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
29895 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
29896 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29897 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
29898 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
29899 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
29900 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29901 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
29902 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
29903 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
29904 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
29905 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
29906 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
29907 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
29908 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
29909 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29910 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29911 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29912 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29913 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
29914 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
29915 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
29916 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
29917 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
29918 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
29919 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
29920 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
29921 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
29922 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
29923 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
29924 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29925 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
29926 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
29927 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
29928 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
29929 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
29930 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
29931 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
29932 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
29933 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
29934 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
29935 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
29936 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
29937 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29938 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
29939 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29940 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
29941 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
29942 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
29943 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
29944 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
29945 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
29946 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
29947 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
29948 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
29949 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
29950 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
29951 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
29952 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
29953 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29954 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29955 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
29956 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 29957 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29958 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
29959 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29960 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29961 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29962 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29963 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
29964 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
29965 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
29966 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29967 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29968 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29969 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
29970 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29971 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
29972 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29973 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
29974 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29975 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
29976 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29977 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
29978 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29979 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29980 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
29981 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29982 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
29983 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29984 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
29985 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
29986 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
29987 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29988 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29989 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
29990 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
29991 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
29992 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
29993 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29994 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
29995 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
29996 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
29997 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29998 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
29999 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
30000 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
30001 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
30002 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
30003 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
30004 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
30005 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
30006 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
30007 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
30008 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
30009 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
30010 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
30011 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
30012 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
30013 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
30014 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
30015 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
30016 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
30017 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
30018 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
30019 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
30020 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
3adfb63b | 30021 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30022 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, |
30023 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
3adfb63b | 30024 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30025 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, |
30026 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
30027 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30028 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
30029 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
30030 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30031 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
30032 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
30033 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30034 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30035 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30036 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
30037 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
30038 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
30039 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
30040 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
30041 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
30042 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
30043 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
30044 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
30045 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
30046 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
30047 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
30048 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
30049 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30050 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30051 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
30052 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
30053 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
30054 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
30055 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30056 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30057 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30058 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
30059 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
30060 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
30061 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30062 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
30063 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
30064 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
30065 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
30066 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
30067 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
30068 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30069 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
30070 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
30071 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
30072 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
30073 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
30074 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
30075 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
30076 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
30077 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
30078 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
30079 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
30080 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
30081 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
30082 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30083 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30084 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
30085 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
30086 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
30087 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
30088 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
30089 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30090 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30091 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30092 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30093 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
30094 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
30095 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
30096 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
30097 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
30098 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
30099 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
30100 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
30101 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
30102 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30103 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
30104 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
30105 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
e811c8ce RD |
30106 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
30107 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
30108 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
30109 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
30110 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
30111 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
30112 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30113 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
30114 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
30115 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
30116 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
30117 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
30118 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
30119 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
30120 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
30121 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
30122 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
30123 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
30124 | { NULL, NULL } |
30125 | }; | |
30126 | ||
30127 | ||
30128 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
30129 | ||
30130 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
30131 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30132 | } | |
30133 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
30134 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30135 | } | |
30136 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
30137 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
30138 | } | |
30139 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
30140 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
30141 | } | |
30142 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
30143 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
30144 | } | |
30145 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
30146 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
30147 | } | |
30148 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
30149 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30150 | } | |
30151 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
30152 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
30153 | } | |
30154 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
30155 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
30156 | } | |
30157 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
30158 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
30159 | } | |
30160 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
30161 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30162 | } | |
30163 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
30164 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
30165 | } | |
30166 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
30167 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
30168 | } | |
30169 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
30170 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
30171 | } | |
30172 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
30173 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
30174 | } | |
30175 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
30176 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30177 | } | |
30178 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
30179 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
30180 | } | |
30181 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
30182 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
30183 | } | |
30184 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
30185 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
30186 | } | |
30187 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
30188 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30189 | } | |
30190 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
30191 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30192 | } | |
30193 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
30194 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
30195 | } | |
30196 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
30197 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30198 | } | |
30199 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
30200 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
30201 | } | |
30202 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
30203 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30204 | } | |
30205 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
30206 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30207 | } | |
30208 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
30209 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
30210 | } | |
30211 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
30212 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
30213 | } | |
30214 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
30215 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30216 | } | |
30217 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
30218 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30219 | } | |
30220 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
30221 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
30222 | } | |
30223 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
30224 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
30225 | } | |
30226 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
30227 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
30228 | } | |
30229 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
30230 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
30231 | } | |
30232 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
30233 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
30234 | } | |
30235 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
30236 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
30237 | } | |
30238 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
30239 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
30240 | } | |
30241 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
30242 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30243 | } | |
30244 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
30245 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30246 | } | |
30247 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
30248 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30249 | } | |
30250 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
30251 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30252 | } | |
30253 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
30254 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30255 | } | |
30256 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
30257 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
30258 | } | |
30259 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
30260 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
30261 | } | |
30262 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
30263 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30264 | } | |
30265 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
30266 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
30267 | } | |
30268 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
30269 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
30270 | } | |
30271 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
30272 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30273 | } | |
30274 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
30275 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30276 | } | |
30277 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
30278 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30279 | } | |
30280 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
30281 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
30282 | } | |
30283 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
30284 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
30285 | } | |
d1e20054 RD |
30286 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
30287 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30288 | } | |
d14a1e28 RD |
30289 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
30290 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
30291 | } | |
30292 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
30293 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30294 | } | |
30295 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
30296 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
30297 | } | |
30298 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
30299 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
30300 | } | |
30301 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
30302 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
30303 | } | |
30304 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
30305 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30306 | } | |
30307 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
30308 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
30309 | } | |
30310 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
30311 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30312 | } | |
30313 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
30314 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
30315 | } | |
30316 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
30317 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
30318 | } | |
30319 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
30320 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
30321 | } | |
30322 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
30323 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
30324 | } | |
30325 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
30326 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
30327 | } | |
30328 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
30329 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
30330 | } | |
30331 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
30332 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
30333 | } | |
30334 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
30335 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
30336 | } | |
30337 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
30338 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
30339 | } | |
30340 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
30341 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30342 | } | |
30343 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
30344 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
30345 | } | |
30346 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
30347 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
30348 | } | |
30349 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
30350 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
30351 | } | |
30352 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
30353 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
30354 | } | |
30355 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
30356 | return (void *)((wxControl *) ((wxGauge *) x)); | |
30357 | } | |
30358 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
30359 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
30360 | } | |
30361 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
30362 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
30363 | } | |
30364 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
30365 | return (void *)((wxControl *) ((wxButton *) x)); | |
30366 | } | |
30367 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
30368 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
30369 | } | |
30370 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
30371 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30372 | } | |
30373 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
30374 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
30375 | } | |
30376 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
30377 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
30378 | } | |
30379 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
30380 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
30381 | } | |
30382 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
30383 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
30384 | } | |
30385 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
30386 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
30387 | } | |
30388 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
30389 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
30390 | } | |
30391 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
30392 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
30393 | } | |
30394 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
30395 | return (void *)((wxControl *) ((wxSlider *) x)); | |
30396 | } | |
30397 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
30398 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
30399 | } | |
30400 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
30401 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
30402 | } | |
30403 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
30404 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
30405 | } | |
30406 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
30407 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
30408 | } | |
30409 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
30410 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
30411 | } | |
30412 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
30413 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30414 | } | |
30415 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
30416 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30417 | } | |
30418 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
30419 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30420 | } | |
30421 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
30422 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
30423 | } | |
d1e20054 RD |
30424 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
30425 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30426 | } | |
d14a1e28 RD |
30427 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
30428 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30429 | } | |
30430 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
30431 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30432 | } | |
30433 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
30434 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
30435 | } | |
30436 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
30437 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
30438 | } | |
30439 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
30440 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
30441 | } | |
30442 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
30443 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
30444 | } | |
30445 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
30446 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30447 | } | |
30448 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
30449 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
30450 | } | |
30451 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
30452 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
30453 | } | |
30454 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
30455 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
30456 | } | |
30457 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
30458 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
30459 | } | |
30460 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
30461 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
30462 | } | |
30463 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
30464 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
30465 | } | |
30466 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
30467 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
30468 | } | |
30469 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
30470 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
30471 | } | |
30472 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
30473 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30474 | } | |
30475 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
30476 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
30477 | } | |
30478 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
30479 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
30480 | } | |
30481 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
30482 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
30483 | } | |
30484 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
30485 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
30486 | } | |
30487 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
30488 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30489 | } | |
30490 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
30491 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
30492 | } | |
30493 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
30494 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
30495 | } | |
30496 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
30497 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30498 | } | |
30499 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
30500 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
30501 | } | |
30502 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
30503 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
30504 | } | |
30505 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
30506 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
30507 | } | |
30508 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
30509 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30510 | } | |
30511 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
30512 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30513 | } | |
30514 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
30515 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30516 | } | |
30517 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
30518 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30519 | } | |
30520 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
30521 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
30522 | } | |
30523 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
30524 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30525 | } | |
30526 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
30527 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
30528 | } | |
30529 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
30530 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
30531 | } | |
30532 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
30533 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
30534 | } | |
30535 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
30536 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
30537 | } | |
30538 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
30539 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
30540 | } | |
30541 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
30542 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
30543 | } | |
30544 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
30545 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30546 | } | |
30547 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
30548 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30549 | } | |
30550 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
30551 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
30552 | } | |
30553 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
30554 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
30555 | } | |
30556 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
30557 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
30558 | } | |
30559 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
30560 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
30561 | } | |
30562 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
30563 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
30564 | } | |
30565 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
30566 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30567 | } | |
30568 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
30569 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30570 | } | |
30571 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
30572 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
30573 | } | |
30574 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
30575 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
30576 | } | |
30577 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
30578 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
30579 | } | |
30580 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
30581 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
30582 | } | |
30583 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
30584 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
30585 | } | |
30586 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
30587 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
30588 | } | |
30589 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
30590 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30591 | } | |
30592 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
30593 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30594 | } | |
30595 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
30596 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
30597 | } | |
30598 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
30599 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
30600 | } | |
30601 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
30602 | return (void *)((wxObject *) ((wxSizer *) x)); | |
30603 | } | |
30604 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
30605 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
30606 | } | |
30607 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
30608 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
30609 | } | |
30610 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
30611 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
30612 | } | |
30613 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
30614 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30615 | } | |
30616 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
30617 | return (void *)((wxObject *) ((wxEvent *) x)); | |
30618 | } | |
30619 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
30620 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30621 | } | |
30622 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
30623 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
30624 | } | |
30625 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
30626 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
30627 | } | |
30628 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
30629 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
30630 | } | |
30631 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
30632 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
30633 | } | |
30634 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
30635 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30636 | } | |
30637 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
30638 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
30639 | } | |
30640 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
30641 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
30642 | } | |
30643 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
30644 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30645 | } | |
30646 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
30647 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30648 | } | |
30649 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
30650 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30651 | } | |
30652 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
30653 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30654 | } | |
30655 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
30656 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
30657 | } | |
30658 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
30659 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
30660 | } | |
30661 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
30662 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
30663 | } | |
30664 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
30665 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
30666 | } | |
30667 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
30668 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
30669 | } | |
30670 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
30671 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
30672 | } | |
30673 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
30674 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
30675 | } | |
30676 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
30677 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
30678 | } | |
30679 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
30680 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30681 | } | |
30682 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
30683 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
30684 | } | |
30685 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
30686 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
30687 | } | |
30688 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
30689 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30690 | } | |
30691 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
30692 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
30693 | } | |
30694 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
30695 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30696 | } | |
30697 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
30698 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
30699 | } | |
30700 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
30701 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30702 | } | |
30703 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
30704 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30705 | } | |
30706 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
30707 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
30708 | } | |
30709 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
30710 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
30711 | } | |
30712 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
30713 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
30714 | } | |
30715 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
30716 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
30717 | } | |
30718 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
30719 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
30720 | } | |
30721 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
30722 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30723 | } | |
30724 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
30725 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30726 | } | |
30727 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
30728 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
30729 | } | |
30730 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
30731 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
30732 | } | |
30733 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
30734 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
30735 | } | |
30736 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
30737 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
30738 | } | |
30739 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
30740 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
30741 | } | |
30742 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
30743 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
30744 | } | |
30745 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
30746 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
30747 | } | |
30748 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
30749 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
30750 | } | |
30751 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
30752 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
30753 | } | |
30754 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
30755 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
30756 | } | |
30757 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
30758 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
30759 | } | |
30760 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
30761 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
30762 | } | |
30763 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
30764 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
30765 | } | |
30766 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
30767 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
30768 | } | |
30769 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
30770 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
30771 | } | |
30772 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
30773 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
30774 | } | |
30775 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
30776 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
30777 | } | |
30778 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
30779 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
30780 | } | |
30781 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
30782 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
30783 | } | |
30784 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
30785 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
30786 | } | |
30787 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
30788 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
30789 | } | |
30790 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
30791 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30792 | } | |
30793 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
30794 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30795 | } | |
30796 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
30797 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
30798 | } | |
d14a1e28 RD |
30799 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
30800 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
30801 | } | |
1e0c8722 RD |
30802 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
30803 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30804 | } | |
d14a1e28 RD |
30805 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
30806 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
30807 | } | |
30808 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
30809 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30810 | } | |
1e0c8722 RD |
30811 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
30812 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
30813 | } | |
d14a1e28 RD |
30814 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
30815 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
30816 | } | |
30817 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
30818 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
30819 | } | |
30820 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
30821 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
30822 | } | |
30823 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
30824 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
30825 | } | |
30826 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
30827 | return (void *)((wxObject *) ((wxListItem *) x)); | |
30828 | } | |
30829 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
30830 | return (void *)((wxObject *) ((wxImage *) x)); | |
30831 | } | |
30832 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
30833 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
30834 | } | |
30835 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
30836 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
30837 | } | |
d1e20054 RD |
30838 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
30839 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30840 | } | |
e811c8ce RD |
30841 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
30842 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
30843 | } | |
d14a1e28 RD |
30844 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
30845 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
30846 | } | |
30847 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
30848 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30849 | } | |
30850 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
30851 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30852 | } | |
30853 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
30854 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30855 | } | |
30856 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
30857 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30858 | } | |
30859 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
30860 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
30861 | } | |
30862 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
30863 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
30864 | } | |
30865 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
30866 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
30867 | } | |
30868 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
30869 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
30870 | } | |
30871 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
30872 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
30873 | } | |
30874 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
30875 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30876 | } | |
30877 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
30878 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
30879 | } | |
30880 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
30881 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
30882 | } | |
30883 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
30884 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
30885 | } | |
30886 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
30887 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
30888 | } | |
30889 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
30890 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
30891 | } | |
30892 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
30893 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30894 | } | |
30895 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
30896 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30897 | } | |
30898 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
30899 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
30900 | } | |
30901 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
30902 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
30903 | } | |
30904 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
30905 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
30906 | } | |
30907 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
30908 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
30909 | } | |
30910 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
30911 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30912 | } | |
30913 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
30914 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30915 | } | |
30916 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
30917 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
30918 | } | |
30919 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
30920 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30921 | } | |
30922 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
30923 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
30924 | } | |
30925 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
30926 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
30927 | } | |
30928 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
30929 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
30930 | } | |
30931 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
30932 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
30933 | } | |
30934 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
30935 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
30936 | } | |
30937 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
30938 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30939 | } | |
30940 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
30941 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
30942 | } | |
30943 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
30944 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
30945 | } | |
30946 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
30947 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
30948 | } | |
30949 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
30950 | return (void *)((wxWindow *) ((wxControl *) x)); | |
30951 | } | |
30952 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
30953 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
30954 | } | |
30955 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
30956 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30957 | } | |
30958 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
30959 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
30960 | } | |
30961 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
30962 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
30963 | } | |
30964 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
30965 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
30966 | } | |
30967 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
30968 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
30969 | } | |
30970 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
30971 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
30972 | } | |
30973 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
30974 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
30975 | } | |
30976 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
30977 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
30978 | } | |
30979 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
30980 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30981 | } | |
30982 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
30983 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
30984 | } | |
30985 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
30986 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
30987 | } | |
30988 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
30989 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
30990 | } | |
30991 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
30992 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30993 | } | |
30994 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
30995 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30996 | } | |
30997 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
30998 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30999 | } | |
31000 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
31001 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31002 | } | |
31003 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
31004 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31005 | } | |
31006 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
31007 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
31008 | } | |
31009 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
31010 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
31011 | } | |
31012 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
31013 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
31014 | } | |
31015 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
31016 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
31017 | } | |
31018 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
31019 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
31020 | } | |
31021 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
31022 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
31023 | } | |
31024 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
31025 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
31026 | } | |
31027 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
31028 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31029 | } | |
31030 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
31031 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31032 | } | |
31033 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
31034 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
31035 | } | |
31036 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
31037 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31038 | } | |
31039 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
31040 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31041 | } | |
31042 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
31043 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31044 | } | |
31045 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
31046 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
31047 | } | |
31048 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
31049 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31050 | } | |
31051 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
31052 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31053 | } | |
31054 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
31055 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31056 | } | |
31057 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
31058 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31059 | } | |
31060 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
31061 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31062 | } | |
31063 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
31064 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
31065 | } | |
31066 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
31067 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31068 | } | |
31069 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
31070 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31071 | } | |
d1e20054 RD |
31072 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
31073 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31074 | } | |
d14a1e28 RD |
31075 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
31076 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
31077 | } | |
31078 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
31079 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31080 | } | |
31081 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
31082 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31083 | } | |
31084 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
31085 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31086 | } | |
31087 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
31088 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
31089 | } | |
31090 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
31091 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
31092 | } | |
31093 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
31094 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
31095 | } | |
31096 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
31097 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
31098 | } | |
31099 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0},{"_p_wxTextUrlEvent"},{0}}; | |
31100 | 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}}; | |
31101 | 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 |
31102 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0},{"_p_wxCheckBox"},{0}}; |
31103 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0},{"_p_wxPyTreeCtrl"},{0}}; | |
d1e20054 | 31104 | 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 |
31105 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0},{"_p_wxGenericDirCtrl"},{0}}; |
31106 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}}; | |
31107 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0},{"_p_wxPyTreeItemData"},{0}}; | |
31108 | 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}}; | |
31109 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0},{"_p_wxDirFilterListCtrl"},{0}}; | |
31110 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0},{"_p_wxPyListCtrl"},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl},{0}}; | |
31111 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0},{"_p_wxStaticLine"},{0}}; | |
31112 | 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}}; | |
31113 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0},{"_p_wxPyControl"},{0}}; | |
31114 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0},{"_p_wxGauge"},{0}}; | |
31115 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0},{"_p_wxToolBarBase"},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase},{0}}; | |
31116 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
31117 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0},{"_p_wxToggleButton"},{0}}; | |
31118 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0},{"_p_wxRadioButton"},{0}}; | |
31119 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice},{"_p_wxChoice"},{0}}; | |
e811c8ce | 31120 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxMemoryDC"},{0}}; |
d14a1e28 | 31121 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0},{"_p_wxListItemAttr"},{0}}; |
58203fa6 | 31122 | static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0},{"_p_void"},{0}}; |
d14a1e28 RD |
31123 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
31124 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
e811c8ce | 31125 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; |
d14a1e28 RD |
31126 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0},{"_p_wxListView"},{0}}; |
31127 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
31128 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
31129 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0},{"_p_wxNotebook"},{0}}; | |
d1e20054 | 31130 | 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 |
31131 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; |
31132 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0},{"_p_wxListbook"},{0}}; | |
31133 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0},{"_p_wxStaticBitmap"},{0}}; | |
31134 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0},{"_p_wxSlider"},{0}}; | |
31135 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
31136 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}}; | |
31137 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0},{"_p_wxContextHelp"},{0}}; | |
31138 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
31139 | 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}}; | |
31140 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0},{"_p_wxListEvent"},{0}}; | |
31141 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0},{"_p_wxListBox"},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox},{0}}; | |
31142 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0},{"_p_wxCheckListBox"},{0}}; | |
31143 | 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}}; | |
31144 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0},{"_p_wxSpinButton"},{0}}; | |
31145 | 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}}; | |
31146 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0},{"_p_wxBitmapButton"},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton},{0}}; | |
31147 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
31148 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0},{"_p_wxContextHelpButton"},{0}}; | |
31149 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0},{"_p_wxRadioBox"},{0}}; | |
31150 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0},{"_p_wxScrollBar"},{0}}; | |
994141e6 | 31151 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
31152 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}}; |
31153 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0},{"_p_wxComboBox"},{0}}; | |
31154 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0},{"_p_wxHelpEvent"},{0}}; | |
31155 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0},{"_p_wxListItem"},{0}}; | |
31156 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0},{"_p_wxNotebookSizer"},{0}}; | |
d1e20054 | 31157 | static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0},{"_p_wxSpinEvent"},{0}}; |
e811c8ce | 31158 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}}; |
d14a1e28 RD |
31159 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0},{"_p_wxSpinCtrl"},{0}}; |
31160 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
31161 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0},{"_p_wxHelpProvider"},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider},{0}}; | |
31162 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0},{"_p_wxTextAttr"},{0}}; | |
31163 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0},{"_p_wxSimpleHelpProvider"},{0}}; | |
31164 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
31165 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0},{"_p_wxListbookEvent"},{0}}; | |
31166 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0},{"_p_wxNotebookEvent"},{0}}; | |
d1e20054 | 31167 | 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}}; |
e811c8ce | 31168 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; |
d14a1e28 RD |
31169 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; |
31170 | 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}}; | |
31171 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
31172 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
31173 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0},{"_p_wxTreeEvent"},{0}}; | |
31174 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
d1e20054 | 31175 | 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 |
31176 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0},{"_p_wxStaticText"},{0}}; |
31177 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems},{"_p_wxControlWithItems"},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems},{0}}; | |
31178 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0},{"_p_wxToolBarToolBase"},{0}}; | |
31179 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
31180 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}}; | |
31181 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0},{"_p_wxBookCtrlSizer"},{0}}; | |
31182 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
31183 | ||
31184 | static swig_type_info *swig_types_initial[] = { | |
31185 | _swigt__p_wxTextUrlEvent, | |
31186 | _swigt__p_wxBookCtrlEvent, | |
31187 | _swigt__p_wxSizer, | |
d14a1e28 RD |
31188 | _swigt__p_wxCheckBox, |
31189 | _swigt__p_wxPyTreeCtrl, | |
31190 | _swigt__p_wxEvent, | |
31191 | _swigt__p_wxGenericDirCtrl, | |
31192 | _swigt__p_bool, | |
31193 | _swigt__p_wxPyTreeItemData, | |
31194 | _swigt__p_wxItemContainer, | |
31195 | _swigt__p_wxDirFilterListCtrl, | |
31196 | _swigt__p_wxPyListCtrl, | |
31197 | _swigt__p_wxStaticLine, | |
31198 | _swigt__p_wxControl, | |
31199 | _swigt__p_wxPyControl, | |
31200 | _swigt__p_wxGauge, | |
31201 | _swigt__p_wxToolBarBase, | |
31202 | _swigt__p_wxFont, | |
31203 | _swigt__p_wxToggleButton, | |
31204 | _swigt__p_wxRadioButton, | |
31205 | _swigt__p_wxChoice, | |
e811c8ce | 31206 | _swigt__p_wxMemoryDC, |
d14a1e28 | 31207 | _swigt__p_wxListItemAttr, |
58203fa6 | 31208 | _swigt__p_void, |
d14a1e28 RD |
31209 | _swigt__p_int, |
31210 | _swigt__p_wxSize, | |
e811c8ce | 31211 | _swigt__p_wxDC, |
d14a1e28 RD |
31212 | _swigt__p_wxListView, |
31213 | _swigt__p_wxIcon, | |
31214 | _swigt__p_wxTextCtrl, | |
31215 | _swigt__p_wxNotebook, | |
31216 | _swigt__p_wxNotifyEvent, | |
31217 | _swigt__p_wxArrayString, | |
31218 | _swigt__p_wxListbook, | |
31219 | _swigt__p_wxStaticBitmap, | |
31220 | _swigt__p_wxSlider, | |
31221 | _swigt__p_wxStaticBox, | |
31222 | _swigt__p_wxArrayInt, | |
31223 | _swigt__p_wxContextHelp, | |
31224 | _swigt__p_long, | |
31225 | _swigt__p_wxEvtHandler, | |
31226 | _swigt__p_wxListEvent, | |
31227 | _swigt__p_wxListBox, | |
31228 | _swigt__p_wxCheckListBox, | |
31229 | _swigt__p_wxBookCtrl, | |
31230 | _swigt__p_wxSpinButton, | |
31231 | _swigt__p_wxButton, | |
31232 | _swigt__p_wxBitmapButton, | |
31233 | _swigt__p_wxRect, | |
31234 | _swigt__p_wxContextHelpButton, | |
31235 | _swigt__p_wxRadioBox, | |
31236 | _swigt__p_wxScrollBar, | |
994141e6 | 31237 | _swigt__p_char, |
d14a1e28 RD |
31238 | _swigt__p_wxTreeItemId, |
31239 | _swigt__p_wxComboBox, | |
31240 | _swigt__p_wxHelpEvent, | |
31241 | _swigt__p_wxListItem, | |
31242 | _swigt__p_wxNotebookSizer, | |
d1e20054 | 31243 | _swigt__p_wxSpinEvent, |
e811c8ce | 31244 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
31245 | _swigt__p_wxSpinCtrl, |
31246 | _swigt__p_wxImageList, | |
31247 | _swigt__p_wxHelpProvider, | |
31248 | _swigt__p_wxTextAttr, | |
31249 | _swigt__p_wxSimpleHelpProvider, | |
31250 | _swigt__p_wxPoint, | |
31251 | _swigt__p_wxListbookEvent, | |
31252 | _swigt__p_wxNotebookEvent, | |
31253 | _swigt__p_wxObject, | |
e811c8ce | 31254 | _swigt__p_wxCursor, |
d14a1e28 RD |
31255 | _swigt__p_wxKeyEvent, |
31256 | _swigt__p_wxWindow, | |
31257 | _swigt__p_wxString, | |
31258 | _swigt__p_wxBitmap, | |
31259 | _swigt__p_wxTreeEvent, | |
31260 | _swigt__p_wxMouseEvent, | |
31261 | _swigt__p_wxCommandEvent, | |
31262 | _swigt__p_wxStaticText, | |
31263 | _swigt__p_wxControlWithItems, | |
31264 | _swigt__p_wxToolBarToolBase, | |
31265 | _swigt__p_wxColour, | |
31266 | _swigt__p_wxToolBar, | |
31267 | _swigt__p_wxBookCtrlSizer, | |
31268 | _swigt__p_wxValidator, | |
31269 | 0 | |
31270 | }; | |
31271 | ||
31272 | ||
31273 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
31274 | ||
31275 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
31276 | {0}}; |
31277 | ||
31278 | #ifdef __cplusplus | |
31279 | } | |
31280 | #endif | |
31281 | ||
31282 | #ifdef __cplusplus | |
31283 | extern "C" | |
31284 | #endif | |
31285 | SWIGEXPORT(void) SWIG_init(void) { | |
31286 | static PyObject *SWIG_globals = 0; | |
31287 | static int typeinit = 0; | |
31288 | PyObject *m, *d; | |
31289 | int i; | |
31290 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
31291 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
31292 | d = PyModule_GetDict(m); | |
31293 | ||
31294 | if (!typeinit) { | |
31295 | for (i = 0; swig_types_initial[i]; i++) { | |
31296 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
31297 | } | |
31298 | typeinit = 1; | |
31299 | } | |
31300 | SWIG_InstallConstants(d,swig_const_table); | |
31301 | ||
b2dc1044 RD |
31302 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
31303 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
994141e6 RD |
31304 | PyDict_SetItemString(d,"BU_LEFT", SWIG_PyObj_FromInt((int)wxBU_LEFT)); |
31305 | PyDict_SetItemString(d,"BU_TOP", SWIG_PyObj_FromInt((int)wxBU_TOP)); | |
31306 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_PyObj_FromInt((int)wxBU_RIGHT)); | |
31307 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_PyObj_FromInt((int)wxBU_BOTTOM)); | |
31308 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_PyObj_FromInt((int)wxBU_EXACTFIT)); | |
31309 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_PyObj_FromInt((int)wxBU_AUTODRAW)); | |
b2dc1044 | 31310 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
994141e6 RD |
31311 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_PyObj_FromInt((int)wxCHK_2STATE)); |
31312 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_PyObj_FromInt((int)wxCHK_3STATE)); | |
31313 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_PyObj_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
31314 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_PyObj_FromInt((int)wxCHK_UNCHECKED)); | |
31315 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_PyObj_FromInt((int)wxCHK_CHECKED)); | |
31316 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_PyObj_FromInt((int)wxCHK_UNDETERMINED)); | |
b2dc1044 RD |
31317 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
31318 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
31319 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
994141e6 RD |
31320 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_PyObj_FromInt((int)wxGA_HORIZONTAL)); |
31321 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_PyObj_FromInt((int)wxGA_VERTICAL)); | |
31322 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_PyObj_FromInt((int)wxGA_SMOOTH)); | |
31323 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_PyObj_FromInt((int)wxGA_PROGRESSBAR)); | |
b2dc1044 RD |
31324 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
31325 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
31326 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
31327 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
31328 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
994141e6 RD |
31329 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_PyObj_FromInt((int)wxTE_NO_VSCROLL)); |
31330 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_PyObj_FromInt((int)wxTE_AUTO_SCROLL)); | |
31331 | PyDict_SetItemString(d,"TE_READONLY", SWIG_PyObj_FromInt((int)wxTE_READONLY)); | |
31332 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_PyObj_FromInt((int)wxTE_MULTILINE)); | |
31333 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_PyObj_FromInt((int)wxTE_PROCESS_TAB)); | |
31334 | PyDict_SetItemString(d,"TE_LEFT", SWIG_PyObj_FromInt((int)wxTE_LEFT)); | |
31335 | PyDict_SetItemString(d,"TE_CENTER", SWIG_PyObj_FromInt((int)wxTE_CENTER)); | |
31336 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_PyObj_FromInt((int)wxTE_RIGHT)); | |
31337 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_PyObj_FromInt((int)wxTE_CENTRE)); | |
31338 | PyDict_SetItemString(d,"TE_RICH", SWIG_PyObj_FromInt((int)wxTE_RICH)); | |
31339 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_PyObj_FromInt((int)wxTE_PROCESS_ENTER)); | |
31340 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_PyObj_FromInt((int)wxTE_PASSWORD)); | |
31341 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_PyObj_FromInt((int)wxTE_AUTO_URL)); | |
31342 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_PyObj_FromInt((int)wxTE_NOHIDESEL)); | |
31343 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_PyObj_FromInt((int)wxTE_DONTWRAP)); | |
31344 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_PyObj_FromInt((int)wxTE_LINEWRAP)); | |
31345 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_PyObj_FromInt((int)wxTE_WORDWRAP)); | |
31346 | PyDict_SetItemString(d,"TE_RICH2", SWIG_PyObj_FromInt((int)wxTE_RICH2)); | |
31347 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
31348 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
31349 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
31350 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
31351 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
31352 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
31353 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
31354 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
31355 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
31356 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
31357 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
31358 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
31359 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
31360 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT)); | |
31361 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
31362 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
31363 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
31364 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TABS)); | |
3adfb63b RD |
31365 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_PyObj_FromInt((int)wxTE_HT_UNKNOWN)); |
31366 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_PyObj_FromInt((int)wxTE_HT_BEFORE)); | |
31367 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_PyObj_FromInt((int)wxTE_HT_ON_TEXT)); | |
31368 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_PyObj_FromInt((int)wxTE_HT_BELOW)); | |
31369 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_PyObj_FromInt((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
31370 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
31371 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
31372 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
31373 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
b2dc1044 RD |
31374 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
31375 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
31376 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
994141e6 RD |
31377 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSP_HORIZONTAL)); |
31378 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_PyObj_FromInt((int)wxSP_VERTICAL)); | |
31379 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_PyObj_FromInt((int)wxSP_ARROW_KEYS)); | |
31380 | PyDict_SetItemString(d,"SP_WRAP", SWIG_PyObj_FromInt((int)wxSP_WRAP)); | |
d14a1e28 | 31381 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
b2dc1044 RD |
31382 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
31383 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
31384 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
31385 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 31386 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
b2dc1044 | 31387 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
994141e6 RD |
31388 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_PyObj_FromInt((int)wxNB_FIXEDWIDTH)); |
31389 | PyDict_SetItemString(d,"NB_TOP", SWIG_PyObj_FromInt((int)wxNB_TOP)); | |
31390 | PyDict_SetItemString(d,"NB_LEFT", SWIG_PyObj_FromInt((int)wxNB_LEFT)); | |
31391 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_PyObj_FromInt((int)wxNB_RIGHT)); | |
31392 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_PyObj_FromInt((int)wxNB_BOTTOM)); | |
31393 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_PyObj_FromInt((int)wxNB_MULTILINE)); | |
31394 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
31395 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONICON)); | |
31396 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
31397 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
31398 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
31399 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
994141e6 RD |
31400 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_PyObj_FromInt((int)wxLB_DEFAULT)); |
31401 | PyDict_SetItemString(d,"LB_TOP", SWIG_PyObj_FromInt((int)wxLB_TOP)); | |
31402 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_PyObj_FromInt((int)wxLB_BOTTOM)); | |
31403 | PyDict_SetItemString(d,"LB_LEFT", SWIG_PyObj_FromInt((int)wxLB_LEFT)); | |
31404 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_PyObj_FromInt((int)wxLB_RIGHT)); | |
31405 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_PyObj_FromInt((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
31406 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
31407 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
994141e6 RD |
31408 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_BUTTON)); |
31409 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
31410 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
31411 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_PyObj_FromInt((int)wxTB_HORIZONTAL)); | |
31412 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_PyObj_FromInt((int)wxTB_VERTICAL)); | |
31413 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_PyObj_FromInt((int)wxTB_3DBUTTONS)); | |
31414 | PyDict_SetItemString(d,"TB_FLAT", SWIG_PyObj_FromInt((int)wxTB_FLAT)); | |
31415 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_PyObj_FromInt((int)wxTB_DOCKABLE)); | |
31416 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_PyObj_FromInt((int)wxTB_NOICONS)); | |
31417 | PyDict_SetItemString(d,"TB_TEXT", SWIG_PyObj_FromInt((int)wxTB_TEXT)); | |
31418 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_PyObj_FromInt((int)wxTB_NODIVIDER)); | |
31419 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_PyObj_FromInt((int)wxTB_NOALIGN)); | |
31420 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_PyObj_FromInt((int)wxTB_HORZ_LAYOUT)); | |
31421 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_PyObj_FromInt((int)wxTB_HORZ_TEXT)); | |
b2dc1044 | 31422 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
994141e6 RD |
31423 | PyDict_SetItemString(d,"LC_VRULES", SWIG_PyObj_FromInt((int)wxLC_VRULES)); |
31424 | PyDict_SetItemString(d,"LC_HRULES", SWIG_PyObj_FromInt((int)wxLC_HRULES)); | |
31425 | PyDict_SetItemString(d,"LC_ICON", SWIG_PyObj_FromInt((int)wxLC_ICON)); | |
31426 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_PyObj_FromInt((int)wxLC_SMALL_ICON)); | |
31427 | PyDict_SetItemString(d,"LC_LIST", SWIG_PyObj_FromInt((int)wxLC_LIST)); | |
31428 | PyDict_SetItemString(d,"LC_REPORT", SWIG_PyObj_FromInt((int)wxLC_REPORT)); | |
31429 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLC_ALIGN_TOP)); | |
31430 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLC_ALIGN_LEFT)); | |
31431 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_PyObj_FromInt((int)wxLC_AUTOARRANGE)); | |
31432 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_PyObj_FromInt((int)wxLC_VIRTUAL)); | |
31433 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxLC_EDIT_LABELS)); | |
31434 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_HEADER)); | |
31435 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_SORT_HEADER)); | |
31436 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_PyObj_FromInt((int)wxLC_SINGLE_SEL)); | |
31437 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_ASCENDING)); | |
31438 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_DESCENDING)); | |
31439 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_PyObj_FromInt((int)wxLC_MASK_TYPE)); | |
31440 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_PyObj_FromInt((int)wxLC_MASK_ALIGN)); | |
31441 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_PyObj_FromInt((int)wxLC_MASK_SORT)); | |
31442 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_PyObj_FromInt((int)wxLIST_MASK_STATE)); | |
31443 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_PyObj_FromInt((int)wxLIST_MASK_TEXT)); | |
31444 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_PyObj_FromInt((int)wxLIST_MASK_IMAGE)); | |
31445 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_PyObj_FromInt((int)wxLIST_MASK_DATA)); | |
31446 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_PyObj_FromInt((int)wxLIST_SET_ITEM)); | |
31447 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_PyObj_FromInt((int)wxLIST_MASK_WIDTH)); | |
31448 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_PyObj_FromInt((int)wxLIST_MASK_FORMAT)); | |
31449 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_PyObj_FromInt((int)wxLIST_STATE_DONTCARE)); | |
31450 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
31451 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FOCUSED)); | |
31452 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_PyObj_FromInt((int)wxLIST_STATE_SELECTED)); | |
31453 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_PyObj_FromInt((int)wxLIST_STATE_CUT)); | |
31454 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DISABLED)); | |
31455 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FILTERED)); | |
31456 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_PyObj_FromInt((int)wxLIST_STATE_INUSE)); | |
31457 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_PyObj_FromInt((int)wxLIST_STATE_PICKED)); | |
31458 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_PyObj_FromInt((int)wxLIST_STATE_SOURCE)); | |
31459 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
31460 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_BELOW)); | |
31461 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
31462 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
31463 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
31464 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
31465 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
31466 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
31467 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
31468 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
31469 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ABOVE)); | |
31470 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ALL)); | |
31471 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_PyObj_FromInt((int)wxLIST_NEXT_BELOW)); | |
31472 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_LEFT)); | |
31473 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_RIGHT)); | |
31474 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
31475 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_LEFT)); | |
31476 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_TOP)); | |
31477 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
31478 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_LEFT)); | |
31479 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
31480 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
31481 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTER)); | |
31482 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE)); | |
31483 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
31484 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_PyObj_FromInt((int)wxLIST_RECT_BOUNDS)); | |
31485 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_PyObj_FromInt((int)wxLIST_RECT_ICON)); | |
31486 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_PyObj_FromInt((int)wxLIST_RECT_LABEL)); | |
31487 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_PyObj_FromInt((int)wxLIST_FIND_UP)); | |
31488 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_PyObj_FromInt((int)wxLIST_FIND_DOWN)); | |
31489 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FIND_LEFT)); | |
31490 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
31491 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
31492 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
31493 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
31494 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
31495 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
31496 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
31497 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
31498 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
31499 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
31500 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
31501 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
31502 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
31503 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
31504 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
31505 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
31506 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
31507 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
31508 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
31509 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
31510 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
31511 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
31512 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
31513 | ||
31514 | // Map renamed classes back to their common name for OOR | |
31515 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
31516 | ||
b2dc1044 | 31517 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
994141e6 RD |
31518 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_NO_BUTTONS)); |
31519 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_HAS_BUTTONS)); | |
31520 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_PyObj_FromInt((int)wxTR_NO_LINES)); | |
31521 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_PyObj_FromInt((int)wxTR_LINES_AT_ROOT)); | |
31522 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_PyObj_FromInt((int)wxTR_SINGLE)); | |
31523 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_PyObj_FromInt((int)wxTR_MULTIPLE)); | |
31524 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_PyObj_FromInt((int)wxTR_EXTENDED)); | |
31525 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_PyObj_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
31526 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxTR_EDIT_LABELS)); | |
31527 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_PyObj_FromInt((int)wxTR_HIDE_ROOT)); | |
31528 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_PyObj_FromInt((int)wxTR_ROW_LINES)); | |
31529 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_PyObj_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
31530 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_PyObj_FromInt((int)wxTR_DEFAULT_STYLE)); | |
31531 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_TWIST_BUTTONS)); | |
31532 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_MAC_BUTTONS)); | |
31533 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_AQUA_BUTTONS)); | |
31534 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Normal)); | |
31535 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Selected)); | |
31536 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Expanded)); | |
31537 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
31538 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Max)); | |
31539 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
31540 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_BELOW)); | |
31541 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
31542 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
31543 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
31544 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
31545 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
31546 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
31547 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
31548 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
31549 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
31550 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
31551 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
31552 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
31553 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
31554 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
31555 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
31556 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
31557 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
31558 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
31559 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
31560 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
31561 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
31562 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
31563 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
31564 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
31565 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
31566 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
31567 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
31568 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
31569 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
31570 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
31571 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
c9c7117a | 31572 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
31573 | |
31574 | // Map renamed classes back to their common name for OOR | |
31575 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
31576 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
31577 | ||
b2dc1044 | 31578 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
994141e6 RD |
31579 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_PyObj_FromInt((int)wxDIRCTRL_DIR_ONLY)); |
31580 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_PyObj_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
31581 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_PyObj_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
31582 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_PyObj_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
31583 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
31584 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
31585 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
31586 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
31587 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
e811c8ce RD |
31588 | |
31589 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
31590 | ||
d14a1e28 RD |
31591 | } |
31592 |