]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
2dbef272 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
0f774bef RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
0f774bef RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
0f774bef | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
0f774bef | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
0f774bef | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
0f774bef | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
0f774bef RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
0f774bef | 126 | |
d14a1e28 RD |
127 | /*********************************************************************** |
128 | * pyrun.swg for wxPython | |
129 | * | |
130 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
131 | * but not the runtime functions themselves. This helps keep the | |
132 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
133 | * anyway. | |
134 | * | |
135 | ************************************************************************/ | |
136 | ||
d14a1e28 RD |
137 | #include "Python.h" |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
d14a1e28 RD |
167 | /* Common SWIG API */ |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2dbef272 | 174 | |
d14a1e28 RD |
175 | /* Python-specific SWIG API */ |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
8edf1c75 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
0f774bef RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
8edf1c75 RD |
198 | /* ----------------------------------------------------------------------------- |
199 | * the needed conversions between C++ and python | |
200 | * ----------------------------------------------------------------------------- */ | |
201 | /* basic types */ | |
202 | /* | |
203 | utilities | |
204 | */ | |
205 | SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
206 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr); | |
207 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj); | |
208 | SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type, | |
209 | long min_value, long max_value); | |
210 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type, | |
211 | unsigned long max_value); | |
212 | SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
213 | SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info, | |
214 | char** cptr, size_t* size); | |
215 | SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info, | |
216 | char* carray, size_t size); | |
217 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size); | |
218 | SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv); | |
d14a1e28 RD |
219 | |
220 | ||
221 | /* Contract support */ | |
222 | ||
423f194a | 223 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 224 | |
d14a1e28 RD |
225 | #ifdef __cplusplus |
226 | } | |
227 | #endif | |
228 | ||
229 | ||
230 | ||
231 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
232 | ||
233 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
234 | #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] | |
235 | #define SWIGTYPE_p_wxSizer swig_types[2] | |
58203fa6 RD |
236 | #define SWIGTYPE_p_wxCheckBox swig_types[3] |
237 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4] | |
238 | #define SWIGTYPE_p_wxEvent swig_types[5] | |
239 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6] | |
240 | #define SWIGTYPE_p_bool swig_types[7] | |
241 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[8] | |
242 | #define SWIGTYPE_p_wxItemContainer swig_types[9] | |
243 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[10] | |
244 | #define SWIGTYPE_p_wxPyListCtrl swig_types[11] | |
245 | #define SWIGTYPE_p_wxStaticLine swig_types[12] | |
246 | #define SWIGTYPE_p_wxControl swig_types[13] | |
247 | #define SWIGTYPE_p_wxPyControl swig_types[14] | |
248 | #define SWIGTYPE_p_wxGauge swig_types[15] | |
249 | #define SWIGTYPE_p_wxToolBarBase swig_types[16] | |
250 | #define SWIGTYPE_p_wxFont swig_types[17] | |
251 | #define SWIGTYPE_p_wxToggleButton swig_types[18] | |
252 | #define SWIGTYPE_p_wxRadioButton swig_types[19] | |
253 | #define SWIGTYPE_p_wxChoice swig_types[20] | |
254 | #define SWIGTYPE_p_wxMemoryDC swig_types[21] | |
255 | #define SWIGTYPE_p_wxListItemAttr swig_types[22] | |
256 | #define SWIGTYPE_p_void swig_types[23] | |
257 | #define SWIGTYPE_p_int swig_types[24] | |
258 | #define SWIGTYPE_p_wxSize swig_types[25] | |
259 | #define SWIGTYPE_p_wxDC swig_types[26] | |
260 | #define SWIGTYPE_p_wxListView swig_types[27] | |
261 | #define SWIGTYPE_p_wxIcon swig_types[28] | |
262 | #define SWIGTYPE_p_wxTextCtrl swig_types[29] | |
263 | #define SWIGTYPE_p_wxNotebook swig_types[30] | |
264 | #define SWIGTYPE_p_wxNotifyEvent swig_types[31] | |
265 | #define SWIGTYPE_p_wxArrayString swig_types[32] | |
266 | #define SWIGTYPE_p_wxListbook swig_types[33] | |
267 | #define SWIGTYPE_p_wxStaticBitmap swig_types[34] | |
268 | #define SWIGTYPE_p_wxSlider swig_types[35] | |
269 | #define SWIGTYPE_p_wxStaticBox swig_types[36] | |
270 | #define SWIGTYPE_p_wxArrayInt swig_types[37] | |
271 | #define SWIGTYPE_p_wxContextHelp swig_types[38] | |
272 | #define SWIGTYPE_p_long swig_types[39] | |
273 | #define SWIGTYPE_p_wxEvtHandler swig_types[40] | |
274 | #define SWIGTYPE_p_wxListEvent swig_types[41] | |
275 | #define SWIGTYPE_p_wxListBox swig_types[42] | |
276 | #define SWIGTYPE_p_wxCheckListBox swig_types[43] | |
277 | #define SWIGTYPE_p_wxBookCtrl swig_types[44] | |
278 | #define SWIGTYPE_p_wxSpinButton swig_types[45] | |
279 | #define SWIGTYPE_p_wxButton swig_types[46] | |
280 | #define SWIGTYPE_p_wxBitmapButton swig_types[47] | |
281 | #define SWIGTYPE_p_wxRect swig_types[48] | |
282 | #define SWIGTYPE_p_wxContextHelpButton swig_types[49] | |
283 | #define SWIGTYPE_p_wxRadioBox swig_types[50] | |
284 | #define SWIGTYPE_p_wxScrollBar swig_types[51] | |
8edf1c75 RD |
285 | #define SWIGTYPE_p_char swig_types[52] |
286 | #define SWIGTYPE_p_wxTreeItemId swig_types[53] | |
287 | #define SWIGTYPE_p_wxComboBox swig_types[54] | |
288 | #define SWIGTYPE_p_wxHelpEvent swig_types[55] | |
289 | #define SWIGTYPE_p_wxListItem swig_types[56] | |
290 | #define SWIGTYPE_p_wxNotebookSizer swig_types[57] | |
291 | #define SWIGTYPE_p_wxSpinEvent swig_types[58] | |
292 | #define SWIGTYPE_p_wxGenericDragImage swig_types[59] | |
293 | #define SWIGTYPE_p_wxSpinCtrl swig_types[60] | |
294 | #define SWIGTYPE_p_wxImageList swig_types[61] | |
295 | #define SWIGTYPE_p_wxHelpProvider swig_types[62] | |
296 | #define SWIGTYPE_p_wxTextAttr swig_types[63] | |
297 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[64] | |
298 | #define SWIGTYPE_p_wxPoint swig_types[65] | |
299 | #define SWIGTYPE_p_wxListbookEvent swig_types[66] | |
300 | #define SWIGTYPE_p_wxNotebookEvent swig_types[67] | |
301 | #define SWIGTYPE_p_wxObject swig_types[68] | |
302 | #define SWIGTYPE_p_wxCursor swig_types[69] | |
303 | #define SWIGTYPE_p_wxKeyEvent swig_types[70] | |
304 | #define SWIGTYPE_p_wxWindow swig_types[71] | |
305 | #define SWIGTYPE_p_wxString swig_types[72] | |
306 | #define SWIGTYPE_p_wxBitmap swig_types[73] | |
307 | #define SWIGTYPE_p_wxTreeEvent swig_types[74] | |
308 | #define SWIGTYPE_p_wxMouseEvent swig_types[75] | |
309 | #define SWIGTYPE_p_wxCommandEvent swig_types[76] | |
310 | #define SWIGTYPE_p_wxStaticText swig_types[77] | |
311 | #define SWIGTYPE_p_wxControlWithItems swig_types[78] | |
312 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[79] | |
313 | #define SWIGTYPE_p_wxColour swig_types[80] | |
314 | #define SWIGTYPE_p_wxToolBar swig_types[81] | |
315 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[82] | |
316 | #define SWIGTYPE_p_wxValidator swig_types[83] | |
317 | static swig_type_info *swig_types[85]; | |
d14a1e28 RD |
318 | |
319 | /* -------- TYPES TABLE (END) -------- */ | |
320 | ||
321 | ||
322 | /*----------------------------------------------- | |
323 | @(target):= _controls.so | |
324 | ------------------------------------------------*/ | |
325 | #define SWIG_init init_controls | |
326 | ||
327 | #define SWIG_name "_controls" | |
328 | ||
8edf1c75 RD |
329 | #include <limits.h> |
330 | #include <float.h> | |
331 | #include <string.h> | |
332 | ||
333 | #ifndef SWIGSTATIC | |
334 | #ifdef __cplusplus | |
335 | #define SWIGSTATIC(a) static inline a | |
336 | #else | |
337 | #define SWIGSTATIC(a) static a | |
338 | #endif | |
339 | #endif | |
340 | ||
341 | #ifndef numeric_cast | |
342 | #ifdef __cplusplus | |
343 | #ifdef HAVE_NUMERIC_CAST | |
344 | #define numeric_cast(type,a) numeric_cast<type>(a) | |
345 | #else | |
346 | #define numeric_cast(type,a) static_cast<type>(a) | |
347 | #endif | |
348 | #else | |
349 | #define numeric_cast(type,a) (type)(a) | |
350 | #endif | |
351 | #endif | |
352 | ||
353 | ||
354 | ||
355 | #define SWIG_PyObj_FromSignedChar PyInt_FromLong | |
356 | #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong | |
357 | #define SWIG_PyObj_FromShort PyInt_FromLong | |
358 | #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong | |
359 | #define SWIG_PyObj_FromInt PyInt_FromLong | |
360 | #define SWIG_PyObj_FromLong PyInt_FromLong | |
361 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
362 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
363 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
364 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
365 | ||
366 | ||
d14a1e28 RD |
367 | #include "wx/wxPython/wxPython.h" |
368 | #include "wx/wxPython/pyclasses.h" | |
369 | ||
cbd72d4f RD |
370 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
371 | static const wxString wxPyEmptyString(wxEmptyString); | |
372 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
02a34c4c RD |
373 | |
374 | const wxArrayString wxPyEmptyStringArray; | |
375 | ||
cbd72d4f | 376 | static const wxString wxPyButtonNameStr(wxButtonNameStr); |
8edf1c75 RD |
377 | |
378 | SWIGSTATIC(int) | |
379 | SWIG_PyObj_AsInt(PyObject *obj) | |
380 | { | |
381 | return numeric_cast(int, | |
382 | SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX)); | |
383 | } | |
384 | ||
385 | ||
386 | SWIGSTATIC(long) | |
387 | SWIG_PyObj_AsLong(PyObject * obj) | |
388 | { | |
389 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
390 | } | |
391 | ||
cbd72d4f | 392 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
8edf1c75 RD |
393 | |
394 | SWIGSTATIC(bool) | |
395 | SWIG_PyObj_AsBool(PyObject *obj) | |
396 | { | |
397 | return PyObject_IsTrue(obj) ? true : false; | |
398 | } | |
399 | ||
cbd72d4f RD |
400 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); |
401 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
402 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
403 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
404 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
405 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
406 | |
407 | #include <wx/checklst.h> | |
408 | ||
d14a1e28 | 409 | |
cbd72d4f | 410 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
d14a1e28 RD |
411 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ |
412 | if (clientData) { | |
413 | wxPyClientData* data = new wxPyClientData(clientData); | |
414 | self->Insert(item, pos, data); | |
415 | } else | |
416 | self->Insert(item, pos); | |
417 | } | |
418 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
419 | wxArrayInt lst; | |
420 | self->GetSelections(lst); | |
421 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
422 | for(size_t i=0; i<lst.GetCount(); i++) { | |
423 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
424 | } | |
425 | return tup; | |
426 | } | |
c3eb6258 RD |
427 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
428 | #ifdef __WXMSW__ | |
429 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
430 | self->GetItem(item)->SetTextColour(c); | |
431 | #endif | |
432 | } | |
433 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
434 | #ifdef __WXMSW__ | |
435 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
436 | self->GetItem(item)->SetBackgroundColour(c); | |
437 | #endif | |
438 | } | |
439 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
440 | #ifdef __WXMSW__ | |
441 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
442 | self->GetItem(item)->SetFont(f); | |
443 | #endif | |
444 | } | |
cbd72d4f | 445 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 RD |
446 | |
447 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
448 | PyObject* o2; | |
449 | PyObject* o3; | |
450 | ||
451 | if (!target) { | |
452 | target = o; | |
453 | } else if (target == Py_None) { | |
454 | Py_DECREF(Py_None); | |
455 | target = o; | |
456 | } else { | |
457 | if (!PyTuple_Check(target)) { | |
458 | o2 = target; | |
459 | target = PyTuple_New(1); | |
460 | PyTuple_SetItem(target, 0, o2); | |
461 | } | |
462 | o3 = PyTuple_New(1); | |
463 | PyTuple_SetItem(o3, 0, o); | |
464 | ||
465 | o2 = target; | |
466 | target = PySequence_Concat(o2, o3); | |
467 | Py_DECREF(o2); | |
468 | Py_DECREF(o3); | |
469 | } | |
470 | return target; | |
471 | } | |
472 | ||
473 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
474 | self->AppendText(text); | |
475 | } | |
476 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
477 | return self->GetValue().Mid(from, to - from); | |
478 | } | |
cbd72d4f RD |
479 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
480 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
32958cea | 481 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
cbd72d4f RD |
482 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
483 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
484 | |
485 | #include <wx/slider.h> | |
486 | ||
d14a1e28 | 487 | |
cbd72d4f | 488 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
32958cea | 489 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 490 | |
d896a793 | 491 | #if defined(__WXMAC__) || defined(__WXX11__) |
d14a1e28 RD |
492 | // implement dummy classes and such for wxMac |
493 | ||
494 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
495 | ||
496 | class wxToggleButton : public wxControl | |
497 | { | |
498 | public: | |
499 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
500 | const wxPoint&, const wxSize&, long, | |
501 | const wxValidator&, const wxString&) | |
cbd72d4f | 502 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
503 | |
504 | wxToggleButton() | |
cbd72d4f | 505 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
506 | }; |
507 | #endif | |
508 | ||
cbd72d4f | 509 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); |
8edf1c75 RD |
510 | |
511 | SWIGSTATIC(PyObject* ) | |
512 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
513 | { | |
514 | return (value > (unsigned long)(LONG_MAX)) ? | |
515 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
516 | } | |
517 | ||
cbd72d4f | 518 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
d14a1e28 RD |
519 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
520 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
521 | if (udata) { | |
522 | Py_INCREF(udata->m_obj); | |
523 | return udata->m_obj; | |
524 | } else { | |
525 | Py_INCREF(Py_None); | |
526 | return Py_None; | |
527 | } | |
528 | } | |
529 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
530 | self->SetClientData(new wxPyUserData(clientData)); | |
531 | } | |
532 | wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ | |
533 | wxPyUserData* udata = NULL; | |
534 | if (clientData && clientData != Py_None) | |
535 | udata = new wxPyUserData(clientData); | |
536 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
537 | shortHelp, longHelp, udata); | |
538 | } | |
539 | wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ | |
540 | wxPyUserData* udata = NULL; | |
541 | if (clientData && clientData != Py_None) | |
542 | udata = new wxPyUserData(clientData); | |
543 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
544 | shortHelp, longHelp, udata); | |
545 | } | |
546 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
547 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
548 | if (udata) { | |
549 | Py_INCREF(udata->m_obj); | |
550 | return udata->m_obj; | |
551 | } else { | |
552 | Py_INCREF(Py_None); | |
553 | return Py_None; | |
554 | } | |
555 | } | |
556 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
557 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
558 | } | |
559 | ||
560 | #include <wx/listctrl.h> | |
561 | ||
d14a1e28 | 562 | |
32958cea | 563 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
d14a1e28 RD |
564 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
565 | // Python aware sorting function for wxPyListCtrl | |
566 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
567 | int retval = 0; | |
568 | PyObject* func = (PyObject*)funcPtr; | |
569 | wxPyBeginBlockThreads(); | |
570 | ||
571 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
572 | PyObject* result = PyEval_CallObject(func, args); | |
573 | Py_DECREF(args); | |
574 | if (result) { | |
575 | retval = PyInt_AsLong(result); | |
576 | Py_DECREF(result); | |
577 | } | |
578 | ||
579 | wxPyEndBlockThreads(); | |
580 | return retval; | |
581 | } | |
582 | ||
583 | // C++ Version of a Python aware class | |
584 | class wxPyListCtrl : public wxListCtrl { | |
585 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
586 | public: | |
587 | wxPyListCtrl() : wxListCtrl() {} | |
588 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
589 | const wxPoint& pos, | |
590 | const wxSize& size, | |
591 | long style, | |
592 | const wxValidator& validator, | |
593 | const wxString& name) : | |
594 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
595 | ||
596 | bool Create(wxWindow* parent, wxWindowID id, | |
597 | const wxPoint& pos, | |
598 | const wxSize& size, | |
599 | long style, | |
600 | const wxValidator& validator, | |
601 | const wxString& name) { | |
602 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
603 | } | |
604 | ||
605 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
606 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
607 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
608 | ||
609 | PYPRIVATE; | |
610 | }; | |
611 | ||
612 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
613 | ||
614 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
615 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
616 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
617 | ||
618 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
619 | wxListItem item; | |
620 | item.SetMask( wxLIST_MASK_STATE | | |
621 | wxLIST_MASK_TEXT | | |
622 | wxLIST_MASK_IMAGE | | |
623 | wxLIST_MASK_DATA | | |
624 | wxLIST_SET_ITEM | | |
625 | wxLIST_MASK_WIDTH | | |
626 | wxLIST_MASK_FORMAT | |
627 | ); | |
628 | if (self->GetColumn(col, item)) | |
629 | return new wxListItem(item); | |
630 | else | |
631 | return NULL; | |
632 | } | |
633 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
634 | wxListItem* info = new wxListItem; | |
635 | info->m_itemId = itemId; | |
636 | info->m_col = col; | |
637 | info->m_mask = 0xFFFF; | |
638 | self->GetItem(*info); | |
639 | return info; | |
640 | } | |
641 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
642 | wxPoint pos; | |
643 | self->GetItemPosition(item, pos); | |
644 | return pos; | |
645 | } | |
646 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
647 | wxRect rect; | |
648 | self->GetItemRect(item, rect, code); | |
649 | return rect; | |
650 | } | |
651 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
652 | if (!PyCallable_Check(func)) | |
423f194a | 653 | return False; |
d14a1e28 RD |
654 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
655 | } | |
656 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
657 | ||
658 | ||
659 | ||
660 | return (wxWindow*)self->m_mainWin; | |
661 | ||
662 | } | |
663 | ||
664 | #include <wx/treectrl.h> | |
665 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 666 | |
32958cea | 667 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
d14a1e28 | 668 | bool wxTreeItemId_operator_ee___(wxTreeItemId *self,wxTreeItemId const *other){ |
423f194a | 669 | if (!other) return False; |
d14a1e28 RD |
670 | return *self == *other; |
671 | } | |
672 | bool wxTreeItemId_operator_Ne___(wxTreeItemId *self,wxTreeItemId const *other){ | |
423f194a | 673 | if (!other) return True; |
d14a1e28 RD |
674 | return *self != *other; |
675 | } | |
676 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
677 | // C++ version of Python aware wxTreeCtrl | |
678 | class wxPyTreeCtrl : public wxTreeCtrl { | |
679 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
680 | public: | |
681 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
682 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
683 | const wxPoint& pos, | |
684 | const wxSize& size, | |
685 | long style, | |
686 | const wxValidator& validator, | |
687 | const wxString& name) : | |
688 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
689 | ||
690 | bool Create(wxWindow *parent, wxWindowID id, | |
691 | const wxPoint& pos, | |
692 | const wxSize& size, | |
693 | long style, | |
694 | const wxValidator& validator, | |
695 | const wxString& name) { | |
696 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
697 | } | |
698 | ||
699 | ||
700 | int OnCompareItems(const wxTreeItemId& item1, | |
701 | const wxTreeItemId& item2) { | |
702 | int rval = 0; | |
703 | bool found; | |
704 | wxPyBeginBlockThreads(); | |
705 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
423f194a RD |
706 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
707 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
708 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
709 | Py_DECREF(o1); | |
710 | Py_DECREF(o2); | |
711 | } | |
712 | wxPyEndBlockThreads(); | |
713 | if (! found) | |
714 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
715 | return rval; | |
716 | } | |
717 | PYPRIVATE; | |
718 | }; | |
719 | ||
720 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
721 | ||
722 | ||
8edf1c75 RD |
723 | |
724 | #define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong | |
725 | ||
726 | ||
727 | SWIGSTATIC(unsigned int) | |
728 | SWIG_PyObj_AsUnsignedInt(PyObject *obj) | |
729 | { | |
730 | return numeric_cast(unsigned int, | |
731 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX)); | |
732 | } | |
733 | ||
d14a1e28 RD |
734 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
735 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
736 | if (data == NULL) { | |
737 | data = new wxPyTreeItemData(); | |
738 | data->SetId(item); // set the id | |
739 | self->SetItemData(item, data); | |
740 | } | |
741 | return data; | |
742 | } | |
743 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
744 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
745 | if (data == NULL) { | |
746 | data = new wxPyTreeItemData(); | |
747 | data->SetId(item); // set the id | |
748 | self->SetItemData(item, data); | |
749 | } | |
750 | return data->GetData(); | |
751 | } | |
752 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
753 | data->SetId(item); // set the id | |
754 | self->SetItemData(item, data); | |
755 | } | |
756 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
757 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
758 | if (data == NULL) { | |
759 | data = new wxPyTreeItemData(obj); | |
760 | data->SetId(item); // set the id | |
761 | self->SetItemData(item, data); | |
762 | } else | |
763 | data->SetData(obj); | |
764 | } | |
765 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
766 | wxPyBeginBlockThreads(); | |
767 | PyObject* rval = PyList_New(0); | |
768 | wxArrayTreeItemIds array; | |
769 | size_t num, x; | |
770 | num = self->GetSelections(array); | |
771 | for (x=0; x < num; x++) { | |
772 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
423f194a | 773 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 RD |
774 | PyList_Append(rval, item); |
775 | } | |
776 | wxPyEndBlockThreads(); | |
777 | return rval; | |
778 | } | |
779 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
58203fa6 RD |
780 | void* cookie = 0; |
781 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
d14a1e28 RD |
782 | wxPyBeginBlockThreads(); |
783 | PyObject* tup = PyTuple_New(2); | |
58203fa6 RD |
784 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
785 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
d14a1e28 RD |
786 | wxPyEndBlockThreads(); |
787 | return tup; | |
788 | } | |
58203fa6 RD |
789 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
790 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
d14a1e28 RD |
791 | wxPyBeginBlockThreads(); |
792 | PyObject* tup = PyTuple_New(2); | |
58203fa6 RD |
793 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
794 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
d14a1e28 RD |
795 | wxPyEndBlockThreads(); |
796 | return tup; | |
797 | } | |
798 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
799 | wxRect rect; | |
800 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
801 | wxPyBeginBlockThreads(); | |
802 | wxRect* r = new wxRect(rect); | |
423f194a | 803 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
d14a1e28 RD |
804 | wxPyEndBlockThreads(); |
805 | return val; | |
806 | } | |
807 | else | |
808 | RETURN_NONE(); | |
809 | } | |
cbd72d4f | 810 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
d14a1e28 RD |
811 | // C++ version of Python aware wxControl |
812 | class wxPyControl : public wxControl | |
813 | { | |
814 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
815 | public: | |
816 | wxPyControl() : wxControl() {} | |
817 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
818 | const wxPoint& pos = wxDefaultPosition, | |
819 | const wxSize& size = wxDefaultSize, | |
820 | long style = 0, | |
821 | const wxValidator& validator=wxDefaultValidator, | |
822 | const wxString& name = wxPyControlNameStr) | |
823 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
824 | ||
825 | ||
826 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
827 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
828 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
829 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
830 | ||
831 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
832 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
833 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
834 | ||
835 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
836 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
837 | ||
838 | DEC_PYCALLBACK__(InitDialog); | |
839 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
840 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
841 | DEC_PYCALLBACK_BOOL_(Validate); | |
842 | ||
843 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
844 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
845 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
846 | ||
847 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
848 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
849 | ||
850 | PYPRIVATE; | |
851 | }; | |
852 | ||
853 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
854 | ||
855 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
856 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
857 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
858 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
859 | ||
860 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
861 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
862 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
863 | ||
864 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
865 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
866 | ||
867 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
868 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
869 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
870 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
871 | ||
872 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
873 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
874 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
875 | ||
876 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
877 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
878 | ||
879 | ||
880 | ||
881 | ||
882 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
423f194a RD |
883 | |
884 | #include <wx/generic/dragimgg.h> | |
885 | ||
d14a1e28 RD |
886 | #ifdef __cplusplus |
887 | extern "C" { | |
888 | #endif | |
8edf1c75 | 889 | static int _wrap_ButtonNameStr_set(PyObject *) { |
cbd72d4f RD |
890 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
891 | return 1; | |
892 | } | |
893 | ||
894 | ||
895 | static PyObject *_wrap_ButtonNameStr_get() { | |
896 | PyObject *pyobj; | |
897 | ||
898 | { | |
899 | #if wxUSE_UNICODE | |
900 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
901 | #else | |
902 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
903 | #endif | |
904 | } | |
905 | return pyobj; | |
906 | } | |
907 | ||
908 | ||
d14a1e28 RD |
909 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { |
910 | PyObject *resultobj; | |
911 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 912 | int arg2 ; |
d14a1e28 RD |
913 | wxString *arg3 = 0 ; |
914 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
915 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
916 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
917 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
918 | long arg6 = (long) 0 ; | |
919 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
920 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
921 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
922 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
923 | wxButton *result; | |
423f194a | 924 | bool temp3 = False ; |
d14a1e28 RD |
925 | wxPoint temp4 ; |
926 | wxSize temp5 ; | |
423f194a | 927 | bool temp8 = False ; |
d14a1e28 | 928 | PyObject * obj0 = 0 ; |
8edf1c75 | 929 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
930 | PyObject * obj2 = 0 ; |
931 | PyObject * obj3 = 0 ; | |
932 | PyObject * obj4 = 0 ; | |
8edf1c75 | 933 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
934 | PyObject * obj6 = 0 ; |
935 | PyObject * obj7 = 0 ; | |
936 | char *kwnames[] = { | |
937 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
938 | }; | |
939 | ||
8edf1c75 | 940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
942 | { |
943 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
944 | if (PyErr_Occurred()) SWIG_fail; | |
945 | } | |
d14a1e28 RD |
946 | { |
947 | arg3 = wxString_in_helper(obj2); | |
948 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 949 | temp3 = True; |
d14a1e28 RD |
950 | } |
951 | if (obj3) { | |
952 | { | |
953 | arg4 = &temp4; | |
954 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
955 | } | |
956 | } | |
957 | if (obj4) { | |
958 | { | |
959 | arg5 = &temp5; | |
960 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
961 | } | |
962 | } | |
8edf1c75 RD |
963 | if (obj5) { |
964 | { | |
965 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
966 | if (PyErr_Occurred()) SWIG_fail; | |
967 | } | |
968 | } | |
d14a1e28 RD |
969 | if (obj6) { |
970 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
971 | if (arg7 == NULL) { | |
972 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
973 | } | |
974 | } | |
975 | if (obj7) { | |
976 | { | |
977 | arg8 = wxString_in_helper(obj7); | |
978 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 979 | temp8 = True; |
d14a1e28 RD |
980 | } |
981 | } | |
982 | { | |
983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
984 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
985 | ||
986 | wxPyEndAllowThreads(__tstate); | |
987 | if (PyErr_Occurred()) SWIG_fail; | |
988 | } | |
989 | { | |
990 | resultobj = wxPyMake_wxObject(result); | |
991 | } | |
992 | { | |
993 | if (temp3) | |
994 | delete arg3; | |
995 | } | |
996 | { | |
997 | if (temp8) | |
998 | delete arg8; | |
999 | } | |
1000 | return resultobj; | |
1001 | fail: | |
1002 | { | |
1003 | if (temp3) | |
1004 | delete arg3; | |
1005 | } | |
1006 | { | |
1007 | if (temp8) | |
1008 | delete arg8; | |
1009 | } | |
1010 | return NULL; | |
1011 | } | |
1012 | ||
1013 | ||
1014 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1015 | PyObject *resultobj; | |
1016 | wxButton *result; | |
1017 | char *kwnames[] = { | |
1018 | NULL | |
1019 | }; | |
1020 | ||
1021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1022 | { | |
1023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1024 | result = (wxButton *)new wxButton(); | |
1025 | ||
1026 | wxPyEndAllowThreads(__tstate); | |
1027 | if (PyErr_Occurred()) SWIG_fail; | |
1028 | } | |
1029 | { | |
1030 | resultobj = wxPyMake_wxObject(result); | |
1031 | } | |
1032 | return resultobj; | |
1033 | fail: | |
1034 | return NULL; | |
1035 | } | |
1036 | ||
1037 | ||
1038 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1039 | PyObject *resultobj; | |
1040 | wxButton *arg1 = (wxButton *) 0 ; | |
1041 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1042 | int arg3 ; |
d14a1e28 RD |
1043 | wxString *arg4 = 0 ; |
1044 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1045 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1046 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1047 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1048 | long arg7 = (long) 0 ; | |
1049 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1050 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1051 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1052 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1053 | bool result; | |
423f194a | 1054 | bool temp4 = False ; |
d14a1e28 RD |
1055 | wxPoint temp5 ; |
1056 | wxSize temp6 ; | |
423f194a | 1057 | bool temp9 = False ; |
d14a1e28 RD |
1058 | PyObject * obj0 = 0 ; |
1059 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1060 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1061 | PyObject * obj3 = 0 ; |
1062 | PyObject * obj4 = 0 ; | |
1063 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1064 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1065 | PyObject * obj7 = 0 ; |
1066 | PyObject * obj8 = 0 ; | |
1067 | char *kwnames[] = { | |
1068 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1069 | }; | |
1070 | ||
8edf1c75 | 1071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1073 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
1074 | { |
1075 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1076 | if (PyErr_Occurred()) SWIG_fail; | |
1077 | } | |
d14a1e28 RD |
1078 | { |
1079 | arg4 = wxString_in_helper(obj3); | |
1080 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 1081 | temp4 = True; |
d14a1e28 RD |
1082 | } |
1083 | if (obj4) { | |
1084 | { | |
1085 | arg5 = &temp5; | |
1086 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1087 | } | |
1088 | } | |
1089 | if (obj5) { | |
1090 | { | |
1091 | arg6 = &temp6; | |
1092 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1093 | } | |
1094 | } | |
8edf1c75 RD |
1095 | if (obj6) { |
1096 | { | |
1097 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1098 | if (PyErr_Occurred()) SWIG_fail; | |
1099 | } | |
1100 | } | |
d14a1e28 RD |
1101 | if (obj7) { |
1102 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1103 | if (arg8 == NULL) { | |
1104 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1105 | } | |
1106 | } | |
1107 | if (obj8) { | |
1108 | { | |
1109 | arg9 = wxString_in_helper(obj8); | |
1110 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1111 | temp9 = True; |
d14a1e28 RD |
1112 | } |
1113 | } | |
1114 | { | |
1115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1116 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1117 | ||
1118 | wxPyEndAllowThreads(__tstate); | |
1119 | if (PyErr_Occurred()) SWIG_fail; | |
1120 | } | |
02a34c4c | 1121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1122 | { |
1123 | if (temp4) | |
1124 | delete arg4; | |
1125 | } | |
1126 | { | |
1127 | if (temp9) | |
1128 | delete arg9; | |
1129 | } | |
1130 | return resultobj; | |
1131 | fail: | |
1132 | { | |
1133 | if (temp4) | |
1134 | delete arg4; | |
1135 | } | |
1136 | { | |
1137 | if (temp9) | |
1138 | delete arg9; | |
1139 | } | |
1140 | return NULL; | |
1141 | } | |
1142 | ||
1143 | ||
1144 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1145 | PyObject *resultobj; | |
1146 | wxButton *arg1 = (wxButton *) 0 ; | |
1147 | PyObject * obj0 = 0 ; | |
1148 | char *kwnames[] = { | |
1149 | (char *) "self", NULL | |
1150 | }; | |
1151 | ||
1152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1154 | { | |
1155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1156 | (arg1)->SetDefault(); | |
1157 | ||
1158 | wxPyEndAllowThreads(__tstate); | |
1159 | if (PyErr_Occurred()) SWIG_fail; | |
1160 | } | |
1161 | Py_INCREF(Py_None); resultobj = Py_None; | |
1162 | return resultobj; | |
1163 | fail: | |
1164 | return NULL; | |
1165 | } | |
1166 | ||
1167 | ||
1168 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1169 | PyObject *resultobj; | |
1170 | wxSize result; | |
1171 | char *kwnames[] = { | |
1172 | NULL | |
1173 | }; | |
1174 | ||
1175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1176 | { | |
1177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1178 | result = wxButton::GetDefaultSize(); | |
1179 | ||
1180 | wxPyEndAllowThreads(__tstate); | |
1181 | if (PyErr_Occurred()) SWIG_fail; | |
1182 | } | |
1183 | { | |
1184 | wxSize * resultptr; | |
1185 | resultptr = new wxSize((wxSize &) result); | |
1186 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1187 | } | |
1188 | return resultobj; | |
1189 | fail: | |
1190 | return NULL; | |
1191 | } | |
1192 | ||
1193 | ||
1194 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { | |
1195 | PyObject *obj; | |
1196 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1197 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1198 | Py_INCREF(obj); | |
1199 | return Py_BuildValue((char *)""); | |
1200 | } | |
1201 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1202 | PyObject *resultobj; | |
1203 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1204 | int arg2 ; |
d14a1e28 RD |
1205 | wxBitmap *arg3 = 0 ; |
1206 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1207 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1208 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1209 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1210 | long arg6 = (long) wxBU_AUTODRAW ; | |
1211 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1212 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1213 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1214 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1215 | wxBitmapButton *result; | |
1216 | wxPoint temp4 ; | |
1217 | wxSize temp5 ; | |
423f194a | 1218 | bool temp8 = False ; |
d14a1e28 | 1219 | PyObject * obj0 = 0 ; |
8edf1c75 | 1220 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1221 | PyObject * obj2 = 0 ; |
1222 | PyObject * obj3 = 0 ; | |
1223 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1224 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1225 | PyObject * obj6 = 0 ; |
1226 | PyObject * obj7 = 0 ; | |
1227 | char *kwnames[] = { | |
1228 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1229 | }; | |
1230 | ||
8edf1c75 | 1231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 1232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1233 | { |
1234 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1235 | if (PyErr_Occurred()) SWIG_fail; | |
1236 | } | |
d14a1e28 RD |
1237 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1238 | if (arg3 == NULL) { | |
1239 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1240 | } | |
1241 | if (obj3) { | |
1242 | { | |
1243 | arg4 = &temp4; | |
1244 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1245 | } | |
1246 | } | |
1247 | if (obj4) { | |
1248 | { | |
1249 | arg5 = &temp5; | |
1250 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1251 | } | |
1252 | } | |
8edf1c75 RD |
1253 | if (obj5) { |
1254 | { | |
1255 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1256 | if (PyErr_Occurred()) SWIG_fail; | |
1257 | } | |
1258 | } | |
d14a1e28 RD |
1259 | if (obj6) { |
1260 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1261 | if (arg7 == NULL) { | |
1262 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1263 | } | |
1264 | } | |
1265 | if (obj7) { | |
1266 | { | |
1267 | arg8 = wxString_in_helper(obj7); | |
1268 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1269 | temp8 = True; |
d14a1e28 RD |
1270 | } |
1271 | } | |
1272 | { | |
1273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1274 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1275 | ||
1276 | wxPyEndAllowThreads(__tstate); | |
1277 | if (PyErr_Occurred()) SWIG_fail; | |
1278 | } | |
1279 | { | |
1280 | resultobj = wxPyMake_wxObject(result); | |
1281 | } | |
1282 | { | |
1283 | if (temp8) | |
1284 | delete arg8; | |
1285 | } | |
1286 | return resultobj; | |
1287 | fail: | |
1288 | { | |
1289 | if (temp8) | |
1290 | delete arg8; | |
1291 | } | |
1292 | return NULL; | |
1293 | } | |
1294 | ||
1295 | ||
1296 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1297 | PyObject *resultobj; | |
1298 | wxBitmapButton *result; | |
1299 | char *kwnames[] = { | |
1300 | NULL | |
1301 | }; | |
1302 | ||
1303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1304 | { | |
1305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1306 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1307 | ||
1308 | wxPyEndAllowThreads(__tstate); | |
1309 | if (PyErr_Occurred()) SWIG_fail; | |
1310 | } | |
1311 | { | |
1312 | resultobj = wxPyMake_wxObject(result); | |
1313 | } | |
1314 | return resultobj; | |
1315 | fail: | |
1316 | return NULL; | |
1317 | } | |
1318 | ||
1319 | ||
1320 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1321 | PyObject *resultobj; | |
1322 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1323 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1324 | int arg3 ; |
d14a1e28 RD |
1325 | wxBitmap *arg4 = 0 ; |
1326 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1327 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1328 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1329 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1330 | long arg7 = (long) wxBU_AUTODRAW ; | |
1331 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1332 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1333 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1334 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1335 | bool result; | |
1336 | wxPoint temp5 ; | |
1337 | wxSize temp6 ; | |
423f194a | 1338 | bool temp9 = False ; |
d14a1e28 RD |
1339 | PyObject * obj0 = 0 ; |
1340 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1341 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1342 | PyObject * obj3 = 0 ; |
1343 | PyObject * obj4 = 0 ; | |
1344 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1345 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1346 | PyObject * obj7 = 0 ; |
1347 | PyObject * obj8 = 0 ; | |
1348 | char *kwnames[] = { | |
1349 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1350 | }; | |
1351 | ||
8edf1c75 | 1352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1354 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
1355 | { |
1356 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1357 | if (PyErr_Occurred()) SWIG_fail; | |
1358 | } | |
d14a1e28 RD |
1359 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1360 | if (arg4 == NULL) { | |
1361 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1362 | } | |
1363 | if (obj4) { | |
1364 | { | |
1365 | arg5 = &temp5; | |
1366 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1367 | } | |
1368 | } | |
1369 | if (obj5) { | |
1370 | { | |
1371 | arg6 = &temp6; | |
1372 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1373 | } | |
1374 | } | |
8edf1c75 RD |
1375 | if (obj6) { |
1376 | { | |
1377 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1378 | if (PyErr_Occurred()) SWIG_fail; | |
1379 | } | |
1380 | } | |
d14a1e28 RD |
1381 | if (obj7) { |
1382 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1383 | if (arg8 == NULL) { | |
1384 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1385 | } | |
1386 | } | |
1387 | if (obj8) { | |
1388 | { | |
1389 | arg9 = wxString_in_helper(obj8); | |
1390 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1391 | temp9 = True; |
d14a1e28 RD |
1392 | } |
1393 | } | |
1394 | { | |
1395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1396 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1397 | ||
1398 | wxPyEndAllowThreads(__tstate); | |
1399 | if (PyErr_Occurred()) SWIG_fail; | |
1400 | } | |
02a34c4c | 1401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1402 | { |
1403 | if (temp9) | |
1404 | delete arg9; | |
1405 | } | |
1406 | return resultobj; | |
1407 | fail: | |
1408 | { | |
1409 | if (temp9) | |
1410 | delete arg9; | |
1411 | } | |
1412 | return NULL; | |
1413 | } | |
1414 | ||
1415 | ||
1416 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1417 | PyObject *resultobj; | |
1418 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1419 | wxBitmap result; | |
1420 | PyObject * obj0 = 0 ; | |
1421 | char *kwnames[] = { | |
1422 | (char *) "self", NULL | |
1423 | }; | |
1424 | ||
1425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1427 | { | |
1428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1429 | result = (arg1)->GetBitmapLabel(); | |
1430 | ||
1431 | wxPyEndAllowThreads(__tstate); | |
1432 | if (PyErr_Occurred()) SWIG_fail; | |
1433 | } | |
1434 | { | |
1435 | wxBitmap * resultptr; | |
1436 | resultptr = new wxBitmap((wxBitmap &) result); | |
1437 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1438 | } | |
1439 | return resultobj; | |
1440 | fail: | |
1441 | return NULL; | |
1442 | } | |
1443 | ||
1444 | ||
1445 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1446 | PyObject *resultobj; | |
1447 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1448 | wxBitmap result; | |
1449 | PyObject * obj0 = 0 ; | |
1450 | char *kwnames[] = { | |
1451 | (char *) "self", NULL | |
1452 | }; | |
1453 | ||
1454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1456 | { | |
1457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1458 | result = (arg1)->GetBitmapDisabled(); | |
1459 | ||
1460 | wxPyEndAllowThreads(__tstate); | |
1461 | if (PyErr_Occurred()) SWIG_fail; | |
1462 | } | |
1463 | { | |
1464 | wxBitmap * resultptr; | |
1465 | resultptr = new wxBitmap((wxBitmap &) result); | |
1466 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1467 | } | |
1468 | return resultobj; | |
1469 | fail: | |
1470 | return NULL; | |
1471 | } | |
1472 | ||
1473 | ||
1474 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1475 | PyObject *resultobj; | |
1476 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1477 | wxBitmap result; | |
1478 | PyObject * obj0 = 0 ; | |
1479 | char *kwnames[] = { | |
1480 | (char *) "self", NULL | |
1481 | }; | |
1482 | ||
1483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1485 | { | |
1486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1487 | result = (arg1)->GetBitmapFocus(); | |
1488 | ||
1489 | wxPyEndAllowThreads(__tstate); | |
1490 | if (PyErr_Occurred()) SWIG_fail; | |
1491 | } | |
1492 | { | |
1493 | wxBitmap * resultptr; | |
1494 | resultptr = new wxBitmap((wxBitmap &) result); | |
1495 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1496 | } | |
1497 | return resultobj; | |
1498 | fail: | |
1499 | return NULL; | |
1500 | } | |
1501 | ||
1502 | ||
1503 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1504 | PyObject *resultobj; | |
1505 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1506 | wxBitmap result; | |
1507 | PyObject * obj0 = 0 ; | |
1508 | char *kwnames[] = { | |
1509 | (char *) "self", NULL | |
1510 | }; | |
1511 | ||
1512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1514 | { | |
1515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1516 | result = (arg1)->GetBitmapSelected(); | |
1517 | ||
1518 | wxPyEndAllowThreads(__tstate); | |
1519 | if (PyErr_Occurred()) SWIG_fail; | |
1520 | } | |
1521 | { | |
1522 | wxBitmap * resultptr; | |
1523 | resultptr = new wxBitmap((wxBitmap &) result); | |
1524 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1525 | } | |
1526 | return resultobj; | |
1527 | fail: | |
1528 | return NULL; | |
1529 | } | |
1530 | ||
1531 | ||
1532 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1533 | PyObject *resultobj; | |
1534 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1535 | wxBitmap *arg2 = 0 ; | |
1536 | PyObject * obj0 = 0 ; | |
1537 | PyObject * obj1 = 0 ; | |
1538 | char *kwnames[] = { | |
1539 | (char *) "self",(char *) "bitmap", NULL | |
1540 | }; | |
1541 | ||
1542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1544 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1545 | if (arg2 == NULL) { | |
1546 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1547 | } | |
1548 | { | |
1549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1550 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1551 | ||
1552 | wxPyEndAllowThreads(__tstate); | |
1553 | if (PyErr_Occurred()) SWIG_fail; | |
1554 | } | |
1555 | Py_INCREF(Py_None); resultobj = Py_None; | |
1556 | return resultobj; | |
1557 | fail: | |
1558 | return NULL; | |
1559 | } | |
1560 | ||
1561 | ||
1562 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1563 | PyObject *resultobj; | |
1564 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1565 | wxBitmap *arg2 = 0 ; | |
1566 | PyObject * obj0 = 0 ; | |
1567 | PyObject * obj1 = 0 ; | |
1568 | char *kwnames[] = { | |
1569 | (char *) "self",(char *) "bitmap", NULL | |
1570 | }; | |
1571 | ||
1572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1574 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1575 | if (arg2 == NULL) { | |
1576 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1577 | } | |
1578 | { | |
1579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1580 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1581 | ||
1582 | wxPyEndAllowThreads(__tstate); | |
1583 | if (PyErr_Occurred()) SWIG_fail; | |
1584 | } | |
1585 | Py_INCREF(Py_None); resultobj = Py_None; | |
1586 | return resultobj; | |
1587 | fail: | |
1588 | return NULL; | |
1589 | } | |
1590 | ||
1591 | ||
1592 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1593 | PyObject *resultobj; | |
1594 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1595 | wxBitmap *arg2 = 0 ; | |
1596 | PyObject * obj0 = 0 ; | |
1597 | PyObject * obj1 = 0 ; | |
1598 | char *kwnames[] = { | |
1599 | (char *) "self",(char *) "bitmap", NULL | |
1600 | }; | |
1601 | ||
1602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1604 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1605 | if (arg2 == NULL) { | |
1606 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1607 | } | |
1608 | { | |
1609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1610 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1611 | ||
1612 | wxPyEndAllowThreads(__tstate); | |
1613 | if (PyErr_Occurred()) SWIG_fail; | |
1614 | } | |
1615 | Py_INCREF(Py_None); resultobj = Py_None; | |
1616 | return resultobj; | |
1617 | fail: | |
1618 | return NULL; | |
1619 | } | |
1620 | ||
1621 | ||
1622 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1623 | PyObject *resultobj; | |
1624 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1625 | wxBitmap *arg2 = 0 ; | |
1626 | PyObject * obj0 = 0 ; | |
1627 | PyObject * obj1 = 0 ; | |
1628 | char *kwnames[] = { | |
1629 | (char *) "self",(char *) "bitmap", NULL | |
1630 | }; | |
1631 | ||
1632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1634 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1635 | if (arg2 == NULL) { | |
1636 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1637 | } | |
1638 | { | |
1639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1640 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1641 | ||
1642 | wxPyEndAllowThreads(__tstate); | |
1643 | if (PyErr_Occurred()) SWIG_fail; | |
1644 | } | |
1645 | Py_INCREF(Py_None); resultobj = Py_None; | |
1646 | return resultobj; | |
1647 | fail: | |
1648 | return NULL; | |
1649 | } | |
1650 | ||
1651 | ||
1652 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1653 | PyObject *resultobj; | |
1654 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1655 | int arg2 ; | |
1656 | int arg3 ; | |
1657 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1658 | PyObject * obj1 = 0 ; |
1659 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1660 | char *kwnames[] = { |
1661 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1662 | }; | |
1663 | ||
8edf1c75 | 1664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1666 | { |
1667 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1668 | if (PyErr_Occurred()) SWIG_fail; | |
1669 | } | |
1670 | { | |
1671 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1672 | if (PyErr_Occurred()) SWIG_fail; | |
1673 | } | |
d14a1e28 RD |
1674 | { |
1675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1676 | (arg1)->SetMargins(arg2,arg3); | |
1677 | ||
1678 | wxPyEndAllowThreads(__tstate); | |
1679 | if (PyErr_Occurred()) SWIG_fail; | |
1680 | } | |
1681 | Py_INCREF(Py_None); resultobj = Py_None; | |
1682 | return resultobj; | |
1683 | fail: | |
1684 | return NULL; | |
1685 | } | |
1686 | ||
1687 | ||
1688 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1689 | PyObject *resultobj; | |
1690 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1691 | int result; | |
1692 | PyObject * obj0 = 0 ; | |
1693 | char *kwnames[] = { | |
1694 | (char *) "self", NULL | |
1695 | }; | |
1696 | ||
1697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
1698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1699 | { | |
1700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1701 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1702 | ||
1703 | wxPyEndAllowThreads(__tstate); | |
1704 | if (PyErr_Occurred()) SWIG_fail; | |
1705 | } | |
8edf1c75 | 1706 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1707 | return resultobj; |
1708 | fail: | |
1709 | return NULL; | |
1710 | } | |
1711 | ||
1712 | ||
1713 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1714 | PyObject *resultobj; | |
1715 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1716 | int result; | |
1717 | PyObject * obj0 = 0 ; | |
1718 | char *kwnames[] = { | |
1719 | (char *) "self", NULL | |
1720 | }; | |
1721 | ||
1722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
1723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1724 | { | |
1725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1726 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1727 | ||
1728 | wxPyEndAllowThreads(__tstate); | |
1729 | if (PyErr_Occurred()) SWIG_fail; | |
1730 | } | |
8edf1c75 | 1731 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1732 | return resultobj; |
1733 | fail: | |
1734 | return NULL; | |
1735 | } | |
1736 | ||
1737 | ||
1738 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1739 | PyObject *obj; | |
1740 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1741 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1742 | Py_INCREF(obj); | |
1743 | return Py_BuildValue((char *)""); | |
1744 | } | |
8edf1c75 | 1745 | static int _wrap_CheckBoxNameStr_set(PyObject *) { |
cbd72d4f RD |
1746 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
1747 | return 1; | |
1748 | } | |
1749 | ||
1750 | ||
1751 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1752 | PyObject *pyobj; | |
1753 | ||
1754 | { | |
1755 | #if wxUSE_UNICODE | |
1756 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1757 | #else | |
1758 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1759 | #endif | |
1760 | } | |
1761 | return pyobj; | |
1762 | } | |
1763 | ||
1764 | ||
d14a1e28 RD |
1765 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
1766 | PyObject *resultobj; | |
1767 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1768 | int arg2 ; |
d14a1e28 RD |
1769 | wxString *arg3 = 0 ; |
1770 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1771 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1772 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1773 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1774 | long arg6 = (long) 0 ; | |
1775 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1776 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1777 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1778 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1779 | wxCheckBox *result; | |
423f194a | 1780 | bool temp3 = False ; |
d14a1e28 RD |
1781 | wxPoint temp4 ; |
1782 | wxSize temp5 ; | |
423f194a | 1783 | bool temp8 = False ; |
d14a1e28 | 1784 | PyObject * obj0 = 0 ; |
8edf1c75 | 1785 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1786 | PyObject * obj2 = 0 ; |
1787 | PyObject * obj3 = 0 ; | |
1788 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1789 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1790 | PyObject * obj6 = 0 ; |
1791 | PyObject * obj7 = 0 ; | |
1792 | char *kwnames[] = { | |
1793 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1794 | }; | |
1795 | ||
8edf1c75 | 1796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 1797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1798 | { |
1799 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1800 | if (PyErr_Occurred()) SWIG_fail; | |
1801 | } | |
d14a1e28 RD |
1802 | { |
1803 | arg3 = wxString_in_helper(obj2); | |
1804 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 1805 | temp3 = True; |
d14a1e28 RD |
1806 | } |
1807 | if (obj3) { | |
1808 | { | |
1809 | arg4 = &temp4; | |
1810 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1811 | } | |
1812 | } | |
1813 | if (obj4) { | |
1814 | { | |
1815 | arg5 = &temp5; | |
1816 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1817 | } | |
1818 | } | |
8edf1c75 RD |
1819 | if (obj5) { |
1820 | { | |
1821 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1822 | if (PyErr_Occurred()) SWIG_fail; | |
1823 | } | |
1824 | } | |
d14a1e28 RD |
1825 | if (obj6) { |
1826 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1827 | if (arg7 == NULL) { | |
1828 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1829 | } | |
1830 | } | |
1831 | if (obj7) { | |
1832 | { | |
1833 | arg8 = wxString_in_helper(obj7); | |
1834 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1835 | temp8 = True; |
d14a1e28 RD |
1836 | } |
1837 | } | |
1838 | { | |
1839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1840 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1841 | ||
1842 | wxPyEndAllowThreads(__tstate); | |
1843 | if (PyErr_Occurred()) SWIG_fail; | |
1844 | } | |
1845 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1846 | { | |
1847 | if (temp3) | |
1848 | delete arg3; | |
1849 | } | |
1850 | { | |
1851 | if (temp8) | |
1852 | delete arg8; | |
1853 | } | |
1854 | return resultobj; | |
1855 | fail: | |
1856 | { | |
1857 | if (temp3) | |
1858 | delete arg3; | |
1859 | } | |
1860 | { | |
1861 | if (temp8) | |
1862 | delete arg8; | |
1863 | } | |
1864 | return NULL; | |
1865 | } | |
1866 | ||
1867 | ||
1868 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1869 | PyObject *resultobj; | |
1870 | wxCheckBox *result; | |
1871 | char *kwnames[] = { | |
1872 | NULL | |
1873 | }; | |
1874 | ||
1875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
1876 | { | |
1877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1878 | result = (wxCheckBox *)new wxCheckBox(); | |
1879 | ||
1880 | wxPyEndAllowThreads(__tstate); | |
1881 | if (PyErr_Occurred()) SWIG_fail; | |
1882 | } | |
1883 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1884 | return resultobj; | |
1885 | fail: | |
1886 | return NULL; | |
1887 | } | |
1888 | ||
1889 | ||
1890 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1891 | PyObject *resultobj; | |
1892 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1893 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1894 | int arg3 ; |
d14a1e28 RD |
1895 | wxString *arg4 = 0 ; |
1896 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1897 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1898 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1899 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1900 | long arg7 = (long) 0 ; | |
1901 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1902 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1903 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
1904 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1905 | bool result; | |
423f194a | 1906 | bool temp4 = False ; |
d14a1e28 RD |
1907 | wxPoint temp5 ; |
1908 | wxSize temp6 ; | |
423f194a | 1909 | bool temp9 = False ; |
d14a1e28 RD |
1910 | PyObject * obj0 = 0 ; |
1911 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1912 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1913 | PyObject * obj3 = 0 ; |
1914 | PyObject * obj4 = 0 ; | |
1915 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1916 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1917 | PyObject * obj7 = 0 ; |
1918 | PyObject * obj8 = 0 ; | |
1919 | char *kwnames[] = { | |
1920 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1921 | }; | |
1922 | ||
8edf1c75 | 1923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1925 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
1926 | { |
1927 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1928 | if (PyErr_Occurred()) SWIG_fail; | |
1929 | } | |
d14a1e28 RD |
1930 | { |
1931 | arg4 = wxString_in_helper(obj3); | |
1932 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 1933 | temp4 = True; |
d14a1e28 RD |
1934 | } |
1935 | if (obj4) { | |
1936 | { | |
1937 | arg5 = &temp5; | |
1938 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1939 | } | |
1940 | } | |
1941 | if (obj5) { | |
1942 | { | |
1943 | arg6 = &temp6; | |
1944 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1945 | } | |
1946 | } | |
8edf1c75 RD |
1947 | if (obj6) { |
1948 | { | |
1949 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1950 | if (PyErr_Occurred()) SWIG_fail; | |
1951 | } | |
1952 | } | |
d14a1e28 RD |
1953 | if (obj7) { |
1954 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1955 | if (arg8 == NULL) { | |
1956 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1957 | } | |
1958 | } | |
1959 | if (obj8) { | |
1960 | { | |
1961 | arg9 = wxString_in_helper(obj8); | |
1962 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1963 | temp9 = True; |
d14a1e28 RD |
1964 | } |
1965 | } | |
1966 | { | |
1967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1968 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1969 | ||
1970 | wxPyEndAllowThreads(__tstate); | |
1971 | if (PyErr_Occurred()) SWIG_fail; | |
1972 | } | |
02a34c4c | 1973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1974 | { |
1975 | if (temp4) | |
1976 | delete arg4; | |
1977 | } | |
1978 | { | |
1979 | if (temp9) | |
1980 | delete arg9; | |
1981 | } | |
1982 | return resultobj; | |
1983 | fail: | |
1984 | { | |
1985 | if (temp4) | |
1986 | delete arg4; | |
1987 | } | |
1988 | { | |
1989 | if (temp9) | |
1990 | delete arg9; | |
1991 | } | |
1992 | return NULL; | |
1993 | } | |
1994 | ||
1995 | ||
1996 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1997 | PyObject *resultobj; | |
1998 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1999 | bool result; | |
2000 | PyObject * obj0 = 0 ; | |
2001 | char *kwnames[] = { | |
2002 | (char *) "self", NULL | |
2003 | }; | |
2004 | ||
2005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
2006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2007 | { | |
2008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2009 | result = (bool)(arg1)->GetValue(); | |
2010 | ||
2011 | wxPyEndAllowThreads(__tstate); | |
2012 | if (PyErr_Occurred()) SWIG_fail; | |
2013 | } | |
02a34c4c | 2014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2015 | return resultobj; |
2016 | fail: | |
2017 | return NULL; | |
2018 | } | |
2019 | ||
2020 | ||
2021 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2022 | PyObject *resultobj; | |
2023 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2024 | bool result; | |
2025 | PyObject * obj0 = 0 ; | |
2026 | char *kwnames[] = { | |
2027 | (char *) "self", NULL | |
2028 | }; | |
2029 | ||
2030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2032 | { | |
2033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2034 | result = (bool)(arg1)->IsChecked(); | |
2035 | ||
2036 | wxPyEndAllowThreads(__tstate); | |
2037 | if (PyErr_Occurred()) SWIG_fail; | |
2038 | } | |
02a34c4c | 2039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2040 | return resultobj; |
2041 | fail: | |
2042 | return NULL; | |
2043 | } | |
2044 | ||
2045 | ||
2046 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2047 | PyObject *resultobj; | |
2048 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2049 | bool arg2 ; | |
2050 | PyObject * obj0 = 0 ; | |
2051 | PyObject * obj1 = 0 ; | |
2052 | char *kwnames[] = { | |
2053 | (char *) "self",(char *) "state", NULL | |
2054 | }; | |
2055 | ||
2056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 2058 | { |
8edf1c75 | 2059 | arg2 = (bool const) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
2060 | if (PyErr_Occurred()) SWIG_fail; |
2061 | } | |
d14a1e28 RD |
2062 | { |
2063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2064 | (arg1)->SetValue(arg2); | |
2065 | ||
2066 | wxPyEndAllowThreads(__tstate); | |
2067 | if (PyErr_Occurred()) SWIG_fail; | |
2068 | } | |
2069 | Py_INCREF(Py_None); resultobj = Py_None; | |
2070 | return resultobj; | |
2071 | fail: | |
2072 | return NULL; | |
2073 | } | |
2074 | ||
2075 | ||
2076 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2077 | PyObject *resultobj; | |
2078 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2079 | int result; | |
2080 | PyObject * obj0 = 0 ; | |
2081 | char *kwnames[] = { | |
2082 | (char *) "self", NULL | |
2083 | }; | |
2084 | ||
2085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2087 | { | |
2088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2089 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2090 | ||
2091 | wxPyEndAllowThreads(__tstate); | |
2092 | if (PyErr_Occurred()) SWIG_fail; | |
2093 | } | |
8edf1c75 | 2094 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2095 | return resultobj; |
2096 | fail: | |
2097 | return NULL; | |
2098 | } | |
2099 | ||
2100 | ||
2101 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2102 | PyObject *resultobj; | |
2103 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2104 | int arg2 ; | |
2105 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2106 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2107 | char *kwnames[] = { |
2108 | (char *) "self",(char *) "state", NULL | |
2109 | }; | |
2110 | ||
8edf1c75 | 2111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2113 | { |
2114 | arg2 = (wxCheckBoxState) SWIG_PyObj_AsInt(obj1); | |
2115 | if (PyErr_Occurred()) SWIG_fail; | |
2116 | } | |
d14a1e28 RD |
2117 | { |
2118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2119 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2120 | ||
2121 | wxPyEndAllowThreads(__tstate); | |
2122 | if (PyErr_Occurred()) SWIG_fail; | |
2123 | } | |
2124 | Py_INCREF(Py_None); resultobj = Py_None; | |
2125 | return resultobj; | |
2126 | fail: | |
2127 | return NULL; | |
2128 | } | |
2129 | ||
2130 | ||
2131 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2132 | PyObject *resultobj; | |
2133 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2134 | bool result; | |
2135 | PyObject * obj0 = 0 ; | |
2136 | char *kwnames[] = { | |
2137 | (char *) "self", NULL | |
2138 | }; | |
2139 | ||
2140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2142 | { | |
2143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2144 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2145 | ||
2146 | wxPyEndAllowThreads(__tstate); | |
2147 | if (PyErr_Occurred()) SWIG_fail; | |
2148 | } | |
02a34c4c | 2149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2150 | return resultobj; |
2151 | fail: | |
2152 | return NULL; | |
2153 | } | |
2154 | ||
2155 | ||
2156 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2157 | PyObject *resultobj; | |
2158 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2159 | bool result; | |
2160 | PyObject * obj0 = 0 ; | |
2161 | char *kwnames[] = { | |
2162 | (char *) "self", NULL | |
2163 | }; | |
2164 | ||
2165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2167 | { | |
2168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2169 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2170 | ||
2171 | wxPyEndAllowThreads(__tstate); | |
2172 | if (PyErr_Occurred()) SWIG_fail; | |
2173 | } | |
02a34c4c | 2174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2175 | return resultobj; |
2176 | fail: | |
2177 | return NULL; | |
2178 | } | |
2179 | ||
2180 | ||
2181 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { | |
2182 | PyObject *obj; | |
2183 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2184 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2185 | Py_INCREF(obj); | |
2186 | return Py_BuildValue((char *)""); | |
2187 | } | |
8edf1c75 | 2188 | static int _wrap_ChoiceNameStr_set(PyObject *) { |
cbd72d4f RD |
2189 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
2190 | return 1; | |
2191 | } | |
2192 | ||
2193 | ||
2194 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2195 | PyObject *pyobj; | |
2196 | ||
2197 | { | |
2198 | #if wxUSE_UNICODE | |
2199 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2200 | #else | |
2201 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2202 | #endif | |
2203 | } | |
2204 | return pyobj; | |
2205 | } | |
2206 | ||
2207 | ||
d14a1e28 RD |
2208 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { |
2209 | PyObject *resultobj; | |
2210 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2211 | int arg2 ; |
d14a1e28 RD |
2212 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2213 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2214 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2215 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
02a34c4c RD |
2216 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
2217 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2218 | long arg6 = (long) 0 ; | |
2219 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2220 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2221 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2222 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
2223 | wxChoice *result; |
2224 | wxPoint temp3 ; | |
2225 | wxSize temp4 ; | |
0ffb2aa6 | 2226 | bool temp5 = False ; |
423f194a | 2227 | bool temp8 = False ; |
d14a1e28 | 2228 | PyObject * obj0 = 0 ; |
8edf1c75 | 2229 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2230 | PyObject * obj2 = 0 ; |
2231 | PyObject * obj3 = 0 ; | |
2232 | PyObject * obj4 = 0 ; | |
8edf1c75 | 2233 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2234 | PyObject * obj6 = 0 ; |
2235 | PyObject * obj7 = 0 ; | |
2236 | char *kwnames[] = { | |
2237 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2238 | }; | |
2239 | ||
8edf1c75 | 2240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 2241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2242 | { |
2243 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2244 | if (PyErr_Occurred()) SWIG_fail; | |
2245 | } | |
d14a1e28 RD |
2246 | if (obj2) { |
2247 | { | |
2248 | arg3 = &temp3; | |
2249 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2250 | } | |
2251 | } | |
2252 | if (obj3) { | |
2253 | { | |
2254 | arg4 = &temp4; | |
2255 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2256 | } | |
2257 | } | |
2258 | if (obj4) { | |
2259 | { | |
02a34c4c RD |
2260 | if (! PySequence_Check(obj4)) { |
2261 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2262 | SWIG_fail; | |
2263 | } | |
2264 | arg5 = new wxArrayString; | |
0ffb2aa6 | 2265 | temp5 = True; |
02a34c4c RD |
2266 | int i, len=PySequence_Length(obj4); |
2267 | for (i=0; i<len; i++) { | |
2268 | PyObject* item = PySequence_GetItem(obj4, i); | |
2269 | #if wxUSE_UNICODE | |
2270 | PyObject* str = PyObject_Unicode(item); | |
2271 | #else | |
2272 | PyObject* str = PyObject_Str(item); | |
2273 | #endif | |
2274 | arg5->Add(Py2wxString(str)); | |
2275 | Py_DECREF(item); | |
2276 | Py_DECREF(str); | |
2277 | } | |
d14a1e28 RD |
2278 | } |
2279 | } | |
8edf1c75 RD |
2280 | if (obj5) { |
2281 | { | |
02a34c4c | 2282 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
2283 | if (PyErr_Occurred()) SWIG_fail; |
2284 | } | |
2285 | } | |
d14a1e28 | 2286 | if (obj6) { |
02a34c4c RD |
2287 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2288 | if (arg7 == NULL) { | |
d14a1e28 RD |
2289 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2290 | } | |
2291 | } | |
2292 | if (obj7) { | |
2293 | { | |
02a34c4c RD |
2294 | arg8 = wxString_in_helper(obj7); |
2295 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 2296 | temp8 = True; |
d14a1e28 RD |
2297 | } |
2298 | } | |
2299 | { | |
2300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 2301 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
2302 | |
2303 | wxPyEndAllowThreads(__tstate); | |
2304 | if (PyErr_Occurred()) SWIG_fail; | |
2305 | } | |
2306 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2307 | { | |
0ffb2aa6 | 2308 | if (temp5) delete arg5; |
d14a1e28 RD |
2309 | } |
2310 | { | |
2311 | if (temp8) | |
02a34c4c | 2312 | delete arg8; |
d14a1e28 RD |
2313 | } |
2314 | return resultobj; | |
2315 | fail: | |
2316 | { | |
0ffb2aa6 | 2317 | if (temp5) delete arg5; |
d14a1e28 RD |
2318 | } |
2319 | { | |
2320 | if (temp8) | |
02a34c4c | 2321 | delete arg8; |
d14a1e28 RD |
2322 | } |
2323 | return NULL; | |
2324 | } | |
2325 | ||
2326 | ||
2327 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2328 | PyObject *resultobj; | |
2329 | wxChoice *result; | |
2330 | char *kwnames[] = { | |
2331 | NULL | |
2332 | }; | |
2333 | ||
2334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2335 | { | |
2336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2337 | result = (wxChoice *)new wxChoice(); | |
2338 | ||
2339 | wxPyEndAllowThreads(__tstate); | |
2340 | if (PyErr_Occurred()) SWIG_fail; | |
2341 | } | |
2342 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2343 | return resultobj; | |
2344 | fail: | |
2345 | return NULL; | |
2346 | } | |
2347 | ||
2348 | ||
2349 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2350 | PyObject *resultobj; | |
2351 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2352 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2353 | int arg3 ; |
d14a1e28 RD |
2354 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2355 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2356 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2357 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
02a34c4c RD |
2358 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2359 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2360 | long arg7 = (long) 0 ; | |
2361 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2362 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2363 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2364 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
2365 | bool result; |
2366 | wxPoint temp4 ; | |
2367 | wxSize temp5 ; | |
0ffb2aa6 | 2368 | bool temp6 = False ; |
423f194a | 2369 | bool temp9 = False ; |
d14a1e28 RD |
2370 | PyObject * obj0 = 0 ; |
2371 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2372 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2373 | PyObject * obj3 = 0 ; |
2374 | PyObject * obj4 = 0 ; | |
2375 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2376 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2377 | PyObject * obj7 = 0 ; |
2378 | PyObject * obj8 = 0 ; | |
2379 | char *kwnames[] = { | |
2380 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2381 | }; | |
2382 | ||
8edf1c75 | 2383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
2384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2385 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
2386 | { |
2387 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2388 | if (PyErr_Occurred()) SWIG_fail; | |
2389 | } | |
d14a1e28 RD |
2390 | if (obj3) { |
2391 | { | |
2392 | arg4 = &temp4; | |
2393 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2394 | } | |
2395 | } | |
2396 | if (obj4) { | |
2397 | { | |
2398 | arg5 = &temp5; | |
2399 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2400 | } | |
2401 | } | |
2402 | if (obj5) { | |
2403 | { | |
02a34c4c RD |
2404 | if (! PySequence_Check(obj5)) { |
2405 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2406 | SWIG_fail; | |
2407 | } | |
2408 | arg6 = new wxArrayString; | |
0ffb2aa6 | 2409 | temp6 = True; |
02a34c4c RD |
2410 | int i, len=PySequence_Length(obj5); |
2411 | for (i=0; i<len; i++) { | |
2412 | PyObject* item = PySequence_GetItem(obj5, i); | |
2413 | #if wxUSE_UNICODE | |
2414 | PyObject* str = PyObject_Unicode(item); | |
2415 | #else | |
2416 | PyObject* str = PyObject_Str(item); | |
2417 | #endif | |
2418 | arg6->Add(Py2wxString(str)); | |
2419 | Py_DECREF(item); | |
2420 | Py_DECREF(str); | |
2421 | } | |
d14a1e28 RD |
2422 | } |
2423 | } | |
8edf1c75 RD |
2424 | if (obj6) { |
2425 | { | |
02a34c4c | 2426 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
2427 | if (PyErr_Occurred()) SWIG_fail; |
2428 | } | |
2429 | } | |
d14a1e28 | 2430 | if (obj7) { |
02a34c4c RD |
2431 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2432 | if (arg8 == NULL) { | |
d14a1e28 RD |
2433 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2434 | } | |
2435 | } | |
2436 | if (obj8) { | |
2437 | { | |
02a34c4c RD |
2438 | arg9 = wxString_in_helper(obj8); |
2439 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2440 | temp9 = True; |
d14a1e28 RD |
2441 | } |
2442 | } | |
2443 | { | |
2444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 2445 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
2446 | |
2447 | wxPyEndAllowThreads(__tstate); | |
2448 | if (PyErr_Occurred()) SWIG_fail; | |
2449 | } | |
02a34c4c | 2450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 2451 | { |
0ffb2aa6 | 2452 | if (temp6) delete arg6; |
d14a1e28 RD |
2453 | } |
2454 | { | |
2455 | if (temp9) | |
02a34c4c | 2456 | delete arg9; |
d14a1e28 RD |
2457 | } |
2458 | return resultobj; | |
2459 | fail: | |
2460 | { | |
0ffb2aa6 | 2461 | if (temp6) delete arg6; |
d14a1e28 RD |
2462 | } |
2463 | { | |
2464 | if (temp9) | |
02a34c4c | 2465 | delete arg9; |
d14a1e28 RD |
2466 | } |
2467 | return NULL; | |
2468 | } | |
2469 | ||
2470 | ||
d14a1e28 RD |
2471 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2472 | PyObject *resultobj; | |
2473 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2474 | int arg2 ; | |
2475 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2476 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2477 | char *kwnames[] = { |
2478 | (char *) "self",(char *) "n", NULL | |
2479 | }; | |
2480 | ||
8edf1c75 | 2481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2483 | { |
2484 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
2485 | if (PyErr_Occurred()) SWIG_fail; | |
2486 | } | |
d14a1e28 RD |
2487 | { |
2488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2489 | (arg1)->SetSelection(arg2); | |
2490 | ||
2491 | wxPyEndAllowThreads(__tstate); | |
2492 | if (PyErr_Occurred()) SWIG_fail; | |
2493 | } | |
2494 | Py_INCREF(Py_None); resultobj = Py_None; | |
2495 | return resultobj; | |
2496 | fail: | |
2497 | return NULL; | |
2498 | } | |
2499 | ||
2500 | ||
2501 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2502 | PyObject *resultobj; | |
2503 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2504 | wxString *arg2 = 0 ; | |
423f194a | 2505 | bool temp2 = False ; |
d14a1e28 RD |
2506 | PyObject * obj0 = 0 ; |
2507 | PyObject * obj1 = 0 ; | |
2508 | char *kwnames[] = { | |
2509 | (char *) "self",(char *) "string", NULL | |
2510 | }; | |
2511 | ||
2512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2514 | { | |
2515 | arg2 = wxString_in_helper(obj1); | |
2516 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2517 | temp2 = True; |
d14a1e28 RD |
2518 | } |
2519 | { | |
2520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2521 | (arg1)->SetStringSelection((wxString const &)*arg2); | |
2522 | ||
2523 | wxPyEndAllowThreads(__tstate); | |
2524 | if (PyErr_Occurred()) SWIG_fail; | |
2525 | } | |
2526 | Py_INCREF(Py_None); resultobj = Py_None; | |
2527 | { | |
2528 | if (temp2) | |
2529 | delete arg2; | |
2530 | } | |
2531 | return resultobj; | |
2532 | fail: | |
2533 | { | |
2534 | if (temp2) | |
2535 | delete arg2; | |
2536 | } | |
2537 | return NULL; | |
2538 | } | |
2539 | ||
2540 | ||
2541 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2542 | PyObject *resultobj; | |
2543 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2544 | int arg2 ; | |
2545 | wxString *arg3 = 0 ; | |
423f194a | 2546 | bool temp3 = False ; |
d14a1e28 | 2547 | PyObject * obj0 = 0 ; |
8edf1c75 | 2548 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2549 | PyObject * obj2 = 0 ; |
2550 | char *kwnames[] = { | |
1f05e33b | 2551 | (char *) "self",(char *) "n",(char *) "string", NULL |
d14a1e28 RD |
2552 | }; |
2553 | ||
8edf1c75 | 2554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2556 | { |
2557 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2558 | if (PyErr_Occurred()) SWIG_fail; | |
2559 | } | |
d14a1e28 RD |
2560 | { |
2561 | arg3 = wxString_in_helper(obj2); | |
2562 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2563 | temp3 = True; |
d14a1e28 RD |
2564 | } |
2565 | { | |
2566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2567 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2568 | ||
2569 | wxPyEndAllowThreads(__tstate); | |
2570 | if (PyErr_Occurred()) SWIG_fail; | |
2571 | } | |
2572 | Py_INCREF(Py_None); resultobj = Py_None; | |
2573 | { | |
2574 | if (temp3) | |
2575 | delete arg3; | |
2576 | } | |
2577 | return resultobj; | |
2578 | fail: | |
2579 | { | |
2580 | if (temp3) | |
2581 | delete arg3; | |
2582 | } | |
2583 | return NULL; | |
2584 | } | |
2585 | ||
2586 | ||
2587 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2588 | PyObject *obj; | |
2589 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2590 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2591 | Py_INCREF(obj); | |
2592 | return Py_BuildValue((char *)""); | |
2593 | } | |
8edf1c75 | 2594 | static int _wrap_ComboBoxNameStr_set(PyObject *) { |
cbd72d4f RD |
2595 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
2596 | return 1; | |
2597 | } | |
2598 | ||
2599 | ||
2600 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2601 | PyObject *pyobj; | |
2602 | ||
2603 | { | |
2604 | #if wxUSE_UNICODE | |
2605 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2606 | #else | |
2607 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2608 | #endif | |
2609 | } | |
2610 | return pyobj; | |
2611 | } | |
2612 | ||
2613 | ||
d14a1e28 RD |
2614 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2615 | PyObject *resultobj; | |
2616 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2617 | int arg2 ; |
d14a1e28 RD |
2618 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2619 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2620 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2621 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2622 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2623 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
02a34c4c RD |
2624 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2625 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2626 | long arg7 = (long) 0 ; | |
2627 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2628 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2629 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2630 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 2631 | wxComboBox *result; |
423f194a | 2632 | bool temp3 = False ; |
d14a1e28 RD |
2633 | wxPoint temp4 ; |
2634 | wxSize temp5 ; | |
0ffb2aa6 | 2635 | bool temp6 = False ; |
423f194a | 2636 | bool temp9 = False ; |
d14a1e28 | 2637 | PyObject * obj0 = 0 ; |
8edf1c75 | 2638 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2639 | PyObject * obj2 = 0 ; |
2640 | PyObject * obj3 = 0 ; | |
2641 | PyObject * obj4 = 0 ; | |
2642 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2643 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2644 | PyObject * obj7 = 0 ; |
2645 | PyObject * obj8 = 0 ; | |
2646 | char *kwnames[] = { | |
2647 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2648 | }; | |
2649 | ||
8edf1c75 | 2650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 2651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2652 | { |
2653 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2654 | if (PyErr_Occurred()) SWIG_fail; | |
2655 | } | |
d14a1e28 RD |
2656 | if (obj2) { |
2657 | { | |
2658 | arg3 = wxString_in_helper(obj2); | |
2659 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2660 | temp3 = True; |
d14a1e28 RD |
2661 | } |
2662 | } | |
2663 | if (obj3) { | |
2664 | { | |
2665 | arg4 = &temp4; | |
2666 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2667 | } | |
2668 | } | |
2669 | if (obj4) { | |
2670 | { | |
2671 | arg5 = &temp5; | |
2672 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2673 | } | |
2674 | } | |
2675 | if (obj5) { | |
2676 | { | |
02a34c4c RD |
2677 | if (! PySequence_Check(obj5)) { |
2678 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2679 | SWIG_fail; | |
2680 | } | |
2681 | arg6 = new wxArrayString; | |
0ffb2aa6 | 2682 | temp6 = True; |
02a34c4c RD |
2683 | int i, len=PySequence_Length(obj5); |
2684 | for (i=0; i<len; i++) { | |
2685 | PyObject* item = PySequence_GetItem(obj5, i); | |
2686 | #if wxUSE_UNICODE | |
2687 | PyObject* str = PyObject_Unicode(item); | |
2688 | #else | |
2689 | PyObject* str = PyObject_Str(item); | |
2690 | #endif | |
2691 | arg6->Add(Py2wxString(str)); | |
2692 | Py_DECREF(item); | |
2693 | Py_DECREF(str); | |
2694 | } | |
d14a1e28 RD |
2695 | } |
2696 | } | |
8edf1c75 RD |
2697 | if (obj6) { |
2698 | { | |
02a34c4c | 2699 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
2700 | if (PyErr_Occurred()) SWIG_fail; |
2701 | } | |
2702 | } | |
d14a1e28 | 2703 | if (obj7) { |
02a34c4c RD |
2704 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2705 | if (arg8 == NULL) { | |
d14a1e28 RD |
2706 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2707 | } | |
2708 | } | |
2709 | if (obj8) { | |
2710 | { | |
02a34c4c RD |
2711 | arg9 = wxString_in_helper(obj8); |
2712 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2713 | temp9 = True; |
d14a1e28 RD |
2714 | } |
2715 | } | |
2716 | { | |
2717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 2718 | 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 |
2719 | |
2720 | wxPyEndAllowThreads(__tstate); | |
2721 | if (PyErr_Occurred()) SWIG_fail; | |
2722 | } | |
2723 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2724 | { | |
2725 | if (temp3) | |
2726 | delete arg3; | |
2727 | } | |
2728 | { | |
0ffb2aa6 | 2729 | if (temp6) delete arg6; |
d14a1e28 RD |
2730 | } |
2731 | { | |
2732 | if (temp9) | |
02a34c4c | 2733 | delete arg9; |
d14a1e28 RD |
2734 | } |
2735 | return resultobj; | |
2736 | fail: | |
2737 | { | |
2738 | if (temp3) | |
2739 | delete arg3; | |
2740 | } | |
2741 | { | |
0ffb2aa6 | 2742 | if (temp6) delete arg6; |
d14a1e28 RD |
2743 | } |
2744 | { | |
2745 | if (temp9) | |
02a34c4c | 2746 | delete arg9; |
d14a1e28 RD |
2747 | } |
2748 | return NULL; | |
2749 | } | |
2750 | ||
2751 | ||
2752 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2753 | PyObject *resultobj; | |
2754 | wxComboBox *result; | |
2755 | char *kwnames[] = { | |
2756 | NULL | |
2757 | }; | |
2758 | ||
2759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2760 | { | |
2761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2762 | result = (wxComboBox *)new wxComboBox(); | |
2763 | ||
2764 | wxPyEndAllowThreads(__tstate); | |
2765 | if (PyErr_Occurred()) SWIG_fail; | |
2766 | } | |
2767 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2768 | return resultobj; | |
2769 | fail: | |
2770 | return NULL; | |
2771 | } | |
2772 | ||
2773 | ||
2774 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2775 | PyObject *resultobj; | |
2776 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2777 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2778 | int arg3 ; |
d14a1e28 RD |
2779 | wxString const &arg4_defvalue = wxPyEmptyString ; |
2780 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2781 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2782 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2783 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2784 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
02a34c4c RD |
2785 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
2786 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
2787 | long arg8 = (long) 0 ; | |
2788 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2789 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2790 | wxString const &arg10_defvalue = wxPyComboBoxNameStr ; | |
2791 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 2792 | bool result; |
423f194a | 2793 | bool temp4 = False ; |
d14a1e28 RD |
2794 | wxPoint temp5 ; |
2795 | wxSize temp6 ; | |
0ffb2aa6 | 2796 | bool temp7 = False ; |
423f194a | 2797 | bool temp10 = False ; |
d14a1e28 RD |
2798 | PyObject * obj0 = 0 ; |
2799 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2800 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2801 | PyObject * obj3 = 0 ; |
2802 | PyObject * obj4 = 0 ; | |
2803 | PyObject * obj5 = 0 ; | |
2804 | PyObject * obj6 = 0 ; | |
8edf1c75 | 2805 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
2806 | PyObject * obj8 = 0 ; |
2807 | PyObject * obj9 = 0 ; | |
2808 | char *kwnames[] = { | |
2809 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2810 | }; | |
2811 | ||
8edf1c75 | 2812 | 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 |
2813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2814 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
2815 | { |
2816 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2817 | if (PyErr_Occurred()) SWIG_fail; | |
2818 | } | |
d14a1e28 RD |
2819 | if (obj3) { |
2820 | { | |
2821 | arg4 = wxString_in_helper(obj3); | |
2822 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2823 | temp4 = True; |
d14a1e28 RD |
2824 | } |
2825 | } | |
2826 | if (obj4) { | |
2827 | { | |
2828 | arg5 = &temp5; | |
2829 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2830 | } | |
2831 | } | |
2832 | if (obj5) { | |
2833 | { | |
2834 | arg6 = &temp6; | |
2835 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2836 | } | |
2837 | } | |
2838 | if (obj6) { | |
2839 | { | |
02a34c4c RD |
2840 | if (! PySequence_Check(obj6)) { |
2841 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2842 | SWIG_fail; | |
2843 | } | |
2844 | arg7 = new wxArrayString; | |
0ffb2aa6 | 2845 | temp7 = True; |
02a34c4c RD |
2846 | int i, len=PySequence_Length(obj6); |
2847 | for (i=0; i<len; i++) { | |
2848 | PyObject* item = PySequence_GetItem(obj6, i); | |
2849 | #if wxUSE_UNICODE | |
2850 | PyObject* str = PyObject_Unicode(item); | |
2851 | #else | |
2852 | PyObject* str = PyObject_Str(item); | |
2853 | #endif | |
2854 | arg7->Add(Py2wxString(str)); | |
2855 | Py_DECREF(item); | |
2856 | Py_DECREF(str); | |
2857 | } | |
d14a1e28 RD |
2858 | } |
2859 | } | |
8edf1c75 RD |
2860 | if (obj7) { |
2861 | { | |
02a34c4c | 2862 | arg8 = (long) SWIG_PyObj_AsLong(obj7); |
8edf1c75 RD |
2863 | if (PyErr_Occurred()) SWIG_fail; |
2864 | } | |
2865 | } | |
d14a1e28 | 2866 | if (obj8) { |
02a34c4c RD |
2867 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2868 | if (arg9 == NULL) { | |
d14a1e28 RD |
2869 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2870 | } | |
2871 | } | |
2872 | if (obj9) { | |
2873 | { | |
02a34c4c RD |
2874 | arg10 = wxString_in_helper(obj9); |
2875 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 2876 | temp10 = True; |
d14a1e28 RD |
2877 | } |
2878 | } | |
2879 | { | |
2880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 2881 | 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 |
2882 | |
2883 | wxPyEndAllowThreads(__tstate); | |
2884 | if (PyErr_Occurred()) SWIG_fail; | |
2885 | } | |
02a34c4c | 2886 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2887 | { |
2888 | if (temp4) | |
2889 | delete arg4; | |
2890 | } | |
2891 | { | |
0ffb2aa6 | 2892 | if (temp7) delete arg7; |
d14a1e28 RD |
2893 | } |
2894 | { | |
2895 | if (temp10) | |
02a34c4c | 2896 | delete arg10; |
d14a1e28 RD |
2897 | } |
2898 | return resultobj; | |
2899 | fail: | |
2900 | { | |
2901 | if (temp4) | |
2902 | delete arg4; | |
2903 | } | |
2904 | { | |
0ffb2aa6 | 2905 | if (temp7) delete arg7; |
d14a1e28 RD |
2906 | } |
2907 | { | |
2908 | if (temp10) | |
02a34c4c | 2909 | delete arg10; |
d14a1e28 RD |
2910 | } |
2911 | return NULL; | |
2912 | } | |
2913 | ||
2914 | ||
2915 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2916 | PyObject *resultobj; | |
2917 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2918 | wxString result; | |
2919 | PyObject * obj0 = 0 ; | |
2920 | char *kwnames[] = { | |
2921 | (char *) "self", NULL | |
2922 | }; | |
2923 | ||
2924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
2925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2926 | { | |
2927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2928 | result = ((wxComboBox const *)arg1)->GetValue(); | |
2929 | ||
2930 | wxPyEndAllowThreads(__tstate); | |
2931 | if (PyErr_Occurred()) SWIG_fail; | |
2932 | } | |
2933 | { | |
2934 | #if wxUSE_UNICODE | |
2935 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2936 | #else | |
2937 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2938 | #endif | |
2939 | } | |
2940 | return resultobj; | |
2941 | fail: | |
2942 | return NULL; | |
2943 | } | |
2944 | ||
2945 | ||
2946 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2947 | PyObject *resultobj; | |
2948 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2949 | wxString *arg2 = 0 ; | |
423f194a | 2950 | bool temp2 = False ; |
d14a1e28 RD |
2951 | PyObject * obj0 = 0 ; |
2952 | PyObject * obj1 = 0 ; | |
2953 | char *kwnames[] = { | |
2954 | (char *) "self",(char *) "value", NULL | |
2955 | }; | |
2956 | ||
2957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2959 | { | |
2960 | arg2 = wxString_in_helper(obj1); | |
2961 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2962 | temp2 = True; |
d14a1e28 RD |
2963 | } |
2964 | { | |
2965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2966 | (arg1)->SetValue((wxString const &)*arg2); | |
2967 | ||
2968 | wxPyEndAllowThreads(__tstate); | |
2969 | if (PyErr_Occurred()) SWIG_fail; | |
2970 | } | |
2971 | Py_INCREF(Py_None); resultobj = Py_None; | |
2972 | { | |
2973 | if (temp2) | |
2974 | delete arg2; | |
2975 | } | |
2976 | return resultobj; | |
2977 | fail: | |
2978 | { | |
2979 | if (temp2) | |
2980 | delete arg2; | |
2981 | } | |
2982 | return NULL; | |
2983 | } | |
2984 | ||
2985 | ||
2986 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2987 | PyObject *resultobj; | |
2988 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2989 | PyObject * obj0 = 0 ; | |
2990 | char *kwnames[] = { | |
2991 | (char *) "self", NULL | |
2992 | }; | |
2993 | ||
2994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
2995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2996 | { | |
2997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2998 | (arg1)->Copy(); | |
2999 | ||
3000 | wxPyEndAllowThreads(__tstate); | |
3001 | if (PyErr_Occurred()) SWIG_fail; | |
3002 | } | |
3003 | Py_INCREF(Py_None); resultobj = Py_None; | |
3004 | return resultobj; | |
3005 | fail: | |
3006 | return NULL; | |
3007 | } | |
3008 | ||
3009 | ||
3010 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3011 | PyObject *resultobj; | |
3012 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3013 | PyObject * obj0 = 0 ; | |
3014 | char *kwnames[] = { | |
3015 | (char *) "self", NULL | |
3016 | }; | |
3017 | ||
3018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
3019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3020 | { | |
3021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3022 | (arg1)->Cut(); | |
3023 | ||
3024 | wxPyEndAllowThreads(__tstate); | |
3025 | if (PyErr_Occurred()) SWIG_fail; | |
3026 | } | |
3027 | Py_INCREF(Py_None); resultobj = Py_None; | |
3028 | return resultobj; | |
3029 | fail: | |
3030 | return NULL; | |
3031 | } | |
3032 | ||
3033 | ||
3034 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3035 | PyObject *resultobj; | |
3036 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3037 | PyObject * obj0 = 0 ; | |
3038 | char *kwnames[] = { | |
3039 | (char *) "self", NULL | |
3040 | }; | |
3041 | ||
3042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
3043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3044 | { | |
3045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3046 | (arg1)->Paste(); | |
3047 | ||
3048 | wxPyEndAllowThreads(__tstate); | |
3049 | if (PyErr_Occurred()) SWIG_fail; | |
3050 | } | |
3051 | Py_INCREF(Py_None); resultobj = Py_None; | |
3052 | return resultobj; | |
3053 | fail: | |
3054 | return NULL; | |
3055 | } | |
3056 | ||
3057 | ||
3058 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3059 | PyObject *resultobj; | |
3060 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3061 | long arg2 ; | |
3062 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3063 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3064 | char *kwnames[] = { |
3065 | (char *) "self",(char *) "pos", NULL | |
3066 | }; | |
3067 | ||
8edf1c75 | 3068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3070 | { |
3071 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3072 | if (PyErr_Occurred()) SWIG_fail; | |
3073 | } | |
d14a1e28 RD |
3074 | { |
3075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3076 | (arg1)->SetInsertionPoint(arg2); | |
3077 | ||
3078 | wxPyEndAllowThreads(__tstate); | |
3079 | if (PyErr_Occurred()) SWIG_fail; | |
3080 | } | |
3081 | Py_INCREF(Py_None); resultobj = Py_None; | |
3082 | return resultobj; | |
3083 | fail: | |
3084 | return NULL; | |
3085 | } | |
3086 | ||
3087 | ||
3088 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3089 | PyObject *resultobj; | |
3090 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3091 | long result; | |
3092 | PyObject * obj0 = 0 ; | |
3093 | char *kwnames[] = { | |
3094 | (char *) "self", NULL | |
3095 | }; | |
3096 | ||
3097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
3098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3099 | { | |
3100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3101 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3102 | ||
3103 | wxPyEndAllowThreads(__tstate); | |
3104 | if (PyErr_Occurred()) SWIG_fail; | |
3105 | } | |
8edf1c75 | 3106 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
3107 | return resultobj; |
3108 | fail: | |
3109 | return NULL; | |
3110 | } | |
3111 | ||
3112 | ||
3113 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3114 | PyObject *resultobj; | |
3115 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3116 | long result; | |
3117 | PyObject * obj0 = 0 ; | |
3118 | char *kwnames[] = { | |
3119 | (char *) "self", NULL | |
3120 | }; | |
3121 | ||
3122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
3123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3124 | { | |
3125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3126 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3127 | ||
3128 | wxPyEndAllowThreads(__tstate); | |
3129 | if (PyErr_Occurred()) SWIG_fail; | |
3130 | } | |
8edf1c75 | 3131 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
3132 | return resultobj; |
3133 | fail: | |
3134 | return NULL; | |
3135 | } | |
3136 | ||
3137 | ||
3138 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3139 | PyObject *resultobj; | |
3140 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3141 | long arg2 ; | |
3142 | long arg3 ; | |
3143 | wxString *arg4 = 0 ; | |
423f194a | 3144 | bool temp4 = False ; |
d14a1e28 | 3145 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3146 | PyObject * obj1 = 0 ; |
3147 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3148 | PyObject * obj3 = 0 ; |
3149 | char *kwnames[] = { | |
3150 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3151 | }; | |
3152 | ||
8edf1c75 | 3153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 3154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3155 | { |
3156 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3157 | if (PyErr_Occurred()) SWIG_fail; | |
3158 | } | |
3159 | { | |
3160 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3161 | if (PyErr_Occurred()) SWIG_fail; | |
3162 | } | |
d14a1e28 RD |
3163 | { |
3164 | arg4 = wxString_in_helper(obj3); | |
3165 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 3166 | temp4 = True; |
d14a1e28 RD |
3167 | } |
3168 | { | |
3169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3170 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3171 | ||
3172 | wxPyEndAllowThreads(__tstate); | |
3173 | if (PyErr_Occurred()) SWIG_fail; | |
3174 | } | |
3175 | Py_INCREF(Py_None); resultobj = Py_None; | |
3176 | { | |
3177 | if (temp4) | |
3178 | delete arg4; | |
3179 | } | |
3180 | return resultobj; | |
3181 | fail: | |
3182 | { | |
3183 | if (temp4) | |
3184 | delete arg4; | |
3185 | } | |
3186 | return NULL; | |
3187 | } | |
3188 | ||
3189 | ||
100c4552 RD |
3190 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3191 | PyObject *resultobj; | |
3192 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3193 | int arg2 ; | |
3194 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3195 | PyObject * obj1 = 0 ; |
100c4552 RD |
3196 | char *kwnames[] = { |
3197 | (char *) "self",(char *) "n", NULL | |
3198 | }; | |
3199 | ||
8edf1c75 | 3200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
100c4552 | 3201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3202 | { |
3203 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3204 | if (PyErr_Occurred()) SWIG_fail; | |
3205 | } | |
100c4552 RD |
3206 | { |
3207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3208 | (arg1)->SetSelection(arg2); | |
3209 | ||
3210 | wxPyEndAllowThreads(__tstate); | |
3211 | if (PyErr_Occurred()) SWIG_fail; | |
3212 | } | |
3213 | Py_INCREF(Py_None); resultobj = Py_None; | |
3214 | return resultobj; | |
3215 | fail: | |
3216 | return NULL; | |
3217 | } | |
3218 | ||
3219 | ||
d14a1e28 RD |
3220 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
3221 | PyObject *resultobj; | |
3222 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3223 | long arg2 ; | |
3224 | long arg3 ; | |
3225 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3226 | PyObject * obj1 = 0 ; |
3227 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3228 | char *kwnames[] = { |
3229 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3230 | }; | |
3231 | ||
8edf1c75 | 3232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3234 | { |
3235 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3236 | if (PyErr_Occurred()) SWIG_fail; | |
3237 | } | |
3238 | { | |
3239 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3240 | if (PyErr_Occurred()) SWIG_fail; | |
3241 | } | |
d14a1e28 RD |
3242 | { |
3243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3244 | (arg1)->SetSelection(arg2,arg3); | |
3245 | ||
3246 | wxPyEndAllowThreads(__tstate); | |
3247 | if (PyErr_Occurred()) SWIG_fail; | |
3248 | } | |
3249 | Py_INCREF(Py_None); resultobj = Py_None; | |
3250 | return resultobj; | |
3251 | fail: | |
3252 | return NULL; | |
3253 | } | |
3254 | ||
3255 | ||
3256 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3257 | PyObject *resultobj; | |
3258 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3259 | bool arg2 ; | |
3260 | PyObject * obj0 = 0 ; | |
3261 | PyObject * obj1 = 0 ; | |
3262 | char *kwnames[] = { | |
3263 | (char *) "self",(char *) "editable", NULL | |
3264 | }; | |
3265 | ||
3266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
3267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 3268 | { |
8edf1c75 | 3269 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
3270 | if (PyErr_Occurred()) SWIG_fail; |
3271 | } | |
d14a1e28 RD |
3272 | { |
3273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3274 | (arg1)->SetEditable(arg2); | |
3275 | ||
3276 | wxPyEndAllowThreads(__tstate); | |
3277 | if (PyErr_Occurred()) SWIG_fail; | |
3278 | } | |
3279 | Py_INCREF(Py_None); resultobj = Py_None; | |
3280 | return resultobj; | |
3281 | fail: | |
3282 | return NULL; | |
3283 | } | |
3284 | ||
3285 | ||
3286 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3287 | PyObject *resultobj; | |
3288 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3289 | PyObject * obj0 = 0 ; | |
3290 | char *kwnames[] = { | |
3291 | (char *) "self", NULL | |
3292 | }; | |
3293 | ||
3294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
3295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3296 | { | |
3297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3298 | (arg1)->SetInsertionPointEnd(); | |
3299 | ||
3300 | wxPyEndAllowThreads(__tstate); | |
3301 | if (PyErr_Occurred()) SWIG_fail; | |
3302 | } | |
3303 | Py_INCREF(Py_None); resultobj = Py_None; | |
3304 | return resultobj; | |
3305 | fail: | |
3306 | return NULL; | |
3307 | } | |
3308 | ||
3309 | ||
3310 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3311 | PyObject *resultobj; | |
3312 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3313 | long arg2 ; | |
3314 | long arg3 ; | |
3315 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3316 | PyObject * obj1 = 0 ; |
3317 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3318 | char *kwnames[] = { |
3319 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3320 | }; | |
3321 | ||
8edf1c75 | 3322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3324 | { |
3325 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3326 | if (PyErr_Occurred()) SWIG_fail; | |
3327 | } | |
3328 | { | |
3329 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3330 | if (PyErr_Occurred()) SWIG_fail; | |
3331 | } | |
d14a1e28 RD |
3332 | { |
3333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3334 | (arg1)->Remove(arg2,arg3); | |
3335 | ||
3336 | wxPyEndAllowThreads(__tstate); | |
3337 | if (PyErr_Occurred()) SWIG_fail; | |
3338 | } | |
3339 | Py_INCREF(Py_None); resultobj = Py_None; | |
3340 | return resultobj; | |
3341 | fail: | |
3342 | return NULL; | |
3343 | } | |
3344 | ||
3345 | ||
3346 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
3347 | PyObject *obj; | |
3348 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3349 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3350 | Py_INCREF(obj); | |
3351 | return Py_BuildValue((char *)""); | |
3352 | } | |
8edf1c75 | 3353 | static int _wrap_GaugeNameStr_set(PyObject *) { |
cbd72d4f RD |
3354 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
3355 | return 1; | |
3356 | } | |
3357 | ||
3358 | ||
3359 | static PyObject *_wrap_GaugeNameStr_get() { | |
3360 | PyObject *pyobj; | |
3361 | ||
3362 | { | |
3363 | #if wxUSE_UNICODE | |
3364 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3365 | #else | |
3366 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3367 | #endif | |
3368 | } | |
3369 | return pyobj; | |
3370 | } | |
3371 | ||
3372 | ||
d14a1e28 RD |
3373 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3374 | PyObject *resultobj; | |
3375 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3376 | int arg2 ; |
d14a1e28 RD |
3377 | int arg3 ; |
3378 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3379 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3380 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3381 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3382 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3383 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3384 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3385 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3386 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3387 | wxGauge *result; | |
3388 | wxPoint temp4 ; | |
3389 | wxSize temp5 ; | |
423f194a | 3390 | bool temp8 = False ; |
d14a1e28 | 3391 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3392 | PyObject * obj1 = 0 ; |
3393 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3394 | PyObject * obj3 = 0 ; |
3395 | PyObject * obj4 = 0 ; | |
8edf1c75 | 3396 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3397 | PyObject * obj6 = 0 ; |
3398 | PyObject * obj7 = 0 ; | |
3399 | char *kwnames[] = { | |
3400 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3401 | }; | |
3402 | ||
8edf1c75 | 3403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 3404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3405 | { |
3406 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3407 | if (PyErr_Occurred()) SWIG_fail; | |
3408 | } | |
3409 | { | |
3410 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3411 | if (PyErr_Occurred()) SWIG_fail; | |
3412 | } | |
d14a1e28 RD |
3413 | if (obj3) { |
3414 | { | |
3415 | arg4 = &temp4; | |
3416 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3417 | } | |
3418 | } | |
3419 | if (obj4) { | |
3420 | { | |
3421 | arg5 = &temp5; | |
3422 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3423 | } | |
3424 | } | |
8edf1c75 RD |
3425 | if (obj5) { |
3426 | { | |
3427 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3428 | if (PyErr_Occurred()) SWIG_fail; | |
3429 | } | |
3430 | } | |
d14a1e28 RD |
3431 | if (obj6) { |
3432 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3433 | if (arg7 == NULL) { | |
3434 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3435 | } | |
3436 | } | |
3437 | if (obj7) { | |
3438 | { | |
3439 | arg8 = wxString_in_helper(obj7); | |
3440 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 3441 | temp8 = True; |
d14a1e28 RD |
3442 | } |
3443 | } | |
3444 | { | |
3445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3446 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3447 | ||
3448 | wxPyEndAllowThreads(__tstate); | |
3449 | if (PyErr_Occurred()) SWIG_fail; | |
3450 | } | |
3451 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3452 | { | |
3453 | if (temp8) | |
3454 | delete arg8; | |
3455 | } | |
3456 | return resultobj; | |
3457 | fail: | |
3458 | { | |
3459 | if (temp8) | |
3460 | delete arg8; | |
3461 | } | |
3462 | return NULL; | |
3463 | } | |
3464 | ||
3465 | ||
3466 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3467 | PyObject *resultobj; | |
3468 | wxGauge *result; | |
3469 | char *kwnames[] = { | |
3470 | NULL | |
3471 | }; | |
3472 | ||
3473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3474 | { | |
3475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3476 | result = (wxGauge *)new wxGauge(); | |
3477 | ||
3478 | wxPyEndAllowThreads(__tstate); | |
3479 | if (PyErr_Occurred()) SWIG_fail; | |
3480 | } | |
3481 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3482 | return resultobj; | |
3483 | fail: | |
3484 | return NULL; | |
3485 | } | |
3486 | ||
3487 | ||
3488 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3489 | PyObject *resultobj; | |
3490 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3491 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 3492 | int arg3 ; |
d14a1e28 RD |
3493 | int arg4 ; |
3494 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3495 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3496 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3497 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3498 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3499 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3500 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3501 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3502 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3503 | bool result; | |
3504 | wxPoint temp5 ; | |
3505 | wxSize temp6 ; | |
423f194a | 3506 | bool temp9 = False ; |
d14a1e28 RD |
3507 | PyObject * obj0 = 0 ; |
3508 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
3509 | PyObject * obj2 = 0 ; |
3510 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3511 | PyObject * obj4 = 0 ; |
3512 | PyObject * obj5 = 0 ; | |
8edf1c75 | 3513 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3514 | PyObject * obj7 = 0 ; |
3515 | PyObject * obj8 = 0 ; | |
3516 | char *kwnames[] = { | |
3517 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3518 | }; | |
3519 | ||
8edf1c75 | 3520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3522 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
3523 | { |
3524 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3525 | if (PyErr_Occurred()) SWIG_fail; | |
3526 | } | |
3527 | { | |
3528 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
3529 | if (PyErr_Occurred()) SWIG_fail; | |
3530 | } | |
d14a1e28 RD |
3531 | if (obj4) { |
3532 | { | |
3533 | arg5 = &temp5; | |
3534 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3535 | } | |
3536 | } | |
3537 | if (obj5) { | |
3538 | { | |
3539 | arg6 = &temp6; | |
3540 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3541 | } | |
3542 | } | |
8edf1c75 RD |
3543 | if (obj6) { |
3544 | { | |
3545 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
3546 | if (PyErr_Occurred()) SWIG_fail; | |
3547 | } | |
3548 | } | |
d14a1e28 RD |
3549 | if (obj7) { |
3550 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3551 | if (arg8 == NULL) { | |
3552 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3553 | } | |
3554 | } | |
3555 | if (obj8) { | |
3556 | { | |
3557 | arg9 = wxString_in_helper(obj8); | |
3558 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 3559 | temp9 = True; |
d14a1e28 RD |
3560 | } |
3561 | } | |
3562 | { | |
3563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3564 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3565 | ||
3566 | wxPyEndAllowThreads(__tstate); | |
3567 | if (PyErr_Occurred()) SWIG_fail; | |
3568 | } | |
02a34c4c | 3569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3570 | { |
3571 | if (temp9) | |
3572 | delete arg9; | |
3573 | } | |
3574 | return resultobj; | |
3575 | fail: | |
3576 | { | |
3577 | if (temp9) | |
3578 | delete arg9; | |
3579 | } | |
3580 | return NULL; | |
3581 | } | |
3582 | ||
3583 | ||
3584 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3585 | PyObject *resultobj; | |
3586 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3587 | int arg2 ; | |
3588 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3589 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3590 | char *kwnames[] = { |
3591 | (char *) "self",(char *) "range", NULL | |
3592 | }; | |
3593 | ||
8edf1c75 | 3594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3596 | { |
3597 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3598 | if (PyErr_Occurred()) SWIG_fail; | |
3599 | } | |
d14a1e28 RD |
3600 | { |
3601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3602 | (arg1)->SetRange(arg2); | |
3603 | ||
3604 | wxPyEndAllowThreads(__tstate); | |
3605 | if (PyErr_Occurred()) SWIG_fail; | |
3606 | } | |
3607 | Py_INCREF(Py_None); resultobj = Py_None; | |
3608 | return resultobj; | |
3609 | fail: | |
3610 | return NULL; | |
3611 | } | |
3612 | ||
3613 | ||
3614 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3615 | PyObject *resultobj; | |
3616 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3617 | int result; | |
3618 | PyObject * obj0 = 0 ; | |
3619 | char *kwnames[] = { | |
3620 | (char *) "self", NULL | |
3621 | }; | |
3622 | ||
3623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
3624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3625 | { | |
3626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3627 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3628 | ||
3629 | wxPyEndAllowThreads(__tstate); | |
3630 | if (PyErr_Occurred()) SWIG_fail; | |
3631 | } | |
8edf1c75 | 3632 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3633 | return resultobj; |
3634 | fail: | |
3635 | return NULL; | |
3636 | } | |
3637 | ||
3638 | ||
3639 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3640 | PyObject *resultobj; | |
3641 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3642 | int arg2 ; | |
3643 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3644 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3645 | char *kwnames[] = { |
3646 | (char *) "self",(char *) "pos", NULL | |
3647 | }; | |
3648 | ||
8edf1c75 | 3649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3651 | { |
3652 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3653 | if (PyErr_Occurred()) SWIG_fail; | |
3654 | } | |
d14a1e28 RD |
3655 | { |
3656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3657 | (arg1)->SetValue(arg2); | |
3658 | ||
3659 | wxPyEndAllowThreads(__tstate); | |
3660 | if (PyErr_Occurred()) SWIG_fail; | |
3661 | } | |
3662 | Py_INCREF(Py_None); resultobj = Py_None; | |
3663 | return resultobj; | |
3664 | fail: | |
3665 | return NULL; | |
3666 | } | |
3667 | ||
3668 | ||
3669 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3670 | PyObject *resultobj; | |
3671 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3672 | int result; | |
3673 | PyObject * obj0 = 0 ; | |
3674 | char *kwnames[] = { | |
3675 | (char *) "self", NULL | |
3676 | }; | |
3677 | ||
3678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
3679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3680 | { | |
3681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3682 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3683 | ||
3684 | wxPyEndAllowThreads(__tstate); | |
3685 | if (PyErr_Occurred()) SWIG_fail; | |
3686 | } | |
8edf1c75 | 3687 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3688 | return resultobj; |
3689 | fail: | |
3690 | return NULL; | |
3691 | } | |
3692 | ||
3693 | ||
3694 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3695 | PyObject *resultobj; | |
3696 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3697 | bool result; | |
3698 | PyObject * obj0 = 0 ; | |
3699 | char *kwnames[] = { | |
3700 | (char *) "self", NULL | |
3701 | }; | |
3702 | ||
3703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
3704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3705 | { | |
3706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3707 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3708 | ||
3709 | wxPyEndAllowThreads(__tstate); | |
3710 | if (PyErr_Occurred()) SWIG_fail; | |
3711 | } | |
02a34c4c | 3712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3713 | return resultobj; |
3714 | fail: | |
3715 | return NULL; | |
3716 | } | |
3717 | ||
3718 | ||
3719 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3720 | PyObject *resultobj; | |
3721 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3722 | int arg2 ; | |
3723 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3724 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3725 | char *kwnames[] = { |
3726 | (char *) "self",(char *) "w", NULL | |
3727 | }; | |
3728 | ||
8edf1c75 | 3729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3731 | { |
3732 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3733 | if (PyErr_Occurred()) SWIG_fail; | |
3734 | } | |
d14a1e28 RD |
3735 | { |
3736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3737 | (arg1)->SetShadowWidth(arg2); | |
3738 | ||
3739 | wxPyEndAllowThreads(__tstate); | |
3740 | if (PyErr_Occurred()) SWIG_fail; | |
3741 | } | |
3742 | Py_INCREF(Py_None); resultobj = Py_None; | |
3743 | return resultobj; | |
3744 | fail: | |
3745 | return NULL; | |
3746 | } | |
3747 | ||
3748 | ||
3749 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3750 | PyObject *resultobj; | |
3751 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3752 | int result; | |
3753 | PyObject * obj0 = 0 ; | |
3754 | char *kwnames[] = { | |
3755 | (char *) "self", NULL | |
3756 | }; | |
3757 | ||
3758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
3759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3760 | { | |
3761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3762 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3763 | ||
3764 | wxPyEndAllowThreads(__tstate); | |
3765 | if (PyErr_Occurred()) SWIG_fail; | |
3766 | } | |
8edf1c75 | 3767 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3768 | return resultobj; |
3769 | fail: | |
3770 | return NULL; | |
3771 | } | |
3772 | ||
3773 | ||
3774 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3775 | PyObject *resultobj; | |
3776 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3777 | int arg2 ; | |
3778 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3779 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3780 | char *kwnames[] = { |
3781 | (char *) "self",(char *) "w", NULL | |
3782 | }; | |
3783 | ||
8edf1c75 | 3784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3786 | { |
3787 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3788 | if (PyErr_Occurred()) SWIG_fail; | |
3789 | } | |
d14a1e28 RD |
3790 | { |
3791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3792 | (arg1)->SetBezelFace(arg2); | |
3793 | ||
3794 | wxPyEndAllowThreads(__tstate); | |
3795 | if (PyErr_Occurred()) SWIG_fail; | |
3796 | } | |
3797 | Py_INCREF(Py_None); resultobj = Py_None; | |
3798 | return resultobj; | |
3799 | fail: | |
3800 | return NULL; | |
3801 | } | |
3802 | ||
3803 | ||
3804 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3805 | PyObject *resultobj; | |
3806 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3807 | int result; | |
3808 | PyObject * obj0 = 0 ; | |
3809 | char *kwnames[] = { | |
3810 | (char *) "self", NULL | |
3811 | }; | |
3812 | ||
3813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
3814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3815 | { | |
3816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3817 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3818 | ||
3819 | wxPyEndAllowThreads(__tstate); | |
3820 | if (PyErr_Occurred()) SWIG_fail; | |
3821 | } | |
8edf1c75 | 3822 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3823 | return resultobj; |
3824 | fail: | |
3825 | return NULL; | |
3826 | } | |
3827 | ||
3828 | ||
3829 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
3830 | PyObject *obj; | |
3831 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3832 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
3833 | Py_INCREF(obj); | |
3834 | return Py_BuildValue((char *)""); | |
3835 | } | |
8edf1c75 | 3836 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
cbd72d4f RD |
3837 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
3838 | return 1; | |
3839 | } | |
3840 | ||
3841 | ||
3842 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
3843 | PyObject *pyobj; | |
3844 | ||
3845 | { | |
3846 | #if wxUSE_UNICODE | |
3847 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3848 | #else | |
3849 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3850 | #endif | |
3851 | } | |
3852 | return pyobj; | |
3853 | } | |
3854 | ||
3855 | ||
8edf1c75 | 3856 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
cbd72d4f RD |
3857 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
3858 | return 1; | |
3859 | } | |
3860 | ||
3861 | ||
3862 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
3863 | PyObject *pyobj; | |
3864 | ||
3865 | { | |
3866 | #if wxUSE_UNICODE | |
3867 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3868 | #else | |
3869 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3870 | #endif | |
3871 | } | |
3872 | return pyobj; | |
3873 | } | |
3874 | ||
3875 | ||
8edf1c75 | 3876 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
cbd72d4f RD |
3877 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
3878 | return 1; | |
3879 | } | |
3880 | ||
3881 | ||
3882 | static PyObject *_wrap_StaticTextNameStr_get() { | |
3883 | PyObject *pyobj; | |
3884 | ||
3885 | { | |
3886 | #if wxUSE_UNICODE | |
3887 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3888 | #else | |
3889 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3890 | #endif | |
3891 | } | |
3892 | return pyobj; | |
3893 | } | |
3894 | ||
3895 | ||
d14a1e28 RD |
3896 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
3897 | PyObject *resultobj; | |
3898 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3899 | int arg2 ; |
d14a1e28 RD |
3900 | wxString *arg3 = 0 ; |
3901 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3902 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3903 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3904 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3905 | long arg6 = (long) 0 ; | |
3906 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
3907 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3908 | wxStaticBox *result; | |
423f194a | 3909 | bool temp3 = False ; |
d14a1e28 RD |
3910 | wxPoint temp4 ; |
3911 | wxSize temp5 ; | |
423f194a | 3912 | bool temp7 = False ; |
d14a1e28 | 3913 | PyObject * obj0 = 0 ; |
8edf1c75 | 3914 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3915 | PyObject * obj2 = 0 ; |
3916 | PyObject * obj3 = 0 ; | |
3917 | PyObject * obj4 = 0 ; | |
8edf1c75 | 3918 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3919 | PyObject * obj6 = 0 ; |
3920 | char *kwnames[] = { | |
3921 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3922 | }; | |
3923 | ||
8edf1c75 | 3924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 3925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3926 | { |
3927 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3928 | if (PyErr_Occurred()) SWIG_fail; | |
3929 | } | |
d14a1e28 RD |
3930 | { |
3931 | arg3 = wxString_in_helper(obj2); | |
3932 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3933 | temp3 = True; |
d14a1e28 RD |
3934 | } |
3935 | if (obj3) { | |
3936 | { | |
3937 | arg4 = &temp4; | |
3938 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3939 | } | |
3940 | } | |
3941 | if (obj4) { | |
3942 | { | |
3943 | arg5 = &temp5; | |
3944 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3945 | } | |
3946 | } | |
8edf1c75 RD |
3947 | if (obj5) { |
3948 | { | |
3949 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3950 | if (PyErr_Occurred()) SWIG_fail; | |
3951 | } | |
3952 | } | |
d14a1e28 RD |
3953 | if (obj6) { |
3954 | { | |
3955 | arg7 = wxString_in_helper(obj6); | |
3956 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 3957 | temp7 = True; |
d14a1e28 RD |
3958 | } |
3959 | } | |
3960 | { | |
3961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3962 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3963 | ||
3964 | wxPyEndAllowThreads(__tstate); | |
3965 | if (PyErr_Occurred()) SWIG_fail; | |
3966 | } | |
3967 | { | |
3968 | resultobj = wxPyMake_wxObject(result); | |
3969 | } | |
3970 | { | |
3971 | if (temp3) | |
3972 | delete arg3; | |
3973 | } | |
3974 | { | |
3975 | if (temp7) | |
3976 | delete arg7; | |
3977 | } | |
3978 | return resultobj; | |
3979 | fail: | |
3980 | { | |
3981 | if (temp3) | |
3982 | delete arg3; | |
3983 | } | |
3984 | { | |
3985 | if (temp7) | |
3986 | delete arg7; | |
3987 | } | |
3988 | return NULL; | |
3989 | } | |
3990 | ||
3991 | ||
3992 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3993 | PyObject *resultobj; | |
3994 | wxStaticBox *result; | |
3995 | char *kwnames[] = { | |
3996 | NULL | |
3997 | }; | |
3998 | ||
3999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4000 | { | |
4001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4002 | result = (wxStaticBox *)new wxStaticBox(); | |
4003 | ||
4004 | wxPyEndAllowThreads(__tstate); | |
4005 | if (PyErr_Occurred()) SWIG_fail; | |
4006 | } | |
4007 | { | |
4008 | resultobj = wxPyMake_wxObject(result); | |
4009 | } | |
4010 | return resultobj; | |
4011 | fail: | |
4012 | return NULL; | |
4013 | } | |
4014 | ||
4015 | ||
4016 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4017 | PyObject *resultobj; | |
4018 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4019 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4020 | int arg3 ; |
d14a1e28 RD |
4021 | wxString *arg4 = 0 ; |
4022 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4023 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4024 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4025 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4026 | long arg7 = (long) 0 ; | |
4027 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4028 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4029 | bool result; | |
423f194a | 4030 | bool temp4 = False ; |
d14a1e28 RD |
4031 | wxPoint temp5 ; |
4032 | wxSize temp6 ; | |
423f194a | 4033 | bool temp8 = False ; |
d14a1e28 RD |
4034 | PyObject * obj0 = 0 ; |
4035 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4036 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4037 | PyObject * obj3 = 0 ; |
4038 | PyObject * obj4 = 0 ; | |
4039 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4040 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4041 | PyObject * obj7 = 0 ; |
4042 | char *kwnames[] = { | |
4043 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4044 | }; | |
4045 | ||
8edf1c75 | 4046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4048 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4049 | { |
4050 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4051 | if (PyErr_Occurred()) SWIG_fail; | |
4052 | } | |
d14a1e28 RD |
4053 | { |
4054 | arg4 = wxString_in_helper(obj3); | |
4055 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4056 | temp4 = True; |
d14a1e28 RD |
4057 | } |
4058 | if (obj4) { | |
4059 | { | |
4060 | arg5 = &temp5; | |
4061 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4062 | } | |
4063 | } | |
4064 | if (obj5) { | |
4065 | { | |
4066 | arg6 = &temp6; | |
4067 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4068 | } | |
4069 | } | |
8edf1c75 RD |
4070 | if (obj6) { |
4071 | { | |
4072 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4073 | if (PyErr_Occurred()) SWIG_fail; | |
4074 | } | |
4075 | } | |
d14a1e28 RD |
4076 | if (obj7) { |
4077 | { | |
4078 | arg8 = wxString_in_helper(obj7); | |
4079 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4080 | temp8 = True; |
d14a1e28 RD |
4081 | } |
4082 | } | |
4083 | { | |
4084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4085 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4086 | ||
4087 | wxPyEndAllowThreads(__tstate); | |
4088 | if (PyErr_Occurred()) SWIG_fail; | |
4089 | } | |
02a34c4c | 4090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4091 | { |
4092 | if (temp4) | |
4093 | delete arg4; | |
4094 | } | |
4095 | { | |
4096 | if (temp8) | |
4097 | delete arg8; | |
4098 | } | |
4099 | return resultobj; | |
4100 | fail: | |
4101 | { | |
4102 | if (temp4) | |
4103 | delete arg4; | |
4104 | } | |
4105 | { | |
4106 | if (temp8) | |
4107 | delete arg8; | |
4108 | } | |
4109 | return NULL; | |
4110 | } | |
4111 | ||
4112 | ||
4113 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
4114 | PyObject *obj; | |
4115 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4116 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4117 | Py_INCREF(obj); | |
4118 | return Py_BuildValue((char *)""); | |
4119 | } | |
4120 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4121 | PyObject *resultobj; | |
4122 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4123 | int arg2 ; |
d14a1e28 RD |
4124 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4125 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4126 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4127 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4128 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4129 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4130 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4131 | wxStaticLine *result; | |
4132 | wxPoint temp3 ; | |
4133 | wxSize temp4 ; | |
423f194a | 4134 | bool temp6 = False ; |
d14a1e28 | 4135 | PyObject * obj0 = 0 ; |
8edf1c75 | 4136 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4137 | PyObject * obj2 = 0 ; |
4138 | PyObject * obj3 = 0 ; | |
8edf1c75 | 4139 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4140 | PyObject * obj5 = 0 ; |
4141 | char *kwnames[] = { | |
4142 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4143 | }; | |
4144 | ||
8edf1c75 | 4145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 4146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4147 | { |
4148 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4149 | if (PyErr_Occurred()) SWIG_fail; | |
4150 | } | |
d14a1e28 RD |
4151 | if (obj2) { |
4152 | { | |
4153 | arg3 = &temp3; | |
4154 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4155 | } | |
4156 | } | |
4157 | if (obj3) { | |
4158 | { | |
4159 | arg4 = &temp4; | |
4160 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4161 | } | |
4162 | } | |
8edf1c75 RD |
4163 | if (obj4) { |
4164 | { | |
4165 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
4166 | if (PyErr_Occurred()) SWIG_fail; | |
4167 | } | |
4168 | } | |
d14a1e28 RD |
4169 | if (obj5) { |
4170 | { | |
4171 | arg6 = wxString_in_helper(obj5); | |
4172 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 4173 | temp6 = True; |
d14a1e28 RD |
4174 | } |
4175 | } | |
4176 | { | |
4177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4178 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4179 | ||
4180 | wxPyEndAllowThreads(__tstate); | |
4181 | if (PyErr_Occurred()) SWIG_fail; | |
4182 | } | |
4183 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
4184 | { | |
4185 | if (temp6) | |
4186 | delete arg6; | |
4187 | } | |
4188 | return resultobj; | |
4189 | fail: | |
4190 | { | |
4191 | if (temp6) | |
4192 | delete arg6; | |
4193 | } | |
4194 | return NULL; | |
4195 | } | |
4196 | ||
4197 | ||
4198 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4199 | PyObject *resultobj; | |
4200 | wxStaticLine *result; | |
4201 | char *kwnames[] = { | |
4202 | NULL | |
4203 | }; | |
4204 | ||
4205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4206 | { | |
4207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4208 | result = (wxStaticLine *)new wxStaticLine(); | |
4209 | ||
4210 | wxPyEndAllowThreads(__tstate); | |
4211 | if (PyErr_Occurred()) SWIG_fail; | |
4212 | } | |
4213 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
4214 | return resultobj; | |
4215 | fail: | |
4216 | return NULL; | |
4217 | } | |
4218 | ||
4219 | ||
4220 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4221 | PyObject *resultobj; | |
4222 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4223 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4224 | int arg3 ; |
d14a1e28 RD |
4225 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4226 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4227 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4228 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4229 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4230 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4231 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4232 | bool result; | |
4233 | wxPoint temp4 ; | |
4234 | wxSize temp5 ; | |
423f194a | 4235 | bool temp7 = False ; |
d14a1e28 RD |
4236 | PyObject * obj0 = 0 ; |
4237 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4238 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4239 | PyObject * obj3 = 0 ; |
4240 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4241 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4242 | PyObject * obj6 = 0 ; |
4243 | char *kwnames[] = { | |
4244 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4245 | }; | |
4246 | ||
8edf1c75 | 4247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
4248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4249 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4250 | { |
4251 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4252 | if (PyErr_Occurred()) SWIG_fail; | |
4253 | } | |
d14a1e28 RD |
4254 | if (obj3) { |
4255 | { | |
4256 | arg4 = &temp4; | |
4257 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4258 | } | |
4259 | } | |
4260 | if (obj4) { | |
4261 | { | |
4262 | arg5 = &temp5; | |
4263 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4264 | } | |
4265 | } | |
8edf1c75 RD |
4266 | if (obj5) { |
4267 | { | |
4268 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4269 | if (PyErr_Occurred()) SWIG_fail; | |
4270 | } | |
4271 | } | |
d14a1e28 RD |
4272 | if (obj6) { |
4273 | { | |
4274 | arg7 = wxString_in_helper(obj6); | |
4275 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4276 | temp7 = True; |
d14a1e28 RD |
4277 | } |
4278 | } | |
4279 | { | |
4280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4281 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4282 | ||
4283 | wxPyEndAllowThreads(__tstate); | |
4284 | if (PyErr_Occurred()) SWIG_fail; | |
4285 | } | |
02a34c4c | 4286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4287 | { |
4288 | if (temp7) | |
4289 | delete arg7; | |
4290 | } | |
4291 | return resultobj; | |
4292 | fail: | |
4293 | { | |
4294 | if (temp7) | |
4295 | delete arg7; | |
4296 | } | |
4297 | return NULL; | |
4298 | } | |
4299 | ||
4300 | ||
4301 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4302 | PyObject *resultobj; | |
4303 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4304 | bool result; | |
4305 | PyObject * obj0 = 0 ; | |
4306 | char *kwnames[] = { | |
4307 | (char *) "self", NULL | |
4308 | }; | |
4309 | ||
4310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
4311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4312 | { | |
4313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4314 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4315 | ||
4316 | wxPyEndAllowThreads(__tstate); | |
4317 | if (PyErr_Occurred()) SWIG_fail; | |
4318 | } | |
02a34c4c | 4319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4320 | return resultobj; |
4321 | fail: | |
4322 | return NULL; | |
4323 | } | |
4324 | ||
4325 | ||
4326 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4327 | PyObject *resultobj; | |
4328 | int result; | |
4329 | char *kwnames[] = { | |
4330 | NULL | |
4331 | }; | |
4332 | ||
4333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4334 | { | |
4335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4336 | result = (int)wxStaticLine::GetDefaultSize(); | |
4337 | ||
4338 | wxPyEndAllowThreads(__tstate); | |
4339 | if (PyErr_Occurred()) SWIG_fail; | |
4340 | } | |
8edf1c75 | 4341 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4342 | return resultobj; |
4343 | fail: | |
4344 | return NULL; | |
4345 | } | |
4346 | ||
4347 | ||
4348 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
4349 | PyObject *obj; | |
4350 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4351 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4352 | Py_INCREF(obj); | |
4353 | return Py_BuildValue((char *)""); | |
4354 | } | |
4355 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4356 | PyObject *resultobj; | |
4357 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4358 | int arg2 ; |
d14a1e28 RD |
4359 | wxString *arg3 = 0 ; |
4360 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4361 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4362 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4363 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4364 | long arg6 = (long) 0 ; | |
4365 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4366 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4367 | wxStaticText *result; | |
423f194a | 4368 | bool temp3 = False ; |
d14a1e28 RD |
4369 | wxPoint temp4 ; |
4370 | wxSize temp5 ; | |
423f194a | 4371 | bool temp7 = False ; |
d14a1e28 | 4372 | PyObject * obj0 = 0 ; |
8edf1c75 | 4373 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4374 | PyObject * obj2 = 0 ; |
4375 | PyObject * obj3 = 0 ; | |
4376 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4377 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4378 | PyObject * obj6 = 0 ; |
4379 | char *kwnames[] = { | |
4380 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4381 | }; | |
4382 | ||
8edf1c75 | 4383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 4384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4385 | { |
4386 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4387 | if (PyErr_Occurred()) SWIG_fail; | |
4388 | } | |
d14a1e28 RD |
4389 | { |
4390 | arg3 = wxString_in_helper(obj2); | |
4391 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 4392 | temp3 = True; |
d14a1e28 RD |
4393 | } |
4394 | if (obj3) { | |
4395 | { | |
4396 | arg4 = &temp4; | |
4397 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4398 | } | |
4399 | } | |
4400 | if (obj4) { | |
4401 | { | |
4402 | arg5 = &temp5; | |
4403 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4404 | } | |
4405 | } | |
8edf1c75 RD |
4406 | if (obj5) { |
4407 | { | |
4408 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4409 | if (PyErr_Occurred()) SWIG_fail; | |
4410 | } | |
4411 | } | |
d14a1e28 RD |
4412 | if (obj6) { |
4413 | { | |
4414 | arg7 = wxString_in_helper(obj6); | |
4415 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4416 | temp7 = True; |
d14a1e28 RD |
4417 | } |
4418 | } | |
4419 | { | |
4420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4421 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4422 | ||
4423 | wxPyEndAllowThreads(__tstate); | |
4424 | if (PyErr_Occurred()) SWIG_fail; | |
4425 | } | |
4426 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4427 | { | |
4428 | if (temp3) | |
4429 | delete arg3; | |
4430 | } | |
4431 | { | |
4432 | if (temp7) | |
4433 | delete arg7; | |
4434 | } | |
4435 | return resultobj; | |
4436 | fail: | |
4437 | { | |
4438 | if (temp3) | |
4439 | delete arg3; | |
4440 | } | |
4441 | { | |
4442 | if (temp7) | |
4443 | delete arg7; | |
4444 | } | |
4445 | return NULL; | |
4446 | } | |
4447 | ||
4448 | ||
4449 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4450 | PyObject *resultobj; | |
4451 | wxStaticText *result; | |
4452 | char *kwnames[] = { | |
4453 | NULL | |
4454 | }; | |
4455 | ||
4456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4457 | { | |
4458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4459 | result = (wxStaticText *)new wxStaticText(); | |
4460 | ||
4461 | wxPyEndAllowThreads(__tstate); | |
4462 | if (PyErr_Occurred()) SWIG_fail; | |
4463 | } | |
4464 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4465 | return resultobj; | |
4466 | fail: | |
4467 | return NULL; | |
4468 | } | |
4469 | ||
4470 | ||
4471 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4472 | PyObject *resultobj; | |
4473 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4474 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4475 | int arg3 ; |
d14a1e28 RD |
4476 | wxString *arg4 = 0 ; |
4477 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4478 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4479 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4480 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4481 | long arg7 = (long) 0 ; | |
4482 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4483 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4484 | bool result; | |
423f194a | 4485 | bool temp4 = False ; |
d14a1e28 RD |
4486 | wxPoint temp5 ; |
4487 | wxSize temp6 ; | |
423f194a | 4488 | bool temp8 = False ; |
d14a1e28 RD |
4489 | PyObject * obj0 = 0 ; |
4490 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4491 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4492 | PyObject * obj3 = 0 ; |
4493 | PyObject * obj4 = 0 ; | |
4494 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4495 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4496 | PyObject * obj7 = 0 ; |
4497 | char *kwnames[] = { | |
4498 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4499 | }; | |
4500 | ||
8edf1c75 | 4501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticText,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4503 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4504 | { |
4505 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4506 | if (PyErr_Occurred()) SWIG_fail; | |
4507 | } | |
d14a1e28 RD |
4508 | { |
4509 | arg4 = wxString_in_helper(obj3); | |
4510 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4511 | temp4 = True; |
d14a1e28 RD |
4512 | } |
4513 | if (obj4) { | |
4514 | { | |
4515 | arg5 = &temp5; | |
4516 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4517 | } | |
4518 | } | |
4519 | if (obj5) { | |
4520 | { | |
4521 | arg6 = &temp6; | |
4522 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4523 | } | |
4524 | } | |
8edf1c75 RD |
4525 | if (obj6) { |
4526 | { | |
4527 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4528 | if (PyErr_Occurred()) SWIG_fail; | |
4529 | } | |
4530 | } | |
d14a1e28 RD |
4531 | if (obj7) { |
4532 | { | |
4533 | arg8 = wxString_in_helper(obj7); | |
4534 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4535 | temp8 = True; |
d14a1e28 RD |
4536 | } |
4537 | } | |
4538 | { | |
4539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4540 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4541 | ||
4542 | wxPyEndAllowThreads(__tstate); | |
4543 | if (PyErr_Occurred()) SWIG_fail; | |
4544 | } | |
02a34c4c | 4545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4546 | { |
4547 | if (temp4) | |
4548 | delete arg4; | |
4549 | } | |
4550 | { | |
4551 | if (temp8) | |
4552 | delete arg8; | |
4553 | } | |
4554 | return resultobj; | |
4555 | fail: | |
4556 | { | |
4557 | if (temp4) | |
4558 | delete arg4; | |
4559 | } | |
4560 | { | |
4561 | if (temp8) | |
4562 | delete arg8; | |
4563 | } | |
4564 | return NULL; | |
4565 | } | |
4566 | ||
4567 | ||
4568 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4569 | PyObject *obj; | |
4570 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4571 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4572 | Py_INCREF(obj); | |
4573 | return Py_BuildValue((char *)""); | |
4574 | } | |
4575 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4576 | PyObject *resultobj; | |
4577 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4578 | int arg2 ; |
d14a1e28 RD |
4579 | wxBitmap *arg3 = 0 ; |
4580 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4581 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4582 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4583 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4584 | long arg6 = (long) 0 ; | |
4585 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4586 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4587 | wxStaticBitmap *result; | |
4588 | wxPoint temp4 ; | |
4589 | wxSize temp5 ; | |
423f194a | 4590 | bool temp7 = False ; |
d14a1e28 | 4591 | PyObject * obj0 = 0 ; |
8edf1c75 | 4592 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4593 | PyObject * obj2 = 0 ; |
4594 | PyObject * obj3 = 0 ; | |
4595 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4596 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4597 | PyObject * obj6 = 0 ; |
4598 | char *kwnames[] = { | |
4599 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4600 | }; | |
4601 | ||
8edf1c75 | 4602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 4603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4604 | { |
4605 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4606 | if (PyErr_Occurred()) SWIG_fail; | |
4607 | } | |
d14a1e28 RD |
4608 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4609 | if (arg3 == NULL) { | |
4610 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4611 | } | |
4612 | if (obj3) { | |
4613 | { | |
4614 | arg4 = &temp4; | |
4615 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4616 | } | |
4617 | } | |
4618 | if (obj4) { | |
4619 | { | |
4620 | arg5 = &temp5; | |
4621 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4622 | } | |
4623 | } | |
8edf1c75 RD |
4624 | if (obj5) { |
4625 | { | |
4626 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4627 | if (PyErr_Occurred()) SWIG_fail; | |
4628 | } | |
4629 | } | |
d14a1e28 RD |
4630 | if (obj6) { |
4631 | { | |
4632 | arg7 = wxString_in_helper(obj6); | |
4633 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4634 | temp7 = True; |
d14a1e28 RD |
4635 | } |
4636 | } | |
4637 | { | |
4638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4639 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4640 | ||
4641 | wxPyEndAllowThreads(__tstate); | |
4642 | if (PyErr_Occurred()) SWIG_fail; | |
4643 | } | |
4644 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4645 | { | |
4646 | if (temp7) | |
4647 | delete arg7; | |
4648 | } | |
4649 | return resultobj; | |
4650 | fail: | |
4651 | { | |
4652 | if (temp7) | |
4653 | delete arg7; | |
4654 | } | |
4655 | return NULL; | |
4656 | } | |
4657 | ||
4658 | ||
4659 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4660 | PyObject *resultobj; | |
4661 | wxStaticBitmap *result; | |
4662 | char *kwnames[] = { | |
4663 | NULL | |
4664 | }; | |
4665 | ||
4666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4667 | { | |
4668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4669 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4670 | ||
4671 | wxPyEndAllowThreads(__tstate); | |
4672 | if (PyErr_Occurred()) SWIG_fail; | |
4673 | } | |
4674 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4675 | return resultobj; | |
4676 | fail: | |
4677 | return NULL; | |
4678 | } | |
4679 | ||
4680 | ||
4681 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4682 | PyObject *resultobj; | |
4683 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4684 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4685 | int arg3 ; |
d14a1e28 RD |
4686 | wxBitmap *arg4 = 0 ; |
4687 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4688 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4689 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4690 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4691 | long arg7 = (long) 0 ; | |
4692 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4693 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4694 | bool result; | |
4695 | wxPoint temp5 ; | |
4696 | wxSize temp6 ; | |
423f194a | 4697 | bool temp8 = False ; |
d14a1e28 RD |
4698 | PyObject * obj0 = 0 ; |
4699 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4700 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4701 | PyObject * obj3 = 0 ; |
4702 | PyObject * obj4 = 0 ; | |
4703 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4704 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4705 | PyObject * obj7 = 0 ; |
4706 | char *kwnames[] = { | |
4707 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4708 | }; | |
4709 | ||
8edf1c75 | 4710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4712 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4713 | { |
4714 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4715 | if (PyErr_Occurred()) SWIG_fail; | |
4716 | } | |
d14a1e28 RD |
4717 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4718 | if (arg4 == NULL) { | |
4719 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4720 | } | |
4721 | if (obj4) { | |
4722 | { | |
4723 | arg5 = &temp5; | |
4724 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4725 | } | |
4726 | } | |
4727 | if (obj5) { | |
4728 | { | |
4729 | arg6 = &temp6; | |
4730 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4731 | } | |
4732 | } | |
8edf1c75 RD |
4733 | if (obj6) { |
4734 | { | |
4735 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4736 | if (PyErr_Occurred()) SWIG_fail; | |
4737 | } | |
4738 | } | |
d14a1e28 RD |
4739 | if (obj7) { |
4740 | { | |
4741 | arg8 = wxString_in_helper(obj7); | |
4742 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4743 | temp8 = True; |
d14a1e28 RD |
4744 | } |
4745 | } | |
4746 | { | |
4747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4748 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4749 | ||
4750 | wxPyEndAllowThreads(__tstate); | |
4751 | if (PyErr_Occurred()) SWIG_fail; | |
4752 | } | |
02a34c4c | 4753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4754 | { |
4755 | if (temp8) | |
4756 | delete arg8; | |
4757 | } | |
4758 | return resultobj; | |
4759 | fail: | |
4760 | { | |
4761 | if (temp8) | |
4762 | delete arg8; | |
4763 | } | |
4764 | return NULL; | |
4765 | } | |
4766 | ||
4767 | ||
4768 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4769 | PyObject *resultobj; | |
4770 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4771 | wxBitmap result; | |
4772 | PyObject * obj0 = 0 ; | |
4773 | char *kwnames[] = { | |
4774 | (char *) "self", NULL | |
4775 | }; | |
4776 | ||
4777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
4778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4779 | { | |
4780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4781 | result = (arg1)->GetBitmap(); | |
4782 | ||
4783 | wxPyEndAllowThreads(__tstate); | |
4784 | if (PyErr_Occurred()) SWIG_fail; | |
4785 | } | |
4786 | { | |
4787 | wxBitmap * resultptr; | |
4788 | resultptr = new wxBitmap((wxBitmap &) result); | |
4789 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
4790 | } | |
4791 | return resultobj; | |
4792 | fail: | |
4793 | return NULL; | |
4794 | } | |
4795 | ||
4796 | ||
4797 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4798 | PyObject *resultobj; | |
4799 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4800 | wxBitmap *arg2 = 0 ; | |
4801 | PyObject * obj0 = 0 ; | |
4802 | PyObject * obj1 = 0 ; | |
4803 | char *kwnames[] = { | |
4804 | (char *) "self",(char *) "bitmap", NULL | |
4805 | }; | |
4806 | ||
4807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4809 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4810 | if (arg2 == NULL) { | |
4811 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4812 | } | |
4813 | { | |
4814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4815 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4816 | ||
4817 | wxPyEndAllowThreads(__tstate); | |
4818 | if (PyErr_Occurred()) SWIG_fail; | |
4819 | } | |
4820 | Py_INCREF(Py_None); resultobj = Py_None; | |
4821 | return resultobj; | |
4822 | fail: | |
4823 | return NULL; | |
4824 | } | |
4825 | ||
4826 | ||
4827 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4828 | PyObject *resultobj; | |
4829 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4830 | wxIcon *arg2 = 0 ; | |
4831 | PyObject * obj0 = 0 ; | |
4832 | PyObject * obj1 = 0 ; | |
4833 | char *kwnames[] = { | |
4834 | (char *) "self",(char *) "icon", NULL | |
4835 | }; | |
4836 | ||
4837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4839 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4840 | if (arg2 == NULL) { | |
4841 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4842 | } | |
4843 | { | |
4844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4845 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
4846 | ||
4847 | wxPyEndAllowThreads(__tstate); | |
4848 | if (PyErr_Occurred()) SWIG_fail; | |
4849 | } | |
4850 | Py_INCREF(Py_None); resultobj = Py_None; | |
4851 | return resultobj; | |
4852 | fail: | |
4853 | return NULL; | |
4854 | } | |
4855 | ||
4856 | ||
4857 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
4858 | PyObject *obj; | |
4859 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4860 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
4861 | Py_INCREF(obj); | |
4862 | return Py_BuildValue((char *)""); | |
4863 | } | |
8edf1c75 | 4864 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
cbd72d4f RD |
4865 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
4866 | return 1; | |
4867 | } | |
4868 | ||
4869 | ||
4870 | static PyObject *_wrap_ListBoxNameStr_get() { | |
4871 | PyObject *pyobj; | |
4872 | ||
4873 | { | |
4874 | #if wxUSE_UNICODE | |
4875 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4876 | #else | |
4877 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4878 | #endif | |
4879 | } | |
4880 | return pyobj; | |
4881 | } | |
4882 | ||
4883 | ||
d14a1e28 RD |
4884 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4885 | PyObject *resultobj; | |
4886 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4887 | int arg2 ; |
d14a1e28 RD |
4888 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4889 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4890 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4891 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
02a34c4c RD |
4892 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
4893 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
4894 | long arg6 = (long) 0 ; | |
4895 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
4896 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
4897 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
4898 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
4899 | wxListBox *result; |
4900 | wxPoint temp3 ; | |
4901 | wxSize temp4 ; | |
0ffb2aa6 | 4902 | bool temp5 = False ; |
423f194a | 4903 | bool temp8 = False ; |
d14a1e28 | 4904 | PyObject * obj0 = 0 ; |
8edf1c75 | 4905 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4906 | PyObject * obj2 = 0 ; |
4907 | PyObject * obj3 = 0 ; | |
4908 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4909 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4910 | PyObject * obj6 = 0 ; |
4911 | PyObject * obj7 = 0 ; | |
4912 | char *kwnames[] = { | |
4913 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4914 | }; | |
4915 | ||
8edf1c75 | 4916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 4917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4918 | { |
4919 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4920 | if (PyErr_Occurred()) SWIG_fail; | |
4921 | } | |
d14a1e28 RD |
4922 | if (obj2) { |
4923 | { | |
4924 | arg3 = &temp3; | |
4925 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4926 | } | |
4927 | } | |
4928 | if (obj3) { | |
4929 | { | |
4930 | arg4 = &temp4; | |
4931 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4932 | } | |
4933 | } | |
4934 | if (obj4) { | |
4935 | { | |
02a34c4c RD |
4936 | if (! PySequence_Check(obj4)) { |
4937 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4938 | SWIG_fail; | |
4939 | } | |
4940 | arg5 = new wxArrayString; | |
0ffb2aa6 | 4941 | temp5 = True; |
02a34c4c RD |
4942 | int i, len=PySequence_Length(obj4); |
4943 | for (i=0; i<len; i++) { | |
4944 | PyObject* item = PySequence_GetItem(obj4, i); | |
4945 | #if wxUSE_UNICODE | |
4946 | PyObject* str = PyObject_Unicode(item); | |
4947 | #else | |
4948 | PyObject* str = PyObject_Str(item); | |
4949 | #endif | |
4950 | arg5->Add(Py2wxString(str)); | |
4951 | Py_DECREF(item); | |
4952 | Py_DECREF(str); | |
4953 | } | |
d14a1e28 RD |
4954 | } |
4955 | } | |
8edf1c75 RD |
4956 | if (obj5) { |
4957 | { | |
02a34c4c | 4958 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
4959 | if (PyErr_Occurred()) SWIG_fail; |
4960 | } | |
4961 | } | |
d14a1e28 | 4962 | if (obj6) { |
02a34c4c RD |
4963 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4964 | if (arg7 == NULL) { | |
d14a1e28 RD |
4965 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
4966 | } | |
4967 | } | |
4968 | if (obj7) { | |
4969 | { | |
02a34c4c RD |
4970 | arg8 = wxString_in_helper(obj7); |
4971 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4972 | temp8 = True; |
d14a1e28 RD |
4973 | } |
4974 | } | |
4975 | { | |
4976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 4977 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
4978 | |
4979 | wxPyEndAllowThreads(__tstate); | |
4980 | if (PyErr_Occurred()) SWIG_fail; | |
4981 | } | |
4982 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
4983 | { | |
0ffb2aa6 | 4984 | if (temp5) delete arg5; |
d14a1e28 RD |
4985 | } |
4986 | { | |
4987 | if (temp8) | |
02a34c4c | 4988 | delete arg8; |
d14a1e28 RD |
4989 | } |
4990 | return resultobj; | |
4991 | fail: | |
4992 | { | |
0ffb2aa6 | 4993 | if (temp5) delete arg5; |
d14a1e28 RD |
4994 | } |
4995 | { | |
4996 | if (temp8) | |
02a34c4c | 4997 | delete arg8; |
d14a1e28 RD |
4998 | } |
4999 | return NULL; | |
5000 | } | |
5001 | ||
5002 | ||
5003 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5004 | PyObject *resultobj; | |
5005 | wxListBox *result; | |
5006 | char *kwnames[] = { | |
5007 | NULL | |
5008 | }; | |
5009 | ||
5010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5011 | { | |
5012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5013 | result = (wxListBox *)new wxListBox(); | |
5014 | ||
5015 | wxPyEndAllowThreads(__tstate); | |
5016 | if (PyErr_Occurred()) SWIG_fail; | |
5017 | } | |
5018 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
5019 | return resultobj; | |
5020 | fail: | |
5021 | return NULL; | |
5022 | } | |
5023 | ||
5024 | ||
5025 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5026 | PyObject *resultobj; | |
5027 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5028 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 5029 | int arg3 ; |
d14a1e28 RD |
5030 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5031 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5032 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5033 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
02a34c4c RD |
5034 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5035 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5036 | long arg7 = (long) 0 ; | |
5037 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5038 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5039 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5040 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5041 | bool result; |
5042 | wxPoint temp4 ; | |
5043 | wxSize temp5 ; | |
0ffb2aa6 | 5044 | bool temp6 = False ; |
423f194a | 5045 | bool temp9 = False ; |
d14a1e28 RD |
5046 | PyObject * obj0 = 0 ; |
5047 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5048 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5049 | PyObject * obj3 = 0 ; |
5050 | PyObject * obj4 = 0 ; | |
5051 | PyObject * obj5 = 0 ; | |
8edf1c75 | 5052 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5053 | PyObject * obj7 = 0 ; |
5054 | PyObject * obj8 = 0 ; | |
5055 | char *kwnames[] = { | |
5056 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5057 | }; | |
5058 | ||
8edf1c75 | 5059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
5060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5061 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
5062 | { |
5063 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5064 | if (PyErr_Occurred()) SWIG_fail; | |
5065 | } | |
d14a1e28 RD |
5066 | if (obj3) { |
5067 | { | |
5068 | arg4 = &temp4; | |
5069 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5070 | } | |
5071 | } | |
5072 | if (obj4) { | |
5073 | { | |
5074 | arg5 = &temp5; | |
5075 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5076 | } | |
5077 | } | |
5078 | if (obj5) { | |
5079 | { | |
02a34c4c RD |
5080 | if (! PySequence_Check(obj5)) { |
5081 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5082 | SWIG_fail; | |
5083 | } | |
5084 | arg6 = new wxArrayString; | |
0ffb2aa6 | 5085 | temp6 = True; |
02a34c4c RD |
5086 | int i, len=PySequence_Length(obj5); |
5087 | for (i=0; i<len; i++) { | |
5088 | PyObject* item = PySequence_GetItem(obj5, i); | |
5089 | #if wxUSE_UNICODE | |
5090 | PyObject* str = PyObject_Unicode(item); | |
5091 | #else | |
5092 | PyObject* str = PyObject_Str(item); | |
5093 | #endif | |
5094 | arg6->Add(Py2wxString(str)); | |
5095 | Py_DECREF(item); | |
5096 | Py_DECREF(str); | |
5097 | } | |
d14a1e28 RD |
5098 | } |
5099 | } | |
8edf1c75 RD |
5100 | if (obj6) { |
5101 | { | |
02a34c4c | 5102 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
5103 | if (PyErr_Occurred()) SWIG_fail; |
5104 | } | |
5105 | } | |
d14a1e28 | 5106 | if (obj7) { |
02a34c4c RD |
5107 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5108 | if (arg8 == NULL) { | |
d14a1e28 RD |
5109 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5110 | } | |
5111 | } | |
5112 | if (obj8) { | |
5113 | { | |
02a34c4c RD |
5114 | arg9 = wxString_in_helper(obj8); |
5115 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 5116 | temp9 = True; |
d14a1e28 RD |
5117 | } |
5118 | } | |
5119 | { | |
5120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 5121 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5122 | |
5123 | wxPyEndAllowThreads(__tstate); | |
5124 | if (PyErr_Occurred()) SWIG_fail; | |
5125 | } | |
02a34c4c | 5126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 5127 | { |
0ffb2aa6 | 5128 | if (temp6) delete arg6; |
d14a1e28 RD |
5129 | } |
5130 | { | |
5131 | if (temp9) | |
02a34c4c | 5132 | delete arg9; |
d14a1e28 RD |
5133 | } |
5134 | return resultobj; | |
5135 | fail: | |
5136 | { | |
0ffb2aa6 | 5137 | if (temp6) delete arg6; |
d14a1e28 RD |
5138 | } |
5139 | { | |
5140 | if (temp9) | |
02a34c4c | 5141 | delete arg9; |
d14a1e28 RD |
5142 | } |
5143 | return NULL; | |
5144 | } | |
5145 | ||
5146 | ||
5147 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5148 | PyObject *resultobj; | |
5149 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5150 | wxString *arg2 = 0 ; | |
5151 | int arg3 ; | |
5152 | PyObject *arg4 = (PyObject *) NULL ; | |
423f194a | 5153 | bool temp2 = False ; |
d14a1e28 RD |
5154 | PyObject * obj0 = 0 ; |
5155 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5156 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5157 | PyObject * obj3 = 0 ; |
5158 | char *kwnames[] = { | |
5159 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5160 | }; | |
5161 | ||
8edf1c75 | 5162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5164 | { | |
5165 | arg2 = wxString_in_helper(obj1); | |
5166 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5167 | temp2 = True; |
d14a1e28 | 5168 | } |
8edf1c75 RD |
5169 | { |
5170 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5171 | if (PyErr_Occurred()) SWIG_fail; | |
5172 | } | |
d14a1e28 RD |
5173 | if (obj3) { |
5174 | arg4 = obj3; | |
5175 | } | |
5176 | { | |
5177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5178 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5179 | ||
5180 | wxPyEndAllowThreads(__tstate); | |
5181 | if (PyErr_Occurred()) SWIG_fail; | |
5182 | } | |
5183 | Py_INCREF(Py_None); resultobj = Py_None; | |
5184 | { | |
5185 | if (temp2) | |
5186 | delete arg2; | |
5187 | } | |
5188 | return resultobj; | |
5189 | fail: | |
5190 | { | |
5191 | if (temp2) | |
5192 | delete arg2; | |
5193 | } | |
5194 | return NULL; | |
5195 | } | |
5196 | ||
5197 | ||
5198 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5199 | PyObject *resultobj; | |
5200 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5201 | wxArrayString *arg2 = 0 ; | |
5202 | int arg3 ; | |
0ffb2aa6 | 5203 | bool temp2 = False ; |
d14a1e28 RD |
5204 | PyObject * obj0 = 0 ; |
5205 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5206 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5207 | char *kwnames[] = { |
5208 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5209 | }; | |
5210 | ||
8edf1c75 | 5211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
5212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5213 | { | |
5214 | if (! PySequence_Check(obj1)) { | |
5215 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5216 | SWIG_fail; | |
5217 | } | |
5218 | arg2 = new wxArrayString; | |
0ffb2aa6 | 5219 | temp2 = True; |
d14a1e28 RD |
5220 | int i, len=PySequence_Length(obj1); |
5221 | for (i=0; i<len; i++) { | |
5222 | PyObject* item = PySequence_GetItem(obj1, i); | |
5223 | #if wxUSE_UNICODE | |
5224 | PyObject* str = PyObject_Unicode(item); | |
5225 | #else | |
5226 | PyObject* str = PyObject_Str(item); | |
5227 | #endif | |
5228 | arg2->Add(Py2wxString(str)); | |
5229 | Py_DECREF(item); | |
5230 | Py_DECREF(str); | |
5231 | } | |
5232 | } | |
8edf1c75 RD |
5233 | { |
5234 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5235 | if (PyErr_Occurred()) SWIG_fail; | |
5236 | } | |
d14a1e28 RD |
5237 | { |
5238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5239 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5240 | ||
5241 | wxPyEndAllowThreads(__tstate); | |
5242 | if (PyErr_Occurred()) SWIG_fail; | |
5243 | } | |
5244 | Py_INCREF(Py_None); resultobj = Py_None; | |
5245 | { | |
0ffb2aa6 | 5246 | if (temp2) delete arg2; |
d14a1e28 RD |
5247 | } |
5248 | return resultobj; | |
5249 | fail: | |
5250 | { | |
0ffb2aa6 | 5251 | if (temp2) delete arg2; |
d14a1e28 RD |
5252 | } |
5253 | return NULL; | |
5254 | } | |
5255 | ||
5256 | ||
5257 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5258 | PyObject *resultobj; | |
5259 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5260 | wxArrayString *arg2 = 0 ; | |
0ffb2aa6 | 5261 | bool temp2 = False ; |
d14a1e28 RD |
5262 | PyObject * obj0 = 0 ; |
5263 | PyObject * obj1 = 0 ; | |
5264 | char *kwnames[] = { | |
5265 | (char *) "self",(char *) "items", NULL | |
5266 | }; | |
5267 | ||
5268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
5269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5270 | { | |
5271 | if (! PySequence_Check(obj1)) { | |
5272 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5273 | SWIG_fail; | |
5274 | } | |
5275 | arg2 = new wxArrayString; | |
0ffb2aa6 | 5276 | temp2 = True; |
d14a1e28 RD |
5277 | int i, len=PySequence_Length(obj1); |
5278 | for (i=0; i<len; i++) { | |
5279 | PyObject* item = PySequence_GetItem(obj1, i); | |
5280 | #if wxUSE_UNICODE | |
5281 | PyObject* str = PyObject_Unicode(item); | |
5282 | #else | |
5283 | PyObject* str = PyObject_Str(item); | |
5284 | #endif | |
5285 | arg2->Add(Py2wxString(str)); | |
5286 | Py_DECREF(item); | |
5287 | Py_DECREF(str); | |
5288 | } | |
5289 | } | |
5290 | { | |
5291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5292 | (arg1)->Set((wxArrayString const &)*arg2); | |
5293 | ||
5294 | wxPyEndAllowThreads(__tstate); | |
5295 | if (PyErr_Occurred()) SWIG_fail; | |
5296 | } | |
5297 | Py_INCREF(Py_None); resultobj = Py_None; | |
5298 | { | |
0ffb2aa6 | 5299 | if (temp2) delete arg2; |
d14a1e28 RD |
5300 | } |
5301 | return resultobj; | |
5302 | fail: | |
5303 | { | |
0ffb2aa6 | 5304 | if (temp2) delete arg2; |
d14a1e28 RD |
5305 | } |
5306 | return NULL; | |
5307 | } | |
5308 | ||
5309 | ||
5310 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5311 | PyObject *resultobj; | |
5312 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5313 | int arg2 ; | |
5314 | bool result; | |
5315 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5316 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5317 | char *kwnames[] = { |
5318 | (char *) "self",(char *) "n", NULL | |
5319 | }; | |
5320 | ||
8edf1c75 | 5321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5323 | { |
5324 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5325 | if (PyErr_Occurred()) SWIG_fail; | |
5326 | } | |
d14a1e28 RD |
5327 | { |
5328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5329 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
5330 | ||
5331 | wxPyEndAllowThreads(__tstate); | |
5332 | if (PyErr_Occurred()) SWIG_fail; | |
5333 | } | |
02a34c4c | 5334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5335 | return resultobj; |
5336 | fail: | |
5337 | return NULL; | |
5338 | } | |
5339 | ||
5340 | ||
5341 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5342 | PyObject *resultobj; | |
5343 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5344 | int arg2 ; | |
423f194a | 5345 | bool arg3 = (bool) True ; |
d14a1e28 | 5346 | PyObject * obj0 = 0 ; |
8edf1c75 | 5347 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5348 | PyObject * obj2 = 0 ; |
5349 | char *kwnames[] = { | |
5350 | (char *) "self",(char *) "n",(char *) "select", NULL | |
5351 | }; | |
5352 | ||
8edf1c75 | 5353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5355 | { |
5356 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5357 | if (PyErr_Occurred()) SWIG_fail; | |
5358 | } | |
d14a1e28 | 5359 | if (obj2) { |
2dbef272 | 5360 | { |
8edf1c75 | 5361 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
5362 | if (PyErr_Occurred()) SWIG_fail; |
5363 | } | |
d14a1e28 RD |
5364 | } |
5365 | { | |
5366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5367 | (arg1)->SetSelection(arg2,arg3); | |
5368 | ||
5369 | wxPyEndAllowThreads(__tstate); | |
5370 | if (PyErr_Occurred()) SWIG_fail; | |
5371 | } | |
5372 | Py_INCREF(Py_None); resultobj = Py_None; | |
5373 | return resultobj; | |
5374 | fail: | |
5375 | return NULL; | |
5376 | } | |
5377 | ||
5378 | ||
5379 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5380 | PyObject *resultobj; | |
5381 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5382 | int arg2 ; | |
5383 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5384 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5385 | char *kwnames[] = { |
5386 | (char *) "self",(char *) "n", NULL | |
5387 | }; | |
5388 | ||
8edf1c75 | 5389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5391 | { |
5392 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5393 | if (PyErr_Occurred()) SWIG_fail; | |
5394 | } | |
d14a1e28 RD |
5395 | { |
5396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5397 | (arg1)->Select(arg2); | |
5398 | ||
5399 | wxPyEndAllowThreads(__tstate); | |
5400 | if (PyErr_Occurred()) SWIG_fail; | |
5401 | } | |
5402 | Py_INCREF(Py_None); resultobj = Py_None; | |
5403 | return resultobj; | |
5404 | fail: | |
5405 | return NULL; | |
5406 | } | |
5407 | ||
5408 | ||
5409 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5410 | PyObject *resultobj; | |
5411 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5412 | int arg2 ; | |
5413 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5414 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5415 | char *kwnames[] = { |
5416 | (char *) "self",(char *) "n", NULL | |
5417 | }; | |
5418 | ||
8edf1c75 | 5419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5421 | { |
5422 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5423 | if (PyErr_Occurred()) SWIG_fail; | |
5424 | } | |
d14a1e28 RD |
5425 | { |
5426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5427 | (arg1)->Deselect(arg2); | |
5428 | ||
5429 | wxPyEndAllowThreads(__tstate); | |
5430 | if (PyErr_Occurred()) SWIG_fail; | |
5431 | } | |
5432 | Py_INCREF(Py_None); resultobj = Py_None; | |
5433 | return resultobj; | |
5434 | fail: | |
5435 | return NULL; | |
5436 | } | |
5437 | ||
5438 | ||
5439 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5440 | PyObject *resultobj; | |
5441 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5442 | int arg2 = (int) -1 ; | |
5443 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5444 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5445 | char *kwnames[] = { |
5446 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
5447 | }; | |
5448 | ||
8edf1c75 | 5449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5451 | if (obj1) { |
5452 | { | |
5453 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5454 | if (PyErr_Occurred()) SWIG_fail; | |
5455 | } | |
5456 | } | |
d14a1e28 RD |
5457 | { |
5458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5459 | (arg1)->DeselectAll(arg2); | |
5460 | ||
5461 | wxPyEndAllowThreads(__tstate); | |
5462 | if (PyErr_Occurred()) SWIG_fail; | |
5463 | } | |
5464 | Py_INCREF(Py_None); resultobj = Py_None; | |
5465 | return resultobj; | |
5466 | fail: | |
5467 | return NULL; | |
5468 | } | |
5469 | ||
5470 | ||
5471 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5472 | PyObject *resultobj; | |
5473 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5474 | wxString *arg2 = 0 ; | |
423f194a | 5475 | bool arg3 = (bool) True ; |
d14a1e28 | 5476 | bool result; |
423f194a | 5477 | bool temp2 = False ; |
d14a1e28 RD |
5478 | PyObject * obj0 = 0 ; |
5479 | PyObject * obj1 = 0 ; | |
5480 | PyObject * obj2 = 0 ; | |
5481 | char *kwnames[] = { | |
5482 | (char *) "self",(char *) "s",(char *) "select", NULL | |
5483 | }; | |
5484 | ||
5485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5487 | { | |
5488 | arg2 = wxString_in_helper(obj1); | |
5489 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5490 | temp2 = True; |
d14a1e28 RD |
5491 | } |
5492 | if (obj2) { | |
2dbef272 | 5493 | { |
8edf1c75 | 5494 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
5495 | if (PyErr_Occurred()) SWIG_fail; |
5496 | } | |
d14a1e28 RD |
5497 | } |
5498 | { | |
5499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5500 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
5501 | ||
5502 | wxPyEndAllowThreads(__tstate); | |
5503 | if (PyErr_Occurred()) SWIG_fail; | |
5504 | } | |
02a34c4c | 5505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5506 | { |
5507 | if (temp2) | |
5508 | delete arg2; | |
5509 | } | |
5510 | return resultobj; | |
5511 | fail: | |
5512 | { | |
5513 | if (temp2) | |
5514 | delete arg2; | |
5515 | } | |
5516 | return NULL; | |
5517 | } | |
5518 | ||
5519 | ||
5520 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5521 | PyObject *resultobj; | |
5522 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5523 | PyObject *result; | |
5524 | PyObject * obj0 = 0 ; | |
5525 | char *kwnames[] = { | |
5526 | (char *) "self", NULL | |
5527 | }; | |
5528 | ||
5529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
5530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5531 | { | |
5532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5533 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
5534 | ||
5535 | wxPyEndAllowThreads(__tstate); | |
5536 | if (PyErr_Occurred()) SWIG_fail; | |
5537 | } | |
5538 | resultobj = result; | |
5539 | return resultobj; | |
5540 | fail: | |
5541 | return NULL; | |
5542 | } | |
5543 | ||
5544 | ||
5545 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5546 | PyObject *resultobj; | |
5547 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5548 | int arg2 ; | |
5549 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5550 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5551 | char *kwnames[] = { |
5552 | (char *) "self",(char *) "n", NULL | |
5553 | }; | |
5554 | ||
8edf1c75 | 5555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5557 | { |
5558 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5559 | if (PyErr_Occurred()) SWIG_fail; | |
5560 | } | |
d14a1e28 RD |
5561 | { |
5562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5563 | (arg1)->SetFirstItem(arg2); | |
5564 | ||
5565 | wxPyEndAllowThreads(__tstate); | |
5566 | if (PyErr_Occurred()) SWIG_fail; | |
5567 | } | |
5568 | Py_INCREF(Py_None); resultobj = Py_None; | |
5569 | return resultobj; | |
5570 | fail: | |
5571 | return NULL; | |
5572 | } | |
5573 | ||
5574 | ||
5575 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5576 | PyObject *resultobj; | |
5577 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5578 | wxString *arg2 = 0 ; | |
423f194a | 5579 | bool temp2 = False ; |
d14a1e28 RD |
5580 | PyObject * obj0 = 0 ; |
5581 | PyObject * obj1 = 0 ; | |
5582 | char *kwnames[] = { | |
5583 | (char *) "self",(char *) "s", NULL | |
5584 | }; | |
5585 | ||
5586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
5587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5588 | { | |
5589 | arg2 = wxString_in_helper(obj1); | |
5590 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5591 | temp2 = True; |
d14a1e28 RD |
5592 | } |
5593 | { | |
5594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5595 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
5596 | ||
5597 | wxPyEndAllowThreads(__tstate); | |
5598 | if (PyErr_Occurred()) SWIG_fail; | |
5599 | } | |
5600 | Py_INCREF(Py_None); resultobj = Py_None; | |
5601 | { | |
5602 | if (temp2) | |
5603 | delete arg2; | |
5604 | } | |
5605 | return resultobj; | |
5606 | fail: | |
5607 | { | |
5608 | if (temp2) | |
5609 | delete arg2; | |
5610 | } | |
5611 | return NULL; | |
5612 | } | |
5613 | ||
5614 | ||
5615 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5616 | PyObject *resultobj; | |
5617 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5618 | int arg2 ; | |
5619 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5620 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5621 | char *kwnames[] = { |
5622 | (char *) "self",(char *) "n", NULL | |
5623 | }; | |
5624 | ||
8edf1c75 | 5625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5627 | { |
5628 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5629 | if (PyErr_Occurred()) SWIG_fail; | |
5630 | } | |
d14a1e28 RD |
5631 | { |
5632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5633 | (arg1)->EnsureVisible(arg2); | |
5634 | ||
5635 | wxPyEndAllowThreads(__tstate); | |
5636 | if (PyErr_Occurred()) SWIG_fail; | |
5637 | } | |
5638 | Py_INCREF(Py_None); resultobj = Py_None; | |
5639 | return resultobj; | |
5640 | fail: | |
5641 | return NULL; | |
5642 | } | |
5643 | ||
5644 | ||
5645 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5646 | PyObject *resultobj; | |
5647 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5648 | wxString *arg2 = 0 ; | |
423f194a | 5649 | bool temp2 = False ; |
d14a1e28 RD |
5650 | PyObject * obj0 = 0 ; |
5651 | PyObject * obj1 = 0 ; | |
5652 | char *kwnames[] = { | |
5653 | (char *) "self",(char *) "s", NULL | |
5654 | }; | |
5655 | ||
5656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
5657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5658 | { | |
5659 | arg2 = wxString_in_helper(obj1); | |
5660 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5661 | temp2 = True; |
d14a1e28 RD |
5662 | } |
5663 | { | |
5664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5665 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
5666 | ||
5667 | wxPyEndAllowThreads(__tstate); | |
5668 | if (PyErr_Occurred()) SWIG_fail; | |
5669 | } | |
5670 | Py_INCREF(Py_None); resultobj = Py_None; | |
5671 | { | |
5672 | if (temp2) | |
5673 | delete arg2; | |
5674 | } | |
5675 | return resultobj; | |
5676 | fail: | |
5677 | { | |
5678 | if (temp2) | |
5679 | delete arg2; | |
5680 | } | |
5681 | return NULL; | |
5682 | } | |
5683 | ||
5684 | ||
5685 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5686 | PyObject *resultobj; | |
5687 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5688 | bool result; | |
5689 | PyObject * obj0 = 0 ; | |
5690 | char *kwnames[] = { | |
5691 | (char *) "self", NULL | |
5692 | }; | |
5693 | ||
5694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
5695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5696 | { | |
5697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5698 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
5699 | ||
5700 | wxPyEndAllowThreads(__tstate); | |
5701 | if (PyErr_Occurred()) SWIG_fail; | |
5702 | } | |
02a34c4c | 5703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5704 | return resultobj; |
5705 | fail: | |
5706 | return NULL; | |
5707 | } | |
5708 | ||
5709 | ||
c3eb6258 RD |
5710 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
5711 | PyObject *resultobj; | |
5712 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5713 | int arg2 ; | |
5714 | wxColour *arg3 = 0 ; | |
5715 | wxColour temp3 ; | |
5716 | PyObject * obj0 = 0 ; | |
5717 | PyObject * obj1 = 0 ; | |
5718 | PyObject * obj2 = 0 ; | |
5719 | char *kwnames[] = { | |
5720 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5721 | }; | |
5722 | ||
5723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5725 | { | |
5726 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5727 | if (PyErr_Occurred()) SWIG_fail; | |
5728 | } | |
5729 | { | |
5730 | arg3 = &temp3; | |
5731 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5732 | } | |
5733 | { | |
5734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5735 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5736 | ||
5737 | wxPyEndAllowThreads(__tstate); | |
5738 | if (PyErr_Occurred()) SWIG_fail; | |
5739 | } | |
5740 | Py_INCREF(Py_None); resultobj = Py_None; | |
5741 | return resultobj; | |
5742 | fail: | |
5743 | return NULL; | |
5744 | } | |
5745 | ||
5746 | ||
5747 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5748 | PyObject *resultobj; | |
5749 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5750 | int arg2 ; | |
5751 | wxColour *arg3 = 0 ; | |
5752 | wxColour temp3 ; | |
5753 | PyObject * obj0 = 0 ; | |
5754 | PyObject * obj1 = 0 ; | |
5755 | PyObject * obj2 = 0 ; | |
5756 | char *kwnames[] = { | |
5757 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5758 | }; | |
5759 | ||
5760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5762 | { | |
5763 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5764 | if (PyErr_Occurred()) SWIG_fail; | |
5765 | } | |
5766 | { | |
5767 | arg3 = &temp3; | |
5768 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5769 | } | |
5770 | { | |
5771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5772 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5773 | ||
5774 | wxPyEndAllowThreads(__tstate); | |
5775 | if (PyErr_Occurred()) SWIG_fail; | |
5776 | } | |
5777 | Py_INCREF(Py_None); resultobj = Py_None; | |
5778 | return resultobj; | |
5779 | fail: | |
5780 | return NULL; | |
5781 | } | |
5782 | ||
5783 | ||
5784 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5785 | PyObject *resultobj; | |
5786 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5787 | int arg2 ; | |
5788 | wxFont *arg3 = 0 ; | |
5789 | PyObject * obj0 = 0 ; | |
5790 | PyObject * obj1 = 0 ; | |
5791 | PyObject * obj2 = 0 ; | |
5792 | char *kwnames[] = { | |
5793 | (char *) "self",(char *) "item",(char *) "f", NULL | |
5794 | }; | |
5795 | ||
5796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5798 | { | |
5799 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5800 | if (PyErr_Occurred()) SWIG_fail; | |
5801 | } | |
5802 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5803 | if (arg3 == NULL) { | |
5804 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5805 | } | |
5806 | { | |
5807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5808 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
5809 | ||
5810 | wxPyEndAllowThreads(__tstate); | |
5811 | if (PyErr_Occurred()) SWIG_fail; | |
5812 | } | |
5813 | Py_INCREF(Py_None); resultobj = Py_None; | |
5814 | return resultobj; | |
5815 | fail: | |
5816 | return NULL; | |
5817 | } | |
5818 | ||
5819 | ||
d14a1e28 RD |
5820 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { |
5821 | PyObject *obj; | |
5822 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5823 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
5824 | Py_INCREF(obj); | |
5825 | return Py_BuildValue((char *)""); | |
5826 | } | |
5827 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5828 | PyObject *resultobj; | |
5829 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 5830 | int arg2 ; |
d14a1e28 RD |
5831 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5832 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5833 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5834 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
02a34c4c RD |
5835 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5836 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5837 | long arg6 = (long) 0 ; | |
5838 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5839 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5840 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5841 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5842 | wxCheckListBox *result; |
5843 | wxPoint temp3 ; | |
5844 | wxSize temp4 ; | |
0ffb2aa6 | 5845 | bool temp5 = False ; |
423f194a | 5846 | bool temp8 = False ; |
d14a1e28 | 5847 | PyObject * obj0 = 0 ; |
8edf1c75 | 5848 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5849 | PyObject * obj2 = 0 ; |
5850 | PyObject * obj3 = 0 ; | |
5851 | PyObject * obj4 = 0 ; | |
8edf1c75 | 5852 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5853 | PyObject * obj6 = 0 ; |
5854 | PyObject * obj7 = 0 ; | |
5855 | char *kwnames[] = { | |
5856 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5857 | }; | |
5858 | ||
8edf1c75 | 5859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 5860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5861 | { |
5862 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5863 | if (PyErr_Occurred()) SWIG_fail; | |
5864 | } | |
d14a1e28 RD |
5865 | if (obj2) { |
5866 | { | |
5867 | arg3 = &temp3; | |
5868 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5869 | } | |
5870 | } | |
5871 | if (obj3) { | |
5872 | { | |
5873 | arg4 = &temp4; | |
5874 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5875 | } | |
5876 | } | |
5877 | if (obj4) { | |
5878 | { | |
02a34c4c RD |
5879 | if (! PySequence_Check(obj4)) { |
5880 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5881 | SWIG_fail; | |
5882 | } | |
5883 | arg5 = new wxArrayString; | |
0ffb2aa6 | 5884 | temp5 = True; |
02a34c4c RD |
5885 | int i, len=PySequence_Length(obj4); |
5886 | for (i=0; i<len; i++) { | |
5887 | PyObject* item = PySequence_GetItem(obj4, i); | |
5888 | #if wxUSE_UNICODE | |
5889 | PyObject* str = PyObject_Unicode(item); | |
5890 | #else | |
5891 | PyObject* str = PyObject_Str(item); | |
5892 | #endif | |
5893 | arg5->Add(Py2wxString(str)); | |
5894 | Py_DECREF(item); | |
5895 | Py_DECREF(str); | |
5896 | } | |
d14a1e28 RD |
5897 | } |
5898 | } | |
8edf1c75 RD |
5899 | if (obj5) { |
5900 | { | |
02a34c4c | 5901 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
5902 | if (PyErr_Occurred()) SWIG_fail; |
5903 | } | |
5904 | } | |
d14a1e28 | 5905 | if (obj6) { |
02a34c4c RD |
5906 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5907 | if (arg7 == NULL) { | |
d14a1e28 RD |
5908 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5909 | } | |
5910 | } | |
5911 | if (obj7) { | |
5912 | { | |
02a34c4c RD |
5913 | arg8 = wxString_in_helper(obj7); |
5914 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 5915 | temp8 = True; |
d14a1e28 RD |
5916 | } |
5917 | } | |
5918 | { | |
5919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 5920 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5921 | |
5922 | wxPyEndAllowThreads(__tstate); | |
5923 | if (PyErr_Occurred()) SWIG_fail; | |
5924 | } | |
5925 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5926 | { | |
0ffb2aa6 | 5927 | if (temp5) delete arg5; |
d14a1e28 RD |
5928 | } |
5929 | { | |
5930 | if (temp8) | |
02a34c4c | 5931 | delete arg8; |
d14a1e28 RD |
5932 | } |
5933 | return resultobj; | |
5934 | fail: | |
5935 | { | |
0ffb2aa6 | 5936 | if (temp5) delete arg5; |
d14a1e28 RD |
5937 | } |
5938 | { | |
5939 | if (temp8) | |
02a34c4c | 5940 | delete arg8; |
d14a1e28 RD |
5941 | } |
5942 | return NULL; | |
5943 | } | |
5944 | ||
5945 | ||
5946 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5947 | PyObject *resultobj; | |
5948 | wxCheckListBox *result; | |
5949 | char *kwnames[] = { | |
5950 | NULL | |
5951 | }; | |
5952 | ||
5953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
5954 | { | |
5955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5956 | result = (wxCheckListBox *)new wxCheckListBox(); | |
5957 | ||
5958 | wxPyEndAllowThreads(__tstate); | |
5959 | if (PyErr_Occurred()) SWIG_fail; | |
5960 | } | |
5961 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5962 | return resultobj; | |
5963 | fail: | |
5964 | return NULL; | |
5965 | } | |
5966 | ||
5967 | ||
5968 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5969 | PyObject *resultobj; | |
5970 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5971 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 5972 | int arg3 ; |
d14a1e28 RD |
5973 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5974 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5975 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5976 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
02a34c4c RD |
5977 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5978 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5979 | long arg7 = (long) 0 ; | |
5980 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5981 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5982 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5983 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5984 | bool result; |
5985 | wxPoint temp4 ; | |
5986 | wxSize temp5 ; | |
0ffb2aa6 | 5987 | bool temp6 = False ; |
423f194a | 5988 | bool temp9 = False ; |
d14a1e28 RD |
5989 | PyObject * obj0 = 0 ; |
5990 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5991 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5992 | PyObject * obj3 = 0 ; |
5993 | PyObject * obj4 = 0 ; | |
5994 | PyObject * obj5 = 0 ; | |
8edf1c75 | 5995 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5996 | PyObject * obj7 = 0 ; |
5997 | PyObject * obj8 = 0 ; | |
5998 | char *kwnames[] = { | |
5999 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6000 | }; | |
6001 | ||
8edf1c75 | 6002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
6003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6004 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
6005 | { |
6006 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6007 | if (PyErr_Occurred()) SWIG_fail; | |
6008 | } | |
d14a1e28 RD |
6009 | if (obj3) { |
6010 | { | |
6011 | arg4 = &temp4; | |
6012 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6013 | } | |
6014 | } | |
6015 | if (obj4) { | |
6016 | { | |
6017 | arg5 = &temp5; | |
6018 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6019 | } | |
6020 | } | |
6021 | if (obj5) { | |
6022 | { | |
02a34c4c RD |
6023 | if (! PySequence_Check(obj5)) { |
6024 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6025 | SWIG_fail; | |
6026 | } | |
6027 | arg6 = new wxArrayString; | |
0ffb2aa6 | 6028 | temp6 = True; |
02a34c4c RD |
6029 | int i, len=PySequence_Length(obj5); |
6030 | for (i=0; i<len; i++) { | |
6031 | PyObject* item = PySequence_GetItem(obj5, i); | |
6032 | #if wxUSE_UNICODE | |
6033 | PyObject* str = PyObject_Unicode(item); | |
6034 | #else | |
6035 | PyObject* str = PyObject_Str(item); | |
6036 | #endif | |
6037 | arg6->Add(Py2wxString(str)); | |
6038 | Py_DECREF(item); | |
6039 | Py_DECREF(str); | |
6040 | } | |
d14a1e28 RD |
6041 | } |
6042 | } | |
8edf1c75 RD |
6043 | if (obj6) { |
6044 | { | |
02a34c4c | 6045 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
6046 | if (PyErr_Occurred()) SWIG_fail; |
6047 | } | |
6048 | } | |
d14a1e28 | 6049 | if (obj7) { |
02a34c4c RD |
6050 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6051 | if (arg8 == NULL) { | |
d14a1e28 RD |
6052 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
6053 | } | |
6054 | } | |
6055 | if (obj8) { | |
6056 | { | |
02a34c4c RD |
6057 | arg9 = wxString_in_helper(obj8); |
6058 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 6059 | temp9 = True; |
d14a1e28 RD |
6060 | } |
6061 | } | |
6062 | { | |
6063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 6064 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
6065 | |
6066 | wxPyEndAllowThreads(__tstate); | |
6067 | if (PyErr_Occurred()) SWIG_fail; | |
6068 | } | |
02a34c4c | 6069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 6070 | { |
0ffb2aa6 | 6071 | if (temp6) delete arg6; |
d14a1e28 RD |
6072 | } |
6073 | { | |
6074 | if (temp9) | |
02a34c4c | 6075 | delete arg9; |
d14a1e28 RD |
6076 | } |
6077 | return resultobj; | |
6078 | fail: | |
6079 | { | |
0ffb2aa6 | 6080 | if (temp6) delete arg6; |
d14a1e28 RD |
6081 | } |
6082 | { | |
6083 | if (temp9) | |
02a34c4c | 6084 | delete arg9; |
d14a1e28 RD |
6085 | } |
6086 | return NULL; | |
6087 | } | |
6088 | ||
6089 | ||
6090 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6091 | PyObject *resultobj; | |
6092 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6093 | int arg2 ; | |
6094 | bool result; | |
6095 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6096 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6097 | char *kwnames[] = { |
6098 | (char *) "self",(char *) "index", NULL | |
6099 | }; | |
6100 | ||
8edf1c75 | 6101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6103 | { |
6104 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6105 | if (PyErr_Occurred()) SWIG_fail; | |
6106 | } | |
d14a1e28 RD |
6107 | { |
6108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6109 | result = (bool)(arg1)->IsChecked(arg2); | |
6110 | ||
6111 | wxPyEndAllowThreads(__tstate); | |
6112 | if (PyErr_Occurred()) SWIG_fail; | |
6113 | } | |
02a34c4c | 6114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6115 | return resultobj; |
6116 | fail: | |
6117 | return NULL; | |
6118 | } | |
6119 | ||
6120 | ||
6121 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6122 | PyObject *resultobj; | |
6123 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6124 | int arg2 ; | |
423f194a | 6125 | int arg3 = (int) True ; |
d14a1e28 | 6126 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
6127 | PyObject * obj1 = 0 ; |
6128 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6129 | char *kwnames[] = { |
6130 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6131 | }; | |
6132 | ||
8edf1c75 | 6133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6135 | { |
6136 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6137 | if (PyErr_Occurred()) SWIG_fail; | |
6138 | } | |
6139 | if (obj2) { | |
6140 | { | |
6141 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6142 | if (PyErr_Occurred()) SWIG_fail; | |
6143 | } | |
6144 | } | |
d14a1e28 RD |
6145 | { |
6146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6147 | (arg1)->Check(arg2,arg3); | |
6148 | ||
6149 | wxPyEndAllowThreads(__tstate); | |
6150 | if (PyErr_Occurred()) SWIG_fail; | |
6151 | } | |
6152 | Py_INCREF(Py_None); resultobj = Py_None; | |
6153 | return resultobj; | |
6154 | fail: | |
6155 | return NULL; | |
6156 | } | |
6157 | ||
6158 | ||
6159 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6160 | PyObject *resultobj; | |
6161 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6162 | wxPoint *arg2 = 0 ; | |
6163 | int result; | |
6164 | wxPoint temp2 ; | |
6165 | PyObject * obj0 = 0 ; | |
6166 | PyObject * obj1 = 0 ; | |
6167 | char *kwnames[] = { | |
6168 | (char *) "self",(char *) "pt", NULL | |
6169 | }; | |
6170 | ||
6171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
6172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6173 | { | |
6174 | arg2 = &temp2; | |
6175 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6176 | } | |
6177 | { | |
6178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6179 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6180 | ||
6181 | wxPyEndAllowThreads(__tstate); | |
6182 | if (PyErr_Occurred()) SWIG_fail; | |
6183 | } | |
8edf1c75 | 6184 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6185 | return resultobj; |
6186 | fail: | |
6187 | return NULL; | |
6188 | } | |
6189 | ||
6190 | ||
6191 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6192 | PyObject *resultobj; | |
6193 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
423f194a RD |
6194 | int arg2 ; |
6195 | int arg3 ; | |
d14a1e28 RD |
6196 | int result; |
6197 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6198 | PyObject * obj1 = 0 ; |
6199 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6200 | char *kwnames[] = { |
6201 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6202 | }; | |
6203 | ||
8edf1c75 | 6204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6206 | { |
6207 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6208 | if (PyErr_Occurred()) SWIG_fail; | |
6209 | } | |
6210 | { | |
6211 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6212 | if (PyErr_Occurred()) SWIG_fail; | |
6213 | } | |
d14a1e28 RD |
6214 | { |
6215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6216 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6217 | ||
6218 | wxPyEndAllowThreads(__tstate); | |
6219 | if (PyErr_Occurred()) SWIG_fail; | |
6220 | } | |
8edf1c75 | 6221 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6222 | return resultobj; |
6223 | fail: | |
6224 | return NULL; | |
6225 | } | |
6226 | ||
6227 | ||
6228 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6229 | PyObject *obj; | |
6230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6231 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6232 | Py_INCREF(obj); | |
6233 | return Py_BuildValue((char *)""); | |
6234 | } | |
8edf1c75 | 6235 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
cbd72d4f RD |
6236 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
6237 | return 1; | |
6238 | } | |
6239 | ||
6240 | ||
6241 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6242 | PyObject *pyobj; | |
6243 | ||
6244 | { | |
6245 | #if wxUSE_UNICODE | |
6246 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6247 | #else | |
6248 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6249 | #endif | |
6250 | } | |
6251 | return pyobj; | |
6252 | } | |
6253 | ||
6254 | ||
d14a1e28 RD |
6255 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { |
6256 | PyObject *resultobj; | |
6257 | wxTextAttr *result; | |
6258 | ||
6259 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
6260 | { | |
6261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6262 | result = (wxTextAttr *)new wxTextAttr(); | |
6263 | ||
6264 | wxPyEndAllowThreads(__tstate); | |
6265 | if (PyErr_Occurred()) SWIG_fail; | |
6266 | } | |
6267 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6268 | return resultobj; | |
6269 | fail: | |
6270 | return NULL; | |
6271 | } | |
6272 | ||
6273 | ||
6274 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
6275 | PyObject *resultobj; | |
6276 | wxColour *arg1 = 0 ; | |
6277 | wxColour const &arg2_defvalue = wxNullColour ; | |
6278 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6279 | wxFont const &arg3_defvalue = wxNullFont ; | |
6280 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6281 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6282 | wxTextAttr *result; | |
6283 | wxColour temp1 ; | |
6284 | wxColour temp2 ; | |
6285 | PyObject * obj0 = 0 ; | |
6286 | PyObject * obj1 = 0 ; | |
6287 | PyObject * obj2 = 0 ; | |
8edf1c75 | 6288 | PyObject * obj3 = 0 ; |
d14a1e28 | 6289 | |
8edf1c75 | 6290 | if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
6291 | { |
6292 | arg1 = &temp1; | |
6293 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
6294 | } | |
6295 | if (obj1) { | |
6296 | { | |
6297 | arg2 = &temp2; | |
6298 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6299 | } | |
6300 | } | |
6301 | if (obj2) { | |
6302 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6303 | if (arg3 == NULL) { | |
6304 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6305 | } | |
6306 | } | |
8edf1c75 RD |
6307 | if (obj3) { |
6308 | { | |
6309 | arg4 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj3); | |
6310 | if (PyErr_Occurred()) SWIG_fail; | |
6311 | } | |
6312 | } | |
d14a1e28 RD |
6313 | { |
6314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6315 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
6316 | ||
6317 | wxPyEndAllowThreads(__tstate); | |
6318 | if (PyErr_Occurred()) SWIG_fail; | |
6319 | } | |
6320 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6321 | return resultobj; | |
6322 | fail: | |
6323 | return NULL; | |
6324 | } | |
6325 | ||
6326 | ||
6327 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
6328 | int argc; | |
6329 | PyObject *argv[5]; | |
6330 | int ii; | |
6331 | ||
6332 | argc = PyObject_Length(args); | |
6333 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
6334 | argv[ii] = PyTuple_GetItem(args,ii); | |
6335 | } | |
6336 | if (argc == 0) { | |
6337 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
6338 | } | |
6339 | if ((argc >= 1) && (argc <= 4)) { | |
6340 | int _v; | |
6341 | { | |
6342 | _v = wxColour_typecheck(argv[0]); | |
6343 | } | |
6344 | if (_v) { | |
6345 | if (argc <= 1) { | |
6346 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6347 | } | |
6348 | { | |
6349 | _v = wxColour_typecheck(argv[1]); | |
6350 | } | |
6351 | if (_v) { | |
6352 | if (argc <= 2) { | |
6353 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6354 | } | |
6355 | { | |
6356 | void *ptr; | |
6357 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxFont, 0) == -1) { | |
6358 | _v = 0; | |
6359 | PyErr_Clear(); | |
6360 | } else { | |
6361 | _v = 1; | |
6362 | } | |
6363 | } | |
6364 | if (_v) { | |
6365 | if (argc <= 3) { | |
6366 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6367 | } | |
8edf1c75 RD |
6368 | { |
6369 | SWIG_PyObj_AsInt(argv[3]); | |
6370 | if (PyErr_Occurred()) { | |
6371 | _v = 0; | |
6372 | PyErr_Clear(); | |
6373 | } else { | |
6374 | _v = 1; | |
6375 | } | |
6376 | } | |
6377 | if (_v) { | |
6378 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6379 | } | |
d14a1e28 RD |
6380 | } |
6381 | } | |
6382 | } | |
6383 | } | |
6384 | ||
6385 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
6386 | return NULL; | |
6387 | } | |
6388 | ||
6389 | ||
8edf1c75 | 6390 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6391 | PyObject *resultobj; |
6392 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6393 | PyObject * obj0 = 0 ; | |
6394 | char *kwnames[] = { | |
6395 | (char *) "self", NULL | |
6396 | }; | |
6397 | ||
8edf1c75 | 6398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
6399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6400 | { | |
6401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8edf1c75 | 6402 | delete arg1; |
d14a1e28 RD |
6403 | |
6404 | wxPyEndAllowThreads(__tstate); | |
6405 | if (PyErr_Occurred()) SWIG_fail; | |
6406 | } | |
6407 | Py_INCREF(Py_None); resultobj = Py_None; | |
6408 | return resultobj; | |
6409 | fail: | |
6410 | return NULL; | |
6411 | } | |
6412 | ||
6413 | ||
8edf1c75 RD |
6414 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { |
6415 | PyObject *resultobj; | |
6416 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6417 | PyObject * obj0 = 0 ; | |
6418 | char *kwnames[] = { | |
6419 | (char *) "self", NULL | |
6420 | }; | |
6421 | ||
6422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
6423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6424 | { | |
6425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6426 | (arg1)->Init(); | |
6427 | ||
6428 | wxPyEndAllowThreads(__tstate); | |
6429 | if (PyErr_Occurred()) SWIG_fail; | |
6430 | } | |
6431 | Py_INCREF(Py_None); resultobj = Py_None; | |
6432 | return resultobj; | |
6433 | fail: | |
6434 | return NULL; | |
6435 | } | |
6436 | ||
6437 | ||
6438 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
6439 | PyObject *resultobj; |
6440 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6441 | wxColour *arg2 = 0 ; | |
6442 | wxColour temp2 ; | |
6443 | PyObject * obj0 = 0 ; | |
6444 | PyObject * obj1 = 0 ; | |
6445 | char *kwnames[] = { | |
6446 | (char *) "self",(char *) "colText", NULL | |
6447 | }; | |
6448 | ||
6449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
6450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6451 | { | |
6452 | arg2 = &temp2; | |
6453 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6454 | } | |
6455 | { | |
6456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6457 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
6458 | ||
6459 | wxPyEndAllowThreads(__tstate); | |
6460 | if (PyErr_Occurred()) SWIG_fail; | |
6461 | } | |
6462 | Py_INCREF(Py_None); resultobj = Py_None; | |
6463 | return resultobj; | |
6464 | fail: | |
6465 | return NULL; | |
6466 | } | |
6467 | ||
6468 | ||
6469 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6470 | PyObject *resultobj; | |
6471 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6472 | wxColour *arg2 = 0 ; | |
6473 | wxColour temp2 ; | |
6474 | PyObject * obj0 = 0 ; | |
6475 | PyObject * obj1 = 0 ; | |
6476 | char *kwnames[] = { | |
6477 | (char *) "self",(char *) "colBack", NULL | |
6478 | }; | |
6479 | ||
6480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
6481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6482 | { | |
6483 | arg2 = &temp2; | |
6484 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6485 | } | |
6486 | { | |
6487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6488 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
6489 | ||
6490 | wxPyEndAllowThreads(__tstate); | |
6491 | if (PyErr_Occurred()) SWIG_fail; | |
6492 | } | |
6493 | Py_INCREF(Py_None); resultobj = Py_None; | |
6494 | return resultobj; | |
6495 | fail: | |
6496 | return NULL; | |
6497 | } | |
6498 | ||
6499 | ||
6500 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6501 | PyObject *resultobj; | |
6502 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6503 | wxFont *arg2 = 0 ; | |
6504 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
6505 | PyObject * obj0 = 0 ; | |
6506 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6507 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6508 | char *kwnames[] = { |
6509 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
6510 | }; | |
6511 | ||
8edf1c75 | 6512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6514 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6515 | if (arg2 == NULL) { | |
6516 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6517 | } | |
8edf1c75 RD |
6518 | if (obj2) { |
6519 | { | |
6520 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
6521 | if (PyErr_Occurred()) SWIG_fail; | |
6522 | } | |
6523 | } | |
d14a1e28 RD |
6524 | { |
6525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6526 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
6527 | ||
6528 | wxPyEndAllowThreads(__tstate); | |
6529 | if (PyErr_Occurred()) SWIG_fail; | |
6530 | } | |
6531 | Py_INCREF(Py_None); resultobj = Py_None; | |
6532 | return resultobj; | |
6533 | fail: | |
6534 | return NULL; | |
6535 | } | |
6536 | ||
6537 | ||
6538 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6539 | PyObject *resultobj; | |
6540 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6541 | int arg2 ; | |
6542 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6543 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6544 | char *kwnames[] = { |
6545 | (char *) "self",(char *) "alignment", NULL | |
6546 | }; | |
6547 | ||
8edf1c75 | 6548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6550 | { |
6551 | arg2 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj1); | |
6552 | if (PyErr_Occurred()) SWIG_fail; | |
6553 | } | |
d14a1e28 RD |
6554 | { |
6555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6556 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
6557 | ||
6558 | wxPyEndAllowThreads(__tstate); | |
6559 | if (PyErr_Occurred()) SWIG_fail; | |
6560 | } | |
6561 | Py_INCREF(Py_None); resultobj = Py_None; | |
6562 | return resultobj; | |
6563 | fail: | |
6564 | return NULL; | |
6565 | } | |
6566 | ||
6567 | ||
6568 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6569 | PyObject *resultobj; | |
6570 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6571 | wxArrayInt *arg2 = 0 ; | |
0ffb2aa6 | 6572 | bool temp2 = False ; |
d14a1e28 RD |
6573 | PyObject * obj0 = 0 ; |
6574 | PyObject * obj1 = 0 ; | |
6575 | char *kwnames[] = { | |
6576 | (char *) "self",(char *) "tabs", NULL | |
6577 | }; | |
6578 | ||
6579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
6580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6581 | { | |
6582 | if (! PySequence_Check(obj1)) { | |
6583 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
6584 | SWIG_fail; | |
6585 | } | |
6586 | arg2 = new wxArrayInt; | |
0ffb2aa6 | 6587 | temp2 = True; |
d14a1e28 RD |
6588 | int i, len=PySequence_Length(obj1); |
6589 | for (i=0; i<len; i++) { | |
6590 | PyObject* item = PySequence_GetItem(obj1, i); | |
6591 | PyObject* number = PyNumber_Int(item); | |
6592 | arg2->Add(PyInt_AS_LONG(number)); | |
6593 | Py_DECREF(item); | |
6594 | Py_DECREF(number); | |
6595 | } | |
6596 | } | |
6597 | { | |
6598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6599 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
6600 | ||
6601 | wxPyEndAllowThreads(__tstate); | |
6602 | if (PyErr_Occurred()) SWIG_fail; | |
6603 | } | |
6604 | Py_INCREF(Py_None); resultobj = Py_None; | |
6605 | { | |
0ffb2aa6 | 6606 | if (temp2) delete arg2; |
d14a1e28 RD |
6607 | } |
6608 | return resultobj; | |
6609 | fail: | |
6610 | { | |
0ffb2aa6 | 6611 | if (temp2) delete arg2; |
d14a1e28 RD |
6612 | } |
6613 | return NULL; | |
6614 | } | |
6615 | ||
6616 | ||
6617 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6618 | PyObject *resultobj; | |
6619 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6620 | int arg2 ; | |
6621 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6622 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6623 | char *kwnames[] = { |
6624 | (char *) "self",(char *) "indent", NULL | |
6625 | }; | |
6626 | ||
8edf1c75 | 6627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6629 | { |
6630 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6631 | if (PyErr_Occurred()) SWIG_fail; | |
6632 | } | |
d14a1e28 RD |
6633 | { |
6634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6635 | (arg1)->SetLeftIndent(arg2); | |
6636 | ||
6637 | wxPyEndAllowThreads(__tstate); | |
6638 | if (PyErr_Occurred()) SWIG_fail; | |
6639 | } | |
6640 | Py_INCREF(Py_None); resultobj = Py_None; | |
6641 | return resultobj; | |
6642 | fail: | |
6643 | return NULL; | |
6644 | } | |
6645 | ||
6646 | ||
6647 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6648 | PyObject *resultobj; | |
6649 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6650 | int arg2 ; | |
6651 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6652 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6653 | char *kwnames[] = { |
6654 | (char *) "self",(char *) "indent", NULL | |
6655 | }; | |
6656 | ||
8edf1c75 | 6657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6659 | { |
6660 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6661 | if (PyErr_Occurred()) SWIG_fail; | |
6662 | } | |
d14a1e28 RD |
6663 | { |
6664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6665 | (arg1)->SetRightIndent(arg2); | |
6666 | ||
6667 | wxPyEndAllowThreads(__tstate); | |
6668 | if (PyErr_Occurred()) SWIG_fail; | |
6669 | } | |
6670 | Py_INCREF(Py_None); resultobj = Py_None; | |
6671 | return resultobj; | |
6672 | fail: | |
6673 | return NULL; | |
6674 | } | |
6675 | ||
6676 | ||
6677 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6678 | PyObject *resultobj; | |
6679 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6680 | long arg2 ; | |
6681 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6682 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6683 | char *kwnames[] = { |
6684 | (char *) "self",(char *) "flags", NULL | |
6685 | }; | |
6686 | ||
8edf1c75 | 6687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6689 | { |
6690 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
6691 | if (PyErr_Occurred()) SWIG_fail; | |
6692 | } | |
d14a1e28 RD |
6693 | { |
6694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6695 | (arg1)->SetFlags(arg2); | |
6696 | ||
6697 | wxPyEndAllowThreads(__tstate); | |
6698 | if (PyErr_Occurred()) SWIG_fail; | |
6699 | } | |
6700 | Py_INCREF(Py_None); resultobj = Py_None; | |
6701 | return resultobj; | |
6702 | fail: | |
6703 | return NULL; | |
6704 | } | |
6705 | ||
6706 | ||
6707 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6708 | PyObject *resultobj; | |
6709 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6710 | bool result; | |
6711 | PyObject * obj0 = 0 ; | |
6712 | char *kwnames[] = { | |
6713 | (char *) "self", NULL | |
6714 | }; | |
6715 | ||
6716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
6717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6718 | { | |
6719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6720 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
6721 | ||
6722 | wxPyEndAllowThreads(__tstate); | |
6723 | if (PyErr_Occurred()) SWIG_fail; | |
6724 | } | |
02a34c4c | 6725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6726 | return resultobj; |
6727 | fail: | |
6728 | return NULL; | |
6729 | } | |
6730 | ||
6731 | ||
6732 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6733 | PyObject *resultobj; | |
6734 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6735 | bool result; | |
6736 | PyObject * obj0 = 0 ; | |
6737 | char *kwnames[] = { | |
6738 | (char *) "self", NULL | |
6739 | }; | |
6740 | ||
6741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
6742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6743 | { | |
6744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6745 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
6746 | ||
6747 | wxPyEndAllowThreads(__tstate); | |
6748 | if (PyErr_Occurred()) SWIG_fail; | |
6749 | } | |
02a34c4c | 6750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6751 | return resultobj; |
6752 | fail: | |
6753 | return NULL; | |
6754 | } | |
6755 | ||
6756 | ||
6757 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6758 | PyObject *resultobj; | |
6759 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6760 | bool result; | |
6761 | PyObject * obj0 = 0 ; | |
6762 | char *kwnames[] = { | |
6763 | (char *) "self", NULL | |
6764 | }; | |
6765 | ||
6766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
6767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6768 | { | |
6769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6770 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
6771 | ||
6772 | wxPyEndAllowThreads(__tstate); | |
6773 | if (PyErr_Occurred()) SWIG_fail; | |
6774 | } | |
02a34c4c | 6775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6776 | return resultobj; |
6777 | fail: | |
6778 | return NULL; | |
6779 | } | |
6780 | ||
6781 | ||
6782 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6783 | PyObject *resultobj; | |
6784 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6785 | bool result; | |
6786 | PyObject * obj0 = 0 ; | |
6787 | char *kwnames[] = { | |
6788 | (char *) "self", NULL | |
6789 | }; | |
6790 | ||
6791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
6792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6793 | { | |
6794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6795 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
6796 | ||
6797 | wxPyEndAllowThreads(__tstate); | |
6798 | if (PyErr_Occurred()) SWIG_fail; | |
6799 | } | |
02a34c4c | 6800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6801 | return resultobj; |
6802 | fail: | |
6803 | return NULL; | |
6804 | } | |
6805 | ||
6806 | ||
6807 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6808 | PyObject *resultobj; | |
6809 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6810 | bool result; | |
6811 | PyObject * obj0 = 0 ; | |
6812 | char *kwnames[] = { | |
6813 | (char *) "self", NULL | |
6814 | }; | |
6815 | ||
6816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
6817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6818 | { | |
6819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6820 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
6821 | ||
6822 | wxPyEndAllowThreads(__tstate); | |
6823 | if (PyErr_Occurred()) SWIG_fail; | |
6824 | } | |
02a34c4c | 6825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6826 | return resultobj; |
6827 | fail: | |
6828 | return NULL; | |
6829 | } | |
6830 | ||
6831 | ||
6832 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6833 | PyObject *resultobj; | |
6834 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6835 | bool result; | |
6836 | PyObject * obj0 = 0 ; | |
6837 | char *kwnames[] = { | |
6838 | (char *) "self", NULL | |
6839 | }; | |
6840 | ||
6841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
6842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6843 | { | |
6844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6845 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
6846 | ||
6847 | wxPyEndAllowThreads(__tstate); | |
6848 | if (PyErr_Occurred()) SWIG_fail; | |
6849 | } | |
02a34c4c | 6850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6851 | return resultobj; |
6852 | fail: | |
6853 | return NULL; | |
6854 | } | |
6855 | ||
6856 | ||
6857 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6858 | PyObject *resultobj; | |
6859 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6860 | bool result; | |
6861 | PyObject * obj0 = 0 ; | |
6862 | char *kwnames[] = { | |
6863 | (char *) "self", NULL | |
6864 | }; | |
6865 | ||
6866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
6867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6868 | { | |
6869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6870 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
6871 | ||
6872 | wxPyEndAllowThreads(__tstate); | |
6873 | if (PyErr_Occurred()) SWIG_fail; | |
6874 | } | |
02a34c4c | 6875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6876 | return resultobj; |
6877 | fail: | |
6878 | return NULL; | |
6879 | } | |
6880 | ||
6881 | ||
6882 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6883 | PyObject *resultobj; | |
6884 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6885 | long arg2 ; | |
6886 | bool result; | |
6887 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6888 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6889 | char *kwnames[] = { |
6890 | (char *) "self",(char *) "flag", NULL | |
6891 | }; | |
6892 | ||
8edf1c75 | 6893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6895 | { |
6896 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
6897 | if (PyErr_Occurred()) SWIG_fail; | |
6898 | } | |
d14a1e28 RD |
6899 | { |
6900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6901 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
6902 | ||
6903 | wxPyEndAllowThreads(__tstate); | |
6904 | if (PyErr_Occurred()) SWIG_fail; | |
6905 | } | |
02a34c4c | 6906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6907 | return resultobj; |
6908 | fail: | |
6909 | return NULL; | |
6910 | } | |
6911 | ||
6912 | ||
6913 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6914 | PyObject *resultobj; | |
6915 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6916 | wxColour *result; | |
6917 | PyObject * obj0 = 0 ; | |
6918 | char *kwnames[] = { | |
6919 | (char *) "self", NULL | |
6920 | }; | |
6921 | ||
6922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
6923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6924 | { | |
6925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6926 | { | |
6927 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
6928 | result = (wxColour *) &_result_ref; | |
6929 | } | |
6930 | ||
6931 | wxPyEndAllowThreads(__tstate); | |
6932 | if (PyErr_Occurred()) SWIG_fail; | |
6933 | } | |
6934 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6935 | return resultobj; | |
6936 | fail: | |
6937 | return NULL; | |
6938 | } | |
6939 | ||
6940 | ||
6941 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6942 | PyObject *resultobj; | |
6943 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6944 | wxColour *result; | |
6945 | PyObject * obj0 = 0 ; | |
6946 | char *kwnames[] = { | |
6947 | (char *) "self", NULL | |
6948 | }; | |
6949 | ||
6950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
6951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6952 | { | |
6953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6954 | { | |
6955 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
6956 | result = (wxColour *) &_result_ref; | |
6957 | } | |
6958 | ||
6959 | wxPyEndAllowThreads(__tstate); | |
6960 | if (PyErr_Occurred()) SWIG_fail; | |
6961 | } | |
6962 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6963 | return resultobj; | |
6964 | fail: | |
6965 | return NULL; | |
6966 | } | |
6967 | ||
6968 | ||
6969 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6970 | PyObject *resultobj; | |
6971 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6972 | wxFont *result; | |
6973 | PyObject * obj0 = 0 ; | |
6974 | char *kwnames[] = { | |
6975 | (char *) "self", NULL | |
6976 | }; | |
6977 | ||
6978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
6979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6980 | { | |
6981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6982 | { | |
6983 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
6984 | result = (wxFont *) &_result_ref; | |
6985 | } | |
6986 | ||
6987 | wxPyEndAllowThreads(__tstate); | |
6988 | if (PyErr_Occurred()) SWIG_fail; | |
6989 | } | |
6990 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
6991 | return resultobj; | |
6992 | fail: | |
6993 | return NULL; | |
6994 | } | |
6995 | ||
6996 | ||
6997 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6998 | PyObject *resultobj; | |
6999 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7000 | int result; | |
7001 | PyObject * obj0 = 0 ; | |
7002 | char *kwnames[] = { | |
7003 | (char *) "self", NULL | |
7004 | }; | |
7005 | ||
7006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
7007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7008 | { | |
7009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7010 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7011 | ||
7012 | wxPyEndAllowThreads(__tstate); | |
7013 | if (PyErr_Occurred()) SWIG_fail; | |
7014 | } | |
8edf1c75 | 7015 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7016 | return resultobj; |
7017 | fail: | |
7018 | return NULL; | |
7019 | } | |
7020 | ||
7021 | ||
7022 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7023 | PyObject *resultobj; | |
7024 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7025 | wxArrayInt *result; | |
7026 | PyObject * obj0 = 0 ; | |
7027 | char *kwnames[] = { | |
7028 | (char *) "self", NULL | |
7029 | }; | |
7030 | ||
7031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
7032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7033 | { | |
7034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7035 | { | |
7036 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7037 | result = (wxArrayInt *) &_result_ref; | |
7038 | } | |
7039 | ||
7040 | wxPyEndAllowThreads(__tstate); | |
7041 | if (PyErr_Occurred()) SWIG_fail; | |
7042 | } | |
7043 | { | |
7044 | resultobj = PyList_New(0); | |
7045 | size_t idx; | |
7046 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7047 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7048 | PyList_Append(resultobj, val); | |
7049 | Py_DECREF(val); | |
7050 | } | |
7051 | } | |
7052 | return resultobj; | |
7053 | fail: | |
7054 | return NULL; | |
7055 | } | |
7056 | ||
7057 | ||
7058 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7059 | PyObject *resultobj; | |
7060 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7061 | long result; | |
7062 | PyObject * obj0 = 0 ; | |
7063 | char *kwnames[] = { | |
7064 | (char *) "self", NULL | |
7065 | }; | |
7066 | ||
7067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
7068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7069 | { | |
7070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7071 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7072 | ||
7073 | wxPyEndAllowThreads(__tstate); | |
7074 | if (PyErr_Occurred()) SWIG_fail; | |
7075 | } | |
8edf1c75 | 7076 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7077 | return resultobj; |
7078 | fail: | |
7079 | return NULL; | |
7080 | } | |
7081 | ||
7082 | ||
7083 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7084 | PyObject *resultobj; | |
7085 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7086 | long result; | |
7087 | PyObject * obj0 = 0 ; | |
7088 | char *kwnames[] = { | |
7089 | (char *) "self", NULL | |
7090 | }; | |
7091 | ||
7092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
7093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7094 | { | |
7095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7096 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7097 | ||
7098 | wxPyEndAllowThreads(__tstate); | |
7099 | if (PyErr_Occurred()) SWIG_fail; | |
7100 | } | |
8edf1c75 | 7101 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7102 | return resultobj; |
7103 | fail: | |
7104 | return NULL; | |
7105 | } | |
7106 | ||
7107 | ||
7108 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7109 | PyObject *resultobj; | |
7110 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7111 | long result; | |
7112 | PyObject * obj0 = 0 ; | |
7113 | char *kwnames[] = { | |
7114 | (char *) "self", NULL | |
7115 | }; | |
7116 | ||
7117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
7118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7119 | { | |
7120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7121 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7122 | ||
7123 | wxPyEndAllowThreads(__tstate); | |
7124 | if (PyErr_Occurred()) SWIG_fail; | |
7125 | } | |
8edf1c75 | 7126 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7127 | return resultobj; |
7128 | fail: | |
7129 | return NULL; | |
7130 | } | |
7131 | ||
7132 | ||
7133 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7134 | PyObject *resultobj; | |
7135 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7136 | bool result; | |
7137 | PyObject * obj0 = 0 ; | |
7138 | char *kwnames[] = { | |
7139 | (char *) "self", NULL | |
7140 | }; | |
7141 | ||
7142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
7143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7144 | { | |
7145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7146 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7147 | ||
7148 | wxPyEndAllowThreads(__tstate); | |
7149 | if (PyErr_Occurred()) SWIG_fail; | |
7150 | } | |
02a34c4c | 7151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7152 | return resultobj; |
7153 | fail: | |
7154 | return NULL; | |
7155 | } | |
7156 | ||
7157 | ||
7158 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7159 | PyObject *resultobj; | |
7160 | wxTextAttr *arg1 = 0 ; | |
7161 | wxTextAttr *arg2 = 0 ; | |
7162 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7163 | wxTextAttr result; | |
7164 | PyObject * obj0 = 0 ; | |
7165 | PyObject * obj1 = 0 ; | |
7166 | PyObject * obj2 = 0 ; | |
7167 | char *kwnames[] = { | |
7168 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7169 | }; | |
7170 | ||
7171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7173 | if (arg1 == NULL) { | |
7174 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7175 | } | |
7176 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7177 | if (arg2 == NULL) { | |
7178 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7179 | } | |
7180 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7181 | { | |
7182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7183 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7184 | ||
7185 | wxPyEndAllowThreads(__tstate); | |
7186 | if (PyErr_Occurred()) SWIG_fail; | |
7187 | } | |
7188 | { | |
7189 | wxTextAttr * resultptr; | |
7190 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
7191 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTextAttr, 1); | |
7192 | } | |
7193 | return resultobj; | |
7194 | fail: | |
7195 | return NULL; | |
7196 | } | |
7197 | ||
7198 | ||
7199 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7200 | PyObject *obj; | |
7201 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7202 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7203 | Py_INCREF(obj); | |
7204 | return Py_BuildValue((char *)""); | |
7205 | } | |
7206 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7207 | PyObject *resultobj; | |
7208 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 7209 | int arg2 ; |
d14a1e28 RD |
7210 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7211 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7212 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7213 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7214 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7215 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7216 | long arg6 = (long) 0 ; | |
7217 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7218 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7219 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7220 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7221 | wxTextCtrl *result; | |
423f194a | 7222 | bool temp3 = False ; |
d14a1e28 RD |
7223 | wxPoint temp4 ; |
7224 | wxSize temp5 ; | |
423f194a | 7225 | bool temp8 = False ; |
d14a1e28 | 7226 | PyObject * obj0 = 0 ; |
8edf1c75 | 7227 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7228 | PyObject * obj2 = 0 ; |
7229 | PyObject * obj3 = 0 ; | |
7230 | PyObject * obj4 = 0 ; | |
8edf1c75 | 7231 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7232 | PyObject * obj6 = 0 ; |
7233 | PyObject * obj7 = 0 ; | |
7234 | char *kwnames[] = { | |
7235 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7236 | }; | |
7237 | ||
8edf1c75 | 7238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 7239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7240 | { |
7241 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7242 | if (PyErr_Occurred()) SWIG_fail; | |
7243 | } | |
d14a1e28 RD |
7244 | if (obj2) { |
7245 | { | |
7246 | arg3 = wxString_in_helper(obj2); | |
7247 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7248 | temp3 = True; |
d14a1e28 RD |
7249 | } |
7250 | } | |
7251 | if (obj3) { | |
7252 | { | |
7253 | arg4 = &temp4; | |
7254 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7255 | } | |
7256 | } | |
7257 | if (obj4) { | |
7258 | { | |
7259 | arg5 = &temp5; | |
7260 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7261 | } | |
7262 | } | |
8edf1c75 RD |
7263 | if (obj5) { |
7264 | { | |
7265 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
7266 | if (PyErr_Occurred()) SWIG_fail; | |
7267 | } | |
7268 | } | |
d14a1e28 RD |
7269 | if (obj6) { |
7270 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7271 | if (arg7 == NULL) { | |
7272 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7273 | } | |
7274 | } | |
7275 | if (obj7) { | |
7276 | { | |
7277 | arg8 = wxString_in_helper(obj7); | |
7278 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 7279 | temp8 = True; |
d14a1e28 RD |
7280 | } |
7281 | } | |
7282 | { | |
7283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7284 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7285 | ||
7286 | wxPyEndAllowThreads(__tstate); | |
7287 | if (PyErr_Occurred()) SWIG_fail; | |
7288 | } | |
7289 | { | |
7290 | resultobj = wxPyMake_wxObject(result); | |
7291 | } | |
7292 | { | |
7293 | if (temp3) | |
7294 | delete arg3; | |
7295 | } | |
7296 | { | |
7297 | if (temp8) | |
7298 | delete arg8; | |
7299 | } | |
7300 | return resultobj; | |
7301 | fail: | |
7302 | { | |
7303 | if (temp3) | |
7304 | delete arg3; | |
7305 | } | |
7306 | { | |
7307 | if (temp8) | |
7308 | delete arg8; | |
7309 | } | |
7310 | return NULL; | |
7311 | } | |
7312 | ||
7313 | ||
7314 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7315 | PyObject *resultobj; | |
7316 | wxTextCtrl *result; | |
7317 | char *kwnames[] = { | |
7318 | NULL | |
7319 | }; | |
7320 | ||
7321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
7322 | { | |
7323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7324 | result = (wxTextCtrl *)new wxTextCtrl(); | |
7325 | ||
7326 | wxPyEndAllowThreads(__tstate); | |
7327 | if (PyErr_Occurred()) SWIG_fail; | |
7328 | } | |
7329 | { | |
7330 | resultobj = wxPyMake_wxObject(result); | |
7331 | } | |
7332 | return resultobj; | |
7333 | fail: | |
7334 | return NULL; | |
7335 | } | |
7336 | ||
7337 | ||
7338 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7339 | PyObject *resultobj; | |
7340 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7341 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 7342 | int arg3 ; |
d14a1e28 RD |
7343 | wxString const &arg4_defvalue = wxPyEmptyString ; |
7344 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7345 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7346 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7347 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7348 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7349 | long arg7 = (long) 0 ; | |
7350 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7351 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7352 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
7353 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7354 | bool result; | |
423f194a | 7355 | bool temp4 = False ; |
d14a1e28 RD |
7356 | wxPoint temp5 ; |
7357 | wxSize temp6 ; | |
423f194a | 7358 | bool temp9 = False ; |
d14a1e28 RD |
7359 | PyObject * obj0 = 0 ; |
7360 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7361 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7362 | PyObject * obj3 = 0 ; |
7363 | PyObject * obj4 = 0 ; | |
7364 | PyObject * obj5 = 0 ; | |
8edf1c75 | 7365 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7366 | PyObject * obj7 = 0 ; |
7367 | PyObject * obj8 = 0 ; | |
7368 | char *kwnames[] = { | |
7369 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7370 | }; | |
7371 | ||
8edf1c75 | 7372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
7373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7374 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
7375 | { |
7376 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7377 | if (PyErr_Occurred()) SWIG_fail; | |
7378 | } | |
d14a1e28 RD |
7379 | if (obj3) { |
7380 | { | |
7381 | arg4 = wxString_in_helper(obj3); | |
7382 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7383 | temp4 = True; |
d14a1e28 RD |
7384 | } |
7385 | } | |
7386 | if (obj4) { | |
7387 | { | |
7388 | arg5 = &temp5; | |
7389 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
7390 | } | |
7391 | } | |
7392 | if (obj5) { | |
7393 | { | |
7394 | arg6 = &temp6; | |
7395 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7396 | } | |
7397 | } | |
8edf1c75 RD |
7398 | if (obj6) { |
7399 | { | |
7400 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
7401 | if (PyErr_Occurred()) SWIG_fail; | |
7402 | } | |
7403 | } | |
d14a1e28 RD |
7404 | if (obj7) { |
7405 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7406 | if (arg8 == NULL) { | |
7407 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7408 | } | |
7409 | } | |
7410 | if (obj8) { | |
7411 | { | |
7412 | arg9 = wxString_in_helper(obj8); | |
7413 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 7414 | temp9 = True; |
d14a1e28 RD |
7415 | } |
7416 | } | |
7417 | { | |
7418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7419 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7420 | ||
7421 | wxPyEndAllowThreads(__tstate); | |
7422 | if (PyErr_Occurred()) SWIG_fail; | |
7423 | } | |
02a34c4c | 7424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7425 | { |
7426 | if (temp4) | |
7427 | delete arg4; | |
7428 | } | |
7429 | { | |
7430 | if (temp9) | |
7431 | delete arg9; | |
7432 | } | |
7433 | return resultobj; | |
7434 | fail: | |
7435 | { | |
7436 | if (temp4) | |
7437 | delete arg4; | |
7438 | } | |
7439 | { | |
7440 | if (temp9) | |
7441 | delete arg9; | |
7442 | } | |
7443 | return NULL; | |
7444 | } | |
7445 | ||
7446 | ||
7447 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7448 | PyObject *resultobj; | |
7449 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7450 | wxString result; | |
7451 | PyObject * obj0 = 0 ; | |
7452 | char *kwnames[] = { | |
7453 | (char *) "self", NULL | |
7454 | }; | |
7455 | ||
7456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
7457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7458 | { | |
7459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7460 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
7461 | ||
7462 | wxPyEndAllowThreads(__tstate); | |
7463 | if (PyErr_Occurred()) SWIG_fail; | |
7464 | } | |
7465 | { | |
7466 | #if wxUSE_UNICODE | |
7467 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7468 | #else | |
7469 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7470 | #endif | |
7471 | } | |
7472 | return resultobj; | |
7473 | fail: | |
7474 | return NULL; | |
7475 | } | |
7476 | ||
7477 | ||
7478 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7479 | PyObject *resultobj; | |
7480 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7481 | wxString *arg2 = 0 ; | |
423f194a | 7482 | bool temp2 = False ; |
d14a1e28 RD |
7483 | PyObject * obj0 = 0 ; |
7484 | PyObject * obj1 = 0 ; | |
7485 | char *kwnames[] = { | |
7486 | (char *) "self",(char *) "value", NULL | |
7487 | }; | |
7488 | ||
7489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
7490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7491 | { | |
7492 | arg2 = wxString_in_helper(obj1); | |
7493 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7494 | temp2 = True; |
d14a1e28 RD |
7495 | } |
7496 | { | |
7497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7498 | (arg1)->SetValue((wxString const &)*arg2); | |
7499 | ||
7500 | wxPyEndAllowThreads(__tstate); | |
7501 | if (PyErr_Occurred()) SWIG_fail; | |
7502 | } | |
7503 | Py_INCREF(Py_None); resultobj = Py_None; | |
7504 | { | |
7505 | if (temp2) | |
7506 | delete arg2; | |
7507 | } | |
7508 | return resultobj; | |
7509 | fail: | |
7510 | { | |
7511 | if (temp2) | |
7512 | delete arg2; | |
7513 | } | |
7514 | return NULL; | |
7515 | } | |
7516 | ||
7517 | ||
7518 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7519 | PyObject *resultobj; | |
7520 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7521 | long arg2 ; | |
7522 | long arg3 ; | |
7523 | wxString result; | |
7524 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7525 | PyObject * obj1 = 0 ; |
7526 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7527 | char *kwnames[] = { |
7528 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7529 | }; | |
7530 | ||
8edf1c75 | 7531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7533 | { |
7534 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7535 | if (PyErr_Occurred()) SWIG_fail; | |
7536 | } | |
7537 | { | |
7538 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7539 | if (PyErr_Occurred()) SWIG_fail; | |
7540 | } | |
d14a1e28 RD |
7541 | { |
7542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7543 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
7544 | ||
7545 | wxPyEndAllowThreads(__tstate); | |
7546 | if (PyErr_Occurred()) SWIG_fail; | |
7547 | } | |
7548 | { | |
7549 | #if wxUSE_UNICODE | |
7550 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7551 | #else | |
7552 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7553 | #endif | |
7554 | } | |
7555 | return resultobj; | |
7556 | fail: | |
7557 | return NULL; | |
7558 | } | |
7559 | ||
7560 | ||
7561 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7562 | PyObject *resultobj; | |
7563 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7564 | long arg2 ; | |
7565 | int result; | |
7566 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7567 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7568 | char *kwnames[] = { |
7569 | (char *) "self",(char *) "lineNo", NULL | |
7570 | }; | |
7571 | ||
8edf1c75 | 7572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7574 | { |
7575 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7576 | if (PyErr_Occurred()) SWIG_fail; | |
7577 | } | |
d14a1e28 RD |
7578 | { |
7579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7580 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
7581 | ||
7582 | wxPyEndAllowThreads(__tstate); | |
7583 | if (PyErr_Occurred()) SWIG_fail; | |
7584 | } | |
8edf1c75 | 7585 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7586 | return resultobj; |
7587 | fail: | |
7588 | return NULL; | |
7589 | } | |
7590 | ||
7591 | ||
7592 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7593 | PyObject *resultobj; | |
7594 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7595 | long arg2 ; | |
7596 | wxString result; | |
7597 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7598 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7599 | char *kwnames[] = { |
7600 | (char *) "self",(char *) "lineNo", NULL | |
7601 | }; | |
7602 | ||
8edf1c75 | 7603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7605 | { |
7606 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7607 | if (PyErr_Occurred()) SWIG_fail; | |
7608 | } | |
d14a1e28 RD |
7609 | { |
7610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7611 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
7612 | ||
7613 | wxPyEndAllowThreads(__tstate); | |
7614 | if (PyErr_Occurred()) SWIG_fail; | |
7615 | } | |
7616 | { | |
7617 | #if wxUSE_UNICODE | |
7618 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7619 | #else | |
7620 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7621 | #endif | |
7622 | } | |
7623 | return resultobj; | |
7624 | fail: | |
7625 | return NULL; | |
7626 | } | |
7627 | ||
7628 | ||
7629 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7630 | PyObject *resultobj; | |
7631 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7632 | int result; | |
7633 | PyObject * obj0 = 0 ; | |
7634 | char *kwnames[] = { | |
7635 | (char *) "self", NULL | |
7636 | }; | |
7637 | ||
7638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
7639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7640 | { | |
7641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7642 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
7643 | ||
7644 | wxPyEndAllowThreads(__tstate); | |
7645 | if (PyErr_Occurred()) SWIG_fail; | |
7646 | } | |
8edf1c75 | 7647 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7648 | return resultobj; |
7649 | fail: | |
7650 | return NULL; | |
7651 | } | |
7652 | ||
7653 | ||
7654 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7655 | PyObject *resultobj; | |
7656 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7657 | bool result; | |
7658 | PyObject * obj0 = 0 ; | |
7659 | char *kwnames[] = { | |
7660 | (char *) "self", NULL | |
7661 | }; | |
7662 | ||
7663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
7664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7665 | { | |
7666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7667 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
7668 | ||
7669 | wxPyEndAllowThreads(__tstate); | |
7670 | if (PyErr_Occurred()) SWIG_fail; | |
7671 | } | |
02a34c4c | 7672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7673 | return resultobj; |
7674 | fail: | |
7675 | return NULL; | |
7676 | } | |
7677 | ||
7678 | ||
7679 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7680 | PyObject *resultobj; | |
7681 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7682 | bool result; | |
7683 | PyObject * obj0 = 0 ; | |
7684 | char *kwnames[] = { | |
7685 | (char *) "self", NULL | |
7686 | }; | |
7687 | ||
7688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
7689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7690 | { | |
7691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7692 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
7693 | ||
7694 | wxPyEndAllowThreads(__tstate); | |
7695 | if (PyErr_Occurred()) SWIG_fail; | |
7696 | } | |
02a34c4c | 7697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7698 | return resultobj; |
7699 | fail: | |
7700 | return NULL; | |
7701 | } | |
7702 | ||
7703 | ||
7704 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7705 | PyObject *resultobj; | |
7706 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7707 | bool result; | |
7708 | PyObject * obj0 = 0 ; | |
7709 | char *kwnames[] = { | |
7710 | (char *) "self", NULL | |
7711 | }; | |
7712 | ||
7713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
7714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7715 | { | |
7716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7717 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
7718 | ||
7719 | wxPyEndAllowThreads(__tstate); | |
7720 | if (PyErr_Occurred()) SWIG_fail; | |
7721 | } | |
02a34c4c | 7722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7723 | return resultobj; |
7724 | fail: | |
7725 | return NULL; | |
7726 | } | |
7727 | ||
7728 | ||
7729 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7730 | PyObject *resultobj; | |
7731 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7732 | bool result; | |
7733 | PyObject * obj0 = 0 ; | |
7734 | char *kwnames[] = { | |
7735 | (char *) "self", NULL | |
7736 | }; | |
7737 | ||
7738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
7739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7740 | { | |
7741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7742 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
7743 | ||
7744 | wxPyEndAllowThreads(__tstate); | |
7745 | if (PyErr_Occurred()) SWIG_fail; | |
7746 | } | |
02a34c4c | 7747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7748 | return resultobj; |
7749 | fail: | |
7750 | return NULL; | |
7751 | } | |
7752 | ||
7753 | ||
7754 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7755 | PyObject *resultobj; | |
7756 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7757 | long *arg2 = (long *) 0 ; | |
7758 | long *arg3 = (long *) 0 ; | |
7759 | long temp2 ; | |
7760 | long temp3 ; | |
7761 | PyObject * obj0 = 0 ; | |
7762 | char *kwnames[] = { | |
7763 | (char *) "self", NULL | |
7764 | }; | |
7765 | ||
7766 | arg2 = &temp2; | |
7767 | arg3 = &temp3; | |
7768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
7769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7770 | { | |
7771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7772 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
7773 | ||
7774 | wxPyEndAllowThreads(__tstate); | |
7775 | if (PyErr_Occurred()) SWIG_fail; | |
7776 | } | |
7777 | Py_INCREF(Py_None); resultobj = Py_None; | |
7778 | { | |
7779 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
7780 | resultobj = t_output_helper(resultobj,o); | |
7781 | } | |
7782 | { | |
7783 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7784 | resultobj = t_output_helper(resultobj,o); | |
7785 | } | |
7786 | return resultobj; | |
7787 | fail: | |
7788 | return NULL; | |
7789 | } | |
7790 | ||
7791 | ||
7792 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7793 | PyObject *resultobj; | |
7794 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7795 | wxString result; | |
7796 | PyObject * obj0 = 0 ; | |
7797 | char *kwnames[] = { | |
7798 | (char *) "self", NULL | |
7799 | }; | |
7800 | ||
7801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
7802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7803 | { | |
7804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7805 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
7806 | ||
7807 | wxPyEndAllowThreads(__tstate); | |
7808 | if (PyErr_Occurred()) SWIG_fail; | |
7809 | } | |
7810 | { | |
7811 | #if wxUSE_UNICODE | |
7812 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7813 | #else | |
7814 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7815 | #endif | |
7816 | } | |
7817 | return resultobj; | |
7818 | fail: | |
7819 | return NULL; | |
7820 | } | |
7821 | ||
7822 | ||
7823 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7824 | PyObject *resultobj; | |
7825 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7826 | PyObject * obj0 = 0 ; | |
7827 | char *kwnames[] = { | |
7828 | (char *) "self", NULL | |
7829 | }; | |
7830 | ||
7831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
7832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7833 | { | |
7834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7835 | (arg1)->Clear(); | |
7836 | ||
7837 | wxPyEndAllowThreads(__tstate); | |
7838 | if (PyErr_Occurred()) SWIG_fail; | |
7839 | } | |
7840 | Py_INCREF(Py_None); resultobj = Py_None; | |
7841 | return resultobj; | |
7842 | fail: | |
7843 | return NULL; | |
7844 | } | |
7845 | ||
7846 | ||
7847 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7848 | PyObject *resultobj; | |
7849 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7850 | long arg2 ; | |
7851 | long arg3 ; | |
7852 | wxString *arg4 = 0 ; | |
423f194a | 7853 | bool temp4 = False ; |
d14a1e28 | 7854 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
7855 | PyObject * obj1 = 0 ; |
7856 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7857 | PyObject * obj3 = 0 ; |
7858 | char *kwnames[] = { | |
7859 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
7860 | }; | |
7861 | ||
8edf1c75 | 7862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 7863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7864 | { |
7865 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7866 | if (PyErr_Occurred()) SWIG_fail; | |
7867 | } | |
7868 | { | |
7869 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7870 | if (PyErr_Occurred()) SWIG_fail; | |
7871 | } | |
d14a1e28 RD |
7872 | { |
7873 | arg4 = wxString_in_helper(obj3); | |
7874 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7875 | temp4 = True; |
d14a1e28 RD |
7876 | } |
7877 | { | |
7878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7879 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
7880 | ||
7881 | wxPyEndAllowThreads(__tstate); | |
7882 | if (PyErr_Occurred()) SWIG_fail; | |
7883 | } | |
7884 | Py_INCREF(Py_None); resultobj = Py_None; | |
7885 | { | |
7886 | if (temp4) | |
7887 | delete arg4; | |
7888 | } | |
7889 | return resultobj; | |
7890 | fail: | |
7891 | { | |
7892 | if (temp4) | |
7893 | delete arg4; | |
7894 | } | |
7895 | return NULL; | |
7896 | } | |
7897 | ||
7898 | ||
7899 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7900 | PyObject *resultobj; | |
7901 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7902 | long arg2 ; | |
7903 | long arg3 ; | |
7904 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7905 | PyObject * obj1 = 0 ; |
7906 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7907 | char *kwnames[] = { |
7908 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7909 | }; | |
7910 | ||
8edf1c75 | 7911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7913 | { |
7914 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7915 | if (PyErr_Occurred()) SWIG_fail; | |
7916 | } | |
7917 | { | |
7918 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7919 | if (PyErr_Occurred()) SWIG_fail; | |
7920 | } | |
d14a1e28 RD |
7921 | { |
7922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7923 | (arg1)->Remove(arg2,arg3); | |
7924 | ||
7925 | wxPyEndAllowThreads(__tstate); | |
7926 | if (PyErr_Occurred()) SWIG_fail; | |
7927 | } | |
7928 | Py_INCREF(Py_None); resultobj = Py_None; | |
7929 | return resultobj; | |
7930 | fail: | |
7931 | return NULL; | |
7932 | } | |
7933 | ||
7934 | ||
7935 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7936 | PyObject *resultobj; | |
7937 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7938 | wxString *arg2 = 0 ; | |
7939 | bool result; | |
423f194a | 7940 | bool temp2 = False ; |
d14a1e28 RD |
7941 | PyObject * obj0 = 0 ; |
7942 | PyObject * obj1 = 0 ; | |
7943 | char *kwnames[] = { | |
7944 | (char *) "self",(char *) "file", NULL | |
7945 | }; | |
7946 | ||
7947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
7948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7949 | { | |
7950 | arg2 = wxString_in_helper(obj1); | |
7951 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7952 | temp2 = True; |
d14a1e28 RD |
7953 | } |
7954 | { | |
7955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7956 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
7957 | ||
7958 | wxPyEndAllowThreads(__tstate); | |
7959 | if (PyErr_Occurred()) SWIG_fail; | |
7960 | } | |
02a34c4c | 7961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7962 | { |
7963 | if (temp2) | |
7964 | delete arg2; | |
7965 | } | |
7966 | return resultobj; | |
7967 | fail: | |
7968 | { | |
7969 | if (temp2) | |
7970 | delete arg2; | |
7971 | } | |
7972 | return NULL; | |
7973 | } | |
7974 | ||
7975 | ||
7976 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7977 | PyObject *resultobj; | |
7978 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7979 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
7980 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7981 | bool result; | |
423f194a | 7982 | bool temp2 = False ; |
d14a1e28 RD |
7983 | PyObject * obj0 = 0 ; |
7984 | PyObject * obj1 = 0 ; | |
7985 | char *kwnames[] = { | |
7986 | (char *) "self",(char *) "file", NULL | |
7987 | }; | |
7988 | ||
7989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
7990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7991 | if (obj1) { | |
7992 | { | |
7993 | arg2 = wxString_in_helper(obj1); | |
7994 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7995 | temp2 = True; |
d14a1e28 RD |
7996 | } |
7997 | } | |
7998 | { | |
7999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8000 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8001 | ||
8002 | wxPyEndAllowThreads(__tstate); | |
8003 | if (PyErr_Occurred()) SWIG_fail; | |
8004 | } | |
02a34c4c | 8005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8006 | { |
8007 | if (temp2) | |
8008 | delete arg2; | |
8009 | } | |
8010 | return resultobj; | |
8011 | fail: | |
8012 | { | |
8013 | if (temp2) | |
8014 | delete arg2; | |
8015 | } | |
8016 | return NULL; | |
8017 | } | |
8018 | ||
8019 | ||
8020 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8021 | PyObject *resultobj; | |
8022 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8023 | PyObject * obj0 = 0 ; | |
8024 | char *kwnames[] = { | |
8025 | (char *) "self", NULL | |
8026 | }; | |
8027 | ||
8028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
8029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8030 | { | |
8031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8032 | (arg1)->MarkDirty(); | |
8033 | ||
8034 | wxPyEndAllowThreads(__tstate); | |
8035 | if (PyErr_Occurred()) SWIG_fail; | |
8036 | } | |
8037 | Py_INCREF(Py_None); resultobj = Py_None; | |
8038 | return resultobj; | |
8039 | fail: | |
8040 | return NULL; | |
8041 | } | |
8042 | ||
8043 | ||
8044 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8045 | PyObject *resultobj; | |
8046 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8047 | PyObject * obj0 = 0 ; | |
8048 | char *kwnames[] = { | |
8049 | (char *) "self", NULL | |
8050 | }; | |
8051 | ||
8052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
8053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8054 | { | |
8055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8056 | (arg1)->DiscardEdits(); | |
8057 | ||
8058 | wxPyEndAllowThreads(__tstate); | |
8059 | if (PyErr_Occurred()) SWIG_fail; | |
8060 | } | |
8061 | Py_INCREF(Py_None); resultobj = Py_None; | |
8062 | return resultobj; | |
8063 | fail: | |
8064 | return NULL; | |
8065 | } | |
8066 | ||
8067 | ||
8068 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8069 | PyObject *resultobj; | |
8070 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8071 | unsigned long arg2 ; | |
8072 | PyObject * obj0 = 0 ; | |
8073 | PyObject * obj1 = 0 ; | |
8074 | char *kwnames[] = { | |
8075 | (char *) "self",(char *) "len", NULL | |
8076 | }; | |
8077 | ||
8078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
8079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 8080 | { |
8edf1c75 | 8081 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
8082 | if (PyErr_Occurred()) SWIG_fail; |
8083 | } | |
d14a1e28 RD |
8084 | { |
8085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8086 | (arg1)->SetMaxLength(arg2); | |
8087 | ||
8088 | wxPyEndAllowThreads(__tstate); | |
8089 | if (PyErr_Occurred()) SWIG_fail; | |
8090 | } | |
8091 | Py_INCREF(Py_None); resultobj = Py_None; | |
8092 | return resultobj; | |
8093 | fail: | |
8094 | return NULL; | |
8095 | } | |
8096 | ||
8097 | ||
8098 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8099 | PyObject *resultobj; | |
8100 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8101 | wxString *arg2 = 0 ; | |
423f194a | 8102 | bool temp2 = False ; |
d14a1e28 RD |
8103 | PyObject * obj0 = 0 ; |
8104 | PyObject * obj1 = 0 ; | |
8105 | char *kwnames[] = { | |
8106 | (char *) "self",(char *) "text", NULL | |
8107 | }; | |
8108 | ||
8109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
8110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8111 | { | |
8112 | arg2 = wxString_in_helper(obj1); | |
8113 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8114 | temp2 = True; |
d14a1e28 RD |
8115 | } |
8116 | { | |
8117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8118 | (arg1)->WriteText((wxString const &)*arg2); | |
8119 | ||
8120 | wxPyEndAllowThreads(__tstate); | |
8121 | if (PyErr_Occurred()) SWIG_fail; | |
8122 | } | |
8123 | Py_INCREF(Py_None); resultobj = Py_None; | |
8124 | { | |
8125 | if (temp2) | |
8126 | delete arg2; | |
8127 | } | |
8128 | return resultobj; | |
8129 | fail: | |
8130 | { | |
8131 | if (temp2) | |
8132 | delete arg2; | |
8133 | } | |
8134 | return NULL; | |
8135 | } | |
8136 | ||
8137 | ||
8138 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8139 | PyObject *resultobj; | |
8140 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8141 | wxString *arg2 = 0 ; | |
423f194a | 8142 | bool temp2 = False ; |
d14a1e28 RD |
8143 | PyObject * obj0 = 0 ; |
8144 | PyObject * obj1 = 0 ; | |
8145 | char *kwnames[] = { | |
8146 | (char *) "self",(char *) "text", NULL | |
8147 | }; | |
8148 | ||
8149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
8150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8151 | { | |
8152 | arg2 = wxString_in_helper(obj1); | |
8153 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8154 | temp2 = True; |
d14a1e28 RD |
8155 | } |
8156 | { | |
8157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8158 | (arg1)->AppendText((wxString const &)*arg2); | |
8159 | ||
8160 | wxPyEndAllowThreads(__tstate); | |
8161 | if (PyErr_Occurred()) SWIG_fail; | |
8162 | } | |
8163 | Py_INCREF(Py_None); resultobj = Py_None; | |
8164 | { | |
8165 | if (temp2) | |
8166 | delete arg2; | |
8167 | } | |
8168 | return resultobj; | |
8169 | fail: | |
8170 | { | |
8171 | if (temp2) | |
8172 | delete arg2; | |
8173 | } | |
8174 | return NULL; | |
8175 | } | |
8176 | ||
8177 | ||
8178 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8179 | PyObject *resultobj; | |
8180 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8181 | wxKeyEvent *arg2 = 0 ; | |
8182 | bool result; | |
8183 | PyObject * obj0 = 0 ; | |
8184 | PyObject * obj1 = 0 ; | |
8185 | char *kwnames[] = { | |
8186 | (char *) "self",(char *) "event", NULL | |
8187 | }; | |
8188 | ||
8189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
8190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8191 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8192 | if (arg2 == NULL) { | |
8193 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8194 | } | |
8195 | { | |
8196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8197 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8198 | ||
8199 | wxPyEndAllowThreads(__tstate); | |
8200 | if (PyErr_Occurred()) SWIG_fail; | |
8201 | } | |
02a34c4c | 8202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8203 | return resultobj; |
8204 | fail: | |
8205 | return NULL; | |
8206 | } | |
8207 | ||
8208 | ||
8209 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8210 | PyObject *resultobj; | |
8211 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8212 | long arg2 ; | |
8213 | long arg3 ; | |
8214 | wxTextAttr *arg4 = 0 ; | |
8215 | bool result; | |
8216 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8217 | PyObject * obj1 = 0 ; |
8218 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8219 | PyObject * obj3 = 0 ; |
8220 | char *kwnames[] = { | |
8221 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8222 | }; | |
8223 | ||
8edf1c75 | 8224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8226 | { |
8227 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8228 | if (PyErr_Occurred()) SWIG_fail; | |
8229 | } | |
8230 | { | |
8231 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8232 | if (PyErr_Occurred()) SWIG_fail; | |
8233 | } | |
d14a1e28 RD |
8234 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8235 | if (arg4 == NULL) { | |
8236 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8237 | } | |
8238 | { | |
8239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8240 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
8241 | ||
8242 | wxPyEndAllowThreads(__tstate); | |
8243 | if (PyErr_Occurred()) SWIG_fail; | |
8244 | } | |
02a34c4c | 8245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8246 | return resultobj; |
8247 | fail: | |
8248 | return NULL; | |
8249 | } | |
8250 | ||
8251 | ||
8252 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8253 | PyObject *resultobj; | |
8254 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8255 | long arg2 ; | |
8256 | wxTextAttr *arg3 = 0 ; | |
8257 | bool result; | |
8258 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8259 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8260 | PyObject * obj2 = 0 ; |
8261 | char *kwnames[] = { | |
8262 | (char *) "self",(char *) "position",(char *) "style", NULL | |
8263 | }; | |
8264 | ||
8edf1c75 | 8265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8267 | { |
8268 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8269 | if (PyErr_Occurred()) SWIG_fail; | |
8270 | } | |
d14a1e28 RD |
8271 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8272 | if (arg3 == NULL) { | |
8273 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8274 | } | |
8275 | { | |
8276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8277 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
8278 | ||
8279 | wxPyEndAllowThreads(__tstate); | |
8280 | if (PyErr_Occurred()) SWIG_fail; | |
8281 | } | |
02a34c4c | 8282 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8283 | return resultobj; |
8284 | fail: | |
8285 | return NULL; | |
8286 | } | |
8287 | ||
8288 | ||
8289 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8290 | PyObject *resultobj; | |
8291 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8292 | wxTextAttr *arg2 = 0 ; | |
8293 | bool result; | |
8294 | PyObject * obj0 = 0 ; | |
8295 | PyObject * obj1 = 0 ; | |
8296 | char *kwnames[] = { | |
8297 | (char *) "self",(char *) "style", NULL | |
8298 | }; | |
8299 | ||
8300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
8301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8302 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8303 | if (arg2 == NULL) { | |
8304 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8305 | } | |
8306 | { | |
8307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8308 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
8309 | ||
8310 | wxPyEndAllowThreads(__tstate); | |
8311 | if (PyErr_Occurred()) SWIG_fail; | |
8312 | } | |
02a34c4c | 8313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8314 | return resultobj; |
8315 | fail: | |
8316 | return NULL; | |
8317 | } | |
8318 | ||
8319 | ||
8320 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8321 | PyObject *resultobj; | |
8322 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8323 | wxTextAttr *result; | |
8324 | PyObject * obj0 = 0 ; | |
8325 | char *kwnames[] = { | |
8326 | (char *) "self", NULL | |
8327 | }; | |
8328 | ||
8329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
8330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8331 | { | |
8332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8333 | { | |
8334 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
8335 | result = (wxTextAttr *) &_result_ref; | |
8336 | } | |
8337 | ||
8338 | wxPyEndAllowThreads(__tstate); | |
8339 | if (PyErr_Occurred()) SWIG_fail; | |
8340 | } | |
8341 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 0); | |
8342 | return resultobj; | |
8343 | fail: | |
8344 | return NULL; | |
8345 | } | |
8346 | ||
8347 | ||
8348 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8349 | PyObject *resultobj; | |
8350 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8351 | long arg2 ; | |
8352 | long arg3 ; | |
8353 | long result; | |
8354 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8355 | PyObject * obj1 = 0 ; |
8356 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8357 | char *kwnames[] = { |
8358 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8359 | }; | |
8360 | ||
8edf1c75 | 8361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8363 | { |
8364 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8365 | if (PyErr_Occurred()) SWIG_fail; | |
8366 | } | |
8367 | { | |
8368 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8369 | if (PyErr_Occurred()) SWIG_fail; | |
8370 | } | |
d14a1e28 RD |
8371 | { |
8372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8373 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
8374 | ||
8375 | wxPyEndAllowThreads(__tstate); | |
8376 | if (PyErr_Occurred()) SWIG_fail; | |
8377 | } | |
8edf1c75 | 8378 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8379 | return resultobj; |
8380 | fail: | |
8381 | return NULL; | |
8382 | } | |
8383 | ||
8384 | ||
8385 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8386 | PyObject *resultobj; | |
8387 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8388 | long arg2 ; | |
8389 | long *arg3 = (long *) 0 ; | |
8390 | long *arg4 = (long *) 0 ; | |
8391 | long temp3 ; | |
8392 | long temp4 ; | |
8393 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8394 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8395 | char *kwnames[] = { |
8396 | (char *) "self",(char *) "pos", NULL | |
8397 | }; | |
8398 | ||
8399 | arg3 = &temp3; | |
8400 | arg4 = &temp4; | |
8edf1c75 | 8401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8403 | { |
8404 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8405 | if (PyErr_Occurred()) SWIG_fail; | |
8406 | } | |
d14a1e28 RD |
8407 | { |
8408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8409 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
8410 | ||
8411 | wxPyEndAllowThreads(__tstate); | |
8412 | if (PyErr_Occurred()) SWIG_fail; | |
8413 | } | |
8414 | Py_INCREF(Py_None); resultobj = Py_None; | |
8415 | { | |
8416 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8417 | resultobj = t_output_helper(resultobj,o); | |
8418 | } | |
8419 | { | |
8420 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8421 | resultobj = t_output_helper(resultobj,o); | |
8422 | } | |
8423 | return resultobj; | |
8424 | fail: | |
8425 | return NULL; | |
8426 | } | |
8427 | ||
8428 | ||
8429 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8430 | PyObject *resultobj; | |
8431 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8432 | long arg2 ; | |
8433 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8434 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8435 | char *kwnames[] = { |
8436 | (char *) "self",(char *) "pos", NULL | |
8437 | }; | |
8438 | ||
8edf1c75 | 8439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8441 | { |
8442 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8443 | if (PyErr_Occurred()) SWIG_fail; | |
8444 | } | |
d14a1e28 RD |
8445 | { |
8446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8447 | (arg1)->ShowPosition(arg2); | |
8448 | ||
8449 | wxPyEndAllowThreads(__tstate); | |
8450 | if (PyErr_Occurred()) SWIG_fail; | |
8451 | } | |
8452 | Py_INCREF(Py_None); resultobj = Py_None; | |
8453 | return resultobj; | |
8454 | fail: | |
8455 | return NULL; | |
8456 | } | |
8457 | ||
8458 | ||
02a34c4c RD |
8459 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8460 | PyObject *resultobj; | |
8461 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8462 | wxPoint *arg2 = 0 ; | |
8463 | long *arg3 = (long *) 0 ; | |
8464 | long *arg4 = (long *) 0 ; | |
8465 | int result; | |
8466 | wxPoint temp2 ; | |
8467 | long temp3 ; | |
8468 | long temp4 ; | |
8469 | PyObject * obj0 = 0 ; | |
8470 | PyObject * obj1 = 0 ; | |
8471 | char *kwnames[] = { | |
8472 | (char *) "self",(char *) "pt", NULL | |
8473 | }; | |
8474 | ||
8475 | arg3 = &temp3; | |
8476 | arg4 = &temp4; | |
8477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
8478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8479 | { | |
8480 | arg2 = &temp2; | |
8481 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8482 | } | |
8483 | { | |
8484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8485 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
8486 | ||
8487 | wxPyEndAllowThreads(__tstate); | |
8488 | if (PyErr_Occurred()) SWIG_fail; | |
8489 | } | |
8490 | resultobj = SWIG_PyObj_FromInt((int)result); | |
8491 | { | |
8492 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8493 | resultobj = t_output_helper(resultobj,o); | |
8494 | } | |
8495 | { | |
8496 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8497 | resultobj = t_output_helper(resultobj,o); | |
8498 | } | |
8499 | return resultobj; | |
8500 | fail: | |
8501 | return NULL; | |
8502 | } | |
8503 | ||
8504 | ||
d14a1e28 RD |
8505 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8506 | PyObject *resultobj; | |
8507 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8508 | PyObject * obj0 = 0 ; | |
8509 | char *kwnames[] = { | |
8510 | (char *) "self", NULL | |
8511 | }; | |
8512 | ||
8513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
8514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8515 | { | |
8516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8517 | (arg1)->Copy(); | |
8518 | ||
8519 | wxPyEndAllowThreads(__tstate); | |
8520 | if (PyErr_Occurred()) SWIG_fail; | |
8521 | } | |
8522 | Py_INCREF(Py_None); resultobj = Py_None; | |
8523 | return resultobj; | |
8524 | fail: | |
8525 | return NULL; | |
8526 | } | |
8527 | ||
8528 | ||
8529 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8530 | PyObject *resultobj; | |
8531 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8532 | PyObject * obj0 = 0 ; | |
8533 | char *kwnames[] = { | |
8534 | (char *) "self", NULL | |
8535 | }; | |
8536 | ||
8537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
8538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8539 | { | |
8540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8541 | (arg1)->Cut(); | |
8542 | ||
8543 | wxPyEndAllowThreads(__tstate); | |
8544 | if (PyErr_Occurred()) SWIG_fail; | |
8545 | } | |
8546 | Py_INCREF(Py_None); resultobj = Py_None; | |
8547 | return resultobj; | |
8548 | fail: | |
8549 | return NULL; | |
8550 | } | |
8551 | ||
8552 | ||
8553 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8554 | PyObject *resultobj; | |
8555 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8556 | PyObject * obj0 = 0 ; | |
8557 | char *kwnames[] = { | |
8558 | (char *) "self", NULL | |
8559 | }; | |
8560 | ||
8561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
8562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8563 | { | |
8564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8565 | (arg1)->Paste(); | |
8566 | ||
8567 | wxPyEndAllowThreads(__tstate); | |
8568 | if (PyErr_Occurred()) SWIG_fail; | |
8569 | } | |
8570 | Py_INCREF(Py_None); resultobj = Py_None; | |
8571 | return resultobj; | |
8572 | fail: | |
8573 | return NULL; | |
8574 | } | |
8575 | ||
8576 | ||
8577 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8578 | PyObject *resultobj; | |
8579 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8580 | bool result; | |
8581 | PyObject * obj0 = 0 ; | |
8582 | char *kwnames[] = { | |
8583 | (char *) "self", NULL | |
8584 | }; | |
8585 | ||
8586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
8587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8588 | { | |
8589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8590 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
8591 | ||
8592 | wxPyEndAllowThreads(__tstate); | |
8593 | if (PyErr_Occurred()) SWIG_fail; | |
8594 | } | |
02a34c4c | 8595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8596 | return resultobj; |
8597 | fail: | |
8598 | return NULL; | |
8599 | } | |
8600 | ||
8601 | ||
8602 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8603 | PyObject *resultobj; | |
8604 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8605 | bool result; | |
8606 | PyObject * obj0 = 0 ; | |
8607 | char *kwnames[] = { | |
8608 | (char *) "self", NULL | |
8609 | }; | |
8610 | ||
8611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
8612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8613 | { | |
8614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8615 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
8616 | ||
8617 | wxPyEndAllowThreads(__tstate); | |
8618 | if (PyErr_Occurred()) SWIG_fail; | |
8619 | } | |
02a34c4c | 8620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8621 | return resultobj; |
8622 | fail: | |
8623 | return NULL; | |
8624 | } | |
8625 | ||
8626 | ||
8627 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8628 | PyObject *resultobj; | |
8629 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8630 | bool result; | |
8631 | PyObject * obj0 = 0 ; | |
8632 | char *kwnames[] = { | |
8633 | (char *) "self", NULL | |
8634 | }; | |
8635 | ||
8636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
8637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8638 | { | |
8639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8640 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
8641 | ||
8642 | wxPyEndAllowThreads(__tstate); | |
8643 | if (PyErr_Occurred()) SWIG_fail; | |
8644 | } | |
02a34c4c | 8645 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8646 | return resultobj; |
8647 | fail: | |
8648 | return NULL; | |
8649 | } | |
8650 | ||
8651 | ||
8652 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8653 | PyObject *resultobj; | |
8654 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8655 | PyObject * obj0 = 0 ; | |
8656 | char *kwnames[] = { | |
8657 | (char *) "self", NULL | |
8658 | }; | |
8659 | ||
8660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
8661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8662 | { | |
8663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8664 | (arg1)->Undo(); | |
8665 | ||
8666 | wxPyEndAllowThreads(__tstate); | |
8667 | if (PyErr_Occurred()) SWIG_fail; | |
8668 | } | |
8669 | Py_INCREF(Py_None); resultobj = Py_None; | |
8670 | return resultobj; | |
8671 | fail: | |
8672 | return NULL; | |
8673 | } | |
8674 | ||
8675 | ||
8676 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8677 | PyObject *resultobj; | |
8678 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8679 | PyObject * obj0 = 0 ; | |
8680 | char *kwnames[] = { | |
8681 | (char *) "self", NULL | |
8682 | }; | |
8683 | ||
8684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
8685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8686 | { | |
8687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8688 | (arg1)->Redo(); | |
8689 | ||
8690 | wxPyEndAllowThreads(__tstate); | |
8691 | if (PyErr_Occurred()) SWIG_fail; | |
8692 | } | |
8693 | Py_INCREF(Py_None); resultobj = Py_None; | |
8694 | return resultobj; | |
8695 | fail: | |
8696 | return NULL; | |
8697 | } | |
8698 | ||
8699 | ||
8700 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8701 | PyObject *resultobj; | |
8702 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8703 | bool result; | |
8704 | PyObject * obj0 = 0 ; | |
8705 | char *kwnames[] = { | |
8706 | (char *) "self", NULL | |
8707 | }; | |
8708 | ||
8709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
8710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8711 | { | |
8712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8713 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
8714 | ||
8715 | wxPyEndAllowThreads(__tstate); | |
8716 | if (PyErr_Occurred()) SWIG_fail; | |
8717 | } | |
02a34c4c | 8718 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8719 | return resultobj; |
8720 | fail: | |
8721 | return NULL; | |
8722 | } | |
8723 | ||
8724 | ||
8725 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8726 | PyObject *resultobj; | |
8727 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8728 | bool result; | |
8729 | PyObject * obj0 = 0 ; | |
8730 | char *kwnames[] = { | |
8731 | (char *) "self", NULL | |
8732 | }; | |
8733 | ||
8734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
8735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8736 | { | |
8737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8738 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
8739 | ||
8740 | wxPyEndAllowThreads(__tstate); | |
8741 | if (PyErr_Occurred()) SWIG_fail; | |
8742 | } | |
02a34c4c | 8743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8744 | return resultobj; |
8745 | fail: | |
8746 | return NULL; | |
8747 | } | |
8748 | ||
8749 | ||
8750 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8751 | PyObject *resultobj; | |
8752 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8753 | long arg2 ; | |
8754 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8755 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8756 | char *kwnames[] = { |
8757 | (char *) "self",(char *) "pos", NULL | |
8758 | }; | |
8759 | ||
8edf1c75 | 8760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8762 | { |
8763 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8764 | if (PyErr_Occurred()) SWIG_fail; | |
8765 | } | |
d14a1e28 RD |
8766 | { |
8767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8768 | (arg1)->SetInsertionPoint(arg2); | |
8769 | ||
8770 | wxPyEndAllowThreads(__tstate); | |
8771 | if (PyErr_Occurred()) SWIG_fail; | |
8772 | } | |
8773 | Py_INCREF(Py_None); resultobj = Py_None; | |
8774 | return resultobj; | |
8775 | fail: | |
8776 | return NULL; | |
8777 | } | |
8778 | ||
8779 | ||
8780 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8781 | PyObject *resultobj; | |
8782 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8783 | PyObject * obj0 = 0 ; | |
8784 | char *kwnames[] = { | |
8785 | (char *) "self", NULL | |
8786 | }; | |
8787 | ||
8788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
8789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8790 | { | |
8791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8792 | (arg1)->SetInsertionPointEnd(); | |
8793 | ||
8794 | wxPyEndAllowThreads(__tstate); | |
8795 | if (PyErr_Occurred()) SWIG_fail; | |
8796 | } | |
8797 | Py_INCREF(Py_None); resultobj = Py_None; | |
8798 | return resultobj; | |
8799 | fail: | |
8800 | return NULL; | |
8801 | } | |
8802 | ||
8803 | ||
8804 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8805 | PyObject *resultobj; | |
8806 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8807 | long result; | |
8808 | PyObject * obj0 = 0 ; | |
8809 | char *kwnames[] = { | |
8810 | (char *) "self", NULL | |
8811 | }; | |
8812 | ||
8813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
8814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8815 | { | |
8816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8817 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
8818 | ||
8819 | wxPyEndAllowThreads(__tstate); | |
8820 | if (PyErr_Occurred()) SWIG_fail; | |
8821 | } | |
8edf1c75 | 8822 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8823 | return resultobj; |
8824 | fail: | |
8825 | return NULL; | |
8826 | } | |
8827 | ||
8828 | ||
8829 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8830 | PyObject *resultobj; | |
8831 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8832 | long result; | |
8833 | PyObject * obj0 = 0 ; | |
8834 | char *kwnames[] = { | |
8835 | (char *) "self", NULL | |
8836 | }; | |
8837 | ||
8838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
8839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8840 | { | |
8841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8842 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
8843 | ||
8844 | wxPyEndAllowThreads(__tstate); | |
8845 | if (PyErr_Occurred()) SWIG_fail; | |
8846 | } | |
8edf1c75 | 8847 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8848 | return resultobj; |
8849 | fail: | |
8850 | return NULL; | |
8851 | } | |
8852 | ||
8853 | ||
8854 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8855 | PyObject *resultobj; | |
8856 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8857 | long arg2 ; | |
8858 | long arg3 ; | |
8859 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8860 | PyObject * obj1 = 0 ; |
8861 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8862 | char *kwnames[] = { |
8863 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8864 | }; | |
8865 | ||
8edf1c75 | 8866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8868 | { |
8869 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8870 | if (PyErr_Occurred()) SWIG_fail; | |
8871 | } | |
8872 | { | |
8873 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8874 | if (PyErr_Occurred()) SWIG_fail; | |
8875 | } | |
d14a1e28 RD |
8876 | { |
8877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8878 | (arg1)->SetSelection(arg2,arg3); | |
8879 | ||
8880 | wxPyEndAllowThreads(__tstate); | |
8881 | if (PyErr_Occurred()) SWIG_fail; | |
8882 | } | |
8883 | Py_INCREF(Py_None); resultobj = Py_None; | |
8884 | return resultobj; | |
8885 | fail: | |
8886 | return NULL; | |
8887 | } | |
8888 | ||
8889 | ||
8890 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8891 | PyObject *resultobj; | |
8892 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8893 | PyObject * obj0 = 0 ; | |
8894 | char *kwnames[] = { | |
8895 | (char *) "self", NULL | |
8896 | }; | |
8897 | ||
8898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
8899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8900 | { | |
8901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8902 | (arg1)->SelectAll(); | |
8903 | ||
8904 | wxPyEndAllowThreads(__tstate); | |
8905 | if (PyErr_Occurred()) SWIG_fail; | |
8906 | } | |
8907 | Py_INCREF(Py_None); resultobj = Py_None; | |
8908 | return resultobj; | |
8909 | fail: | |
8910 | return NULL; | |
8911 | } | |
8912 | ||
8913 | ||
8914 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8915 | PyObject *resultobj; | |
8916 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8917 | bool arg2 ; | |
8918 | PyObject * obj0 = 0 ; | |
8919 | PyObject * obj1 = 0 ; | |
8920 | char *kwnames[] = { | |
8921 | (char *) "self",(char *) "editable", NULL | |
8922 | }; | |
8923 | ||
8924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
8925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 8926 | { |
8edf1c75 | 8927 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
8928 | if (PyErr_Occurred()) SWIG_fail; |
8929 | } | |
d14a1e28 RD |
8930 | { |
8931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8932 | (arg1)->SetEditable(arg2); | |
8933 | ||
8934 | wxPyEndAllowThreads(__tstate); | |
8935 | if (PyErr_Occurred()) SWIG_fail; | |
8936 | } | |
8937 | Py_INCREF(Py_None); resultobj = Py_None; | |
8938 | return resultobj; | |
8939 | fail: | |
8940 | return NULL; | |
8941 | } | |
8942 | ||
8943 | ||
8944 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8945 | PyObject *resultobj; | |
8946 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8947 | wxString *arg2 = 0 ; | |
423f194a | 8948 | bool temp2 = False ; |
d14a1e28 RD |
8949 | PyObject * obj0 = 0 ; |
8950 | PyObject * obj1 = 0 ; | |
8951 | char *kwnames[] = { | |
8952 | (char *) "self",(char *) "text", NULL | |
8953 | }; | |
8954 | ||
8955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
8956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8957 | { | |
8958 | arg2 = wxString_in_helper(obj1); | |
8959 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8960 | temp2 = True; |
d14a1e28 RD |
8961 | } |
8962 | { | |
8963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8964 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
8965 | ||
8966 | wxPyEndAllowThreads(__tstate); | |
8967 | if (PyErr_Occurred()) SWIG_fail; | |
8968 | } | |
8969 | Py_INCREF(Py_None); resultobj = Py_None; | |
8970 | { | |
8971 | if (temp2) | |
8972 | delete arg2; | |
8973 | } | |
8974 | return resultobj; | |
8975 | fail: | |
8976 | { | |
8977 | if (temp2) | |
8978 | delete arg2; | |
8979 | } | |
8980 | return NULL; | |
8981 | } | |
8982 | ||
8983 | ||
8984 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8985 | PyObject *resultobj; | |
8986 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8987 | long arg2 ; | |
8988 | long arg3 ; | |
8989 | wxString result; | |
8990 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8991 | PyObject * obj1 = 0 ; |
8992 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8993 | char *kwnames[] = { |
8994 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8995 | }; | |
8996 | ||
8edf1c75 | 8997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8999 | { |
9000 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
9001 | if (PyErr_Occurred()) SWIG_fail; | |
9002 | } | |
9003 | { | |
9004 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9005 | if (PyErr_Occurred()) SWIG_fail; | |
9006 | } | |
d14a1e28 RD |
9007 | { |
9008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9009 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9010 | ||
9011 | wxPyEndAllowThreads(__tstate); | |
9012 | if (PyErr_Occurred()) SWIG_fail; | |
9013 | } | |
9014 | { | |
9015 | #if wxUSE_UNICODE | |
9016 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9017 | #else | |
9018 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9019 | #endif | |
9020 | } | |
9021 | return resultobj; | |
9022 | fail: | |
9023 | return NULL; | |
9024 | } | |
9025 | ||
9026 | ||
9027 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
9028 | PyObject *obj; | |
9029 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9030 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9031 | Py_INCREF(obj); | |
9032 | return Py_BuildValue((char *)""); | |
9033 | } | |
9034 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9035 | PyObject *resultobj; | |
9036 | int arg1 ; | |
9037 | wxMouseEvent *arg2 = 0 ; | |
9038 | long arg3 ; | |
9039 | long arg4 ; | |
9040 | wxTextUrlEvent *result; | |
8edf1c75 | 9041 | PyObject * obj0 = 0 ; |
d14a1e28 | 9042 | PyObject * obj1 = 0 ; |
8edf1c75 RD |
9043 | PyObject * obj2 = 0 ; |
9044 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9045 | char *kwnames[] = { |
9046 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9047 | }; | |
9048 | ||
8edf1c75 RD |
9049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
9050 | { | |
9051 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9052 | if (PyErr_Occurred()) SWIG_fail; | |
9053 | } | |
d14a1e28 RD |
9054 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9055 | if (arg2 == NULL) { | |
9056 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9057 | } | |
8edf1c75 RD |
9058 | { |
9059 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9060 | if (PyErr_Occurred()) SWIG_fail; | |
9061 | } | |
9062 | { | |
9063 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
9064 | if (PyErr_Occurred()) SWIG_fail; | |
9065 | } | |
d14a1e28 RD |
9066 | { |
9067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9068 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9069 | ||
9070 | wxPyEndAllowThreads(__tstate); | |
9071 | if (PyErr_Occurred()) SWIG_fail; | |
9072 | } | |
9073 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextUrlEvent, 1); | |
9074 | return resultobj; | |
9075 | fail: | |
9076 | return NULL; | |
9077 | } | |
9078 | ||
9079 | ||
9080 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9081 | PyObject *resultobj; | |
9082 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9083 | wxMouseEvent *result; | |
9084 | PyObject * obj0 = 0 ; | |
9085 | char *kwnames[] = { | |
9086 | (char *) "self", NULL | |
9087 | }; | |
9088 | ||
9089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
9090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9091 | { | |
9092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9093 | { | |
9094 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9095 | result = (wxMouseEvent *) &_result_ref; | |
9096 | } | |
9097 | ||
9098 | wxPyEndAllowThreads(__tstate); | |
9099 | if (PyErr_Occurred()) SWIG_fail; | |
9100 | } | |
9101 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseEvent, 0); | |
9102 | return resultobj; | |
9103 | fail: | |
9104 | return NULL; | |
9105 | } | |
9106 | ||
9107 | ||
9108 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9109 | PyObject *resultobj; | |
9110 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9111 | long result; | |
9112 | PyObject * obj0 = 0 ; | |
9113 | char *kwnames[] = { | |
9114 | (char *) "self", NULL | |
9115 | }; | |
9116 | ||
9117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
9118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9119 | { | |
9120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9121 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9122 | ||
9123 | wxPyEndAllowThreads(__tstate); | |
9124 | if (PyErr_Occurred()) SWIG_fail; | |
9125 | } | |
8edf1c75 | 9126 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9127 | return resultobj; |
9128 | fail: | |
9129 | return NULL; | |
9130 | } | |
9131 | ||
9132 | ||
9133 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9134 | PyObject *resultobj; | |
9135 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9136 | long result; | |
9137 | PyObject * obj0 = 0 ; | |
9138 | char *kwnames[] = { | |
9139 | (char *) "self", NULL | |
9140 | }; | |
9141 | ||
9142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
9143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9144 | { | |
9145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9146 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
9147 | ||
9148 | wxPyEndAllowThreads(__tstate); | |
9149 | if (PyErr_Occurred()) SWIG_fail; | |
9150 | } | |
8edf1c75 | 9151 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9152 | return resultobj; |
9153 | fail: | |
9154 | return NULL; | |
9155 | } | |
9156 | ||
9157 | ||
9158 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
9159 | PyObject *obj; | |
9160 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9161 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
9162 | Py_INCREF(obj); | |
9163 | return Py_BuildValue((char *)""); | |
9164 | } | |
8edf1c75 | 9165 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
cbd72d4f RD |
9166 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
9167 | return 1; | |
9168 | } | |
9169 | ||
9170 | ||
9171 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
9172 | PyObject *pyobj; | |
9173 | ||
9174 | { | |
9175 | #if wxUSE_UNICODE | |
9176 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9177 | #else | |
9178 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9179 | #endif | |
9180 | } | |
9181 | return pyobj; | |
9182 | } | |
9183 | ||
9184 | ||
d14a1e28 RD |
9185 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9186 | PyObject *resultobj; | |
9187 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9188 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9189 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9190 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9191 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9192 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9193 | long arg5 = (long) wxSB_HORIZONTAL ; | |
9194 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
9195 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
9196 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
9197 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9198 | wxScrollBar *result; | |
9199 | wxPoint temp3 ; | |
9200 | wxSize temp4 ; | |
423f194a | 9201 | bool temp7 = False ; |
d14a1e28 | 9202 | PyObject * obj0 = 0 ; |
8edf1c75 | 9203 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9204 | PyObject * obj2 = 0 ; |
9205 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9206 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9207 | PyObject * obj5 = 0 ; |
9208 | PyObject * obj6 = 0 ; | |
9209 | char *kwnames[] = { | |
9210 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9211 | }; | |
9212 | ||
8edf1c75 | 9213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 9214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9215 | if (obj1) { |
9216 | { | |
9217 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9218 | if (PyErr_Occurred()) SWIG_fail; | |
9219 | } | |
9220 | } | |
d14a1e28 RD |
9221 | if (obj2) { |
9222 | { | |
9223 | arg3 = &temp3; | |
9224 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9225 | } | |
9226 | } | |
9227 | if (obj3) { | |
9228 | { | |
9229 | arg4 = &temp4; | |
9230 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9231 | } | |
9232 | } | |
8edf1c75 RD |
9233 | if (obj4) { |
9234 | { | |
9235 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9236 | if (PyErr_Occurred()) SWIG_fail; | |
9237 | } | |
9238 | } | |
d14a1e28 RD |
9239 | if (obj5) { |
9240 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9241 | if (arg6 == NULL) { | |
9242 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9243 | } | |
9244 | } | |
9245 | if (obj6) { | |
9246 | { | |
9247 | arg7 = wxString_in_helper(obj6); | |
9248 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 9249 | temp7 = True; |
d14a1e28 RD |
9250 | } |
9251 | } | |
9252 | { | |
9253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9254 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
9255 | ||
9256 | wxPyEndAllowThreads(__tstate); | |
9257 | if (PyErr_Occurred()) SWIG_fail; | |
9258 | } | |
9259 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9260 | { | |
9261 | if (temp7) | |
9262 | delete arg7; | |
9263 | } | |
9264 | return resultobj; | |
9265 | fail: | |
9266 | { | |
9267 | if (temp7) | |
9268 | delete arg7; | |
9269 | } | |
9270 | return NULL; | |
9271 | } | |
9272 | ||
9273 | ||
9274 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9275 | PyObject *resultobj; | |
9276 | wxScrollBar *result; | |
9277 | char *kwnames[] = { | |
9278 | NULL | |
9279 | }; | |
9280 | ||
9281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
9282 | { | |
9283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9284 | result = (wxScrollBar *)new wxScrollBar(); | |
9285 | ||
9286 | wxPyEndAllowThreads(__tstate); | |
9287 | if (PyErr_Occurred()) SWIG_fail; | |
9288 | } | |
9289 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9290 | return resultobj; | |
9291 | fail: | |
9292 | return NULL; | |
9293 | } | |
9294 | ||
9295 | ||
9296 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9297 | PyObject *resultobj; | |
9298 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9299 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9300 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9301 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9302 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9303 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9304 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9305 | long arg6 = (long) wxSB_HORIZONTAL ; | |
9306 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9307 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9308 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
9309 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9310 | bool result; | |
9311 | wxPoint temp4 ; | |
9312 | wxSize temp5 ; | |
423f194a | 9313 | bool temp8 = False ; |
d14a1e28 RD |
9314 | PyObject * obj0 = 0 ; |
9315 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9316 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9317 | PyObject * obj3 = 0 ; |
9318 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9319 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9320 | PyObject * obj6 = 0 ; |
9321 | PyObject * obj7 = 0 ; | |
9322 | char *kwnames[] = { | |
9323 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9324 | }; | |
9325 | ||
8edf1c75 | 9326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
9327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9328 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
9329 | if (obj2) { |
9330 | { | |
9331 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9332 | if (PyErr_Occurred()) SWIG_fail; | |
9333 | } | |
9334 | } | |
d14a1e28 RD |
9335 | if (obj3) { |
9336 | { | |
9337 | arg4 = &temp4; | |
9338 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9339 | } | |
9340 | } | |
9341 | if (obj4) { | |
9342 | { | |
9343 | arg5 = &temp5; | |
9344 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9345 | } | |
9346 | } | |
8edf1c75 RD |
9347 | if (obj5) { |
9348 | { | |
9349 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9350 | if (PyErr_Occurred()) SWIG_fail; | |
9351 | } | |
9352 | } | |
d14a1e28 RD |
9353 | if (obj6) { |
9354 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9355 | if (arg7 == NULL) { | |
9356 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9357 | } | |
9358 | } | |
9359 | if (obj7) { | |
9360 | { | |
9361 | arg8 = wxString_in_helper(obj7); | |
9362 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 9363 | temp8 = True; |
d14a1e28 RD |
9364 | } |
9365 | } | |
9366 | { | |
9367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9368 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9369 | ||
9370 | wxPyEndAllowThreads(__tstate); | |
9371 | if (PyErr_Occurred()) SWIG_fail; | |
9372 | } | |
02a34c4c | 9373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9374 | { |
9375 | if (temp8) | |
9376 | delete arg8; | |
9377 | } | |
9378 | return resultobj; | |
9379 | fail: | |
9380 | { | |
9381 | if (temp8) | |
9382 | delete arg8; | |
9383 | } | |
9384 | return NULL; | |
9385 | } | |
9386 | ||
9387 | ||
9388 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9389 | PyObject *resultobj; | |
9390 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9391 | int result; | |
9392 | PyObject * obj0 = 0 ; | |
9393 | char *kwnames[] = { | |
9394 | (char *) "self", NULL | |
9395 | }; | |
9396 | ||
9397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
9398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9399 | { | |
9400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9401 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
9402 | ||
9403 | wxPyEndAllowThreads(__tstate); | |
9404 | if (PyErr_Occurred()) SWIG_fail; | |
9405 | } | |
8edf1c75 | 9406 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9407 | return resultobj; |
9408 | fail: | |
9409 | return NULL; | |
9410 | } | |
9411 | ||
9412 | ||
9413 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9414 | PyObject *resultobj; | |
9415 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9416 | int result; | |
9417 | PyObject * obj0 = 0 ; | |
9418 | char *kwnames[] = { | |
9419 | (char *) "self", NULL | |
9420 | }; | |
9421 | ||
9422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
9423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9424 | { | |
9425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9426 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
9427 | ||
9428 | wxPyEndAllowThreads(__tstate); | |
9429 | if (PyErr_Occurred()) SWIG_fail; | |
9430 | } | |
8edf1c75 | 9431 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9432 | return resultobj; |
9433 | fail: | |
9434 | return NULL; | |
9435 | } | |
9436 | ||
9437 | ||
9438 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9439 | PyObject *resultobj; | |
9440 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9441 | int result; | |
9442 | PyObject * obj0 = 0 ; | |
9443 | char *kwnames[] = { | |
9444 | (char *) "self", NULL | |
9445 | }; | |
9446 | ||
9447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
9448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9449 | { | |
9450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9451 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
9452 | ||
9453 | wxPyEndAllowThreads(__tstate); | |
9454 | if (PyErr_Occurred()) SWIG_fail; | |
9455 | } | |
8edf1c75 | 9456 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9457 | return resultobj; |
9458 | fail: | |
9459 | return NULL; | |
9460 | } | |
9461 | ||
9462 | ||
9463 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9464 | PyObject *resultobj; | |
9465 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9466 | int result; | |
9467 | PyObject * obj0 = 0 ; | |
9468 | char *kwnames[] = { | |
9469 | (char *) "self", NULL | |
9470 | }; | |
9471 | ||
9472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
9473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9474 | { | |
9475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9476 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
9477 | ||
9478 | wxPyEndAllowThreads(__tstate); | |
9479 | if (PyErr_Occurred()) SWIG_fail; | |
9480 | } | |
8edf1c75 | 9481 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9482 | return resultobj; |
9483 | fail: | |
9484 | return NULL; | |
9485 | } | |
9486 | ||
9487 | ||
9488 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9489 | PyObject *resultobj; | |
9490 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9491 | bool result; | |
9492 | PyObject * obj0 = 0 ; | |
9493 | char *kwnames[] = { | |
9494 | (char *) "self", NULL | |
9495 | }; | |
9496 | ||
9497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
9498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9499 | { | |
9500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9501 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
9502 | ||
9503 | wxPyEndAllowThreads(__tstate); | |
9504 | if (PyErr_Occurred()) SWIG_fail; | |
9505 | } | |
02a34c4c | 9506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9507 | return resultobj; |
9508 | fail: | |
9509 | return NULL; | |
9510 | } | |
9511 | ||
9512 | ||
9513 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9514 | PyObject *resultobj; | |
9515 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9516 | int arg2 ; | |
9517 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9518 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9519 | char *kwnames[] = { |
9520 | (char *) "self",(char *) "viewStart", NULL | |
9521 | }; | |
9522 | ||
8edf1c75 | 9523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9525 | { |
9526 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9527 | if (PyErr_Occurred()) SWIG_fail; | |
9528 | } | |
d14a1e28 RD |
9529 | { |
9530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9531 | (arg1)->SetThumbPosition(arg2); | |
9532 | ||
9533 | wxPyEndAllowThreads(__tstate); | |
9534 | if (PyErr_Occurred()) SWIG_fail; | |
9535 | } | |
9536 | Py_INCREF(Py_None); resultobj = Py_None; | |
9537 | return resultobj; | |
9538 | fail: | |
9539 | return NULL; | |
9540 | } | |
9541 | ||
9542 | ||
9543 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9544 | PyObject *resultobj; | |
9545 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9546 | int arg2 ; | |
9547 | int arg3 ; | |
9548 | int arg4 ; | |
9549 | int arg5 ; | |
423f194a | 9550 | bool arg6 = (bool) True ; |
d14a1e28 | 9551 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
9552 | PyObject * obj1 = 0 ; |
9553 | PyObject * obj2 = 0 ; | |
9554 | PyObject * obj3 = 0 ; | |
9555 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
9556 | PyObject * obj5 = 0 ; |
9557 | char *kwnames[] = { | |
9558 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
9559 | }; | |
9560 | ||
8edf1c75 | 9561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9563 | { |
9564 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9565 | if (PyErr_Occurred()) SWIG_fail; | |
9566 | } | |
9567 | { | |
9568 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9569 | if (PyErr_Occurred()) SWIG_fail; | |
9570 | } | |
9571 | { | |
9572 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9573 | if (PyErr_Occurred()) SWIG_fail; | |
9574 | } | |
9575 | { | |
9576 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
9577 | if (PyErr_Occurred()) SWIG_fail; | |
9578 | } | |
d14a1e28 | 9579 | if (obj5) { |
2dbef272 | 9580 | { |
8edf1c75 | 9581 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
2dbef272 RD |
9582 | if (PyErr_Occurred()) SWIG_fail; |
9583 | } | |
d14a1e28 RD |
9584 | } |
9585 | { | |
9586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9587 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
9588 | ||
9589 | wxPyEndAllowThreads(__tstate); | |
9590 | if (PyErr_Occurred()) SWIG_fail; | |
9591 | } | |
9592 | Py_INCREF(Py_None); resultobj = Py_None; | |
9593 | return resultobj; | |
9594 | fail: | |
9595 | return NULL; | |
9596 | } | |
9597 | ||
9598 | ||
9599 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
9600 | PyObject *obj; | |
9601 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9602 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
9603 | Py_INCREF(obj); | |
9604 | return Py_BuildValue((char *)""); | |
9605 | } | |
8edf1c75 | 9606 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
cbd72d4f RD |
9607 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
9608 | return 1; | |
9609 | } | |
9610 | ||
9611 | ||
9612 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
9613 | PyObject *pyobj; | |
9614 | ||
9615 | { | |
9616 | #if wxUSE_UNICODE | |
9617 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9618 | #else | |
9619 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9620 | #endif | |
9621 | } | |
9622 | return pyobj; | |
9623 | } | |
9624 | ||
9625 | ||
8edf1c75 | 9626 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
cbd72d4f RD |
9627 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
9628 | return 1; | |
9629 | } | |
9630 | ||
9631 | ||
9632 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
9633 | PyObject *pyobj; | |
9634 | ||
9635 | { | |
9636 | #if wxUSE_UNICODE | |
9637 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9638 | #else | |
9639 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9640 | #endif | |
9641 | } | |
9642 | return pyobj; | |
9643 | } | |
9644 | ||
9645 | ||
d14a1e28 RD |
9646 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
9647 | PyObject *resultobj; | |
9648 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9649 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9650 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9651 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9652 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9653 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9654 | long arg5 = (long) wxSP_HORIZONTAL ; | |
9655 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
9656 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9657 | wxSpinButton *result; | |
9658 | wxPoint temp3 ; | |
9659 | wxSize temp4 ; | |
423f194a | 9660 | bool temp6 = False ; |
d14a1e28 | 9661 | PyObject * obj0 = 0 ; |
8edf1c75 | 9662 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9663 | PyObject * obj2 = 0 ; |
9664 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9665 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9666 | PyObject * obj5 = 0 ; |
9667 | char *kwnames[] = { | |
9668 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9669 | }; | |
9670 | ||
8edf1c75 | 9671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9673 | if (obj1) { |
9674 | { | |
9675 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9676 | if (PyErr_Occurred()) SWIG_fail; | |
9677 | } | |
9678 | } | |
d14a1e28 RD |
9679 | if (obj2) { |
9680 | { | |
9681 | arg3 = &temp3; | |
9682 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9683 | } | |
9684 | } | |
9685 | if (obj3) { | |
9686 | { | |
9687 | arg4 = &temp4; | |
9688 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9689 | } | |
9690 | } | |
8edf1c75 RD |
9691 | if (obj4) { |
9692 | { | |
9693 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9694 | if (PyErr_Occurred()) SWIG_fail; | |
9695 | } | |
9696 | } | |
d14a1e28 RD |
9697 | if (obj5) { |
9698 | { | |
9699 | arg6 = wxString_in_helper(obj5); | |
9700 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 9701 | temp6 = True; |
d14a1e28 RD |
9702 | } |
9703 | } | |
9704 | { | |
9705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9706 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9707 | ||
9708 | wxPyEndAllowThreads(__tstate); | |
9709 | if (PyErr_Occurred()) SWIG_fail; | |
9710 | } | |
9711 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9712 | { | |
9713 | if (temp6) | |
9714 | delete arg6; | |
9715 | } | |
9716 | return resultobj; | |
9717 | fail: | |
9718 | { | |
9719 | if (temp6) | |
9720 | delete arg6; | |
9721 | } | |
9722 | return NULL; | |
9723 | } | |
9724 | ||
9725 | ||
9726 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9727 | PyObject *resultobj; | |
9728 | wxSpinButton *result; | |
9729 | char *kwnames[] = { | |
9730 | NULL | |
9731 | }; | |
9732 | ||
9733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
9734 | { | |
9735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9736 | result = (wxSpinButton *)new wxSpinButton(); | |
9737 | ||
9738 | wxPyEndAllowThreads(__tstate); | |
9739 | if (PyErr_Occurred()) SWIG_fail; | |
9740 | } | |
9741 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9742 | return resultobj; | |
9743 | fail: | |
9744 | return NULL; | |
9745 | } | |
9746 | ||
9747 | ||
9748 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9749 | PyObject *resultobj; | |
9750 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9751 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9752 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9753 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9754 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9755 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9756 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9757 | long arg6 = (long) wxSP_HORIZONTAL ; | |
9758 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
9759 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9760 | bool result; | |
9761 | wxPoint temp4 ; | |
9762 | wxSize temp5 ; | |
423f194a | 9763 | bool temp7 = False ; |
d14a1e28 RD |
9764 | PyObject * obj0 = 0 ; |
9765 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9766 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9767 | PyObject * obj3 = 0 ; |
9768 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9769 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9770 | PyObject * obj6 = 0 ; |
9771 | char *kwnames[] = { | |
9772 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9773 | }; | |
9774 | ||
8edf1c75 | 9775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
9776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9777 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
9778 | if (obj2) { |
9779 | { | |
9780 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9781 | if (PyErr_Occurred()) SWIG_fail; | |
9782 | } | |
9783 | } | |
d14a1e28 RD |
9784 | if (obj3) { |
9785 | { | |
9786 | arg4 = &temp4; | |
9787 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9788 | } | |
9789 | } | |
9790 | if (obj4) { | |
9791 | { | |
9792 | arg5 = &temp5; | |
9793 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9794 | } | |
9795 | } | |
8edf1c75 RD |
9796 | if (obj5) { |
9797 | { | |
9798 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9799 | if (PyErr_Occurred()) SWIG_fail; | |
9800 | } | |
9801 | } | |
d14a1e28 RD |
9802 | if (obj6) { |
9803 | { | |
9804 | arg7 = wxString_in_helper(obj6); | |
9805 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 9806 | temp7 = True; |
d14a1e28 RD |
9807 | } |
9808 | } | |
9809 | { | |
9810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9811 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9812 | ||
9813 | wxPyEndAllowThreads(__tstate); | |
9814 | if (PyErr_Occurred()) SWIG_fail; | |
9815 | } | |
02a34c4c | 9816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9817 | { |
9818 | if (temp7) | |
9819 | delete arg7; | |
9820 | } | |
9821 | return resultobj; | |
9822 | fail: | |
9823 | { | |
9824 | if (temp7) | |
9825 | delete arg7; | |
9826 | } | |
9827 | return NULL; | |
9828 | } | |
9829 | ||
9830 | ||
9831 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9832 | PyObject *resultobj; | |
9833 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9834 | int result; | |
9835 | PyObject * obj0 = 0 ; | |
9836 | char *kwnames[] = { | |
9837 | (char *) "self", NULL | |
9838 | }; | |
9839 | ||
9840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
9841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9842 | { | |
9843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9844 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
9845 | ||
9846 | wxPyEndAllowThreads(__tstate); | |
9847 | if (PyErr_Occurred()) SWIG_fail; | |
9848 | } | |
8edf1c75 | 9849 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9850 | return resultobj; |
9851 | fail: | |
9852 | return NULL; | |
9853 | } | |
9854 | ||
9855 | ||
9856 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9857 | PyObject *resultobj; | |
9858 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9859 | int result; | |
9860 | PyObject * obj0 = 0 ; | |
9861 | char *kwnames[] = { | |
9862 | (char *) "self", NULL | |
9863 | }; | |
9864 | ||
9865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
9866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9867 | { | |
9868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9869 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
9870 | ||
9871 | wxPyEndAllowThreads(__tstate); | |
9872 | if (PyErr_Occurred()) SWIG_fail; | |
9873 | } | |
8edf1c75 | 9874 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9875 | return resultobj; |
9876 | fail: | |
9877 | return NULL; | |
9878 | } | |
9879 | ||
9880 | ||
9881 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9882 | PyObject *resultobj; | |
9883 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9884 | int result; | |
9885 | PyObject * obj0 = 0 ; | |
9886 | char *kwnames[] = { | |
9887 | (char *) "self", NULL | |
9888 | }; | |
9889 | ||
9890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
9891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9892 | { | |
9893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9894 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
9895 | ||
9896 | wxPyEndAllowThreads(__tstate); | |
9897 | if (PyErr_Occurred()) SWIG_fail; | |
9898 | } | |
8edf1c75 | 9899 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9900 | return resultobj; |
9901 | fail: | |
9902 | return NULL; | |
9903 | } | |
9904 | ||
9905 | ||
9906 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9907 | PyObject *resultobj; | |
9908 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9909 | int arg2 ; | |
9910 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9911 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9912 | char *kwnames[] = { |
9913 | (char *) "self",(char *) "val", NULL | |
9914 | }; | |
9915 | ||
8edf1c75 | 9916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9918 | { |
9919 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9920 | if (PyErr_Occurred()) SWIG_fail; | |
9921 | } | |
d14a1e28 RD |
9922 | { |
9923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9924 | (arg1)->SetValue(arg2); | |
9925 | ||
9926 | wxPyEndAllowThreads(__tstate); | |
9927 | if (PyErr_Occurred()) SWIG_fail; | |
9928 | } | |
9929 | Py_INCREF(Py_None); resultobj = Py_None; | |
9930 | return resultobj; | |
9931 | fail: | |
9932 | return NULL; | |
9933 | } | |
9934 | ||
9935 | ||
9936 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9937 | PyObject *resultobj; | |
9938 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9939 | int arg2 ; | |
9940 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9941 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9942 | char *kwnames[] = { |
9943 | (char *) "self",(char *) "minVal", NULL | |
9944 | }; | |
9945 | ||
8edf1c75 | 9946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9948 | { |
9949 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9950 | if (PyErr_Occurred()) SWIG_fail; | |
9951 | } | |
d14a1e28 RD |
9952 | { |
9953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9954 | (arg1)->SetMin(arg2); | |
9955 | ||
9956 | wxPyEndAllowThreads(__tstate); | |
9957 | if (PyErr_Occurred()) SWIG_fail; | |
9958 | } | |
9959 | Py_INCREF(Py_None); resultobj = Py_None; | |
9960 | return resultobj; | |
9961 | fail: | |
9962 | return NULL; | |
9963 | } | |
9964 | ||
9965 | ||
9966 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9967 | PyObject *resultobj; | |
9968 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9969 | int arg2 ; | |
9970 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9971 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9972 | char *kwnames[] = { |
9973 | (char *) "self",(char *) "maxVal", NULL | |
9974 | }; | |
9975 | ||
8edf1c75 | 9976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9978 | { |
9979 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9980 | if (PyErr_Occurred()) SWIG_fail; | |
9981 | } | |
d14a1e28 RD |
9982 | { |
9983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9984 | (arg1)->SetMax(arg2); | |
9985 | ||
9986 | wxPyEndAllowThreads(__tstate); | |
9987 | if (PyErr_Occurred()) SWIG_fail; | |
9988 | } | |
9989 | Py_INCREF(Py_None); resultobj = Py_None; | |
9990 | return resultobj; | |
9991 | fail: | |
9992 | return NULL; | |
9993 | } | |
9994 | ||
9995 | ||
9996 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9997 | PyObject *resultobj; | |
9998 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9999 | int arg2 ; | |
10000 | int arg3 ; | |
10001 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10002 | PyObject * obj1 = 0 ; |
10003 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10004 | char *kwnames[] = { |
10005 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10006 | }; | |
10007 | ||
8edf1c75 | 10008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10010 | { |
10011 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10012 | if (PyErr_Occurred()) SWIG_fail; | |
10013 | } | |
10014 | { | |
10015 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10016 | if (PyErr_Occurred()) SWIG_fail; | |
10017 | } | |
d14a1e28 RD |
10018 | { |
10019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10020 | (arg1)->SetRange(arg2,arg3); | |
10021 | ||
10022 | wxPyEndAllowThreads(__tstate); | |
10023 | if (PyErr_Occurred()) SWIG_fail; | |
10024 | } | |
10025 | Py_INCREF(Py_None); resultobj = Py_None; | |
10026 | return resultobj; | |
10027 | fail: | |
10028 | return NULL; | |
10029 | } | |
10030 | ||
10031 | ||
10032 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10033 | PyObject *resultobj; | |
10034 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10035 | bool result; | |
10036 | PyObject * obj0 = 0 ; | |
10037 | char *kwnames[] = { | |
10038 | (char *) "self", NULL | |
10039 | }; | |
10040 | ||
10041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
10042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10043 | { | |
10044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10045 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10046 | ||
10047 | wxPyEndAllowThreads(__tstate); | |
10048 | if (PyErr_Occurred()) SWIG_fail; | |
10049 | } | |
02a34c4c | 10050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10051 | return resultobj; |
10052 | fail: | |
10053 | return NULL; | |
10054 | } | |
10055 | ||
10056 | ||
10057 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
10058 | PyObject *obj; | |
10059 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10060 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
10061 | Py_INCREF(obj); | |
10062 | return Py_BuildValue((char *)""); | |
10063 | } | |
10064 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10065 | PyObject *resultobj; | |
10066 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10067 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10068 | wxString const &arg3_defvalue = wxPyEmptyString ; |
10069 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10070 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10071 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10072 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10073 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10074 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
10075 | int arg7 = (int) 0 ; | |
10076 | int arg8 = (int) 100 ; | |
10077 | int arg9 = (int) 0 ; | |
10078 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
10079 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10080 | wxSpinCtrl *result; | |
423f194a | 10081 | bool temp3 = False ; |
d14a1e28 RD |
10082 | wxPoint temp4 ; |
10083 | wxSize temp5 ; | |
423f194a | 10084 | bool temp10 = False ; |
d14a1e28 | 10085 | PyObject * obj0 = 0 ; |
8edf1c75 | 10086 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10087 | PyObject * obj2 = 0 ; |
10088 | PyObject * obj3 = 0 ; | |
10089 | PyObject * obj4 = 0 ; | |
8edf1c75 RD |
10090 | PyObject * obj5 = 0 ; |
10091 | PyObject * obj6 = 0 ; | |
10092 | PyObject * obj7 = 0 ; | |
10093 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10094 | PyObject * obj9 = 0 ; |
10095 | char *kwnames[] = { | |
10096 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10097 | }; | |
10098 | ||
8edf1c75 | 10099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 10100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10101 | if (obj1) { |
10102 | { | |
10103 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10104 | if (PyErr_Occurred()) SWIG_fail; | |
10105 | } | |
10106 | } | |
10107 | if (obj2) { | |
d14a1e28 RD |
10108 | { |
10109 | arg3 = wxString_in_helper(obj2); | |
10110 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10111 | temp3 = True; |
d14a1e28 RD |
10112 | } |
10113 | } | |
10114 | if (obj3) { | |
10115 | { | |
10116 | arg4 = &temp4; | |
10117 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10118 | } | |
10119 | } | |
10120 | if (obj4) { | |
10121 | { | |
10122 | arg5 = &temp5; | |
10123 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10124 | } | |
10125 | } | |
8edf1c75 RD |
10126 | if (obj5) { |
10127 | { | |
10128 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
10129 | if (PyErr_Occurred()) SWIG_fail; | |
10130 | } | |
10131 | } | |
10132 | if (obj6) { | |
10133 | { | |
10134 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
10135 | if (PyErr_Occurred()) SWIG_fail; | |
10136 | } | |
10137 | } | |
10138 | if (obj7) { | |
10139 | { | |
10140 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
10141 | if (PyErr_Occurred()) SWIG_fail; | |
10142 | } | |
10143 | } | |
10144 | if (obj8) { | |
10145 | { | |
10146 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
10147 | if (PyErr_Occurred()) SWIG_fail; | |
10148 | } | |
10149 | } | |
d14a1e28 RD |
10150 | if (obj9) { |
10151 | { | |
10152 | arg10 = wxString_in_helper(obj9); | |
10153 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10154 | temp10 = True; |
d14a1e28 RD |
10155 | } |
10156 | } | |
10157 | { | |
10158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10159 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
10160 | ||
10161 | wxPyEndAllowThreads(__tstate); | |
10162 | if (PyErr_Occurred()) SWIG_fail; | |
10163 | } | |
10164 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
10165 | { | |
10166 | if (temp3) | |
10167 | delete arg3; | |
10168 | } | |
10169 | { | |
10170 | if (temp10) | |
10171 | delete arg10; | |
10172 | } | |
10173 | return resultobj; | |
10174 | fail: | |
10175 | { | |
10176 | if (temp3) | |
10177 | delete arg3; | |
10178 | } | |
10179 | { | |
10180 | if (temp10) | |
10181 | delete arg10; | |
10182 | } | |
10183 | return NULL; | |
10184 | } | |
10185 | ||
10186 | ||
10187 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10188 | PyObject *resultobj; | |
10189 | wxSpinCtrl *result; | |
10190 | char *kwnames[] = { | |
10191 | NULL | |
10192 | }; | |
10193 | ||
10194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
10195 | { | |
10196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10197 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
10198 | ||
10199 | wxPyEndAllowThreads(__tstate); | |
10200 | if (PyErr_Occurred()) SWIG_fail; | |
10201 | } | |
10202 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
10203 | return resultobj; | |
10204 | fail: | |
10205 | return NULL; | |
10206 | } | |
10207 | ||
10208 | ||
10209 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10210 | PyObject *resultobj; | |
10211 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10212 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10213 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10214 | wxString const &arg4_defvalue = wxPyEmptyString ; |
10215 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
10216 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10217 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10218 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10219 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10220 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
10221 | int arg8 = (int) 0 ; | |
10222 | int arg9 = (int) 100 ; | |
10223 | int arg10 = (int) 0 ; | |
10224 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
10225 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10226 | bool result; | |
423f194a | 10227 | bool temp4 = False ; |
d14a1e28 RD |
10228 | wxPoint temp5 ; |
10229 | wxSize temp6 ; | |
423f194a | 10230 | bool temp11 = False ; |
d14a1e28 RD |
10231 | PyObject * obj0 = 0 ; |
10232 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10233 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10234 | PyObject * obj3 = 0 ; |
10235 | PyObject * obj4 = 0 ; | |
10236 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
10237 | PyObject * obj6 = 0 ; |
10238 | PyObject * obj7 = 0 ; | |
10239 | PyObject * obj8 = 0 ; | |
10240 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
10241 | PyObject * obj10 = 0 ; |
10242 | char *kwnames[] = { | |
10243 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10244 | }; | |
10245 | ||
8edf1c75 | 10246 | 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 |
10247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10248 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
10249 | if (obj2) { |
10250 | { | |
10251 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10252 | if (PyErr_Occurred()) SWIG_fail; | |
10253 | } | |
10254 | } | |
d14a1e28 RD |
10255 | if (obj3) { |
10256 | { | |
10257 | arg4 = wxString_in_helper(obj3); | |
10258 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10259 | temp4 = True; |
d14a1e28 RD |
10260 | } |
10261 | } | |
10262 | if (obj4) { | |
10263 | { | |
10264 | arg5 = &temp5; | |
10265 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10266 | } | |
10267 | } | |
10268 | if (obj5) { | |
10269 | { | |
10270 | arg6 = &temp6; | |
10271 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10272 | } | |
10273 | } | |
8edf1c75 RD |
10274 | if (obj6) { |
10275 | { | |
10276 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
10277 | if (PyErr_Occurred()) SWIG_fail; | |
10278 | } | |
10279 | } | |
10280 | if (obj7) { | |
10281 | { | |
10282 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
10283 | if (PyErr_Occurred()) SWIG_fail; | |
10284 | } | |
10285 | } | |
10286 | if (obj8) { | |
10287 | { | |
10288 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
10289 | if (PyErr_Occurred()) SWIG_fail; | |
10290 | } | |
10291 | } | |
10292 | if (obj9) { | |
10293 | { | |
10294 | arg10 = (int) SWIG_PyObj_AsInt(obj9); | |
10295 | if (PyErr_Occurred()) SWIG_fail; | |
10296 | } | |
10297 | } | |
d14a1e28 RD |
10298 | if (obj10) { |
10299 | { | |
10300 | arg11 = wxString_in_helper(obj10); | |
10301 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 10302 | temp11 = True; |
d14a1e28 RD |
10303 | } |
10304 | } | |
10305 | { | |
10306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10307 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
10308 | ||
10309 | wxPyEndAllowThreads(__tstate); | |
10310 | if (PyErr_Occurred()) SWIG_fail; | |
10311 | } | |
02a34c4c | 10312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10313 | { |
10314 | if (temp4) | |
10315 | delete arg4; | |
10316 | } | |
10317 | { | |
10318 | if (temp11) | |
10319 | delete arg11; | |
10320 | } | |
10321 | return resultobj; | |
10322 | fail: | |
10323 | { | |
10324 | if (temp4) | |
10325 | delete arg4; | |
10326 | } | |
10327 | { | |
10328 | if (temp11) | |
10329 | delete arg11; | |
10330 | } | |
10331 | return NULL; | |
10332 | } | |
10333 | ||
10334 | ||
10335 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10336 | PyObject *resultobj; | |
10337 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10338 | int result; | |
10339 | PyObject * obj0 = 0 ; | |
10340 | char *kwnames[] = { | |
10341 | (char *) "self", NULL | |
10342 | }; | |
10343 | ||
10344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
10345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10346 | { | |
10347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10348 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
10349 | ||
10350 | wxPyEndAllowThreads(__tstate); | |
10351 | if (PyErr_Occurred()) SWIG_fail; | |
10352 | } | |
8edf1c75 | 10353 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10354 | return resultobj; |
10355 | fail: | |
10356 | return NULL; | |
10357 | } | |
10358 | ||
10359 | ||
10360 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10361 | PyObject *resultobj; | |
10362 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10363 | int arg2 ; | |
10364 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10365 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10366 | char *kwnames[] = { |
10367 | (char *) "self",(char *) "value", NULL | |
10368 | }; | |
10369 | ||
8edf1c75 | 10370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10372 | { |
10373 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10374 | if (PyErr_Occurred()) SWIG_fail; | |
10375 | } | |
d14a1e28 RD |
10376 | { |
10377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10378 | (arg1)->SetValue(arg2); | |
10379 | ||
10380 | wxPyEndAllowThreads(__tstate); | |
10381 | if (PyErr_Occurred()) SWIG_fail; | |
10382 | } | |
10383 | Py_INCREF(Py_None); resultobj = Py_None; | |
10384 | return resultobj; | |
10385 | fail: | |
10386 | return NULL; | |
10387 | } | |
10388 | ||
10389 | ||
10390 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10391 | PyObject *resultobj; | |
10392 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10393 | wxString *arg2 = 0 ; | |
423f194a | 10394 | bool temp2 = False ; |
d14a1e28 RD |
10395 | PyObject * obj0 = 0 ; |
10396 | PyObject * obj1 = 0 ; | |
10397 | char *kwnames[] = { | |
10398 | (char *) "self",(char *) "text", NULL | |
10399 | }; | |
10400 | ||
10401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
10402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10403 | { | |
10404 | arg2 = wxString_in_helper(obj1); | |
10405 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10406 | temp2 = True; |
d14a1e28 RD |
10407 | } |
10408 | { | |
10409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10410 | (arg1)->SetValue((wxString const &)*arg2); | |
10411 | ||
10412 | wxPyEndAllowThreads(__tstate); | |
10413 | if (PyErr_Occurred()) SWIG_fail; | |
10414 | } | |
10415 | Py_INCREF(Py_None); resultobj = Py_None; | |
10416 | { | |
10417 | if (temp2) | |
10418 | delete arg2; | |
10419 | } | |
10420 | return resultobj; | |
10421 | fail: | |
10422 | { | |
10423 | if (temp2) | |
10424 | delete arg2; | |
10425 | } | |
10426 | return NULL; | |
10427 | } | |
10428 | ||
10429 | ||
10430 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10431 | PyObject *resultobj; | |
10432 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10433 | int arg2 ; | |
10434 | int arg3 ; | |
10435 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10436 | PyObject * obj1 = 0 ; |
10437 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10438 | char *kwnames[] = { |
10439 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10440 | }; | |
10441 | ||
8edf1c75 | 10442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10444 | { |
10445 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10446 | if (PyErr_Occurred()) SWIG_fail; | |
10447 | } | |
10448 | { | |
10449 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10450 | if (PyErr_Occurred()) SWIG_fail; | |
10451 | } | |
d14a1e28 RD |
10452 | { |
10453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10454 | (arg1)->SetRange(arg2,arg3); | |
10455 | ||
10456 | wxPyEndAllowThreads(__tstate); | |
10457 | if (PyErr_Occurred()) SWIG_fail; | |
10458 | } | |
10459 | Py_INCREF(Py_None); resultobj = Py_None; | |
10460 | return resultobj; | |
10461 | fail: | |
10462 | return NULL; | |
10463 | } | |
10464 | ||
10465 | ||
10466 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10467 | PyObject *resultobj; | |
10468 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10469 | int result; | |
10470 | PyObject * obj0 = 0 ; | |
10471 | char *kwnames[] = { | |
10472 | (char *) "self", NULL | |
10473 | }; | |
10474 | ||
10475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
10476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10477 | { | |
10478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10479 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
10480 | ||
10481 | wxPyEndAllowThreads(__tstate); | |
10482 | if (PyErr_Occurred()) SWIG_fail; | |
10483 | } | |
8edf1c75 | 10484 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10485 | return resultobj; |
10486 | fail: | |
10487 | return NULL; | |
10488 | } | |
10489 | ||
10490 | ||
10491 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10492 | PyObject *resultobj; | |
10493 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10494 | int result; | |
10495 | PyObject * obj0 = 0 ; | |
10496 | char *kwnames[] = { | |
10497 | (char *) "self", NULL | |
10498 | }; | |
10499 | ||
10500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
10501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10502 | { | |
10503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10504 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
10505 | ||
10506 | wxPyEndAllowThreads(__tstate); | |
10507 | if (PyErr_Occurred()) SWIG_fail; | |
10508 | } | |
8edf1c75 | 10509 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10510 | return resultobj; |
10511 | fail: | |
10512 | return NULL; | |
10513 | } | |
10514 | ||
10515 | ||
10516 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10517 | PyObject *resultobj; | |
10518 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10519 | long arg2 ; | |
10520 | long arg3 ; | |
10521 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10522 | PyObject * obj1 = 0 ; |
10523 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10524 | char *kwnames[] = { |
10525 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10526 | }; | |
10527 | ||
8edf1c75 | 10528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10530 | { |
10531 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
10532 | if (PyErr_Occurred()) SWIG_fail; | |
10533 | } | |
10534 | { | |
10535 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
10536 | if (PyErr_Occurred()) SWIG_fail; | |
10537 | } | |
d14a1e28 RD |
10538 | { |
10539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10540 | (arg1)->SetSelection(arg2,arg3); | |
10541 | ||
10542 | wxPyEndAllowThreads(__tstate); | |
10543 | if (PyErr_Occurred()) SWIG_fail; | |
10544 | } | |
10545 | Py_INCREF(Py_None); resultobj = Py_None; | |
10546 | return resultobj; | |
10547 | fail: | |
10548 | return NULL; | |
10549 | } | |
10550 | ||
10551 | ||
10552 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
10553 | PyObject *obj; | |
10554 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10555 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
10556 | Py_INCREF(obj); | |
10557 | return Py_BuildValue((char *)""); | |
10558 | } | |
d896a793 RD |
10559 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
10560 | PyObject *resultobj; | |
10561 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10562 | int arg2 = (int) 0 ; | |
10563 | wxSpinEvent *result; | |
8edf1c75 RD |
10564 | PyObject * obj0 = 0 ; |
10565 | PyObject * obj1 = 0 ; | |
d896a793 RD |
10566 | char *kwnames[] = { |
10567 | (char *) "commandType",(char *) "winid", NULL | |
10568 | }; | |
10569 | ||
8edf1c75 RD |
10570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
10571 | if (obj0) { | |
10572 | { | |
10573 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
10574 | if (PyErr_Occurred()) SWIG_fail; | |
10575 | } | |
10576 | } | |
10577 | if (obj1) { | |
10578 | { | |
10579 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10580 | if (PyErr_Occurred()) SWIG_fail; | |
10581 | } | |
10582 | } | |
d896a793 RD |
10583 | { |
10584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10585 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
10586 | ||
10587 | wxPyEndAllowThreads(__tstate); | |
10588 | if (PyErr_Occurred()) SWIG_fail; | |
10589 | } | |
10590 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinEvent, 1); | |
10591 | return resultobj; | |
10592 | fail: | |
10593 | return NULL; | |
10594 | } | |
10595 | ||
10596 | ||
10597 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10598 | PyObject *resultobj; | |
10599 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10600 | int result; | |
10601 | PyObject * obj0 = 0 ; | |
10602 | char *kwnames[] = { | |
10603 | (char *) "self", NULL | |
10604 | }; | |
10605 | ||
10606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10608 | { | |
10609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10610 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
10611 | ||
10612 | wxPyEndAllowThreads(__tstate); | |
10613 | if (PyErr_Occurred()) SWIG_fail; | |
10614 | } | |
8edf1c75 | 10615 | resultobj = SWIG_PyObj_FromInt((int)result); |
d896a793 RD |
10616 | return resultobj; |
10617 | fail: | |
10618 | return NULL; | |
10619 | } | |
10620 | ||
10621 | ||
10622 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10623 | PyObject *resultobj; | |
10624 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10625 | int arg2 ; | |
10626 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10627 | PyObject * obj1 = 0 ; |
d896a793 RD |
10628 | char *kwnames[] = { |
10629 | (char *) "self",(char *) "pos", NULL | |
10630 | }; | |
10631 | ||
8edf1c75 | 10632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
d896a793 | 10633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10634 | { |
10635 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10636 | if (PyErr_Occurred()) SWIG_fail; | |
10637 | } | |
d896a793 RD |
10638 | { |
10639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10640 | (arg1)->SetPosition(arg2); | |
10641 | ||
10642 | wxPyEndAllowThreads(__tstate); | |
10643 | if (PyErr_Occurred()) SWIG_fail; | |
10644 | } | |
10645 | Py_INCREF(Py_None); resultobj = Py_None; | |
10646 | return resultobj; | |
10647 | fail: | |
10648 | return NULL; | |
10649 | } | |
10650 | ||
10651 | ||
10652 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
10653 | PyObject *obj; | |
10654 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10655 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
10656 | Py_INCREF(obj); | |
10657 | return Py_BuildValue((char *)""); | |
10658 | } | |
8edf1c75 | 10659 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
cbd72d4f RD |
10660 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
10661 | return 1; | |
10662 | } | |
10663 | ||
10664 | ||
10665 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
10666 | PyObject *pyobj; | |
10667 | ||
10668 | { | |
10669 | #if wxUSE_UNICODE | |
10670 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10671 | #else | |
10672 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10673 | #endif | |
10674 | } | |
10675 | return pyobj; | |
10676 | } | |
10677 | ||
10678 | ||
8edf1c75 | 10679 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
cbd72d4f RD |
10680 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
10681 | return 1; | |
10682 | } | |
10683 | ||
10684 | ||
10685 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
10686 | PyObject *pyobj; | |
10687 | ||
10688 | { | |
10689 | #if wxUSE_UNICODE | |
10690 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10691 | #else | |
10692 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10693 | #endif | |
10694 | } | |
10695 | return pyobj; | |
10696 | } | |
10697 | ||
10698 | ||
d14a1e28 RD |
10699 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
10700 | PyObject *resultobj; | |
10701 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10702 | int arg2 ; |
d14a1e28 RD |
10703 | wxString *arg3 = 0 ; |
10704 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10705 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10706 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10707 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
02a34c4c RD |
10708 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
10709 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
10710 | int arg7 = (int) 0 ; | |
10711 | long arg8 = (long) wxRA_HORIZONTAL ; | |
10712 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
10713 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
10714 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
10715 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 10716 | wxRadioBox *result; |
423f194a | 10717 | bool temp3 = False ; |
d14a1e28 RD |
10718 | wxPoint temp4 ; |
10719 | wxSize temp5 ; | |
0ffb2aa6 | 10720 | bool temp6 = False ; |
423f194a | 10721 | bool temp10 = False ; |
d14a1e28 | 10722 | PyObject * obj0 = 0 ; |
8edf1c75 | 10723 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10724 | PyObject * obj2 = 0 ; |
10725 | PyObject * obj3 = 0 ; | |
10726 | PyObject * obj4 = 0 ; | |
10727 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
10728 | PyObject * obj6 = 0 ; |
10729 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
10730 | PyObject * obj8 = 0 ; |
10731 | PyObject * obj9 = 0 ; | |
10732 | char *kwnames[] = { | |
8edf1c75 | 10733 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
10734 | }; |
10735 | ||
8edf1c75 | 10736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 10737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10738 | { |
10739 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10740 | if (PyErr_Occurred()) SWIG_fail; | |
10741 | } | |
d14a1e28 RD |
10742 | { |
10743 | arg3 = wxString_in_helper(obj2); | |
10744 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10745 | temp3 = True; |
d14a1e28 RD |
10746 | } |
10747 | if (obj3) { | |
10748 | { | |
10749 | arg4 = &temp4; | |
10750 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10751 | } | |
10752 | } | |
10753 | if (obj4) { | |
10754 | { | |
10755 | arg5 = &temp5; | |
10756 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10757 | } | |
10758 | } | |
10759 | if (obj5) { | |
10760 | { | |
02a34c4c RD |
10761 | if (! PySequence_Check(obj5)) { |
10762 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10763 | SWIG_fail; | |
10764 | } | |
10765 | arg6 = new wxArrayString; | |
0ffb2aa6 | 10766 | temp6 = True; |
02a34c4c RD |
10767 | int i, len=PySequence_Length(obj5); |
10768 | for (i=0; i<len; i++) { | |
10769 | PyObject* item = PySequence_GetItem(obj5, i); | |
10770 | #if wxUSE_UNICODE | |
10771 | PyObject* str = PyObject_Unicode(item); | |
10772 | #else | |
10773 | PyObject* str = PyObject_Str(item); | |
10774 | #endif | |
10775 | arg6->Add(Py2wxString(str)); | |
10776 | Py_DECREF(item); | |
10777 | Py_DECREF(str); | |
10778 | } | |
d14a1e28 RD |
10779 | } |
10780 | } | |
8edf1c75 RD |
10781 | if (obj6) { |
10782 | { | |
02a34c4c | 10783 | arg7 = (int) SWIG_PyObj_AsInt(obj6); |
8edf1c75 RD |
10784 | if (PyErr_Occurred()) SWIG_fail; |
10785 | } | |
10786 | } | |
10787 | if (obj7) { | |
10788 | { | |
02a34c4c | 10789 | arg8 = (long) SWIG_PyObj_AsLong(obj7); |
8edf1c75 RD |
10790 | if (PyErr_Occurred()) SWIG_fail; |
10791 | } | |
10792 | } | |
d14a1e28 | 10793 | if (obj8) { |
02a34c4c RD |
10794 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10795 | if (arg9 == NULL) { | |
d14a1e28 RD |
10796 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
10797 | } | |
10798 | } | |
10799 | if (obj9) { | |
10800 | { | |
02a34c4c RD |
10801 | arg10 = wxString_in_helper(obj9); |
10802 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10803 | temp10 = True; |
d14a1e28 RD |
10804 | } |
10805 | } | |
10806 | { | |
10807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 10808 | 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 |
10809 | |
10810 | wxPyEndAllowThreads(__tstate); | |
10811 | if (PyErr_Occurred()) SWIG_fail; | |
10812 | } | |
10813 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
10814 | { | |
10815 | if (temp3) | |
10816 | delete arg3; | |
10817 | } | |
10818 | { | |
0ffb2aa6 | 10819 | if (temp6) delete arg6; |
d14a1e28 RD |
10820 | } |
10821 | { | |
10822 | if (temp10) | |
02a34c4c | 10823 | delete arg10; |
d14a1e28 RD |
10824 | } |
10825 | return resultobj; | |
10826 | fail: | |
10827 | { | |
10828 | if (temp3) | |
10829 | delete arg3; | |
10830 | } | |
10831 | { | |
0ffb2aa6 | 10832 | if (temp6) delete arg6; |
d14a1e28 RD |
10833 | } |
10834 | { | |
10835 | if (temp10) | |
02a34c4c | 10836 | delete arg10; |
d14a1e28 RD |
10837 | } |
10838 | return NULL; | |
10839 | } | |
10840 | ||
10841 | ||
10842 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10843 | PyObject *resultobj; | |
10844 | wxRadioBox *result; | |
10845 | char *kwnames[] = { | |
10846 | NULL | |
10847 | }; | |
10848 | ||
10849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
10850 | { | |
10851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10852 | result = (wxRadioBox *)new wxRadioBox(); | |
10853 | ||
10854 | wxPyEndAllowThreads(__tstate); | |
10855 | if (PyErr_Occurred()) SWIG_fail; | |
10856 | } | |
10857 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
10858 | return resultobj; | |
10859 | fail: | |
10860 | return NULL; | |
10861 | } | |
10862 | ||
10863 | ||
10864 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10865 | PyObject *resultobj; | |
10866 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10867 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10868 | int arg3 ; |
d14a1e28 RD |
10869 | wxString *arg4 = 0 ; |
10870 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10871 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10872 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10873 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
02a34c4c RD |
10874 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
10875 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
10876 | int arg8 = (int) 0 ; | |
10877 | long arg9 = (long) wxRA_HORIZONTAL ; | |
10878 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
10879 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
10880 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
10881 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 10882 | bool result; |
423f194a | 10883 | bool temp4 = False ; |
d14a1e28 RD |
10884 | wxPoint temp5 ; |
10885 | wxSize temp6 ; | |
0ffb2aa6 | 10886 | bool temp7 = False ; |
423f194a | 10887 | bool temp11 = False ; |
d14a1e28 RD |
10888 | PyObject * obj0 = 0 ; |
10889 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10890 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10891 | PyObject * obj3 = 0 ; |
10892 | PyObject * obj4 = 0 ; | |
10893 | PyObject * obj5 = 0 ; | |
10894 | PyObject * obj6 = 0 ; | |
8edf1c75 RD |
10895 | PyObject * obj7 = 0 ; |
10896 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10897 | PyObject * obj9 = 0 ; |
10898 | PyObject * obj10 = 0 ; | |
10899 | char *kwnames[] = { | |
8edf1c75 | 10900 | (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 |
10901 | }; |
10902 | ||
8edf1c75 | 10903 | 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 |
10904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10905 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
10906 | { |
10907 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10908 | if (PyErr_Occurred()) SWIG_fail; | |
10909 | } | |
d14a1e28 RD |
10910 | { |
10911 | arg4 = wxString_in_helper(obj3); | |
10912 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10913 | temp4 = True; |
d14a1e28 RD |
10914 | } |
10915 | if (obj4) { | |
10916 | { | |
10917 | arg5 = &temp5; | |
10918 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10919 | } | |
10920 | } | |
10921 | if (obj5) { | |
10922 | { | |
10923 | arg6 = &temp6; | |
10924 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10925 | } | |
10926 | } | |
10927 | if (obj6) { | |
10928 | { | |
02a34c4c RD |
10929 | if (! PySequence_Check(obj6)) { |
10930 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10931 | SWIG_fail; | |
10932 | } | |
10933 | arg7 = new wxArrayString; | |
0ffb2aa6 | 10934 | temp7 = True; |
02a34c4c RD |
10935 | int i, len=PySequence_Length(obj6); |
10936 | for (i=0; i<len; i++) { | |
10937 | PyObject* item = PySequence_GetItem(obj6, i); | |
10938 | #if wxUSE_UNICODE | |
10939 | PyObject* str = PyObject_Unicode(item); | |
10940 | #else | |
10941 | PyObject* str = PyObject_Str(item); | |
10942 | #endif | |
10943 | arg7->Add(Py2wxString(str)); | |
10944 | Py_DECREF(item); | |
10945 | Py_DECREF(str); | |
10946 | } | |
d14a1e28 RD |
10947 | } |
10948 | } | |
8edf1c75 RD |
10949 | if (obj7) { |
10950 | { | |
02a34c4c | 10951 | arg8 = (int) SWIG_PyObj_AsInt(obj7); |
8edf1c75 RD |
10952 | if (PyErr_Occurred()) SWIG_fail; |
10953 | } | |
10954 | } | |
10955 | if (obj8) { | |
10956 | { | |
02a34c4c | 10957 | arg9 = (long) SWIG_PyObj_AsLong(obj8); |
8edf1c75 RD |
10958 | if (PyErr_Occurred()) SWIG_fail; |
10959 | } | |
10960 | } | |
d14a1e28 | 10961 | if (obj9) { |
02a34c4c RD |
10962 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10963 | if (arg10 == NULL) { | |
d14a1e28 RD |
10964 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
10965 | } | |
10966 | } | |
10967 | if (obj10) { | |
10968 | { | |
02a34c4c RD |
10969 | arg11 = wxString_in_helper(obj10); |
10970 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 10971 | temp11 = True; |
d14a1e28 RD |
10972 | } |
10973 | } | |
10974 | { | |
10975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 10976 | 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 |
10977 | |
10978 | wxPyEndAllowThreads(__tstate); | |
10979 | if (PyErr_Occurred()) SWIG_fail; | |
10980 | } | |
02a34c4c | 10981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10982 | { |
10983 | if (temp4) | |
10984 | delete arg4; | |
10985 | } | |
10986 | { | |
0ffb2aa6 | 10987 | if (temp7) delete arg7; |
d14a1e28 RD |
10988 | } |
10989 | { | |
10990 | if (temp11) | |
02a34c4c | 10991 | delete arg11; |
d14a1e28 RD |
10992 | } |
10993 | return resultobj; | |
10994 | fail: | |
10995 | { | |
10996 | if (temp4) | |
10997 | delete arg4; | |
10998 | } | |
10999 | { | |
0ffb2aa6 | 11000 | if (temp7) delete arg7; |
d14a1e28 RD |
11001 | } |
11002 | { | |
11003 | if (temp11) | |
02a34c4c | 11004 | delete arg11; |
d14a1e28 RD |
11005 | } |
11006 | return NULL; | |
11007 | } | |
11008 | ||
11009 | ||
11010 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11011 | PyObject *resultobj; | |
11012 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11013 | int arg2 ; | |
11014 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11015 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11016 | char *kwnames[] = { |
11017 | (char *) "self",(char *) "n", NULL | |
11018 | }; | |
11019 | ||
8edf1c75 | 11020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11022 | { |
11023 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11024 | if (PyErr_Occurred()) SWIG_fail; | |
11025 | } | |
d14a1e28 RD |
11026 | { |
11027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11028 | (arg1)->SetSelection(arg2); | |
11029 | ||
11030 | wxPyEndAllowThreads(__tstate); | |
11031 | if (PyErr_Occurred()) SWIG_fail; | |
11032 | } | |
11033 | Py_INCREF(Py_None); resultobj = Py_None; | |
11034 | return resultobj; | |
11035 | fail: | |
11036 | return NULL; | |
11037 | } | |
11038 | ||
11039 | ||
11040 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11041 | PyObject *resultobj; | |
11042 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11043 | int result; | |
11044 | PyObject * obj0 = 0 ; | |
11045 | char *kwnames[] = { | |
11046 | (char *) "self", NULL | |
11047 | }; | |
11048 | ||
11049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
11050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11051 | { | |
11052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11053 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
11054 | ||
11055 | wxPyEndAllowThreads(__tstate); | |
11056 | if (PyErr_Occurred()) SWIG_fail; | |
11057 | } | |
8edf1c75 | 11058 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11059 | return resultobj; |
11060 | fail: | |
11061 | return NULL; | |
11062 | } | |
11063 | ||
11064 | ||
11065 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11066 | PyObject *resultobj; | |
11067 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11068 | wxString result; | |
11069 | PyObject * obj0 = 0 ; | |
11070 | char *kwnames[] = { | |
11071 | (char *) "self", NULL | |
11072 | }; | |
11073 | ||
11074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
11075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11076 | { | |
11077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11078 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
11079 | ||
11080 | wxPyEndAllowThreads(__tstate); | |
11081 | if (PyErr_Occurred()) SWIG_fail; | |
11082 | } | |
11083 | { | |
11084 | #if wxUSE_UNICODE | |
11085 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11086 | #else | |
11087 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11088 | #endif | |
11089 | } | |
11090 | return resultobj; | |
11091 | fail: | |
11092 | return NULL; | |
11093 | } | |
11094 | ||
11095 | ||
11096 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11097 | PyObject *resultobj; | |
11098 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11099 | wxString *arg2 = 0 ; | |
11100 | bool result; | |
423f194a | 11101 | bool temp2 = False ; |
d14a1e28 RD |
11102 | PyObject * obj0 = 0 ; |
11103 | PyObject * obj1 = 0 ; | |
11104 | char *kwnames[] = { | |
11105 | (char *) "self",(char *) "s", NULL | |
11106 | }; | |
11107 | ||
11108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
11109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11110 | { | |
11111 | arg2 = wxString_in_helper(obj1); | |
11112 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11113 | temp2 = True; |
d14a1e28 RD |
11114 | } |
11115 | { | |
11116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11117 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
11118 | ||
11119 | wxPyEndAllowThreads(__tstate); | |
11120 | if (PyErr_Occurred()) SWIG_fail; | |
11121 | } | |
02a34c4c | 11122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11123 | { |
11124 | if (temp2) | |
11125 | delete arg2; | |
11126 | } | |
11127 | return resultobj; | |
11128 | fail: | |
11129 | { | |
11130 | if (temp2) | |
11131 | delete arg2; | |
11132 | } | |
11133 | return NULL; | |
11134 | } | |
11135 | ||
11136 | ||
11137 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11138 | PyObject *resultobj; | |
11139 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11140 | int result; | |
11141 | PyObject * obj0 = 0 ; | |
11142 | char *kwnames[] = { | |
11143 | (char *) "self", NULL | |
11144 | }; | |
11145 | ||
11146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
11147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11148 | { | |
11149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11150 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
11151 | ||
11152 | wxPyEndAllowThreads(__tstate); | |
11153 | if (PyErr_Occurred()) SWIG_fail; | |
11154 | } | |
8edf1c75 | 11155 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11156 | return resultobj; |
11157 | fail: | |
11158 | return NULL; | |
11159 | } | |
11160 | ||
11161 | ||
11162 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11163 | PyObject *resultobj; | |
11164 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11165 | wxString *arg2 = 0 ; | |
11166 | int result; | |
423f194a | 11167 | bool temp2 = False ; |
d14a1e28 RD |
11168 | PyObject * obj0 = 0 ; |
11169 | PyObject * obj1 = 0 ; | |
11170 | char *kwnames[] = { | |
11171 | (char *) "self",(char *) "s", NULL | |
11172 | }; | |
11173 | ||
11174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
11175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11176 | { | |
11177 | arg2 = wxString_in_helper(obj1); | |
11178 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11179 | temp2 = True; |
d14a1e28 RD |
11180 | } |
11181 | { | |
11182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11183 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
11184 | ||
11185 | wxPyEndAllowThreads(__tstate); | |
11186 | if (PyErr_Occurred()) SWIG_fail; | |
11187 | } | |
8edf1c75 | 11188 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11189 | { |
11190 | if (temp2) | |
11191 | delete arg2; | |
11192 | } | |
11193 | return resultobj; | |
11194 | fail: | |
11195 | { | |
11196 | if (temp2) | |
11197 | delete arg2; | |
11198 | } | |
11199 | return NULL; | |
11200 | } | |
11201 | ||
11202 | ||
11203 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11204 | PyObject *resultobj; | |
11205 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11206 | int arg2 ; | |
11207 | wxString result; | |
11208 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11209 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11210 | char *kwnames[] = { |
11211 | (char *) "self",(char *) "n", NULL | |
11212 | }; | |
11213 | ||
8edf1c75 | 11214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11216 | { |
11217 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11218 | if (PyErr_Occurred()) SWIG_fail; | |
11219 | } | |
d14a1e28 RD |
11220 | { |
11221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11222 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
11223 | ||
11224 | wxPyEndAllowThreads(__tstate); | |
11225 | if (PyErr_Occurred()) SWIG_fail; | |
11226 | } | |
11227 | { | |
11228 | #if wxUSE_UNICODE | |
11229 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11230 | #else | |
11231 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11232 | #endif | |
11233 | } | |
11234 | return resultobj; | |
11235 | fail: | |
11236 | return NULL; | |
11237 | } | |
11238 | ||
11239 | ||
11240 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11241 | PyObject *resultobj; | |
11242 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11243 | int arg2 ; | |
11244 | wxString *arg3 = 0 ; | |
423f194a | 11245 | bool temp3 = False ; |
d14a1e28 | 11246 | PyObject * obj0 = 0 ; |
8edf1c75 | 11247 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11248 | PyObject * obj2 = 0 ; |
11249 | char *kwnames[] = { | |
11250 | (char *) "self",(char *) "n",(char *) "label", NULL | |
11251 | }; | |
11252 | ||
8edf1c75 | 11253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11255 | { |
11256 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11257 | if (PyErr_Occurred()) SWIG_fail; | |
11258 | } | |
d14a1e28 RD |
11259 | { |
11260 | arg3 = wxString_in_helper(obj2); | |
11261 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11262 | temp3 = True; |
d14a1e28 RD |
11263 | } |
11264 | { | |
11265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11266 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
11267 | ||
11268 | wxPyEndAllowThreads(__tstate); | |
11269 | if (PyErr_Occurred()) SWIG_fail; | |
11270 | } | |
11271 | Py_INCREF(Py_None); resultobj = Py_None; | |
11272 | { | |
11273 | if (temp3) | |
11274 | delete arg3; | |
11275 | } | |
11276 | return resultobj; | |
11277 | fail: | |
11278 | { | |
11279 | if (temp3) | |
11280 | delete arg3; | |
11281 | } | |
11282 | return NULL; | |
11283 | } | |
11284 | ||
11285 | ||
11286 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11287 | PyObject *resultobj; | |
11288 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11289 | int arg2 ; | |
423f194a | 11290 | bool arg3 = (bool) True ; |
d14a1e28 | 11291 | PyObject * obj0 = 0 ; |
8edf1c75 | 11292 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11293 | PyObject * obj2 = 0 ; |
11294 | char *kwnames[] = { | |
11295 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
11296 | }; | |
11297 | ||
8edf1c75 | 11298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11300 | { |
11301 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11302 | if (PyErr_Occurred()) SWIG_fail; | |
11303 | } | |
d14a1e28 | 11304 | if (obj2) { |
2dbef272 | 11305 | { |
8edf1c75 | 11306 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
11307 | if (PyErr_Occurred()) SWIG_fail; |
11308 | } | |
d14a1e28 RD |
11309 | } |
11310 | { | |
11311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11312 | (arg1)->Enable(arg2,arg3); | |
11313 | ||
11314 | wxPyEndAllowThreads(__tstate); | |
11315 | if (PyErr_Occurred()) SWIG_fail; | |
11316 | } | |
11317 | Py_INCREF(Py_None); resultobj = Py_None; | |
11318 | return resultobj; | |
11319 | fail: | |
11320 | return NULL; | |
11321 | } | |
11322 | ||
11323 | ||
11324 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11325 | PyObject *resultobj; | |
11326 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11327 | int arg2 ; | |
423f194a | 11328 | bool arg3 = (bool) True ; |
d14a1e28 | 11329 | PyObject * obj0 = 0 ; |
8edf1c75 | 11330 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11331 | PyObject * obj2 = 0 ; |
11332 | char *kwnames[] = { | |
11333 | (char *) "self",(char *) "n",(char *) "show", NULL | |
11334 | }; | |
11335 | ||
8edf1c75 | 11336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11338 | { |
11339 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11340 | if (PyErr_Occurred()) SWIG_fail; | |
11341 | } | |
d14a1e28 | 11342 | if (obj2) { |
2dbef272 | 11343 | { |
8edf1c75 | 11344 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
11345 | if (PyErr_Occurred()) SWIG_fail; |
11346 | } | |
d14a1e28 RD |
11347 | } |
11348 | { | |
11349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11350 | (arg1)->Show(arg2,arg3); | |
11351 | ||
11352 | wxPyEndAllowThreads(__tstate); | |
11353 | if (PyErr_Occurred()) SWIG_fail; | |
11354 | } | |
11355 | Py_INCREF(Py_None); resultobj = Py_None; | |
11356 | return resultobj; | |
11357 | fail: | |
11358 | return NULL; | |
11359 | } | |
11360 | ||
11361 | ||
11362 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11363 | PyObject *resultobj; | |
11364 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11365 | int result; | |
11366 | PyObject * obj0 = 0 ; | |
11367 | char *kwnames[] = { | |
11368 | (char *) "self", NULL | |
11369 | }; | |
11370 | ||
11371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
11372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11373 | { | |
11374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11375 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
11376 | ||
11377 | wxPyEndAllowThreads(__tstate); | |
11378 | if (PyErr_Occurred()) SWIG_fail; | |
11379 | } | |
8edf1c75 | 11380 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11381 | return resultobj; |
11382 | fail: | |
11383 | return NULL; | |
11384 | } | |
11385 | ||
11386 | ||
11387 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11388 | PyObject *resultobj; | |
11389 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11390 | int result; | |
11391 | PyObject * obj0 = 0 ; | |
11392 | char *kwnames[] = { | |
11393 | (char *) "self", NULL | |
11394 | }; | |
11395 | ||
11396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
11397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11398 | { | |
11399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11400 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
11401 | ||
11402 | wxPyEndAllowThreads(__tstate); | |
11403 | if (PyErr_Occurred()) SWIG_fail; | |
11404 | } | |
8edf1c75 | 11405 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11406 | return resultobj; |
11407 | fail: | |
11408 | return NULL; | |
11409 | } | |
11410 | ||
11411 | ||
11412 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11413 | PyObject *resultobj; | |
11414 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11415 | int arg2 ; | |
11416 | int arg3 ; | |
11417 | long arg4 ; | |
11418 | int result; | |
11419 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11420 | PyObject * obj1 = 0 ; |
11421 | PyObject * obj2 = 0 ; | |
11422 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11423 | char *kwnames[] = { |
11424 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
11425 | }; | |
11426 | ||
8edf1c75 | 11427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 11428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11429 | { |
11430 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11431 | if (PyErr_Occurred()) SWIG_fail; | |
11432 | } | |
11433 | { | |
11434 | arg3 = (wxDirection) SWIG_PyObj_AsInt(obj2); | |
11435 | if (PyErr_Occurred()) SWIG_fail; | |
11436 | } | |
11437 | { | |
11438 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
11439 | if (PyErr_Occurred()) SWIG_fail; | |
11440 | } | |
d14a1e28 RD |
11441 | { |
11442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11443 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
11444 | ||
11445 | wxPyEndAllowThreads(__tstate); | |
11446 | if (PyErr_Occurred()) SWIG_fail; | |
11447 | } | |
8edf1c75 | 11448 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11449 | return resultobj; |
11450 | fail: | |
11451 | return NULL; | |
11452 | } | |
11453 | ||
11454 | ||
11455 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
11456 | PyObject *obj; | |
11457 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11458 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
11459 | Py_INCREF(obj); | |
11460 | return Py_BuildValue((char *)""); | |
11461 | } | |
11462 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11463 | PyObject *resultobj; | |
11464 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11465 | int arg2 ; |
d14a1e28 RD |
11466 | wxString *arg3 = 0 ; |
11467 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11468 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11469 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11470 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11471 | long arg6 = (long) 0 ; | |
11472 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11473 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11474 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
11475 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11476 | wxRadioButton *result; | |
423f194a | 11477 | bool temp3 = False ; |
d14a1e28 RD |
11478 | wxPoint temp4 ; |
11479 | wxSize temp5 ; | |
423f194a | 11480 | bool temp8 = False ; |
d14a1e28 | 11481 | PyObject * obj0 = 0 ; |
8edf1c75 | 11482 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11483 | PyObject * obj2 = 0 ; |
11484 | PyObject * obj3 = 0 ; | |
11485 | PyObject * obj4 = 0 ; | |
8edf1c75 | 11486 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11487 | PyObject * obj6 = 0 ; |
11488 | PyObject * obj7 = 0 ; | |
11489 | char *kwnames[] = { | |
11490 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11491 | }; | |
11492 | ||
8edf1c75 | 11493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 11494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11495 | { |
11496 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11497 | if (PyErr_Occurred()) SWIG_fail; | |
11498 | } | |
d14a1e28 RD |
11499 | { |
11500 | arg3 = wxString_in_helper(obj2); | |
11501 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11502 | temp3 = True; |
d14a1e28 RD |
11503 | } |
11504 | if (obj3) { | |
11505 | { | |
11506 | arg4 = &temp4; | |
11507 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11508 | } | |
11509 | } | |
11510 | if (obj4) { | |
11511 | { | |
11512 | arg5 = &temp5; | |
11513 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11514 | } | |
11515 | } | |
8edf1c75 RD |
11516 | if (obj5) { |
11517 | { | |
11518 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
11519 | if (PyErr_Occurred()) SWIG_fail; | |
11520 | } | |
11521 | } | |
d14a1e28 RD |
11522 | if (obj6) { |
11523 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11524 | if (arg7 == NULL) { | |
11525 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11526 | } | |
11527 | } | |
11528 | if (obj7) { | |
11529 | { | |
11530 | arg8 = wxString_in_helper(obj7); | |
11531 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 11532 | temp8 = True; |
d14a1e28 RD |
11533 | } |
11534 | } | |
11535 | { | |
11536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11537 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11538 | ||
11539 | wxPyEndAllowThreads(__tstate); | |
11540 | if (PyErr_Occurred()) SWIG_fail; | |
11541 | } | |
11542 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11543 | { | |
11544 | if (temp3) | |
11545 | delete arg3; | |
11546 | } | |
11547 | { | |
11548 | if (temp8) | |
11549 | delete arg8; | |
11550 | } | |
11551 | return resultobj; | |
11552 | fail: | |
11553 | { | |
11554 | if (temp3) | |
11555 | delete arg3; | |
11556 | } | |
11557 | { | |
11558 | if (temp8) | |
11559 | delete arg8; | |
11560 | } | |
11561 | return NULL; | |
11562 | } | |
11563 | ||
11564 | ||
11565 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11566 | PyObject *resultobj; | |
11567 | wxRadioButton *result; | |
11568 | char *kwnames[] = { | |
11569 | NULL | |
11570 | }; | |
11571 | ||
11572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
11573 | { | |
11574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11575 | result = (wxRadioButton *)new wxRadioButton(); | |
11576 | ||
11577 | wxPyEndAllowThreads(__tstate); | |
11578 | if (PyErr_Occurred()) SWIG_fail; | |
11579 | } | |
11580 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11581 | return resultobj; | |
11582 | fail: | |
11583 | return NULL; | |
11584 | } | |
11585 | ||
11586 | ||
11587 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11588 | PyObject *resultobj; | |
11589 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11590 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11591 | int arg3 ; |
d14a1e28 RD |
11592 | wxString *arg4 = 0 ; |
11593 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11594 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11595 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11596 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11597 | long arg7 = (long) 0 ; | |
11598 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11599 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11600 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
11601 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11602 | bool result; | |
423f194a | 11603 | bool temp4 = False ; |
d14a1e28 RD |
11604 | wxPoint temp5 ; |
11605 | wxSize temp6 ; | |
423f194a | 11606 | bool temp9 = False ; |
d14a1e28 RD |
11607 | PyObject * obj0 = 0 ; |
11608 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11609 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11610 | PyObject * obj3 = 0 ; |
11611 | PyObject * obj4 = 0 ; | |
11612 | PyObject * obj5 = 0 ; | |
8edf1c75 | 11613 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
11614 | PyObject * obj7 = 0 ; |
11615 | PyObject * obj8 = 0 ; | |
11616 | char *kwnames[] = { | |
11617 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11618 | }; | |
11619 | ||
8edf1c75 | 11620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
11621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11622 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
11623 | { |
11624 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11625 | if (PyErr_Occurred()) SWIG_fail; | |
11626 | } | |
d14a1e28 RD |
11627 | { |
11628 | arg4 = wxString_in_helper(obj3); | |
11629 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11630 | temp4 = True; |
d14a1e28 RD |
11631 | } |
11632 | if (obj4) { | |
11633 | { | |
11634 | arg5 = &temp5; | |
11635 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11636 | } | |
11637 | } | |
11638 | if (obj5) { | |
11639 | { | |
11640 | arg6 = &temp6; | |
11641 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11642 | } | |
11643 | } | |
8edf1c75 RD |
11644 | if (obj6) { |
11645 | { | |
11646 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
11647 | if (PyErr_Occurred()) SWIG_fail; | |
11648 | } | |
11649 | } | |
d14a1e28 RD |
11650 | if (obj7) { |
11651 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11652 | if (arg8 == NULL) { | |
11653 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11654 | } | |
11655 | } | |
11656 | if (obj8) { | |
11657 | { | |
11658 | arg9 = wxString_in_helper(obj8); | |
11659 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 11660 | temp9 = True; |
d14a1e28 RD |
11661 | } |
11662 | } | |
11663 | { | |
11664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11665 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11666 | ||
11667 | wxPyEndAllowThreads(__tstate); | |
11668 | if (PyErr_Occurred()) SWIG_fail; | |
11669 | } | |
02a34c4c | 11670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11671 | { |
11672 | if (temp4) | |
11673 | delete arg4; | |
11674 | } | |
11675 | { | |
11676 | if (temp9) | |
11677 | delete arg9; | |
11678 | } | |
11679 | return resultobj; | |
11680 | fail: | |
11681 | { | |
11682 | if (temp4) | |
11683 | delete arg4; | |
11684 | } | |
11685 | { | |
11686 | if (temp9) | |
11687 | delete arg9; | |
11688 | } | |
11689 | return NULL; | |
11690 | } | |
11691 | ||
11692 | ||
11693 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11694 | PyObject *resultobj; | |
11695 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11696 | bool result; | |
11697 | PyObject * obj0 = 0 ; | |
11698 | char *kwnames[] = { | |
11699 | (char *) "self", NULL | |
11700 | }; | |
11701 | ||
11702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
11703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11704 | { | |
11705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11706 | result = (bool)(arg1)->GetValue(); | |
11707 | ||
11708 | wxPyEndAllowThreads(__tstate); | |
11709 | if (PyErr_Occurred()) SWIG_fail; | |
11710 | } | |
02a34c4c | 11711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11712 | return resultobj; |
11713 | fail: | |
11714 | return NULL; | |
11715 | } | |
11716 | ||
11717 | ||
11718 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11719 | PyObject *resultobj; | |
11720 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11721 | bool arg2 ; | |
11722 | PyObject * obj0 = 0 ; | |
11723 | PyObject * obj1 = 0 ; | |
11724 | char *kwnames[] = { | |
11725 | (char *) "self",(char *) "value", NULL | |
11726 | }; | |
11727 | ||
11728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 11730 | { |
8edf1c75 | 11731 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
11732 | if (PyErr_Occurred()) SWIG_fail; |
11733 | } | |
d14a1e28 RD |
11734 | { |
11735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11736 | (arg1)->SetValue(arg2); | |
11737 | ||
11738 | wxPyEndAllowThreads(__tstate); | |
11739 | if (PyErr_Occurred()) SWIG_fail; | |
11740 | } | |
11741 | Py_INCREF(Py_None); resultobj = Py_None; | |
11742 | return resultobj; | |
11743 | fail: | |
11744 | return NULL; | |
11745 | } | |
11746 | ||
11747 | ||
11748 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
11749 | PyObject *obj; | |
11750 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11751 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
11752 | Py_INCREF(obj); | |
11753 | return Py_BuildValue((char *)""); | |
11754 | } | |
8edf1c75 | 11755 | static int _wrap_SliderNameStr_set(PyObject *) { |
cbd72d4f RD |
11756 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
11757 | return 1; | |
11758 | } | |
11759 | ||
11760 | ||
11761 | static PyObject *_wrap_SliderNameStr_get() { | |
11762 | PyObject *pyobj; | |
11763 | ||
11764 | { | |
11765 | #if wxUSE_UNICODE | |
11766 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11767 | #else | |
11768 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11769 | #endif | |
11770 | } | |
11771 | return pyobj; | |
11772 | } | |
11773 | ||
11774 | ||
d14a1e28 RD |
11775 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
11776 | PyObject *resultobj; | |
11777 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11778 | int arg2 ; |
d14a1e28 RD |
11779 | int arg3 ; |
11780 | int arg4 ; | |
11781 | int arg5 ; | |
11782 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
11783 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
11784 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
11785 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
11786 | long arg8 = (long) wxSL_HORIZONTAL ; | |
11787 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11788 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11789 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
11790 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11791 | wxSlider *result; | |
11792 | wxPoint temp6 ; | |
11793 | wxSize temp7 ; | |
423f194a | 11794 | bool temp10 = False ; |
d14a1e28 | 11795 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11796 | PyObject * obj1 = 0 ; |
11797 | PyObject * obj2 = 0 ; | |
11798 | PyObject * obj3 = 0 ; | |
11799 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11800 | PyObject * obj5 = 0 ; |
11801 | PyObject * obj6 = 0 ; | |
8edf1c75 | 11802 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
11803 | PyObject * obj8 = 0 ; |
11804 | PyObject * obj9 = 0 ; | |
11805 | char *kwnames[] = { | |
8edf1c75 | 11806 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11807 | }; |
11808 | ||
8edf1c75 | 11809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 11810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11811 | { |
11812 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11813 | if (PyErr_Occurred()) SWIG_fail; | |
11814 | } | |
11815 | { | |
11816 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11817 | if (PyErr_Occurred()) SWIG_fail; | |
11818 | } | |
11819 | { | |
11820 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11821 | if (PyErr_Occurred()) SWIG_fail; | |
11822 | } | |
11823 | { | |
11824 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11825 | if (PyErr_Occurred()) SWIG_fail; | |
11826 | } | |
d14a1e28 RD |
11827 | if (obj5) { |
11828 | { | |
11829 | arg6 = &temp6; | |
11830 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
11831 | } | |
11832 | } | |
11833 | if (obj6) { | |
11834 | { | |
11835 | arg7 = &temp7; | |
11836 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
11837 | } | |
11838 | } | |
8edf1c75 RD |
11839 | if (obj7) { |
11840 | { | |
11841 | arg8 = (long) SWIG_PyObj_AsLong(obj7); | |
11842 | if (PyErr_Occurred()) SWIG_fail; | |
11843 | } | |
11844 | } | |
d14a1e28 RD |
11845 | if (obj8) { |
11846 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11847 | if (arg9 == NULL) { | |
11848 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11849 | } | |
11850 | } | |
11851 | if (obj9) { | |
11852 | { | |
11853 | arg10 = wxString_in_helper(obj9); | |
11854 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 11855 | temp10 = True; |
d14a1e28 RD |
11856 | } |
11857 | } | |
11858 | { | |
11859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11860 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
11861 | ||
11862 | wxPyEndAllowThreads(__tstate); | |
11863 | if (PyErr_Occurred()) SWIG_fail; | |
11864 | } | |
11865 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
11866 | { | |
11867 | if (temp10) | |
11868 | delete arg10; | |
11869 | } | |
11870 | return resultobj; | |
11871 | fail: | |
11872 | { | |
11873 | if (temp10) | |
11874 | delete arg10; | |
11875 | } | |
11876 | return NULL; | |
11877 | } | |
11878 | ||
11879 | ||
11880 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11881 | PyObject *resultobj; | |
11882 | wxSlider *result; | |
11883 | char *kwnames[] = { | |
11884 | NULL | |
11885 | }; | |
11886 | ||
11887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
11888 | { | |
11889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11890 | result = (wxSlider *)new wxSlider(); | |
11891 | ||
11892 | wxPyEndAllowThreads(__tstate); | |
11893 | if (PyErr_Occurred()) SWIG_fail; | |
11894 | } | |
11895 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
11896 | return resultobj; | |
11897 | fail: | |
11898 | return NULL; | |
11899 | } | |
11900 | ||
11901 | ||
11902 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11903 | PyObject *resultobj; | |
11904 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11905 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11906 | int arg3 ; |
d14a1e28 RD |
11907 | int arg4 ; |
11908 | int arg5 ; | |
11909 | int arg6 ; | |
11910 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11911 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11912 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
11913 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
11914 | long arg9 = (long) wxSL_HORIZONTAL ; | |
11915 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11916 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11917 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
11918 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11919 | bool result; | |
11920 | wxPoint temp7 ; | |
11921 | wxSize temp8 ; | |
423f194a | 11922 | bool temp11 = False ; |
d14a1e28 RD |
11923 | PyObject * obj0 = 0 ; |
11924 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11925 | PyObject * obj2 = 0 ; |
11926 | PyObject * obj3 = 0 ; | |
11927 | PyObject * obj4 = 0 ; | |
11928 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11929 | PyObject * obj6 = 0 ; |
11930 | PyObject * obj7 = 0 ; | |
8edf1c75 | 11931 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
11932 | PyObject * obj9 = 0 ; |
11933 | PyObject * obj10 = 0 ; | |
11934 | char *kwnames[] = { | |
8edf1c75 | 11935 | (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 |
11936 | }; |
11937 | ||
8edf1c75 | 11938 | 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 |
11939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11940 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
11941 | { |
11942 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11943 | if (PyErr_Occurred()) SWIG_fail; | |
11944 | } | |
11945 | { | |
11946 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11947 | if (PyErr_Occurred()) SWIG_fail; | |
11948 | } | |
11949 | { | |
11950 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11951 | if (PyErr_Occurred()) SWIG_fail; | |
11952 | } | |
11953 | { | |
11954 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
11955 | if (PyErr_Occurred()) SWIG_fail; | |
11956 | } | |
d14a1e28 RD |
11957 | if (obj6) { |
11958 | { | |
11959 | arg7 = &temp7; | |
11960 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
11961 | } | |
11962 | } | |
11963 | if (obj7) { | |
11964 | { | |
11965 | arg8 = &temp8; | |
11966 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
11967 | } | |
11968 | } | |
8edf1c75 RD |
11969 | if (obj8) { |
11970 | { | |
11971 | arg9 = (long) SWIG_PyObj_AsLong(obj8); | |
11972 | if (PyErr_Occurred()) SWIG_fail; | |
11973 | } | |
11974 | } | |
d14a1e28 RD |
11975 | if (obj9) { |
11976 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11977 | if (arg10 == NULL) { | |
11978 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11979 | } | |
11980 | } | |
11981 | if (obj10) { | |
11982 | { | |
11983 | arg11 = wxString_in_helper(obj10); | |
11984 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 11985 | temp11 = True; |
d14a1e28 RD |
11986 | } |
11987 | } | |
11988 | { | |
11989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11990 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
11991 | ||
11992 | wxPyEndAllowThreads(__tstate); | |
11993 | if (PyErr_Occurred()) SWIG_fail; | |
11994 | } | |
02a34c4c | 11995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11996 | { |
11997 | if (temp11) | |
11998 | delete arg11; | |
11999 | } | |
12000 | return resultobj; | |
12001 | fail: | |
12002 | { | |
12003 | if (temp11) | |
12004 | delete arg11; | |
12005 | } | |
12006 | return NULL; | |
12007 | } | |
12008 | ||
12009 | ||
12010 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12011 | PyObject *resultobj; | |
12012 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12013 | int result; | |
12014 | PyObject * obj0 = 0 ; | |
12015 | char *kwnames[] = { | |
12016 | (char *) "self", NULL | |
12017 | }; | |
12018 | ||
12019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
12020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12021 | { | |
12022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12023 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
12024 | ||
12025 | wxPyEndAllowThreads(__tstate); | |
12026 | if (PyErr_Occurred()) SWIG_fail; | |
12027 | } | |
8edf1c75 | 12028 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12029 | return resultobj; |
12030 | fail: | |
12031 | return NULL; | |
12032 | } | |
12033 | ||
12034 | ||
12035 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12036 | PyObject *resultobj; | |
12037 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12038 | int arg2 ; | |
12039 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12040 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12041 | char *kwnames[] = { |
12042 | (char *) "self",(char *) "value", NULL | |
12043 | }; | |
12044 | ||
8edf1c75 | 12045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12047 | { |
12048 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12049 | if (PyErr_Occurred()) SWIG_fail; | |
12050 | } | |
d14a1e28 RD |
12051 | { |
12052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12053 | (arg1)->SetValue(arg2); | |
12054 | ||
12055 | wxPyEndAllowThreads(__tstate); | |
12056 | if (PyErr_Occurred()) SWIG_fail; | |
12057 | } | |
12058 | Py_INCREF(Py_None); resultobj = Py_None; | |
12059 | return resultobj; | |
12060 | fail: | |
12061 | return NULL; | |
12062 | } | |
12063 | ||
12064 | ||
12065 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12066 | PyObject *resultobj; | |
12067 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12068 | int arg2 ; | |
12069 | int arg3 ; | |
12070 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12071 | PyObject * obj1 = 0 ; |
12072 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12073 | char *kwnames[] = { |
12074 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
12075 | }; | |
12076 | ||
8edf1c75 | 12077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12079 | { |
12080 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12081 | if (PyErr_Occurred()) SWIG_fail; | |
12082 | } | |
12083 | { | |
12084 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12085 | if (PyErr_Occurred()) SWIG_fail; | |
12086 | } | |
d14a1e28 RD |
12087 | { |
12088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12089 | (arg1)->SetRange(arg2,arg3); | |
12090 | ||
12091 | wxPyEndAllowThreads(__tstate); | |
12092 | if (PyErr_Occurred()) SWIG_fail; | |
12093 | } | |
12094 | Py_INCREF(Py_None); resultobj = Py_None; | |
12095 | return resultobj; | |
12096 | fail: | |
12097 | return NULL; | |
12098 | } | |
12099 | ||
12100 | ||
12101 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12102 | PyObject *resultobj; | |
12103 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12104 | int result; | |
12105 | PyObject * obj0 = 0 ; | |
12106 | char *kwnames[] = { | |
12107 | (char *) "self", NULL | |
12108 | }; | |
12109 | ||
12110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
12111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12112 | { | |
12113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12114 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
12115 | ||
12116 | wxPyEndAllowThreads(__tstate); | |
12117 | if (PyErr_Occurred()) SWIG_fail; | |
12118 | } | |
8edf1c75 | 12119 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12120 | return resultobj; |
12121 | fail: | |
12122 | return NULL; | |
12123 | } | |
12124 | ||
12125 | ||
12126 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12127 | PyObject *resultobj; | |
12128 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12129 | int result; | |
12130 | PyObject * obj0 = 0 ; | |
12131 | char *kwnames[] = { | |
12132 | (char *) "self", NULL | |
12133 | }; | |
12134 | ||
12135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
12136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12137 | { | |
12138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12139 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
12140 | ||
12141 | wxPyEndAllowThreads(__tstate); | |
12142 | if (PyErr_Occurred()) SWIG_fail; | |
12143 | } | |
8edf1c75 | 12144 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12145 | return resultobj; |
12146 | fail: | |
12147 | return NULL; | |
12148 | } | |
12149 | ||
12150 | ||
12151 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12152 | PyObject *resultobj; | |
12153 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12154 | int arg2 ; | |
12155 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12156 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12157 | char *kwnames[] = { |
12158 | (char *) "self",(char *) "minValue", NULL | |
12159 | }; | |
12160 | ||
8edf1c75 | 12161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12163 | { |
12164 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12165 | if (PyErr_Occurred()) SWIG_fail; | |
12166 | } | |
d14a1e28 RD |
12167 | { |
12168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12169 | (arg1)->SetMin(arg2); | |
12170 | ||
12171 | wxPyEndAllowThreads(__tstate); | |
12172 | if (PyErr_Occurred()) SWIG_fail; | |
12173 | } | |
12174 | Py_INCREF(Py_None); resultobj = Py_None; | |
12175 | return resultobj; | |
12176 | fail: | |
12177 | return NULL; | |
12178 | } | |
12179 | ||
12180 | ||
12181 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12182 | PyObject *resultobj; | |
12183 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12184 | int arg2 ; | |
12185 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12186 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12187 | char *kwnames[] = { |
12188 | (char *) "self",(char *) "maxValue", NULL | |
12189 | }; | |
12190 | ||
8edf1c75 | 12191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12193 | { |
12194 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12195 | if (PyErr_Occurred()) SWIG_fail; | |
12196 | } | |
d14a1e28 RD |
12197 | { |
12198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12199 | (arg1)->SetMax(arg2); | |
12200 | ||
12201 | wxPyEndAllowThreads(__tstate); | |
12202 | if (PyErr_Occurred()) SWIG_fail; | |
12203 | } | |
12204 | Py_INCREF(Py_None); resultobj = Py_None; | |
12205 | return resultobj; | |
12206 | fail: | |
12207 | return NULL; | |
12208 | } | |
12209 | ||
12210 | ||
12211 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12212 | PyObject *resultobj; | |
12213 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12214 | int arg2 ; | |
12215 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12216 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12217 | char *kwnames[] = { |
12218 | (char *) "self",(char *) "lineSize", NULL | |
12219 | }; | |
12220 | ||
8edf1c75 | 12221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12223 | { |
12224 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12225 | if (PyErr_Occurred()) SWIG_fail; | |
12226 | } | |
d14a1e28 RD |
12227 | { |
12228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12229 | (arg1)->SetLineSize(arg2); | |
12230 | ||
12231 | wxPyEndAllowThreads(__tstate); | |
12232 | if (PyErr_Occurred()) SWIG_fail; | |
12233 | } | |
12234 | Py_INCREF(Py_None); resultobj = Py_None; | |
12235 | return resultobj; | |
12236 | fail: | |
12237 | return NULL; | |
12238 | } | |
12239 | ||
12240 | ||
12241 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12242 | PyObject *resultobj; | |
12243 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12244 | int arg2 ; | |
12245 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12246 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12247 | char *kwnames[] = { |
12248 | (char *) "self",(char *) "pageSize", NULL | |
12249 | }; | |
12250 | ||
8edf1c75 | 12251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12253 | { |
12254 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12255 | if (PyErr_Occurred()) SWIG_fail; | |
12256 | } | |
d14a1e28 RD |
12257 | { |
12258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12259 | (arg1)->SetPageSize(arg2); | |
12260 | ||
12261 | wxPyEndAllowThreads(__tstate); | |
12262 | if (PyErr_Occurred()) SWIG_fail; | |
12263 | } | |
12264 | Py_INCREF(Py_None); resultobj = Py_None; | |
12265 | return resultobj; | |
12266 | fail: | |
12267 | return NULL; | |
12268 | } | |
12269 | ||
12270 | ||
12271 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12272 | PyObject *resultobj; | |
12273 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12274 | int result; | |
12275 | PyObject * obj0 = 0 ; | |
12276 | char *kwnames[] = { | |
12277 | (char *) "self", NULL | |
12278 | }; | |
12279 | ||
12280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
12281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12282 | { | |
12283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12284 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
12285 | ||
12286 | wxPyEndAllowThreads(__tstate); | |
12287 | if (PyErr_Occurred()) SWIG_fail; | |
12288 | } | |
8edf1c75 | 12289 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12290 | return resultobj; |
12291 | fail: | |
12292 | return NULL; | |
12293 | } | |
12294 | ||
12295 | ||
12296 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12297 | PyObject *resultobj; | |
12298 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12299 | int result; | |
12300 | PyObject * obj0 = 0 ; | |
12301 | char *kwnames[] = { | |
12302 | (char *) "self", NULL | |
12303 | }; | |
12304 | ||
12305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
12306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12307 | { | |
12308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12309 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
12310 | ||
12311 | wxPyEndAllowThreads(__tstate); | |
12312 | if (PyErr_Occurred()) SWIG_fail; | |
12313 | } | |
8edf1c75 | 12314 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12315 | return resultobj; |
12316 | fail: | |
12317 | return NULL; | |
12318 | } | |
12319 | ||
12320 | ||
12321 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12322 | PyObject *resultobj; | |
12323 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12324 | int arg2 ; | |
12325 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12326 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12327 | char *kwnames[] = { |
12328 | (char *) "self",(char *) "lenPixels", NULL | |
12329 | }; | |
12330 | ||
8edf1c75 | 12331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12333 | { |
12334 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12335 | if (PyErr_Occurred()) SWIG_fail; | |
12336 | } | |
d14a1e28 RD |
12337 | { |
12338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12339 | (arg1)->SetThumbLength(arg2); | |
12340 | ||
12341 | wxPyEndAllowThreads(__tstate); | |
12342 | if (PyErr_Occurred()) SWIG_fail; | |
12343 | } | |
12344 | Py_INCREF(Py_None); resultobj = Py_None; | |
12345 | return resultobj; | |
12346 | fail: | |
12347 | return NULL; | |
12348 | } | |
12349 | ||
12350 | ||
12351 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12352 | PyObject *resultobj; | |
12353 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12354 | int result; | |
12355 | PyObject * obj0 = 0 ; | |
12356 | char *kwnames[] = { | |
12357 | (char *) "self", NULL | |
12358 | }; | |
12359 | ||
12360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
12361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12362 | { | |
12363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12364 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
12365 | ||
12366 | wxPyEndAllowThreads(__tstate); | |
12367 | if (PyErr_Occurred()) SWIG_fail; | |
12368 | } | |
8edf1c75 | 12369 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12370 | return resultobj; |
12371 | fail: | |
12372 | return NULL; | |
12373 | } | |
12374 | ||
12375 | ||
12376 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12377 | PyObject *resultobj; | |
12378 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12379 | int arg2 ; | |
8edf1c75 | 12380 | int arg3 = (int) 1 ; |
d14a1e28 | 12381 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12382 | PyObject * obj1 = 0 ; |
12383 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12384 | char *kwnames[] = { |
12385 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
12386 | }; | |
12387 | ||
8edf1c75 | 12388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12390 | { |
12391 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12392 | if (PyErr_Occurred()) SWIG_fail; | |
12393 | } | |
12394 | if (obj2) { | |
12395 | { | |
12396 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12397 | if (PyErr_Occurred()) SWIG_fail; | |
12398 | } | |
12399 | } | |
d14a1e28 RD |
12400 | { |
12401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12402 | (arg1)->SetTickFreq(arg2,arg3); | |
12403 | ||
12404 | wxPyEndAllowThreads(__tstate); | |
12405 | if (PyErr_Occurred()) SWIG_fail; | |
12406 | } | |
12407 | Py_INCREF(Py_None); resultobj = Py_None; | |
12408 | return resultobj; | |
12409 | fail: | |
12410 | return NULL; | |
12411 | } | |
12412 | ||
12413 | ||
12414 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12415 | PyObject *resultobj; | |
12416 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12417 | int result; | |
12418 | PyObject * obj0 = 0 ; | |
12419 | char *kwnames[] = { | |
12420 | (char *) "self", NULL | |
12421 | }; | |
12422 | ||
12423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
12424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12425 | { | |
12426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12427 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
12428 | ||
12429 | wxPyEndAllowThreads(__tstate); | |
12430 | if (PyErr_Occurred()) SWIG_fail; | |
12431 | } | |
8edf1c75 | 12432 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12433 | return resultobj; |
12434 | fail: | |
12435 | return NULL; | |
12436 | } | |
12437 | ||
12438 | ||
12439 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12440 | PyObject *resultobj; | |
12441 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12442 | PyObject * obj0 = 0 ; | |
12443 | char *kwnames[] = { | |
12444 | (char *) "self", NULL | |
12445 | }; | |
12446 | ||
12447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
12448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12449 | { | |
12450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12451 | (arg1)->ClearTicks(); | |
12452 | ||
12453 | wxPyEndAllowThreads(__tstate); | |
12454 | if (PyErr_Occurred()) SWIG_fail; | |
12455 | } | |
12456 | Py_INCREF(Py_None); resultobj = Py_None; | |
12457 | return resultobj; | |
12458 | fail: | |
12459 | return NULL; | |
12460 | } | |
12461 | ||
12462 | ||
12463 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12464 | PyObject *resultobj; | |
12465 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12466 | int arg2 ; | |
12467 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12468 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12469 | char *kwnames[] = { |
12470 | (char *) "self",(char *) "tickPos", NULL | |
12471 | }; | |
12472 | ||
8edf1c75 | 12473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12475 | { |
12476 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12477 | if (PyErr_Occurred()) SWIG_fail; | |
12478 | } | |
d14a1e28 RD |
12479 | { |
12480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12481 | (arg1)->SetTick(arg2); | |
12482 | ||
12483 | wxPyEndAllowThreads(__tstate); | |
12484 | if (PyErr_Occurred()) SWIG_fail; | |
12485 | } | |
12486 | Py_INCREF(Py_None); resultobj = Py_None; | |
12487 | return resultobj; | |
12488 | fail: | |
12489 | return NULL; | |
12490 | } | |
12491 | ||
12492 | ||
12493 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12494 | PyObject *resultobj; | |
12495 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12496 | PyObject * obj0 = 0 ; | |
12497 | char *kwnames[] = { | |
12498 | (char *) "self", NULL | |
12499 | }; | |
12500 | ||
12501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
12502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12503 | { | |
12504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12505 | (arg1)->ClearSel(); | |
12506 | ||
12507 | wxPyEndAllowThreads(__tstate); | |
12508 | if (PyErr_Occurred()) SWIG_fail; | |
12509 | } | |
12510 | Py_INCREF(Py_None); resultobj = Py_None; | |
12511 | return resultobj; | |
12512 | fail: | |
12513 | return NULL; | |
12514 | } | |
12515 | ||
12516 | ||
12517 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12518 | PyObject *resultobj; | |
12519 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12520 | int result; | |
12521 | PyObject * obj0 = 0 ; | |
12522 | char *kwnames[] = { | |
12523 | (char *) "self", NULL | |
12524 | }; | |
12525 | ||
12526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
12527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12528 | { | |
12529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12530 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
12531 | ||
12532 | wxPyEndAllowThreads(__tstate); | |
12533 | if (PyErr_Occurred()) SWIG_fail; | |
12534 | } | |
8edf1c75 | 12535 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12536 | return resultobj; |
12537 | fail: | |
12538 | return NULL; | |
12539 | } | |
12540 | ||
12541 | ||
12542 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12543 | PyObject *resultobj; | |
12544 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12545 | int result; | |
12546 | PyObject * obj0 = 0 ; | |
12547 | char *kwnames[] = { | |
12548 | (char *) "self", NULL | |
12549 | }; | |
12550 | ||
12551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
12552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12553 | { | |
12554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12555 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
12556 | ||
12557 | wxPyEndAllowThreads(__tstate); | |
12558 | if (PyErr_Occurred()) SWIG_fail; | |
12559 | } | |
8edf1c75 | 12560 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12561 | return resultobj; |
12562 | fail: | |
12563 | return NULL; | |
12564 | } | |
12565 | ||
12566 | ||
12567 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12568 | PyObject *resultobj; | |
12569 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12570 | int arg2 ; | |
12571 | int arg3 ; | |
12572 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12573 | PyObject * obj1 = 0 ; |
12574 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12575 | char *kwnames[] = { |
12576 | (char *) "self",(char *) "min",(char *) "max", NULL | |
12577 | }; | |
12578 | ||
8edf1c75 | 12579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12581 | { |
12582 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12583 | if (PyErr_Occurred()) SWIG_fail; | |
12584 | } | |
12585 | { | |
12586 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12587 | if (PyErr_Occurred()) SWIG_fail; | |
12588 | } | |
d14a1e28 RD |
12589 | { |
12590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12591 | (arg1)->SetSelection(arg2,arg3); | |
12592 | ||
12593 | wxPyEndAllowThreads(__tstate); | |
12594 | if (PyErr_Occurred()) SWIG_fail; | |
12595 | } | |
12596 | Py_INCREF(Py_None); resultobj = Py_None; | |
12597 | return resultobj; | |
12598 | fail: | |
12599 | return NULL; | |
12600 | } | |
12601 | ||
12602 | ||
12603 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
12604 | PyObject *obj; | |
12605 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12606 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
12607 | Py_INCREF(obj); | |
12608 | return Py_BuildValue((char *)""); | |
12609 | } | |
8edf1c75 | 12610 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
cbd72d4f RD |
12611 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
12612 | return 1; | |
12613 | } | |
12614 | ||
12615 | ||
12616 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
12617 | PyObject *pyobj; | |
12618 | ||
12619 | { | |
12620 | #if wxUSE_UNICODE | |
12621 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12622 | #else | |
12623 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12624 | #endif | |
12625 | } | |
12626 | return pyobj; | |
12627 | } | |
12628 | ||
12629 | ||
d14a1e28 RD |
12630 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
12631 | PyObject *resultobj; | |
12632 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 12633 | int arg2 ; |
d14a1e28 RD |
12634 | wxString *arg3 = 0 ; |
12635 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12636 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12637 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12638 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12639 | long arg6 = (long) 0 ; | |
12640 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12641 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12642 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
12643 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12644 | wxToggleButton *result; | |
423f194a | 12645 | bool temp3 = False ; |
d14a1e28 RD |
12646 | wxPoint temp4 ; |
12647 | wxSize temp5 ; | |
423f194a | 12648 | bool temp8 = False ; |
d14a1e28 | 12649 | PyObject * obj0 = 0 ; |
8edf1c75 | 12650 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12651 | PyObject * obj2 = 0 ; |
12652 | PyObject * obj3 = 0 ; | |
12653 | PyObject * obj4 = 0 ; | |
8edf1c75 | 12654 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12655 | PyObject * obj6 = 0 ; |
12656 | PyObject * obj7 = 0 ; | |
12657 | char *kwnames[] = { | |
12658 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12659 | }; | |
12660 | ||
8edf1c75 | 12661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 12662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12663 | { |
12664 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12665 | if (PyErr_Occurred()) SWIG_fail; | |
12666 | } | |
d14a1e28 RD |
12667 | { |
12668 | arg3 = wxString_in_helper(obj2); | |
12669 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12670 | temp3 = True; |
d14a1e28 RD |
12671 | } |
12672 | if (obj3) { | |
12673 | { | |
12674 | arg4 = &temp4; | |
12675 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12676 | } | |
12677 | } | |
12678 | if (obj4) { | |
12679 | { | |
12680 | arg5 = &temp5; | |
12681 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12682 | } | |
12683 | } | |
8edf1c75 RD |
12684 | if (obj5) { |
12685 | { | |
12686 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
12687 | if (PyErr_Occurred()) SWIG_fail; | |
12688 | } | |
12689 | } | |
d14a1e28 RD |
12690 | if (obj6) { |
12691 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12692 | if (arg7 == NULL) { | |
12693 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12694 | } | |
12695 | } | |
12696 | if (obj7) { | |
12697 | { | |
12698 | arg8 = wxString_in_helper(obj7); | |
12699 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 12700 | temp8 = True; |
d14a1e28 RD |
12701 | } |
12702 | } | |
12703 | { | |
12704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12705 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12706 | ||
12707 | wxPyEndAllowThreads(__tstate); | |
12708 | if (PyErr_Occurred()) SWIG_fail; | |
12709 | } | |
12710 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12711 | { | |
12712 | if (temp3) | |
12713 | delete arg3; | |
12714 | } | |
12715 | { | |
12716 | if (temp8) | |
12717 | delete arg8; | |
12718 | } | |
12719 | return resultobj; | |
12720 | fail: | |
12721 | { | |
12722 | if (temp3) | |
12723 | delete arg3; | |
12724 | } | |
12725 | { | |
12726 | if (temp8) | |
12727 | delete arg8; | |
12728 | } | |
12729 | return NULL; | |
12730 | } | |
12731 | ||
12732 | ||
12733 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12734 | PyObject *resultobj; | |
12735 | wxToggleButton *result; | |
12736 | char *kwnames[] = { | |
12737 | NULL | |
12738 | }; | |
12739 | ||
12740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
12741 | { | |
12742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12743 | result = (wxToggleButton *)new wxToggleButton(); | |
12744 | ||
12745 | wxPyEndAllowThreads(__tstate); | |
12746 | if (PyErr_Occurred()) SWIG_fail; | |
12747 | } | |
12748 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12749 | return resultobj; | |
12750 | fail: | |
12751 | return NULL; | |
12752 | } | |
12753 | ||
12754 | ||
12755 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
12756 | PyObject *obj; | |
12757 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12758 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
12759 | Py_INCREF(obj); | |
12760 | return Py_BuildValue((char *)""); | |
12761 | } | |
8edf1c75 | 12762 | static int _wrap_NOTEBOOK_NAME_set(PyObject *) { |
cbd72d4f RD |
12763 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); |
12764 | return 1; | |
12765 | } | |
12766 | ||
12767 | ||
12768 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
12769 | PyObject *pyobj; | |
12770 | ||
12771 | { | |
12772 | #if wxUSE_UNICODE | |
12773 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
12774 | #else | |
12775 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
12776 | #endif | |
12777 | } | |
12778 | return pyobj; | |
12779 | } | |
12780 | ||
12781 | ||
d14a1e28 RD |
12782 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
12783 | PyObject *resultobj; | |
12784 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12785 | size_t result; | |
12786 | PyObject * obj0 = 0 ; | |
12787 | char *kwnames[] = { | |
12788 | (char *) "self", NULL | |
12789 | }; | |
12790 | ||
12791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
12792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12793 | { | |
12794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12795 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
12796 | ||
12797 | wxPyEndAllowThreads(__tstate); | |
12798 | if (PyErr_Occurred()) SWIG_fail; | |
12799 | } | |
8edf1c75 | 12800 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
12801 | return resultobj; |
12802 | fail: | |
12803 | return NULL; | |
12804 | } | |
12805 | ||
12806 | ||
12807 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12808 | PyObject *resultobj; | |
12809 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12810 | size_t arg2 ; | |
12811 | wxWindow *result; | |
12812 | PyObject * obj0 = 0 ; | |
12813 | PyObject * obj1 = 0 ; | |
12814 | char *kwnames[] = { | |
12815 | (char *) "self",(char *) "n", NULL | |
12816 | }; | |
12817 | ||
12818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
12819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 12820 | { |
8edf1c75 | 12821 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
12822 | if (PyErr_Occurred()) SWIG_fail; |
12823 | } | |
d14a1e28 RD |
12824 | { |
12825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12826 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
12827 | ||
12828 | wxPyEndAllowThreads(__tstate); | |
12829 | if (PyErr_Occurred()) SWIG_fail; | |
12830 | } | |
12831 | { | |
12832 | resultobj = wxPyMake_wxObject(result); | |
12833 | } | |
12834 | return resultobj; | |
12835 | fail: | |
12836 | return NULL; | |
12837 | } | |
12838 | ||
12839 | ||
12840 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12841 | PyObject *resultobj; | |
12842 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12843 | int result; | |
12844 | PyObject * obj0 = 0 ; | |
12845 | char *kwnames[] = { | |
12846 | (char *) "self", NULL | |
12847 | }; | |
12848 | ||
12849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
12850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12851 | { | |
12852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12853 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
12854 | ||
12855 | wxPyEndAllowThreads(__tstate); | |
12856 | if (PyErr_Occurred()) SWIG_fail; | |
12857 | } | |
8edf1c75 | 12858 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12859 | return resultobj; |
12860 | fail: | |
12861 | return NULL; | |
12862 | } | |
12863 | ||
12864 | ||
12865 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12866 | PyObject *resultobj; | |
12867 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12868 | size_t arg2 ; | |
12869 | wxString *arg3 = 0 ; | |
12870 | bool result; | |
423f194a | 12871 | bool temp3 = False ; |
d14a1e28 RD |
12872 | PyObject * obj0 = 0 ; |
12873 | PyObject * obj1 = 0 ; | |
12874 | PyObject * obj2 = 0 ; | |
12875 | char *kwnames[] = { | |
12876 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
12877 | }; | |
12878 | ||
12879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 12881 | { |
8edf1c75 | 12882 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
12883 | if (PyErr_Occurred()) SWIG_fail; |
12884 | } | |
d14a1e28 RD |
12885 | { |
12886 | arg3 = wxString_in_helper(obj2); | |
12887 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12888 | temp3 = True; |
d14a1e28 RD |
12889 | } |
12890 | { | |
12891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12892 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
12893 | ||
12894 | wxPyEndAllowThreads(__tstate); | |
12895 | if (PyErr_Occurred()) SWIG_fail; | |
12896 | } | |
02a34c4c | 12897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12898 | { |
12899 | if (temp3) | |
12900 | delete arg3; | |
12901 | } | |
12902 | return resultobj; | |
12903 | fail: | |
12904 | { | |
12905 | if (temp3) | |
12906 | delete arg3; | |
12907 | } | |
12908 | return NULL; | |
12909 | } | |
12910 | ||
12911 | ||
12912 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12913 | PyObject *resultobj; | |
12914 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12915 | size_t arg2 ; | |
12916 | wxString result; | |
12917 | PyObject * obj0 = 0 ; | |
12918 | PyObject * obj1 = 0 ; | |
12919 | char *kwnames[] = { | |
12920 | (char *) "self",(char *) "n", NULL | |
12921 | }; | |
12922 | ||
12923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
12924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 12925 | { |
8edf1c75 | 12926 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
12927 | if (PyErr_Occurred()) SWIG_fail; |
12928 | } | |
d14a1e28 RD |
12929 | { |
12930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12931 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
12932 | ||
12933 | wxPyEndAllowThreads(__tstate); | |
12934 | if (PyErr_Occurred()) SWIG_fail; | |
12935 | } | |
12936 | { | |
12937 | #if wxUSE_UNICODE | |
12938 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12939 | #else | |
12940 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12941 | #endif | |
12942 | } | |
12943 | return resultobj; | |
12944 | fail: | |
12945 | return NULL; | |
12946 | } | |
12947 | ||
12948 | ||
12949 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12950 | PyObject *resultobj; | |
12951 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12952 | wxImageList *arg2 = (wxImageList *) 0 ; | |
12953 | PyObject * obj0 = 0 ; | |
12954 | PyObject * obj1 = 0 ; | |
12955 | char *kwnames[] = { | |
12956 | (char *) "self",(char *) "imageList", NULL | |
12957 | }; | |
12958 | ||
12959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
12960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12961 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12962 | { | |
12963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12964 | (arg1)->SetImageList(arg2); | |
12965 | ||
12966 | wxPyEndAllowThreads(__tstate); | |
12967 | if (PyErr_Occurred()) SWIG_fail; | |
12968 | } | |
12969 | Py_INCREF(Py_None); resultobj = Py_None; | |
12970 | return resultobj; | |
12971 | fail: | |
12972 | return NULL; | |
12973 | } | |
12974 | ||
12975 | ||
12976 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12977 | PyObject *resultobj; | |
12978 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12979 | wxImageList *arg2 = (wxImageList *) 0 ; | |
12980 | PyObject * obj0 = 0 ; | |
12981 | PyObject * obj1 = 0 ; | |
12982 | char *kwnames[] = { | |
12983 | (char *) "self",(char *) "imageList", NULL | |
12984 | }; | |
12985 | ||
12986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
12987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 12988 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
12989 | { |
12990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12991 | (arg1)->AssignImageList(arg2); | |
12992 | ||
12993 | wxPyEndAllowThreads(__tstate); | |
12994 | if (PyErr_Occurred()) SWIG_fail; | |
12995 | } | |
12996 | Py_INCREF(Py_None); resultobj = Py_None; | |
12997 | return resultobj; | |
12998 | fail: | |
12999 | return NULL; | |
13000 | } | |
13001 | ||
13002 | ||
13003 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13004 | PyObject *resultobj; | |
13005 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13006 | wxImageList *result; | |
13007 | PyObject * obj0 = 0 ; | |
13008 | char *kwnames[] = { | |
13009 | (char *) "self", NULL | |
13010 | }; | |
13011 | ||
13012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
13013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13014 | { | |
13015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13016 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
13017 | ||
13018 | wxPyEndAllowThreads(__tstate); | |
13019 | if (PyErr_Occurred()) SWIG_fail; | |
13020 | } | |
13021 | { | |
13022 | resultobj = wxPyMake_wxObject(result); | |
13023 | } | |
13024 | return resultobj; | |
13025 | fail: | |
13026 | return NULL; | |
13027 | } | |
13028 | ||
13029 | ||
13030 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13031 | PyObject *resultobj; | |
13032 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13033 | size_t arg2 ; | |
13034 | int 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_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
13042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 13043 | { |
8edf1c75 | 13044 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
13045 | if (PyErr_Occurred()) SWIG_fail; |
13046 | } | |
d14a1e28 RD |
13047 | { |
13048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13049 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
13050 | ||
13051 | wxPyEndAllowThreads(__tstate); | |
13052 | if (PyErr_Occurred()) SWIG_fail; | |
13053 | } | |
8edf1c75 | 13054 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13055 | return resultobj; |
13056 | fail: | |
13057 | return NULL; | |
13058 | } | |
13059 | ||
13060 | ||
13061 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13062 | PyObject *resultobj; | |
13063 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13064 | size_t arg2 ; | |
13065 | int arg3 ; | |
13066 | bool result; | |
13067 | PyObject * obj0 = 0 ; | |
13068 | PyObject * obj1 = 0 ; | |
8edf1c75 | 13069 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13070 | char *kwnames[] = { |
13071 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
13072 | }; | |
13073 | ||
8edf1c75 | 13074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 13076 | { |
8edf1c75 RD |
13077 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
13078 | if (PyErr_Occurred()) SWIG_fail; | |
13079 | } | |
13080 | { | |
13081 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2dbef272 RD |
13082 | if (PyErr_Occurred()) SWIG_fail; |
13083 | } | |
d14a1e28 RD |
13084 | { |
13085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13086 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
13087 | ||
13088 | wxPyEndAllowThreads(__tstate); | |
13089 | if (PyErr_Occurred()) SWIG_fail; | |
13090 | } | |
02a34c4c | 13091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13092 | return resultobj; |
13093 | fail: | |
13094 | return NULL; | |
13095 | } | |
13096 | ||
13097 | ||
13098 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13099 | PyObject *resultobj; | |
13100 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13101 | wxSize *arg2 = 0 ; | |
13102 | wxSize temp2 ; | |
13103 | PyObject * obj0 = 0 ; | |
13104 | PyObject * obj1 = 0 ; | |
13105 | char *kwnames[] = { | |
13106 | (char *) "self",(char *) "size", NULL | |
13107 | }; | |
13108 | ||
13109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
13110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13111 | { | |
13112 | arg2 = &temp2; | |
13113 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13114 | } | |
13115 | { | |
13116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13117 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
13118 | ||
13119 | wxPyEndAllowThreads(__tstate); | |
13120 | if (PyErr_Occurred()) SWIG_fail; | |
13121 | } | |
13122 | Py_INCREF(Py_None); resultobj = Py_None; | |
13123 | return resultobj; | |
13124 | fail: | |
13125 | return NULL; | |
13126 | } | |
13127 | ||
13128 | ||
13129 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13130 | PyObject *resultobj; | |
13131 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13132 | wxSize *arg2 = 0 ; | |
13133 | wxSize result; | |
13134 | wxSize temp2 ; | |
13135 | PyObject * obj0 = 0 ; | |
13136 | PyObject * obj1 = 0 ; | |
13137 | char *kwnames[] = { | |
13138 | (char *) "self",(char *) "sizePage", NULL | |
13139 | }; | |
13140 | ||
13141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
13142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13143 | { | |
13144 | arg2 = &temp2; | |
13145 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13146 | } | |
13147 | { | |
13148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13149 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13150 | ||
13151 | wxPyEndAllowThreads(__tstate); | |
13152 | if (PyErr_Occurred()) SWIG_fail; | |
13153 | } | |
13154 | { | |
13155 | wxSize * resultptr; | |
13156 | resultptr = new wxSize((wxSize &) result); | |
13157 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13158 | } | |
13159 | return resultobj; | |
13160 | fail: | |
13161 | return NULL; | |
13162 | } | |
13163 | ||
13164 | ||
13165 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13166 | PyObject *resultobj; | |
13167 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13168 | size_t arg2 ; | |
13169 | bool result; | |
13170 | PyObject * obj0 = 0 ; | |
13171 | PyObject * obj1 = 0 ; | |
13172 | char *kwnames[] = { | |
13173 | (char *) "self",(char *) "n", NULL | |
13174 | }; | |
13175 | ||
13176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
13177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 13178 | { |
8edf1c75 | 13179 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
13180 | if (PyErr_Occurred()) SWIG_fail; |
13181 | } | |
d14a1e28 RD |
13182 | { |
13183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13184 | result = (bool)(arg1)->DeletePage(arg2); | |
13185 | ||
13186 | wxPyEndAllowThreads(__tstate); | |
13187 | if (PyErr_Occurred()) SWIG_fail; | |
13188 | } | |
02a34c4c | 13189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13190 | return resultobj; |
13191 | fail: | |
13192 | return NULL; | |
13193 | } | |
13194 | ||
13195 | ||
13196 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13197 | PyObject *resultobj; | |
13198 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13199 | size_t arg2 ; | |
13200 | bool result; | |
13201 | PyObject * obj0 = 0 ; | |
13202 | PyObject * obj1 = 0 ; | |
13203 | char *kwnames[] = { | |
13204 | (char *) "self",(char *) "n", NULL | |
13205 | }; | |
13206 | ||
13207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
13208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 13209 | { |
8edf1c75 | 13210 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
13211 | if (PyErr_Occurred()) SWIG_fail; |
13212 | } | |
d14a1e28 RD |
13213 | { |
13214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13215 | result = (bool)(arg1)->RemovePage(arg2); | |
13216 | ||
13217 | wxPyEndAllowThreads(__tstate); | |
13218 | if (PyErr_Occurred()) SWIG_fail; | |
13219 | } | |
02a34c4c | 13220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13221 | return resultobj; |
13222 | fail: | |
13223 | return NULL; | |
13224 | } | |
13225 | ||
13226 | ||
13227 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13228 | PyObject *resultobj; | |
13229 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13230 | bool result; | |
13231 | PyObject * obj0 = 0 ; | |
13232 | char *kwnames[] = { | |
13233 | (char *) "self", NULL | |
13234 | }; | |
13235 | ||
13236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
13237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13238 | { | |
13239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13240 | result = (bool)(arg1)->DeleteAllPages(); | |
13241 | ||
13242 | wxPyEndAllowThreads(__tstate); | |
13243 | if (PyErr_Occurred()) SWIG_fail; | |
13244 | } | |
02a34c4c | 13245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13246 | return resultobj; |
13247 | fail: | |
13248 | return NULL; | |
13249 | } | |
13250 | ||
13251 | ||
13252 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13253 | PyObject *resultobj; | |
13254 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13255 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13256 | wxString *arg3 = 0 ; | |
423f194a | 13257 | bool arg4 = (bool) False ; |
d14a1e28 RD |
13258 | int arg5 = (int) -1 ; |
13259 | bool result; | |
423f194a | 13260 | bool temp3 = False ; |
d14a1e28 RD |
13261 | PyObject * obj0 = 0 ; |
13262 | PyObject * obj1 = 0 ; | |
13263 | PyObject * obj2 = 0 ; | |
13264 | PyObject * obj3 = 0 ; | |
8edf1c75 | 13265 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13266 | char *kwnames[] = { |
13267 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13268 | }; | |
13269 | ||
8edf1c75 | 13270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
13271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13272 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13273 | { | |
13274 | arg3 = wxString_in_helper(obj2); | |
13275 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13276 | temp3 = True; |
d14a1e28 RD |
13277 | } |
13278 | if (obj3) { | |
2dbef272 | 13279 | { |
8edf1c75 RD |
13280 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
13281 | if (PyErr_Occurred()) SWIG_fail; | |
13282 | } | |
13283 | } | |
13284 | if (obj4) { | |
13285 | { | |
13286 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
2dbef272 RD |
13287 | if (PyErr_Occurred()) SWIG_fail; |
13288 | } | |
d14a1e28 RD |
13289 | } |
13290 | { | |
13291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13292 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
13293 | ||
13294 | wxPyEndAllowThreads(__tstate); | |
13295 | if (PyErr_Occurred()) SWIG_fail; | |
13296 | } | |
02a34c4c | 13297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13298 | { |
13299 | if (temp3) | |
13300 | delete arg3; | |
13301 | } | |
13302 | return resultobj; | |
13303 | fail: | |
13304 | { | |
13305 | if (temp3) | |
13306 | delete arg3; | |
13307 | } | |
13308 | return NULL; | |
13309 | } | |
13310 | ||
13311 | ||
13312 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13313 | PyObject *resultobj; | |
13314 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13315 | size_t arg2 ; | |
13316 | wxWindow *arg3 = (wxWindow *) 0 ; | |
13317 | wxString *arg4 = 0 ; | |
423f194a | 13318 | bool arg5 = (bool) False ; |
d14a1e28 RD |
13319 | int arg6 = (int) -1 ; |
13320 | bool result; | |
423f194a | 13321 | bool temp4 = False ; |
d14a1e28 RD |
13322 | PyObject * obj0 = 0 ; |
13323 | PyObject * obj1 = 0 ; | |
13324 | PyObject * obj2 = 0 ; | |
13325 | PyObject * obj3 = 0 ; | |
13326 | PyObject * obj4 = 0 ; | |
8edf1c75 | 13327 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13328 | char *kwnames[] = { |
13329 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13330 | }; | |
13331 | ||
8edf1c75 | 13332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 13333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 13334 | { |
8edf1c75 | 13335 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
13336 | if (PyErr_Occurred()) SWIG_fail; |
13337 | } | |
d14a1e28 RD |
13338 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13339 | { | |
13340 | arg4 = wxString_in_helper(obj3); | |
13341 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13342 | temp4 = True; |
d14a1e28 RD |
13343 | } |
13344 | if (obj4) { | |
2dbef272 | 13345 | { |
8edf1c75 RD |
13346 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
13347 | if (PyErr_Occurred()) SWIG_fail; | |
13348 | } | |
13349 | } | |
13350 | if (obj5) { | |
13351 | { | |
13352 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
2dbef272 RD |
13353 | if (PyErr_Occurred()) SWIG_fail; |
13354 | } | |
d14a1e28 RD |
13355 | } |
13356 | { | |
13357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13358 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
13359 | ||
13360 | wxPyEndAllowThreads(__tstate); | |
13361 | if (PyErr_Occurred()) SWIG_fail; | |
13362 | } | |
02a34c4c | 13363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13364 | { |
13365 | if (temp4) | |
13366 | delete arg4; | |
13367 | } | |
13368 | return resultobj; | |
13369 | fail: | |
13370 | { | |
13371 | if (temp4) | |
13372 | delete arg4; | |
13373 | } | |
13374 | return NULL; | |
13375 | } | |
13376 | ||
13377 | ||
13378 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13379 | PyObject *resultobj; | |
13380 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13381 | size_t arg2 ; | |
13382 | int result; | |
13383 | PyObject * obj0 = 0 ; | |
13384 | PyObject * obj1 = 0 ; | |
13385 | char *kwnames[] = { | |
13386 | (char *) "self",(char *) "n", NULL | |
13387 | }; | |
13388 | ||
13389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
13390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 13391 | { |
8edf1c75 | 13392 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
13393 | if (PyErr_Occurred()) SWIG_fail; |
13394 | } | |
d14a1e28 RD |
13395 | { |
13396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13397 | result = (int)(arg1)->SetSelection(arg2); | |
13398 | ||
13399 | wxPyEndAllowThreads(__tstate); | |
13400 | if (PyErr_Occurred()) SWIG_fail; | |
13401 | } | |
8edf1c75 | 13402 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13403 | return resultobj; |
13404 | fail: | |
13405 | return NULL; | |
13406 | } | |
13407 | ||
13408 | ||
13409 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13410 | PyObject *resultobj; | |
13411 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
423f194a | 13412 | bool arg2 = (bool) True ; |
d14a1e28 RD |
13413 | PyObject * obj0 = 0 ; |
13414 | PyObject * obj1 = 0 ; | |
13415 | char *kwnames[] = { | |
13416 | (char *) "self",(char *) "forward", NULL | |
13417 | }; | |
13418 | ||
13419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
13420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13421 | if (obj1) { | |
2dbef272 | 13422 | { |
8edf1c75 | 13423 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
13424 | if (PyErr_Occurred()) SWIG_fail; |
13425 | } | |
d14a1e28 RD |
13426 | } |
13427 | { | |
13428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13429 | (arg1)->AdvanceSelection(arg2); | |
13430 | ||
13431 | wxPyEndAllowThreads(__tstate); | |
13432 | if (PyErr_Occurred()) SWIG_fail; | |
13433 | } | |
13434 | Py_INCREF(Py_None); resultobj = Py_None; | |
13435 | return resultobj; | |
13436 | fail: | |
13437 | return NULL; | |
13438 | } | |
13439 | ||
13440 | ||
13441 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
13442 | PyObject *obj; | |
13443 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13444 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
13445 | Py_INCREF(obj); | |
13446 | return Py_BuildValue((char *)""); | |
13447 | } | |
13448 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13449 | PyObject *resultobj; | |
13450 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13451 | int arg2 = (int) 0 ; | |
13452 | int arg3 = (int) -1 ; | |
13453 | int arg4 = (int) -1 ; | |
13454 | wxBookCtrlEvent *result; | |
8edf1c75 RD |
13455 | PyObject * obj0 = 0 ; |
13456 | PyObject * obj1 = 0 ; | |
13457 | PyObject * obj2 = 0 ; | |
13458 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13459 | char *kwnames[] = { |
13460 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13461 | }; | |
13462 | ||
8edf1c75 RD |
13463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13464 | if (obj0) { | |
13465 | { | |
13466 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13467 | if (PyErr_Occurred()) SWIG_fail; | |
13468 | } | |
13469 | } | |
13470 | if (obj1) { | |
13471 | { | |
13472 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13473 | if (PyErr_Occurred()) SWIG_fail; | |
13474 | } | |
13475 | } | |
13476 | if (obj2) { | |
13477 | { | |
13478 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13479 | if (PyErr_Occurred()) SWIG_fail; | |
13480 | } | |
13481 | } | |
13482 | if (obj3) { | |
13483 | { | |
13484 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
13485 | if (PyErr_Occurred()) SWIG_fail; | |
13486 | } | |
13487 | } | |
d14a1e28 RD |
13488 | { |
13489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13490 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
13491 | ||
13492 | wxPyEndAllowThreads(__tstate); | |
13493 | if (PyErr_Occurred()) SWIG_fail; | |
13494 | } | |
13495 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlEvent, 1); | |
13496 | return resultobj; | |
13497 | fail: | |
13498 | return NULL; | |
13499 | } | |
13500 | ||
13501 | ||
13502 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13503 | PyObject *resultobj; | |
13504 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13505 | int result; | |
13506 | PyObject * obj0 = 0 ; | |
13507 | char *kwnames[] = { | |
13508 | (char *) "self", NULL | |
13509 | }; | |
13510 | ||
13511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
13512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13513 | { | |
13514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13515 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
13516 | ||
13517 | wxPyEndAllowThreads(__tstate); | |
13518 | if (PyErr_Occurred()) SWIG_fail; | |
13519 | } | |
8edf1c75 | 13520 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13521 | return resultobj; |
13522 | fail: | |
13523 | return NULL; | |
13524 | } | |
13525 | ||
13526 | ||
13527 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13528 | PyObject *resultobj; | |
13529 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13530 | int arg2 ; | |
13531 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13532 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13533 | char *kwnames[] = { |
13534 | (char *) "self",(char *) "nSel", NULL | |
13535 | }; | |
13536 | ||
8edf1c75 | 13537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13539 | { |
13540 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13541 | if (PyErr_Occurred()) SWIG_fail; | |
13542 | } | |
d14a1e28 RD |
13543 | { |
13544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13545 | (arg1)->SetSelection(arg2); | |
13546 | ||
13547 | wxPyEndAllowThreads(__tstate); | |
13548 | if (PyErr_Occurred()) SWIG_fail; | |
13549 | } | |
13550 | Py_INCREF(Py_None); resultobj = Py_None; | |
13551 | return resultobj; | |
13552 | fail: | |
13553 | return NULL; | |
13554 | } | |
13555 | ||
13556 | ||
13557 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13558 | PyObject *resultobj; | |
13559 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13560 | int result; | |
13561 | PyObject * obj0 = 0 ; | |
13562 | char *kwnames[] = { | |
13563 | (char *) "self", NULL | |
13564 | }; | |
13565 | ||
13566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
13567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13568 | { | |
13569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13570 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
13571 | ||
13572 | wxPyEndAllowThreads(__tstate); | |
13573 | if (PyErr_Occurred()) SWIG_fail; | |
13574 | } | |
8edf1c75 | 13575 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13576 | return resultobj; |
13577 | fail: | |
13578 | return NULL; | |
13579 | } | |
13580 | ||
13581 | ||
13582 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13583 | PyObject *resultobj; | |
13584 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13585 | int arg2 ; | |
13586 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13587 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13588 | char *kwnames[] = { |
13589 | (char *) "self",(char *) "nOldSel", NULL | |
13590 | }; | |
13591 | ||
8edf1c75 | 13592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13594 | { |
13595 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13596 | if (PyErr_Occurred()) SWIG_fail; | |
13597 | } | |
d14a1e28 RD |
13598 | { |
13599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13600 | (arg1)->SetOldSelection(arg2); | |
13601 | ||
13602 | wxPyEndAllowThreads(__tstate); | |
13603 | if (PyErr_Occurred()) SWIG_fail; | |
13604 | } | |
13605 | Py_INCREF(Py_None); resultobj = Py_None; | |
13606 | return resultobj; | |
13607 | fail: | |
13608 | return NULL; | |
13609 | } | |
13610 | ||
13611 | ||
13612 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
13613 | PyObject *obj; | |
13614 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13615 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
13616 | Py_INCREF(obj); | |
13617 | return Py_BuildValue((char *)""); | |
13618 | } | |
13619 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13620 | PyObject *resultobj; | |
13621 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 13622 | int arg2 ; |
d14a1e28 RD |
13623 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
13624 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13625 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13626 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13627 | long arg5 = (long) 0 ; | |
13628 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
13629 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13630 | wxNotebook *result; | |
13631 | wxPoint temp3 ; | |
13632 | wxSize temp4 ; | |
423f194a | 13633 | bool temp6 = False ; |
d14a1e28 | 13634 | PyObject * obj0 = 0 ; |
8edf1c75 | 13635 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13636 | PyObject * obj2 = 0 ; |
13637 | PyObject * obj3 = 0 ; | |
8edf1c75 | 13638 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13639 | PyObject * obj5 = 0 ; |
13640 | char *kwnames[] = { | |
13641 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13642 | }; | |
13643 | ||
8edf1c75 | 13644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 13645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13646 | { |
13647 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13648 | if (PyErr_Occurred()) SWIG_fail; | |
13649 | } | |
d14a1e28 RD |
13650 | if (obj2) { |
13651 | { | |
13652 | arg3 = &temp3; | |
13653 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13654 | } | |
13655 | } | |
13656 | if (obj3) { | |
13657 | { | |
13658 | arg4 = &temp4; | |
13659 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
13660 | } | |
13661 | } | |
8edf1c75 RD |
13662 | if (obj4) { |
13663 | { | |
13664 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
13665 | if (PyErr_Occurred()) SWIG_fail; | |
13666 | } | |
13667 | } | |
d14a1e28 RD |
13668 | if (obj5) { |
13669 | { | |
13670 | arg6 = wxString_in_helper(obj5); | |
13671 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 13672 | temp6 = True; |
d14a1e28 RD |
13673 | } |
13674 | } | |
13675 | { | |
13676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13677 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
13678 | ||
13679 | wxPyEndAllowThreads(__tstate); | |
13680 | if (PyErr_Occurred()) SWIG_fail; | |
13681 | } | |
13682 | { | |
13683 | resultobj = wxPyMake_wxObject(result); | |
13684 | } | |
13685 | { | |
13686 | if (temp6) | |
13687 | delete arg6; | |
13688 | } | |
13689 | return resultobj; | |
13690 | fail: | |
13691 | { | |
13692 | if (temp6) | |
13693 | delete arg6; | |
13694 | } | |
13695 | return NULL; | |
13696 | } | |
13697 | ||
13698 | ||
13699 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13700 | PyObject *resultobj; | |
13701 | wxNotebook *result; | |
13702 | char *kwnames[] = { | |
13703 | NULL | |
13704 | }; | |
13705 | ||
13706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
13707 | { | |
13708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13709 | result = (wxNotebook *)new wxNotebook(); | |
13710 | ||
13711 | wxPyEndAllowThreads(__tstate); | |
13712 | if (PyErr_Occurred()) SWIG_fail; | |
13713 | } | |
13714 | { | |
13715 | resultobj = wxPyMake_wxObject(result); | |
13716 | } | |
13717 | return resultobj; | |
13718 | fail: | |
13719 | return NULL; | |
13720 | } | |
13721 | ||
13722 | ||
13723 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13724 | PyObject *resultobj; | |
13725 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13726 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 13727 | int arg3 ; |
d14a1e28 RD |
13728 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13729 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13730 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13731 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13732 | long arg6 = (long) 0 ; | |
13733 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
13734 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13735 | bool result; | |
13736 | wxPoint temp4 ; | |
13737 | wxSize temp5 ; | |
423f194a | 13738 | bool temp7 = False ; |
d14a1e28 RD |
13739 | PyObject * obj0 = 0 ; |
13740 | PyObject * obj1 = 0 ; | |
8edf1c75 | 13741 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13742 | PyObject * obj3 = 0 ; |
13743 | PyObject * obj4 = 0 ; | |
8edf1c75 | 13744 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13745 | PyObject * obj6 = 0 ; |
13746 | char *kwnames[] = { | |
13747 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13748 | }; | |
13749 | ||
8edf1c75 | 13750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
13751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13752 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
13753 | { |
13754 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13755 | if (PyErr_Occurred()) SWIG_fail; | |
13756 | } | |
d14a1e28 RD |
13757 | if (obj3) { |
13758 | { | |
13759 | arg4 = &temp4; | |
13760 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13761 | } | |
13762 | } | |
13763 | if (obj4) { | |
13764 | { | |
13765 | arg5 = &temp5; | |
13766 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13767 | } | |
13768 | } | |
8edf1c75 RD |
13769 | if (obj5) { |
13770 | { | |
13771 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
13772 | if (PyErr_Occurred()) SWIG_fail; | |
13773 | } | |
13774 | } | |
d14a1e28 RD |
13775 | if (obj6) { |
13776 | { | |
13777 | arg7 = wxString_in_helper(obj6); | |
13778 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 13779 | temp7 = True; |
d14a1e28 RD |
13780 | } |
13781 | } | |
13782 | { | |
13783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13784 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
13785 | ||
13786 | wxPyEndAllowThreads(__tstate); | |
13787 | if (PyErr_Occurred()) SWIG_fail; | |
13788 | } | |
02a34c4c | 13789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13790 | { |
13791 | if (temp7) | |
13792 | delete arg7; | |
13793 | } | |
13794 | return resultobj; | |
13795 | fail: | |
13796 | { | |
13797 | if (temp7) | |
13798 | delete arg7; | |
13799 | } | |
13800 | return NULL; | |
13801 | } | |
13802 | ||
13803 | ||
13804 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13805 | PyObject *resultobj; | |
13806 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13807 | int result; | |
13808 | PyObject * obj0 = 0 ; | |
13809 | char *kwnames[] = { | |
13810 | (char *) "self", NULL | |
13811 | }; | |
13812 | ||
13813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
13814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13815 | { | |
13816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13817 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
13818 | ||
13819 | wxPyEndAllowThreads(__tstate); | |
13820 | if (PyErr_Occurred()) SWIG_fail; | |
13821 | } | |
8edf1c75 | 13822 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13823 | return resultobj; |
13824 | fail: | |
13825 | return NULL; | |
13826 | } | |
13827 | ||
13828 | ||
13829 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13830 | PyObject *resultobj; | |
13831 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13832 | wxSize *arg2 = 0 ; | |
13833 | wxSize temp2 ; | |
13834 | PyObject * obj0 = 0 ; | |
13835 | PyObject * obj1 = 0 ; | |
13836 | char *kwnames[] = { | |
13837 | (char *) "self",(char *) "padding", NULL | |
13838 | }; | |
13839 | ||
13840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
13841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13842 | { | |
13843 | arg2 = &temp2; | |
13844 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13845 | } | |
13846 | { | |
13847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13848 | (arg1)->SetPadding((wxSize const &)*arg2); | |
13849 | ||
13850 | wxPyEndAllowThreads(__tstate); | |
13851 | if (PyErr_Occurred()) SWIG_fail; | |
13852 | } | |
13853 | Py_INCREF(Py_None); resultobj = Py_None; | |
13854 | return resultobj; | |
13855 | fail: | |
13856 | return NULL; | |
13857 | } | |
13858 | ||
13859 | ||
13860 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13861 | PyObject *resultobj; | |
13862 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13863 | wxSize *arg2 = 0 ; | |
13864 | wxSize temp2 ; | |
13865 | PyObject * obj0 = 0 ; | |
13866 | PyObject * obj1 = 0 ; | |
13867 | char *kwnames[] = { | |
13868 | (char *) "self",(char *) "sz", NULL | |
13869 | }; | |
13870 | ||
13871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
13872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13873 | { | |
13874 | arg2 = &temp2; | |
13875 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13876 | } | |
13877 | { | |
13878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13879 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
13880 | ||
13881 | wxPyEndAllowThreads(__tstate); | |
13882 | if (PyErr_Occurred()) SWIG_fail; | |
13883 | } | |
13884 | Py_INCREF(Py_None); resultobj = Py_None; | |
13885 | return resultobj; | |
13886 | fail: | |
13887 | return NULL; | |
13888 | } | |
13889 | ||
13890 | ||
13891 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13892 | PyObject *resultobj; | |
13893 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13894 | wxPoint *arg2 = 0 ; | |
13895 | long *arg3 = (long *) 0 ; | |
13896 | int result; | |
13897 | wxPoint temp2 ; | |
13898 | long temp3 ; | |
13899 | PyObject * obj0 = 0 ; | |
13900 | PyObject * obj1 = 0 ; | |
13901 | char *kwnames[] = { | |
13902 | (char *) "self",(char *) "pt", NULL | |
13903 | }; | |
13904 | ||
13905 | arg3 = &temp3; | |
13906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
13907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13908 | { | |
13909 | arg2 = &temp2; | |
13910 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13911 | } | |
13912 | { | |
13913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13914 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
13915 | ||
13916 | wxPyEndAllowThreads(__tstate); | |
13917 | if (PyErr_Occurred()) SWIG_fail; | |
13918 | } | |
8edf1c75 | 13919 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13920 | { |
13921 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13922 | resultobj = t_output_helper(resultobj,o); | |
13923 | } | |
13924 | return resultobj; | |
13925 | fail: | |
13926 | return NULL; | |
13927 | } | |
13928 | ||
13929 | ||
13930 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13931 | PyObject *resultobj; | |
13932 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13933 | wxSize *arg2 = 0 ; | |
13934 | wxSize result; | |
13935 | wxSize temp2 ; | |
13936 | PyObject * obj0 = 0 ; | |
13937 | PyObject * obj1 = 0 ; | |
13938 | char *kwnames[] = { | |
13939 | (char *) "self",(char *) "sizePage", NULL | |
13940 | }; | |
13941 | ||
13942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
13943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13944 | { | |
13945 | arg2 = &temp2; | |
13946 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13947 | } | |
13948 | { | |
13949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13950 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13951 | ||
13952 | wxPyEndAllowThreads(__tstate); | |
13953 | if (PyErr_Occurred()) SWIG_fail; | |
13954 | } | |
13955 | { | |
13956 | wxSize * resultptr; | |
13957 | resultptr = new wxSize((wxSize &) result); | |
13958 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13959 | } | |
13960 | return resultobj; | |
13961 | fail: | |
13962 | return NULL; | |
13963 | } | |
13964 | ||
13965 | ||
13966 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
13967 | PyObject *obj; | |
13968 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13969 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
13970 | Py_INCREF(obj); | |
13971 | return Py_BuildValue((char *)""); | |
13972 | } | |
13973 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13974 | PyObject *resultobj; | |
13975 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13976 | int arg2 = (int) 0 ; | |
13977 | int arg3 = (int) -1 ; | |
13978 | int arg4 = (int) -1 ; | |
13979 | wxNotebookEvent *result; | |
8edf1c75 RD |
13980 | PyObject * obj0 = 0 ; |
13981 | PyObject * obj1 = 0 ; | |
13982 | PyObject * obj2 = 0 ; | |
13983 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13984 | char *kwnames[] = { |
13985 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13986 | }; | |
13987 | ||
8edf1c75 RD |
13988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13989 | if (obj0) { | |
13990 | { | |
13991 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13992 | if (PyErr_Occurred()) SWIG_fail; | |
13993 | } | |
13994 | } | |
13995 | if (obj1) { | |
13996 | { | |
13997 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13998 | if (PyErr_Occurred()) SWIG_fail; | |
13999 | } | |
14000 | } | |
14001 | if (obj2) { | |
14002 | { | |
14003 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14004 | if (PyErr_Occurred()) SWIG_fail; | |
14005 | } | |
14006 | } | |
14007 | if (obj3) { | |
14008 | { | |
14009 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14010 | if (PyErr_Occurred()) SWIG_fail; | |
14011 | } | |
14012 | } | |
d14a1e28 RD |
14013 | { |
14014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14015 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
14016 | ||
14017 | wxPyEndAllowThreads(__tstate); | |
14018 | if (PyErr_Occurred()) SWIG_fail; | |
14019 | } | |
14020 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookEvent, 1); | |
14021 | return resultobj; | |
14022 | fail: | |
14023 | return NULL; | |
14024 | } | |
14025 | ||
14026 | ||
14027 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
14028 | PyObject *obj; | |
14029 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14030 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
14031 | Py_INCREF(obj); | |
14032 | return Py_BuildValue((char *)""); | |
14033 | } | |
14034 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14035 | PyObject *resultobj; | |
14036 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 14037 | int arg2 ; |
d14a1e28 RD |
14038 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14039 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14040 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14041 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14042 | long arg5 = (long) 0 ; | |
14043 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
14044 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14045 | wxListbook *result; | |
14046 | wxPoint temp3 ; | |
14047 | wxSize temp4 ; | |
423f194a | 14048 | bool temp6 = False ; |
d14a1e28 | 14049 | PyObject * obj0 = 0 ; |
8edf1c75 | 14050 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14051 | PyObject * obj2 = 0 ; |
14052 | PyObject * obj3 = 0 ; | |
8edf1c75 | 14053 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14054 | PyObject * obj5 = 0 ; |
14055 | char *kwnames[] = { | |
14056 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14057 | }; | |
14058 | ||
8edf1c75 | 14059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 14060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14061 | { |
14062 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14063 | if (PyErr_Occurred()) SWIG_fail; | |
14064 | } | |
d14a1e28 RD |
14065 | if (obj2) { |
14066 | { | |
14067 | arg3 = &temp3; | |
14068 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14069 | } | |
14070 | } | |
14071 | if (obj3) { | |
14072 | { | |
14073 | arg4 = &temp4; | |
14074 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14075 | } | |
14076 | } | |
8edf1c75 RD |
14077 | if (obj4) { |
14078 | { | |
14079 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
14080 | if (PyErr_Occurred()) SWIG_fail; | |
14081 | } | |
14082 | } | |
d14a1e28 RD |
14083 | if (obj5) { |
14084 | { | |
14085 | arg6 = wxString_in_helper(obj5); | |
14086 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 14087 | temp6 = True; |
d14a1e28 RD |
14088 | } |
14089 | } | |
14090 | { | |
14091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14092 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14093 | ||
14094 | wxPyEndAllowThreads(__tstate); | |
14095 | if (PyErr_Occurred()) SWIG_fail; | |
14096 | } | |
14097 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
14098 | { | |
14099 | if (temp6) | |
14100 | delete arg6; | |
14101 | } | |
14102 | return resultobj; | |
14103 | fail: | |
14104 | { | |
14105 | if (temp6) | |
14106 | delete arg6; | |
14107 | } | |
14108 | return NULL; | |
14109 | } | |
14110 | ||
14111 | ||
14112 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14113 | PyObject *resultobj; | |
14114 | wxListbook *result; | |
14115 | char *kwnames[] = { | |
14116 | NULL | |
14117 | }; | |
14118 | ||
14119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
14120 | { | |
14121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14122 | result = (wxListbook *)new wxListbook(); | |
14123 | ||
14124 | wxPyEndAllowThreads(__tstate); | |
14125 | if (PyErr_Occurred()) SWIG_fail; | |
14126 | } | |
14127 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
14128 | return resultobj; | |
14129 | fail: | |
14130 | return NULL; | |
14131 | } | |
14132 | ||
14133 | ||
14134 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14135 | PyObject *resultobj; | |
14136 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14137 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14138 | int arg3 ; |
d14a1e28 RD |
14139 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14140 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14141 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14142 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14143 | long arg6 = (long) 0 ; | |
14144 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
14145 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14146 | bool result; | |
14147 | wxPoint temp4 ; | |
14148 | wxSize temp5 ; | |
423f194a | 14149 | bool temp7 = False ; |
d14a1e28 RD |
14150 | PyObject * obj0 = 0 ; |
14151 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14152 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14153 | PyObject * obj3 = 0 ; |
14154 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14155 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14156 | PyObject * obj6 = 0 ; |
14157 | char *kwnames[] = { | |
14158 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14159 | }; | |
14160 | ||
8edf1c75 | 14161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
14162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14163 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
14164 | { |
14165 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14166 | if (PyErr_Occurred()) SWIG_fail; | |
14167 | } | |
d14a1e28 RD |
14168 | if (obj3) { |
14169 | { | |
14170 | arg4 = &temp4; | |
14171 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14172 | } | |
14173 | } | |
14174 | if (obj4) { | |
14175 | { | |
14176 | arg5 = &temp5; | |
14177 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14178 | } | |
14179 | } | |
8edf1c75 RD |
14180 | if (obj5) { |
14181 | { | |
14182 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
14183 | if (PyErr_Occurred()) SWIG_fail; | |
14184 | } | |
14185 | } | |
d14a1e28 RD |
14186 | if (obj6) { |
14187 | { | |
14188 | arg7 = wxString_in_helper(obj6); | |
14189 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14190 | temp7 = True; |
d14a1e28 RD |
14191 | } |
14192 | } | |
14193 | { | |
14194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14195 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14196 | ||
14197 | wxPyEndAllowThreads(__tstate); | |
14198 | if (PyErr_Occurred()) SWIG_fail; | |
14199 | } | |
02a34c4c | 14200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14201 | { |
14202 | if (temp7) | |
14203 | delete arg7; | |
14204 | } | |
14205 | return resultobj; | |
14206 | fail: | |
14207 | { | |
14208 | if (temp7) | |
14209 | delete arg7; | |
14210 | } | |
14211 | return NULL; | |
14212 | } | |
14213 | ||
14214 | ||
14215 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14216 | PyObject *resultobj; | |
14217 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14218 | bool result; | |
14219 | PyObject * obj0 = 0 ; | |
14220 | char *kwnames[] = { | |
14221 | (char *) "self", NULL | |
14222 | }; | |
14223 | ||
14224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
14225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14226 | { | |
14227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14228 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
14229 | ||
14230 | wxPyEndAllowThreads(__tstate); | |
14231 | if (PyErr_Occurred()) SWIG_fail; | |
14232 | } | |
02a34c4c | 14233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14234 | return resultobj; |
14235 | fail: | |
14236 | return NULL; | |
14237 | } | |
14238 | ||
14239 | ||
14240 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
14241 | PyObject *obj; | |
14242 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14243 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
14244 | Py_INCREF(obj); | |
14245 | return Py_BuildValue((char *)""); | |
14246 | } | |
14247 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14248 | PyObject *resultobj; | |
14249 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14250 | int arg2 = (int) 0 ; | |
14251 | int arg3 = (int) -1 ; | |
14252 | int arg4 = (int) -1 ; | |
14253 | wxListbookEvent *result; | |
8edf1c75 RD |
14254 | PyObject * obj0 = 0 ; |
14255 | PyObject * obj1 = 0 ; | |
14256 | PyObject * obj2 = 0 ; | |
14257 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14258 | char *kwnames[] = { |
14259 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14260 | }; | |
14261 | ||
8edf1c75 RD |
14262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14263 | if (obj0) { | |
14264 | { | |
14265 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
14266 | if (PyErr_Occurred()) SWIG_fail; | |
14267 | } | |
14268 | } | |
14269 | if (obj1) { | |
14270 | { | |
14271 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14272 | if (PyErr_Occurred()) SWIG_fail; | |
14273 | } | |
14274 | } | |
14275 | if (obj2) { | |
14276 | { | |
14277 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14278 | if (PyErr_Occurred()) SWIG_fail; | |
14279 | } | |
14280 | } | |
14281 | if (obj3) { | |
14282 | { | |
14283 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14284 | if (PyErr_Occurred()) SWIG_fail; | |
14285 | } | |
14286 | } | |
d14a1e28 RD |
14287 | { |
14288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14289 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
14290 | ||
14291 | wxPyEndAllowThreads(__tstate); | |
14292 | if (PyErr_Occurred()) SWIG_fail; | |
14293 | } | |
14294 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbookEvent, 1); | |
14295 | return resultobj; | |
14296 | fail: | |
14297 | return NULL; | |
14298 | } | |
14299 | ||
14300 | ||
14301 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
14302 | PyObject *obj; | |
14303 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14304 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
14305 | Py_INCREF(obj); | |
14306 | return Py_BuildValue((char *)""); | |
14307 | } | |
14308 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14309 | PyObject *resultobj; | |
14310 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14311 | wxBookCtrlSizer *result; | |
14312 | PyObject * obj0 = 0 ; | |
14313 | char *kwnames[] = { | |
14314 | (char *) "nb", NULL | |
14315 | }; | |
14316 | ||
14317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
14318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14319 | { | |
14320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14321 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
14322 | ||
14323 | wxPyEndAllowThreads(__tstate); | |
14324 | if (PyErr_Occurred()) SWIG_fail; | |
14325 | } | |
14326 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlSizer, 1); | |
14327 | return resultobj; | |
14328 | fail: | |
14329 | return NULL; | |
14330 | } | |
14331 | ||
14332 | ||
14333 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14334 | PyObject *resultobj; | |
14335 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14336 | PyObject * obj0 = 0 ; | |
14337 | char *kwnames[] = { | |
14338 | (char *) "self", NULL | |
14339 | }; | |
14340 | ||
14341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14343 | { | |
14344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14345 | (arg1)->RecalcSizes(); | |
14346 | ||
14347 | wxPyEndAllowThreads(__tstate); | |
14348 | if (PyErr_Occurred()) SWIG_fail; | |
14349 | } | |
14350 | Py_INCREF(Py_None); resultobj = Py_None; | |
14351 | return resultobj; | |
14352 | fail: | |
14353 | return NULL; | |
14354 | } | |
14355 | ||
14356 | ||
14357 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14358 | PyObject *resultobj; | |
14359 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14360 | wxSize result; | |
14361 | PyObject * obj0 = 0 ; | |
14362 | char *kwnames[] = { | |
14363 | (char *) "self", NULL | |
14364 | }; | |
14365 | ||
14366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14368 | { | |
14369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14370 | result = (arg1)->CalcMin(); | |
14371 | ||
14372 | wxPyEndAllowThreads(__tstate); | |
14373 | if (PyErr_Occurred()) SWIG_fail; | |
14374 | } | |
14375 | { | |
14376 | wxSize * resultptr; | |
14377 | resultptr = new wxSize((wxSize &) result); | |
14378 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14379 | } | |
14380 | return resultobj; | |
14381 | fail: | |
14382 | return NULL; | |
14383 | } | |
14384 | ||
14385 | ||
14386 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14387 | PyObject *resultobj; | |
14388 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14389 | wxBookCtrl *result; | |
14390 | PyObject * obj0 = 0 ; | |
14391 | char *kwnames[] = { | |
14392 | (char *) "self", NULL | |
14393 | }; | |
14394 | ||
14395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
14396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14397 | { | |
14398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14399 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
14400 | ||
14401 | wxPyEndAllowThreads(__tstate); | |
14402 | if (PyErr_Occurred()) SWIG_fail; | |
14403 | } | |
14404 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrl, 0); | |
14405 | return resultobj; | |
14406 | fail: | |
14407 | return NULL; | |
14408 | } | |
14409 | ||
14410 | ||
14411 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
14412 | PyObject *obj; | |
14413 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14414 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
14415 | Py_INCREF(obj); | |
14416 | return Py_BuildValue((char *)""); | |
14417 | } | |
14418 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14419 | PyObject *resultobj; | |
14420 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14421 | wxNotebookSizer *result; | |
14422 | PyObject * obj0 = 0 ; | |
14423 | char *kwnames[] = { | |
14424 | (char *) "nb", NULL | |
14425 | }; | |
14426 | ||
14427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
14428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14429 | { | |
14430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14431 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
14432 | ||
14433 | wxPyEndAllowThreads(__tstate); | |
14434 | if (PyErr_Occurred()) SWIG_fail; | |
14435 | } | |
14436 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookSizer, 1); | |
14437 | return resultobj; | |
14438 | fail: | |
14439 | return NULL; | |
14440 | } | |
14441 | ||
14442 | ||
14443 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14444 | PyObject *resultobj; | |
14445 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14446 | PyObject * obj0 = 0 ; | |
14447 | char *kwnames[] = { | |
14448 | (char *) "self", NULL | |
14449 | }; | |
14450 | ||
14451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14453 | { | |
14454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14455 | (arg1)->RecalcSizes(); | |
14456 | ||
14457 | wxPyEndAllowThreads(__tstate); | |
14458 | if (PyErr_Occurred()) SWIG_fail; | |
14459 | } | |
14460 | Py_INCREF(Py_None); resultobj = Py_None; | |
14461 | return resultobj; | |
14462 | fail: | |
14463 | return NULL; | |
14464 | } | |
14465 | ||
14466 | ||
14467 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14468 | PyObject *resultobj; | |
14469 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14470 | wxSize result; | |
14471 | PyObject * obj0 = 0 ; | |
14472 | char *kwnames[] = { | |
14473 | (char *) "self", NULL | |
14474 | }; | |
14475 | ||
14476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14478 | { | |
14479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14480 | result = (arg1)->CalcMin(); | |
14481 | ||
14482 | wxPyEndAllowThreads(__tstate); | |
14483 | if (PyErr_Occurred()) SWIG_fail; | |
14484 | } | |
14485 | { | |
14486 | wxSize * resultptr; | |
14487 | resultptr = new wxSize((wxSize &) result); | |
14488 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14489 | } | |
14490 | return resultobj; | |
14491 | fail: | |
14492 | return NULL; | |
14493 | } | |
14494 | ||
14495 | ||
14496 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14497 | PyObject *resultobj; | |
14498 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14499 | wxNotebook *result; | |
14500 | PyObject * obj0 = 0 ; | |
14501 | char *kwnames[] = { | |
14502 | (char *) "self", NULL | |
14503 | }; | |
14504 | ||
14505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
14506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14507 | { | |
14508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14509 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
14510 | ||
14511 | wxPyEndAllowThreads(__tstate); | |
14512 | if (PyErr_Occurred()) SWIG_fail; | |
14513 | } | |
14514 | { | |
14515 | resultobj = wxPyMake_wxObject(result); | |
14516 | } | |
14517 | return resultobj; | |
14518 | fail: | |
14519 | return NULL; | |
14520 | } | |
14521 | ||
14522 | ||
14523 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
14524 | PyObject *obj; | |
14525 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14526 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
14527 | Py_INCREF(obj); | |
14528 | return Py_BuildValue((char *)""); | |
14529 | } | |
14530 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14531 | PyObject *resultobj; | |
14532 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14533 | int result; | |
14534 | PyObject * obj0 = 0 ; | |
14535 | char *kwnames[] = { | |
14536 | (char *) "self", NULL | |
14537 | }; | |
14538 | ||
14539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
14540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14541 | { | |
14542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14543 | result = (int)(arg1)->GetId(); | |
14544 | ||
14545 | wxPyEndAllowThreads(__tstate); | |
14546 | if (PyErr_Occurred()) SWIG_fail; | |
14547 | } | |
8edf1c75 | 14548 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14549 | return resultobj; |
14550 | fail: | |
14551 | return NULL; | |
14552 | } | |
14553 | ||
14554 | ||
14555 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14556 | PyObject *resultobj; | |
14557 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14558 | wxControl *result; | |
14559 | PyObject * obj0 = 0 ; | |
14560 | char *kwnames[] = { | |
14561 | (char *) "self", NULL | |
14562 | }; | |
14563 | ||
14564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
14565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14566 | { | |
14567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14568 | result = (wxControl *)(arg1)->GetControl(); | |
14569 | ||
14570 | wxPyEndAllowThreads(__tstate); | |
14571 | if (PyErr_Occurred()) SWIG_fail; | |
14572 | } | |
14573 | { | |
14574 | resultobj = wxPyMake_wxObject(result); | |
14575 | } | |
14576 | return resultobj; | |
14577 | fail: | |
14578 | return NULL; | |
14579 | } | |
14580 | ||
14581 | ||
14582 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14583 | PyObject *resultobj; | |
14584 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14585 | wxToolBarBase *result; | |
14586 | PyObject * obj0 = 0 ; | |
14587 | char *kwnames[] = { | |
14588 | (char *) "self", NULL | |
14589 | }; | |
14590 | ||
14591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
14592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14593 | { | |
14594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14595 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
14596 | ||
14597 | wxPyEndAllowThreads(__tstate); | |
14598 | if (PyErr_Occurred()) SWIG_fail; | |
14599 | } | |
14600 | { | |
14601 | resultobj = wxPyMake_wxObject(result); | |
14602 | } | |
14603 | return resultobj; | |
14604 | fail: | |
14605 | return NULL; | |
14606 | } | |
14607 | ||
14608 | ||
14609 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14610 | PyObject *resultobj; | |
14611 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14612 | int result; | |
14613 | PyObject * obj0 = 0 ; | |
14614 | char *kwnames[] = { | |
14615 | (char *) "self", NULL | |
14616 | }; | |
14617 | ||
14618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
14619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14620 | { | |
14621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14622 | result = (int)(arg1)->IsButton(); | |
14623 | ||
14624 | wxPyEndAllowThreads(__tstate); | |
14625 | if (PyErr_Occurred()) SWIG_fail; | |
14626 | } | |
8edf1c75 | 14627 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14628 | return resultobj; |
14629 | fail: | |
14630 | return NULL; | |
14631 | } | |
14632 | ||
14633 | ||
14634 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14635 | PyObject *resultobj; | |
14636 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14637 | int result; | |
14638 | PyObject * obj0 = 0 ; | |
14639 | char *kwnames[] = { | |
14640 | (char *) "self", NULL | |
14641 | }; | |
14642 | ||
14643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
14644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14645 | { | |
14646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14647 | result = (int)(arg1)->IsControl(); | |
14648 | ||
14649 | wxPyEndAllowThreads(__tstate); | |
14650 | if (PyErr_Occurred()) SWIG_fail; | |
14651 | } | |
8edf1c75 | 14652 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14653 | return resultobj; |
14654 | fail: | |
14655 | return NULL; | |
14656 | } | |
14657 | ||
14658 | ||
14659 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14660 | PyObject *resultobj; | |
14661 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14662 | int result; | |
14663 | PyObject * obj0 = 0 ; | |
14664 | char *kwnames[] = { | |
14665 | (char *) "self", NULL | |
14666 | }; | |
14667 | ||
14668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
14669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14670 | { | |
14671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14672 | result = (int)(arg1)->IsSeparator(); | |
14673 | ||
14674 | wxPyEndAllowThreads(__tstate); | |
14675 | if (PyErr_Occurred()) SWIG_fail; | |
14676 | } | |
8edf1c75 | 14677 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14678 | return resultobj; |
14679 | fail: | |
14680 | return NULL; | |
14681 | } | |
14682 | ||
14683 | ||
14684 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14685 | PyObject *resultobj; | |
14686 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14687 | int result; | |
14688 | PyObject * obj0 = 0 ; | |
14689 | char *kwnames[] = { | |
14690 | (char *) "self", NULL | |
14691 | }; | |
14692 | ||
14693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
14694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14695 | { | |
14696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14697 | result = (int)(arg1)->GetStyle(); | |
14698 | ||
14699 | wxPyEndAllowThreads(__tstate); | |
14700 | if (PyErr_Occurred()) SWIG_fail; | |
14701 | } | |
8edf1c75 | 14702 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14703 | return resultobj; |
14704 | fail: | |
14705 | return NULL; | |
14706 | } | |
14707 | ||
14708 | ||
14709 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14710 | PyObject *resultobj; | |
14711 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14712 | int result; | |
14713 | PyObject * obj0 = 0 ; | |
14714 | char *kwnames[] = { | |
14715 | (char *) "self", NULL | |
14716 | }; | |
14717 | ||
14718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
14719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14720 | { | |
14721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14722 | result = (int)(arg1)->GetKind(); | |
14723 | ||
14724 | wxPyEndAllowThreads(__tstate); | |
14725 | if (PyErr_Occurred()) SWIG_fail; | |
14726 | } | |
8edf1c75 | 14727 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14728 | return resultobj; |
14729 | fail: | |
14730 | return NULL; | |
14731 | } | |
14732 | ||
14733 | ||
14734 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14735 | PyObject *resultobj; | |
14736 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14737 | bool result; | |
14738 | PyObject * obj0 = 0 ; | |
14739 | char *kwnames[] = { | |
14740 | (char *) "self", NULL | |
14741 | }; | |
14742 | ||
14743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
14744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14745 | { | |
14746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14747 | result = (bool)(arg1)->IsEnabled(); | |
14748 | ||
14749 | wxPyEndAllowThreads(__tstate); | |
14750 | if (PyErr_Occurred()) SWIG_fail; | |
14751 | } | |
02a34c4c | 14752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14753 | return resultobj; |
14754 | fail: | |
14755 | return NULL; | |
14756 | } | |
14757 | ||
14758 | ||
14759 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14760 | PyObject *resultobj; | |
14761 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14762 | bool result; | |
14763 | PyObject * obj0 = 0 ; | |
14764 | char *kwnames[] = { | |
14765 | (char *) "self", NULL | |
14766 | }; | |
14767 | ||
14768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
14769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14770 | { | |
14771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14772 | result = (bool)(arg1)->IsToggled(); | |
14773 | ||
14774 | wxPyEndAllowThreads(__tstate); | |
14775 | if (PyErr_Occurred()) SWIG_fail; | |
14776 | } | |
02a34c4c | 14777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14778 | return resultobj; |
14779 | fail: | |
14780 | return NULL; | |
14781 | } | |
14782 | ||
14783 | ||
14784 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14785 | PyObject *resultobj; | |
14786 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14787 | bool result; | |
14788 | PyObject * obj0 = 0 ; | |
14789 | char *kwnames[] = { | |
14790 | (char *) "self", NULL | |
14791 | }; | |
14792 | ||
14793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
14794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14795 | { | |
14796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14797 | result = (bool)(arg1)->CanBeToggled(); | |
14798 | ||
14799 | wxPyEndAllowThreads(__tstate); | |
14800 | if (PyErr_Occurred()) SWIG_fail; | |
14801 | } | |
02a34c4c | 14802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14803 | return resultobj; |
14804 | fail: | |
14805 | return NULL; | |
14806 | } | |
14807 | ||
14808 | ||
14809 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14810 | PyObject *resultobj; | |
14811 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14812 | wxBitmap *result; | |
14813 | PyObject * obj0 = 0 ; | |
14814 | char *kwnames[] = { | |
14815 | (char *) "self", NULL | |
14816 | }; | |
14817 | ||
14818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
14819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14820 | { | |
14821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14822 | { | |
14823 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
14824 | result = (wxBitmap *) &_result_ref; | |
14825 | } | |
14826 | ||
14827 | wxPyEndAllowThreads(__tstate); | |
14828 | if (PyErr_Occurred()) SWIG_fail; | |
14829 | } | |
14830 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
14831 | return resultobj; | |
14832 | fail: | |
14833 | return NULL; | |
14834 | } | |
14835 | ||
14836 | ||
14837 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14838 | PyObject *resultobj; | |
14839 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14840 | wxBitmap *result; | |
14841 | PyObject * obj0 = 0 ; | |
14842 | char *kwnames[] = { | |
14843 | (char *) "self", NULL | |
14844 | }; | |
14845 | ||
14846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
14847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14848 | { | |
14849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14850 | { | |
14851 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
14852 | result = (wxBitmap *) &_result_ref; | |
14853 | } | |
14854 | ||
14855 | wxPyEndAllowThreads(__tstate); | |
14856 | if (PyErr_Occurred()) SWIG_fail; | |
14857 | } | |
14858 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
14859 | return resultobj; | |
14860 | fail: | |
14861 | return NULL; | |
14862 | } | |
14863 | ||
14864 | ||
14865 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14866 | PyObject *resultobj; | |
14867 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14868 | wxBitmap result; | |
14869 | PyObject * obj0 = 0 ; | |
14870 | char *kwnames[] = { | |
14871 | (char *) "self", NULL | |
14872 | }; | |
14873 | ||
14874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
14875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14876 | { | |
14877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14878 | result = (arg1)->GetBitmap(); | |
14879 | ||
14880 | wxPyEndAllowThreads(__tstate); | |
14881 | if (PyErr_Occurred()) SWIG_fail; | |
14882 | } | |
14883 | { | |
14884 | wxBitmap * resultptr; | |
14885 | resultptr = new wxBitmap((wxBitmap &) result); | |
14886 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
14887 | } | |
14888 | return resultobj; | |
14889 | fail: | |
14890 | return NULL; | |
14891 | } | |
14892 | ||
14893 | ||
14894 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14895 | PyObject *resultobj; | |
14896 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14897 | wxString result; | |
14898 | PyObject * obj0 = 0 ; | |
14899 | char *kwnames[] = { | |
14900 | (char *) "self", NULL | |
14901 | }; | |
14902 | ||
14903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
14904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14905 | { | |
14906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14907 | result = (arg1)->GetLabel(); | |
14908 | ||
14909 | wxPyEndAllowThreads(__tstate); | |
14910 | if (PyErr_Occurred()) SWIG_fail; | |
14911 | } | |
14912 | { | |
14913 | #if wxUSE_UNICODE | |
14914 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14915 | #else | |
14916 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14917 | #endif | |
14918 | } | |
14919 | return resultobj; | |
14920 | fail: | |
14921 | return NULL; | |
14922 | } | |
14923 | ||
14924 | ||
14925 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14926 | PyObject *resultobj; | |
14927 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14928 | wxString result; | |
14929 | PyObject * obj0 = 0 ; | |
14930 | char *kwnames[] = { | |
14931 | (char *) "self", NULL | |
14932 | }; | |
14933 | ||
14934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
14935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14936 | { | |
14937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14938 | result = (arg1)->GetShortHelp(); | |
14939 | ||
14940 | wxPyEndAllowThreads(__tstate); | |
14941 | if (PyErr_Occurred()) SWIG_fail; | |
14942 | } | |
14943 | { | |
14944 | #if wxUSE_UNICODE | |
14945 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14946 | #else | |
14947 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14948 | #endif | |
14949 | } | |
14950 | return resultobj; | |
14951 | fail: | |
14952 | return NULL; | |
14953 | } | |
14954 | ||
14955 | ||
14956 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14957 | PyObject *resultobj; | |
14958 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14959 | wxString result; | |
14960 | PyObject * obj0 = 0 ; | |
14961 | char *kwnames[] = { | |
14962 | (char *) "self", NULL | |
14963 | }; | |
14964 | ||
14965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
14966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14967 | { | |
14968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14969 | result = (arg1)->GetLongHelp(); | |
14970 | ||
14971 | wxPyEndAllowThreads(__tstate); | |
14972 | if (PyErr_Occurred()) SWIG_fail; | |
14973 | } | |
14974 | { | |
14975 | #if wxUSE_UNICODE | |
14976 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14977 | #else | |
14978 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14979 | #endif | |
14980 | } | |
14981 | return resultobj; | |
14982 | fail: | |
14983 | return NULL; | |
14984 | } | |
14985 | ||
14986 | ||
14987 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14988 | PyObject *resultobj; | |
14989 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14990 | bool arg2 ; | |
14991 | bool result; | |
14992 | PyObject * obj0 = 0 ; | |
14993 | PyObject * obj1 = 0 ; | |
14994 | char *kwnames[] = { | |
14995 | (char *) "self",(char *) "enable", NULL | |
14996 | }; | |
14997 | ||
14998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
14999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 15000 | { |
8edf1c75 | 15001 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
15002 | if (PyErr_Occurred()) SWIG_fail; |
15003 | } | |
d14a1e28 RD |
15004 | { |
15005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15006 | result = (bool)(arg1)->Enable(arg2); | |
15007 | ||
15008 | wxPyEndAllowThreads(__tstate); | |
15009 | if (PyErr_Occurred()) SWIG_fail; | |
15010 | } | |
02a34c4c | 15011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15012 | return resultobj; |
15013 | fail: | |
15014 | return NULL; | |
15015 | } | |
15016 | ||
15017 | ||
15018 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15019 | PyObject *resultobj; | |
15020 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15021 | PyObject * obj0 = 0 ; | |
15022 | char *kwnames[] = { | |
15023 | (char *) "self", NULL | |
15024 | }; | |
15025 | ||
15026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
15027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15028 | { | |
15029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15030 | (arg1)->Toggle(); | |
15031 | ||
15032 | wxPyEndAllowThreads(__tstate); | |
15033 | if (PyErr_Occurred()) SWIG_fail; | |
15034 | } | |
15035 | Py_INCREF(Py_None); resultobj = Py_None; | |
15036 | return resultobj; | |
15037 | fail: | |
15038 | return NULL; | |
15039 | } | |
15040 | ||
15041 | ||
15042 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15043 | PyObject *resultobj; | |
15044 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15045 | bool arg2 ; | |
15046 | bool result; | |
15047 | PyObject * obj0 = 0 ; | |
15048 | PyObject * obj1 = 0 ; | |
15049 | char *kwnames[] = { | |
15050 | (char *) "self",(char *) "toggle", NULL | |
15051 | }; | |
15052 | ||
15053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
15054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 15055 | { |
8edf1c75 | 15056 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
15057 | if (PyErr_Occurred()) SWIG_fail; |
15058 | } | |
d14a1e28 RD |
15059 | { |
15060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15061 | result = (bool)(arg1)->SetToggle(arg2); | |
15062 | ||
15063 | wxPyEndAllowThreads(__tstate); | |
15064 | if (PyErr_Occurred()) SWIG_fail; | |
15065 | } | |
02a34c4c | 15066 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15067 | return resultobj; |
15068 | fail: | |
15069 | return NULL; | |
15070 | } | |
15071 | ||
15072 | ||
15073 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15074 | PyObject *resultobj; | |
15075 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15076 | wxString *arg2 = 0 ; | |
15077 | bool result; | |
423f194a | 15078 | bool temp2 = False ; |
d14a1e28 RD |
15079 | PyObject * obj0 = 0 ; |
15080 | PyObject * obj1 = 0 ; | |
15081 | char *kwnames[] = { | |
15082 | (char *) "self",(char *) "help", NULL | |
15083 | }; | |
15084 | ||
15085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
15086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15087 | { | |
15088 | arg2 = wxString_in_helper(obj1); | |
15089 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15090 | temp2 = True; |
d14a1e28 RD |
15091 | } |
15092 | { | |
15093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15094 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
15095 | ||
15096 | wxPyEndAllowThreads(__tstate); | |
15097 | if (PyErr_Occurred()) SWIG_fail; | |
15098 | } | |
02a34c4c | 15099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15100 | { |
15101 | if (temp2) | |
15102 | delete arg2; | |
15103 | } | |
15104 | return resultobj; | |
15105 | fail: | |
15106 | { | |
15107 | if (temp2) | |
15108 | delete arg2; | |
15109 | } | |
15110 | return NULL; | |
15111 | } | |
15112 | ||
15113 | ||
15114 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15115 | PyObject *resultobj; | |
15116 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15117 | wxString *arg2 = 0 ; | |
15118 | bool result; | |
423f194a | 15119 | bool temp2 = False ; |
d14a1e28 RD |
15120 | PyObject * obj0 = 0 ; |
15121 | PyObject * obj1 = 0 ; | |
15122 | char *kwnames[] = { | |
15123 | (char *) "self",(char *) "help", NULL | |
15124 | }; | |
15125 | ||
15126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15128 | { | |
15129 | arg2 = wxString_in_helper(obj1); | |
15130 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15131 | temp2 = True; |
d14a1e28 RD |
15132 | } |
15133 | { | |
15134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15135 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
15136 | ||
15137 | wxPyEndAllowThreads(__tstate); | |
15138 | if (PyErr_Occurred()) SWIG_fail; | |
15139 | } | |
02a34c4c | 15140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15141 | { |
15142 | if (temp2) | |
15143 | delete arg2; | |
15144 | } | |
15145 | return resultobj; | |
15146 | fail: | |
15147 | { | |
15148 | if (temp2) | |
15149 | delete arg2; | |
15150 | } | |
15151 | return NULL; | |
15152 | } | |
15153 | ||
15154 | ||
15155 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15156 | PyObject *resultobj; | |
15157 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15158 | wxBitmap *arg2 = 0 ; | |
15159 | PyObject * obj0 = 0 ; | |
15160 | PyObject * obj1 = 0 ; | |
15161 | char *kwnames[] = { | |
15162 | (char *) "self",(char *) "bmp", NULL | |
15163 | }; | |
15164 | ||
15165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15167 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15168 | if (arg2 == NULL) { | |
15169 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15170 | } | |
15171 | { | |
15172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15173 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
15174 | ||
15175 | wxPyEndAllowThreads(__tstate); | |
15176 | if (PyErr_Occurred()) SWIG_fail; | |
15177 | } | |
15178 | Py_INCREF(Py_None); resultobj = Py_None; | |
15179 | return resultobj; | |
15180 | fail: | |
15181 | return NULL; | |
15182 | } | |
15183 | ||
15184 | ||
15185 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15186 | PyObject *resultobj; | |
15187 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15188 | wxBitmap *arg2 = 0 ; | |
15189 | PyObject * obj0 = 0 ; | |
15190 | PyObject * obj1 = 0 ; | |
15191 | char *kwnames[] = { | |
15192 | (char *) "self",(char *) "bmp", NULL | |
15193 | }; | |
15194 | ||
15195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15197 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15198 | if (arg2 == NULL) { | |
15199 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15200 | } | |
15201 | { | |
15202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15203 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
15204 | ||
15205 | wxPyEndAllowThreads(__tstate); | |
15206 | if (PyErr_Occurred()) SWIG_fail; | |
15207 | } | |
15208 | Py_INCREF(Py_None); resultobj = Py_None; | |
15209 | return resultobj; | |
15210 | fail: | |
15211 | return NULL; | |
15212 | } | |
15213 | ||
15214 | ||
15215 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15216 | PyObject *resultobj; | |
15217 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15218 | wxString *arg2 = 0 ; | |
423f194a | 15219 | bool temp2 = False ; |
d14a1e28 RD |
15220 | PyObject * obj0 = 0 ; |
15221 | PyObject * obj1 = 0 ; | |
15222 | char *kwnames[] = { | |
15223 | (char *) "self",(char *) "label", NULL | |
15224 | }; | |
15225 | ||
15226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15228 | { | |
15229 | arg2 = wxString_in_helper(obj1); | |
15230 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15231 | temp2 = True; |
d14a1e28 RD |
15232 | } |
15233 | { | |
15234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15235 | (arg1)->SetLabel((wxString const &)*arg2); | |
15236 | ||
15237 | wxPyEndAllowThreads(__tstate); | |
15238 | if (PyErr_Occurred()) SWIG_fail; | |
15239 | } | |
15240 | Py_INCREF(Py_None); resultobj = Py_None; | |
15241 | { | |
15242 | if (temp2) | |
15243 | delete arg2; | |
15244 | } | |
15245 | return resultobj; | |
15246 | fail: | |
15247 | { | |
15248 | if (temp2) | |
15249 | delete arg2; | |
15250 | } | |
15251 | return NULL; | |
15252 | } | |
15253 | ||
15254 | ||
15255 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15256 | PyObject *resultobj; | |
15257 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15258 | PyObject * obj0 = 0 ; | |
15259 | char *kwnames[] = { | |
15260 | (char *) "self", NULL | |
15261 | }; | |
15262 | ||
15263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
15264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15265 | { | |
15266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15267 | (arg1)->Detach(); | |
15268 | ||
15269 | wxPyEndAllowThreads(__tstate); | |
15270 | if (PyErr_Occurred()) SWIG_fail; | |
15271 | } | |
15272 | Py_INCREF(Py_None); resultobj = Py_None; | |
15273 | return resultobj; | |
15274 | fail: | |
15275 | return NULL; | |
15276 | } | |
15277 | ||
15278 | ||
15279 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15280 | PyObject *resultobj; | |
15281 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15282 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
15283 | PyObject * obj0 = 0 ; | |
15284 | PyObject * obj1 = 0 ; | |
15285 | char *kwnames[] = { | |
15286 | (char *) "self",(char *) "tbar", NULL | |
15287 | }; | |
15288 | ||
15289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15291 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15292 | { | |
15293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15294 | (arg1)->Attach(arg2); | |
15295 | ||
15296 | wxPyEndAllowThreads(__tstate); | |
15297 | if (PyErr_Occurred()) SWIG_fail; | |
15298 | } | |
15299 | Py_INCREF(Py_None); resultobj = Py_None; | |
15300 | return resultobj; | |
15301 | fail: | |
15302 | return NULL; | |
15303 | } | |
15304 | ||
15305 | ||
15306 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15307 | PyObject *resultobj; | |
15308 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15309 | PyObject *result; | |
15310 | PyObject * obj0 = 0 ; | |
15311 | char *kwnames[] = { | |
15312 | (char *) "self", NULL | |
15313 | }; | |
15314 | ||
15315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15317 | { | |
15318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15319 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
15320 | ||
15321 | wxPyEndAllowThreads(__tstate); | |
15322 | if (PyErr_Occurred()) SWIG_fail; | |
15323 | } | |
15324 | resultobj = result; | |
15325 | return resultobj; | |
15326 | fail: | |
15327 | return NULL; | |
15328 | } | |
15329 | ||
15330 | ||
15331 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15332 | PyObject *resultobj; | |
15333 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15334 | PyObject *arg2 = (PyObject *) 0 ; | |
15335 | PyObject * obj0 = 0 ; | |
15336 | PyObject * obj1 = 0 ; | |
15337 | char *kwnames[] = { | |
15338 | (char *) "self",(char *) "clientData", NULL | |
15339 | }; | |
15340 | ||
15341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15343 | arg2 = obj1; | |
15344 | { | |
15345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15346 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
15347 | ||
15348 | wxPyEndAllowThreads(__tstate); | |
15349 | if (PyErr_Occurred()) SWIG_fail; | |
15350 | } | |
15351 | Py_INCREF(Py_None); resultobj = Py_None; | |
15352 | return resultobj; | |
15353 | fail: | |
15354 | return NULL; | |
15355 | } | |
15356 | ||
15357 | ||
15358 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
15359 | PyObject *obj; | |
15360 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15361 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
15362 | Py_INCREF(obj); | |
15363 | return Py_BuildValue((char *)""); | |
15364 | } | |
15365 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15366 | PyObject *resultobj; | |
15367 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15368 | int arg2 ; | |
15369 | wxString *arg3 = 0 ; | |
15370 | wxBitmap *arg4 = 0 ; | |
15371 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
15372 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
15373 | int arg6 = (int) wxITEM_NORMAL ; | |
15374 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15375 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15376 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15377 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15378 | PyObject *arg9 = (PyObject *) NULL ; | |
15379 | wxToolBarToolBase *result; | |
423f194a RD |
15380 | bool temp3 = False ; |
15381 | bool temp7 = False ; | |
15382 | bool temp8 = False ; | |
d14a1e28 | 15383 | PyObject * obj0 = 0 ; |
8edf1c75 | 15384 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15385 | PyObject * obj2 = 0 ; |
15386 | PyObject * obj3 = 0 ; | |
15387 | PyObject * obj4 = 0 ; | |
8edf1c75 | 15388 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15389 | PyObject * obj6 = 0 ; |
15390 | PyObject * obj7 = 0 ; | |
15391 | PyObject * obj8 = 0 ; | |
15392 | char *kwnames[] = { | |
15393 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15394 | }; | |
15395 | ||
8edf1c75 | 15396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 15397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15398 | { |
15399 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15400 | if (PyErr_Occurred()) SWIG_fail; | |
15401 | } | |
d14a1e28 RD |
15402 | { |
15403 | arg3 = wxString_in_helper(obj2); | |
15404 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 15405 | temp3 = True; |
d14a1e28 RD |
15406 | } |
15407 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15408 | if (arg4 == NULL) { | |
15409 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15410 | } | |
15411 | if (obj4) { | |
15412 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15413 | if (arg5 == NULL) { | |
15414 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15415 | } | |
15416 | } | |
8edf1c75 RD |
15417 | if (obj5) { |
15418 | { | |
15419 | arg6 = (wxItemKind) SWIG_PyObj_AsInt(obj5); | |
15420 | if (PyErr_Occurred()) SWIG_fail; | |
15421 | } | |
15422 | } | |
d14a1e28 RD |
15423 | if (obj6) { |
15424 | { | |
15425 | arg7 = wxString_in_helper(obj6); | |
15426 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 15427 | temp7 = True; |
d14a1e28 RD |
15428 | } |
15429 | } | |
15430 | if (obj7) { | |
15431 | { | |
15432 | arg8 = wxString_in_helper(obj7); | |
15433 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 15434 | temp8 = True; |
d14a1e28 RD |
15435 | } |
15436 | } | |
15437 | if (obj8) { | |
15438 | arg9 = obj8; | |
15439 | } | |
15440 | { | |
15441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15442 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
15443 | ||
15444 | wxPyEndAllowThreads(__tstate); | |
15445 | if (PyErr_Occurred()) SWIG_fail; | |
15446 | } | |
15447 | { | |
15448 | resultobj = wxPyMake_wxObject(result); | |
15449 | } | |
15450 | { | |
15451 | if (temp3) | |
15452 | delete arg3; | |
15453 | } | |
15454 | { | |
15455 | if (temp7) | |
15456 | delete arg7; | |
15457 | } | |
15458 | { | |
15459 | if (temp8) | |
15460 | delete arg8; | |
15461 | } | |
15462 | return resultobj; | |
15463 | fail: | |
15464 | { | |
15465 | if (temp3) | |
15466 | delete arg3; | |
15467 | } | |
15468 | { | |
15469 | if (temp7) | |
15470 | delete arg7; | |
15471 | } | |
15472 | { | |
15473 | if (temp8) | |
15474 | delete arg8; | |
15475 | } | |
15476 | return NULL; | |
15477 | } | |
15478 | ||
15479 | ||
15480 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15481 | PyObject *resultobj; | |
15482 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15483 | size_t arg2 ; | |
15484 | int arg3 ; | |
15485 | wxString *arg4 = 0 ; | |
15486 | wxBitmap *arg5 = 0 ; | |
15487 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
15488 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
15489 | int arg7 = (int) wxITEM_NORMAL ; | |
15490 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15491 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15492 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
15493 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
15494 | PyObject *arg10 = (PyObject *) NULL ; | |
15495 | wxToolBarToolBase *result; | |
423f194a RD |
15496 | bool temp4 = False ; |
15497 | bool temp8 = False ; | |
15498 | bool temp9 = False ; | |
d14a1e28 RD |
15499 | PyObject * obj0 = 0 ; |
15500 | PyObject * obj1 = 0 ; | |
8edf1c75 | 15501 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15502 | PyObject * obj3 = 0 ; |
15503 | PyObject * obj4 = 0 ; | |
15504 | PyObject * obj5 = 0 ; | |
8edf1c75 | 15505 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
15506 | PyObject * obj7 = 0 ; |
15507 | PyObject * obj8 = 0 ; | |
15508 | PyObject * obj9 = 0 ; | |
15509 | char *kwnames[] = { | |
15510 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15511 | }; | |
15512 | ||
8edf1c75 | 15513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 15514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 15515 | { |
8edf1c75 RD |
15516 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
15517 | if (PyErr_Occurred()) SWIG_fail; | |
15518 | } | |
15519 | { | |
15520 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2dbef272 RD |
15521 | if (PyErr_Occurred()) SWIG_fail; |
15522 | } | |
d14a1e28 RD |
15523 | { |
15524 | arg4 = wxString_in_helper(obj3); | |
15525 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 15526 | temp4 = True; |
d14a1e28 RD |
15527 | } |
15528 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15529 | if (arg5 == NULL) { | |
15530 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15531 | } | |
15532 | if (obj5) { | |
15533 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15534 | if (arg6 == NULL) { | |
15535 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15536 | } | |
15537 | } | |
8edf1c75 RD |
15538 | if (obj6) { |
15539 | { | |
15540 | arg7 = (wxItemKind) SWIG_PyObj_AsInt(obj6); | |
15541 | if (PyErr_Occurred()) SWIG_fail; | |
15542 | } | |
15543 | } | |
d14a1e28 RD |
15544 | if (obj7) { |
15545 | { | |
15546 | arg8 = wxString_in_helper(obj7); | |
15547 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 15548 | temp8 = True; |
d14a1e28 RD |
15549 | } |
15550 | } | |
15551 | if (obj8) { | |
15552 | { | |
15553 | arg9 = wxString_in_helper(obj8); | |
15554 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 15555 | temp9 = True; |
d14a1e28 RD |
15556 | } |
15557 | } | |
15558 | if (obj9) { | |
15559 | arg10 = obj9; | |
15560 | } | |
15561 | { | |
15562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15563 | 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); | |
15564 | ||
15565 | wxPyEndAllowThreads(__tstate); | |
15566 | if (PyErr_Occurred()) SWIG_fail; | |
15567 | } | |
15568 | { | |
15569 | resultobj = wxPyMake_wxObject(result); | |
15570 | } | |
15571 | { | |
15572 | if (temp4) | |
15573 | delete arg4; | |
15574 | } | |
15575 | { | |
15576 | if (temp8) | |
15577 | delete arg8; | |
15578 | } | |
15579 | { | |
15580 | if (temp9) | |
15581 | delete arg9; | |
15582 | } | |
15583 | return resultobj; | |
15584 | fail: | |
15585 | { | |
15586 | if (temp4) | |
15587 | delete arg4; | |
15588 | } | |
15589 | { | |
15590 | if (temp8) | |
15591 | delete arg8; | |
15592 | } | |
15593 | { | |
15594 | if (temp9) | |
15595 | delete arg9; | |
15596 | } | |
15597 | return NULL; | |
15598 | } | |
15599 | ||
15600 | ||
cbd72d4f RD |
15601 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
15602 | PyObject *resultobj; | |
15603 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15604 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
15605 | wxToolBarToolBase *result; | |
15606 | PyObject * obj0 = 0 ; | |
15607 | PyObject * obj1 = 0 ; | |
15608 | char *kwnames[] = { | |
15609 | (char *) "self",(char *) "tool", NULL | |
15610 | }; | |
15611 | ||
15612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
15613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15614 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15615 | { | |
15616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15617 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
15618 | ||
15619 | wxPyEndAllowThreads(__tstate); | |
15620 | if (PyErr_Occurred()) SWIG_fail; | |
15621 | } | |
15622 | { | |
15623 | resultobj = wxPyMake_wxObject(result); | |
15624 | } | |
15625 | return resultobj; | |
15626 | fail: | |
15627 | return NULL; | |
15628 | } | |
15629 | ||
15630 | ||
15631 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15632 | PyObject *resultobj; | |
15633 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15634 | size_t arg2 ; | |
15635 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
15636 | wxToolBarToolBase *result; | |
15637 | PyObject * obj0 = 0 ; | |
15638 | PyObject * obj1 = 0 ; | |
15639 | PyObject * obj2 = 0 ; | |
15640 | char *kwnames[] = { | |
15641 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
15642 | }; | |
15643 | ||
15644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 15646 | { |
8edf1c75 | 15647 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
15648 | if (PyErr_Occurred()) SWIG_fail; |
15649 | } | |
cbd72d4f RD |
15650 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15651 | { | |
15652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15653 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
15654 | ||
15655 | wxPyEndAllowThreads(__tstate); | |
15656 | if (PyErr_Occurred()) SWIG_fail; | |
15657 | } | |
15658 | { | |
15659 | resultobj = wxPyMake_wxObject(result); | |
15660 | } | |
15661 | return resultobj; | |
15662 | fail: | |
15663 | return NULL; | |
15664 | } | |
15665 | ||
15666 | ||
d14a1e28 RD |
15667 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
15668 | PyObject *resultobj; | |
15669 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15670 | wxControl *arg2 = (wxControl *) 0 ; | |
15671 | wxToolBarToolBase *result; | |
15672 | PyObject * obj0 = 0 ; | |
15673 | PyObject * obj1 = 0 ; | |
15674 | char *kwnames[] = { | |
15675 | (char *) "self",(char *) "control", NULL | |
15676 | }; | |
15677 | ||
15678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
15679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15680 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15681 | { | |
15682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15683 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
15684 | ||
15685 | wxPyEndAllowThreads(__tstate); | |
15686 | if (PyErr_Occurred()) SWIG_fail; | |
15687 | } | |
15688 | { | |
15689 | resultobj = wxPyMake_wxObject(result); | |
15690 | } | |
15691 | return resultobj; | |
15692 | fail: | |
15693 | return NULL; | |
15694 | } | |
15695 | ||
15696 | ||
15697 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15698 | PyObject *resultobj; | |
15699 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15700 | size_t arg2 ; | |
15701 | wxControl *arg3 = (wxControl *) 0 ; | |
15702 | wxToolBarToolBase *result; | |
15703 | PyObject * obj0 = 0 ; | |
15704 | PyObject * obj1 = 0 ; | |
15705 | PyObject * obj2 = 0 ; | |
15706 | char *kwnames[] = { | |
15707 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
15708 | }; | |
15709 | ||
15710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 15712 | { |
8edf1c75 | 15713 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
15714 | if (PyErr_Occurred()) SWIG_fail; |
15715 | } | |
d14a1e28 RD |
15716 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15717 | { | |
15718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15719 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
15720 | ||
15721 | wxPyEndAllowThreads(__tstate); | |
15722 | if (PyErr_Occurred()) SWIG_fail; | |
15723 | } | |
15724 | { | |
15725 | resultobj = wxPyMake_wxObject(result); | |
15726 | } | |
15727 | return resultobj; | |
15728 | fail: | |
15729 | return NULL; | |
15730 | } | |
15731 | ||
15732 | ||
15733 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15734 | PyObject *resultobj; | |
15735 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15736 | int arg2 ; | |
15737 | wxControl *result; | |
15738 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15739 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15740 | char *kwnames[] = { |
15741 | (char *) "self",(char *) "id", NULL | |
15742 | }; | |
15743 | ||
8edf1c75 | 15744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15746 | { |
15747 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15748 | if (PyErr_Occurred()) SWIG_fail; | |
15749 | } | |
d14a1e28 RD |
15750 | { |
15751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15752 | result = (wxControl *)(arg1)->FindControl(arg2); | |
15753 | ||
15754 | wxPyEndAllowThreads(__tstate); | |
15755 | if (PyErr_Occurred()) SWIG_fail; | |
15756 | } | |
15757 | { | |
15758 | resultobj = wxPyMake_wxObject(result); | |
15759 | } | |
15760 | return resultobj; | |
15761 | fail: | |
15762 | return NULL; | |
15763 | } | |
15764 | ||
15765 | ||
15766 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15767 | PyObject *resultobj; | |
15768 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15769 | wxToolBarToolBase *result; | |
15770 | PyObject * obj0 = 0 ; | |
15771 | char *kwnames[] = { | |
15772 | (char *) "self", NULL | |
15773 | }; | |
15774 | ||
15775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
15776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15777 | { | |
15778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15779 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
15780 | ||
15781 | wxPyEndAllowThreads(__tstate); | |
15782 | if (PyErr_Occurred()) SWIG_fail; | |
15783 | } | |
15784 | { | |
15785 | resultobj = wxPyMake_wxObject(result); | |
15786 | } | |
15787 | return resultobj; | |
15788 | fail: | |
15789 | return NULL; | |
15790 | } | |
15791 | ||
15792 | ||
15793 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15794 | PyObject *resultobj; | |
15795 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15796 | size_t arg2 ; | |
15797 | wxToolBarToolBase *result; | |
15798 | PyObject * obj0 = 0 ; | |
15799 | PyObject * obj1 = 0 ; | |
15800 | char *kwnames[] = { | |
15801 | (char *) "self",(char *) "pos", NULL | |
15802 | }; | |
15803 | ||
15804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 15806 | { |
8edf1c75 | 15807 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
15808 | if (PyErr_Occurred()) SWIG_fail; |
15809 | } | |
d14a1e28 RD |
15810 | { |
15811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15812 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
15813 | ||
15814 | wxPyEndAllowThreads(__tstate); | |
15815 | if (PyErr_Occurred()) SWIG_fail; | |
15816 | } | |
15817 | { | |
15818 | resultobj = wxPyMake_wxObject(result); | |
15819 | } | |
15820 | return resultobj; | |
15821 | fail: | |
15822 | return NULL; | |
15823 | } | |
15824 | ||
15825 | ||
15826 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15827 | PyObject *resultobj; | |
15828 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15829 | int arg2 ; | |
15830 | wxToolBarToolBase *result; | |
15831 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15832 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15833 | char *kwnames[] = { |
15834 | (char *) "self",(char *) "id", NULL | |
15835 | }; | |
15836 | ||
8edf1c75 | 15837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15839 | { |
15840 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15841 | if (PyErr_Occurred()) SWIG_fail; | |
15842 | } | |
d14a1e28 RD |
15843 | { |
15844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15845 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
15846 | ||
15847 | wxPyEndAllowThreads(__tstate); | |
15848 | if (PyErr_Occurred()) SWIG_fail; | |
15849 | } | |
15850 | { | |
15851 | resultobj = wxPyMake_wxObject(result); | |
15852 | } | |
15853 | return resultobj; | |
15854 | fail: | |
15855 | return NULL; | |
15856 | } | |
15857 | ||
15858 | ||
15859 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15860 | PyObject *resultobj; | |
15861 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15862 | size_t arg2 ; | |
15863 | bool result; | |
15864 | PyObject * obj0 = 0 ; | |
15865 | PyObject * obj1 = 0 ; | |
15866 | char *kwnames[] = { | |
15867 | (char *) "self",(char *) "pos", NULL | |
15868 | }; | |
15869 | ||
15870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
15871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 15872 | { |
8edf1c75 | 15873 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
15874 | if (PyErr_Occurred()) SWIG_fail; |
15875 | } | |
d14a1e28 RD |
15876 | { |
15877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15878 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
15879 | ||
15880 | wxPyEndAllowThreads(__tstate); | |
15881 | if (PyErr_Occurred()) SWIG_fail; | |
15882 | } | |
02a34c4c | 15883 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15884 | return resultobj; |
15885 | fail: | |
15886 | return NULL; | |
15887 | } | |
15888 | ||
15889 | ||
15890 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15891 | PyObject *resultobj; | |
15892 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15893 | int arg2 ; | |
15894 | bool result; | |
15895 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15896 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15897 | char *kwnames[] = { |
15898 | (char *) "self",(char *) "id", NULL | |
15899 | }; | |
15900 | ||
8edf1c75 | 15901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15903 | { |
15904 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15905 | if (PyErr_Occurred()) SWIG_fail; | |
15906 | } | |
d14a1e28 RD |
15907 | { |
15908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15909 | result = (bool)(arg1)->DeleteTool(arg2); | |
15910 | ||
15911 | wxPyEndAllowThreads(__tstate); | |
15912 | if (PyErr_Occurred()) SWIG_fail; | |
15913 | } | |
02a34c4c | 15914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15915 | return resultobj; |
15916 | fail: | |
15917 | return NULL; | |
15918 | } | |
15919 | ||
15920 | ||
15921 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15922 | PyObject *resultobj; | |
15923 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15924 | PyObject * obj0 = 0 ; | |
15925 | char *kwnames[] = { | |
15926 | (char *) "self", NULL | |
15927 | }; | |
15928 | ||
15929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
15930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15931 | { | |
15932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15933 | (arg1)->ClearTools(); | |
15934 | ||
15935 | wxPyEndAllowThreads(__tstate); | |
15936 | if (PyErr_Occurred()) SWIG_fail; | |
15937 | } | |
15938 | Py_INCREF(Py_None); resultobj = Py_None; | |
15939 | return resultobj; | |
15940 | fail: | |
15941 | return NULL; | |
15942 | } | |
15943 | ||
15944 | ||
15945 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15946 | PyObject *resultobj; | |
15947 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15948 | bool result; | |
15949 | PyObject * obj0 = 0 ; | |
15950 | char *kwnames[] = { | |
15951 | (char *) "self", NULL | |
15952 | }; | |
15953 | ||
15954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
15955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15956 | { | |
15957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15958 | result = (bool)(arg1)->Realize(); | |
15959 | ||
15960 | wxPyEndAllowThreads(__tstate); | |
15961 | if (PyErr_Occurred()) SWIG_fail; | |
15962 | } | |
02a34c4c | 15963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15964 | return resultobj; |
15965 | fail: | |
15966 | return NULL; | |
15967 | } | |
15968 | ||
15969 | ||
15970 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15971 | PyObject *resultobj; | |
15972 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15973 | int arg2 ; | |
15974 | bool arg3 ; | |
15975 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15976 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15977 | PyObject * obj2 = 0 ; |
15978 | char *kwnames[] = { | |
15979 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
15980 | }; | |
15981 | ||
8edf1c75 | 15982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 15984 | { |
8edf1c75 RD |
15985 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
15986 | if (PyErr_Occurred()) SWIG_fail; | |
15987 | } | |
15988 | { | |
15989 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
2dbef272 RD |
15990 | if (PyErr_Occurred()) SWIG_fail; |
15991 | } | |
d14a1e28 RD |
15992 | { |
15993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15994 | (arg1)->EnableTool(arg2,arg3); | |
15995 | ||
15996 | wxPyEndAllowThreads(__tstate); | |
15997 | if (PyErr_Occurred()) SWIG_fail; | |
15998 | } | |
15999 | Py_INCREF(Py_None); resultobj = Py_None; | |
16000 | return resultobj; | |
16001 | fail: | |
16002 | return NULL; | |
16003 | } | |
16004 | ||
16005 | ||
16006 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16007 | PyObject *resultobj; | |
16008 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16009 | int arg2 ; | |
16010 | bool arg3 ; | |
16011 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16012 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16013 | PyObject * obj2 = 0 ; |
16014 | char *kwnames[] = { | |
16015 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16016 | }; | |
16017 | ||
8edf1c75 | 16018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 16020 | { |
8edf1c75 RD |
16021 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16022 | if (PyErr_Occurred()) SWIG_fail; | |
16023 | } | |
16024 | { | |
16025 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
2dbef272 RD |
16026 | if (PyErr_Occurred()) SWIG_fail; |
16027 | } | |
d14a1e28 RD |
16028 | { |
16029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16030 | (arg1)->ToggleTool(arg2,arg3); | |
16031 | ||
16032 | wxPyEndAllowThreads(__tstate); | |
16033 | if (PyErr_Occurred()) SWIG_fail; | |
16034 | } | |
16035 | Py_INCREF(Py_None); resultobj = Py_None; | |
16036 | return resultobj; | |
16037 | fail: | |
16038 | return NULL; | |
16039 | } | |
16040 | ||
16041 | ||
16042 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16043 | PyObject *resultobj; | |
16044 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16045 | int arg2 ; | |
16046 | bool arg3 ; | |
16047 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16048 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16049 | PyObject * obj2 = 0 ; |
16050 | char *kwnames[] = { | |
16051 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16052 | }; | |
16053 | ||
8edf1c75 | 16054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 16056 | { |
8edf1c75 RD |
16057 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16058 | if (PyErr_Occurred()) SWIG_fail; | |
16059 | } | |
16060 | { | |
16061 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
2dbef272 RD |
16062 | if (PyErr_Occurred()) SWIG_fail; |
16063 | } | |
d14a1e28 RD |
16064 | { |
16065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16066 | (arg1)->SetToggle(arg2,arg3); | |
16067 | ||
16068 | wxPyEndAllowThreads(__tstate); | |
16069 | if (PyErr_Occurred()) SWIG_fail; | |
16070 | } | |
16071 | Py_INCREF(Py_None); resultobj = Py_None; | |
16072 | return resultobj; | |
16073 | fail: | |
16074 | return NULL; | |
16075 | } | |
16076 | ||
16077 | ||
16078 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16079 | PyObject *resultobj; | |
16080 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16081 | int arg2 ; | |
16082 | PyObject *result; | |
16083 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16084 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16085 | char *kwnames[] = { |
16086 | (char *) "self",(char *) "id", NULL | |
16087 | }; | |
16088 | ||
8edf1c75 | 16089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16091 | { |
16092 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16093 | if (PyErr_Occurred()) SWIG_fail; | |
16094 | } | |
d14a1e28 RD |
16095 | { |
16096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16097 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
16098 | ||
16099 | wxPyEndAllowThreads(__tstate); | |
16100 | if (PyErr_Occurred()) SWIG_fail; | |
16101 | } | |
16102 | resultobj = result; | |
16103 | return resultobj; | |
16104 | fail: | |
16105 | return NULL; | |
16106 | } | |
16107 | ||
16108 | ||
16109 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16110 | PyObject *resultobj; | |
16111 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16112 | int arg2 ; | |
16113 | PyObject *arg3 = (PyObject *) 0 ; | |
16114 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16115 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16116 | PyObject * obj2 = 0 ; |
16117 | char *kwnames[] = { | |
16118 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
16119 | }; | |
16120 | ||
8edf1c75 | 16121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16123 | { |
16124 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16125 | if (PyErr_Occurred()) SWIG_fail; | |
16126 | } | |
d14a1e28 RD |
16127 | arg3 = obj2; |
16128 | { | |
16129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16130 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
16131 | ||
16132 | wxPyEndAllowThreads(__tstate); | |
16133 | if (PyErr_Occurred()) SWIG_fail; | |
16134 | } | |
16135 | Py_INCREF(Py_None); resultobj = Py_None; | |
16136 | return resultobj; | |
16137 | fail: | |
16138 | return NULL; | |
16139 | } | |
16140 | ||
16141 | ||
16142 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16143 | PyObject *resultobj; | |
16144 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16145 | int arg2 ; | |
16146 | int result; | |
16147 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16148 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16149 | char *kwnames[] = { |
16150 | (char *) "self",(char *) "id", NULL | |
16151 | }; | |
16152 | ||
8edf1c75 | 16153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16155 | { |
16156 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16157 | if (PyErr_Occurred()) SWIG_fail; | |
16158 | } | |
d14a1e28 RD |
16159 | { |
16160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16161 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
16162 | ||
16163 | wxPyEndAllowThreads(__tstate); | |
16164 | if (PyErr_Occurred()) SWIG_fail; | |
16165 | } | |
8edf1c75 | 16166 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16167 | return resultobj; |
16168 | fail: | |
16169 | return NULL; | |
16170 | } | |
16171 | ||
16172 | ||
16173 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16174 | PyObject *resultobj; | |
16175 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16176 | int arg2 ; | |
16177 | bool result; | |
16178 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16179 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16180 | char *kwnames[] = { |
16181 | (char *) "self",(char *) "id", NULL | |
16182 | }; | |
16183 | ||
8edf1c75 | 16184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16186 | { |
16187 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16188 | if (PyErr_Occurred()) SWIG_fail; | |
16189 | } | |
d14a1e28 RD |
16190 | { |
16191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16192 | result = (bool)(arg1)->GetToolState(arg2); | |
16193 | ||
16194 | wxPyEndAllowThreads(__tstate); | |
16195 | if (PyErr_Occurred()) SWIG_fail; | |
16196 | } | |
02a34c4c | 16197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16198 | return resultobj; |
16199 | fail: | |
16200 | return NULL; | |
16201 | } | |
16202 | ||
16203 | ||
16204 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16205 | PyObject *resultobj; | |
16206 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16207 | int arg2 ; | |
16208 | bool result; | |
16209 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16210 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16211 | char *kwnames[] = { |
16212 | (char *) "self",(char *) "id", NULL | |
16213 | }; | |
16214 | ||
8edf1c75 | 16215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16217 | { |
16218 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16219 | if (PyErr_Occurred()) SWIG_fail; | |
16220 | } | |
d14a1e28 RD |
16221 | { |
16222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16223 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
16224 | ||
16225 | wxPyEndAllowThreads(__tstate); | |
16226 | if (PyErr_Occurred()) SWIG_fail; | |
16227 | } | |
02a34c4c | 16228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16229 | return resultobj; |
16230 | fail: | |
16231 | return NULL; | |
16232 | } | |
16233 | ||
16234 | ||
16235 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16236 | PyObject *resultobj; | |
16237 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16238 | int arg2 ; | |
16239 | wxString *arg3 = 0 ; | |
423f194a | 16240 | bool temp3 = False ; |
d14a1e28 | 16241 | PyObject * obj0 = 0 ; |
8edf1c75 | 16242 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16243 | PyObject * obj2 = 0 ; |
16244 | char *kwnames[] = { | |
16245 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16246 | }; | |
16247 | ||
8edf1c75 | 16248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16250 | { |
16251 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16252 | if (PyErr_Occurred()) SWIG_fail; | |
16253 | } | |
d14a1e28 RD |
16254 | { |
16255 | arg3 = wxString_in_helper(obj2); | |
16256 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16257 | temp3 = True; |
d14a1e28 RD |
16258 | } |
16259 | { | |
16260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16261 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
16262 | ||
16263 | wxPyEndAllowThreads(__tstate); | |
16264 | if (PyErr_Occurred()) SWIG_fail; | |
16265 | } | |
16266 | Py_INCREF(Py_None); resultobj = Py_None; | |
16267 | { | |
16268 | if (temp3) | |
16269 | delete arg3; | |
16270 | } | |
16271 | return resultobj; | |
16272 | fail: | |
16273 | { | |
16274 | if (temp3) | |
16275 | delete arg3; | |
16276 | } | |
16277 | return NULL; | |
16278 | } | |
16279 | ||
16280 | ||
16281 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16282 | PyObject *resultobj; | |
16283 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16284 | int arg2 ; | |
16285 | wxString result; | |
16286 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16287 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16288 | char *kwnames[] = { |
16289 | (char *) "self",(char *) "id", NULL | |
16290 | }; | |
16291 | ||
8edf1c75 | 16292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16294 | { |
16295 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16296 | if (PyErr_Occurred()) SWIG_fail; | |
16297 | } | |
d14a1e28 RD |
16298 | { |
16299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16300 | result = (arg1)->GetToolShortHelp(arg2); | |
16301 | ||
16302 | wxPyEndAllowThreads(__tstate); | |
16303 | if (PyErr_Occurred()) SWIG_fail; | |
16304 | } | |
16305 | { | |
16306 | #if wxUSE_UNICODE | |
16307 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16308 | #else | |
16309 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16310 | #endif | |
16311 | } | |
16312 | return resultobj; | |
16313 | fail: | |
16314 | return NULL; | |
16315 | } | |
16316 | ||
16317 | ||
16318 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16319 | PyObject *resultobj; | |
16320 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16321 | int arg2 ; | |
16322 | wxString *arg3 = 0 ; | |
423f194a | 16323 | bool temp3 = False ; |
d14a1e28 | 16324 | PyObject * obj0 = 0 ; |
8edf1c75 | 16325 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16326 | PyObject * obj2 = 0 ; |
16327 | char *kwnames[] = { | |
16328 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16329 | }; | |
16330 | ||
8edf1c75 | 16331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16333 | { |
16334 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16335 | if (PyErr_Occurred()) SWIG_fail; | |
16336 | } | |
d14a1e28 RD |
16337 | { |
16338 | arg3 = wxString_in_helper(obj2); | |
16339 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16340 | temp3 = True; |
d14a1e28 RD |
16341 | } |
16342 | { | |
16343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16344 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
16345 | ||
16346 | wxPyEndAllowThreads(__tstate); | |
16347 | if (PyErr_Occurred()) SWIG_fail; | |
16348 | } | |
16349 | Py_INCREF(Py_None); resultobj = Py_None; | |
16350 | { | |
16351 | if (temp3) | |
16352 | delete arg3; | |
16353 | } | |
16354 | return resultobj; | |
16355 | fail: | |
16356 | { | |
16357 | if (temp3) | |
16358 | delete arg3; | |
16359 | } | |
16360 | return NULL; | |
16361 | } | |
16362 | ||
16363 | ||
16364 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16365 | PyObject *resultobj; | |
16366 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16367 | int arg2 ; | |
16368 | wxString result; | |
16369 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16370 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16371 | char *kwnames[] = { |
16372 | (char *) "self",(char *) "id", NULL | |
16373 | }; | |
16374 | ||
8edf1c75 | 16375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16377 | { |
16378 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16379 | if (PyErr_Occurred()) SWIG_fail; | |
16380 | } | |
d14a1e28 RD |
16381 | { |
16382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16383 | result = (arg1)->GetToolLongHelp(arg2); | |
16384 | ||
16385 | wxPyEndAllowThreads(__tstate); | |
16386 | if (PyErr_Occurred()) SWIG_fail; | |
16387 | } | |
16388 | { | |
16389 | #if wxUSE_UNICODE | |
16390 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16391 | #else | |
16392 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16393 | #endif | |
16394 | } | |
16395 | return resultobj; | |
16396 | fail: | |
16397 | return NULL; | |
16398 | } | |
16399 | ||
16400 | ||
16401 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16402 | PyObject *resultobj; | |
16403 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16404 | int arg2 ; | |
16405 | int arg3 ; | |
16406 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16407 | PyObject * obj1 = 0 ; |
16408 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16409 | char *kwnames[] = { |
16410 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16411 | }; | |
16412 | ||
8edf1c75 | 16413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16415 | { |
16416 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16417 | if (PyErr_Occurred()) SWIG_fail; | |
16418 | } | |
16419 | { | |
16420 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16421 | if (PyErr_Occurred()) SWIG_fail; | |
16422 | } | |
d14a1e28 RD |
16423 | { |
16424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16425 | (arg1)->SetMargins(arg2,arg3); | |
16426 | ||
16427 | wxPyEndAllowThreads(__tstate); | |
16428 | if (PyErr_Occurred()) SWIG_fail; | |
16429 | } | |
16430 | Py_INCREF(Py_None); resultobj = Py_None; | |
16431 | return resultobj; | |
16432 | fail: | |
16433 | return NULL; | |
16434 | } | |
16435 | ||
16436 | ||
16437 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16438 | PyObject *resultobj; | |
16439 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16440 | wxSize *arg2 = 0 ; | |
16441 | wxSize temp2 ; | |
16442 | PyObject * obj0 = 0 ; | |
16443 | PyObject * obj1 = 0 ; | |
16444 | char *kwnames[] = { | |
16445 | (char *) "self",(char *) "size", NULL | |
16446 | }; | |
16447 | ||
16448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
16449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16450 | { | |
16451 | arg2 = &temp2; | |
16452 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16453 | } | |
16454 | { | |
16455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16456 | (arg1)->SetMargins((wxSize const &)*arg2); | |
16457 | ||
16458 | wxPyEndAllowThreads(__tstate); | |
16459 | if (PyErr_Occurred()) SWIG_fail; | |
16460 | } | |
16461 | Py_INCREF(Py_None); resultobj = Py_None; | |
16462 | return resultobj; | |
16463 | fail: | |
16464 | return NULL; | |
16465 | } | |
16466 | ||
16467 | ||
16468 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16469 | PyObject *resultobj; | |
16470 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16471 | int arg2 ; | |
16472 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16473 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16474 | char *kwnames[] = { |
16475 | (char *) "self",(char *) "packing", NULL | |
16476 | }; | |
16477 | ||
8edf1c75 | 16478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16480 | { |
16481 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16482 | if (PyErr_Occurred()) SWIG_fail; | |
16483 | } | |
d14a1e28 RD |
16484 | { |
16485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16486 | (arg1)->SetToolPacking(arg2); | |
16487 | ||
16488 | wxPyEndAllowThreads(__tstate); | |
16489 | if (PyErr_Occurred()) SWIG_fail; | |
16490 | } | |
16491 | Py_INCREF(Py_None); resultobj = Py_None; | |
16492 | return resultobj; | |
16493 | fail: | |
16494 | return NULL; | |
16495 | } | |
16496 | ||
16497 | ||
16498 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16499 | PyObject *resultobj; | |
16500 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16501 | int arg2 ; | |
16502 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16503 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16504 | char *kwnames[] = { |
16505 | (char *) "self",(char *) "separation", NULL | |
16506 | }; | |
16507 | ||
8edf1c75 | 16508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16510 | { |
16511 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16512 | if (PyErr_Occurred()) SWIG_fail; | |
16513 | } | |
d14a1e28 RD |
16514 | { |
16515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16516 | (arg1)->SetToolSeparation(arg2); | |
16517 | ||
16518 | wxPyEndAllowThreads(__tstate); | |
16519 | if (PyErr_Occurred()) SWIG_fail; | |
16520 | } | |
16521 | Py_INCREF(Py_None); resultobj = Py_None; | |
16522 | return resultobj; | |
16523 | fail: | |
16524 | return NULL; | |
16525 | } | |
16526 | ||
16527 | ||
16528 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16529 | PyObject *resultobj; | |
16530 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16531 | wxSize result; | |
16532 | PyObject * obj0 = 0 ; | |
16533 | char *kwnames[] = { | |
16534 | (char *) "self", NULL | |
16535 | }; | |
16536 | ||
16537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
16538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16539 | { | |
16540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16541 | result = (arg1)->GetToolMargins(); | |
16542 | ||
16543 | wxPyEndAllowThreads(__tstate); | |
16544 | if (PyErr_Occurred()) SWIG_fail; | |
16545 | } | |
16546 | { | |
16547 | wxSize * resultptr; | |
16548 | resultptr = new wxSize((wxSize &) result); | |
16549 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16550 | } | |
16551 | return resultobj; | |
16552 | fail: | |
16553 | return NULL; | |
16554 | } | |
16555 | ||
16556 | ||
16557 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16558 | PyObject *resultobj; | |
16559 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16560 | wxSize result; | |
16561 | PyObject * obj0 = 0 ; | |
16562 | char *kwnames[] = { | |
16563 | (char *) "self", NULL | |
16564 | }; | |
16565 | ||
16566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
16567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16568 | { | |
16569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16570 | result = (arg1)->GetMargins(); | |
16571 | ||
16572 | wxPyEndAllowThreads(__tstate); | |
16573 | if (PyErr_Occurred()) SWIG_fail; | |
16574 | } | |
16575 | { | |
16576 | wxSize * resultptr; | |
16577 | resultptr = new wxSize((wxSize &) result); | |
16578 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16579 | } | |
16580 | return resultobj; | |
16581 | fail: | |
16582 | return NULL; | |
16583 | } | |
16584 | ||
16585 | ||
16586 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16587 | PyObject *resultobj; | |
16588 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16589 | int result; | |
16590 | PyObject * obj0 = 0 ; | |
16591 | char *kwnames[] = { | |
16592 | (char *) "self", NULL | |
16593 | }; | |
16594 | ||
16595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
16596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16597 | { | |
16598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16599 | result = (int)(arg1)->GetToolPacking(); | |
16600 | ||
16601 | wxPyEndAllowThreads(__tstate); | |
16602 | if (PyErr_Occurred()) SWIG_fail; | |
16603 | } | |
8edf1c75 | 16604 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16605 | return resultobj; |
16606 | fail: | |
16607 | return NULL; | |
16608 | } | |
16609 | ||
16610 | ||
16611 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16612 | PyObject *resultobj; | |
16613 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16614 | int result; | |
16615 | PyObject * obj0 = 0 ; | |
16616 | char *kwnames[] = { | |
16617 | (char *) "self", NULL | |
16618 | }; | |
16619 | ||
16620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
16621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16622 | { | |
16623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16624 | result = (int)(arg1)->GetToolSeparation(); | |
16625 | ||
16626 | wxPyEndAllowThreads(__tstate); | |
16627 | if (PyErr_Occurred()) SWIG_fail; | |
16628 | } | |
8edf1c75 | 16629 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16630 | return resultobj; |
16631 | fail: | |
16632 | return NULL; | |
16633 | } | |
16634 | ||
16635 | ||
16636 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16637 | PyObject *resultobj; | |
16638 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16639 | int arg2 ; | |
16640 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16641 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16642 | char *kwnames[] = { |
16643 | (char *) "self",(char *) "nRows", NULL | |
16644 | }; | |
16645 | ||
8edf1c75 | 16646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16648 | { |
16649 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16650 | if (PyErr_Occurred()) SWIG_fail; | |
16651 | } | |
d14a1e28 RD |
16652 | { |
16653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16654 | (arg1)->SetRows(arg2); | |
16655 | ||
16656 | wxPyEndAllowThreads(__tstate); | |
16657 | if (PyErr_Occurred()) SWIG_fail; | |
16658 | } | |
16659 | Py_INCREF(Py_None); resultobj = Py_None; | |
16660 | return resultobj; | |
16661 | fail: | |
16662 | return NULL; | |
16663 | } | |
16664 | ||
16665 | ||
16666 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16667 | PyObject *resultobj; | |
16668 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16669 | int arg2 ; | |
16670 | int arg3 ; | |
16671 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16672 | PyObject * obj1 = 0 ; |
16673 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16674 | char *kwnames[] = { |
16675 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
16676 | }; | |
16677 | ||
8edf1c75 | 16678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16680 | { |
16681 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16682 | if (PyErr_Occurred()) SWIG_fail; | |
16683 | } | |
16684 | { | |
16685 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16686 | if (PyErr_Occurred()) SWIG_fail; | |
16687 | } | |
d14a1e28 RD |
16688 | { |
16689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16690 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
16691 | ||
16692 | wxPyEndAllowThreads(__tstate); | |
16693 | if (PyErr_Occurred()) SWIG_fail; | |
16694 | } | |
16695 | Py_INCREF(Py_None); resultobj = Py_None; | |
16696 | return resultobj; | |
16697 | fail: | |
16698 | return NULL; | |
16699 | } | |
16700 | ||
16701 | ||
16702 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16703 | PyObject *resultobj; | |
16704 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16705 | int result; | |
16706 | PyObject * obj0 = 0 ; | |
16707 | char *kwnames[] = { | |
16708 | (char *) "self", NULL | |
16709 | }; | |
16710 | ||
16711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
16712 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16713 | { | |
16714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16715 | result = (int)(arg1)->GetMaxRows(); | |
16716 | ||
16717 | wxPyEndAllowThreads(__tstate); | |
16718 | if (PyErr_Occurred()) SWIG_fail; | |
16719 | } | |
8edf1c75 | 16720 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16721 | return resultobj; |
16722 | fail: | |
16723 | return NULL; | |
16724 | } | |
16725 | ||
16726 | ||
16727 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16728 | PyObject *resultobj; | |
16729 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16730 | int result; | |
16731 | PyObject * obj0 = 0 ; | |
16732 | char *kwnames[] = { | |
16733 | (char *) "self", NULL | |
16734 | }; | |
16735 | ||
16736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
16737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16738 | { | |
16739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16740 | result = (int)(arg1)->GetMaxCols(); | |
16741 | ||
16742 | wxPyEndAllowThreads(__tstate); | |
16743 | if (PyErr_Occurred()) SWIG_fail; | |
16744 | } | |
8edf1c75 | 16745 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16746 | return resultobj; |
16747 | fail: | |
16748 | return NULL; | |
16749 | } | |
16750 | ||
16751 | ||
16752 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16753 | PyObject *resultobj; | |
16754 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16755 | wxSize *arg2 = 0 ; | |
16756 | wxSize temp2 ; | |
16757 | PyObject * obj0 = 0 ; | |
16758 | PyObject * obj1 = 0 ; | |
16759 | char *kwnames[] = { | |
16760 | (char *) "self",(char *) "size", NULL | |
16761 | }; | |
16762 | ||
16763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
16764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16765 | { | |
16766 | arg2 = &temp2; | |
16767 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16768 | } | |
16769 | { | |
16770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16771 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
16772 | ||
16773 | wxPyEndAllowThreads(__tstate); | |
16774 | if (PyErr_Occurred()) SWIG_fail; | |
16775 | } | |
16776 | Py_INCREF(Py_None); resultobj = Py_None; | |
16777 | return resultobj; | |
16778 | fail: | |
16779 | return NULL; | |
16780 | } | |
16781 | ||
16782 | ||
16783 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16784 | PyObject *resultobj; | |
16785 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16786 | wxSize result; | |
16787 | PyObject * obj0 = 0 ; | |
16788 | char *kwnames[] = { | |
16789 | (char *) "self", NULL | |
16790 | }; | |
16791 | ||
16792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
16793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16794 | { | |
16795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16796 | result = (arg1)->GetToolBitmapSize(); | |
16797 | ||
16798 | wxPyEndAllowThreads(__tstate); | |
16799 | if (PyErr_Occurred()) SWIG_fail; | |
16800 | } | |
16801 | { | |
16802 | wxSize * resultptr; | |
16803 | resultptr = new wxSize((wxSize &) result); | |
16804 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16805 | } | |
16806 | return resultobj; | |
16807 | fail: | |
16808 | return NULL; | |
16809 | } | |
16810 | ||
16811 | ||
16812 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16813 | PyObject *resultobj; | |
16814 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16815 | wxSize result; | |
16816 | PyObject * obj0 = 0 ; | |
16817 | char *kwnames[] = { | |
16818 | (char *) "self", NULL | |
16819 | }; | |
16820 | ||
16821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
16822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16823 | { | |
16824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16825 | result = (arg1)->GetToolSize(); | |
16826 | ||
16827 | wxPyEndAllowThreads(__tstate); | |
16828 | if (PyErr_Occurred()) SWIG_fail; | |
16829 | } | |
16830 | { | |
16831 | wxSize * resultptr; | |
16832 | resultptr = new wxSize((wxSize &) result); | |
16833 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16834 | } | |
16835 | return resultobj; | |
16836 | fail: | |
16837 | return NULL; | |
16838 | } | |
16839 | ||
16840 | ||
16841 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16842 | PyObject *resultobj; | |
16843 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
423f194a RD |
16844 | int arg2 ; |
16845 | int arg3 ; | |
d14a1e28 RD |
16846 | wxToolBarToolBase *result; |
16847 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16848 | PyObject * obj1 = 0 ; |
16849 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16850 | char *kwnames[] = { |
16851 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16852 | }; | |
16853 | ||
8edf1c75 | 16854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16856 | { |
16857 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16858 | if (PyErr_Occurred()) SWIG_fail; | |
16859 | } | |
16860 | { | |
16861 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16862 | if (PyErr_Occurred()) SWIG_fail; | |
16863 | } | |
d14a1e28 RD |
16864 | { |
16865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16866 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
16867 | ||
16868 | wxPyEndAllowThreads(__tstate); | |
16869 | if (PyErr_Occurred()) SWIG_fail; | |
16870 | } | |
16871 | { | |
16872 | resultobj = wxPyMake_wxObject(result); | |
16873 | } | |
16874 | return resultobj; | |
16875 | fail: | |
16876 | return NULL; | |
16877 | } | |
16878 | ||
16879 | ||
cbd72d4f RD |
16880 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
16881 | PyObject *resultobj; | |
16882 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16883 | int arg2 ; | |
16884 | wxToolBarToolBase *result; | |
16885 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16886 | PyObject * obj1 = 0 ; |
cbd72d4f RD |
16887 | char *kwnames[] = { |
16888 | (char *) "self",(char *) "toolid", NULL | |
16889 | }; | |
16890 | ||
8edf1c75 | 16891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
cbd72d4f | 16892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16893 | { |
16894 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16895 | if (PyErr_Occurred()) SWIG_fail; | |
16896 | } | |
cbd72d4f RD |
16897 | { |
16898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16899 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
16900 | ||
16901 | wxPyEndAllowThreads(__tstate); | |
16902 | if (PyErr_Occurred()) SWIG_fail; | |
16903 | } | |
16904 | { | |
16905 | resultobj = wxPyMake_wxObject(result); | |
16906 | } | |
16907 | return resultobj; | |
16908 | fail: | |
16909 | return NULL; | |
16910 | } | |
16911 | ||
16912 | ||
d14a1e28 RD |
16913 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
16914 | PyObject *resultobj; | |
16915 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16916 | bool result; | |
16917 | PyObject * obj0 = 0 ; | |
16918 | char *kwnames[] = { | |
16919 | (char *) "self", NULL | |
16920 | }; | |
16921 | ||
16922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
16923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16924 | { | |
16925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16926 | result = (bool)(arg1)->IsVertical(); | |
16927 | ||
16928 | wxPyEndAllowThreads(__tstate); | |
16929 | if (PyErr_Occurred()) SWIG_fail; | |
16930 | } | |
02a34c4c | 16931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16932 | return resultobj; |
16933 | fail: | |
16934 | return NULL; | |
16935 | } | |
16936 | ||
16937 | ||
16938 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
16939 | PyObject *obj; | |
16940 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16941 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
16942 | Py_INCREF(obj); | |
16943 | return Py_BuildValue((char *)""); | |
16944 | } | |
16945 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16946 | PyObject *resultobj; | |
16947 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 16948 | int arg2 ; |
d14a1e28 RD |
16949 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
16950 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16951 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
16952 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
16953 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
16954 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
16955 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
16956 | wxToolBar *result; | |
16957 | wxPoint temp3 ; | |
16958 | wxSize temp4 ; | |
423f194a | 16959 | bool temp6 = False ; |
d14a1e28 | 16960 | PyObject * obj0 = 0 ; |
8edf1c75 | 16961 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16962 | PyObject * obj2 = 0 ; |
16963 | PyObject * obj3 = 0 ; | |
8edf1c75 | 16964 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16965 | PyObject * obj5 = 0 ; |
16966 | char *kwnames[] = { | |
16967 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16968 | }; | |
16969 | ||
8edf1c75 | 16970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 16971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16972 | { |
16973 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16974 | if (PyErr_Occurred()) SWIG_fail; | |
16975 | } | |
d14a1e28 RD |
16976 | if (obj2) { |
16977 | { | |
16978 | arg3 = &temp3; | |
16979 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16980 | } | |
16981 | } | |
16982 | if (obj3) { | |
16983 | { | |
16984 | arg4 = &temp4; | |
16985 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
16986 | } | |
16987 | } | |
8edf1c75 RD |
16988 | if (obj4) { |
16989 | { | |
16990 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
16991 | if (PyErr_Occurred()) SWIG_fail; | |
16992 | } | |
16993 | } | |
d14a1e28 RD |
16994 | if (obj5) { |
16995 | { | |
16996 | arg6 = wxString_in_helper(obj5); | |
16997 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 16998 | temp6 = True; |
d14a1e28 RD |
16999 | } |
17000 | } | |
17001 | { | |
17002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17003 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17004 | ||
17005 | wxPyEndAllowThreads(__tstate); | |
17006 | if (PyErr_Occurred()) SWIG_fail; | |
17007 | } | |
17008 | { | |
17009 | resultobj = wxPyMake_wxObject(result); | |
17010 | } | |
17011 | { | |
17012 | if (temp6) | |
17013 | delete arg6; | |
17014 | } | |
17015 | return resultobj; | |
17016 | fail: | |
17017 | { | |
17018 | if (temp6) | |
17019 | delete arg6; | |
17020 | } | |
17021 | return NULL; | |
17022 | } | |
17023 | ||
17024 | ||
17025 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17026 | PyObject *resultobj; | |
17027 | wxToolBar *result; | |
17028 | char *kwnames[] = { | |
17029 | NULL | |
17030 | }; | |
17031 | ||
17032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
17033 | { | |
17034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17035 | result = (wxToolBar *)new wxToolBar(); | |
17036 | ||
17037 | wxPyEndAllowThreads(__tstate); | |
17038 | if (PyErr_Occurred()) SWIG_fail; | |
17039 | } | |
17040 | { | |
17041 | resultobj = wxPyMake_wxObject(result); | |
17042 | } | |
17043 | return resultobj; | |
17044 | fail: | |
17045 | return NULL; | |
17046 | } | |
17047 | ||
17048 | ||
17049 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17050 | PyObject *resultobj; | |
17051 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
17052 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 17053 | int arg3 ; |
d14a1e28 RD |
17054 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17055 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17056 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17057 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17058 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17059 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
17060 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17061 | bool result; | |
17062 | wxPoint temp4 ; | |
17063 | wxSize temp5 ; | |
423f194a | 17064 | bool temp7 = False ; |
d14a1e28 RD |
17065 | PyObject * obj0 = 0 ; |
17066 | PyObject * obj1 = 0 ; | |
8edf1c75 | 17067 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17068 | PyObject * obj3 = 0 ; |
17069 | PyObject * obj4 = 0 ; | |
8edf1c75 | 17070 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17071 | PyObject * obj6 = 0 ; |
17072 | char *kwnames[] = { | |
17073 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17074 | }; | |
17075 | ||
8edf1c75 | 17076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
17077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
17078 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
17079 | { |
17080 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17081 | if (PyErr_Occurred()) SWIG_fail; | |
17082 | } | |
d14a1e28 RD |
17083 | if (obj3) { |
17084 | { | |
17085 | arg4 = &temp4; | |
17086 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17087 | } | |
17088 | } | |
17089 | if (obj4) { | |
17090 | { | |
17091 | arg5 = &temp5; | |
17092 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17093 | } | |
17094 | } | |
8edf1c75 RD |
17095 | if (obj5) { |
17096 | { | |
17097 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
17098 | if (PyErr_Occurred()) SWIG_fail; | |
17099 | } | |
17100 | } | |
d14a1e28 RD |
17101 | if (obj6) { |
17102 | { | |
17103 | arg7 = wxString_in_helper(obj6); | |
17104 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 17105 | temp7 = True; |
d14a1e28 RD |
17106 | } |
17107 | } | |
17108 | { | |
17109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17110 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17111 | ||
17112 | wxPyEndAllowThreads(__tstate); | |
17113 | if (PyErr_Occurred()) SWIG_fail; | |
17114 | } | |
02a34c4c | 17115 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17116 | { |
17117 | if (temp7) | |
17118 | delete arg7; | |
17119 | } | |
17120 | return resultobj; | |
17121 | fail: | |
17122 | { | |
17123 | if (temp7) | |
17124 | delete arg7; | |
17125 | } | |
17126 | return NULL; | |
17127 | } | |
17128 | ||
17129 | ||
17130 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17131 | PyObject *resultobj; | |
17132 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
423f194a RD |
17133 | int arg2 ; |
17134 | int arg3 ; | |
d14a1e28 RD |
17135 | wxToolBarToolBase *result; |
17136 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17137 | PyObject * obj1 = 0 ; |
17138 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17139 | char *kwnames[] = { |
17140 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17141 | }; | |
17142 | ||
8edf1c75 | 17143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17145 | { |
17146 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17147 | if (PyErr_Occurred()) SWIG_fail; | |
17148 | } | |
17149 | { | |
17150 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17151 | if (PyErr_Occurred()) SWIG_fail; | |
17152 | } | |
d14a1e28 RD |
17153 | { |
17154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17155 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17156 | ||
17157 | wxPyEndAllowThreads(__tstate); | |
17158 | if (PyErr_Occurred()) SWIG_fail; | |
17159 | } | |
17160 | { | |
17161 | resultobj = wxPyMake_wxObject(result); | |
17162 | } | |
17163 | return resultobj; | |
17164 | fail: | |
17165 | return NULL; | |
17166 | } | |
17167 | ||
17168 | ||
17169 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
17170 | PyObject *obj; | |
17171 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17172 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
17173 | Py_INCREF(obj); | |
17174 | return Py_BuildValue((char *)""); | |
17175 | } | |
8edf1c75 | 17176 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
cbd72d4f RD |
17177 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
17178 | return 1; | |
17179 | } | |
17180 | ||
17181 | ||
17182 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
17183 | PyObject *pyobj; | |
17184 | ||
17185 | { | |
17186 | #if wxUSE_UNICODE | |
17187 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17188 | #else | |
17189 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17190 | #endif | |
17191 | } | |
17192 | return pyobj; | |
17193 | } | |
17194 | ||
17195 | ||
d14a1e28 RD |
17196 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
17197 | PyObject *resultobj; | |
17198 | wxColour const &arg1_defvalue = wxNullColour ; | |
17199 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
17200 | wxColour const &arg2_defvalue = wxNullColour ; | |
17201 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
17202 | wxFont const &arg3_defvalue = wxNullFont ; | |
17203 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
17204 | wxListItemAttr *result; | |
17205 | wxColour temp1 ; | |
17206 | wxColour temp2 ; | |
17207 | PyObject * obj0 = 0 ; | |
17208 | PyObject * obj1 = 0 ; | |
17209 | PyObject * obj2 = 0 ; | |
17210 | char *kwnames[] = { | |
17211 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
17212 | }; | |
17213 | ||
17214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17215 | if (obj0) { | |
17216 | { | |
17217 | arg1 = &temp1; | |
17218 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
17219 | } | |
17220 | } | |
17221 | if (obj1) { | |
17222 | { | |
17223 | arg2 = &temp2; | |
17224 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17225 | } | |
17226 | } | |
17227 | if (obj2) { | |
17228 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17229 | if (arg3 == NULL) { | |
17230 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17231 | } | |
17232 | } | |
17233 | { | |
17234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17235 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
17236 | ||
17237 | wxPyEndAllowThreads(__tstate); | |
17238 | if (PyErr_Occurred()) SWIG_fail; | |
17239 | } | |
17240 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 1); | |
17241 | return resultobj; | |
17242 | fail: | |
17243 | return NULL; | |
17244 | } | |
17245 | ||
17246 | ||
17247 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17248 | PyObject *resultobj; | |
17249 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17250 | wxColour *arg2 = 0 ; | |
17251 | wxColour temp2 ; | |
17252 | PyObject * obj0 = 0 ; | |
17253 | PyObject * obj1 = 0 ; | |
17254 | char *kwnames[] = { | |
17255 | (char *) "self",(char *) "colText", NULL | |
17256 | }; | |
17257 | ||
17258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
17259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17260 | { | |
17261 | arg2 = &temp2; | |
17262 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17263 | } | |
17264 | { | |
17265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17266 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
17267 | ||
17268 | wxPyEndAllowThreads(__tstate); | |
17269 | if (PyErr_Occurred()) SWIG_fail; | |
17270 | } | |
17271 | Py_INCREF(Py_None); resultobj = Py_None; | |
17272 | return resultobj; | |
17273 | fail: | |
17274 | return NULL; | |
17275 | } | |
17276 | ||
17277 | ||
17278 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17279 | PyObject *resultobj; | |
17280 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17281 | wxColour *arg2 = 0 ; | |
17282 | wxColour temp2 ; | |
17283 | PyObject * obj0 = 0 ; | |
17284 | PyObject * obj1 = 0 ; | |
17285 | char *kwnames[] = { | |
17286 | (char *) "self",(char *) "colBack", NULL | |
17287 | }; | |
17288 | ||
17289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17291 | { | |
17292 | arg2 = &temp2; | |
17293 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17294 | } | |
17295 | { | |
17296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17297 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17298 | ||
17299 | wxPyEndAllowThreads(__tstate); | |
17300 | if (PyErr_Occurred()) SWIG_fail; | |
17301 | } | |
17302 | Py_INCREF(Py_None); resultobj = Py_None; | |
17303 | return resultobj; | |
17304 | fail: | |
17305 | return NULL; | |
17306 | } | |
17307 | ||
17308 | ||
17309 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17310 | PyObject *resultobj; | |
17311 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17312 | wxFont *arg2 = 0 ; | |
17313 | PyObject * obj0 = 0 ; | |
17314 | PyObject * obj1 = 0 ; | |
17315 | char *kwnames[] = { | |
17316 | (char *) "self",(char *) "font", NULL | |
17317 | }; | |
17318 | ||
17319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
17320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17321 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17322 | if (arg2 == NULL) { | |
17323 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17324 | } | |
17325 | { | |
17326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17327 | (arg1)->SetFont((wxFont const &)*arg2); | |
17328 | ||
17329 | wxPyEndAllowThreads(__tstate); | |
17330 | if (PyErr_Occurred()) SWIG_fail; | |
17331 | } | |
17332 | Py_INCREF(Py_None); resultobj = Py_None; | |
17333 | return resultobj; | |
17334 | fail: | |
17335 | return NULL; | |
17336 | } | |
17337 | ||
17338 | ||
17339 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17340 | PyObject *resultobj; | |
17341 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17342 | bool result; | |
17343 | PyObject * obj0 = 0 ; | |
17344 | char *kwnames[] = { | |
17345 | (char *) "self", NULL | |
17346 | }; | |
17347 | ||
17348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
17349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17350 | { | |
17351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17352 | result = (bool)(arg1)->HasTextColour(); | |
17353 | ||
17354 | wxPyEndAllowThreads(__tstate); | |
17355 | if (PyErr_Occurred()) SWIG_fail; | |
17356 | } | |
02a34c4c | 17357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17358 | return resultobj; |
17359 | fail: | |
17360 | return NULL; | |
17361 | } | |
17362 | ||
17363 | ||
17364 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17365 | PyObject *resultobj; | |
17366 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17367 | bool result; | |
17368 | PyObject * obj0 = 0 ; | |
17369 | char *kwnames[] = { | |
17370 | (char *) "self", NULL | |
17371 | }; | |
17372 | ||
17373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
17374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17375 | { | |
17376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17377 | result = (bool)(arg1)->HasBackgroundColour(); | |
17378 | ||
17379 | wxPyEndAllowThreads(__tstate); | |
17380 | if (PyErr_Occurred()) SWIG_fail; | |
17381 | } | |
02a34c4c | 17382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17383 | return resultobj; |
17384 | fail: | |
17385 | return NULL; | |
17386 | } | |
17387 | ||
17388 | ||
17389 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17390 | PyObject *resultobj; | |
17391 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17392 | bool result; | |
17393 | PyObject * obj0 = 0 ; | |
17394 | char *kwnames[] = { | |
17395 | (char *) "self", NULL | |
17396 | }; | |
17397 | ||
17398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
17399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17400 | { | |
17401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17402 | result = (bool)(arg1)->HasFont(); | |
17403 | ||
17404 | wxPyEndAllowThreads(__tstate); | |
17405 | if (PyErr_Occurred()) SWIG_fail; | |
17406 | } | |
02a34c4c | 17407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17408 | return resultobj; |
17409 | fail: | |
17410 | return NULL; | |
17411 | } | |
17412 | ||
17413 | ||
17414 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17415 | PyObject *resultobj; | |
17416 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17417 | wxColour result; | |
17418 | PyObject * obj0 = 0 ; | |
17419 | char *kwnames[] = { | |
17420 | (char *) "self", NULL | |
17421 | }; | |
17422 | ||
17423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
17424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17425 | { | |
17426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17427 | result = (arg1)->GetTextColour(); | |
17428 | ||
17429 | wxPyEndAllowThreads(__tstate); | |
17430 | if (PyErr_Occurred()) SWIG_fail; | |
17431 | } | |
17432 | { | |
17433 | wxColour * resultptr; | |
17434 | resultptr = new wxColour((wxColour &) result); | |
17435 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17436 | } | |
17437 | return resultobj; | |
17438 | fail: | |
17439 | return NULL; | |
17440 | } | |
17441 | ||
17442 | ||
17443 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17444 | PyObject *resultobj; | |
17445 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17446 | wxColour result; | |
17447 | PyObject * obj0 = 0 ; | |
17448 | char *kwnames[] = { | |
17449 | (char *) "self", NULL | |
17450 | }; | |
17451 | ||
17452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
17453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17454 | { | |
17455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17456 | result = (arg1)->GetBackgroundColour(); | |
17457 | ||
17458 | wxPyEndAllowThreads(__tstate); | |
17459 | if (PyErr_Occurred()) SWIG_fail; | |
17460 | } | |
17461 | { | |
17462 | wxColour * resultptr; | |
17463 | resultptr = new wxColour((wxColour &) result); | |
17464 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17465 | } | |
17466 | return resultobj; | |
17467 | fail: | |
17468 | return NULL; | |
17469 | } | |
17470 | ||
17471 | ||
17472 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17473 | PyObject *resultobj; | |
17474 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17475 | wxFont result; | |
17476 | PyObject * obj0 = 0 ; | |
17477 | char *kwnames[] = { | |
17478 | (char *) "self", NULL | |
17479 | }; | |
17480 | ||
17481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
17482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17483 | { | |
17484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17485 | result = (arg1)->GetFont(); | |
17486 | ||
17487 | wxPyEndAllowThreads(__tstate); | |
17488 | if (PyErr_Occurred()) SWIG_fail; | |
17489 | } | |
17490 | { | |
17491 | wxFont * resultptr; | |
17492 | resultptr = new wxFont((wxFont &) result); | |
17493 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
17494 | } | |
17495 | return resultobj; | |
17496 | fail: | |
17497 | return NULL; | |
17498 | } | |
17499 | ||
17500 | ||
17501 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17502 | PyObject *resultobj; | |
17503 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17504 | PyObject * obj0 = 0 ; | |
17505 | char *kwnames[] = { | |
17506 | (char *) "self", NULL | |
17507 | }; | |
17508 | ||
17509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
17510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17511 | { | |
17512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17513 | wxListItemAttr_Destroy(arg1); | |
17514 | ||
17515 | wxPyEndAllowThreads(__tstate); | |
17516 | if (PyErr_Occurred()) SWIG_fail; | |
17517 | } | |
17518 | Py_INCREF(Py_None); resultobj = Py_None; | |
17519 | return resultobj; | |
17520 | fail: | |
17521 | return NULL; | |
17522 | } | |
17523 | ||
17524 | ||
17525 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
17526 | PyObject *obj; | |
17527 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17528 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
17529 | Py_INCREF(obj); | |
17530 | return Py_BuildValue((char *)""); | |
17531 | } | |
17532 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17533 | PyObject *resultobj; | |
17534 | wxListItem *result; | |
17535 | char *kwnames[] = { | |
17536 | NULL | |
17537 | }; | |
17538 | ||
17539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
17540 | { | |
17541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17542 | result = (wxListItem *)new wxListItem(); | |
17543 | ||
17544 | wxPyEndAllowThreads(__tstate); | |
17545 | if (PyErr_Occurred()) SWIG_fail; | |
17546 | } | |
17547 | { | |
17548 | resultobj = wxPyMake_wxObject(result); | |
17549 | } | |
17550 | return resultobj; | |
17551 | fail: | |
17552 | return NULL; | |
17553 | } | |
17554 | ||
17555 | ||
17556 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17557 | PyObject *resultobj; | |
17558 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17559 | PyObject * obj0 = 0 ; | |
17560 | char *kwnames[] = { | |
17561 | (char *) "self", NULL | |
17562 | }; | |
17563 | ||
17564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
17565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17566 | { | |
17567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17568 | delete arg1; | |
17569 | ||
17570 | wxPyEndAllowThreads(__tstate); | |
17571 | if (PyErr_Occurred()) SWIG_fail; | |
17572 | } | |
17573 | Py_INCREF(Py_None); resultobj = Py_None; | |
17574 | return resultobj; | |
17575 | fail: | |
17576 | return NULL; | |
17577 | } | |
17578 | ||
17579 | ||
17580 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17581 | PyObject *resultobj; | |
17582 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17583 | PyObject * obj0 = 0 ; | |
17584 | char *kwnames[] = { | |
17585 | (char *) "self", NULL | |
17586 | }; | |
17587 | ||
17588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
17589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17590 | { | |
17591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17592 | (arg1)->Clear(); | |
17593 | ||
17594 | wxPyEndAllowThreads(__tstate); | |
17595 | if (PyErr_Occurred()) SWIG_fail; | |
17596 | } | |
17597 | Py_INCREF(Py_None); resultobj = Py_None; | |
17598 | return resultobj; | |
17599 | fail: | |
17600 | return NULL; | |
17601 | } | |
17602 | ||
17603 | ||
17604 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17605 | PyObject *resultobj; | |
17606 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17607 | PyObject * obj0 = 0 ; | |
17608 | char *kwnames[] = { | |
17609 | (char *) "self", NULL | |
17610 | }; | |
17611 | ||
17612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
17613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17614 | { | |
17615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17616 | (arg1)->ClearAttributes(); | |
17617 | ||
17618 | wxPyEndAllowThreads(__tstate); | |
17619 | if (PyErr_Occurred()) SWIG_fail; | |
17620 | } | |
17621 | Py_INCREF(Py_None); resultobj = Py_None; | |
17622 | return resultobj; | |
17623 | fail: | |
17624 | return NULL; | |
17625 | } | |
17626 | ||
17627 | ||
17628 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17629 | PyObject *resultobj; | |
17630 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17631 | long arg2 ; | |
17632 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17633 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17634 | char *kwnames[] = { |
17635 | (char *) "self",(char *) "mask", NULL | |
17636 | }; | |
17637 | ||
8edf1c75 | 17638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17640 | { |
17641 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17642 | if (PyErr_Occurred()) SWIG_fail; | |
17643 | } | |
d14a1e28 RD |
17644 | { |
17645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17646 | (arg1)->SetMask(arg2); | |
17647 | ||
17648 | wxPyEndAllowThreads(__tstate); | |
17649 | if (PyErr_Occurred()) SWIG_fail; | |
17650 | } | |
17651 | Py_INCREF(Py_None); resultobj = Py_None; | |
17652 | return resultobj; | |
17653 | fail: | |
17654 | return NULL; | |
17655 | } | |
17656 | ||
17657 | ||
17658 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17659 | PyObject *resultobj; | |
17660 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17661 | long arg2 ; | |
17662 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17663 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17664 | char *kwnames[] = { |
17665 | (char *) "self",(char *) "id", NULL | |
17666 | }; | |
17667 | ||
8edf1c75 | 17668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17670 | { |
17671 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17672 | if (PyErr_Occurred()) SWIG_fail; | |
17673 | } | |
d14a1e28 RD |
17674 | { |
17675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17676 | (arg1)->SetId(arg2); | |
17677 | ||
17678 | wxPyEndAllowThreads(__tstate); | |
17679 | if (PyErr_Occurred()) SWIG_fail; | |
17680 | } | |
17681 | Py_INCREF(Py_None); resultobj = Py_None; | |
17682 | return resultobj; | |
17683 | fail: | |
17684 | return NULL; | |
17685 | } | |
17686 | ||
17687 | ||
17688 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17689 | PyObject *resultobj; | |
17690 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17691 | int arg2 ; | |
17692 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17693 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17694 | char *kwnames[] = { |
17695 | (char *) "self",(char *) "col", NULL | |
17696 | }; | |
17697 | ||
8edf1c75 | 17698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17700 | { |
17701 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17702 | if (PyErr_Occurred()) SWIG_fail; | |
17703 | } | |
d14a1e28 RD |
17704 | { |
17705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17706 | (arg1)->SetColumn(arg2); | |
17707 | ||
17708 | wxPyEndAllowThreads(__tstate); | |
17709 | if (PyErr_Occurred()) SWIG_fail; | |
17710 | } | |
17711 | Py_INCREF(Py_None); resultobj = Py_None; | |
17712 | return resultobj; | |
17713 | fail: | |
17714 | return NULL; | |
17715 | } | |
17716 | ||
17717 | ||
17718 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17719 | PyObject *resultobj; | |
17720 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17721 | long arg2 ; | |
17722 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17723 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17724 | char *kwnames[] = { |
17725 | (char *) "self",(char *) "state", NULL | |
17726 | }; | |
17727 | ||
8edf1c75 | 17728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17730 | { |
17731 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17732 | if (PyErr_Occurred()) SWIG_fail; | |
17733 | } | |
d14a1e28 RD |
17734 | { |
17735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17736 | (arg1)->SetState(arg2); | |
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 *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17749 | PyObject *resultobj; | |
17750 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17751 | long arg2 ; | |
17752 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17753 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17754 | char *kwnames[] = { |
17755 | (char *) "self",(char *) "stateMask", NULL | |
17756 | }; | |
17757 | ||
8edf1c75 | 17758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17760 | { |
17761 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17762 | if (PyErr_Occurred()) SWIG_fail; | |
17763 | } | |
d14a1e28 RD |
17764 | { |
17765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17766 | (arg1)->SetStateMask(arg2); | |
17767 | ||
17768 | wxPyEndAllowThreads(__tstate); | |
17769 | if (PyErr_Occurred()) SWIG_fail; | |
17770 | } | |
17771 | Py_INCREF(Py_None); resultobj = Py_None; | |
17772 | return resultobj; | |
17773 | fail: | |
17774 | return NULL; | |
17775 | } | |
17776 | ||
17777 | ||
17778 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17779 | PyObject *resultobj; | |
17780 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17781 | wxString *arg2 = 0 ; | |
423f194a | 17782 | bool temp2 = False ; |
d14a1e28 RD |
17783 | PyObject * obj0 = 0 ; |
17784 | PyObject * obj1 = 0 ; | |
17785 | char *kwnames[] = { | |
17786 | (char *) "self",(char *) "text", NULL | |
17787 | }; | |
17788 | ||
17789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
17790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17791 | { | |
17792 | arg2 = wxString_in_helper(obj1); | |
17793 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17794 | temp2 = True; |
d14a1e28 RD |
17795 | } |
17796 | { | |
17797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17798 | (arg1)->SetText((wxString const &)*arg2); | |
17799 | ||
17800 | wxPyEndAllowThreads(__tstate); | |
17801 | if (PyErr_Occurred()) SWIG_fail; | |
17802 | } | |
17803 | Py_INCREF(Py_None); resultobj = Py_None; | |
17804 | { | |
17805 | if (temp2) | |
17806 | delete arg2; | |
17807 | } | |
17808 | return resultobj; | |
17809 | fail: | |
17810 | { | |
17811 | if (temp2) | |
17812 | delete arg2; | |
17813 | } | |
17814 | return NULL; | |
17815 | } | |
17816 | ||
17817 | ||
17818 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17819 | PyObject *resultobj; | |
17820 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17821 | int arg2 ; | |
17822 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17823 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17824 | char *kwnames[] = { |
17825 | (char *) "self",(char *) "image", NULL | |
17826 | }; | |
17827 | ||
8edf1c75 | 17828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17830 | { |
17831 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17832 | if (PyErr_Occurred()) SWIG_fail; | |
17833 | } | |
d14a1e28 RD |
17834 | { |
17835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17836 | (arg1)->SetImage(arg2); | |
17837 | ||
17838 | wxPyEndAllowThreads(__tstate); | |
17839 | if (PyErr_Occurred()) SWIG_fail; | |
17840 | } | |
17841 | Py_INCREF(Py_None); resultobj = Py_None; | |
17842 | return resultobj; | |
17843 | fail: | |
17844 | return NULL; | |
17845 | } | |
17846 | ||
17847 | ||
17848 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17849 | PyObject *resultobj; | |
17850 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17851 | long arg2 ; | |
17852 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17853 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17854 | char *kwnames[] = { |
17855 | (char *) "self",(char *) "data", NULL | |
17856 | }; | |
17857 | ||
8edf1c75 | 17858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17860 | { |
17861 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17862 | if (PyErr_Occurred()) SWIG_fail; | |
17863 | } | |
d14a1e28 RD |
17864 | { |
17865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17866 | (arg1)->SetData(arg2); | |
17867 | ||
17868 | wxPyEndAllowThreads(__tstate); | |
17869 | if (PyErr_Occurred()) SWIG_fail; | |
17870 | } | |
17871 | Py_INCREF(Py_None); resultobj = Py_None; | |
17872 | return resultobj; | |
17873 | fail: | |
17874 | return NULL; | |
17875 | } | |
17876 | ||
17877 | ||
17878 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17879 | PyObject *resultobj; | |
17880 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17881 | int arg2 ; | |
17882 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17883 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17884 | char *kwnames[] = { |
17885 | (char *) "self",(char *) "width", NULL | |
17886 | }; | |
17887 | ||
8edf1c75 | 17888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17890 | { |
17891 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17892 | if (PyErr_Occurred()) SWIG_fail; | |
17893 | } | |
d14a1e28 RD |
17894 | { |
17895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17896 | (arg1)->SetWidth(arg2); | |
17897 | ||
17898 | wxPyEndAllowThreads(__tstate); | |
17899 | if (PyErr_Occurred()) SWIG_fail; | |
17900 | } | |
17901 | Py_INCREF(Py_None); resultobj = Py_None; | |
17902 | return resultobj; | |
17903 | fail: | |
17904 | return NULL; | |
17905 | } | |
17906 | ||
17907 | ||
17908 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17909 | PyObject *resultobj; | |
17910 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17911 | int arg2 ; | |
17912 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17913 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17914 | char *kwnames[] = { |
17915 | (char *) "self",(char *) "align", NULL | |
17916 | }; | |
17917 | ||
8edf1c75 | 17918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17920 | { |
17921 | arg2 = (wxListColumnFormat) SWIG_PyObj_AsInt(obj1); | |
17922 | if (PyErr_Occurred()) SWIG_fail; | |
17923 | } | |
d14a1e28 RD |
17924 | { |
17925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17926 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
17927 | ||
17928 | wxPyEndAllowThreads(__tstate); | |
17929 | if (PyErr_Occurred()) SWIG_fail; | |
17930 | } | |
17931 | Py_INCREF(Py_None); resultobj = Py_None; | |
17932 | return resultobj; | |
17933 | fail: | |
17934 | return NULL; | |
17935 | } | |
17936 | ||
17937 | ||
17938 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17939 | PyObject *resultobj; | |
17940 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17941 | wxColour *arg2 = 0 ; | |
17942 | wxColour temp2 ; | |
17943 | PyObject * obj0 = 0 ; | |
17944 | PyObject * obj1 = 0 ; | |
17945 | char *kwnames[] = { | |
17946 | (char *) "self",(char *) "colText", NULL | |
17947 | }; | |
17948 | ||
17949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
17950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17951 | { | |
17952 | arg2 = &temp2; | |
17953 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17954 | } | |
17955 | { | |
17956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17957 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
17958 | ||
17959 | wxPyEndAllowThreads(__tstate); | |
17960 | if (PyErr_Occurred()) SWIG_fail; | |
17961 | } | |
17962 | Py_INCREF(Py_None); resultobj = Py_None; | |
17963 | return resultobj; | |
17964 | fail: | |
17965 | return NULL; | |
17966 | } | |
17967 | ||
17968 | ||
17969 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17970 | PyObject *resultobj; | |
17971 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17972 | wxColour *arg2 = 0 ; | |
17973 | wxColour temp2 ; | |
17974 | PyObject * obj0 = 0 ; | |
17975 | PyObject * obj1 = 0 ; | |
17976 | char *kwnames[] = { | |
17977 | (char *) "self",(char *) "colBack", NULL | |
17978 | }; | |
17979 | ||
17980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17982 | { | |
17983 | arg2 = &temp2; | |
17984 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17985 | } | |
17986 | { | |
17987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17988 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17989 | ||
17990 | wxPyEndAllowThreads(__tstate); | |
17991 | if (PyErr_Occurred()) SWIG_fail; | |
17992 | } | |
17993 | Py_INCREF(Py_None); resultobj = Py_None; | |
17994 | return resultobj; | |
17995 | fail: | |
17996 | return NULL; | |
17997 | } | |
17998 | ||
17999 | ||
18000 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18001 | PyObject *resultobj; | |
18002 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18003 | wxFont *arg2 = 0 ; | |
18004 | PyObject * obj0 = 0 ; | |
18005 | PyObject * obj1 = 0 ; | |
18006 | char *kwnames[] = { | |
18007 | (char *) "self",(char *) "font", NULL | |
18008 | }; | |
18009 | ||
18010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
18011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18012 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18013 | if (arg2 == NULL) { | |
18014 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18015 | } | |
18016 | { | |
18017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18018 | (arg1)->SetFont((wxFont const &)*arg2); | |
18019 | ||
18020 | wxPyEndAllowThreads(__tstate); | |
18021 | if (PyErr_Occurred()) SWIG_fail; | |
18022 | } | |
18023 | Py_INCREF(Py_None); resultobj = Py_None; | |
18024 | return resultobj; | |
18025 | fail: | |
18026 | return NULL; | |
18027 | } | |
18028 | ||
18029 | ||
18030 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18031 | PyObject *resultobj; | |
18032 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18033 | long result; | |
18034 | PyObject * obj0 = 0 ; | |
18035 | char *kwnames[] = { | |
18036 | (char *) "self", NULL | |
18037 | }; | |
18038 | ||
18039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
18040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18041 | { | |
18042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18043 | result = (long)(arg1)->GetMask(); | |
18044 | ||
18045 | wxPyEndAllowThreads(__tstate); | |
18046 | if (PyErr_Occurred()) SWIG_fail; | |
18047 | } | |
8edf1c75 | 18048 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18049 | return resultobj; |
18050 | fail: | |
18051 | return NULL; | |
18052 | } | |
18053 | ||
18054 | ||
18055 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18056 | PyObject *resultobj; | |
18057 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18058 | long result; | |
18059 | PyObject * obj0 = 0 ; | |
18060 | char *kwnames[] = { | |
18061 | (char *) "self", NULL | |
18062 | }; | |
18063 | ||
18064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
18065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18066 | { | |
18067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18068 | result = (long)(arg1)->GetId(); | |
18069 | ||
18070 | wxPyEndAllowThreads(__tstate); | |
18071 | if (PyErr_Occurred()) SWIG_fail; | |
18072 | } | |
8edf1c75 | 18073 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18074 | return resultobj; |
18075 | fail: | |
18076 | return NULL; | |
18077 | } | |
18078 | ||
18079 | ||
18080 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18081 | PyObject *resultobj; | |
18082 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18083 | int result; | |
18084 | PyObject * obj0 = 0 ; | |
18085 | char *kwnames[] = { | |
18086 | (char *) "self", NULL | |
18087 | }; | |
18088 | ||
18089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
18090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18091 | { | |
18092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18093 | result = (int)(arg1)->GetColumn(); | |
18094 | ||
18095 | wxPyEndAllowThreads(__tstate); | |
18096 | if (PyErr_Occurred()) SWIG_fail; | |
18097 | } | |
8edf1c75 | 18098 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18099 | return resultobj; |
18100 | fail: | |
18101 | return NULL; | |
18102 | } | |
18103 | ||
18104 | ||
18105 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18106 | PyObject *resultobj; | |
18107 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18108 | long result; | |
18109 | PyObject * obj0 = 0 ; | |
18110 | char *kwnames[] = { | |
18111 | (char *) "self", NULL | |
18112 | }; | |
18113 | ||
18114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
18115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18116 | { | |
18117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18118 | result = (long)(arg1)->GetState(); | |
18119 | ||
18120 | wxPyEndAllowThreads(__tstate); | |
18121 | if (PyErr_Occurred()) SWIG_fail; | |
18122 | } | |
8edf1c75 | 18123 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18124 | return resultobj; |
18125 | fail: | |
18126 | return NULL; | |
18127 | } | |
18128 | ||
18129 | ||
18130 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18131 | PyObject *resultobj; | |
18132 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18133 | wxString *result; | |
18134 | PyObject * obj0 = 0 ; | |
18135 | char *kwnames[] = { | |
18136 | (char *) "self", NULL | |
18137 | }; | |
18138 | ||
18139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
18140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18141 | { | |
18142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18143 | { | |
18144 | wxString const &_result_ref = (arg1)->GetText(); | |
18145 | result = (wxString *) &_result_ref; | |
18146 | } | |
18147 | ||
18148 | wxPyEndAllowThreads(__tstate); | |
18149 | if (PyErr_Occurred()) SWIG_fail; | |
18150 | } | |
0f774bef RD |
18151 | { |
18152 | #if wxUSE_UNICODE | |
18153 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18154 | #else | |
18155 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18156 | #endif | |
18157 | } | |
d14a1e28 RD |
18158 | return resultobj; |
18159 | fail: | |
18160 | return NULL; | |
18161 | } | |
18162 | ||
18163 | ||
18164 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18165 | PyObject *resultobj; | |
18166 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18167 | int result; | |
18168 | PyObject * obj0 = 0 ; | |
18169 | char *kwnames[] = { | |
18170 | (char *) "self", NULL | |
18171 | }; | |
18172 | ||
18173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
18174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18175 | { | |
18176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18177 | result = (int)(arg1)->GetImage(); | |
18178 | ||
18179 | wxPyEndAllowThreads(__tstate); | |
18180 | if (PyErr_Occurred()) SWIG_fail; | |
18181 | } | |
8edf1c75 | 18182 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18183 | return resultobj; |
18184 | fail: | |
18185 | return NULL; | |
18186 | } | |
18187 | ||
18188 | ||
18189 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18190 | PyObject *resultobj; | |
18191 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18192 | long result; | |
18193 | PyObject * obj0 = 0 ; | |
18194 | char *kwnames[] = { | |
18195 | (char *) "self", NULL | |
18196 | }; | |
18197 | ||
18198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
18199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18200 | { | |
18201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18202 | result = (long)(arg1)->GetData(); | |
18203 | ||
18204 | wxPyEndAllowThreads(__tstate); | |
18205 | if (PyErr_Occurred()) SWIG_fail; | |
18206 | } | |
8edf1c75 | 18207 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18208 | return resultobj; |
18209 | fail: | |
18210 | return NULL; | |
18211 | } | |
18212 | ||
18213 | ||
18214 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18215 | PyObject *resultobj; | |
18216 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18217 | int result; | |
18218 | PyObject * obj0 = 0 ; | |
18219 | char *kwnames[] = { | |
18220 | (char *) "self", NULL | |
18221 | }; | |
18222 | ||
18223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
18224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18225 | { | |
18226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18227 | result = (int)(arg1)->GetWidth(); | |
18228 | ||
18229 | wxPyEndAllowThreads(__tstate); | |
18230 | if (PyErr_Occurred()) SWIG_fail; | |
18231 | } | |
8edf1c75 | 18232 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18233 | return resultobj; |
18234 | fail: | |
18235 | return NULL; | |
18236 | } | |
18237 | ||
18238 | ||
18239 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18240 | PyObject *resultobj; | |
18241 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18242 | int result; | |
18243 | PyObject * obj0 = 0 ; | |
18244 | char *kwnames[] = { | |
18245 | (char *) "self", NULL | |
18246 | }; | |
18247 | ||
18248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
18249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18250 | { | |
18251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18252 | result = (int)(arg1)->GetAlign(); | |
18253 | ||
18254 | wxPyEndAllowThreads(__tstate); | |
18255 | if (PyErr_Occurred()) SWIG_fail; | |
18256 | } | |
8edf1c75 | 18257 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18258 | return resultobj; |
18259 | fail: | |
18260 | return NULL; | |
18261 | } | |
18262 | ||
18263 | ||
18264 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18265 | PyObject *resultobj; | |
18266 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18267 | wxListItemAttr *result; | |
18268 | PyObject * obj0 = 0 ; | |
18269 | char *kwnames[] = { | |
18270 | (char *) "self", NULL | |
18271 | }; | |
18272 | ||
18273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
18274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18275 | { | |
18276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18277 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
18278 | ||
18279 | wxPyEndAllowThreads(__tstate); | |
18280 | if (PyErr_Occurred()) SWIG_fail; | |
18281 | } | |
18282 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 0); | |
18283 | return resultobj; | |
18284 | fail: | |
18285 | return NULL; | |
18286 | } | |
18287 | ||
18288 | ||
18289 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18290 | PyObject *resultobj; | |
18291 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18292 | bool result; | |
18293 | PyObject * obj0 = 0 ; | |
18294 | char *kwnames[] = { | |
18295 | (char *) "self", NULL | |
18296 | }; | |
18297 | ||
18298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
18299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18300 | { | |
18301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18302 | result = (bool)(arg1)->HasAttributes(); | |
18303 | ||
18304 | wxPyEndAllowThreads(__tstate); | |
18305 | if (PyErr_Occurred()) SWIG_fail; | |
18306 | } | |
02a34c4c | 18307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18308 | return resultobj; |
18309 | fail: | |
18310 | return NULL; | |
18311 | } | |
18312 | ||
18313 | ||
18314 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18315 | PyObject *resultobj; | |
18316 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18317 | wxColour result; | |
18318 | PyObject * obj0 = 0 ; | |
18319 | char *kwnames[] = { | |
18320 | (char *) "self", NULL | |
18321 | }; | |
18322 | ||
18323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
18324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18325 | { | |
18326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18327 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
18328 | ||
18329 | wxPyEndAllowThreads(__tstate); | |
18330 | if (PyErr_Occurred()) SWIG_fail; | |
18331 | } | |
18332 | { | |
18333 | wxColour * resultptr; | |
18334 | resultptr = new wxColour((wxColour &) result); | |
18335 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18336 | } | |
18337 | return resultobj; | |
18338 | fail: | |
18339 | return NULL; | |
18340 | } | |
18341 | ||
18342 | ||
18343 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18344 | PyObject *resultobj; | |
18345 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18346 | wxColour result; | |
18347 | PyObject * obj0 = 0 ; | |
18348 | char *kwnames[] = { | |
18349 | (char *) "self", NULL | |
18350 | }; | |
18351 | ||
18352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
18353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18354 | { | |
18355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18356 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
18357 | ||
18358 | wxPyEndAllowThreads(__tstate); | |
18359 | if (PyErr_Occurred()) SWIG_fail; | |
18360 | } | |
18361 | { | |
18362 | wxColour * resultptr; | |
18363 | resultptr = new wxColour((wxColour &) result); | |
18364 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18365 | } | |
18366 | return resultobj; | |
18367 | fail: | |
18368 | return NULL; | |
18369 | } | |
18370 | ||
18371 | ||
18372 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18373 | PyObject *resultobj; | |
18374 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18375 | wxFont result; | |
18376 | PyObject * obj0 = 0 ; | |
18377 | char *kwnames[] = { | |
18378 | (char *) "self", NULL | |
18379 | }; | |
18380 | ||
18381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
18382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18383 | { | |
18384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18385 | result = ((wxListItem const *)arg1)->GetFont(); | |
18386 | ||
18387 | wxPyEndAllowThreads(__tstate); | |
18388 | if (PyErr_Occurred()) SWIG_fail; | |
18389 | } | |
18390 | { | |
18391 | wxFont * resultptr; | |
18392 | resultptr = new wxFont((wxFont &) result); | |
18393 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
18394 | } | |
18395 | return resultobj; | |
18396 | fail: | |
18397 | return NULL; | |
18398 | } | |
18399 | ||
18400 | ||
18401 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18402 | PyObject *resultobj; | |
18403 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18404 | long arg2 ; | |
18405 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18406 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18407 | char *kwnames[] = { |
18408 | (char *) "self",(char *) "m_mask", NULL | |
18409 | }; | |
18410 | ||
8edf1c75 | 18411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18413 | { |
18414 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18415 | if (PyErr_Occurred()) SWIG_fail; | |
18416 | } | |
d14a1e28 RD |
18417 | if (arg1) (arg1)->m_mask = arg2; |
18418 | ||
18419 | Py_INCREF(Py_None); resultobj = Py_None; | |
18420 | return resultobj; | |
18421 | fail: | |
18422 | return NULL; | |
18423 | } | |
18424 | ||
18425 | ||
18426 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18427 | PyObject *resultobj; | |
18428 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18429 | long result; | |
18430 | PyObject * obj0 = 0 ; | |
18431 | char *kwnames[] = { | |
18432 | (char *) "self", NULL | |
18433 | }; | |
18434 | ||
18435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
18436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18437 | result = (long) ((arg1)->m_mask); | |
18438 | ||
8edf1c75 | 18439 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18440 | return resultobj; |
18441 | fail: | |
18442 | return NULL; | |
18443 | } | |
18444 | ||
18445 | ||
18446 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18447 | PyObject *resultobj; | |
18448 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18449 | long arg2 ; | |
18450 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18451 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18452 | char *kwnames[] = { |
18453 | (char *) "self",(char *) "m_itemId", NULL | |
18454 | }; | |
18455 | ||
8edf1c75 | 18456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18458 | { |
18459 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18460 | if (PyErr_Occurred()) SWIG_fail; | |
18461 | } | |
d14a1e28 RD |
18462 | if (arg1) (arg1)->m_itemId = arg2; |
18463 | ||
18464 | Py_INCREF(Py_None); resultobj = Py_None; | |
18465 | return resultobj; | |
18466 | fail: | |
18467 | return NULL; | |
18468 | } | |
18469 | ||
18470 | ||
18471 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18472 | PyObject *resultobj; | |
18473 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18474 | long result; | |
18475 | PyObject * obj0 = 0 ; | |
18476 | char *kwnames[] = { | |
18477 | (char *) "self", NULL | |
18478 | }; | |
18479 | ||
18480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
18481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18482 | result = (long) ((arg1)->m_itemId); | |
18483 | ||
8edf1c75 | 18484 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18485 | return resultobj; |
18486 | fail: | |
18487 | return NULL; | |
18488 | } | |
18489 | ||
18490 | ||
18491 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18492 | PyObject *resultobj; | |
18493 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18494 | int arg2 ; | |
18495 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18496 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18497 | char *kwnames[] = { |
18498 | (char *) "self",(char *) "m_col", NULL | |
18499 | }; | |
18500 | ||
8edf1c75 | 18501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18503 | { |
18504 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18505 | if (PyErr_Occurred()) SWIG_fail; | |
18506 | } | |
d14a1e28 RD |
18507 | if (arg1) (arg1)->m_col = arg2; |
18508 | ||
18509 | Py_INCREF(Py_None); resultobj = Py_None; | |
18510 | return resultobj; | |
18511 | fail: | |
18512 | return NULL; | |
18513 | } | |
18514 | ||
18515 | ||
18516 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18517 | PyObject *resultobj; | |
18518 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18519 | int result; | |
18520 | PyObject * obj0 = 0 ; | |
18521 | char *kwnames[] = { | |
18522 | (char *) "self", NULL | |
18523 | }; | |
18524 | ||
18525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
18526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18527 | result = (int) ((arg1)->m_col); | |
18528 | ||
8edf1c75 | 18529 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18530 | return resultobj; |
18531 | fail: | |
18532 | return NULL; | |
18533 | } | |
18534 | ||
18535 | ||
18536 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18537 | PyObject *resultobj; | |
18538 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18539 | long arg2 ; | |
18540 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18541 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18542 | char *kwnames[] = { |
18543 | (char *) "self",(char *) "m_state", NULL | |
18544 | }; | |
18545 | ||
8edf1c75 | 18546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18548 | { |
18549 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18550 | if (PyErr_Occurred()) SWIG_fail; | |
18551 | } | |
d14a1e28 RD |
18552 | if (arg1) (arg1)->m_state = arg2; |
18553 | ||
18554 | Py_INCREF(Py_None); resultobj = Py_None; | |
18555 | return resultobj; | |
18556 | fail: | |
18557 | return NULL; | |
18558 | } | |
18559 | ||
18560 | ||
18561 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18562 | PyObject *resultobj; | |
18563 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18564 | long result; | |
18565 | PyObject * obj0 = 0 ; | |
18566 | char *kwnames[] = { | |
18567 | (char *) "self", NULL | |
18568 | }; | |
18569 | ||
18570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
18571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18572 | result = (long) ((arg1)->m_state); | |
18573 | ||
8edf1c75 | 18574 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18575 | return resultobj; |
18576 | fail: | |
18577 | return NULL; | |
18578 | } | |
18579 | ||
18580 | ||
18581 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18582 | PyObject *resultobj; | |
18583 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18584 | long arg2 ; | |
18585 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18586 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18587 | char *kwnames[] = { |
18588 | (char *) "self",(char *) "m_stateMask", NULL | |
18589 | }; | |
18590 | ||
8edf1c75 | 18591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18593 | { |
18594 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18595 | if (PyErr_Occurred()) SWIG_fail; | |
18596 | } | |
d14a1e28 RD |
18597 | if (arg1) (arg1)->m_stateMask = arg2; |
18598 | ||
18599 | Py_INCREF(Py_None); resultobj = Py_None; | |
18600 | return resultobj; | |
18601 | fail: | |
18602 | return NULL; | |
18603 | } | |
18604 | ||
18605 | ||
18606 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18607 | PyObject *resultobj; | |
18608 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18609 | long result; | |
18610 | PyObject * obj0 = 0 ; | |
18611 | char *kwnames[] = { | |
18612 | (char *) "self", NULL | |
18613 | }; | |
18614 | ||
18615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
18616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18617 | result = (long) ((arg1)->m_stateMask); | |
18618 | ||
8edf1c75 | 18619 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18620 | return resultobj; |
18621 | fail: | |
18622 | return NULL; | |
18623 | } | |
18624 | ||
18625 | ||
18626 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18627 | PyObject *resultobj; | |
18628 | wxListItem *arg1 = (wxListItem *) 0 ; | |
cbd72d4f | 18629 | wxString *arg2 = (wxString *) 0 ; |
dae0faa6 | 18630 | bool temp2 = False ; |
d14a1e28 RD |
18631 | PyObject * obj0 = 0 ; |
18632 | PyObject * obj1 = 0 ; | |
18633 | char *kwnames[] = { | |
18634 | (char *) "self",(char *) "m_text", NULL | |
18635 | }; | |
18636 | ||
18637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
18638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
dae0faa6 RD |
18639 | { |
18640 | arg2 = wxString_in_helper(obj1); | |
18641 | if (arg2 == NULL) SWIG_fail; | |
18642 | temp2 = True; | |
18643 | } | |
cbd72d4f | 18644 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
18645 | |
18646 | Py_INCREF(Py_None); resultobj = Py_None; | |
dae0faa6 RD |
18647 | { |
18648 | if (temp2) | |
18649 | delete arg2; | |
18650 | } | |
d14a1e28 RD |
18651 | return resultobj; |
18652 | fail: | |
dae0faa6 RD |
18653 | { |
18654 | if (temp2) | |
18655 | delete arg2; | |
18656 | } | |
d14a1e28 RD |
18657 | return NULL; |
18658 | } | |
18659 | ||
18660 | ||
18661 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18662 | PyObject *resultobj; | |
18663 | wxListItem *arg1 = (wxListItem *) 0 ; | |
cbd72d4f | 18664 | wxString *result; |
d14a1e28 RD |
18665 | PyObject * obj0 = 0 ; |
18666 | char *kwnames[] = { | |
18667 | (char *) "self", NULL | |
18668 | }; | |
18669 | ||
18670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
18671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
cbd72d4f | 18672 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
18673 | |
18674 | { | |
18675 | #if wxUSE_UNICODE | |
cbd72d4f | 18676 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 18677 | #else |
cbd72d4f | 18678 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
18679 | #endif |
18680 | } | |
18681 | return resultobj; | |
18682 | fail: | |
18683 | return NULL; | |
18684 | } | |
18685 | ||
18686 | ||
18687 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18688 | PyObject *resultobj; | |
18689 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18690 | int arg2 ; | |
18691 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18692 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18693 | char *kwnames[] = { |
18694 | (char *) "self",(char *) "m_image", NULL | |
18695 | }; | |
18696 | ||
8edf1c75 | 18697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18699 | { |
18700 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18701 | if (PyErr_Occurred()) SWIG_fail; | |
18702 | } | |
d14a1e28 RD |
18703 | if (arg1) (arg1)->m_image = arg2; |
18704 | ||
18705 | Py_INCREF(Py_None); resultobj = Py_None; | |
18706 | return resultobj; | |
18707 | fail: | |
18708 | return NULL; | |
18709 | } | |
18710 | ||
18711 | ||
18712 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18713 | PyObject *resultobj; | |
18714 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18715 | int result; | |
18716 | PyObject * obj0 = 0 ; | |
18717 | char *kwnames[] = { | |
18718 | (char *) "self", NULL | |
18719 | }; | |
18720 | ||
18721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
18722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18723 | result = (int) ((arg1)->m_image); | |
18724 | ||
8edf1c75 | 18725 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18726 | return resultobj; |
18727 | fail: | |
18728 | return NULL; | |
18729 | } | |
18730 | ||
18731 | ||
18732 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18733 | PyObject *resultobj; | |
18734 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18735 | long arg2 ; | |
18736 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18737 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18738 | char *kwnames[] = { |
18739 | (char *) "self",(char *) "m_data", NULL | |
18740 | }; | |
18741 | ||
8edf1c75 | 18742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18744 | { |
18745 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18746 | if (PyErr_Occurred()) SWIG_fail; | |
18747 | } | |
d14a1e28 RD |
18748 | if (arg1) (arg1)->m_data = arg2; |
18749 | ||
18750 | Py_INCREF(Py_None); resultobj = Py_None; | |
18751 | return resultobj; | |
18752 | fail: | |
18753 | return NULL; | |
18754 | } | |
18755 | ||
18756 | ||
18757 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18758 | PyObject *resultobj; | |
18759 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18760 | long result; | |
18761 | PyObject * obj0 = 0 ; | |
18762 | char *kwnames[] = { | |
18763 | (char *) "self", NULL | |
18764 | }; | |
18765 | ||
18766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
18767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18768 | result = (long) ((arg1)->m_data); | |
18769 | ||
8edf1c75 | 18770 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18771 | return resultobj; |
18772 | fail: | |
18773 | return NULL; | |
18774 | } | |
18775 | ||
18776 | ||
18777 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18778 | PyObject *resultobj; | |
18779 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18780 | int arg2 ; | |
18781 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18782 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18783 | char *kwnames[] = { |
18784 | (char *) "self",(char *) "m_format", NULL | |
18785 | }; | |
18786 | ||
8edf1c75 | 18787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18789 | { |
18790 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18791 | if (PyErr_Occurred()) SWIG_fail; | |
18792 | } | |
d14a1e28 RD |
18793 | if (arg1) (arg1)->m_format = arg2; |
18794 | ||
18795 | Py_INCREF(Py_None); resultobj = Py_None; | |
18796 | return resultobj; | |
18797 | fail: | |
18798 | return NULL; | |
18799 | } | |
18800 | ||
18801 | ||
18802 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18803 | PyObject *resultobj; | |
18804 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18805 | int result; | |
18806 | PyObject * obj0 = 0 ; | |
18807 | char *kwnames[] = { | |
18808 | (char *) "self", NULL | |
18809 | }; | |
18810 | ||
18811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
18812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18813 | result = (int) ((arg1)->m_format); | |
18814 | ||
8edf1c75 | 18815 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18816 | return resultobj; |
18817 | fail: | |
18818 | return NULL; | |
18819 | } | |
18820 | ||
18821 | ||
18822 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18823 | PyObject *resultobj; | |
18824 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18825 | int arg2 ; | |
18826 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18827 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18828 | char *kwnames[] = { |
18829 | (char *) "self",(char *) "m_width", NULL | |
18830 | }; | |
18831 | ||
8edf1c75 | 18832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18834 | { |
18835 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18836 | if (PyErr_Occurred()) SWIG_fail; | |
18837 | } | |
d14a1e28 RD |
18838 | if (arg1) (arg1)->m_width = arg2; |
18839 | ||
18840 | Py_INCREF(Py_None); resultobj = Py_None; | |
18841 | return resultobj; | |
18842 | fail: | |
18843 | return NULL; | |
18844 | } | |
18845 | ||
18846 | ||
18847 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18848 | PyObject *resultobj; | |
18849 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18850 | int result; | |
18851 | PyObject * obj0 = 0 ; | |
18852 | char *kwnames[] = { | |
18853 | (char *) "self", NULL | |
18854 | }; | |
18855 | ||
18856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
18857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18858 | result = (int) ((arg1)->m_width); | |
18859 | ||
8edf1c75 | 18860 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18861 | return resultobj; |
18862 | fail: | |
18863 | return NULL; | |
18864 | } | |
18865 | ||
18866 | ||
18867 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
18868 | PyObject *obj; | |
18869 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18870 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
18871 | Py_INCREF(obj); | |
18872 | return Py_BuildValue((char *)""); | |
18873 | } | |
18874 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18875 | PyObject *resultobj; | |
18876 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18877 | int arg2 = (int) 0 ; | |
18878 | wxListEvent *result; | |
8edf1c75 RD |
18879 | PyObject * obj0 = 0 ; |
18880 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18881 | char *kwnames[] = { |
18882 | (char *) "commandType",(char *) "id", NULL | |
18883 | }; | |
18884 | ||
8edf1c75 RD |
18885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
18886 | if (obj0) { | |
18887 | { | |
18888 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
18889 | if (PyErr_Occurred()) SWIG_fail; | |
18890 | } | |
18891 | } | |
18892 | if (obj1) { | |
18893 | { | |
18894 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18895 | if (PyErr_Occurred()) SWIG_fail; | |
18896 | } | |
18897 | } | |
d14a1e28 RD |
18898 | { |
18899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18900 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
18901 | ||
18902 | wxPyEndAllowThreads(__tstate); | |
18903 | if (PyErr_Occurred()) SWIG_fail; | |
18904 | } | |
18905 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListEvent, 1); | |
18906 | return resultobj; | |
18907 | fail: | |
18908 | return NULL; | |
18909 | } | |
18910 | ||
18911 | ||
18912 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18913 | PyObject *resultobj; | |
18914 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18915 | int arg2 ; | |
18916 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18917 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18918 | char *kwnames[] = { |
18919 | (char *) "self",(char *) "m_code", NULL | |
18920 | }; | |
18921 | ||
8edf1c75 | 18922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18924 | { |
18925 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18926 | if (PyErr_Occurred()) SWIG_fail; | |
18927 | } | |
d14a1e28 RD |
18928 | if (arg1) (arg1)->m_code = arg2; |
18929 | ||
18930 | Py_INCREF(Py_None); resultobj = Py_None; | |
18931 | return resultobj; | |
18932 | fail: | |
18933 | return NULL; | |
18934 | } | |
18935 | ||
18936 | ||
18937 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18938 | PyObject *resultobj; | |
18939 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18940 | int result; | |
18941 | PyObject * obj0 = 0 ; | |
18942 | char *kwnames[] = { | |
18943 | (char *) "self", NULL | |
18944 | }; | |
18945 | ||
18946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
18947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18948 | result = (int) ((arg1)->m_code); | |
18949 | ||
8edf1c75 | 18950 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18951 | return resultobj; |
18952 | fail: | |
18953 | return NULL; | |
18954 | } | |
18955 | ||
18956 | ||
18957 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18958 | PyObject *resultobj; | |
18959 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18960 | long arg2 ; | |
18961 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18962 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18963 | char *kwnames[] = { |
18964 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
18965 | }; | |
18966 | ||
8edf1c75 | 18967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18969 | { |
18970 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18971 | if (PyErr_Occurred()) SWIG_fail; | |
18972 | } | |
d14a1e28 RD |
18973 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
18974 | ||
18975 | Py_INCREF(Py_None); resultobj = Py_None; | |
18976 | return resultobj; | |
18977 | fail: | |
18978 | return NULL; | |
18979 | } | |
18980 | ||
18981 | ||
18982 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18983 | PyObject *resultobj; | |
18984 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18985 | long result; | |
18986 | PyObject * obj0 = 0 ; | |
18987 | char *kwnames[] = { | |
18988 | (char *) "self", NULL | |
18989 | }; | |
18990 | ||
18991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
18992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18993 | result = (long) ((arg1)->m_oldItemIndex); | |
18994 | ||
8edf1c75 | 18995 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18996 | return resultobj; |
18997 | fail: | |
18998 | return NULL; | |
18999 | } | |
19000 | ||
19001 | ||
19002 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19003 | PyObject *resultobj; | |
19004 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19005 | long arg2 ; | |
19006 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19007 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19008 | char *kwnames[] = { |
19009 | (char *) "self",(char *) "m_itemIndex", NULL | |
19010 | }; | |
19011 | ||
8edf1c75 | 19012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19014 | { |
19015 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19016 | if (PyErr_Occurred()) SWIG_fail; | |
19017 | } | |
d14a1e28 RD |
19018 | if (arg1) (arg1)->m_itemIndex = arg2; |
19019 | ||
19020 | Py_INCREF(Py_None); resultobj = Py_None; | |
19021 | return resultobj; | |
19022 | fail: | |
19023 | return NULL; | |
19024 | } | |
19025 | ||
19026 | ||
19027 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19028 | PyObject *resultobj; | |
19029 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19030 | long result; | |
19031 | PyObject * obj0 = 0 ; | |
19032 | char *kwnames[] = { | |
19033 | (char *) "self", NULL | |
19034 | }; | |
19035 | ||
19036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
19037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19038 | result = (long) ((arg1)->m_itemIndex); | |
19039 | ||
8edf1c75 | 19040 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19041 | return resultobj; |
19042 | fail: | |
19043 | return NULL; | |
19044 | } | |
19045 | ||
19046 | ||
19047 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19048 | PyObject *resultobj; | |
19049 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19050 | int arg2 ; | |
19051 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19052 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19053 | char *kwnames[] = { |
19054 | (char *) "self",(char *) "m_col", NULL | |
19055 | }; | |
19056 | ||
8edf1c75 | 19057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19059 | { |
19060 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19061 | if (PyErr_Occurred()) SWIG_fail; | |
19062 | } | |
d14a1e28 RD |
19063 | if (arg1) (arg1)->m_col = arg2; |
19064 | ||
19065 | Py_INCREF(Py_None); resultobj = Py_None; | |
19066 | return resultobj; | |
19067 | fail: | |
19068 | return NULL; | |
19069 | } | |
19070 | ||
19071 | ||
19072 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19073 | PyObject *resultobj; | |
19074 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19075 | int result; | |
19076 | PyObject * obj0 = 0 ; | |
19077 | char *kwnames[] = { | |
19078 | (char *) "self", NULL | |
19079 | }; | |
19080 | ||
19081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
19082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19083 | result = (int) ((arg1)->m_col); | |
19084 | ||
8edf1c75 | 19085 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19086 | return resultobj; |
19087 | fail: | |
19088 | return NULL; | |
19089 | } | |
19090 | ||
19091 | ||
19092 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19093 | PyObject *resultobj; | |
19094 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19095 | wxPoint *arg2 = (wxPoint *) 0 ; | |
19096 | PyObject * obj0 = 0 ; | |
19097 | PyObject * obj1 = 0 ; | |
19098 | char *kwnames[] = { | |
19099 | (char *) "self",(char *) "m_pointDrag", NULL | |
19100 | }; | |
19101 | ||
19102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
19103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19104 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19105 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
19106 | ||
19107 | Py_INCREF(Py_None); resultobj = Py_None; | |
19108 | return resultobj; | |
19109 | fail: | |
19110 | return NULL; | |
19111 | } | |
19112 | ||
19113 | ||
19114 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19115 | PyObject *resultobj; | |
19116 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19117 | wxPoint *result; | |
19118 | PyObject * obj0 = 0 ; | |
19119 | char *kwnames[] = { | |
19120 | (char *) "self", NULL | |
19121 | }; | |
19122 | ||
19123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
19124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19125 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
19126 | ||
19127 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
19128 | return resultobj; | |
19129 | fail: | |
19130 | return NULL; | |
19131 | } | |
19132 | ||
19133 | ||
19134 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19135 | PyObject *resultobj; | |
19136 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19137 | wxListItem *result; | |
19138 | PyObject * obj0 = 0 ; | |
19139 | char *kwnames[] = { | |
19140 | (char *) "self", NULL | |
19141 | }; | |
19142 | ||
19143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
19144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19145 | result = (wxListItem *)& ((arg1)->m_item); | |
19146 | ||
19147 | { | |
19148 | resultobj = wxPyMake_wxObject(result); | |
19149 | } | |
19150 | return resultobj; | |
19151 | fail: | |
19152 | return NULL; | |
19153 | } | |
19154 | ||
19155 | ||
19156 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19157 | PyObject *resultobj; | |
19158 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19159 | int result; | |
19160 | PyObject * obj0 = 0 ; | |
19161 | char *kwnames[] = { | |
19162 | (char *) "self", NULL | |
19163 | }; | |
19164 | ||
19165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
19166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19167 | { | |
19168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19169 | result = (int)(arg1)->GetKeyCode(); | |
19170 | ||
19171 | wxPyEndAllowThreads(__tstate); | |
19172 | if (PyErr_Occurred()) SWIG_fail; | |
19173 | } | |
8edf1c75 | 19174 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19175 | return resultobj; |
19176 | fail: | |
19177 | return NULL; | |
19178 | } | |
19179 | ||
19180 | ||
19181 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19182 | PyObject *resultobj; | |
19183 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19184 | long result; | |
19185 | PyObject * obj0 = 0 ; | |
19186 | char *kwnames[] = { | |
19187 | (char *) "self", NULL | |
19188 | }; | |
19189 | ||
19190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
19191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19192 | { | |
19193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19194 | result = (long)(arg1)->GetIndex(); | |
19195 | ||
19196 | wxPyEndAllowThreads(__tstate); | |
19197 | if (PyErr_Occurred()) SWIG_fail; | |
19198 | } | |
8edf1c75 | 19199 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19200 | return resultobj; |
19201 | fail: | |
19202 | return NULL; | |
19203 | } | |
19204 | ||
19205 | ||
19206 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19207 | PyObject *resultobj; | |
19208 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19209 | int result; | |
19210 | PyObject * obj0 = 0 ; | |
19211 | char *kwnames[] = { | |
19212 | (char *) "self", NULL | |
19213 | }; | |
19214 | ||
19215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
19216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19217 | { | |
19218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19219 | result = (int)(arg1)->GetColumn(); | |
19220 | ||
19221 | wxPyEndAllowThreads(__tstate); | |
19222 | if (PyErr_Occurred()) SWIG_fail; | |
19223 | } | |
8edf1c75 | 19224 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19225 | return resultobj; |
19226 | fail: | |
19227 | return NULL; | |
19228 | } | |
19229 | ||
19230 | ||
19231 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19232 | PyObject *resultobj; | |
19233 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19234 | wxPoint result; | |
19235 | PyObject * obj0 = 0 ; | |
19236 | char *kwnames[] = { | |
19237 | (char *) "self", NULL | |
19238 | }; | |
19239 | ||
19240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
19241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19242 | { | |
19243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19244 | result = (arg1)->GetPoint(); | |
19245 | ||
19246 | wxPyEndAllowThreads(__tstate); | |
19247 | if (PyErr_Occurred()) SWIG_fail; | |
19248 | } | |
19249 | { | |
19250 | wxPoint * resultptr; | |
19251 | resultptr = new wxPoint((wxPoint &) result); | |
19252 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
19253 | } | |
19254 | return resultobj; | |
19255 | fail: | |
19256 | return NULL; | |
19257 | } | |
19258 | ||
19259 | ||
19260 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19261 | PyObject *resultobj; | |
19262 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19263 | wxString *result; | |
19264 | PyObject * obj0 = 0 ; | |
19265 | char *kwnames[] = { | |
19266 | (char *) "self", NULL | |
19267 | }; | |
19268 | ||
19269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
19270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19271 | { | |
19272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19273 | { | |
19274 | wxString const &_result_ref = (arg1)->GetLabel(); | |
19275 | result = (wxString *) &_result_ref; | |
19276 | } | |
19277 | ||
19278 | wxPyEndAllowThreads(__tstate); | |
19279 | if (PyErr_Occurred()) SWIG_fail; | |
19280 | } | |
0f774bef RD |
19281 | { |
19282 | #if wxUSE_UNICODE | |
19283 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19284 | #else | |
19285 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19286 | #endif | |
19287 | } | |
d14a1e28 RD |
19288 | return resultobj; |
19289 | fail: | |
19290 | return NULL; | |
19291 | } | |
19292 | ||
19293 | ||
19294 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19295 | PyObject *resultobj; | |
19296 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19297 | wxString *result; | |
19298 | PyObject * obj0 = 0 ; | |
19299 | char *kwnames[] = { | |
19300 | (char *) "self", NULL | |
19301 | }; | |
19302 | ||
19303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
19304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19305 | { | |
19306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19307 | { | |
19308 | wxString const &_result_ref = (arg1)->GetText(); | |
19309 | result = (wxString *) &_result_ref; | |
19310 | } | |
19311 | ||
19312 | wxPyEndAllowThreads(__tstate); | |
19313 | if (PyErr_Occurred()) SWIG_fail; | |
19314 | } | |
0f774bef RD |
19315 | { |
19316 | #if wxUSE_UNICODE | |
19317 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19318 | #else | |
19319 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19320 | #endif | |
19321 | } | |
d14a1e28 RD |
19322 | return resultobj; |
19323 | fail: | |
19324 | return NULL; | |
19325 | } | |
19326 | ||
19327 | ||
19328 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19329 | PyObject *resultobj; | |
19330 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19331 | int result; | |
19332 | PyObject * obj0 = 0 ; | |
19333 | char *kwnames[] = { | |
19334 | (char *) "self", NULL | |
19335 | }; | |
19336 | ||
19337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
19338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19339 | { | |
19340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19341 | result = (int)(arg1)->GetImage(); | |
19342 | ||
19343 | wxPyEndAllowThreads(__tstate); | |
19344 | if (PyErr_Occurred()) SWIG_fail; | |
19345 | } | |
8edf1c75 | 19346 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19347 | return resultobj; |
19348 | fail: | |
19349 | return NULL; | |
19350 | } | |
19351 | ||
19352 | ||
19353 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19354 | PyObject *resultobj; | |
19355 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19356 | long result; | |
19357 | PyObject * obj0 = 0 ; | |
19358 | char *kwnames[] = { | |
19359 | (char *) "self", NULL | |
19360 | }; | |
19361 | ||
19362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
19363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19364 | { | |
19365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19366 | result = (long)(arg1)->GetData(); | |
19367 | ||
19368 | wxPyEndAllowThreads(__tstate); | |
19369 | if (PyErr_Occurred()) SWIG_fail; | |
19370 | } | |
8edf1c75 | 19371 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19372 | return resultobj; |
19373 | fail: | |
19374 | return NULL; | |
19375 | } | |
19376 | ||
19377 | ||
19378 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19379 | PyObject *resultobj; | |
19380 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19381 | long result; | |
19382 | PyObject * obj0 = 0 ; | |
19383 | char *kwnames[] = { | |
19384 | (char *) "self", NULL | |
19385 | }; | |
19386 | ||
19387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
19388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19389 | { | |
19390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19391 | result = (long)(arg1)->GetMask(); | |
19392 | ||
19393 | wxPyEndAllowThreads(__tstate); | |
19394 | if (PyErr_Occurred()) SWIG_fail; | |
19395 | } | |
8edf1c75 | 19396 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19397 | return resultobj; |
19398 | fail: | |
19399 | return NULL; | |
19400 | } | |
19401 | ||
19402 | ||
19403 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19404 | PyObject *resultobj; | |
19405 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19406 | wxListItem *result; | |
19407 | PyObject * obj0 = 0 ; | |
19408 | char *kwnames[] = { | |
19409 | (char *) "self", NULL | |
19410 | }; | |
19411 | ||
19412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
19413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19414 | { | |
19415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19416 | { | |
19417 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
19418 | result = (wxListItem *) &_result_ref; | |
19419 | } | |
19420 | ||
19421 | wxPyEndAllowThreads(__tstate); | |
19422 | if (PyErr_Occurred()) SWIG_fail; | |
19423 | } | |
19424 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItem, 0); | |
19425 | return resultobj; | |
19426 | fail: | |
19427 | return NULL; | |
19428 | } | |
19429 | ||
19430 | ||
19431 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19432 | PyObject *resultobj; | |
19433 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19434 | long result; | |
19435 | PyObject * obj0 = 0 ; | |
19436 | char *kwnames[] = { | |
19437 | (char *) "self", NULL | |
19438 | }; | |
19439 | ||
19440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
19441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19442 | { | |
19443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19444 | result = (long)(arg1)->GetCacheFrom(); | |
19445 | ||
19446 | wxPyEndAllowThreads(__tstate); | |
19447 | if (PyErr_Occurred()) SWIG_fail; | |
19448 | } | |
8edf1c75 | 19449 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19450 | return resultobj; |
19451 | fail: | |
19452 | return NULL; | |
19453 | } | |
19454 | ||
19455 | ||
19456 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19457 | PyObject *resultobj; | |
19458 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19459 | long result; | |
19460 | PyObject * obj0 = 0 ; | |
19461 | char *kwnames[] = { | |
19462 | (char *) "self", NULL | |
19463 | }; | |
19464 | ||
19465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
19466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19467 | { | |
19468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19469 | result = (long)(arg1)->GetCacheTo(); | |
19470 | ||
19471 | wxPyEndAllowThreads(__tstate); | |
19472 | if (PyErr_Occurred()) SWIG_fail; | |
19473 | } | |
8edf1c75 | 19474 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19475 | return resultobj; |
19476 | fail: | |
19477 | return NULL; | |
19478 | } | |
19479 | ||
19480 | ||
19481 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19482 | PyObject *resultobj; | |
19483 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19484 | bool result; | |
19485 | PyObject * obj0 = 0 ; | |
19486 | char *kwnames[] = { | |
19487 | (char *) "self", NULL | |
19488 | }; | |
19489 | ||
19490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
19491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19492 | { | |
19493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19494 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
19495 | ||
19496 | wxPyEndAllowThreads(__tstate); | |
19497 | if (PyErr_Occurred()) SWIG_fail; | |
19498 | } | |
02a34c4c | 19499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19500 | return resultobj; |
19501 | fail: | |
19502 | return NULL; | |
19503 | } | |
19504 | ||
19505 | ||
19506 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19507 | PyObject *resultobj; | |
19508 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19509 | bool arg2 ; | |
19510 | PyObject * obj0 = 0 ; | |
19511 | PyObject * obj1 = 0 ; | |
19512 | char *kwnames[] = { | |
19513 | (char *) "self",(char *) "editCancelled", NULL | |
19514 | }; | |
19515 | ||
19516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
19517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 19518 | { |
8edf1c75 | 19519 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
19520 | if (PyErr_Occurred()) SWIG_fail; |
19521 | } | |
d14a1e28 RD |
19522 | { |
19523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19524 | (arg1)->SetEditCanceled(arg2); | |
19525 | ||
19526 | wxPyEndAllowThreads(__tstate); | |
19527 | if (PyErr_Occurred()) SWIG_fail; | |
19528 | } | |
19529 | Py_INCREF(Py_None); resultobj = Py_None; | |
19530 | return resultobj; | |
19531 | fail: | |
19532 | return NULL; | |
19533 | } | |
19534 | ||
19535 | ||
19536 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
19537 | PyObject *obj; | |
19538 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19539 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
19540 | Py_INCREF(obj); | |
19541 | return Py_BuildValue((char *)""); | |
19542 | } | |
19543 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19544 | PyObject *resultobj; | |
19545 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19546 | int arg2 = (int) -1 ; |
d14a1e28 RD |
19547 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19548 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19549 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19550 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19551 | long arg5 = (long) wxLC_ICON ; | |
19552 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
19553 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
19554 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
19555 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19556 | wxPyListCtrl *result; | |
19557 | wxPoint temp3 ; | |
19558 | wxSize temp4 ; | |
423f194a | 19559 | bool temp7 = False ; |
d14a1e28 | 19560 | PyObject * obj0 = 0 ; |
8edf1c75 | 19561 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19562 | PyObject * obj2 = 0 ; |
19563 | PyObject * obj3 = 0 ; | |
8edf1c75 | 19564 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
19565 | PyObject * obj5 = 0 ; |
19566 | PyObject * obj6 = 0 ; | |
19567 | char *kwnames[] = { | |
19568 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19569 | }; | |
19570 | ||
8edf1c75 | 19571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 19572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19573 | if (obj1) { |
19574 | { | |
19575 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19576 | if (PyErr_Occurred()) SWIG_fail; | |
19577 | } | |
19578 | } | |
d14a1e28 RD |
19579 | if (obj2) { |
19580 | { | |
19581 | arg3 = &temp3; | |
19582 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19583 | } | |
19584 | } | |
19585 | if (obj3) { | |
19586 | { | |
19587 | arg4 = &temp4; | |
19588 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19589 | } | |
19590 | } | |
8edf1c75 RD |
19591 | if (obj4) { |
19592 | { | |
19593 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
19594 | if (PyErr_Occurred()) SWIG_fail; | |
19595 | } | |
19596 | } | |
d14a1e28 RD |
19597 | if (obj5) { |
19598 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19599 | if (arg6 == NULL) { | |
19600 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19601 | } | |
19602 | } | |
19603 | if (obj6) { | |
19604 | { | |
19605 | arg7 = wxString_in_helper(obj6); | |
19606 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 19607 | temp7 = True; |
d14a1e28 RD |
19608 | } |
19609 | } | |
19610 | { | |
19611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19612 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
19613 | ||
19614 | wxPyEndAllowThreads(__tstate); | |
19615 | if (PyErr_Occurred()) SWIG_fail; | |
19616 | } | |
19617 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
19618 | { | |
19619 | if (temp7) | |
19620 | delete arg7; | |
19621 | } | |
19622 | return resultobj; | |
19623 | fail: | |
19624 | { | |
19625 | if (temp7) | |
19626 | delete arg7; | |
19627 | } | |
19628 | return NULL; | |
19629 | } | |
19630 | ||
19631 | ||
19632 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19633 | PyObject *resultobj; | |
19634 | wxPyListCtrl *result; | |
19635 | char *kwnames[] = { | |
19636 | NULL | |
19637 | }; | |
19638 | ||
19639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
19640 | { | |
19641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19642 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
19643 | ||
19644 | wxPyEndAllowThreads(__tstate); | |
19645 | if (PyErr_Occurred()) SWIG_fail; | |
19646 | } | |
19647 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
19648 | return resultobj; | |
19649 | fail: | |
19650 | return NULL; | |
19651 | } | |
19652 | ||
19653 | ||
19654 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19655 | PyObject *resultobj; | |
19656 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19657 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 19658 | int arg3 = (int) -1 ; |
d14a1e28 RD |
19659 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
19660 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19661 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19662 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19663 | long arg6 = (long) wxLC_ICON ; | |
19664 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
19665 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
19666 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
19667 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19668 | bool result; | |
19669 | wxPoint temp4 ; | |
19670 | wxSize temp5 ; | |
423f194a | 19671 | bool temp8 = False ; |
d14a1e28 RD |
19672 | PyObject * obj0 = 0 ; |
19673 | PyObject * obj1 = 0 ; | |
8edf1c75 | 19674 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
19675 | PyObject * obj3 = 0 ; |
19676 | PyObject * obj4 = 0 ; | |
8edf1c75 | 19677 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
19678 | PyObject * obj6 = 0 ; |
19679 | PyObject * obj7 = 0 ; | |
19680 | char *kwnames[] = { | |
19681 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19682 | }; | |
19683 | ||
8edf1c75 | 19684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
19685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
19686 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
19687 | if (obj2) { |
19688 | { | |
19689 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
19690 | if (PyErr_Occurred()) SWIG_fail; | |
19691 | } | |
19692 | } | |
d14a1e28 RD |
19693 | if (obj3) { |
19694 | { | |
19695 | arg4 = &temp4; | |
19696 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
19697 | } | |
19698 | } | |
19699 | if (obj4) { | |
19700 | { | |
19701 | arg5 = &temp5; | |
19702 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
19703 | } | |
19704 | } | |
8edf1c75 RD |
19705 | if (obj5) { |
19706 | { | |
19707 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
19708 | if (PyErr_Occurred()) SWIG_fail; | |
19709 | } | |
19710 | } | |
d14a1e28 RD |
19711 | if (obj6) { |
19712 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19713 | if (arg7 == NULL) { | |
19714 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19715 | } | |
19716 | } | |
19717 | if (obj7) { | |
19718 | { | |
19719 | arg8 = wxString_in_helper(obj7); | |
19720 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 19721 | temp8 = True; |
d14a1e28 RD |
19722 | } |
19723 | } | |
19724 | { | |
19725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19726 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
19727 | ||
19728 | wxPyEndAllowThreads(__tstate); | |
19729 | if (PyErr_Occurred()) SWIG_fail; | |
19730 | } | |
02a34c4c | 19731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19732 | { |
19733 | if (temp8) | |
19734 | delete arg8; | |
19735 | } | |
19736 | return resultobj; | |
19737 | fail: | |
19738 | { | |
19739 | if (temp8) | |
19740 | delete arg8; | |
19741 | } | |
19742 | return NULL; | |
19743 | } | |
19744 | ||
19745 | ||
19746 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19747 | PyObject *resultobj; | |
19748 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19749 | PyObject *arg2 = (PyObject *) 0 ; | |
19750 | PyObject *arg3 = (PyObject *) 0 ; | |
19751 | PyObject * obj0 = 0 ; | |
19752 | PyObject * obj1 = 0 ; | |
19753 | PyObject * obj2 = 0 ; | |
19754 | char *kwnames[] = { | |
19755 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19756 | }; | |
19757 | ||
19758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19760 | arg2 = obj1; | |
19761 | arg3 = obj2; | |
19762 | { | |
19763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19764 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19765 | ||
19766 | wxPyEndAllowThreads(__tstate); | |
19767 | if (PyErr_Occurred()) SWIG_fail; | |
19768 | } | |
19769 | Py_INCREF(Py_None); resultobj = Py_None; | |
19770 | return resultobj; | |
19771 | fail: | |
19772 | return NULL; | |
19773 | } | |
19774 | ||
19775 | ||
19776 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19777 | PyObject *resultobj; | |
19778 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19779 | wxColour *arg2 = 0 ; | |
19780 | bool result; | |
19781 | wxColour temp2 ; | |
19782 | PyObject * obj0 = 0 ; | |
19783 | PyObject * obj1 = 0 ; | |
19784 | char *kwnames[] = { | |
19785 | (char *) "self",(char *) "col", NULL | |
19786 | }; | |
19787 | ||
19788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
19789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19790 | { | |
19791 | arg2 = &temp2; | |
19792 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19793 | } | |
19794 | { | |
19795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19796 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
19797 | ||
19798 | wxPyEndAllowThreads(__tstate); | |
19799 | if (PyErr_Occurred()) SWIG_fail; | |
19800 | } | |
02a34c4c | 19801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19802 | return resultobj; |
19803 | fail: | |
19804 | return NULL; | |
19805 | } | |
19806 | ||
19807 | ||
19808 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19809 | PyObject *resultobj; | |
19810 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19811 | wxColour *arg2 = 0 ; | |
19812 | bool result; | |
19813 | wxColour temp2 ; | |
19814 | PyObject * obj0 = 0 ; | |
19815 | PyObject * obj1 = 0 ; | |
19816 | char *kwnames[] = { | |
19817 | (char *) "self",(char *) "col", NULL | |
19818 | }; | |
19819 | ||
19820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
19821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19822 | { | |
19823 | arg2 = &temp2; | |
19824 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19825 | } | |
19826 | { | |
19827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19828 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19829 | ||
19830 | wxPyEndAllowThreads(__tstate); | |
19831 | if (PyErr_Occurred()) SWIG_fail; | |
19832 | } | |
02a34c4c | 19833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19834 | return resultobj; |
19835 | fail: | |
19836 | return NULL; | |
19837 | } | |
19838 | ||
19839 | ||
19840 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19841 | PyObject *resultobj; | |
19842 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19843 | int arg2 ; | |
19844 | wxListItem *result; | |
19845 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19846 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19847 | char *kwnames[] = { |
19848 | (char *) "self",(char *) "col", NULL | |
19849 | }; | |
19850 | ||
8edf1c75 | 19851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19853 | { |
19854 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19855 | if (PyErr_Occurred()) SWIG_fail; | |
19856 | } | |
d14a1e28 RD |
19857 | { |
19858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19859 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
19860 | ||
19861 | wxPyEndAllowThreads(__tstate); | |
19862 | if (PyErr_Occurred()) SWIG_fail; | |
19863 | } | |
19864 | { | |
19865 | resultobj = wxPyMake_wxObject(result); | |
19866 | } | |
19867 | return resultobj; | |
19868 | fail: | |
19869 | return NULL; | |
19870 | } | |
19871 | ||
19872 | ||
19873 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19874 | PyObject *resultobj; | |
19875 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19876 | int arg2 ; | |
19877 | wxListItem *arg3 = 0 ; | |
19878 | bool result; | |
19879 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19880 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19881 | PyObject * obj2 = 0 ; |
19882 | char *kwnames[] = { | |
19883 | (char *) "self",(char *) "col",(char *) "item", NULL | |
19884 | }; | |
19885 | ||
8edf1c75 | 19886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 19887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19888 | { |
19889 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19890 | if (PyErr_Occurred()) SWIG_fail; | |
19891 | } | |
d14a1e28 RD |
19892 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
19893 | if (arg3 == NULL) { | |
19894 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19895 | } | |
19896 | { | |
19897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19898 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
19899 | ||
19900 | wxPyEndAllowThreads(__tstate); | |
19901 | if (PyErr_Occurred()) SWIG_fail; | |
19902 | } | |
02a34c4c | 19903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19904 | return resultobj; |
19905 | fail: | |
19906 | return NULL; | |
19907 | } | |
19908 | ||
19909 | ||
19910 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19911 | PyObject *resultobj; | |
19912 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19913 | int arg2 ; | |
19914 | int result; | |
19915 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19916 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19917 | char *kwnames[] = { |
19918 | (char *) "self",(char *) "col", NULL | |
19919 | }; | |
19920 | ||
8edf1c75 | 19921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19923 | { |
19924 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19925 | if (PyErr_Occurred()) SWIG_fail; | |
19926 | } | |
d14a1e28 RD |
19927 | { |
19928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19929 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
19930 | ||
19931 | wxPyEndAllowThreads(__tstate); | |
19932 | if (PyErr_Occurred()) SWIG_fail; | |
19933 | } | |
8edf1c75 | 19934 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19935 | return resultobj; |
19936 | fail: | |
19937 | return NULL; | |
19938 | } | |
19939 | ||
19940 | ||
19941 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19942 | PyObject *resultobj; | |
19943 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19944 | int arg2 ; | |
19945 | int arg3 ; | |
19946 | bool result; | |
19947 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
19948 | PyObject * obj1 = 0 ; |
19949 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
19950 | char *kwnames[] = { |
19951 | (char *) "self",(char *) "col",(char *) "width", NULL | |
19952 | }; | |
19953 | ||
8edf1c75 | 19954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 19955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19956 | { |
19957 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19958 | if (PyErr_Occurred()) SWIG_fail; | |
19959 | } | |
19960 | { | |
19961 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
19962 | if (PyErr_Occurred()) SWIG_fail; | |
19963 | } | |
d14a1e28 RD |
19964 | { |
19965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19966 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
19967 | ||
19968 | wxPyEndAllowThreads(__tstate); | |
19969 | if (PyErr_Occurred()) SWIG_fail; | |
19970 | } | |
02a34c4c | 19971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19972 | return resultobj; |
19973 | fail: | |
19974 | return NULL; | |
19975 | } | |
19976 | ||
19977 | ||
19978 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19979 | PyObject *resultobj; | |
19980 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19981 | int result; | |
19982 | PyObject * obj0 = 0 ; | |
19983 | char *kwnames[] = { | |
19984 | (char *) "self", NULL | |
19985 | }; | |
19986 | ||
19987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
19988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19989 | { | |
19990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19991 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
19992 | ||
19993 | wxPyEndAllowThreads(__tstate); | |
19994 | if (PyErr_Occurred()) SWIG_fail; | |
19995 | } | |
8edf1c75 | 19996 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19997 | return resultobj; |
19998 | fail: | |
19999 | return NULL; | |
20000 | } | |
20001 | ||
20002 | ||
20003 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20004 | PyObject *resultobj; | |
20005 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20006 | wxRect result; | |
20007 | PyObject * obj0 = 0 ; | |
20008 | char *kwnames[] = { | |
20009 | (char *) "self", NULL | |
20010 | }; | |
20011 | ||
20012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
20013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20014 | { | |
20015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20016 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
20017 | ||
20018 | wxPyEndAllowThreads(__tstate); | |
20019 | if (PyErr_Occurred()) SWIG_fail; | |
20020 | } | |
20021 | { | |
20022 | wxRect * resultptr; | |
20023 | resultptr = new wxRect((wxRect &) result); | |
20024 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20025 | } | |
20026 | return resultobj; | |
20027 | fail: | |
20028 | return NULL; | |
20029 | } | |
20030 | ||
20031 | ||
20032 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20033 | PyObject *resultobj; | |
20034 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20035 | long arg2 ; | |
20036 | int arg3 = (int) 0 ; | |
20037 | wxListItem *result; | |
20038 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20039 | PyObject * obj1 = 0 ; |
20040 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20041 | char *kwnames[] = { |
20042 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
20043 | }; | |
20044 | ||
8edf1c75 | 20045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20047 | { |
20048 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20049 | if (PyErr_Occurred()) SWIG_fail; | |
20050 | } | |
20051 | if (obj2) { | |
20052 | { | |
20053 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20054 | if (PyErr_Occurred()) SWIG_fail; | |
20055 | } | |
20056 | } | |
d14a1e28 RD |
20057 | { |
20058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20059 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
20060 | ||
20061 | wxPyEndAllowThreads(__tstate); | |
20062 | if (PyErr_Occurred()) SWIG_fail; | |
20063 | } | |
20064 | { | |
20065 | resultobj = wxPyMake_wxObject(result); | |
20066 | } | |
20067 | return resultobj; | |
20068 | fail: | |
20069 | return NULL; | |
20070 | } | |
20071 | ||
20072 | ||
20073 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20074 | PyObject *resultobj; | |
20075 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20076 | wxListItem *arg2 = 0 ; | |
20077 | bool result; | |
20078 | PyObject * obj0 = 0 ; | |
20079 | PyObject * obj1 = 0 ; | |
20080 | char *kwnames[] = { | |
20081 | (char *) "self",(char *) "info", NULL | |
20082 | }; | |
20083 | ||
20084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
20085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20086 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20087 | if (arg2 == NULL) { | |
20088 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20089 | } | |
20090 | { | |
20091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20092 | result = (bool)(arg1)->SetItem(*arg2); | |
20093 | ||
20094 | wxPyEndAllowThreads(__tstate); | |
20095 | if (PyErr_Occurred()) SWIG_fail; | |
20096 | } | |
02a34c4c | 20097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20098 | return resultobj; |
20099 | fail: | |
20100 | return NULL; | |
20101 | } | |
20102 | ||
20103 | ||
20104 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20105 | PyObject *resultobj; | |
20106 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20107 | long arg2 ; | |
20108 | int arg3 ; | |
20109 | wxString *arg4 = 0 ; | |
20110 | int arg5 = (int) -1 ; | |
20111 | long result; | |
423f194a | 20112 | bool temp4 = False ; |
d14a1e28 | 20113 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
20114 | PyObject * obj1 = 0 ; |
20115 | PyObject * obj2 = 0 ; | |
d14a1e28 | 20116 | PyObject * obj3 = 0 ; |
8edf1c75 | 20117 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20118 | char *kwnames[] = { |
20119 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
20120 | }; | |
20121 | ||
8edf1c75 | 20122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 20123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20124 | { |
20125 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20126 | if (PyErr_Occurred()) SWIG_fail; | |
20127 | } | |
20128 | { | |
20129 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20130 | if (PyErr_Occurred()) SWIG_fail; | |
20131 | } | |
d14a1e28 RD |
20132 | { |
20133 | arg4 = wxString_in_helper(obj3); | |
20134 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 20135 | temp4 = True; |
d14a1e28 | 20136 | } |
8edf1c75 RD |
20137 | if (obj4) { |
20138 | { | |
20139 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
20140 | if (PyErr_Occurred()) SWIG_fail; | |
20141 | } | |
20142 | } | |
d14a1e28 RD |
20143 | { |
20144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20145 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
20146 | ||
20147 | wxPyEndAllowThreads(__tstate); | |
20148 | if (PyErr_Occurred()) SWIG_fail; | |
20149 | } | |
8edf1c75 | 20150 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20151 | { |
20152 | if (temp4) | |
20153 | delete arg4; | |
20154 | } | |
20155 | return resultobj; | |
20156 | fail: | |
20157 | { | |
20158 | if (temp4) | |
20159 | delete arg4; | |
20160 | } | |
20161 | return NULL; | |
20162 | } | |
20163 | ||
20164 | ||
20165 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20166 | PyObject *resultobj; | |
20167 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20168 | long arg2 ; | |
20169 | long arg3 ; | |
20170 | int result; | |
20171 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20172 | PyObject * obj1 = 0 ; |
20173 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20174 | char *kwnames[] = { |
20175 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
20176 | }; | |
20177 | ||
8edf1c75 | 20178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20180 | { |
20181 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20182 | if (PyErr_Occurred()) SWIG_fail; | |
20183 | } | |
20184 | { | |
20185 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20186 | if (PyErr_Occurred()) SWIG_fail; | |
20187 | } | |
d14a1e28 RD |
20188 | { |
20189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20190 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
20191 | ||
20192 | wxPyEndAllowThreads(__tstate); | |
20193 | if (PyErr_Occurred()) SWIG_fail; | |
20194 | } | |
8edf1c75 | 20195 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20196 | return resultobj; |
20197 | fail: | |
20198 | return NULL; | |
20199 | } | |
20200 | ||
20201 | ||
20202 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20203 | PyObject *resultobj; | |
20204 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20205 | long arg2 ; | |
20206 | long arg3 ; | |
20207 | long arg4 ; | |
20208 | bool result; | |
20209 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20210 | PyObject * obj1 = 0 ; |
20211 | PyObject * obj2 = 0 ; | |
20212 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20213 | char *kwnames[] = { |
20214 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
20215 | }; | |
20216 | ||
8edf1c75 | 20217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20219 | { |
20220 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20221 | if (PyErr_Occurred()) SWIG_fail; | |
20222 | } | |
20223 | { | |
20224 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20225 | if (PyErr_Occurred()) SWIG_fail; | |
20226 | } | |
20227 | { | |
20228 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
20229 | if (PyErr_Occurred()) SWIG_fail; | |
20230 | } | |
d14a1e28 RD |
20231 | { |
20232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20233 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
20234 | ||
20235 | wxPyEndAllowThreads(__tstate); | |
20236 | if (PyErr_Occurred()) SWIG_fail; | |
20237 | } | |
02a34c4c | 20238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20239 | return resultobj; |
20240 | fail: | |
20241 | return NULL; | |
20242 | } | |
20243 | ||
20244 | ||
20245 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20246 | PyObject *resultobj; | |
20247 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20248 | long arg2 ; | |
20249 | int arg3 ; | |
20250 | int arg4 ; | |
20251 | bool result; | |
20252 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20253 | PyObject * obj1 = 0 ; |
20254 | PyObject * obj2 = 0 ; | |
20255 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20256 | char *kwnames[] = { |
20257 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
20258 | }; | |
20259 | ||
8edf1c75 | 20260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20262 | { |
20263 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20264 | if (PyErr_Occurred()) SWIG_fail; | |
20265 | } | |
20266 | { | |
20267 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20268 | if (PyErr_Occurred()) SWIG_fail; | |
20269 | } | |
20270 | { | |
20271 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
20272 | if (PyErr_Occurred()) SWIG_fail; | |
20273 | } | |
d14a1e28 RD |
20274 | { |
20275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20276 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
20277 | ||
20278 | wxPyEndAllowThreads(__tstate); | |
20279 | if (PyErr_Occurred()) SWIG_fail; | |
20280 | } | |
02a34c4c | 20281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20282 | return resultobj; |
20283 | fail: | |
20284 | return NULL; | |
20285 | } | |
20286 | ||
20287 | ||
20288 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20289 | PyObject *resultobj; | |
20290 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20291 | long arg2 ; | |
20292 | wxString result; | |
20293 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20294 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20295 | char *kwnames[] = { |
20296 | (char *) "self",(char *) "item", NULL | |
20297 | }; | |
20298 | ||
8edf1c75 | 20299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20301 | { |
20302 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20303 | if (PyErr_Occurred()) SWIG_fail; | |
20304 | } | |
d14a1e28 RD |
20305 | { |
20306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20307 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
20308 | ||
20309 | wxPyEndAllowThreads(__tstate); | |
20310 | if (PyErr_Occurred()) SWIG_fail; | |
20311 | } | |
20312 | { | |
20313 | #if wxUSE_UNICODE | |
20314 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20315 | #else | |
20316 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20317 | #endif | |
20318 | } | |
20319 | return resultobj; | |
20320 | fail: | |
20321 | return NULL; | |
20322 | } | |
20323 | ||
20324 | ||
20325 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20326 | PyObject *resultobj; | |
20327 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20328 | long arg2 ; | |
20329 | wxString *arg3 = 0 ; | |
423f194a | 20330 | bool temp3 = False ; |
d14a1e28 | 20331 | PyObject * obj0 = 0 ; |
8edf1c75 | 20332 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20333 | PyObject * obj2 = 0 ; |
20334 | char *kwnames[] = { | |
20335 | (char *) "self",(char *) "item",(char *) "str", NULL | |
20336 | }; | |
20337 | ||
8edf1c75 | 20338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20340 | { |
20341 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20342 | if (PyErr_Occurred()) SWIG_fail; | |
20343 | } | |
d14a1e28 RD |
20344 | { |
20345 | arg3 = wxString_in_helper(obj2); | |
20346 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 20347 | temp3 = True; |
d14a1e28 RD |
20348 | } |
20349 | { | |
20350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20351 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
20352 | ||
20353 | wxPyEndAllowThreads(__tstate); | |
20354 | if (PyErr_Occurred()) SWIG_fail; | |
20355 | } | |
20356 | Py_INCREF(Py_None); resultobj = Py_None; | |
20357 | { | |
20358 | if (temp3) | |
20359 | delete arg3; | |
20360 | } | |
20361 | return resultobj; | |
20362 | fail: | |
20363 | { | |
20364 | if (temp3) | |
20365 | delete arg3; | |
20366 | } | |
20367 | return NULL; | |
20368 | } | |
20369 | ||
20370 | ||
20371 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20372 | PyObject *resultobj; | |
20373 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20374 | long arg2 ; | |
20375 | long result; | |
20376 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20377 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20378 | char *kwnames[] = { |
20379 | (char *) "self",(char *) "item", NULL | |
20380 | }; | |
20381 | ||
8edf1c75 | 20382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20384 | { |
20385 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20386 | if (PyErr_Occurred()) SWIG_fail; | |
20387 | } | |
d14a1e28 RD |
20388 | { |
20389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20390 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
20391 | ||
20392 | wxPyEndAllowThreads(__tstate); | |
20393 | if (PyErr_Occurred()) SWIG_fail; | |
20394 | } | |
8edf1c75 | 20395 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20396 | return resultobj; |
20397 | fail: | |
20398 | return NULL; | |
20399 | } | |
20400 | ||
20401 | ||
20402 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20403 | PyObject *resultobj; | |
20404 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20405 | long arg2 ; | |
20406 | long arg3 ; | |
20407 | bool result; | |
20408 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20409 | PyObject * obj1 = 0 ; |
20410 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20411 | char *kwnames[] = { |
20412 | (char *) "self",(char *) "item",(char *) "data", NULL | |
20413 | }; | |
20414 | ||
8edf1c75 | 20415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20417 | { |
20418 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20419 | if (PyErr_Occurred()) SWIG_fail; | |
20420 | } | |
20421 | { | |
20422 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20423 | if (PyErr_Occurred()) SWIG_fail; | |
20424 | } | |
d14a1e28 RD |
20425 | { |
20426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20427 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
20428 | ||
20429 | wxPyEndAllowThreads(__tstate); | |
20430 | if (PyErr_Occurred()) SWIG_fail; | |
20431 | } | |
02a34c4c | 20432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20433 | return resultobj; |
20434 | fail: | |
20435 | return NULL; | |
20436 | } | |
20437 | ||
20438 | ||
20439 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20440 | PyObject *resultobj; | |
20441 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20442 | long arg2 ; | |
20443 | wxPoint result; | |
20444 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20445 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20446 | char *kwnames[] = { |
20447 | (char *) "self",(char *) "item", NULL | |
20448 | }; | |
20449 | ||
8edf1c75 | 20450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20452 | { |
20453 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20454 | if (PyErr_Occurred()) SWIG_fail; | |
20455 | } | |
d14a1e28 RD |
20456 | { |
20457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20458 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
20459 | ||
20460 | wxPyEndAllowThreads(__tstate); | |
20461 | if (PyErr_Occurred()) SWIG_fail; | |
20462 | } | |
20463 | { | |
20464 | wxPoint * resultptr; | |
20465 | resultptr = new wxPoint((wxPoint &) result); | |
20466 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20467 | } | |
20468 | return resultobj; | |
20469 | fail: | |
20470 | return NULL; | |
20471 | } | |
20472 | ||
20473 | ||
20474 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20475 | PyObject *resultobj; | |
20476 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20477 | long arg2 ; | |
20478 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
20479 | wxRect result; | |
20480 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20481 | PyObject * obj1 = 0 ; |
20482 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20483 | char *kwnames[] = { |
20484 | (char *) "self",(char *) "item",(char *) "code", NULL | |
20485 | }; | |
20486 | ||
8edf1c75 | 20487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20489 | { |
20490 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20491 | if (PyErr_Occurred()) SWIG_fail; | |
20492 | } | |
20493 | if (obj2) { | |
20494 | { | |
20495 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20496 | if (PyErr_Occurred()) SWIG_fail; | |
20497 | } | |
20498 | } | |
d14a1e28 RD |
20499 | { |
20500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20501 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
20502 | ||
20503 | wxPyEndAllowThreads(__tstate); | |
20504 | if (PyErr_Occurred()) SWIG_fail; | |
20505 | } | |
20506 | { | |
20507 | wxRect * resultptr; | |
20508 | resultptr = new wxRect((wxRect &) result); | |
20509 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20510 | } | |
20511 | return resultobj; | |
20512 | fail: | |
20513 | return NULL; | |
20514 | } | |
20515 | ||
20516 | ||
20517 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20518 | PyObject *resultobj; | |
20519 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20520 | long arg2 ; | |
20521 | wxPoint *arg3 = 0 ; | |
20522 | bool result; | |
20523 | wxPoint temp3 ; | |
20524 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20525 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20526 | PyObject * obj2 = 0 ; |
20527 | char *kwnames[] = { | |
20528 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
20529 | }; | |
20530 | ||
8edf1c75 | 20531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20533 | { |
20534 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20535 | if (PyErr_Occurred()) SWIG_fail; | |
20536 | } | |
d14a1e28 RD |
20537 | { |
20538 | arg3 = &temp3; | |
20539 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20540 | } | |
20541 | { | |
20542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20543 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
20544 | ||
20545 | wxPyEndAllowThreads(__tstate); | |
20546 | if (PyErr_Occurred()) SWIG_fail; | |
20547 | } | |
02a34c4c | 20548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20549 | return resultobj; |
20550 | fail: | |
20551 | return NULL; | |
20552 | } | |
20553 | ||
20554 | ||
20555 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20556 | PyObject *resultobj; | |
20557 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20558 | int result; | |
20559 | PyObject * obj0 = 0 ; | |
20560 | char *kwnames[] = { | |
20561 | (char *) "self", NULL | |
20562 | }; | |
20563 | ||
20564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
20565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20566 | { | |
20567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20568 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
20569 | ||
20570 | wxPyEndAllowThreads(__tstate); | |
20571 | if (PyErr_Occurred()) SWIG_fail; | |
20572 | } | |
8edf1c75 | 20573 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20574 | return resultobj; |
20575 | fail: | |
20576 | return NULL; | |
20577 | } | |
20578 | ||
20579 | ||
20580 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20581 | PyObject *resultobj; | |
20582 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20583 | int result; | |
20584 | PyObject * obj0 = 0 ; | |
20585 | char *kwnames[] = { | |
20586 | (char *) "self", NULL | |
20587 | }; | |
20588 | ||
20589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
20590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20591 | { | |
20592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20593 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
20594 | ||
20595 | wxPyEndAllowThreads(__tstate); | |
20596 | if (PyErr_Occurred()) SWIG_fail; | |
20597 | } | |
8edf1c75 | 20598 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20599 | return resultobj; |
20600 | fail: | |
20601 | return NULL; | |
20602 | } | |
20603 | ||
20604 | ||
20605 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20606 | PyObject *resultobj; | |
20607 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20608 | wxSize result; | |
20609 | PyObject * obj0 = 0 ; | |
20610 | char *kwnames[] = { | |
20611 | (char *) "self", NULL | |
20612 | }; | |
20613 | ||
20614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
20615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20616 | { | |
20617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20618 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
20619 | ||
20620 | wxPyEndAllowThreads(__tstate); | |
20621 | if (PyErr_Occurred()) SWIG_fail; | |
20622 | } | |
20623 | { | |
20624 | wxSize * resultptr; | |
20625 | resultptr = new wxSize((wxSize &) result); | |
20626 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20627 | } | |
20628 | return resultobj; | |
20629 | fail: | |
20630 | return NULL; | |
20631 | } | |
20632 | ||
20633 | ||
20634 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20635 | PyObject *resultobj; | |
20636 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20637 | int arg2 ; | |
423f194a | 20638 | bool arg3 = (bool) False ; |
d14a1e28 | 20639 | PyObject * obj0 = 0 ; |
8edf1c75 | 20640 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20641 | PyObject * obj2 = 0 ; |
20642 | char *kwnames[] = { | |
20643 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
20644 | }; | |
20645 | ||
8edf1c75 | 20646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20648 | { |
20649 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20650 | if (PyErr_Occurred()) SWIG_fail; | |
20651 | } | |
d14a1e28 | 20652 | if (obj2) { |
2dbef272 | 20653 | { |
8edf1c75 | 20654 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
20655 | if (PyErr_Occurred()) SWIG_fail; |
20656 | } | |
d14a1e28 RD |
20657 | } |
20658 | { | |
20659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20660 | (arg1)->SetItemSpacing(arg2,arg3); | |
20661 | ||
20662 | wxPyEndAllowThreads(__tstate); | |
20663 | if (PyErr_Occurred()) SWIG_fail; | |
20664 | } | |
20665 | Py_INCREF(Py_None); resultobj = Py_None; | |
20666 | return resultobj; | |
20667 | fail: | |
20668 | return NULL; | |
20669 | } | |
20670 | ||
20671 | ||
20672 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20673 | PyObject *resultobj; | |
20674 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20675 | int result; | |
20676 | PyObject * obj0 = 0 ; | |
20677 | char *kwnames[] = { | |
20678 | (char *) "self", NULL | |
20679 | }; | |
20680 | ||
20681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
20682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20683 | { | |
20684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20685 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
20686 | ||
20687 | wxPyEndAllowThreads(__tstate); | |
20688 | if (PyErr_Occurred()) SWIG_fail; | |
20689 | } | |
8edf1c75 | 20690 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20691 | return resultobj; |
20692 | fail: | |
20693 | return NULL; | |
20694 | } | |
20695 | ||
20696 | ||
20697 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20698 | PyObject *resultobj; | |
20699 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20700 | wxColour result; | |
20701 | PyObject * obj0 = 0 ; | |
20702 | char *kwnames[] = { | |
20703 | (char *) "self", NULL | |
20704 | }; | |
20705 | ||
20706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
20707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20708 | { | |
20709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20710 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
20711 | ||
20712 | wxPyEndAllowThreads(__tstate); | |
20713 | if (PyErr_Occurred()) SWIG_fail; | |
20714 | } | |
20715 | { | |
20716 | wxColour * resultptr; | |
20717 | resultptr = new wxColour((wxColour &) result); | |
20718 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
20719 | } | |
20720 | return resultobj; | |
20721 | fail: | |
20722 | return NULL; | |
20723 | } | |
20724 | ||
20725 | ||
20726 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20727 | PyObject *resultobj; | |
20728 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20729 | wxColour *arg2 = 0 ; | |
20730 | wxColour temp2 ; | |
20731 | PyObject * obj0 = 0 ; | |
20732 | PyObject * obj1 = 0 ; | |
20733 | char *kwnames[] = { | |
20734 | (char *) "self",(char *) "col", NULL | |
20735 | }; | |
20736 | ||
20737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
20738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20739 | { | |
20740 | arg2 = &temp2; | |
20741 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20742 | } | |
20743 | { | |
20744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20745 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
20746 | ||
20747 | wxPyEndAllowThreads(__tstate); | |
20748 | if (PyErr_Occurred()) SWIG_fail; | |
20749 | } | |
20750 | Py_INCREF(Py_None); resultobj = Py_None; | |
20751 | return resultobj; | |
20752 | fail: | |
20753 | return NULL; | |
20754 | } | |
20755 | ||
20756 | ||
20757 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20758 | PyObject *resultobj; | |
20759 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20760 | long result; | |
20761 | PyObject * obj0 = 0 ; | |
20762 | char *kwnames[] = { | |
20763 | (char *) "self", NULL | |
20764 | }; | |
20765 | ||
20766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
20767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20768 | { | |
20769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20770 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
20771 | ||
20772 | wxPyEndAllowThreads(__tstate); | |
20773 | if (PyErr_Occurred()) SWIG_fail; | |
20774 | } | |
8edf1c75 | 20775 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20776 | return resultobj; |
20777 | fail: | |
20778 | return NULL; | |
20779 | } | |
20780 | ||
20781 | ||
20782 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20783 | PyObject *resultobj; | |
20784 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20785 | long arg2 ; | |
423f194a | 20786 | bool arg3 = (bool) True ; |
d14a1e28 | 20787 | PyObject * obj0 = 0 ; |
8edf1c75 | 20788 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20789 | PyObject * obj2 = 0 ; |
20790 | char *kwnames[] = { | |
20791 | (char *) "self",(char *) "style",(char *) "add", NULL | |
20792 | }; | |
20793 | ||
8edf1c75 | 20794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20796 | { |
20797 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20798 | if (PyErr_Occurred()) SWIG_fail; | |
20799 | } | |
d14a1e28 | 20800 | if (obj2) { |
2dbef272 | 20801 | { |
8edf1c75 | 20802 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
20803 | if (PyErr_Occurred()) SWIG_fail; |
20804 | } | |
d14a1e28 RD |
20805 | } |
20806 | { | |
20807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20808 | (arg1)->SetSingleStyle(arg2,arg3); | |
20809 | ||
20810 | wxPyEndAllowThreads(__tstate); | |
20811 | if (PyErr_Occurred()) SWIG_fail; | |
20812 | } | |
20813 | Py_INCREF(Py_None); resultobj = Py_None; | |
20814 | return resultobj; | |
20815 | fail: | |
20816 | return NULL; | |
20817 | } | |
20818 | ||
20819 | ||
20820 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20821 | PyObject *resultobj; | |
20822 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20823 | long arg2 ; | |
20824 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20825 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20826 | char *kwnames[] = { |
20827 | (char *) "self",(char *) "style", NULL | |
20828 | }; | |
20829 | ||
8edf1c75 | 20830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20832 | { |
20833 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20834 | if (PyErr_Occurred()) SWIG_fail; | |
20835 | } | |
d14a1e28 RD |
20836 | { |
20837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20838 | (arg1)->SetWindowStyleFlag(arg2); | |
20839 | ||
20840 | wxPyEndAllowThreads(__tstate); | |
20841 | if (PyErr_Occurred()) SWIG_fail; | |
20842 | } | |
20843 | Py_INCREF(Py_None); resultobj = Py_None; | |
20844 | return resultobj; | |
20845 | fail: | |
20846 | return NULL; | |
20847 | } | |
20848 | ||
20849 | ||
20850 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20851 | PyObject *resultobj; | |
20852 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20853 | long arg2 ; | |
20854 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
20855 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
20856 | long result; | |
20857 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20858 | PyObject * obj1 = 0 ; |
20859 | PyObject * obj2 = 0 ; | |
20860 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20861 | char *kwnames[] = { |
20862 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
20863 | }; | |
20864 | ||
8edf1c75 | 20865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20867 | { |
20868 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20869 | if (PyErr_Occurred()) SWIG_fail; | |
20870 | } | |
20871 | if (obj2) { | |
20872 | { | |
20873 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20874 | if (PyErr_Occurred()) SWIG_fail; | |
20875 | } | |
20876 | } | |
20877 | if (obj3) { | |
20878 | { | |
20879 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
20880 | if (PyErr_Occurred()) SWIG_fail; | |
20881 | } | |
20882 | } | |
d14a1e28 RD |
20883 | { |
20884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20885 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
20886 | ||
20887 | wxPyEndAllowThreads(__tstate); | |
20888 | if (PyErr_Occurred()) SWIG_fail; | |
20889 | } | |
8edf1c75 | 20890 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20891 | return resultobj; |
20892 | fail: | |
20893 | return NULL; | |
20894 | } | |
20895 | ||
20896 | ||
20897 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20898 | PyObject *resultobj; | |
20899 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20900 | int arg2 ; | |
20901 | wxImageList *result; | |
20902 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20903 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20904 | char *kwnames[] = { |
20905 | (char *) "self",(char *) "which", NULL | |
20906 | }; | |
20907 | ||
8edf1c75 | 20908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20910 | { |
20911 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20912 | if (PyErr_Occurred()) SWIG_fail; | |
20913 | } | |
d14a1e28 RD |
20914 | { |
20915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20916 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
20917 | ||
20918 | wxPyEndAllowThreads(__tstate); | |
20919 | if (PyErr_Occurred()) SWIG_fail; | |
20920 | } | |
20921 | { | |
20922 | resultobj = wxPyMake_wxObject(result); | |
20923 | } | |
20924 | return resultobj; | |
20925 | fail: | |
20926 | return NULL; | |
20927 | } | |
20928 | ||
20929 | ||
20930 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20931 | PyObject *resultobj; | |
20932 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20933 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20934 | int arg3 ; | |
20935 | PyObject * obj0 = 0 ; | |
20936 | PyObject * obj1 = 0 ; | |
8edf1c75 | 20937 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20938 | char *kwnames[] = { |
20939 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
20940 | }; | |
20941 | ||
8edf1c75 | 20942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
20943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20944 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
20945 | { |
20946 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20947 | if (PyErr_Occurred()) SWIG_fail; | |
20948 | } | |
d14a1e28 RD |
20949 | { |
20950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20951 | (arg1)->SetImageList(arg2,arg3); | |
20952 | ||
20953 | wxPyEndAllowThreads(__tstate); | |
20954 | if (PyErr_Occurred()) SWIG_fail; | |
20955 | } | |
20956 | Py_INCREF(Py_None); resultobj = Py_None; | |
20957 | return resultobj; | |
20958 | fail: | |
20959 | return NULL; | |
20960 | } | |
20961 | ||
20962 | ||
20963 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20964 | PyObject *resultobj; | |
20965 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20966 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20967 | int arg3 ; | |
20968 | PyObject * obj0 = 0 ; | |
20969 | PyObject * obj1 = 0 ; | |
8edf1c75 | 20970 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20971 | char *kwnames[] = { |
20972 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
20973 | }; | |
20974 | ||
8edf1c75 | 20975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
58203fa6 | 20977 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
8edf1c75 RD |
20978 | { |
20979 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20980 | if (PyErr_Occurred()) SWIG_fail; | |
20981 | } | |
d14a1e28 RD |
20982 | { |
20983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20984 | (arg1)->AssignImageList(arg2,arg3); | |
20985 | ||
20986 | wxPyEndAllowThreads(__tstate); | |
20987 | if (PyErr_Occurred()) SWIG_fail; | |
20988 | } | |
20989 | Py_INCREF(Py_None); resultobj = Py_None; | |
20990 | return resultobj; | |
20991 | fail: | |
20992 | return NULL; | |
20993 | } | |
20994 | ||
20995 | ||
20996 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20997 | PyObject *resultobj; | |
20998 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20999 | bool result; | |
21000 | PyObject * obj0 = 0 ; | |
21001 | char *kwnames[] = { | |
21002 | (char *) "self", NULL | |
21003 | }; | |
21004 | ||
21005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
21006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21007 | { | |
21008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21009 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
21010 | ||
21011 | wxPyEndAllowThreads(__tstate); | |
21012 | if (PyErr_Occurred()) SWIG_fail; | |
21013 | } | |
02a34c4c | 21014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21015 | return resultobj; |
21016 | fail: | |
21017 | return NULL; | |
21018 | } | |
21019 | ||
21020 | ||
21021 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21022 | PyObject *resultobj; | |
21023 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21024 | long arg2 ; | |
21025 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21026 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21027 | char *kwnames[] = { |
21028 | (char *) "self",(char *) "item", NULL | |
21029 | }; | |
21030 | ||
8edf1c75 | 21031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21033 | { |
21034 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21035 | if (PyErr_Occurred()) SWIG_fail; | |
21036 | } | |
d14a1e28 RD |
21037 | { |
21038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21039 | (arg1)->RefreshItem(arg2); | |
21040 | ||
21041 | wxPyEndAllowThreads(__tstate); | |
21042 | if (PyErr_Occurred()) SWIG_fail; | |
21043 | } | |
21044 | Py_INCREF(Py_None); resultobj = Py_None; | |
21045 | return resultobj; | |
21046 | fail: | |
21047 | return NULL; | |
21048 | } | |
21049 | ||
21050 | ||
21051 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21052 | PyObject *resultobj; | |
21053 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21054 | long arg2 ; | |
21055 | long arg3 ; | |
21056 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21057 | PyObject * obj1 = 0 ; |
21058 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21059 | char *kwnames[] = { |
21060 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
21061 | }; | |
21062 | ||
8edf1c75 | 21063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21065 | { |
21066 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21067 | if (PyErr_Occurred()) SWIG_fail; | |
21068 | } | |
21069 | { | |
21070 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21071 | if (PyErr_Occurred()) SWIG_fail; | |
21072 | } | |
d14a1e28 RD |
21073 | { |
21074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21075 | (arg1)->RefreshItems(arg2,arg3); | |
21076 | ||
21077 | wxPyEndAllowThreads(__tstate); | |
21078 | if (PyErr_Occurred()) SWIG_fail; | |
21079 | } | |
21080 | Py_INCREF(Py_None); resultobj = Py_None; | |
21081 | return resultobj; | |
21082 | fail: | |
21083 | return NULL; | |
21084 | } | |
21085 | ||
21086 | ||
21087 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21088 | PyObject *resultobj; | |
21089 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21090 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
21091 | bool result; | |
21092 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21093 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21094 | char *kwnames[] = { |
21095 | (char *) "self",(char *) "flag", NULL | |
21096 | }; | |
21097 | ||
8edf1c75 | 21098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21100 | if (obj1) { |
21101 | { | |
21102 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21103 | if (PyErr_Occurred()) SWIG_fail; | |
21104 | } | |
21105 | } | |
d14a1e28 RD |
21106 | { |
21107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21108 | result = (bool)(arg1)->Arrange(arg2); | |
21109 | ||
21110 | wxPyEndAllowThreads(__tstate); | |
21111 | if (PyErr_Occurred()) SWIG_fail; | |
21112 | } | |
02a34c4c | 21113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21114 | return resultobj; |
21115 | fail: | |
21116 | return NULL; | |
21117 | } | |
21118 | ||
21119 | ||
21120 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21121 | PyObject *resultobj; | |
21122 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21123 | long arg2 ; | |
21124 | bool result; | |
21125 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21126 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21127 | char *kwnames[] = { |
21128 | (char *) "self",(char *) "item", NULL | |
21129 | }; | |
21130 | ||
8edf1c75 | 21131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21133 | { |
21134 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21135 | if (PyErr_Occurred()) SWIG_fail; | |
21136 | } | |
d14a1e28 RD |
21137 | { |
21138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21139 | result = (bool)(arg1)->DeleteItem(arg2); | |
21140 | ||
21141 | wxPyEndAllowThreads(__tstate); | |
21142 | if (PyErr_Occurred()) SWIG_fail; | |
21143 | } | |
02a34c4c | 21144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21145 | return resultobj; |
21146 | fail: | |
21147 | return NULL; | |
21148 | } | |
21149 | ||
21150 | ||
21151 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21152 | PyObject *resultobj; | |
21153 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21154 | bool result; | |
21155 | PyObject * obj0 = 0 ; | |
21156 | char *kwnames[] = { | |
21157 | (char *) "self", NULL | |
21158 | }; | |
21159 | ||
21160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
21161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21162 | { | |
21163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21164 | result = (bool)(arg1)->DeleteAllItems(); | |
21165 | ||
21166 | wxPyEndAllowThreads(__tstate); | |
21167 | if (PyErr_Occurred()) SWIG_fail; | |
21168 | } | |
02a34c4c | 21169 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21170 | return resultobj; |
21171 | fail: | |
21172 | return NULL; | |
21173 | } | |
21174 | ||
21175 | ||
21176 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21177 | PyObject *resultobj; | |
21178 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21179 | int arg2 ; | |
21180 | bool result; | |
21181 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21182 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21183 | char *kwnames[] = { |
21184 | (char *) "self",(char *) "col", NULL | |
21185 | }; | |
21186 | ||
8edf1c75 | 21187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21189 | { |
21190 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21191 | if (PyErr_Occurred()) SWIG_fail; | |
21192 | } | |
d14a1e28 RD |
21193 | { |
21194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21195 | result = (bool)(arg1)->DeleteColumn(arg2); | |
21196 | ||
21197 | wxPyEndAllowThreads(__tstate); | |
21198 | if (PyErr_Occurred()) SWIG_fail; | |
21199 | } | |
02a34c4c | 21200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21201 | return resultobj; |
21202 | fail: | |
21203 | return NULL; | |
21204 | } | |
21205 | ||
21206 | ||
21207 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21208 | PyObject *resultobj; | |
21209 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21210 | bool result; | |
21211 | PyObject * obj0 = 0 ; | |
21212 | char *kwnames[] = { | |
21213 | (char *) "self", NULL | |
21214 | }; | |
21215 | ||
21216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
21217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21218 | { | |
21219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21220 | result = (bool)(arg1)->DeleteAllColumns(); | |
21221 | ||
21222 | wxPyEndAllowThreads(__tstate); | |
21223 | if (PyErr_Occurred()) SWIG_fail; | |
21224 | } | |
02a34c4c | 21225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21226 | return resultobj; |
21227 | fail: | |
21228 | return NULL; | |
21229 | } | |
21230 | ||
21231 | ||
21232 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21233 | PyObject *resultobj; | |
21234 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21235 | PyObject * obj0 = 0 ; | |
21236 | char *kwnames[] = { | |
21237 | (char *) "self", NULL | |
21238 | }; | |
21239 | ||
21240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
21241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21242 | { | |
21243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21244 | (arg1)->ClearAll(); | |
21245 | ||
21246 | wxPyEndAllowThreads(__tstate); | |
21247 | if (PyErr_Occurred()) SWIG_fail; | |
21248 | } | |
21249 | Py_INCREF(Py_None); resultobj = Py_None; | |
21250 | return resultobj; | |
21251 | fail: | |
21252 | return NULL; | |
21253 | } | |
21254 | ||
21255 | ||
21256 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21257 | PyObject *resultobj; | |
21258 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21259 | long arg2 ; | |
21260 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21261 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21262 | char *kwnames[] = { |
21263 | (char *) "self",(char *) "item", NULL | |
21264 | }; | |
21265 | ||
8edf1c75 | 21266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21268 | { |
21269 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21270 | if (PyErr_Occurred()) SWIG_fail; | |
21271 | } | |
d14a1e28 RD |
21272 | { |
21273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21274 | (arg1)->EditLabel(arg2); | |
21275 | ||
21276 | wxPyEndAllowThreads(__tstate); | |
21277 | if (PyErr_Occurred()) SWIG_fail; | |
21278 | } | |
21279 | Py_INCREF(Py_None); resultobj = Py_None; | |
21280 | return resultobj; | |
21281 | fail: | |
21282 | return NULL; | |
21283 | } | |
21284 | ||
21285 | ||
21286 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21287 | PyObject *resultobj; | |
21288 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21289 | long arg2 ; | |
21290 | bool result; | |
21291 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21292 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21293 | char *kwnames[] = { |
21294 | (char *) "self",(char *) "item", NULL | |
21295 | }; | |
21296 | ||
8edf1c75 | 21297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21299 | { |
21300 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21301 | if (PyErr_Occurred()) SWIG_fail; | |
21302 | } | |
d14a1e28 RD |
21303 | { |
21304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21305 | result = (bool)(arg1)->EnsureVisible(arg2); | |
21306 | ||
21307 | wxPyEndAllowThreads(__tstate); | |
21308 | if (PyErr_Occurred()) SWIG_fail; | |
21309 | } | |
02a34c4c | 21310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21311 | return resultobj; |
21312 | fail: | |
21313 | return NULL; | |
21314 | } | |
21315 | ||
21316 | ||
21317 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21318 | PyObject *resultobj; | |
21319 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21320 | long arg2 ; | |
21321 | wxString *arg3 = 0 ; | |
423f194a | 21322 | bool arg4 = (bool) False ; |
d14a1e28 | 21323 | long result; |
423f194a | 21324 | bool temp3 = False ; |
d14a1e28 | 21325 | PyObject * obj0 = 0 ; |
8edf1c75 | 21326 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21327 | PyObject * obj2 = 0 ; |
21328 | PyObject * obj3 = 0 ; | |
21329 | char *kwnames[] = { | |
21330 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
21331 | }; | |
21332 | ||
8edf1c75 | 21333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21335 | { |
21336 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21337 | if (PyErr_Occurred()) SWIG_fail; | |
21338 | } | |
d14a1e28 RD |
21339 | { |
21340 | arg3 = wxString_in_helper(obj2); | |
21341 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21342 | temp3 = True; |
d14a1e28 RD |
21343 | } |
21344 | if (obj3) { | |
2dbef272 | 21345 | { |
8edf1c75 | 21346 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
21347 | if (PyErr_Occurred()) SWIG_fail; |
21348 | } | |
d14a1e28 RD |
21349 | } |
21350 | { | |
21351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21352 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
21353 | ||
21354 | wxPyEndAllowThreads(__tstate); | |
21355 | if (PyErr_Occurred()) SWIG_fail; | |
21356 | } | |
8edf1c75 | 21357 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21358 | { |
21359 | if (temp3) | |
21360 | delete arg3; | |
21361 | } | |
21362 | return resultobj; | |
21363 | fail: | |
21364 | { | |
21365 | if (temp3) | |
21366 | delete arg3; | |
21367 | } | |
21368 | return NULL; | |
21369 | } | |
21370 | ||
21371 | ||
21372 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21373 | PyObject *resultobj; | |
21374 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21375 | long arg2 ; | |
21376 | long arg3 ; | |
21377 | long result; | |
21378 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21379 | PyObject * obj1 = 0 ; |
21380 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21381 | char *kwnames[] = { |
21382 | (char *) "self",(char *) "start",(char *) "data", NULL | |
21383 | }; | |
21384 | ||
8edf1c75 | 21385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21387 | { |
21388 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21389 | if (PyErr_Occurred()) SWIG_fail; | |
21390 | } | |
21391 | { | |
21392 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21393 | if (PyErr_Occurred()) SWIG_fail; | |
21394 | } | |
d14a1e28 RD |
21395 | { |
21396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21397 | result = (long)(arg1)->FindItem(arg2,arg3); | |
21398 | ||
21399 | wxPyEndAllowThreads(__tstate); | |
21400 | if (PyErr_Occurred()) SWIG_fail; | |
21401 | } | |
8edf1c75 | 21402 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21403 | return resultobj; |
21404 | fail: | |
21405 | return NULL; | |
21406 | } | |
21407 | ||
21408 | ||
21409 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21410 | PyObject *resultobj; | |
21411 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21412 | long arg2 ; | |
21413 | wxPoint *arg3 = 0 ; | |
21414 | int arg4 ; | |
21415 | long result; | |
21416 | wxPoint temp3 ; | |
21417 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21418 | PyObject * obj1 = 0 ; |
d14a1e28 | 21419 | PyObject * obj2 = 0 ; |
8edf1c75 | 21420 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
21421 | char *kwnames[] = { |
21422 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
21423 | }; | |
21424 | ||
8edf1c75 | 21425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21427 | { |
21428 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21429 | if (PyErr_Occurred()) SWIG_fail; | |
21430 | } | |
d14a1e28 RD |
21431 | { |
21432 | arg3 = &temp3; | |
21433 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21434 | } | |
8edf1c75 RD |
21435 | { |
21436 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21437 | if (PyErr_Occurred()) SWIG_fail; | |
21438 | } | |
d14a1e28 RD |
21439 | { |
21440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21441 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
21442 | ||
21443 | wxPyEndAllowThreads(__tstate); | |
21444 | if (PyErr_Occurred()) SWIG_fail; | |
21445 | } | |
8edf1c75 | 21446 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21447 | return resultobj; |
21448 | fail: | |
21449 | return NULL; | |
21450 | } | |
21451 | ||
21452 | ||
21453 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21454 | PyObject *resultobj; | |
21455 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21456 | wxPoint *arg2 = 0 ; | |
21457 | int *arg3 = 0 ; | |
21458 | long result; | |
21459 | wxPoint temp2 ; | |
21460 | int temp3 ; | |
21461 | PyObject * obj0 = 0 ; | |
21462 | PyObject * obj1 = 0 ; | |
21463 | char *kwnames[] = { | |
21464 | (char *) "self",(char *) "point", NULL | |
21465 | }; | |
21466 | ||
21467 | arg3 = &temp3; | |
21468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
21469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21470 | { | |
21471 | arg2 = &temp2; | |
21472 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21473 | } | |
21474 | { | |
21475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21476 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
21477 | ||
21478 | wxPyEndAllowThreads(__tstate); | |
21479 | if (PyErr_Occurred()) SWIG_fail; | |
21480 | } | |
8edf1c75 | 21481 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21482 | { |
21483 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21484 | resultobj = t_output_helper(resultobj,o); | |
21485 | } | |
21486 | return resultobj; | |
21487 | fail: | |
21488 | return NULL; | |
21489 | } | |
21490 | ||
21491 | ||
21492 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21493 | PyObject *resultobj; | |
21494 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21495 | wxListItem *arg2 = 0 ; | |
21496 | long result; | |
21497 | PyObject * obj0 = 0 ; | |
21498 | PyObject * obj1 = 0 ; | |
21499 | char *kwnames[] = { | |
21500 | (char *) "self",(char *) "info", NULL | |
21501 | }; | |
21502 | ||
21503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
21504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21505 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21506 | if (arg2 == NULL) { | |
21507 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21508 | } | |
21509 | { | |
21510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21511 | result = (long)(arg1)->InsertItem(*arg2); | |
21512 | ||
21513 | wxPyEndAllowThreads(__tstate); | |
21514 | if (PyErr_Occurred()) SWIG_fail; | |
21515 | } | |
8edf1c75 | 21516 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21517 | return resultobj; |
21518 | fail: | |
21519 | return NULL; | |
21520 | } | |
21521 | ||
21522 | ||
21523 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21524 | PyObject *resultobj; | |
21525 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21526 | long arg2 ; | |
21527 | wxString *arg3 = 0 ; | |
21528 | long result; | |
423f194a | 21529 | bool temp3 = False ; |
d14a1e28 | 21530 | PyObject * obj0 = 0 ; |
8edf1c75 | 21531 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21532 | PyObject * obj2 = 0 ; |
21533 | char *kwnames[] = { | |
21534 | (char *) "self",(char *) "index",(char *) "label", NULL | |
21535 | }; | |
21536 | ||
8edf1c75 | 21537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21539 | { |
21540 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21541 | if (PyErr_Occurred()) SWIG_fail; | |
21542 | } | |
d14a1e28 RD |
21543 | { |
21544 | arg3 = wxString_in_helper(obj2); | |
21545 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21546 | temp3 = True; |
d14a1e28 RD |
21547 | } |
21548 | { | |
21549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21550 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
21551 | ||
21552 | wxPyEndAllowThreads(__tstate); | |
21553 | if (PyErr_Occurred()) SWIG_fail; | |
21554 | } | |
8edf1c75 | 21555 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21556 | { |
21557 | if (temp3) | |
21558 | delete arg3; | |
21559 | } | |
21560 | return resultobj; | |
21561 | fail: | |
21562 | { | |
21563 | if (temp3) | |
21564 | delete arg3; | |
21565 | } | |
21566 | return NULL; | |
21567 | } | |
21568 | ||
21569 | ||
21570 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21571 | PyObject *resultobj; | |
21572 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21573 | long arg2 ; | |
21574 | int arg3 ; | |
21575 | long result; | |
21576 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21577 | PyObject * obj1 = 0 ; |
21578 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21579 | char *kwnames[] = { |
21580 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
21581 | }; | |
21582 | ||
8edf1c75 | 21583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21585 | { |
21586 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21587 | if (PyErr_Occurred()) SWIG_fail; | |
21588 | } | |
21589 | { | |
21590 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21591 | if (PyErr_Occurred()) SWIG_fail; | |
21592 | } | |
d14a1e28 RD |
21593 | { |
21594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21595 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
21596 | ||
21597 | wxPyEndAllowThreads(__tstate); | |
21598 | if (PyErr_Occurred()) SWIG_fail; | |
21599 | } | |
8edf1c75 | 21600 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21601 | return resultobj; |
21602 | fail: | |
21603 | return NULL; | |
21604 | } | |
21605 | ||
21606 | ||
21607 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21608 | PyObject *resultobj; | |
21609 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21610 | long arg2 ; | |
21611 | wxString *arg3 = 0 ; | |
21612 | int arg4 ; | |
21613 | long result; | |
423f194a | 21614 | bool temp3 = False ; |
d14a1e28 | 21615 | PyObject * obj0 = 0 ; |
8edf1c75 | 21616 | PyObject * obj1 = 0 ; |
d14a1e28 | 21617 | PyObject * obj2 = 0 ; |
8edf1c75 | 21618 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
21619 | char *kwnames[] = { |
21620 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
21621 | }; | |
21622 | ||
8edf1c75 | 21623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21625 | { |
21626 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21627 | if (PyErr_Occurred()) SWIG_fail; | |
21628 | } | |
d14a1e28 RD |
21629 | { |
21630 | arg3 = wxString_in_helper(obj2); | |
21631 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21632 | temp3 = True; |
d14a1e28 | 21633 | } |
8edf1c75 RD |
21634 | { |
21635 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21636 | if (PyErr_Occurred()) SWIG_fail; | |
21637 | } | |
d14a1e28 RD |
21638 | { |
21639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21640 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
21641 | ||
21642 | wxPyEndAllowThreads(__tstate); | |
21643 | if (PyErr_Occurred()) SWIG_fail; | |
21644 | } | |
8edf1c75 | 21645 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21646 | { |
21647 | if (temp3) | |
21648 | delete arg3; | |
21649 | } | |
21650 | return resultobj; | |
21651 | fail: | |
21652 | { | |
21653 | if (temp3) | |
21654 | delete arg3; | |
21655 | } | |
21656 | return NULL; | |
21657 | } | |
21658 | ||
21659 | ||
21660 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21661 | PyObject *resultobj; | |
21662 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21663 | long arg2 ; | |
21664 | wxListItem *arg3 = 0 ; | |
21665 | long result; | |
21666 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21667 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21668 | PyObject * obj2 = 0 ; |
21669 | char *kwnames[] = { | |
21670 | (char *) "self",(char *) "col",(char *) "info", NULL | |
21671 | }; | |
21672 | ||
8edf1c75 | 21673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21675 | { |
21676 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21677 | if (PyErr_Occurred()) SWIG_fail; | |
21678 | } | |
d14a1e28 RD |
21679 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
21680 | if (arg3 == NULL) { | |
21681 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21682 | } | |
21683 | { | |
21684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21685 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
21686 | ||
21687 | wxPyEndAllowThreads(__tstate); | |
21688 | if (PyErr_Occurred()) SWIG_fail; | |
21689 | } | |
8edf1c75 | 21690 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21691 | return resultobj; |
21692 | fail: | |
21693 | return NULL; | |
21694 | } | |
21695 | ||
21696 | ||
21697 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21698 | PyObject *resultobj; | |
21699 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21700 | long arg2 ; | |
21701 | wxString *arg3 = 0 ; | |
21702 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
21703 | int arg5 = (int) -1 ; | |
21704 | long result; | |
423f194a | 21705 | bool temp3 = False ; |
d14a1e28 | 21706 | PyObject * obj0 = 0 ; |
8edf1c75 | 21707 | PyObject * obj1 = 0 ; |
d14a1e28 | 21708 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
21709 | PyObject * obj3 = 0 ; |
21710 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
21711 | char *kwnames[] = { |
21712 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
21713 | }; | |
21714 | ||
8edf1c75 | 21715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 21716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21717 | { |
21718 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21719 | if (PyErr_Occurred()) SWIG_fail; | |
21720 | } | |
d14a1e28 RD |
21721 | { |
21722 | arg3 = wxString_in_helper(obj2); | |
21723 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21724 | temp3 = True; |
d14a1e28 | 21725 | } |
8edf1c75 RD |
21726 | if (obj3) { |
21727 | { | |
21728 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21729 | if (PyErr_Occurred()) SWIG_fail; | |
21730 | } | |
21731 | } | |
21732 | if (obj4) { | |
21733 | { | |
21734 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
21735 | if (PyErr_Occurred()) SWIG_fail; | |
21736 | } | |
21737 | } | |
d14a1e28 RD |
21738 | { |
21739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21740 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
21741 | ||
21742 | wxPyEndAllowThreads(__tstate); | |
21743 | if (PyErr_Occurred()) SWIG_fail; | |
21744 | } | |
8edf1c75 | 21745 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21746 | { |
21747 | if (temp3) | |
21748 | delete arg3; | |
21749 | } | |
21750 | return resultobj; | |
21751 | fail: | |
21752 | { | |
21753 | if (temp3) | |
21754 | delete arg3; | |
21755 | } | |
21756 | return NULL; | |
21757 | } | |
21758 | ||
21759 | ||
21760 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21761 | PyObject *resultobj; | |
21762 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21763 | long arg2 ; | |
21764 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21765 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21766 | char *kwnames[] = { |
21767 | (char *) "self",(char *) "count", NULL | |
21768 | }; | |
21769 | ||
8edf1c75 | 21770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21772 | { |
21773 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21774 | if (PyErr_Occurred()) SWIG_fail; | |
21775 | } | |
d14a1e28 RD |
21776 | { |
21777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21778 | (arg1)->SetItemCount(arg2); | |
21779 | ||
21780 | wxPyEndAllowThreads(__tstate); | |
21781 | if (PyErr_Occurred()) SWIG_fail; | |
21782 | } | |
21783 | Py_INCREF(Py_None); resultobj = Py_None; | |
21784 | return resultobj; | |
21785 | fail: | |
21786 | return NULL; | |
21787 | } | |
21788 | ||
21789 | ||
21790 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21791 | PyObject *resultobj; | |
21792 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21793 | int arg2 ; | |
21794 | int arg3 ; | |
21795 | bool result; | |
21796 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21797 | PyObject * obj1 = 0 ; |
21798 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21799 | char *kwnames[] = { |
21800 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
21801 | }; | |
21802 | ||
8edf1c75 | 21803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21805 | { |
21806 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21807 | if (PyErr_Occurred()) SWIG_fail; | |
21808 | } | |
21809 | { | |
21810 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21811 | if (PyErr_Occurred()) SWIG_fail; | |
21812 | } | |
d14a1e28 RD |
21813 | { |
21814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21815 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
21816 | ||
21817 | wxPyEndAllowThreads(__tstate); | |
21818 | if (PyErr_Occurred()) SWIG_fail; | |
21819 | } | |
02a34c4c | 21820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21821 | return resultobj; |
21822 | fail: | |
21823 | return NULL; | |
21824 | } | |
21825 | ||
21826 | ||
21827 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21828 | PyObject *resultobj; | |
21829 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21830 | long arg2 ; | |
21831 | wxColour *arg3 = 0 ; | |
21832 | wxColour temp3 ; | |
21833 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21834 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21835 | PyObject * obj2 = 0 ; |
21836 | char *kwnames[] = { | |
21837 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21838 | }; | |
21839 | ||
8edf1c75 | 21840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21842 | { |
21843 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21844 | if (PyErr_Occurred()) SWIG_fail; | |
21845 | } | |
d14a1e28 RD |
21846 | { |
21847 | arg3 = &temp3; | |
21848 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21849 | } | |
21850 | { | |
21851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21852 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
21853 | ||
21854 | wxPyEndAllowThreads(__tstate); | |
21855 | if (PyErr_Occurred()) SWIG_fail; | |
21856 | } | |
21857 | Py_INCREF(Py_None); resultobj = Py_None; | |
21858 | return resultobj; | |
21859 | fail: | |
21860 | return NULL; | |
21861 | } | |
21862 | ||
21863 | ||
21864 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21865 | PyObject *resultobj; | |
21866 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21867 | long arg2 ; | |
21868 | wxColour result; | |
21869 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21870 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21871 | char *kwnames[] = { |
21872 | (char *) "self",(char *) "item", NULL | |
21873 | }; | |
21874 | ||
8edf1c75 | 21875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21877 | { |
21878 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21879 | if (PyErr_Occurred()) SWIG_fail; | |
21880 | } | |
d14a1e28 RD |
21881 | { |
21882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21883 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
21884 | ||
21885 | wxPyEndAllowThreads(__tstate); | |
21886 | if (PyErr_Occurred()) SWIG_fail; | |
21887 | } | |
21888 | { | |
21889 | wxColour * resultptr; | |
21890 | resultptr = new wxColour((wxColour &) result); | |
21891 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21892 | } | |
21893 | return resultobj; | |
21894 | fail: | |
21895 | return NULL; | |
21896 | } | |
21897 | ||
21898 | ||
21899 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21900 | PyObject *resultobj; | |
21901 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21902 | long arg2 ; | |
21903 | wxColour *arg3 = 0 ; | |
21904 | wxColour temp3 ; | |
21905 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21906 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21907 | PyObject * obj2 = 0 ; |
21908 | char *kwnames[] = { | |
21909 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21910 | }; | |
21911 | ||
8edf1c75 | 21912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21914 | { |
21915 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21916 | if (PyErr_Occurred()) SWIG_fail; | |
21917 | } | |
d14a1e28 RD |
21918 | { |
21919 | arg3 = &temp3; | |
21920 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21921 | } | |
21922 | { | |
21923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21924 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
21925 | ||
21926 | wxPyEndAllowThreads(__tstate); | |
21927 | if (PyErr_Occurred()) SWIG_fail; | |
21928 | } | |
21929 | Py_INCREF(Py_None); resultobj = Py_None; | |
21930 | return resultobj; | |
21931 | fail: | |
21932 | return NULL; | |
21933 | } | |
21934 | ||
21935 | ||
21936 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21937 | PyObject *resultobj; | |
21938 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21939 | long arg2 ; | |
21940 | wxColour result; | |
21941 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21942 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21943 | char *kwnames[] = { |
21944 | (char *) "self",(char *) "item", NULL | |
21945 | }; | |
21946 | ||
8edf1c75 | 21947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21949 | { |
21950 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21951 | if (PyErr_Occurred()) SWIG_fail; | |
21952 | } | |
d14a1e28 RD |
21953 | { |
21954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21955 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
21956 | ||
21957 | wxPyEndAllowThreads(__tstate); | |
21958 | if (PyErr_Occurred()) SWIG_fail; | |
21959 | } | |
21960 | { | |
21961 | wxColour * resultptr; | |
21962 | resultptr = new wxColour((wxColour &) result); | |
21963 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21964 | } | |
21965 | return resultobj; | |
21966 | fail: | |
21967 | return NULL; | |
21968 | } | |
21969 | ||
21970 | ||
21971 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21972 | PyObject *resultobj; | |
21973 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21974 | PyObject *arg2 = (PyObject *) 0 ; | |
21975 | bool result; | |
21976 | PyObject * obj0 = 0 ; | |
21977 | PyObject * obj1 = 0 ; | |
21978 | char *kwnames[] = { | |
21979 | (char *) "self",(char *) "func", NULL | |
21980 | }; | |
21981 | ||
21982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
21983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21984 | arg2 = obj1; | |
21985 | { | |
21986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21987 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
21988 | ||
21989 | wxPyEndAllowThreads(__tstate); | |
21990 | if (PyErr_Occurred()) SWIG_fail; | |
21991 | } | |
02a34c4c | 21992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21993 | return resultobj; |
21994 | fail: | |
21995 | return NULL; | |
21996 | } | |
21997 | ||
21998 | ||
21999 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22000 | PyObject *resultobj; | |
22001 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22002 | wxWindow *result; | |
22003 | PyObject * obj0 = 0 ; | |
22004 | char *kwnames[] = { | |
22005 | (char *) "self", NULL | |
22006 | }; | |
22007 | ||
22008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
22009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22010 | { | |
22011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22012 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
22013 | ||
22014 | wxPyEndAllowThreads(__tstate); | |
22015 | if (PyErr_Occurred()) SWIG_fail; | |
22016 | } | |
22017 | { | |
22018 | resultobj = wxPyMake_wxObject(result); | |
22019 | } | |
22020 | return resultobj; | |
22021 | fail: | |
22022 | return NULL; | |
22023 | } | |
22024 | ||
22025 | ||
22026 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
22027 | PyObject *obj; | |
22028 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22029 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
22030 | Py_INCREF(obj); | |
22031 | return Py_BuildValue((char *)""); | |
22032 | } | |
22033 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22034 | PyObject *resultobj; | |
22035 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22036 | int arg2 = (int) -1 ; |
d14a1e28 RD |
22037 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
22038 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22039 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22040 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22041 | long arg5 = (long) wxLC_REPORT ; | |
22042 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
22043 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
22044 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
22045 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22046 | wxListView *result; | |
22047 | wxPoint temp3 ; | |
22048 | wxSize temp4 ; | |
423f194a | 22049 | bool temp7 = False ; |
d14a1e28 | 22050 | PyObject * obj0 = 0 ; |
8edf1c75 | 22051 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22052 | PyObject * obj2 = 0 ; |
22053 | PyObject * obj3 = 0 ; | |
8edf1c75 | 22054 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
22055 | PyObject * obj5 = 0 ; |
22056 | PyObject * obj6 = 0 ; | |
22057 | char *kwnames[] = { | |
22058 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22059 | }; | |
22060 | ||
8edf1c75 | 22061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 22062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22063 | if (obj1) { |
22064 | { | |
22065 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22066 | if (PyErr_Occurred()) SWIG_fail; | |
22067 | } | |
22068 | } | |
d14a1e28 RD |
22069 | if (obj2) { |
22070 | { | |
22071 | arg3 = &temp3; | |
22072 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22073 | } | |
22074 | } | |
22075 | if (obj3) { | |
22076 | { | |
22077 | arg4 = &temp4; | |
22078 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22079 | } | |
22080 | } | |
8edf1c75 RD |
22081 | if (obj4) { |
22082 | { | |
22083 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
22084 | if (PyErr_Occurred()) SWIG_fail; | |
22085 | } | |
22086 | } | |
d14a1e28 RD |
22087 | if (obj5) { |
22088 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22089 | if (arg6 == NULL) { | |
22090 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22091 | } | |
22092 | } | |
22093 | if (obj6) { | |
22094 | { | |
22095 | arg7 = wxString_in_helper(obj6); | |
22096 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 22097 | temp7 = True; |
d14a1e28 RD |
22098 | } |
22099 | } | |
22100 | { | |
22101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22102 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
22103 | ||
22104 | wxPyEndAllowThreads(__tstate); | |
22105 | if (PyErr_Occurred()) SWIG_fail; | |
22106 | } | |
22107 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
22108 | { | |
22109 | if (temp7) | |
22110 | delete arg7; | |
22111 | } | |
22112 | return resultobj; | |
22113 | fail: | |
22114 | { | |
22115 | if (temp7) | |
22116 | delete arg7; | |
22117 | } | |
22118 | return NULL; | |
22119 | } | |
22120 | ||
22121 | ||
22122 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22123 | PyObject *resultobj; | |
22124 | wxListView *result; | |
22125 | char *kwnames[] = { | |
22126 | NULL | |
22127 | }; | |
22128 | ||
22129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
22130 | { | |
22131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22132 | result = (wxListView *)new wxListView(); | |
22133 | ||
22134 | wxPyEndAllowThreads(__tstate); | |
22135 | if (PyErr_Occurred()) SWIG_fail; | |
22136 | } | |
22137 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
22138 | return resultobj; | |
22139 | fail: | |
22140 | return NULL; | |
22141 | } | |
22142 | ||
22143 | ||
22144 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22145 | PyObject *resultobj; | |
22146 | wxListView *arg1 = (wxListView *) 0 ; | |
22147 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 22148 | int arg3 = (int) -1 ; |
d14a1e28 RD |
22149 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
22150 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22151 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22152 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22153 | long arg6 = (long) wxLC_REPORT ; | |
22154 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
22155 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
22156 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
22157 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
22158 | bool result; | |
22159 | wxPoint temp4 ; | |
22160 | wxSize temp5 ; | |
423f194a | 22161 | bool temp8 = False ; |
d14a1e28 RD |
22162 | PyObject * obj0 = 0 ; |
22163 | PyObject * obj1 = 0 ; | |
8edf1c75 | 22164 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22165 | PyObject * obj3 = 0 ; |
22166 | PyObject * obj4 = 0 ; | |
8edf1c75 | 22167 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22168 | PyObject * obj6 = 0 ; |
22169 | PyObject * obj7 = 0 ; | |
22170 | char *kwnames[] = { | |
22171 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22172 | }; | |
22173 | ||
8edf1c75 | 22174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
22175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
22176 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
22177 | if (obj2) { |
22178 | { | |
22179 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22180 | if (PyErr_Occurred()) SWIG_fail; | |
22181 | } | |
22182 | } | |
d14a1e28 RD |
22183 | if (obj3) { |
22184 | { | |
22185 | arg4 = &temp4; | |
22186 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22187 | } | |
22188 | } | |
22189 | if (obj4) { | |
22190 | { | |
22191 | arg5 = &temp5; | |
22192 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22193 | } | |
22194 | } | |
8edf1c75 RD |
22195 | if (obj5) { |
22196 | { | |
22197 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
22198 | if (PyErr_Occurred()) SWIG_fail; | |
22199 | } | |
22200 | } | |
d14a1e28 RD |
22201 | if (obj6) { |
22202 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22203 | if (arg7 == NULL) { | |
22204 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22205 | } | |
22206 | } | |
22207 | if (obj7) { | |
22208 | { | |
22209 | arg8 = wxString_in_helper(obj7); | |
22210 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 22211 | temp8 = True; |
d14a1e28 RD |
22212 | } |
22213 | } | |
22214 | { | |
22215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22216 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
22217 | ||
22218 | wxPyEndAllowThreads(__tstate); | |
22219 | if (PyErr_Occurred()) SWIG_fail; | |
22220 | } | |
02a34c4c | 22221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22222 | { |
22223 | if (temp8) | |
22224 | delete arg8; | |
22225 | } | |
22226 | return resultobj; | |
22227 | fail: | |
22228 | { | |
22229 | if (temp8) | |
22230 | delete arg8; | |
22231 | } | |
22232 | return NULL; | |
22233 | } | |
22234 | ||
22235 | ||
22236 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22237 | PyObject *resultobj; | |
22238 | wxListView *arg1 = (wxListView *) 0 ; | |
22239 | long arg2 ; | |
423f194a | 22240 | bool arg3 = (bool) True ; |
d14a1e28 | 22241 | PyObject * obj0 = 0 ; |
8edf1c75 | 22242 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22243 | PyObject * obj2 = 0 ; |
22244 | char *kwnames[] = { | |
22245 | (char *) "self",(char *) "n",(char *) "on", NULL | |
22246 | }; | |
22247 | ||
8edf1c75 | 22248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22250 | { |
22251 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22252 | if (PyErr_Occurred()) SWIG_fail; | |
22253 | } | |
d14a1e28 | 22254 | if (obj2) { |
2dbef272 | 22255 | { |
8edf1c75 | 22256 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
22257 | if (PyErr_Occurred()) SWIG_fail; |
22258 | } | |
d14a1e28 RD |
22259 | } |
22260 | { | |
22261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22262 | (arg1)->Select(arg2,arg3); | |
22263 | ||
22264 | wxPyEndAllowThreads(__tstate); | |
22265 | if (PyErr_Occurred()) SWIG_fail; | |
22266 | } | |
22267 | Py_INCREF(Py_None); resultobj = Py_None; | |
22268 | return resultobj; | |
22269 | fail: | |
22270 | return NULL; | |
22271 | } | |
22272 | ||
22273 | ||
22274 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22275 | PyObject *resultobj; | |
22276 | wxListView *arg1 = (wxListView *) 0 ; | |
22277 | long arg2 ; | |
22278 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22279 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22280 | char *kwnames[] = { |
22281 | (char *) "self",(char *) "index", NULL | |
22282 | }; | |
22283 | ||
8edf1c75 | 22284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22286 | { |
22287 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22288 | if (PyErr_Occurred()) SWIG_fail; | |
22289 | } | |
d14a1e28 RD |
22290 | { |
22291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22292 | (arg1)->Focus(arg2); | |
22293 | ||
22294 | wxPyEndAllowThreads(__tstate); | |
22295 | if (PyErr_Occurred()) SWIG_fail; | |
22296 | } | |
22297 | Py_INCREF(Py_None); resultobj = Py_None; | |
22298 | return resultobj; | |
22299 | fail: | |
22300 | return NULL; | |
22301 | } | |
22302 | ||
22303 | ||
22304 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22305 | PyObject *resultobj; | |
22306 | wxListView *arg1 = (wxListView *) 0 ; | |
22307 | long result; | |
22308 | PyObject * obj0 = 0 ; | |
22309 | char *kwnames[] = { | |
22310 | (char *) "self", NULL | |
22311 | }; | |
22312 | ||
22313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
22314 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22315 | { | |
22316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22317 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
22318 | ||
22319 | wxPyEndAllowThreads(__tstate); | |
22320 | if (PyErr_Occurred()) SWIG_fail; | |
22321 | } | |
8edf1c75 | 22322 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22323 | return resultobj; |
22324 | fail: | |
22325 | return NULL; | |
22326 | } | |
22327 | ||
22328 | ||
22329 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22330 | PyObject *resultobj; | |
22331 | wxListView *arg1 = (wxListView *) 0 ; | |
22332 | long arg2 ; | |
22333 | long result; | |
22334 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22335 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22336 | char *kwnames[] = { |
22337 | (char *) "self",(char *) "item", NULL | |
22338 | }; | |
22339 | ||
8edf1c75 | 22340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22342 | { |
22343 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22344 | if (PyErr_Occurred()) SWIG_fail; | |
22345 | } | |
d14a1e28 RD |
22346 | { |
22347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22348 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
22349 | ||
22350 | wxPyEndAllowThreads(__tstate); | |
22351 | if (PyErr_Occurred()) SWIG_fail; | |
22352 | } | |
8edf1c75 | 22353 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22354 | return resultobj; |
22355 | fail: | |
22356 | return NULL; | |
22357 | } | |
22358 | ||
22359 | ||
22360 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22361 | PyObject *resultobj; | |
22362 | wxListView *arg1 = (wxListView *) 0 ; | |
22363 | long result; | |
22364 | PyObject * obj0 = 0 ; | |
22365 | char *kwnames[] = { | |
22366 | (char *) "self", NULL | |
22367 | }; | |
22368 | ||
22369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
22370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22371 | { | |
22372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22373 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
22374 | ||
22375 | wxPyEndAllowThreads(__tstate); | |
22376 | if (PyErr_Occurred()) SWIG_fail; | |
22377 | } | |
8edf1c75 | 22378 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22379 | return resultobj; |
22380 | fail: | |
22381 | return NULL; | |
22382 | } | |
22383 | ||
22384 | ||
22385 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22386 | PyObject *resultobj; | |
22387 | wxListView *arg1 = (wxListView *) 0 ; | |
22388 | long arg2 ; | |
22389 | bool result; | |
22390 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22391 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22392 | char *kwnames[] = { |
22393 | (char *) "self",(char *) "index", NULL | |
22394 | }; | |
22395 | ||
8edf1c75 | 22396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22398 | { |
22399 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22400 | if (PyErr_Occurred()) SWIG_fail; | |
22401 | } | |
d14a1e28 RD |
22402 | { |
22403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22404 | result = (bool)(arg1)->IsSelected(arg2); | |
22405 | ||
22406 | wxPyEndAllowThreads(__tstate); | |
22407 | if (PyErr_Occurred()) SWIG_fail; | |
22408 | } | |
02a34c4c | 22409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22410 | return resultobj; |
22411 | fail: | |
22412 | return NULL; | |
22413 | } | |
22414 | ||
22415 | ||
22416 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22417 | PyObject *resultobj; | |
22418 | wxListView *arg1 = (wxListView *) 0 ; | |
22419 | int arg2 ; | |
22420 | int arg3 ; | |
22421 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22422 | PyObject * obj1 = 0 ; |
22423 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22424 | char *kwnames[] = { |
22425 | (char *) "self",(char *) "col",(char *) "image", NULL | |
22426 | }; | |
22427 | ||
8edf1c75 | 22428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22430 | { |
22431 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22432 | if (PyErr_Occurred()) SWIG_fail; | |
22433 | } | |
22434 | { | |
22435 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22436 | if (PyErr_Occurred()) SWIG_fail; | |
22437 | } | |
d14a1e28 RD |
22438 | { |
22439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22440 | (arg1)->SetColumnImage(arg2,arg3); | |
22441 | ||
22442 | wxPyEndAllowThreads(__tstate); | |
22443 | if (PyErr_Occurred()) SWIG_fail; | |
22444 | } | |
22445 | Py_INCREF(Py_None); resultobj = Py_None; | |
22446 | return resultobj; | |
22447 | fail: | |
22448 | return NULL; | |
22449 | } | |
22450 | ||
22451 | ||
22452 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22453 | PyObject *resultobj; | |
22454 | wxListView *arg1 = (wxListView *) 0 ; | |
22455 | int arg2 ; | |
22456 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22457 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22458 | char *kwnames[] = { |
22459 | (char *) "self",(char *) "col", NULL | |
22460 | }; | |
22461 | ||
8edf1c75 | 22462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22464 | { |
22465 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22466 | if (PyErr_Occurred()) SWIG_fail; | |
22467 | } | |
d14a1e28 RD |
22468 | { |
22469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22470 | (arg1)->ClearColumnImage(arg2); | |
22471 | ||
22472 | wxPyEndAllowThreads(__tstate); | |
22473 | if (PyErr_Occurred()) SWIG_fail; | |
22474 | } | |
22475 | Py_INCREF(Py_None); resultobj = Py_None; | |
22476 | return resultobj; | |
22477 | fail: | |
22478 | return NULL; | |
22479 | } | |
22480 | ||
22481 | ||
22482 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
22483 | PyObject *obj; | |
22484 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22485 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
22486 | Py_INCREF(obj); | |
22487 | return Py_BuildValue((char *)""); | |
22488 | } | |
8edf1c75 | 22489 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
cbd72d4f RD |
22490 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
22491 | return 1; | |
22492 | } | |
22493 | ||
22494 | ||
22495 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
22496 | PyObject *pyobj; | |
22497 | ||
22498 | { | |
22499 | #if wxUSE_UNICODE | |
22500 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22501 | #else | |
22502 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22503 | #endif | |
22504 | } | |
22505 | return pyobj; | |
22506 | } | |
22507 | ||
22508 | ||
d14a1e28 RD |
22509 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
22510 | PyObject *resultobj; | |
22511 | wxTreeItemId *result; | |
22512 | char *kwnames[] = { | |
22513 | NULL | |
22514 | }; | |
22515 | ||
22516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
22517 | { | |
22518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22519 | result = (wxTreeItemId *)new wxTreeItemId(); | |
22520 | ||
22521 | wxPyEndAllowThreads(__tstate); | |
22522 | if (PyErr_Occurred()) SWIG_fail; | |
22523 | } | |
22524 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 1); | |
22525 | return resultobj; | |
22526 | fail: | |
22527 | return NULL; | |
22528 | } | |
22529 | ||
22530 | ||
22531 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22532 | PyObject *resultobj; | |
22533 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22534 | PyObject * obj0 = 0 ; | |
22535 | char *kwnames[] = { | |
22536 | (char *) "self", NULL | |
22537 | }; | |
22538 | ||
22539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
22540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22541 | { | |
22542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22543 | delete arg1; | |
22544 | ||
22545 | wxPyEndAllowThreads(__tstate); | |
22546 | if (PyErr_Occurred()) SWIG_fail; | |
22547 | } | |
22548 | Py_INCREF(Py_None); resultobj = Py_None; | |
22549 | return resultobj; | |
22550 | fail: | |
22551 | return NULL; | |
22552 | } | |
22553 | ||
22554 | ||
22555 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22556 | PyObject *resultobj; | |
22557 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22558 | bool result; | |
22559 | PyObject * obj0 = 0 ; | |
22560 | char *kwnames[] = { | |
22561 | (char *) "self", NULL | |
22562 | }; | |
22563 | ||
22564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
22565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22566 | { | |
22567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22568 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
22569 | ||
22570 | wxPyEndAllowThreads(__tstate); | |
22571 | if (PyErr_Occurred()) SWIG_fail; | |
22572 | } | |
02a34c4c | 22573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22574 | return resultobj; |
22575 | fail: | |
22576 | return NULL; | |
22577 | } | |
22578 | ||
22579 | ||
22580 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22581 | PyObject *resultobj; | |
22582 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22583 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
22584 | bool result; | |
22585 | PyObject * obj0 = 0 ; | |
22586 | PyObject * obj1 = 0 ; | |
22587 | char *kwnames[] = { | |
22588 | (char *) "self",(char *) "other", NULL | |
22589 | }; | |
22590 | ||
22591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22593 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22594 | { | |
22595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22596 | result = (bool)wxTreeItemId_operator_ee___(arg1,(wxTreeItemId const *)arg2); | |
22597 | ||
22598 | wxPyEndAllowThreads(__tstate); | |
22599 | if (PyErr_Occurred()) SWIG_fail; | |
22600 | } | |
02a34c4c | 22601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22602 | return resultobj; |
22603 | fail: | |
22604 | return NULL; | |
22605 | } | |
22606 | ||
22607 | ||
22608 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22609 | PyObject *resultobj; | |
22610 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22611 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
22612 | bool result; | |
22613 | PyObject * obj0 = 0 ; | |
22614 | PyObject * obj1 = 0 ; | |
22615 | char *kwnames[] = { | |
22616 | (char *) "self",(char *) "other", NULL | |
22617 | }; | |
22618 | ||
22619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22621 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22622 | { | |
22623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22624 | result = (bool)wxTreeItemId_operator_Ne___(arg1,(wxTreeItemId const *)arg2); | |
22625 | ||
22626 | wxPyEndAllowThreads(__tstate); | |
22627 | if (PyErr_Occurred()) SWIG_fail; | |
22628 | } | |
02a34c4c | 22629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22630 | return resultobj; |
22631 | fail: | |
22632 | return NULL; | |
22633 | } | |
22634 | ||
22635 | ||
22636 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22637 | PyObject *resultobj; | |
22638 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 22639 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
22640 | PyObject * obj0 = 0 ; |
22641 | PyObject * obj1 = 0 ; | |
22642 | char *kwnames[] = { | |
22643 | (char *) "self",(char *) "m_pItem", NULL | |
22644 | }; | |
22645 | ||
22646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
22647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22648 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
22649 | if (arg1) (arg1)->m_pItem = arg2; | |
22650 | ||
22651 | Py_INCREF(Py_None); resultobj = Py_None; | |
22652 | return resultobj; | |
22653 | fail: | |
22654 | return NULL; | |
22655 | } | |
22656 | ||
22657 | ||
22658 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22659 | PyObject *resultobj; | |
22660 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 22661 | void *result; |
d14a1e28 RD |
22662 | PyObject * obj0 = 0 ; |
22663 | char *kwnames[] = { | |
22664 | (char *) "self", NULL | |
22665 | }; | |
22666 | ||
22667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
22668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 22669 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 22670 | |
58203fa6 | 22671 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_void, 0); |
d14a1e28 RD |
22672 | return resultobj; |
22673 | fail: | |
22674 | return NULL; | |
22675 | } | |
22676 | ||
22677 | ||
22678 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
22679 | PyObject *obj; | |
22680 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22681 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
22682 | Py_INCREF(obj); | |
22683 | return Py_BuildValue((char *)""); | |
22684 | } | |
22685 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22686 | PyObject *resultobj; | |
22687 | PyObject *arg1 = (PyObject *) NULL ; | |
22688 | wxPyTreeItemData *result; | |
22689 | PyObject * obj0 = 0 ; | |
22690 | char *kwnames[] = { | |
22691 | (char *) "obj", NULL | |
22692 | }; | |
22693 | ||
22694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
22695 | if (obj0) { | |
22696 | arg1 = obj0; | |
22697 | } | |
22698 | { | |
22699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22700 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
22701 | ||
22702 | wxPyEndAllowThreads(__tstate); | |
22703 | if (PyErr_Occurred()) SWIG_fail; | |
22704 | } | |
22705 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 1); | |
22706 | return resultobj; | |
22707 | fail: | |
22708 | return NULL; | |
22709 | } | |
22710 | ||
22711 | ||
22712 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22713 | PyObject *resultobj; | |
22714 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22715 | PyObject *result; | |
22716 | PyObject * obj0 = 0 ; | |
22717 | char *kwnames[] = { | |
22718 | (char *) "self", NULL | |
22719 | }; | |
22720 | ||
22721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
22722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22723 | { | |
22724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22725 | result = (PyObject *)(arg1)->GetData(); | |
22726 | ||
22727 | wxPyEndAllowThreads(__tstate); | |
22728 | if (PyErr_Occurred()) SWIG_fail; | |
22729 | } | |
22730 | resultobj = result; | |
22731 | return resultobj; | |
22732 | fail: | |
22733 | return NULL; | |
22734 | } | |
22735 | ||
22736 | ||
22737 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22738 | PyObject *resultobj; | |
22739 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22740 | PyObject *arg2 = (PyObject *) 0 ; | |
22741 | PyObject * obj0 = 0 ; | |
22742 | PyObject * obj1 = 0 ; | |
22743 | char *kwnames[] = { | |
22744 | (char *) "self",(char *) "obj", NULL | |
22745 | }; | |
22746 | ||
22747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
22748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22749 | arg2 = obj1; | |
22750 | { | |
22751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22752 | (arg1)->SetData(arg2); | |
22753 | ||
22754 | wxPyEndAllowThreads(__tstate); | |
22755 | if (PyErr_Occurred()) SWIG_fail; | |
22756 | } | |
22757 | Py_INCREF(Py_None); resultobj = Py_None; | |
22758 | return resultobj; | |
22759 | fail: | |
22760 | return NULL; | |
22761 | } | |
22762 | ||
22763 | ||
22764 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22765 | PyObject *resultobj; | |
22766 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22767 | wxTreeItemId *result; | |
22768 | PyObject * obj0 = 0 ; | |
22769 | char *kwnames[] = { | |
22770 | (char *) "self", NULL | |
22771 | }; | |
22772 | ||
22773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
22774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22775 | { | |
22776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22777 | { | |
22778 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
22779 | result = (wxTreeItemId *) &_result_ref; | |
22780 | } | |
22781 | ||
22782 | wxPyEndAllowThreads(__tstate); | |
22783 | if (PyErr_Occurred()) SWIG_fail; | |
22784 | } | |
22785 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 0); | |
22786 | return resultobj; | |
22787 | fail: | |
22788 | return NULL; | |
22789 | } | |
22790 | ||
22791 | ||
22792 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22793 | PyObject *resultobj; | |
22794 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22795 | wxTreeItemId *arg2 = 0 ; | |
22796 | PyObject * obj0 = 0 ; | |
22797 | PyObject * obj1 = 0 ; | |
22798 | char *kwnames[] = { | |
22799 | (char *) "self",(char *) "id", NULL | |
22800 | }; | |
22801 | ||
22802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
22803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22804 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22805 | if (arg2 == NULL) { | |
22806 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22807 | } | |
22808 | { | |
22809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22810 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
22811 | ||
22812 | wxPyEndAllowThreads(__tstate); | |
22813 | if (PyErr_Occurred()) SWIG_fail; | |
22814 | } | |
22815 | Py_INCREF(Py_None); resultobj = Py_None; | |
22816 | return resultobj; | |
22817 | fail: | |
22818 | return NULL; | |
22819 | } | |
22820 | ||
22821 | ||
22822 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22823 | PyObject *resultobj; | |
22824 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22825 | PyObject * obj0 = 0 ; | |
22826 | char *kwnames[] = { | |
22827 | (char *) "self", NULL | |
22828 | }; | |
22829 | ||
22830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
22831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22832 | { | |
22833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22834 | wxPyTreeItemData_Destroy(arg1); | |
22835 | ||
22836 | wxPyEndAllowThreads(__tstate); | |
22837 | if (PyErr_Occurred()) SWIG_fail; | |
22838 | } | |
22839 | Py_INCREF(Py_None); resultobj = Py_None; | |
22840 | return resultobj; | |
22841 | fail: | |
22842 | return NULL; | |
22843 | } | |
22844 | ||
22845 | ||
22846 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
22847 | PyObject *obj; | |
22848 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22849 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
22850 | Py_INCREF(obj); | |
22851 | return Py_BuildValue((char *)""); | |
22852 | } | |
22853 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22854 | PyObject *resultobj; | |
22855 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22856 | int arg2 = (int) 0 ; | |
22857 | wxTreeEvent *result; | |
8edf1c75 RD |
22858 | PyObject * obj0 = 0 ; |
22859 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
22860 | char *kwnames[] = { |
22861 | (char *) "commandType",(char *) "id", NULL | |
22862 | }; | |
22863 | ||
8edf1c75 RD |
22864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
22865 | if (obj0) { | |
22866 | { | |
22867 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
22868 | if (PyErr_Occurred()) SWIG_fail; | |
22869 | } | |
22870 | } | |
22871 | if (obj1) { | |
22872 | { | |
22873 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22874 | if (PyErr_Occurred()) SWIG_fail; | |
22875 | } | |
22876 | } | |
d14a1e28 RD |
22877 | { |
22878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22879 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
22880 | ||
22881 | wxPyEndAllowThreads(__tstate); | |
22882 | if (PyErr_Occurred()) SWIG_fail; | |
22883 | } | |
22884 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeEvent, 1); | |
22885 | return resultobj; | |
22886 | fail: | |
22887 | return NULL; | |
22888 | } | |
22889 | ||
22890 | ||
22891 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22892 | PyObject *resultobj; | |
22893 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22894 | wxTreeItemId result; | |
22895 | PyObject * obj0 = 0 ; | |
22896 | char *kwnames[] = { | |
22897 | (char *) "self", NULL | |
22898 | }; | |
22899 | ||
22900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
22901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22902 | { | |
22903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22904 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
22905 | ||
22906 | wxPyEndAllowThreads(__tstate); | |
22907 | if (PyErr_Occurred()) SWIG_fail; | |
22908 | } | |
22909 | { | |
22910 | wxTreeItemId * resultptr; | |
22911 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22912 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22913 | } | |
22914 | return resultobj; | |
22915 | fail: | |
22916 | return NULL; | |
22917 | } | |
22918 | ||
22919 | ||
22920 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22921 | PyObject *resultobj; | |
22922 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22923 | wxTreeItemId *arg2 = 0 ; | |
22924 | PyObject * obj0 = 0 ; | |
22925 | PyObject * obj1 = 0 ; | |
22926 | char *kwnames[] = { | |
22927 | (char *) "self",(char *) "item", NULL | |
22928 | }; | |
22929 | ||
22930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
22931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22932 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22933 | if (arg2 == NULL) { | |
22934 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22935 | } | |
22936 | { | |
22937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22938 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
22939 | ||
22940 | wxPyEndAllowThreads(__tstate); | |
22941 | if (PyErr_Occurred()) SWIG_fail; | |
22942 | } | |
22943 | Py_INCREF(Py_None); resultobj = Py_None; | |
22944 | return resultobj; | |
22945 | fail: | |
22946 | return NULL; | |
22947 | } | |
22948 | ||
22949 | ||
22950 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22951 | PyObject *resultobj; | |
22952 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22953 | wxTreeItemId result; | |
22954 | PyObject * obj0 = 0 ; | |
22955 | char *kwnames[] = { | |
22956 | (char *) "self", NULL | |
22957 | }; | |
22958 | ||
22959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
22960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22961 | { | |
22962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22963 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
22964 | ||
22965 | wxPyEndAllowThreads(__tstate); | |
22966 | if (PyErr_Occurred()) SWIG_fail; | |
22967 | } | |
22968 | { | |
22969 | wxTreeItemId * resultptr; | |
22970 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22971 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22972 | } | |
22973 | return resultobj; | |
22974 | fail: | |
22975 | return NULL; | |
22976 | } | |
22977 | ||
22978 | ||
22979 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22980 | PyObject *resultobj; | |
22981 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22982 | wxTreeItemId *arg2 = 0 ; | |
22983 | PyObject * obj0 = 0 ; | |
22984 | PyObject * obj1 = 0 ; | |
22985 | char *kwnames[] = { | |
22986 | (char *) "self",(char *) "item", NULL | |
22987 | }; | |
22988 | ||
22989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
22990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22991 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22992 | if (arg2 == NULL) { | |
22993 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22994 | } | |
22995 | { | |
22996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22997 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
22998 | ||
22999 | wxPyEndAllowThreads(__tstate); | |
23000 | if (PyErr_Occurred()) SWIG_fail; | |
23001 | } | |
23002 | Py_INCREF(Py_None); resultobj = Py_None; | |
23003 | return resultobj; | |
23004 | fail: | |
23005 | return NULL; | |
23006 | } | |
23007 | ||
23008 | ||
23009 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23010 | PyObject *resultobj; | |
23011 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23012 | wxPoint result; | |
23013 | PyObject * obj0 = 0 ; | |
23014 | char *kwnames[] = { | |
23015 | (char *) "self", NULL | |
23016 | }; | |
23017 | ||
23018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
23019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23020 | { | |
23021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23022 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
23023 | ||
23024 | wxPyEndAllowThreads(__tstate); | |
23025 | if (PyErr_Occurred()) SWIG_fail; | |
23026 | } | |
23027 | { | |
23028 | wxPoint * resultptr; | |
23029 | resultptr = new wxPoint((wxPoint &) result); | |
23030 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23031 | } | |
23032 | return resultobj; | |
23033 | fail: | |
23034 | return NULL; | |
23035 | } | |
23036 | ||
23037 | ||
23038 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23039 | PyObject *resultobj; | |
23040 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23041 | wxPoint *arg2 = 0 ; | |
23042 | wxPoint temp2 ; | |
23043 | PyObject * obj0 = 0 ; | |
23044 | PyObject * obj1 = 0 ; | |
23045 | char *kwnames[] = { | |
23046 | (char *) "self",(char *) "pt", NULL | |
23047 | }; | |
23048 | ||
23049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
23050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23051 | { | |
23052 | arg2 = &temp2; | |
23053 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23054 | } | |
23055 | { | |
23056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23057 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
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 *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23070 | PyObject *resultobj; | |
23071 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23072 | wxKeyEvent *result; | |
23073 | PyObject * obj0 = 0 ; | |
23074 | char *kwnames[] = { | |
23075 | (char *) "self", NULL | |
23076 | }; | |
23077 | ||
23078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
23079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23080 | { | |
23081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23082 | { | |
23083 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
23084 | result = (wxKeyEvent *) &_result_ref; | |
23085 | } | |
23086 | ||
23087 | wxPyEndAllowThreads(__tstate); | |
23088 | if (PyErr_Occurred()) SWIG_fail; | |
23089 | } | |
23090 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 0); | |
23091 | return resultobj; | |
23092 | fail: | |
23093 | return NULL; | |
23094 | } | |
23095 | ||
23096 | ||
23097 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23098 | PyObject *resultobj; | |
23099 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23100 | int result; | |
23101 | PyObject * obj0 = 0 ; | |
23102 | char *kwnames[] = { | |
23103 | (char *) "self", NULL | |
23104 | }; | |
23105 | ||
23106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
23107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23108 | { | |
23109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23110 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
23111 | ||
23112 | wxPyEndAllowThreads(__tstate); | |
23113 | if (PyErr_Occurred()) SWIG_fail; | |
23114 | } | |
8edf1c75 | 23115 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
23116 | return resultobj; |
23117 | fail: | |
23118 | return NULL; | |
23119 | } | |
23120 | ||
23121 | ||
23122 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23123 | PyObject *resultobj; | |
23124 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23125 | wxKeyEvent *arg2 = 0 ; | |
23126 | PyObject * obj0 = 0 ; | |
23127 | PyObject * obj1 = 0 ; | |
23128 | char *kwnames[] = { | |
23129 | (char *) "self",(char *) "evt", NULL | |
23130 | }; | |
23131 | ||
23132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
23133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23134 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23135 | if (arg2 == NULL) { | |
23136 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23137 | } | |
23138 | { | |
23139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23140 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
23141 | ||
23142 | wxPyEndAllowThreads(__tstate); | |
23143 | if (PyErr_Occurred()) SWIG_fail; | |
23144 | } | |
23145 | Py_INCREF(Py_None); resultobj = Py_None; | |
23146 | return resultobj; | |
23147 | fail: | |
23148 | return NULL; | |
23149 | } | |
23150 | ||
23151 | ||
23152 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23153 | PyObject *resultobj; | |
23154 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23155 | wxString *result; | |
23156 | PyObject * obj0 = 0 ; | |
23157 | char *kwnames[] = { | |
23158 | (char *) "self", NULL | |
23159 | }; | |
23160 | ||
23161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
23162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23163 | { | |
23164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23165 | { | |
23166 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
23167 | result = (wxString *) &_result_ref; | |
23168 | } | |
23169 | ||
23170 | wxPyEndAllowThreads(__tstate); | |
23171 | if (PyErr_Occurred()) SWIG_fail; | |
23172 | } | |
0f774bef RD |
23173 | { |
23174 | #if wxUSE_UNICODE | |
23175 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23176 | #else | |
23177 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23178 | #endif | |
23179 | } | |
d14a1e28 RD |
23180 | return resultobj; |
23181 | fail: | |
23182 | return NULL; | |
23183 | } | |
23184 | ||
23185 | ||
23186 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23187 | PyObject *resultobj; | |
23188 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23189 | wxString *arg2 = 0 ; | |
423f194a | 23190 | bool temp2 = False ; |
d14a1e28 RD |
23191 | PyObject * obj0 = 0 ; |
23192 | PyObject * obj1 = 0 ; | |
23193 | char *kwnames[] = { | |
23194 | (char *) "self",(char *) "label", NULL | |
23195 | }; | |
23196 | ||
23197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
23198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23199 | { | |
23200 | arg2 = wxString_in_helper(obj1); | |
23201 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23202 | temp2 = True; |
d14a1e28 RD |
23203 | } |
23204 | { | |
23205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23206 | (arg1)->SetLabel((wxString const &)*arg2); | |
23207 | ||
23208 | wxPyEndAllowThreads(__tstate); | |
23209 | if (PyErr_Occurred()) SWIG_fail; | |
23210 | } | |
23211 | Py_INCREF(Py_None); resultobj = Py_None; | |
23212 | { | |
23213 | if (temp2) | |
23214 | delete arg2; | |
23215 | } | |
23216 | return resultobj; | |
23217 | fail: | |
23218 | { | |
23219 | if (temp2) | |
23220 | delete arg2; | |
23221 | } | |
23222 | return NULL; | |
23223 | } | |
23224 | ||
23225 | ||
23226 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23227 | PyObject *resultobj; | |
23228 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23229 | bool result; | |
23230 | PyObject * obj0 = 0 ; | |
23231 | char *kwnames[] = { | |
23232 | (char *) "self", NULL | |
23233 | }; | |
23234 | ||
23235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
23236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23237 | { | |
23238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23239 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
23240 | ||
23241 | wxPyEndAllowThreads(__tstate); | |
23242 | if (PyErr_Occurred()) SWIG_fail; | |
23243 | } | |
02a34c4c | 23244 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23245 | return resultobj; |
23246 | fail: | |
23247 | return NULL; | |
23248 | } | |
23249 | ||
23250 | ||
23251 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23252 | PyObject *resultobj; | |
23253 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23254 | bool arg2 ; | |
23255 | PyObject * obj0 = 0 ; | |
23256 | PyObject * obj1 = 0 ; | |
23257 | char *kwnames[] = { | |
23258 | (char *) "self",(char *) "editCancelled", NULL | |
23259 | }; | |
23260 | ||
23261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
23262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 23263 | { |
8edf1c75 | 23264 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
23265 | if (PyErr_Occurred()) SWIG_fail; |
23266 | } | |
d14a1e28 RD |
23267 | { |
23268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23269 | (arg1)->SetEditCanceled(arg2); | |
23270 | ||
23271 | wxPyEndAllowThreads(__tstate); | |
23272 | if (PyErr_Occurred()) SWIG_fail; | |
23273 | } | |
23274 | Py_INCREF(Py_None); resultobj = Py_None; | |
23275 | return resultobj; | |
23276 | fail: | |
23277 | return NULL; | |
23278 | } | |
23279 | ||
23280 | ||
9fd4be55 RD |
23281 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
23282 | PyObject *resultobj; | |
23283 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23284 | wxString *arg2 = 0 ; | |
23285 | bool temp2 = False ; | |
23286 | PyObject * obj0 = 0 ; | |
23287 | PyObject * obj1 = 0 ; | |
23288 | char *kwnames[] = { | |
23289 | (char *) "self",(char *) "toolTip", NULL | |
23290 | }; | |
23291 | ||
23292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
23293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23294 | { | |
23295 | arg2 = wxString_in_helper(obj1); | |
23296 | if (arg2 == NULL) SWIG_fail; | |
23297 | temp2 = True; | |
23298 | } | |
23299 | { | |
23300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23301 | (arg1)->SetToolTip((wxString const &)*arg2); | |
23302 | ||
23303 | wxPyEndAllowThreads(__tstate); | |
23304 | if (PyErr_Occurred()) SWIG_fail; | |
23305 | } | |
23306 | Py_INCREF(Py_None); resultobj = Py_None; | |
23307 | { | |
23308 | if (temp2) | |
23309 | delete arg2; | |
23310 | } | |
23311 | return resultobj; | |
23312 | fail: | |
23313 | { | |
23314 | if (temp2) | |
23315 | delete arg2; | |
23316 | } | |
23317 | return NULL; | |
23318 | } | |
23319 | ||
23320 | ||
d14a1e28 RD |
23321 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
23322 | PyObject *obj; | |
23323 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23324 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
23325 | Py_INCREF(obj); | |
23326 | return Py_BuildValue((char *)""); | |
23327 | } | |
23328 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23329 | PyObject *resultobj; | |
23330 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23331 | int arg2 = (int) -1 ; |
d14a1e28 RD |
23332 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23333 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23334 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23335 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23336 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
23337 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23338 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
cbd72d4f | 23339 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23340 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
23341 | wxPyTreeCtrl *result; | |
23342 | wxPoint temp3 ; | |
23343 | wxSize temp4 ; | |
423f194a | 23344 | bool temp7 = False ; |
d14a1e28 | 23345 | PyObject * obj0 = 0 ; |
8edf1c75 | 23346 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23347 | PyObject * obj2 = 0 ; |
23348 | PyObject * obj3 = 0 ; | |
8edf1c75 | 23349 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
23350 | PyObject * obj5 = 0 ; |
23351 | PyObject * obj6 = 0 ; | |
23352 | char *kwnames[] = { | |
23353 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23354 | }; | |
23355 | ||
8edf1c75 | 23356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 23357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23358 | if (obj1) { |
23359 | { | |
23360 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23361 | if (PyErr_Occurred()) SWIG_fail; | |
23362 | } | |
23363 | } | |
d14a1e28 RD |
23364 | if (obj2) { |
23365 | { | |
23366 | arg3 = &temp3; | |
23367 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23368 | } | |
23369 | } | |
23370 | if (obj3) { | |
23371 | { | |
8edf1c75 RD |
23372 | arg4 = &temp4; |
23373 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23374 | } | |
23375 | } | |
23376 | if (obj4) { | |
23377 | { | |
23378 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
23379 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23380 | } |
23381 | } | |
23382 | if (obj5) { | |
23383 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23384 | if (arg6 == NULL) { | |
23385 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23386 | } | |
23387 | } | |
23388 | if (obj6) { | |
23389 | { | |
23390 | arg7 = wxString_in_helper(obj6); | |
23391 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 23392 | temp7 = True; |
d14a1e28 RD |
23393 | } |
23394 | } | |
23395 | { | |
23396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23397 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23398 | ||
23399 | wxPyEndAllowThreads(__tstate); | |
23400 | if (PyErr_Occurred()) SWIG_fail; | |
23401 | } | |
cbd72d4f RD |
23402 | { |
23403 | resultobj = wxPyMake_wxObject(result); | |
23404 | } | |
d14a1e28 RD |
23405 | { |
23406 | if (temp7) | |
23407 | delete arg7; | |
23408 | } | |
23409 | return resultobj; | |
23410 | fail: | |
23411 | { | |
23412 | if (temp7) | |
23413 | delete arg7; | |
23414 | } | |
23415 | return NULL; | |
23416 | } | |
23417 | ||
23418 | ||
23419 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23420 | PyObject *resultobj; | |
23421 | wxPyTreeCtrl *result; | |
23422 | char *kwnames[] = { | |
23423 | NULL | |
23424 | }; | |
23425 | ||
23426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
23427 | { | |
23428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23429 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
23430 | ||
23431 | wxPyEndAllowThreads(__tstate); | |
23432 | if (PyErr_Occurred()) SWIG_fail; | |
23433 | } | |
cbd72d4f RD |
23434 | { |
23435 | resultobj = wxPyMake_wxObject(result); | |
23436 | } | |
d14a1e28 RD |
23437 | return resultobj; |
23438 | fail: | |
23439 | return NULL; | |
23440 | } | |
23441 | ||
23442 | ||
23443 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23444 | PyObject *resultobj; | |
23445 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23446 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 23447 | int arg3 = (int) -1 ; |
d14a1e28 RD |
23448 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23449 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23450 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23451 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23452 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
23453 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23454 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
cbd72d4f | 23455 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23456 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
23457 | bool result; | |
23458 | wxPoint temp4 ; | |
23459 | wxSize temp5 ; | |
423f194a | 23460 | bool temp8 = False ; |
d14a1e28 RD |
23461 | PyObject * obj0 = 0 ; |
23462 | PyObject * obj1 = 0 ; | |
8edf1c75 | 23463 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23464 | PyObject * obj3 = 0 ; |
23465 | PyObject * obj4 = 0 ; | |
8edf1c75 | 23466 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
23467 | PyObject * obj6 = 0 ; |
23468 | PyObject * obj7 = 0 ; | |
23469 | char *kwnames[] = { | |
23470 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23471 | }; | |
23472 | ||
8edf1c75 | 23473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
23474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
23475 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
23476 | if (obj2) { |
23477 | { | |
23478 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
23479 | if (PyErr_Occurred()) SWIG_fail; | |
23480 | } | |
23481 | } | |
d14a1e28 RD |
23482 | if (obj3) { |
23483 | { | |
23484 | arg4 = &temp4; | |
23485 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23486 | } | |
23487 | } | |
23488 | if (obj4) { | |
23489 | { | |
23490 | arg5 = &temp5; | |
23491 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23492 | } | |
23493 | } | |
8edf1c75 RD |
23494 | if (obj5) { |
23495 | { | |
23496 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
23497 | if (PyErr_Occurred()) SWIG_fail; | |
23498 | } | |
23499 | } | |
d14a1e28 RD |
23500 | if (obj6) { |
23501 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23502 | if (arg7 == NULL) { | |
23503 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23504 | } | |
23505 | } | |
23506 | if (obj7) { | |
23507 | { | |
23508 | arg8 = wxString_in_helper(obj7); | |
23509 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 23510 | temp8 = True; |
d14a1e28 RD |
23511 | } |
23512 | } | |
23513 | { | |
23514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23515 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23516 | ||
23517 | wxPyEndAllowThreads(__tstate); | |
23518 | if (PyErr_Occurred()) SWIG_fail; | |
23519 | } | |
02a34c4c | 23520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23521 | { |
23522 | if (temp8) | |
23523 | delete arg8; | |
23524 | } | |
23525 | return resultobj; | |
23526 | fail: | |
23527 | { | |
23528 | if (temp8) | |
23529 | delete arg8; | |
23530 | } | |
23531 | return NULL; | |
23532 | } | |
23533 | ||
23534 | ||
23535 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23536 | PyObject *resultobj; | |
23537 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23538 | PyObject *arg2 = (PyObject *) 0 ; | |
23539 | PyObject *arg3 = (PyObject *) 0 ; | |
23540 | PyObject * obj0 = 0 ; | |
23541 | PyObject * obj1 = 0 ; | |
23542 | PyObject * obj2 = 0 ; | |
23543 | char *kwnames[] = { | |
23544 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23545 | }; | |
23546 | ||
23547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23549 | arg2 = obj1; | |
23550 | arg3 = obj2; | |
23551 | { | |
23552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23553 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23554 | ||
23555 | wxPyEndAllowThreads(__tstate); | |
23556 | if (PyErr_Occurred()) SWIG_fail; | |
23557 | } | |
23558 | Py_INCREF(Py_None); resultobj = Py_None; | |
23559 | return resultobj; | |
23560 | fail: | |
23561 | return NULL; | |
23562 | } | |
23563 | ||
23564 | ||
23565 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23566 | PyObject *resultobj; | |
23567 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23568 | size_t result; | |
23569 | PyObject * obj0 = 0 ; | |
23570 | char *kwnames[] = { | |
23571 | (char *) "self", NULL | |
23572 | }; | |
23573 | ||
23574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
23575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23576 | { | |
23577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23578 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
23579 | ||
23580 | wxPyEndAllowThreads(__tstate); | |
23581 | if (PyErr_Occurred()) SWIG_fail; | |
23582 | } | |
8edf1c75 | 23583 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
23584 | return resultobj; |
23585 | fail: | |
23586 | return NULL; | |
23587 | } | |
23588 | ||
23589 | ||
23590 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23591 | PyObject *resultobj; | |
23592 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23593 | unsigned int result; | |
23594 | PyObject * obj0 = 0 ; | |
23595 | char *kwnames[] = { | |
23596 | (char *) "self", NULL | |
23597 | }; | |
23598 | ||
23599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
23600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23601 | { | |
23602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23603 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
23604 | ||
23605 | wxPyEndAllowThreads(__tstate); | |
23606 | if (PyErr_Occurred()) SWIG_fail; | |
23607 | } | |
8edf1c75 | 23608 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
23609 | return resultobj; |
23610 | fail: | |
23611 | return NULL; | |
23612 | } | |
23613 | ||
23614 | ||
23615 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23616 | PyObject *resultobj; | |
23617 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23618 | unsigned int arg2 ; | |
23619 | PyObject * obj0 = 0 ; | |
23620 | PyObject * obj1 = 0 ; | |
23621 | char *kwnames[] = { | |
23622 | (char *) "self",(char *) "indent", NULL | |
23623 | }; | |
23624 | ||
23625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
23626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 23627 | { |
8edf1c75 | 23628 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
2dbef272 RD |
23629 | if (PyErr_Occurred()) SWIG_fail; |
23630 | } | |
d14a1e28 RD |
23631 | { |
23632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23633 | (arg1)->SetIndent(arg2); | |
23634 | ||
23635 | wxPyEndAllowThreads(__tstate); | |
23636 | if (PyErr_Occurred()) SWIG_fail; | |
23637 | } | |
23638 | Py_INCREF(Py_None); resultobj = Py_None; | |
23639 | return resultobj; | |
23640 | fail: | |
23641 | return NULL; | |
23642 | } | |
23643 | ||
23644 | ||
23645 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23646 | PyObject *resultobj; | |
23647 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23648 | unsigned int result; | |
23649 | PyObject * obj0 = 0 ; | |
23650 | char *kwnames[] = { | |
23651 | (char *) "self", NULL | |
23652 | }; | |
23653 | ||
23654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
23655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23656 | { | |
23657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23658 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
23659 | ||
23660 | wxPyEndAllowThreads(__tstate); | |
23661 | if (PyErr_Occurred()) SWIG_fail; | |
23662 | } | |
8edf1c75 | 23663 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
23664 | return resultobj; |
23665 | fail: | |
23666 | return NULL; | |
23667 | } | |
23668 | ||
23669 | ||
23670 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23671 | PyObject *resultobj; | |
23672 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23673 | unsigned int arg2 ; | |
23674 | PyObject * obj0 = 0 ; | |
23675 | PyObject * obj1 = 0 ; | |
23676 | char *kwnames[] = { | |
23677 | (char *) "self",(char *) "spacing", NULL | |
23678 | }; | |
23679 | ||
23680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
23681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 23682 | { |
8edf1c75 | 23683 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
2dbef272 RD |
23684 | if (PyErr_Occurred()) SWIG_fail; |
23685 | } | |
d14a1e28 RD |
23686 | { |
23687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23688 | (arg1)->SetSpacing(arg2); | |
23689 | ||
23690 | wxPyEndAllowThreads(__tstate); | |
23691 | if (PyErr_Occurred()) SWIG_fail; | |
23692 | } | |
23693 | Py_INCREF(Py_None); resultobj = Py_None; | |
23694 | return resultobj; | |
23695 | fail: | |
23696 | return NULL; | |
23697 | } | |
23698 | ||
23699 | ||
23700 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23701 | PyObject *resultobj; | |
23702 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23703 | wxImageList *result; | |
23704 | PyObject * obj0 = 0 ; | |
23705 | char *kwnames[] = { | |
23706 | (char *) "self", NULL | |
23707 | }; | |
23708 | ||
23709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
23710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23711 | { | |
23712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23713 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
23714 | ||
23715 | wxPyEndAllowThreads(__tstate); | |
23716 | if (PyErr_Occurred()) SWIG_fail; | |
23717 | } | |
23718 | { | |
23719 | resultobj = wxPyMake_wxObject(result); | |
23720 | } | |
23721 | return resultobj; | |
23722 | fail: | |
23723 | return NULL; | |
23724 | } | |
23725 | ||
23726 | ||
23727 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23728 | PyObject *resultobj; | |
23729 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23730 | wxImageList *result; | |
23731 | PyObject * obj0 = 0 ; | |
23732 | char *kwnames[] = { | |
23733 | (char *) "self", NULL | |
23734 | }; | |
23735 | ||
23736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
23737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23738 | { | |
23739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23740 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
23741 | ||
23742 | wxPyEndAllowThreads(__tstate); | |
23743 | if (PyErr_Occurred()) SWIG_fail; | |
23744 | } | |
23745 | { | |
23746 | resultobj = wxPyMake_wxObject(result); | |
23747 | } | |
23748 | return resultobj; | |
23749 | fail: | |
23750 | return NULL; | |
23751 | } | |
23752 | ||
23753 | ||
23754 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23755 | PyObject *resultobj; | |
23756 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23757 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23758 | PyObject * obj0 = 0 ; | |
23759 | PyObject * obj1 = 0 ; | |
23760 | char *kwnames[] = { | |
23761 | (char *) "self",(char *) "imageList", NULL | |
23762 | }; | |
23763 | ||
23764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
23765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23766 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23767 | { | |
23768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23769 | (arg1)->SetImageList(arg2); | |
23770 | ||
23771 | wxPyEndAllowThreads(__tstate); | |
23772 | if (PyErr_Occurred()) SWIG_fail; | |
23773 | } | |
23774 | Py_INCREF(Py_None); resultobj = Py_None; | |
23775 | return resultobj; | |
23776 | fail: | |
23777 | return NULL; | |
23778 | } | |
23779 | ||
23780 | ||
23781 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23782 | PyObject *resultobj; | |
23783 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23784 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23785 | PyObject * obj0 = 0 ; | |
23786 | PyObject * obj1 = 0 ; | |
23787 | char *kwnames[] = { | |
23788 | (char *) "self",(char *) "imageList", NULL | |
23789 | }; | |
23790 | ||
23791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
23792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23793 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23794 | { | |
23795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23796 | (arg1)->SetStateImageList(arg2); | |
23797 | ||
23798 | wxPyEndAllowThreads(__tstate); | |
23799 | if (PyErr_Occurred()) SWIG_fail; | |
23800 | } | |
23801 | Py_INCREF(Py_None); resultobj = Py_None; | |
23802 | return resultobj; | |
23803 | fail: | |
23804 | return NULL; | |
23805 | } | |
23806 | ||
23807 | ||
23808 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23809 | PyObject *resultobj; | |
23810 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23811 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23812 | PyObject * obj0 = 0 ; | |
23813 | PyObject * obj1 = 0 ; | |
23814 | char *kwnames[] = { | |
23815 | (char *) "self",(char *) "imageList", NULL | |
23816 | }; | |
23817 | ||
23818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
23819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 23820 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
23821 | { |
23822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23823 | (arg1)->AssignImageList(arg2); | |
23824 | ||
23825 | wxPyEndAllowThreads(__tstate); | |
23826 | if (PyErr_Occurred()) SWIG_fail; | |
23827 | } | |
23828 | Py_INCREF(Py_None); resultobj = Py_None; | |
23829 | return resultobj; | |
23830 | fail: | |
23831 | return NULL; | |
23832 | } | |
23833 | ||
23834 | ||
23835 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23836 | PyObject *resultobj; | |
23837 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23838 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23839 | PyObject * obj0 = 0 ; | |
23840 | PyObject * obj1 = 0 ; | |
23841 | char *kwnames[] = { | |
23842 | (char *) "self",(char *) "imageList", NULL | |
23843 | }; | |
23844 | ||
23845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
23846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 23847 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
23848 | { |
23849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23850 | (arg1)->AssignStateImageList(arg2); | |
23851 | ||
23852 | wxPyEndAllowThreads(__tstate); | |
23853 | if (PyErr_Occurred()) SWIG_fail; | |
23854 | } | |
23855 | Py_INCREF(Py_None); resultobj = Py_None; | |
23856 | return resultobj; | |
23857 | fail: | |
23858 | return NULL; | |
23859 | } | |
23860 | ||
23861 | ||
23862 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23863 | PyObject *resultobj; | |
23864 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23865 | wxTreeItemId *arg2 = 0 ; | |
23866 | wxString result; | |
23867 | PyObject * obj0 = 0 ; | |
23868 | PyObject * obj1 = 0 ; | |
23869 | char *kwnames[] = { | |
23870 | (char *) "self",(char *) "item", NULL | |
23871 | }; | |
23872 | ||
23873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
23874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23875 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23876 | if (arg2 == NULL) { | |
23877 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23878 | } | |
23879 | { | |
23880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23881 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
23882 | ||
23883 | wxPyEndAllowThreads(__tstate); | |
23884 | if (PyErr_Occurred()) SWIG_fail; | |
23885 | } | |
23886 | { | |
23887 | #if wxUSE_UNICODE | |
23888 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23889 | #else | |
23890 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23891 | #endif | |
23892 | } | |
23893 | return resultobj; | |
23894 | fail: | |
23895 | return NULL; | |
23896 | } | |
23897 | ||
23898 | ||
23899 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23900 | PyObject *resultobj; | |
23901 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23902 | wxTreeItemId *arg2 = 0 ; | |
23903 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
23904 | int result; | |
23905 | PyObject * obj0 = 0 ; | |
23906 | PyObject * obj1 = 0 ; | |
8edf1c75 | 23907 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23908 | char *kwnames[] = { |
23909 | (char *) "self",(char *) "item",(char *) "which", NULL | |
23910 | }; | |
23911 | ||
8edf1c75 | 23912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
23913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
23914 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23915 | if (arg2 == NULL) { | |
23916 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23917 | } | |
8edf1c75 RD |
23918 | if (obj2) { |
23919 | { | |
23920 | arg3 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj2); | |
23921 | if (PyErr_Occurred()) SWIG_fail; | |
23922 | } | |
23923 | } | |
d14a1e28 RD |
23924 | { |
23925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23926 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
23927 | ||
23928 | wxPyEndAllowThreads(__tstate); | |
23929 | if (PyErr_Occurred()) SWIG_fail; | |
23930 | } | |
8edf1c75 | 23931 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
23932 | return resultobj; |
23933 | fail: | |
23934 | return NULL; | |
23935 | } | |
23936 | ||
23937 | ||
23938 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23939 | PyObject *resultobj; | |
23940 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23941 | wxTreeItemId *arg2 = 0 ; | |
23942 | wxPyTreeItemData *result; | |
23943 | PyObject * obj0 = 0 ; | |
23944 | PyObject * obj1 = 0 ; | |
23945 | char *kwnames[] = { | |
23946 | (char *) "self",(char *) "item", NULL | |
23947 | }; | |
23948 | ||
23949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
23950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23951 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23952 | if (arg2 == NULL) { | |
23953 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23954 | } | |
23955 | { | |
23956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23957 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
23958 | ||
23959 | wxPyEndAllowThreads(__tstate); | |
23960 | if (PyErr_Occurred()) SWIG_fail; | |
23961 | } | |
23962 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 0); | |
23963 | return resultobj; | |
23964 | fail: | |
23965 | return NULL; | |
23966 | } | |
23967 | ||
23968 | ||
23969 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23970 | PyObject *resultobj; | |
23971 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23972 | wxTreeItemId *arg2 = 0 ; | |
23973 | PyObject *result; | |
23974 | PyObject * obj0 = 0 ; | |
23975 | PyObject * obj1 = 0 ; | |
23976 | char *kwnames[] = { | |
23977 | (char *) "self",(char *) "item", NULL | |
23978 | }; | |
23979 | ||
23980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
23981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23982 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23983 | if (arg2 == NULL) { | |
23984 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23985 | } | |
23986 | { | |
23987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23988 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
23989 | ||
23990 | wxPyEndAllowThreads(__tstate); | |
23991 | if (PyErr_Occurred()) SWIG_fail; | |
23992 | } | |
23993 | resultobj = result; | |
23994 | return resultobj; | |
23995 | fail: | |
23996 | return NULL; | |
23997 | } | |
23998 | ||
23999 | ||
24000 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24001 | PyObject *resultobj; | |
24002 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24003 | wxTreeItemId *arg2 = 0 ; | |
24004 | wxColour result; | |
24005 | PyObject * obj0 = 0 ; | |
24006 | PyObject * obj1 = 0 ; | |
24007 | char *kwnames[] = { | |
24008 | (char *) "self",(char *) "item", NULL | |
24009 | }; | |
24010 | ||
24011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
24012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24013 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24014 | if (arg2 == NULL) { | |
24015 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24016 | } | |
24017 | { | |
24018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24019 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
24020 | ||
24021 | wxPyEndAllowThreads(__tstate); | |
24022 | if (PyErr_Occurred()) SWIG_fail; | |
24023 | } | |
24024 | { | |
24025 | wxColour * resultptr; | |
24026 | resultptr = new wxColour((wxColour &) result); | |
24027 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24028 | } | |
24029 | return resultobj; | |
24030 | fail: | |
24031 | return NULL; | |
24032 | } | |
24033 | ||
24034 | ||
24035 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24036 | PyObject *resultobj; | |
24037 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24038 | wxTreeItemId *arg2 = 0 ; | |
24039 | wxColour result; | |
24040 | PyObject * obj0 = 0 ; | |
24041 | PyObject * obj1 = 0 ; | |
24042 | char *kwnames[] = { | |
24043 | (char *) "self",(char *) "item", NULL | |
24044 | }; | |
24045 | ||
24046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24048 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24049 | if (arg2 == NULL) { | |
24050 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24051 | } | |
24052 | { | |
24053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24054 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
24055 | ||
24056 | wxPyEndAllowThreads(__tstate); | |
24057 | if (PyErr_Occurred()) SWIG_fail; | |
24058 | } | |
24059 | { | |
24060 | wxColour * resultptr; | |
24061 | resultptr = new wxColour((wxColour &) result); | |
24062 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24063 | } | |
24064 | return resultobj; | |
24065 | fail: | |
24066 | return NULL; | |
24067 | } | |
24068 | ||
24069 | ||
24070 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24071 | PyObject *resultobj; | |
24072 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24073 | wxTreeItemId *arg2 = 0 ; | |
24074 | wxFont result; | |
24075 | PyObject * obj0 = 0 ; | |
24076 | PyObject * obj1 = 0 ; | |
24077 | char *kwnames[] = { | |
24078 | (char *) "self",(char *) "item", NULL | |
24079 | }; | |
24080 | ||
24081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
24082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24083 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24084 | if (arg2 == NULL) { | |
24085 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24086 | } | |
24087 | { | |
24088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24089 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
24090 | ||
24091 | wxPyEndAllowThreads(__tstate); | |
24092 | if (PyErr_Occurred()) SWIG_fail; | |
24093 | } | |
24094 | { | |
24095 | wxFont * resultptr; | |
24096 | resultptr = new wxFont((wxFont &) result); | |
24097 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
24098 | } | |
24099 | return resultobj; | |
24100 | fail: | |
24101 | return NULL; | |
24102 | } | |
24103 | ||
24104 | ||
24105 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24106 | PyObject *resultobj; | |
24107 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24108 | wxTreeItemId *arg2 = 0 ; | |
24109 | wxString *arg3 = 0 ; | |
423f194a | 24110 | bool temp3 = False ; |
d14a1e28 RD |
24111 | PyObject * obj0 = 0 ; |
24112 | PyObject * obj1 = 0 ; | |
24113 | PyObject * obj2 = 0 ; | |
24114 | char *kwnames[] = { | |
24115 | (char *) "self",(char *) "item",(char *) "text", NULL | |
24116 | }; | |
24117 | ||
24118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24120 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24121 | if (arg2 == NULL) { | |
24122 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24123 | } | |
24124 | { | |
24125 | arg3 = wxString_in_helper(obj2); | |
24126 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 24127 | temp3 = True; |
d14a1e28 RD |
24128 | } |
24129 | { | |
24130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24131 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
24132 | ||
24133 | wxPyEndAllowThreads(__tstate); | |
24134 | if (PyErr_Occurred()) SWIG_fail; | |
24135 | } | |
24136 | Py_INCREF(Py_None); resultobj = Py_None; | |
24137 | { | |
24138 | if (temp3) | |
24139 | delete arg3; | |
24140 | } | |
24141 | return resultobj; | |
24142 | fail: | |
24143 | { | |
24144 | if (temp3) | |
24145 | delete arg3; | |
24146 | } | |
24147 | return NULL; | |
24148 | } | |
24149 | ||
24150 | ||
24151 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24152 | PyObject *resultobj; | |
24153 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24154 | wxTreeItemId *arg2 = 0 ; | |
24155 | int arg3 ; | |
24156 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
24157 | PyObject * obj0 = 0 ; | |
24158 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24159 | PyObject * obj2 = 0 ; |
24160 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24161 | char *kwnames[] = { |
24162 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
24163 | }; | |
24164 | ||
8edf1c75 | 24165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
24166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24167 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24168 | if (arg2 == NULL) { | |
24169 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24170 | } | |
8edf1c75 RD |
24171 | { |
24172 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24173 | if (PyErr_Occurred()) SWIG_fail; | |
24174 | } | |
24175 | if (obj3) { | |
24176 | { | |
24177 | arg4 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj3); | |
24178 | if (PyErr_Occurred()) SWIG_fail; | |
24179 | } | |
24180 | } | |
d14a1e28 RD |
24181 | { |
24182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24183 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
24184 | ||
24185 | wxPyEndAllowThreads(__tstate); | |
24186 | if (PyErr_Occurred()) SWIG_fail; | |
24187 | } | |
24188 | Py_INCREF(Py_None); resultobj = Py_None; | |
24189 | return resultobj; | |
24190 | fail: | |
24191 | return NULL; | |
24192 | } | |
24193 | ||
24194 | ||
24195 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24196 | PyObject *resultobj; | |
24197 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24198 | wxTreeItemId *arg2 = 0 ; | |
24199 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
24200 | PyObject * obj0 = 0 ; | |
24201 | PyObject * obj1 = 0 ; | |
24202 | PyObject * obj2 = 0 ; | |
24203 | char *kwnames[] = { | |
24204 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24205 | }; | |
24206 | ||
24207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24209 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24210 | if (arg2 == NULL) { | |
24211 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24212 | } | |
24213 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24214 | { | |
24215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24216 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24217 | ||
24218 | wxPyEndAllowThreads(__tstate); | |
24219 | if (PyErr_Occurred()) SWIG_fail; | |
24220 | } | |
24221 | Py_INCREF(Py_None); resultobj = Py_None; | |
24222 | return resultobj; | |
24223 | fail: | |
24224 | return NULL; | |
24225 | } | |
24226 | ||
24227 | ||
24228 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24229 | PyObject *resultobj; | |
24230 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24231 | wxTreeItemId *arg2 = 0 ; | |
24232 | PyObject *arg3 = (PyObject *) 0 ; | |
24233 | PyObject * obj0 = 0 ; | |
24234 | PyObject * obj1 = 0 ; | |
24235 | PyObject * obj2 = 0 ; | |
24236 | char *kwnames[] = { | |
24237 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
24238 | }; | |
24239 | ||
24240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24242 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24243 | if (arg2 == NULL) { | |
24244 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24245 | } | |
24246 | arg3 = obj2; | |
24247 | { | |
24248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24249 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24250 | ||
24251 | wxPyEndAllowThreads(__tstate); | |
24252 | if (PyErr_Occurred()) SWIG_fail; | |
24253 | } | |
24254 | Py_INCREF(Py_None); resultobj = Py_None; | |
24255 | return resultobj; | |
24256 | fail: | |
24257 | return NULL; | |
24258 | } | |
24259 | ||
24260 | ||
24261 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24262 | PyObject *resultobj; | |
24263 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24264 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24265 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24266 | PyObject * obj0 = 0 ; |
24267 | PyObject * obj1 = 0 ; | |
24268 | PyObject * obj2 = 0 ; | |
24269 | char *kwnames[] = { | |
24270 | (char *) "self",(char *) "item",(char *) "has", NULL | |
24271 | }; | |
24272 | ||
24273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24275 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24276 | if (arg2 == NULL) { | |
24277 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24278 | } | |
24279 | if (obj2) { | |
2dbef272 | 24280 | { |
8edf1c75 | 24281 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
24282 | if (PyErr_Occurred()) SWIG_fail; |
24283 | } | |
d14a1e28 RD |
24284 | } |
24285 | { | |
24286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24287 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
24288 | ||
24289 | wxPyEndAllowThreads(__tstate); | |
24290 | if (PyErr_Occurred()) SWIG_fail; | |
24291 | } | |
24292 | Py_INCREF(Py_None); resultobj = Py_None; | |
24293 | return resultobj; | |
24294 | fail: | |
24295 | return NULL; | |
24296 | } | |
24297 | ||
24298 | ||
24299 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24300 | PyObject *resultobj; | |
24301 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24302 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24303 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24304 | PyObject * obj0 = 0 ; |
24305 | PyObject * obj1 = 0 ; | |
24306 | PyObject * obj2 = 0 ; | |
24307 | char *kwnames[] = { | |
24308 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
24309 | }; | |
24310 | ||
24311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24313 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24314 | if (arg2 == NULL) { | |
24315 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24316 | } | |
24317 | if (obj2) { | |
2dbef272 | 24318 | { |
8edf1c75 | 24319 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
24320 | if (PyErr_Occurred()) SWIG_fail; |
24321 | } | |
d14a1e28 RD |
24322 | } |
24323 | { | |
24324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24325 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
24326 | ||
24327 | wxPyEndAllowThreads(__tstate); | |
24328 | if (PyErr_Occurred()) SWIG_fail; | |
24329 | } | |
24330 | Py_INCREF(Py_None); resultobj = Py_None; | |
24331 | return resultobj; | |
24332 | fail: | |
24333 | return NULL; | |
24334 | } | |
24335 | ||
24336 | ||
24337 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24338 | PyObject *resultobj; | |
24339 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24340 | wxTreeItemId *arg2 = 0 ; | |
24341 | wxColour *arg3 = 0 ; | |
24342 | wxColour temp3 ; | |
24343 | PyObject * obj0 = 0 ; | |
24344 | PyObject * obj1 = 0 ; | |
24345 | PyObject * obj2 = 0 ; | |
24346 | char *kwnames[] = { | |
24347 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24348 | }; | |
24349 | ||
24350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24352 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24353 | if (arg2 == NULL) { | |
24354 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24355 | } | |
24356 | { | |
24357 | arg3 = &temp3; | |
24358 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24359 | } | |
24360 | { | |
24361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24362 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24363 | ||
24364 | wxPyEndAllowThreads(__tstate); | |
24365 | if (PyErr_Occurred()) SWIG_fail; | |
24366 | } | |
24367 | Py_INCREF(Py_None); resultobj = Py_None; | |
24368 | return resultobj; | |
24369 | fail: | |
24370 | return NULL; | |
24371 | } | |
24372 | ||
24373 | ||
24374 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24375 | PyObject *resultobj; | |
24376 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24377 | wxTreeItemId *arg2 = 0 ; | |
24378 | wxColour *arg3 = 0 ; | |
24379 | wxColour temp3 ; | |
24380 | PyObject * obj0 = 0 ; | |
24381 | PyObject * obj1 = 0 ; | |
24382 | PyObject * obj2 = 0 ; | |
24383 | char *kwnames[] = { | |
24384 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24385 | }; | |
24386 | ||
24387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24389 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24390 | if (arg2 == NULL) { | |
24391 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24392 | } | |
24393 | { | |
24394 | arg3 = &temp3; | |
24395 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24396 | } | |
24397 | { | |
24398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24399 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24400 | ||
24401 | wxPyEndAllowThreads(__tstate); | |
24402 | if (PyErr_Occurred()) SWIG_fail; | |
24403 | } | |
24404 | Py_INCREF(Py_None); resultobj = Py_None; | |
24405 | return resultobj; | |
24406 | fail: | |
24407 | return NULL; | |
24408 | } | |
24409 | ||
24410 | ||
24411 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24412 | PyObject *resultobj; | |
24413 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24414 | wxTreeItemId *arg2 = 0 ; | |
24415 | wxFont *arg3 = 0 ; | |
24416 | PyObject * obj0 = 0 ; | |
24417 | PyObject * obj1 = 0 ; | |
24418 | PyObject * obj2 = 0 ; | |
24419 | char *kwnames[] = { | |
24420 | (char *) "self",(char *) "item",(char *) "font", NULL | |
24421 | }; | |
24422 | ||
24423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24425 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24426 | if (arg2 == NULL) { | |
24427 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24428 | } | |
24429 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24430 | if (arg3 == NULL) { | |
24431 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24432 | } | |
24433 | { | |
24434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24435 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
24436 | ||
24437 | wxPyEndAllowThreads(__tstate); | |
24438 | if (PyErr_Occurred()) SWIG_fail; | |
24439 | } | |
24440 | Py_INCREF(Py_None); resultobj = Py_None; | |
24441 | return resultobj; | |
24442 | fail: | |
24443 | return NULL; | |
24444 | } | |
24445 | ||
24446 | ||
24447 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24448 | PyObject *resultobj; | |
24449 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24450 | wxTreeItemId *arg2 = 0 ; | |
24451 | bool result; | |
24452 | PyObject * obj0 = 0 ; | |
24453 | PyObject * obj1 = 0 ; | |
24454 | char *kwnames[] = { | |
24455 | (char *) "self",(char *) "item", NULL | |
24456 | }; | |
24457 | ||
24458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
24459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24460 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24461 | if (arg2 == NULL) { | |
24462 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24463 | } | |
24464 | { | |
24465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24466 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
24467 | ||
24468 | wxPyEndAllowThreads(__tstate); | |
24469 | if (PyErr_Occurred()) SWIG_fail; | |
24470 | } | |
02a34c4c | 24471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24472 | return resultobj; |
24473 | fail: | |
24474 | return NULL; | |
24475 | } | |
24476 | ||
24477 | ||
24478 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24479 | PyObject *resultobj; | |
24480 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24481 | wxTreeItemId *arg2 = 0 ; | |
24482 | bool result; | |
24483 | PyObject * obj0 = 0 ; | |
24484 | PyObject * obj1 = 0 ; | |
24485 | char *kwnames[] = { | |
24486 | (char *) "self",(char *) "item", NULL | |
24487 | }; | |
24488 | ||
24489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
24490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24491 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24492 | if (arg2 == NULL) { | |
24493 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24494 | } | |
24495 | { | |
24496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24497 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
24498 | ||
24499 | wxPyEndAllowThreads(__tstate); | |
24500 | if (PyErr_Occurred()) SWIG_fail; | |
24501 | } | |
02a34c4c | 24502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24503 | return resultobj; |
24504 | fail: | |
24505 | return NULL; | |
24506 | } | |
24507 | ||
24508 | ||
24509 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24510 | PyObject *resultobj; | |
24511 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24512 | wxTreeItemId *arg2 = 0 ; | |
24513 | bool result; | |
24514 | PyObject * obj0 = 0 ; | |
24515 | PyObject * obj1 = 0 ; | |
24516 | char *kwnames[] = { | |
24517 | (char *) "self",(char *) "item", NULL | |
24518 | }; | |
24519 | ||
24520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
24521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24522 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24523 | if (arg2 == NULL) { | |
24524 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24525 | } | |
24526 | { | |
24527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24528 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
24529 | ||
24530 | wxPyEndAllowThreads(__tstate); | |
24531 | if (PyErr_Occurred()) SWIG_fail; | |
24532 | } | |
02a34c4c | 24533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24534 | return resultobj; |
24535 | fail: | |
24536 | return NULL; | |
24537 | } | |
24538 | ||
24539 | ||
24540 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24541 | PyObject *resultobj; | |
24542 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24543 | wxTreeItemId *arg2 = 0 ; | |
24544 | bool result; | |
24545 | PyObject * obj0 = 0 ; | |
24546 | PyObject * obj1 = 0 ; | |
24547 | char *kwnames[] = { | |
24548 | (char *) "self",(char *) "item", NULL | |
24549 | }; | |
24550 | ||
24551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
24552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24553 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24554 | if (arg2 == NULL) { | |
24555 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24556 | } | |
24557 | { | |
24558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24559 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
24560 | ||
24561 | wxPyEndAllowThreads(__tstate); | |
24562 | if (PyErr_Occurred()) SWIG_fail; | |
24563 | } | |
02a34c4c | 24564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24565 | return resultobj; |
24566 | fail: | |
24567 | return NULL; | |
24568 | } | |
24569 | ||
24570 | ||
24571 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24572 | PyObject *resultobj; | |
24573 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24574 | wxTreeItemId *arg2 = 0 ; | |
24575 | bool result; | |
24576 | PyObject * obj0 = 0 ; | |
24577 | PyObject * obj1 = 0 ; | |
24578 | char *kwnames[] = { | |
24579 | (char *) "self",(char *) "item", NULL | |
24580 | }; | |
24581 | ||
24582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
24583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24584 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24585 | if (arg2 == NULL) { | |
24586 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24587 | } | |
24588 | { | |
24589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24590 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
24591 | ||
24592 | wxPyEndAllowThreads(__tstate); | |
24593 | if (PyErr_Occurred()) SWIG_fail; | |
24594 | } | |
02a34c4c | 24595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24596 | return resultobj; |
24597 | fail: | |
24598 | return NULL; | |
24599 | } | |
24600 | ||
24601 | ||
24602 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24603 | PyObject *resultobj; | |
24604 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24605 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24606 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24607 | size_t result; |
24608 | PyObject * obj0 = 0 ; | |
24609 | PyObject * obj1 = 0 ; | |
24610 | PyObject * obj2 = 0 ; | |
24611 | char *kwnames[] = { | |
24612 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
24613 | }; | |
24614 | ||
24615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24617 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24618 | if (arg2 == NULL) { | |
24619 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24620 | } | |
24621 | if (obj2) { | |
2dbef272 | 24622 | { |
8edf1c75 | 24623 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
24624 | if (PyErr_Occurred()) SWIG_fail; |
24625 | } | |
d14a1e28 RD |
24626 | } |
24627 | { | |
24628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24629 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
24630 | ||
24631 | wxPyEndAllowThreads(__tstate); | |
24632 | if (PyErr_Occurred()) SWIG_fail; | |
24633 | } | |
8edf1c75 | 24634 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24635 | return resultobj; |
24636 | fail: | |
24637 | return NULL; | |
24638 | } | |
24639 | ||
24640 | ||
24641 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24642 | PyObject *resultobj; | |
24643 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24644 | wxTreeItemId result; | |
24645 | PyObject * obj0 = 0 ; | |
24646 | char *kwnames[] = { | |
24647 | (char *) "self", NULL | |
24648 | }; | |
24649 | ||
24650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
24651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24652 | { | |
24653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24654 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
24655 | ||
24656 | wxPyEndAllowThreads(__tstate); | |
24657 | if (PyErr_Occurred()) SWIG_fail; | |
24658 | } | |
24659 | { | |
24660 | wxTreeItemId * resultptr; | |
24661 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24662 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24663 | } | |
24664 | return resultobj; | |
24665 | fail: | |
24666 | return NULL; | |
24667 | } | |
24668 | ||
24669 | ||
24670 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24671 | PyObject *resultobj; | |
24672 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24673 | wxTreeItemId result; | |
24674 | PyObject * obj0 = 0 ; | |
24675 | char *kwnames[] = { | |
24676 | (char *) "self", NULL | |
24677 | }; | |
24678 | ||
24679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
24680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24681 | { | |
24682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24683 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
24684 | ||
24685 | wxPyEndAllowThreads(__tstate); | |
24686 | if (PyErr_Occurred()) SWIG_fail; | |
24687 | } | |
24688 | { | |
24689 | wxTreeItemId * resultptr; | |
24690 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24691 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24692 | } | |
24693 | return resultobj; | |
24694 | fail: | |
24695 | return NULL; | |
24696 | } | |
24697 | ||
24698 | ||
24699 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24700 | PyObject *resultobj; | |
24701 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24702 | PyObject *result; | |
24703 | PyObject * obj0 = 0 ; | |
24704 | char *kwnames[] = { | |
24705 | (char *) "self", NULL | |
24706 | }; | |
24707 | ||
24708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
24709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24710 | { | |
24711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24712 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
24713 | ||
24714 | wxPyEndAllowThreads(__tstate); | |
24715 | if (PyErr_Occurred()) SWIG_fail; | |
24716 | } | |
24717 | resultobj = result; | |
24718 | return resultobj; | |
24719 | fail: | |
24720 | return NULL; | |
24721 | } | |
24722 | ||
24723 | ||
24724 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24725 | PyObject *resultobj; | |
24726 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24727 | wxTreeItemId *arg2 = 0 ; | |
24728 | wxTreeItemId result; | |
24729 | PyObject * obj0 = 0 ; | |
24730 | PyObject * obj1 = 0 ; | |
24731 | char *kwnames[] = { | |
24732 | (char *) "self",(char *) "item", NULL | |
24733 | }; | |
24734 | ||
24735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
24736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24737 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24738 | if (arg2 == NULL) { | |
24739 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24740 | } | |
24741 | { | |
24742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24743 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
24744 | ||
24745 | wxPyEndAllowThreads(__tstate); | |
24746 | if (PyErr_Occurred()) SWIG_fail; | |
24747 | } | |
24748 | { | |
24749 | wxTreeItemId * resultptr; | |
24750 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24751 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24752 | } | |
24753 | return resultobj; | |
24754 | fail: | |
24755 | return NULL; | |
24756 | } | |
24757 | ||
24758 | ||
24759 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24760 | PyObject *resultobj; | |
24761 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24762 | wxTreeItemId *arg2 = 0 ; | |
24763 | PyObject *result; | |
24764 | PyObject * obj0 = 0 ; | |
24765 | PyObject * obj1 = 0 ; | |
24766 | char *kwnames[] = { | |
24767 | (char *) "self",(char *) "item", NULL | |
24768 | }; | |
24769 | ||
24770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
24771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24772 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24773 | if (arg2 == NULL) { | |
24774 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24775 | } | |
24776 | { | |
24777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24778 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
24779 | ||
24780 | wxPyEndAllowThreads(__tstate); | |
24781 | if (PyErr_Occurred()) SWIG_fail; | |
24782 | } | |
24783 | resultobj = result; | |
24784 | return resultobj; | |
24785 | fail: | |
24786 | return NULL; | |
24787 | } | |
24788 | ||
24789 | ||
24790 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24791 | PyObject *resultobj; | |
24792 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24793 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 24794 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
24795 | PyObject *result; |
24796 | PyObject * obj0 = 0 ; | |
24797 | PyObject * obj1 = 0 ; | |
24798 | PyObject * obj2 = 0 ; | |
24799 | char *kwnames[] = { | |
24800 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
24801 | }; | |
24802 | ||
24803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24805 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24806 | if (arg2 == NULL) { | |
24807 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24808 | } | |
58203fa6 | 24809 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
24810 | { |
24811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 24812 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
24813 | |
24814 | wxPyEndAllowThreads(__tstate); | |
24815 | if (PyErr_Occurred()) SWIG_fail; | |
24816 | } | |
24817 | resultobj = result; | |
24818 | return resultobj; | |
24819 | fail: | |
24820 | return NULL; | |
24821 | } | |
24822 | ||
24823 | ||
24824 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24825 | PyObject *resultobj; | |
24826 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24827 | wxTreeItemId *arg2 = 0 ; | |
24828 | wxTreeItemId result; | |
24829 | PyObject * obj0 = 0 ; | |
24830 | PyObject * obj1 = 0 ; | |
24831 | char *kwnames[] = { | |
24832 | (char *) "self",(char *) "item", NULL | |
24833 | }; | |
24834 | ||
24835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
24836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24837 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24838 | if (arg2 == NULL) { | |
24839 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24840 | } | |
24841 | { | |
24842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24843 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
24844 | ||
24845 | wxPyEndAllowThreads(__tstate); | |
24846 | if (PyErr_Occurred()) SWIG_fail; | |
24847 | } | |
24848 | { | |
24849 | wxTreeItemId * resultptr; | |
24850 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24851 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24852 | } | |
24853 | return resultobj; | |
24854 | fail: | |
24855 | return NULL; | |
24856 | } | |
24857 | ||
24858 | ||
24859 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24860 | PyObject *resultobj; | |
24861 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24862 | wxTreeItemId *arg2 = 0 ; | |
24863 | wxTreeItemId result; | |
24864 | PyObject * obj0 = 0 ; | |
24865 | PyObject * obj1 = 0 ; | |
24866 | char *kwnames[] = { | |
24867 | (char *) "self",(char *) "item", NULL | |
24868 | }; | |
24869 | ||
24870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
24871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24872 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24873 | if (arg2 == NULL) { | |
24874 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24875 | } | |
24876 | { | |
24877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24878 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
24879 | ||
24880 | wxPyEndAllowThreads(__tstate); | |
24881 | if (PyErr_Occurred()) SWIG_fail; | |
24882 | } | |
24883 | { | |
24884 | wxTreeItemId * resultptr; | |
24885 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24886 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24887 | } | |
24888 | return resultobj; | |
24889 | fail: | |
24890 | return NULL; | |
24891 | } | |
24892 | ||
24893 | ||
24894 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24895 | PyObject *resultobj; | |
24896 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24897 | wxTreeItemId *arg2 = 0 ; | |
24898 | wxTreeItemId result; | |
24899 | PyObject * obj0 = 0 ; | |
24900 | PyObject * obj1 = 0 ; | |
24901 | char *kwnames[] = { | |
24902 | (char *) "self",(char *) "item", NULL | |
24903 | }; | |
24904 | ||
24905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
24906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24907 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24908 | if (arg2 == NULL) { | |
24909 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24910 | } | |
24911 | { | |
24912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24913 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
24914 | ||
24915 | wxPyEndAllowThreads(__tstate); | |
24916 | if (PyErr_Occurred()) SWIG_fail; | |
24917 | } | |
24918 | { | |
24919 | wxTreeItemId * resultptr; | |
24920 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24921 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24922 | } | |
24923 | return resultobj; | |
24924 | fail: | |
24925 | return NULL; | |
24926 | } | |
24927 | ||
24928 | ||
24929 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24930 | PyObject *resultobj; | |
24931 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24932 | wxTreeItemId result; | |
24933 | PyObject * obj0 = 0 ; | |
24934 | char *kwnames[] = { | |
24935 | (char *) "self", NULL | |
24936 | }; | |
24937 | ||
24938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
24939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24940 | { | |
24941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24942 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
24943 | ||
24944 | wxPyEndAllowThreads(__tstate); | |
24945 | if (PyErr_Occurred()) SWIG_fail; | |
24946 | } | |
24947 | { | |
24948 | wxTreeItemId * resultptr; | |
24949 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24950 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24951 | } | |
24952 | return resultobj; | |
24953 | fail: | |
24954 | return NULL; | |
24955 | } | |
24956 | ||
24957 | ||
24958 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24959 | PyObject *resultobj; | |
24960 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24961 | wxTreeItemId *arg2 = 0 ; | |
24962 | wxTreeItemId result; | |
24963 | PyObject * obj0 = 0 ; | |
24964 | PyObject * obj1 = 0 ; | |
24965 | char *kwnames[] = { | |
24966 | (char *) "self",(char *) "item", NULL | |
24967 | }; | |
24968 | ||
24969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
24970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24971 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24972 | if (arg2 == NULL) { | |
24973 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24974 | } | |
24975 | { | |
24976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24977 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
24978 | ||
24979 | wxPyEndAllowThreads(__tstate); | |
24980 | if (PyErr_Occurred()) SWIG_fail; | |
24981 | } | |
24982 | { | |
24983 | wxTreeItemId * resultptr; | |
24984 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24985 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24986 | } | |
24987 | return resultobj; | |
24988 | fail: | |
24989 | return NULL; | |
24990 | } | |
24991 | ||
24992 | ||
24993 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24994 | PyObject *resultobj; | |
24995 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24996 | wxTreeItemId *arg2 = 0 ; | |
24997 | wxTreeItemId result; | |
24998 | PyObject * obj0 = 0 ; | |
24999 | PyObject * obj1 = 0 ; | |
25000 | char *kwnames[] = { | |
25001 | (char *) "self",(char *) "item", NULL | |
25002 | }; | |
25003 | ||
25004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
25005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25006 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25007 | if (arg2 == NULL) { | |
25008 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25009 | } | |
25010 | { | |
25011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25012 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
25013 | ||
25014 | wxPyEndAllowThreads(__tstate); | |
25015 | if (PyErr_Occurred()) SWIG_fail; | |
25016 | } | |
25017 | { | |
25018 | wxTreeItemId * resultptr; | |
25019 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25020 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25021 | } | |
25022 | return resultobj; | |
25023 | fail: | |
25024 | return NULL; | |
25025 | } | |
25026 | ||
25027 | ||
25028 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25029 | PyObject *resultobj; | |
25030 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25031 | wxString *arg2 = 0 ; | |
25032 | int arg3 = (int) -1 ; | |
25033 | int arg4 = (int) -1 ; | |
25034 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
25035 | wxTreeItemId result; | |
423f194a | 25036 | bool temp2 = False ; |
d14a1e28 RD |
25037 | PyObject * obj0 = 0 ; |
25038 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
25039 | PyObject * obj2 = 0 ; |
25040 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25041 | PyObject * obj4 = 0 ; |
25042 | char *kwnames[] = { | |
25043 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25044 | }; | |
25045 | ||
8edf1c75 | 25046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
25047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25048 | { | |
25049 | arg2 = wxString_in_helper(obj1); | |
25050 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25051 | temp2 = True; |
d14a1e28 | 25052 | } |
8edf1c75 RD |
25053 | if (obj2) { |
25054 | { | |
25055 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25056 | if (PyErr_Occurred()) SWIG_fail; | |
25057 | } | |
25058 | } | |
25059 | if (obj3) { | |
25060 | { | |
25061 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25062 | if (PyErr_Occurred()) SWIG_fail; | |
25063 | } | |
25064 | } | |
d14a1e28 RD |
25065 | if (obj4) { |
25066 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25067 | } | |
25068 | { | |
25069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25070 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
25071 | ||
25072 | wxPyEndAllowThreads(__tstate); | |
25073 | if (PyErr_Occurred()) SWIG_fail; | |
25074 | } | |
25075 | { | |
25076 | wxTreeItemId * resultptr; | |
25077 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25078 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25079 | } | |
25080 | { | |
25081 | if (temp2) | |
25082 | delete arg2; | |
25083 | } | |
25084 | return resultobj; | |
25085 | fail: | |
25086 | { | |
25087 | if (temp2) | |
25088 | delete arg2; | |
25089 | } | |
25090 | return NULL; | |
25091 | } | |
25092 | ||
25093 | ||
25094 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25095 | PyObject *resultobj; | |
25096 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25097 | wxTreeItemId *arg2 = 0 ; | |
25098 | wxString *arg3 = 0 ; | |
25099 | int arg4 = (int) -1 ; | |
25100 | int arg5 = (int) -1 ; | |
25101 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25102 | wxTreeItemId result; | |
423f194a | 25103 | bool temp3 = False ; |
d14a1e28 RD |
25104 | PyObject * obj0 = 0 ; |
25105 | PyObject * obj1 = 0 ; | |
25106 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
25107 | PyObject * obj3 = 0 ; |
25108 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25109 | PyObject * obj5 = 0 ; |
25110 | char *kwnames[] = { | |
25111 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25112 | }; | |
25113 | ||
8edf1c75 | 25114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
25115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25116 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25117 | if (arg2 == NULL) { | |
25118 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25119 | } | |
25120 | { | |
25121 | arg3 = wxString_in_helper(obj2); | |
25122 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25123 | temp3 = True; |
d14a1e28 | 25124 | } |
8edf1c75 RD |
25125 | if (obj3) { |
25126 | { | |
25127 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25128 | if (PyErr_Occurred()) SWIG_fail; | |
25129 | } | |
25130 | } | |
25131 | if (obj4) { | |
25132 | { | |
25133 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25134 | if (PyErr_Occurred()) SWIG_fail; | |
25135 | } | |
25136 | } | |
d14a1e28 RD |
25137 | if (obj5) { |
25138 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25139 | } | |
25140 | { | |
25141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25142 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25143 | ||
25144 | wxPyEndAllowThreads(__tstate); | |
25145 | if (PyErr_Occurred()) SWIG_fail; | |
25146 | } | |
25147 | { | |
25148 | wxTreeItemId * resultptr; | |
25149 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25150 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25151 | } | |
25152 | { | |
25153 | if (temp3) | |
25154 | delete arg3; | |
25155 | } | |
25156 | return resultobj; | |
25157 | fail: | |
25158 | { | |
25159 | if (temp3) | |
25160 | delete arg3; | |
25161 | } | |
25162 | return NULL; | |
25163 | } | |
25164 | ||
25165 | ||
25166 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25167 | PyObject *resultobj; | |
25168 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25169 | wxTreeItemId *arg2 = 0 ; | |
25170 | wxTreeItemId *arg3 = 0 ; | |
25171 | wxString *arg4 = 0 ; | |
25172 | int arg5 = (int) -1 ; | |
25173 | int arg6 = (int) -1 ; | |
25174 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
25175 | wxTreeItemId result; | |
423f194a | 25176 | bool temp4 = False ; |
d14a1e28 RD |
25177 | PyObject * obj0 = 0 ; |
25178 | PyObject * obj1 = 0 ; | |
25179 | PyObject * obj2 = 0 ; | |
25180 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
25181 | PyObject * obj4 = 0 ; |
25182 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
25183 | PyObject * obj6 = 0 ; |
25184 | char *kwnames[] = { | |
25185 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25186 | }; | |
25187 | ||
8edf1c75 | 25188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
25189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25190 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25191 | if (arg2 == NULL) { | |
25192 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25193 | } | |
25194 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25195 | if (arg3 == NULL) { | |
25196 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25197 | } | |
25198 | { | |
25199 | arg4 = wxString_in_helper(obj3); | |
25200 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25201 | temp4 = True; |
d14a1e28 | 25202 | } |
8edf1c75 RD |
25203 | if (obj4) { |
25204 | { | |
25205 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25206 | if (PyErr_Occurred()) SWIG_fail; | |
25207 | } | |
25208 | } | |
25209 | if (obj5) { | |
25210 | { | |
25211 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
25212 | if (PyErr_Occurred()) SWIG_fail; | |
25213 | } | |
25214 | } | |
d14a1e28 RD |
25215 | if (obj6) { |
25216 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25217 | } | |
25218 | { | |
25219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25220 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25221 | ||
25222 | wxPyEndAllowThreads(__tstate); | |
25223 | if (PyErr_Occurred()) SWIG_fail; | |
25224 | } | |
25225 | { | |
25226 | wxTreeItemId * resultptr; | |
25227 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25228 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25229 | } | |
25230 | { | |
25231 | if (temp4) | |
25232 | delete arg4; | |
25233 | } | |
25234 | return resultobj; | |
25235 | fail: | |
25236 | { | |
25237 | if (temp4) | |
25238 | delete arg4; | |
25239 | } | |
25240 | return NULL; | |
25241 | } | |
25242 | ||
25243 | ||
25244 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25245 | PyObject *resultobj; | |
25246 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25247 | wxTreeItemId *arg2 = 0 ; | |
25248 | size_t arg3 ; | |
25249 | wxString *arg4 = 0 ; | |
25250 | int arg5 = (int) -1 ; | |
25251 | int arg6 = (int) -1 ; | |
25252 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
25253 | wxTreeItemId result; | |
423f194a | 25254 | bool temp4 = False ; |
d14a1e28 RD |
25255 | PyObject * obj0 = 0 ; |
25256 | PyObject * obj1 = 0 ; | |
25257 | PyObject * obj2 = 0 ; | |
25258 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
25259 | PyObject * obj4 = 0 ; |
25260 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
25261 | PyObject * obj6 = 0 ; |
25262 | char *kwnames[] = { | |
25263 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25264 | }; | |
25265 | ||
8edf1c75 | 25266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
25267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25268 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25269 | if (arg2 == NULL) { | |
25270 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25271 | } | |
2dbef272 | 25272 | { |
8edf1c75 | 25273 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
2dbef272 RD |
25274 | if (PyErr_Occurred()) SWIG_fail; |
25275 | } | |
d14a1e28 RD |
25276 | { |
25277 | arg4 = wxString_in_helper(obj3); | |
25278 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25279 | temp4 = True; |
d14a1e28 | 25280 | } |
8edf1c75 RD |
25281 | if (obj4) { |
25282 | { | |
25283 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25284 | if (PyErr_Occurred()) SWIG_fail; | |
25285 | } | |
25286 | } | |
25287 | if (obj5) { | |
25288 | { | |
25289 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
25290 | if (PyErr_Occurred()) SWIG_fail; | |
25291 | } | |
25292 | } | |
d14a1e28 RD |
25293 | if (obj6) { |
25294 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25295 | } | |
25296 | { | |
25297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25298 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25299 | ||
25300 | wxPyEndAllowThreads(__tstate); | |
25301 | if (PyErr_Occurred()) SWIG_fail; | |
25302 | } | |
25303 | { | |
25304 | wxTreeItemId * resultptr; | |
25305 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25306 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25307 | } | |
25308 | { | |
25309 | if (temp4) | |
25310 | delete arg4; | |
25311 | } | |
25312 | return resultobj; | |
25313 | fail: | |
25314 | { | |
25315 | if (temp4) | |
25316 | delete arg4; | |
25317 | } | |
25318 | return NULL; | |
25319 | } | |
25320 | ||
25321 | ||
25322 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25323 | PyObject *resultobj; | |
25324 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25325 | wxTreeItemId *arg2 = 0 ; | |
25326 | wxString *arg3 = 0 ; | |
25327 | int arg4 = (int) -1 ; | |
25328 | int arg5 = (int) -1 ; | |
25329 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25330 | wxTreeItemId result; | |
423f194a | 25331 | bool temp3 = False ; |
d14a1e28 RD |
25332 | PyObject * obj0 = 0 ; |
25333 | PyObject * obj1 = 0 ; | |
25334 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
25335 | PyObject * obj3 = 0 ; |
25336 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25337 | PyObject * obj5 = 0 ; |
25338 | char *kwnames[] = { | |
25339 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25340 | }; | |
25341 | ||
8edf1c75 | 25342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
25343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25344 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25345 | if (arg2 == NULL) { | |
25346 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25347 | } | |
25348 | { | |
25349 | arg3 = wxString_in_helper(obj2); | |
25350 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25351 | temp3 = True; |
d14a1e28 | 25352 | } |
8edf1c75 RD |
25353 | if (obj3) { |
25354 | { | |
25355 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25356 | if (PyErr_Occurred()) SWIG_fail; | |
25357 | } | |
25358 | } | |
25359 | if (obj4) { | |
25360 | { | |
25361 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25362 | if (PyErr_Occurred()) SWIG_fail; | |
25363 | } | |
25364 | } | |
d14a1e28 RD |
25365 | if (obj5) { |
25366 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25367 | } | |
25368 | { | |
25369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25370 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25371 | ||
25372 | wxPyEndAllowThreads(__tstate); | |
25373 | if (PyErr_Occurred()) SWIG_fail; | |
25374 | } | |
25375 | { | |
25376 | wxTreeItemId * resultptr; | |
25377 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25378 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25379 | } | |
25380 | { | |
25381 | if (temp3) | |
25382 | delete arg3; | |
25383 | } | |
25384 | return resultobj; | |
25385 | fail: | |
25386 | { | |
25387 | if (temp3) | |
25388 | delete arg3; | |
25389 | } | |
25390 | return NULL; | |
25391 | } | |
25392 | ||
25393 | ||
25394 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25395 | PyObject *resultobj; | |
25396 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25397 | wxTreeItemId *arg2 = 0 ; | |
25398 | PyObject * obj0 = 0 ; | |
25399 | PyObject * obj1 = 0 ; | |
25400 | char *kwnames[] = { | |
25401 | (char *) "self",(char *) "item", NULL | |
25402 | }; | |
25403 | ||
25404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
25405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25406 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25407 | if (arg2 == NULL) { | |
25408 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25409 | } | |
25410 | { | |
25411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25412 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
25413 | ||
25414 | wxPyEndAllowThreads(__tstate); | |
25415 | if (PyErr_Occurred()) SWIG_fail; | |
25416 | } | |
25417 | Py_INCREF(Py_None); resultobj = Py_None; | |
25418 | return resultobj; | |
25419 | fail: | |
25420 | return NULL; | |
25421 | } | |
25422 | ||
25423 | ||
25424 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25425 | PyObject *resultobj; | |
25426 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25427 | wxTreeItemId *arg2 = 0 ; | |
25428 | PyObject * obj0 = 0 ; | |
25429 | PyObject * obj1 = 0 ; | |
25430 | char *kwnames[] = { | |
25431 | (char *) "self",(char *) "item", NULL | |
25432 | }; | |
25433 | ||
25434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
25435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25436 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25437 | if (arg2 == NULL) { | |
25438 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25439 | } | |
25440 | { | |
25441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25442 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
25443 | ||
25444 | wxPyEndAllowThreads(__tstate); | |
25445 | if (PyErr_Occurred()) SWIG_fail; | |
25446 | } | |
25447 | Py_INCREF(Py_None); resultobj = Py_None; | |
25448 | return resultobj; | |
25449 | fail: | |
25450 | return NULL; | |
25451 | } | |
25452 | ||
25453 | ||
25454 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25455 | PyObject *resultobj; | |
25456 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25457 | PyObject * obj0 = 0 ; | |
25458 | char *kwnames[] = { | |
25459 | (char *) "self", NULL | |
25460 | }; | |
25461 | ||
25462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
25463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25464 | { | |
25465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25466 | (arg1)->DeleteAllItems(); | |
25467 | ||
25468 | wxPyEndAllowThreads(__tstate); | |
25469 | if (PyErr_Occurred()) SWIG_fail; | |
25470 | } | |
25471 | Py_INCREF(Py_None); resultobj = Py_None; | |
25472 | return resultobj; | |
25473 | fail: | |
25474 | return NULL; | |
25475 | } | |
25476 | ||
25477 | ||
25478 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25479 | PyObject *resultobj; | |
25480 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25481 | wxTreeItemId *arg2 = 0 ; | |
25482 | PyObject * obj0 = 0 ; | |
25483 | PyObject * obj1 = 0 ; | |
25484 | char *kwnames[] = { | |
25485 | (char *) "self",(char *) "item", NULL | |
25486 | }; | |
25487 | ||
25488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
25489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25490 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25491 | if (arg2 == NULL) { | |
25492 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25493 | } | |
25494 | { | |
25495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25496 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
25497 | ||
25498 | wxPyEndAllowThreads(__tstate); | |
25499 | if (PyErr_Occurred()) SWIG_fail; | |
25500 | } | |
25501 | Py_INCREF(Py_None); resultobj = Py_None; | |
25502 | return resultobj; | |
25503 | fail: | |
25504 | return NULL; | |
25505 | } | |
25506 | ||
25507 | ||
25508 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25509 | PyObject *resultobj; | |
25510 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25511 | wxTreeItemId *arg2 = 0 ; | |
25512 | PyObject * obj0 = 0 ; | |
25513 | PyObject * obj1 = 0 ; | |
25514 | char *kwnames[] = { | |
25515 | (char *) "self",(char *) "item", NULL | |
25516 | }; | |
25517 | ||
25518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
25519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25520 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25521 | if (arg2 == NULL) { | |
25522 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25523 | } | |
25524 | { | |
25525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25526 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
25527 | ||
25528 | wxPyEndAllowThreads(__tstate); | |
25529 | if (PyErr_Occurred()) SWIG_fail; | |
25530 | } | |
25531 | Py_INCREF(Py_None); resultobj = Py_None; | |
25532 | return resultobj; | |
25533 | fail: | |
25534 | return NULL; | |
25535 | } | |
25536 | ||
25537 | ||
25538 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25539 | PyObject *resultobj; | |
25540 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25541 | wxTreeItemId *arg2 = 0 ; | |
25542 | PyObject * obj0 = 0 ; | |
25543 | PyObject * obj1 = 0 ; | |
25544 | char *kwnames[] = { | |
25545 | (char *) "self",(char *) "item", NULL | |
25546 | }; | |
25547 | ||
25548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
25549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25550 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25551 | if (arg2 == NULL) { | |
25552 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25553 | } | |
25554 | { | |
25555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25556 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
25557 | ||
25558 | wxPyEndAllowThreads(__tstate); | |
25559 | if (PyErr_Occurred()) SWIG_fail; | |
25560 | } | |
25561 | Py_INCREF(Py_None); resultobj = Py_None; | |
25562 | return resultobj; | |
25563 | fail: | |
25564 | return NULL; | |
25565 | } | |
25566 | ||
25567 | ||
25568 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25569 | PyObject *resultobj; | |
25570 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25571 | wxTreeItemId *arg2 = 0 ; | |
25572 | PyObject * obj0 = 0 ; | |
25573 | PyObject * obj1 = 0 ; | |
25574 | char *kwnames[] = { | |
25575 | (char *) "self",(char *) "item", NULL | |
25576 | }; | |
25577 | ||
25578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
25579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25580 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25581 | if (arg2 == NULL) { | |
25582 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25583 | } | |
25584 | { | |
25585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25586 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
25587 | ||
25588 | wxPyEndAllowThreads(__tstate); | |
25589 | if (PyErr_Occurred()) SWIG_fail; | |
25590 | } | |
25591 | Py_INCREF(Py_None); resultobj = Py_None; | |
25592 | return resultobj; | |
25593 | fail: | |
25594 | return NULL; | |
25595 | } | |
25596 | ||
25597 | ||
25598 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25599 | PyObject *resultobj; | |
25600 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25601 | PyObject * obj0 = 0 ; | |
25602 | char *kwnames[] = { | |
25603 | (char *) "self", NULL | |
25604 | }; | |
25605 | ||
25606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
25607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25608 | { | |
25609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25610 | (arg1)->Unselect(); | |
25611 | ||
25612 | wxPyEndAllowThreads(__tstate); | |
25613 | if (PyErr_Occurred()) SWIG_fail; | |
25614 | } | |
25615 | Py_INCREF(Py_None); resultobj = Py_None; | |
25616 | return resultobj; | |
25617 | fail: | |
25618 | return NULL; | |
25619 | } | |
25620 | ||
25621 | ||
0ffb2aa6 RD |
25622 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
25623 | PyObject *resultobj; | |
25624 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25625 | wxTreeItemId *arg2 = 0 ; | |
25626 | PyObject * obj0 = 0 ; | |
25627 | PyObject * obj1 = 0 ; | |
25628 | char *kwnames[] = { | |
25629 | (char *) "self",(char *) "item", NULL | |
25630 | }; | |
25631 | ||
25632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
25633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25634 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25635 | if (arg2 == NULL) { | |
25636 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25637 | } | |
25638 | { | |
25639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25640 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
25641 | ||
25642 | wxPyEndAllowThreads(__tstate); | |
25643 | if (PyErr_Occurred()) SWIG_fail; | |
25644 | } | |
25645 | Py_INCREF(Py_None); resultobj = Py_None; | |
25646 | return resultobj; | |
25647 | fail: | |
25648 | return NULL; | |
25649 | } | |
25650 | ||
25651 | ||
d14a1e28 RD |
25652 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
25653 | PyObject *resultobj; | |
25654 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25655 | PyObject * obj0 = 0 ; | |
25656 | char *kwnames[] = { | |
25657 | (char *) "self", NULL | |
25658 | }; | |
25659 | ||
25660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
25661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25662 | { | |
25663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25664 | (arg1)->UnselectAll(); | |
25665 | ||
25666 | wxPyEndAllowThreads(__tstate); | |
25667 | if (PyErr_Occurred()) SWIG_fail; | |
25668 | } | |
25669 | Py_INCREF(Py_None); resultobj = Py_None; | |
25670 | return resultobj; | |
25671 | fail: | |
25672 | return NULL; | |
25673 | } | |
25674 | ||
25675 | ||
25676 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
0ffb2aa6 RD |
25677 | PyObject *resultobj; |
25678 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25679 | wxTreeItemId *arg2 = 0 ; | |
25680 | bool arg3 = (bool) True ; | |
25681 | PyObject * obj0 = 0 ; | |
25682 | PyObject * obj1 = 0 ; | |
25683 | PyObject * obj2 = 0 ; | |
25684 | char *kwnames[] = { | |
25685 | (char *) "self",(char *) "item",(char *) "select", NULL | |
25686 | }; | |
25687 | ||
25688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25690 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25691 | if (arg2 == NULL) { | |
25692 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25693 | } | |
25694 | if (obj2) { | |
25695 | { | |
25696 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
25697 | if (PyErr_Occurred()) SWIG_fail; | |
25698 | } | |
25699 | } | |
25700 | { | |
25701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25702 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
25703 | ||
25704 | wxPyEndAllowThreads(__tstate); | |
25705 | if (PyErr_Occurred()) SWIG_fail; | |
25706 | } | |
25707 | Py_INCREF(Py_None); resultobj = Py_None; | |
25708 | return resultobj; | |
25709 | fail: | |
25710 | return NULL; | |
25711 | } | |
25712 | ||
25713 | ||
25714 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
25715 | PyObject *resultobj; |
25716 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25717 | wxTreeItemId *arg2 = 0 ; | |
25718 | PyObject * obj0 = 0 ; | |
25719 | PyObject * obj1 = 0 ; | |
25720 | char *kwnames[] = { | |
25721 | (char *) "self",(char *) "item", NULL | |
25722 | }; | |
25723 | ||
0ffb2aa6 | 25724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
25725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25726 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25727 | if (arg2 == NULL) { | |
25728 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25729 | } | |
25730 | { | |
25731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0ffb2aa6 | 25732 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
25733 | |
25734 | wxPyEndAllowThreads(__tstate); | |
25735 | if (PyErr_Occurred()) SWIG_fail; | |
25736 | } | |
25737 | Py_INCREF(Py_None); resultobj = Py_None; | |
25738 | return resultobj; | |
25739 | fail: | |
25740 | return NULL; | |
25741 | } | |
25742 | ||
25743 | ||
25744 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25745 | PyObject *resultobj; | |
25746 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25747 | wxTreeItemId *arg2 = 0 ; | |
25748 | PyObject * obj0 = 0 ; | |
25749 | PyObject * obj1 = 0 ; | |
25750 | char *kwnames[] = { | |
25751 | (char *) "self",(char *) "item", NULL | |
25752 | }; | |
25753 | ||
25754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
25755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25756 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25757 | if (arg2 == NULL) { | |
25758 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25759 | } | |
25760 | { | |
25761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25762 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
25763 | ||
25764 | wxPyEndAllowThreads(__tstate); | |
25765 | if (PyErr_Occurred()) SWIG_fail; | |
25766 | } | |
25767 | Py_INCREF(Py_None); resultobj = Py_None; | |
25768 | return resultobj; | |
25769 | fail: | |
25770 | return NULL; | |
25771 | } | |
25772 | ||
25773 | ||
25774 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25775 | PyObject *resultobj; | |
25776 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25777 | wxTreeItemId *arg2 = 0 ; | |
25778 | PyObject * obj0 = 0 ; | |
25779 | PyObject * obj1 = 0 ; | |
25780 | char *kwnames[] = { | |
25781 | (char *) "self",(char *) "item", NULL | |
25782 | }; | |
25783 | ||
25784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
25785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25786 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25787 | if (arg2 == NULL) { | |
25788 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25789 | } | |
25790 | { | |
25791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25792 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
25793 | ||
25794 | wxPyEndAllowThreads(__tstate); | |
25795 | if (PyErr_Occurred()) SWIG_fail; | |
25796 | } | |
25797 | Py_INCREF(Py_None); resultobj = Py_None; | |
25798 | return resultobj; | |
25799 | fail: | |
25800 | return NULL; | |
25801 | } | |
25802 | ||
25803 | ||
25804 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25805 | PyObject *resultobj; | |
25806 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25807 | wxTreeItemId *arg2 = 0 ; | |
25808 | PyObject * obj0 = 0 ; | |
25809 | PyObject * obj1 = 0 ; | |
25810 | char *kwnames[] = { | |
25811 | (char *) "self",(char *) "item", NULL | |
25812 | }; | |
25813 | ||
25814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
25815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25816 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25817 | if (arg2 == NULL) { | |
25818 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25819 | } | |
25820 | { | |
25821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25822 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
25823 | ||
25824 | wxPyEndAllowThreads(__tstate); | |
25825 | if (PyErr_Occurred()) SWIG_fail; | |
25826 | } | |
25827 | Py_INCREF(Py_None); resultobj = Py_None; | |
25828 | return resultobj; | |
25829 | fail: | |
25830 | return NULL; | |
25831 | } | |
25832 | ||
25833 | ||
25834 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25835 | PyObject *resultobj; | |
25836 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25837 | wxTextCtrl *result; | |
25838 | PyObject * obj0 = 0 ; | |
25839 | char *kwnames[] = { | |
25840 | (char *) "self", NULL | |
25841 | }; | |
25842 | ||
25843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
25844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25845 | { | |
25846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25847 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
25848 | ||
25849 | wxPyEndAllowThreads(__tstate); | |
25850 | if (PyErr_Occurred()) SWIG_fail; | |
25851 | } | |
25852 | { | |
25853 | resultobj = wxPyMake_wxObject(result); | |
25854 | } | |
25855 | return resultobj; | |
25856 | fail: | |
25857 | return NULL; | |
25858 | } | |
25859 | ||
25860 | ||
25861 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25862 | PyObject *resultobj; | |
25863 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25864 | wxTreeItemId *arg2 = 0 ; | |
25865 | PyObject * obj0 = 0 ; | |
25866 | PyObject * obj1 = 0 ; | |
25867 | char *kwnames[] = { | |
25868 | (char *) "self",(char *) "item", NULL | |
25869 | }; | |
25870 | ||
25871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
25872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25873 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25874 | if (arg2 == NULL) { | |
25875 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25876 | } | |
25877 | { | |
25878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25879 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
25880 | ||
25881 | wxPyEndAllowThreads(__tstate); | |
25882 | if (PyErr_Occurred()) SWIG_fail; | |
25883 | } | |
25884 | Py_INCREF(Py_None); resultobj = Py_None; | |
25885 | return resultobj; | |
25886 | fail: | |
25887 | return NULL; | |
25888 | } | |
25889 | ||
25890 | ||
25891 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25892 | PyObject *resultobj; | |
25893 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25894 | wxPoint *arg2 = 0 ; | |
25895 | int *arg3 = 0 ; | |
25896 | wxTreeItemId result; | |
25897 | wxPoint temp2 ; | |
25898 | int temp3 ; | |
25899 | PyObject * obj0 = 0 ; | |
25900 | PyObject * obj1 = 0 ; | |
25901 | char *kwnames[] = { | |
25902 | (char *) "self",(char *) "point", NULL | |
25903 | }; | |
25904 | ||
25905 | arg3 = &temp3; | |
25906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
25907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25908 | { | |
25909 | arg2 = &temp2; | |
25910 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25911 | } | |
25912 | { | |
25913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25914 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
25915 | ||
25916 | wxPyEndAllowThreads(__tstate); | |
25917 | if (PyErr_Occurred()) SWIG_fail; | |
25918 | } | |
25919 | { | |
25920 | wxTreeItemId * resultptr; | |
25921 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25922 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25923 | } | |
25924 | { | |
25925 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25926 | resultobj = t_output_helper(resultobj,o); | |
25927 | } | |
25928 | return resultobj; | |
25929 | fail: | |
25930 | return NULL; | |
25931 | } | |
25932 | ||
25933 | ||
25934 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25935 | PyObject *resultobj; | |
25936 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25937 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25938 | bool arg3 = (bool) False ; |
d14a1e28 RD |
25939 | PyObject *result; |
25940 | PyObject * obj0 = 0 ; | |
25941 | PyObject * obj1 = 0 ; | |
25942 | PyObject * obj2 = 0 ; | |
25943 | char *kwnames[] = { | |
25944 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
25945 | }; | |
25946 | ||
25947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
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 | if (obj2) { | |
2dbef272 | 25954 | { |
8edf1c75 | 25955 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
25956 | if (PyErr_Occurred()) SWIG_fail; |
25957 | } | |
d14a1e28 RD |
25958 | } |
25959 | { | |
25960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25961 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25962 | ||
25963 | wxPyEndAllowThreads(__tstate); | |
25964 | if (PyErr_Occurred()) SWIG_fail; | |
25965 | } | |
25966 | resultobj = result; | |
25967 | return resultobj; | |
25968 | fail: | |
25969 | return NULL; | |
25970 | } | |
25971 | ||
25972 | ||
25973 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
25974 | PyObject *obj; | |
25975 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25976 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
25977 | Py_INCREF(obj); | |
25978 | return Py_BuildValue((char *)""); | |
25979 | } | |
8edf1c75 | 25980 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
cbd72d4f RD |
25981 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
25982 | return 1; | |
25983 | } | |
25984 | ||
25985 | ||
25986 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
25987 | PyObject *pyobj; | |
25988 | ||
25989 | { | |
25990 | #if wxUSE_UNICODE | |
25991 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
25992 | #else | |
25993 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
25994 | #endif | |
25995 | } | |
25996 | return pyobj; | |
25997 | } | |
25998 | ||
25999 | ||
d14a1e28 RD |
26000 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
26001 | PyObject *resultobj; | |
26002 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 26003 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
26004 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
26005 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
26006 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
26007 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26008 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26009 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26010 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
26011 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
26012 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
26013 | int arg8 = (int) 0 ; | |
cbd72d4f | 26014 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
26015 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
26016 | wxGenericDirCtrl *result; | |
423f194a | 26017 | bool temp3 = False ; |
d14a1e28 RD |
26018 | wxPoint temp4 ; |
26019 | wxSize temp5 ; | |
423f194a RD |
26020 | bool temp7 = False ; |
26021 | bool temp9 = False ; | |
d14a1e28 | 26022 | PyObject * obj0 = 0 ; |
8edf1c75 | 26023 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26024 | PyObject * obj2 = 0 ; |
26025 | PyObject * obj3 = 0 ; | |
26026 | PyObject * obj4 = 0 ; | |
8edf1c75 | 26027 | PyObject * obj5 = 0 ; |
d14a1e28 | 26028 | PyObject * obj6 = 0 ; |
8edf1c75 | 26029 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
26030 | PyObject * obj8 = 0 ; |
26031 | char *kwnames[] = { | |
26032 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
26033 | }; | |
26034 | ||
8edf1c75 | 26035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 26036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26037 | if (obj1) { |
26038 | { | |
26039 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
26040 | if (PyErr_Occurred()) SWIG_fail; | |
26041 | } | |
26042 | } | |
d14a1e28 RD |
26043 | if (obj2) { |
26044 | { | |
26045 | arg3 = wxString_in_helper(obj2); | |
26046 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26047 | temp3 = True; |
d14a1e28 RD |
26048 | } |
26049 | } | |
26050 | if (obj3) { | |
26051 | { | |
26052 | arg4 = &temp4; | |
26053 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26054 | } | |
26055 | } | |
26056 | if (obj4) { | |
26057 | { | |
26058 | arg5 = &temp5; | |
26059 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26060 | } | |
26061 | } | |
8edf1c75 RD |
26062 | if (obj5) { |
26063 | { | |
26064 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
26065 | if (PyErr_Occurred()) SWIG_fail; | |
26066 | } | |
26067 | } | |
d14a1e28 RD |
26068 | if (obj6) { |
26069 | { | |
26070 | arg7 = wxString_in_helper(obj6); | |
26071 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 26072 | temp7 = True; |
d14a1e28 RD |
26073 | } |
26074 | } | |
8edf1c75 RD |
26075 | if (obj7) { |
26076 | { | |
26077 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
26078 | if (PyErr_Occurred()) SWIG_fail; | |
26079 | } | |
26080 | } | |
d14a1e28 RD |
26081 | if (obj8) { |
26082 | { | |
26083 | arg9 = wxString_in_helper(obj8); | |
26084 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 26085 | temp9 = True; |
d14a1e28 RD |
26086 | } |
26087 | } | |
26088 | { | |
26089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26090 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
26091 | ||
26092 | wxPyEndAllowThreads(__tstate); | |
26093 | if (PyErr_Occurred()) SWIG_fail; | |
26094 | } | |
26095 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
26096 | { | |
26097 | if (temp3) | |
26098 | delete arg3; | |
26099 | } | |
26100 | { | |
26101 | if (temp7) | |
26102 | delete arg7; | |
26103 | } | |
26104 | { | |
26105 | if (temp9) | |
26106 | delete arg9; | |
26107 | } | |
26108 | return resultobj; | |
26109 | fail: | |
26110 | { | |
26111 | if (temp3) | |
26112 | delete arg3; | |
26113 | } | |
26114 | { | |
26115 | if (temp7) | |
26116 | delete arg7; | |
26117 | } | |
26118 | { | |
26119 | if (temp9) | |
26120 | delete arg9; | |
26121 | } | |
26122 | return NULL; | |
26123 | } | |
26124 | ||
26125 | ||
26126 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26127 | PyObject *resultobj; | |
26128 | wxGenericDirCtrl *result; | |
26129 | char *kwnames[] = { | |
26130 | NULL | |
26131 | }; | |
26132 | ||
26133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
26134 | { | |
26135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26136 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
26137 | ||
26138 | wxPyEndAllowThreads(__tstate); | |
26139 | if (PyErr_Occurred()) SWIG_fail; | |
26140 | } | |
26141 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
26142 | return resultobj; | |
26143 | fail: | |
26144 | return NULL; | |
26145 | } | |
26146 | ||
26147 | ||
26148 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26149 | PyObject *resultobj; | |
26150 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26151 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 26152 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
26153 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
26154 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
26155 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
26156 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
26157 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
26158 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
26159 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
26160 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
26161 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
26162 | int arg9 = (int) 0 ; | |
cbd72d4f | 26163 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
26164 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
26165 | bool result; | |
423f194a | 26166 | bool temp4 = False ; |
d14a1e28 RD |
26167 | wxPoint temp5 ; |
26168 | wxSize temp6 ; | |
423f194a RD |
26169 | bool temp8 = False ; |
26170 | bool temp10 = False ; | |
d14a1e28 RD |
26171 | PyObject * obj0 = 0 ; |
26172 | PyObject * obj1 = 0 ; | |
8edf1c75 | 26173 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26174 | PyObject * obj3 = 0 ; |
26175 | PyObject * obj4 = 0 ; | |
26176 | PyObject * obj5 = 0 ; | |
8edf1c75 | 26177 | PyObject * obj6 = 0 ; |
d14a1e28 | 26178 | PyObject * obj7 = 0 ; |
8edf1c75 | 26179 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
26180 | PyObject * obj9 = 0 ; |
26181 | char *kwnames[] = { | |
26182 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
26183 | }; | |
26184 | ||
8edf1c75 | 26185 | 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 |
26186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26187 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
26188 | if (obj2) { |
26189 | { | |
26190 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
26191 | if (PyErr_Occurred()) SWIG_fail; | |
26192 | } | |
26193 | } | |
d14a1e28 RD |
26194 | if (obj3) { |
26195 | { | |
26196 | arg4 = wxString_in_helper(obj3); | |
26197 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 26198 | temp4 = True; |
d14a1e28 RD |
26199 | } |
26200 | } | |
26201 | if (obj4) { | |
26202 | { | |
26203 | arg5 = &temp5; | |
26204 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
26205 | } | |
26206 | } | |
26207 | if (obj5) { | |
26208 | { | |
26209 | arg6 = &temp6; | |
26210 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
26211 | } | |
26212 | } | |
8edf1c75 RD |
26213 | if (obj6) { |
26214 | { | |
26215 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
26216 | if (PyErr_Occurred()) SWIG_fail; | |
26217 | } | |
26218 | } | |
d14a1e28 RD |
26219 | if (obj7) { |
26220 | { | |
26221 | arg8 = wxString_in_helper(obj7); | |
26222 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 26223 | temp8 = True; |
d14a1e28 RD |
26224 | } |
26225 | } | |
8edf1c75 RD |
26226 | if (obj8) { |
26227 | { | |
26228 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
26229 | if (PyErr_Occurred()) SWIG_fail; | |
26230 | } | |
26231 | } | |
d14a1e28 RD |
26232 | if (obj9) { |
26233 | { | |
26234 | arg10 = wxString_in_helper(obj9); | |
26235 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 26236 | temp10 = True; |
d14a1e28 RD |
26237 | } |
26238 | } | |
26239 | { | |
26240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26241 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
26242 | ||
26243 | wxPyEndAllowThreads(__tstate); | |
26244 | if (PyErr_Occurred()) SWIG_fail; | |
26245 | } | |
02a34c4c | 26246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26247 | { |
26248 | if (temp4) | |
26249 | delete arg4; | |
26250 | } | |
26251 | { | |
26252 | if (temp8) | |
26253 | delete arg8; | |
26254 | } | |
26255 | { | |
26256 | if (temp10) | |
26257 | delete arg10; | |
26258 | } | |
26259 | return resultobj; | |
26260 | fail: | |
26261 | { | |
26262 | if (temp4) | |
26263 | delete arg4; | |
26264 | } | |
26265 | { | |
26266 | if (temp8) | |
26267 | delete arg8; | |
26268 | } | |
26269 | { | |
26270 | if (temp10) | |
26271 | delete arg10; | |
26272 | } | |
26273 | return NULL; | |
26274 | } | |
26275 | ||
26276 | ||
26277 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26278 | PyObject *resultobj; | |
26279 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26280 | wxString *arg2 = 0 ; | |
26281 | bool result; | |
423f194a | 26282 | bool temp2 = False ; |
d14a1e28 RD |
26283 | PyObject * obj0 = 0 ; |
26284 | PyObject * obj1 = 0 ; | |
26285 | char *kwnames[] = { | |
26286 | (char *) "self",(char *) "path", NULL | |
26287 | }; | |
26288 | ||
26289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
26290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26291 | { | |
26292 | arg2 = wxString_in_helper(obj1); | |
26293 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26294 | temp2 = True; |
d14a1e28 RD |
26295 | } |
26296 | { | |
26297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26298 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
26299 | ||
26300 | wxPyEndAllowThreads(__tstate); | |
26301 | if (PyErr_Occurred()) SWIG_fail; | |
26302 | } | |
02a34c4c | 26303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26304 | { |
26305 | if (temp2) | |
26306 | delete arg2; | |
26307 | } | |
26308 | return resultobj; | |
26309 | fail: | |
26310 | { | |
26311 | if (temp2) | |
26312 | delete arg2; | |
26313 | } | |
26314 | return NULL; | |
26315 | } | |
26316 | ||
26317 | ||
26318 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26319 | PyObject *resultobj; | |
26320 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26321 | wxString result; | |
26322 | PyObject * obj0 = 0 ; | |
26323 | char *kwnames[] = { | |
26324 | (char *) "self", NULL | |
26325 | }; | |
26326 | ||
26327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
26328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26329 | { | |
26330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26331 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
26332 | ||
26333 | wxPyEndAllowThreads(__tstate); | |
26334 | if (PyErr_Occurred()) SWIG_fail; | |
26335 | } | |
26336 | { | |
26337 | #if wxUSE_UNICODE | |
26338 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26339 | #else | |
26340 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26341 | #endif | |
26342 | } | |
26343 | return resultobj; | |
26344 | fail: | |
26345 | return NULL; | |
26346 | } | |
26347 | ||
26348 | ||
26349 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26350 | PyObject *resultobj; | |
26351 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26352 | wxString *arg2 = 0 ; | |
423f194a | 26353 | bool temp2 = False ; |
d14a1e28 RD |
26354 | PyObject * obj0 = 0 ; |
26355 | PyObject * obj1 = 0 ; | |
26356 | char *kwnames[] = { | |
26357 | (char *) "self",(char *) "path", NULL | |
26358 | }; | |
26359 | ||
26360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
26361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26362 | { | |
26363 | arg2 = wxString_in_helper(obj1); | |
26364 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26365 | temp2 = True; |
d14a1e28 RD |
26366 | } |
26367 | { | |
26368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26369 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
26370 | ||
26371 | wxPyEndAllowThreads(__tstate); | |
26372 | if (PyErr_Occurred()) SWIG_fail; | |
26373 | } | |
26374 | Py_INCREF(Py_None); resultobj = Py_None; | |
26375 | { | |
26376 | if (temp2) | |
26377 | delete arg2; | |
26378 | } | |
26379 | return resultobj; | |
26380 | fail: | |
26381 | { | |
26382 | if (temp2) | |
26383 | delete arg2; | |
26384 | } | |
26385 | return NULL; | |
26386 | } | |
26387 | ||
26388 | ||
26389 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26390 | PyObject *resultobj; | |
26391 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26392 | wxString result; | |
26393 | PyObject * obj0 = 0 ; | |
26394 | char *kwnames[] = { | |
26395 | (char *) "self", NULL | |
26396 | }; | |
26397 | ||
26398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
26399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26400 | { | |
26401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26402 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
26403 | ||
26404 | wxPyEndAllowThreads(__tstate); | |
26405 | if (PyErr_Occurred()) SWIG_fail; | |
26406 | } | |
26407 | { | |
26408 | #if wxUSE_UNICODE | |
26409 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26410 | #else | |
26411 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26412 | #endif | |
26413 | } | |
26414 | return resultobj; | |
26415 | fail: | |
26416 | return NULL; | |
26417 | } | |
26418 | ||
26419 | ||
26420 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26421 | PyObject *resultobj; | |
26422 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26423 | wxString result; | |
26424 | PyObject * obj0 = 0 ; | |
26425 | char *kwnames[] = { | |
26426 | (char *) "self", NULL | |
26427 | }; | |
26428 | ||
26429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
26430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26431 | { | |
26432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26433 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
26434 | ||
26435 | wxPyEndAllowThreads(__tstate); | |
26436 | if (PyErr_Occurred()) SWIG_fail; | |
26437 | } | |
26438 | { | |
26439 | #if wxUSE_UNICODE | |
26440 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26441 | #else | |
26442 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26443 | #endif | |
26444 | } | |
26445 | return resultobj; | |
26446 | fail: | |
26447 | return NULL; | |
26448 | } | |
26449 | ||
26450 | ||
26451 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26452 | PyObject *resultobj; | |
26453 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26454 | wxString *arg2 = 0 ; | |
423f194a | 26455 | bool temp2 = False ; |
d14a1e28 RD |
26456 | PyObject * obj0 = 0 ; |
26457 | PyObject * obj1 = 0 ; | |
26458 | char *kwnames[] = { | |
26459 | (char *) "self",(char *) "path", NULL | |
26460 | }; | |
26461 | ||
26462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
26463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26464 | { | |
26465 | arg2 = wxString_in_helper(obj1); | |
26466 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26467 | temp2 = True; |
d14a1e28 RD |
26468 | } |
26469 | { | |
26470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26471 | (arg1)->SetPath((wxString const &)*arg2); | |
26472 | ||
26473 | wxPyEndAllowThreads(__tstate); | |
26474 | if (PyErr_Occurred()) SWIG_fail; | |
26475 | } | |
26476 | Py_INCREF(Py_None); resultobj = Py_None; | |
26477 | { | |
26478 | if (temp2) | |
26479 | delete arg2; | |
26480 | } | |
26481 | return resultobj; | |
26482 | fail: | |
26483 | { | |
26484 | if (temp2) | |
26485 | delete arg2; | |
26486 | } | |
26487 | return NULL; | |
26488 | } | |
26489 | ||
26490 | ||
26491 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26492 | PyObject *resultobj; | |
26493 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26494 | bool arg2 ; | |
26495 | PyObject * obj0 = 0 ; | |
26496 | PyObject * obj1 = 0 ; | |
26497 | char *kwnames[] = { | |
26498 | (char *) "self",(char *) "show", NULL | |
26499 | }; | |
26500 | ||
26501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
26502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 26503 | { |
8edf1c75 | 26504 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
26505 | if (PyErr_Occurred()) SWIG_fail; |
26506 | } | |
d14a1e28 RD |
26507 | { |
26508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26509 | (arg1)->ShowHidden(arg2); | |
26510 | ||
26511 | wxPyEndAllowThreads(__tstate); | |
26512 | if (PyErr_Occurred()) SWIG_fail; | |
26513 | } | |
26514 | Py_INCREF(Py_None); resultobj = Py_None; | |
26515 | return resultobj; | |
26516 | fail: | |
26517 | return NULL; | |
26518 | } | |
26519 | ||
26520 | ||
26521 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26522 | PyObject *resultobj; | |
26523 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26524 | bool result; | |
26525 | PyObject * obj0 = 0 ; | |
26526 | char *kwnames[] = { | |
26527 | (char *) "self", NULL | |
26528 | }; | |
26529 | ||
26530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
26531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26532 | { | |
26533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26534 | result = (bool)(arg1)->GetShowHidden(); | |
26535 | ||
26536 | wxPyEndAllowThreads(__tstate); | |
26537 | if (PyErr_Occurred()) SWIG_fail; | |
26538 | } | |
02a34c4c | 26539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26540 | return resultobj; |
26541 | fail: | |
26542 | return NULL; | |
26543 | } | |
26544 | ||
26545 | ||
26546 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26547 | PyObject *resultobj; | |
26548 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26549 | wxString result; | |
26550 | PyObject * obj0 = 0 ; | |
26551 | char *kwnames[] = { | |
26552 | (char *) "self", NULL | |
26553 | }; | |
26554 | ||
26555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
26556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26557 | { | |
26558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26559 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
26560 | ||
26561 | wxPyEndAllowThreads(__tstate); | |
26562 | if (PyErr_Occurred()) SWIG_fail; | |
26563 | } | |
26564 | { | |
26565 | #if wxUSE_UNICODE | |
26566 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26567 | #else | |
26568 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26569 | #endif | |
26570 | } | |
26571 | return resultobj; | |
26572 | fail: | |
26573 | return NULL; | |
26574 | } | |
26575 | ||
26576 | ||
26577 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26578 | PyObject *resultobj; | |
26579 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26580 | wxString *arg2 = 0 ; | |
423f194a | 26581 | bool temp2 = False ; |
d14a1e28 RD |
26582 | PyObject * obj0 = 0 ; |
26583 | PyObject * obj1 = 0 ; | |
26584 | char *kwnames[] = { | |
26585 | (char *) "self",(char *) "filter", NULL | |
26586 | }; | |
26587 | ||
26588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
26589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26590 | { | |
26591 | arg2 = wxString_in_helper(obj1); | |
26592 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26593 | temp2 = True; |
d14a1e28 RD |
26594 | } |
26595 | { | |
26596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26597 | (arg1)->SetFilter((wxString const &)*arg2); | |
26598 | ||
26599 | wxPyEndAllowThreads(__tstate); | |
26600 | if (PyErr_Occurred()) SWIG_fail; | |
26601 | } | |
26602 | Py_INCREF(Py_None); resultobj = Py_None; | |
26603 | { | |
26604 | if (temp2) | |
26605 | delete arg2; | |
26606 | } | |
26607 | return resultobj; | |
26608 | fail: | |
26609 | { | |
26610 | if (temp2) | |
26611 | delete arg2; | |
26612 | } | |
26613 | return NULL; | |
26614 | } | |
26615 | ||
26616 | ||
26617 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26618 | PyObject *resultobj; | |
26619 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26620 | int result; | |
26621 | PyObject * obj0 = 0 ; | |
26622 | char *kwnames[] = { | |
26623 | (char *) "self", NULL | |
26624 | }; | |
26625 | ||
26626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
26627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26628 | { | |
26629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26630 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
26631 | ||
26632 | wxPyEndAllowThreads(__tstate); | |
26633 | if (PyErr_Occurred()) SWIG_fail; | |
26634 | } | |
8edf1c75 | 26635 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
26636 | return resultobj; |
26637 | fail: | |
26638 | return NULL; | |
26639 | } | |
26640 | ||
26641 | ||
26642 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26643 | PyObject *resultobj; | |
26644 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26645 | int arg2 ; | |
26646 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26647 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26648 | char *kwnames[] = { |
26649 | (char *) "self",(char *) "n", NULL | |
26650 | }; | |
26651 | ||
8edf1c75 | 26652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 26653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26654 | { |
26655 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26656 | if (PyErr_Occurred()) SWIG_fail; | |
26657 | } | |
d14a1e28 RD |
26658 | { |
26659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26660 | (arg1)->SetFilterIndex(arg2); | |
26661 | ||
26662 | wxPyEndAllowThreads(__tstate); | |
26663 | if (PyErr_Occurred()) SWIG_fail; | |
26664 | } | |
26665 | Py_INCREF(Py_None); resultobj = Py_None; | |
26666 | return resultobj; | |
26667 | fail: | |
26668 | return NULL; | |
26669 | } | |
26670 | ||
26671 | ||
26672 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26673 | PyObject *resultobj; | |
26674 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26675 | wxTreeItemId result; | |
26676 | PyObject * obj0 = 0 ; | |
26677 | char *kwnames[] = { | |
26678 | (char *) "self", NULL | |
26679 | }; | |
26680 | ||
26681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
26682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26683 | { | |
26684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26685 | result = (arg1)->GetRootId(); | |
26686 | ||
26687 | wxPyEndAllowThreads(__tstate); | |
26688 | if (PyErr_Occurred()) SWIG_fail; | |
26689 | } | |
26690 | { | |
26691 | wxTreeItemId * resultptr; | |
26692 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26693 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
26694 | } | |
26695 | return resultobj; | |
26696 | fail: | |
26697 | return NULL; | |
26698 | } | |
26699 | ||
26700 | ||
26701 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26702 | PyObject *resultobj; | |
26703 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
cbd72d4f | 26704 | wxPyTreeCtrl *result; |
d14a1e28 RD |
26705 | PyObject * obj0 = 0 ; |
26706 | char *kwnames[] = { | |
26707 | (char *) "self", NULL | |
26708 | }; | |
26709 | ||
26710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
26711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26712 | { | |
26713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
cbd72d4f | 26714 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
26715 | |
26716 | wxPyEndAllowThreads(__tstate); | |
26717 | if (PyErr_Occurred()) SWIG_fail; | |
26718 | } | |
26719 | { | |
26720 | resultobj = wxPyMake_wxObject(result); | |
26721 | } | |
26722 | return resultobj; | |
26723 | fail: | |
26724 | return NULL; | |
26725 | } | |
26726 | ||
26727 | ||
26728 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26729 | PyObject *resultobj; | |
26730 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26731 | wxDirFilterListCtrl *result; | |
26732 | PyObject * obj0 = 0 ; | |
26733 | char *kwnames[] = { | |
26734 | (char *) "self", NULL | |
26735 | }; | |
26736 | ||
26737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
26738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26739 | { | |
26740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26741 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
26742 | ||
26743 | wxPyEndAllowThreads(__tstate); | |
26744 | if (PyErr_Occurred()) SWIG_fail; | |
26745 | } | |
26746 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
26747 | return resultobj; | |
26748 | fail: | |
26749 | return NULL; | |
26750 | } | |
26751 | ||
26752 | ||
26753 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26754 | PyObject *resultobj; | |
26755 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26756 | wxTreeItemId arg2 ; | |
26757 | wxString *arg3 = 0 ; | |
26758 | bool *arg4 = 0 ; | |
26759 | wxTreeItemId result; | |
26760 | wxTreeItemId *argp2 ; | |
423f194a | 26761 | bool temp3 = False ; |
d14a1e28 RD |
26762 | bool temp4 ; |
26763 | PyObject * obj0 = 0 ; | |
26764 | PyObject * obj1 = 0 ; | |
26765 | PyObject * obj2 = 0 ; | |
26766 | char *kwnames[] = { | |
26767 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
26768 | }; | |
26769 | ||
26770 | arg4 = &temp4; | |
26771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26773 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
26774 | arg2 = *argp2; | |
26775 | { | |
26776 | arg3 = wxString_in_helper(obj2); | |
26777 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26778 | temp3 = True; |
d14a1e28 RD |
26779 | } |
26780 | { | |
26781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26782 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
26783 | ||
26784 | wxPyEndAllowThreads(__tstate); | |
26785 | if (PyErr_Occurred()) SWIG_fail; | |
26786 | } | |
26787 | { | |
26788 | wxTreeItemId * resultptr; | |
26789 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26790 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
26791 | } | |
26792 | { | |
26793 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26794 | resultobj = t_output_helper(resultobj,o); | |
26795 | } | |
26796 | { | |
26797 | if (temp3) | |
26798 | delete arg3; | |
26799 | } | |
26800 | return resultobj; | |
26801 | fail: | |
26802 | { | |
26803 | if (temp3) | |
26804 | delete arg3; | |
26805 | } | |
26806 | return NULL; | |
26807 | } | |
26808 | ||
26809 | ||
26810 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26811 | PyObject *resultobj; | |
26812 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26813 | PyObject * obj0 = 0 ; | |
26814 | char *kwnames[] = { | |
26815 | (char *) "self", NULL | |
26816 | }; | |
26817 | ||
26818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
26819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26820 | { | |
26821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26822 | (arg1)->DoResize(); | |
26823 | ||
26824 | wxPyEndAllowThreads(__tstate); | |
26825 | if (PyErr_Occurred()) SWIG_fail; | |
26826 | } | |
26827 | Py_INCREF(Py_None); resultobj = Py_None; | |
26828 | return resultobj; | |
26829 | fail: | |
26830 | return NULL; | |
26831 | } | |
26832 | ||
26833 | ||
26834 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26835 | PyObject *resultobj; | |
26836 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26837 | PyObject * obj0 = 0 ; | |
26838 | char *kwnames[] = { | |
26839 | (char *) "self", NULL | |
26840 | }; | |
26841 | ||
26842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
26843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26844 | { | |
26845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26846 | (arg1)->ReCreateTree(); | |
26847 | ||
26848 | wxPyEndAllowThreads(__tstate); | |
26849 | if (PyErr_Occurred()) SWIG_fail; | |
26850 | } | |
26851 | Py_INCREF(Py_None); resultobj = Py_None; | |
26852 | return resultobj; | |
26853 | fail: | |
26854 | return NULL; | |
26855 | } | |
26856 | ||
26857 | ||
26858 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
26859 | PyObject *obj; | |
26860 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26861 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
26862 | Py_INCREF(obj); | |
26863 | return Py_BuildValue((char *)""); | |
26864 | } | |
26865 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26866 | PyObject *resultobj; | |
26867 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 26868 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
26869 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
26870 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
26871 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
26872 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
26873 | long arg5 = (long) 0 ; | |
26874 | wxDirFilterListCtrl *result; | |
26875 | wxPoint temp3 ; | |
26876 | wxSize temp4 ; | |
26877 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26878 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26879 | PyObject * obj2 = 0 ; |
26880 | PyObject * obj3 = 0 ; | |
8edf1c75 | 26881 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
26882 | char *kwnames[] = { |
26883 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
26884 | }; | |
26885 | ||
8edf1c75 | 26886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 26887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26888 | if (obj1) { |
26889 | { | |
26890 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
26891 | if (PyErr_Occurred()) SWIG_fail; | |
26892 | } | |
26893 | } | |
d14a1e28 RD |
26894 | if (obj2) { |
26895 | { | |
26896 | arg3 = &temp3; | |
26897 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26898 | } | |
26899 | } | |
26900 | if (obj3) { | |
26901 | { | |
26902 | arg4 = &temp4; | |
26903 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
26904 | } | |
26905 | } | |
8edf1c75 RD |
26906 | if (obj4) { |
26907 | { | |
26908 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
26909 | if (PyErr_Occurred()) SWIG_fail; | |
26910 | } | |
26911 | } | |
d14a1e28 RD |
26912 | { |
26913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26914 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
26915 | ||
26916 | wxPyEndAllowThreads(__tstate); | |
26917 | if (PyErr_Occurred()) SWIG_fail; | |
26918 | } | |
26919 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
26920 | return resultobj; | |
26921 | fail: | |
26922 | return NULL; | |
26923 | } | |
26924 | ||
26925 | ||
26926 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26927 | PyObject *resultobj; | |
26928 | wxDirFilterListCtrl *result; | |
26929 | char *kwnames[] = { | |
26930 | NULL | |
26931 | }; | |
26932 | ||
26933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
26934 | { | |
26935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26936 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
26937 | ||
26938 | wxPyEndAllowThreads(__tstate); | |
26939 | if (PyErr_Occurred()) SWIG_fail; | |
26940 | } | |
26941 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
26942 | return resultobj; | |
26943 | fail: | |
26944 | return NULL; | |
26945 | } | |
26946 | ||
26947 | ||
26948 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26949 | PyObject *resultobj; | |
26950 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
26951 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 26952 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
26953 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
26954 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26955 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26956 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26957 | long arg6 = (long) 0 ; | |
26958 | bool result; | |
26959 | wxPoint temp4 ; | |
26960 | wxSize temp5 ; | |
26961 | PyObject * obj0 = 0 ; | |
26962 | PyObject * obj1 = 0 ; | |
8edf1c75 | 26963 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26964 | PyObject * obj3 = 0 ; |
26965 | PyObject * obj4 = 0 ; | |
8edf1c75 | 26966 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
26967 | char *kwnames[] = { |
26968 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
26969 | }; | |
26970 | ||
8edf1c75 | 26971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
26972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26973 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
26974 | if (obj2) { |
26975 | { | |
26976 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
26977 | if (PyErr_Occurred()) SWIG_fail; | |
26978 | } | |
26979 | } | |
d14a1e28 RD |
26980 | if (obj3) { |
26981 | { | |
26982 | arg4 = &temp4; | |
26983 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26984 | } | |
26985 | } | |
26986 | if (obj4) { | |
26987 | { | |
26988 | arg5 = &temp5; | |
26989 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26990 | } | |
26991 | } | |
8edf1c75 RD |
26992 | if (obj5) { |
26993 | { | |
26994 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
26995 | if (PyErr_Occurred()) SWIG_fail; | |
26996 | } | |
26997 | } | |
d14a1e28 RD |
26998 | { |
26999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27000 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
27001 | ||
27002 | wxPyEndAllowThreads(__tstate); | |
27003 | if (PyErr_Occurred()) SWIG_fail; | |
27004 | } | |
02a34c4c | 27005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27006 | return resultobj; |
27007 | fail: | |
27008 | return NULL; | |
27009 | } | |
27010 | ||
27011 | ||
27012 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27013 | PyObject *resultobj; | |
27014 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
27015 | wxString *arg2 = 0 ; | |
27016 | int arg3 ; | |
423f194a | 27017 | bool temp2 = False ; |
d14a1e28 RD |
27018 | PyObject * obj0 = 0 ; |
27019 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27020 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27021 | char *kwnames[] = { |
27022 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
27023 | }; | |
27024 | ||
8edf1c75 | 27025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
27026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
27027 | { | |
27028 | arg2 = wxString_in_helper(obj1); | |
27029 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27030 | temp2 = True; |
d14a1e28 | 27031 | } |
8edf1c75 RD |
27032 | { |
27033 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27034 | if (PyErr_Occurred()) SWIG_fail; | |
27035 | } | |
d14a1e28 RD |
27036 | { |
27037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27038 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
27039 | ||
27040 | wxPyEndAllowThreads(__tstate); | |
27041 | if (PyErr_Occurred()) SWIG_fail; | |
27042 | } | |
27043 | Py_INCREF(Py_None); resultobj = Py_None; | |
27044 | { | |
27045 | if (temp2) | |
27046 | delete arg2; | |
27047 | } | |
27048 | return resultobj; | |
27049 | fail: | |
27050 | { | |
27051 | if (temp2) | |
27052 | delete arg2; | |
27053 | } | |
27054 | return NULL; | |
27055 | } | |
27056 | ||
27057 | ||
27058 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
27059 | PyObject *obj; | |
27060 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27061 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
27062 | Py_INCREF(obj); | |
27063 | return Py_BuildValue((char *)""); | |
27064 | } | |
27065 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27066 | PyObject *resultobj; | |
27067 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 27068 | int arg2 ; |
d14a1e28 RD |
27069 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27070 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27071 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27072 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27073 | long arg5 = (long) 0 ; | |
27074 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
27075 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
27076 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
27077 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27078 | wxPyControl *result; | |
27079 | wxPoint temp3 ; | |
27080 | wxSize temp4 ; | |
423f194a | 27081 | bool temp7 = False ; |
d14a1e28 | 27082 | PyObject * obj0 = 0 ; |
8edf1c75 | 27083 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27084 | PyObject * obj2 = 0 ; |
27085 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27086 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
27087 | PyObject * obj5 = 0 ; |
27088 | PyObject * obj6 = 0 ; | |
27089 | char *kwnames[] = { | |
27090 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
27091 | }; | |
27092 | ||
8edf1c75 | 27093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 27094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27095 | { |
27096 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
27097 | if (PyErr_Occurred()) SWIG_fail; | |
27098 | } | |
d14a1e28 RD |
27099 | if (obj2) { |
27100 | { | |
27101 | arg3 = &temp3; | |
27102 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27103 | } | |
27104 | } | |
27105 | if (obj3) { | |
27106 | { | |
27107 | arg4 = &temp4; | |
27108 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27109 | } | |
27110 | } | |
8edf1c75 RD |
27111 | if (obj4) { |
27112 | { | |
27113 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
27114 | if (PyErr_Occurred()) SWIG_fail; | |
27115 | } | |
27116 | } | |
d14a1e28 RD |
27117 | if (obj5) { |
27118 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27119 | if (arg6 == NULL) { | |
27120 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
27121 | } | |
27122 | } | |
27123 | if (obj6) { | |
27124 | { | |
27125 | arg7 = wxString_in_helper(obj6); | |
27126 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 27127 | temp7 = True; |
d14a1e28 RD |
27128 | } |
27129 | } | |
27130 | { | |
27131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27132 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
27133 | ||
27134 | wxPyEndAllowThreads(__tstate); | |
27135 | if (PyErr_Occurred()) SWIG_fail; | |
27136 | } | |
27137 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControl, 1); | |
27138 | { | |
27139 | if (temp7) | |
27140 | delete arg7; | |
27141 | } | |
27142 | return resultobj; | |
27143 | fail: | |
27144 | { | |
27145 | if (temp7) | |
27146 | delete arg7; | |
27147 | } | |
27148 | return NULL; | |
27149 | } | |
27150 | ||
27151 | ||
27152 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27153 | PyObject *resultobj; | |
27154 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27155 | PyObject *arg2 = (PyObject *) 0 ; | |
27156 | PyObject *arg3 = (PyObject *) 0 ; | |
27157 | PyObject * obj0 = 0 ; | |
27158 | PyObject * obj1 = 0 ; | |
27159 | PyObject * obj2 = 0 ; | |
27160 | char *kwnames[] = { | |
27161 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27162 | }; | |
27163 | ||
27164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27166 | arg2 = obj1; | |
27167 | arg3 = obj2; | |
27168 | { | |
27169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27170 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27171 | ||
27172 | wxPyEndAllowThreads(__tstate); | |
27173 | if (PyErr_Occurred()) SWIG_fail; | |
27174 | } | |
27175 | Py_INCREF(Py_None); resultobj = Py_None; | |
27176 | return resultobj; | |
27177 | fail: | |
27178 | return NULL; | |
27179 | } | |
27180 | ||
27181 | ||
27182 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27183 | PyObject *resultobj; | |
27184 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27185 | int arg2 ; | |
27186 | int arg3 ; | |
27187 | int arg4 ; | |
27188 | int arg5 ; | |
27189 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27190 | PyObject * obj1 = 0 ; |
27191 | PyObject * obj2 = 0 ; | |
27192 | PyObject * obj3 = 0 ; | |
27193 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27194 | char *kwnames[] = { |
27195 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
27196 | }; | |
27197 | ||
8edf1c75 | 27198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27200 | { |
27201 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27202 | if (PyErr_Occurred()) SWIG_fail; | |
27203 | } | |
27204 | { | |
27205 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27206 | if (PyErr_Occurred()) SWIG_fail; | |
27207 | } | |
27208 | { | |
27209 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
27210 | if (PyErr_Occurred()) SWIG_fail; | |
27211 | } | |
27212 | { | |
27213 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
27214 | if (PyErr_Occurred()) SWIG_fail; | |
27215 | } | |
d14a1e28 RD |
27216 | { |
27217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27218 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
27219 | ||
27220 | wxPyEndAllowThreads(__tstate); | |
27221 | if (PyErr_Occurred()) SWIG_fail; | |
27222 | } | |
27223 | Py_INCREF(Py_None); resultobj = Py_None; | |
27224 | return resultobj; | |
27225 | fail: | |
27226 | return NULL; | |
27227 | } | |
27228 | ||
27229 | ||
27230 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27231 | PyObject *resultobj; | |
27232 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27233 | int arg2 ; | |
27234 | int arg3 ; | |
27235 | int arg4 ; | |
27236 | int arg5 ; | |
27237 | int arg6 = (int) wxSIZE_AUTO ; | |
27238 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27239 | PyObject * obj1 = 0 ; |
27240 | PyObject * obj2 = 0 ; | |
27241 | PyObject * obj3 = 0 ; | |
27242 | PyObject * obj4 = 0 ; | |
27243 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
27244 | char *kwnames[] = { |
27245 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
27246 | }; | |
27247 | ||
8edf1c75 | 27248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 27249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27250 | { |
27251 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27252 | if (PyErr_Occurred()) SWIG_fail; | |
27253 | } | |
27254 | { | |
27255 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27256 | if (PyErr_Occurred()) SWIG_fail; | |
27257 | } | |
27258 | { | |
27259 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
27260 | if (PyErr_Occurred()) SWIG_fail; | |
27261 | } | |
27262 | { | |
27263 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
27264 | if (PyErr_Occurred()) SWIG_fail; | |
27265 | } | |
27266 | if (obj5) { | |
27267 | { | |
27268 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
27269 | if (PyErr_Occurred()) SWIG_fail; | |
27270 | } | |
27271 | } | |
d14a1e28 RD |
27272 | { |
27273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27274 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
27275 | ||
27276 | wxPyEndAllowThreads(__tstate); | |
27277 | if (PyErr_Occurred()) SWIG_fail; | |
27278 | } | |
27279 | Py_INCREF(Py_None); resultobj = Py_None; | |
27280 | return resultobj; | |
27281 | fail: | |
27282 | return NULL; | |
27283 | } | |
27284 | ||
27285 | ||
27286 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27287 | PyObject *resultobj; | |
27288 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27289 | int arg2 ; | |
27290 | int arg3 ; | |
27291 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27292 | PyObject * obj1 = 0 ; |
27293 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27294 | char *kwnames[] = { |
27295 | (char *) "self",(char *) "width",(char *) "height", NULL | |
27296 | }; | |
27297 | ||
8edf1c75 | 27298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 27299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27300 | { |
27301 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27302 | if (PyErr_Occurred()) SWIG_fail; | |
27303 | } | |
27304 | { | |
27305 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27306 | if (PyErr_Occurred()) SWIG_fail; | |
27307 | } | |
d14a1e28 RD |
27308 | { |
27309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27310 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
27311 | ||
27312 | wxPyEndAllowThreads(__tstate); | |
27313 | if (PyErr_Occurred()) SWIG_fail; | |
27314 | } | |
27315 | Py_INCREF(Py_None); resultobj = Py_None; | |
27316 | return resultobj; | |
27317 | fail: | |
27318 | return NULL; | |
27319 | } | |
27320 | ||
27321 | ||
27322 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27323 | PyObject *resultobj; | |
27324 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27325 | int arg2 ; | |
27326 | int arg3 ; | |
27327 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27328 | PyObject * obj1 = 0 ; |
27329 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27330 | char *kwnames[] = { |
27331 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27332 | }; | |
27333 | ||
8edf1c75 | 27334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 27335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27336 | { |
27337 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27338 | if (PyErr_Occurred()) SWIG_fail; | |
27339 | } | |
27340 | { | |
27341 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27342 | if (PyErr_Occurred()) SWIG_fail; | |
27343 | } | |
d14a1e28 RD |
27344 | { |
27345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27346 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
27347 | ||
27348 | wxPyEndAllowThreads(__tstate); | |
27349 | if (PyErr_Occurred()) SWIG_fail; | |
27350 | } | |
27351 | Py_INCREF(Py_None); resultobj = Py_None; | |
27352 | return resultobj; | |
27353 | fail: | |
27354 | return NULL; | |
27355 | } | |
27356 | ||
27357 | ||
27358 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27359 | PyObject *resultobj; | |
27360 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27361 | int *arg2 = (int *) 0 ; | |
27362 | int *arg3 = (int *) 0 ; | |
27363 | int temp2 ; | |
27364 | int temp3 ; | |
27365 | PyObject * obj0 = 0 ; | |
27366 | char *kwnames[] = { | |
27367 | (char *) "self", NULL | |
27368 | }; | |
27369 | ||
27370 | arg2 = &temp2; | |
27371 | arg3 = &temp3; | |
27372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
27373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27374 | { | |
27375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27376 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
27377 | ||
27378 | wxPyEndAllowThreads(__tstate); | |
27379 | if (PyErr_Occurred()) SWIG_fail; | |
27380 | } | |
27381 | Py_INCREF(Py_None); resultobj = Py_None; | |
27382 | { | |
27383 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27384 | resultobj = t_output_helper(resultobj,o); | |
27385 | } | |
27386 | { | |
27387 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27388 | resultobj = t_output_helper(resultobj,o); | |
27389 | } | |
27390 | return resultobj; | |
27391 | fail: | |
27392 | return NULL; | |
27393 | } | |
27394 | ||
27395 | ||
27396 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27397 | PyObject *resultobj; | |
27398 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27399 | int *arg2 = (int *) 0 ; | |
27400 | int *arg3 = (int *) 0 ; | |
27401 | int temp2 ; | |
27402 | int temp3 ; | |
27403 | PyObject * obj0 = 0 ; | |
27404 | char *kwnames[] = { | |
27405 | (char *) "self", NULL | |
27406 | }; | |
27407 | ||
27408 | arg2 = &temp2; | |
27409 | arg3 = &temp3; | |
27410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
27411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27412 | { | |
27413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27414 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
27415 | ||
27416 | wxPyEndAllowThreads(__tstate); | |
27417 | if (PyErr_Occurred()) SWIG_fail; | |
27418 | } | |
27419 | Py_INCREF(Py_None); resultobj = Py_None; | |
27420 | { | |
27421 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27422 | resultobj = t_output_helper(resultobj,o); | |
27423 | } | |
27424 | { | |
27425 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27426 | resultobj = t_output_helper(resultobj,o); | |
27427 | } | |
27428 | return resultobj; | |
27429 | fail: | |
27430 | return NULL; | |
27431 | } | |
27432 | ||
27433 | ||
27434 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27435 | PyObject *resultobj; | |
27436 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27437 | int *arg2 = (int *) 0 ; | |
27438 | int *arg3 = (int *) 0 ; | |
27439 | int temp2 ; | |
27440 | int temp3 ; | |
27441 | PyObject * obj0 = 0 ; | |
27442 | char *kwnames[] = { | |
27443 | (char *) "self", NULL | |
27444 | }; | |
27445 | ||
27446 | arg2 = &temp2; | |
27447 | arg3 = &temp3; | |
27448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
27449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27450 | { | |
27451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27452 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
27453 | ||
27454 | wxPyEndAllowThreads(__tstate); | |
27455 | if (PyErr_Occurred()) SWIG_fail; | |
27456 | } | |
27457 | Py_INCREF(Py_None); resultobj = Py_None; | |
27458 | { | |
27459 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27460 | resultobj = t_output_helper(resultobj,o); | |
27461 | } | |
27462 | { | |
27463 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27464 | resultobj = t_output_helper(resultobj,o); | |
27465 | } | |
27466 | return resultobj; | |
27467 | fail: | |
27468 | return NULL; | |
27469 | } | |
27470 | ||
27471 | ||
27472 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27473 | PyObject *resultobj; | |
27474 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27475 | wxSize result; | |
27476 | PyObject * obj0 = 0 ; | |
27477 | char *kwnames[] = { | |
27478 | (char *) "self", NULL | |
27479 | }; | |
27480 | ||
27481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
27482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27483 | { | |
27484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27485 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
27486 | ||
27487 | wxPyEndAllowThreads(__tstate); | |
27488 | if (PyErr_Occurred()) SWIG_fail; | |
27489 | } | |
27490 | { | |
27491 | wxSize * resultptr; | |
27492 | resultptr = new wxSize((wxSize &) result); | |
27493 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27494 | } | |
27495 | return resultobj; | |
27496 | fail: | |
27497 | return NULL; | |
27498 | } | |
27499 | ||
27500 | ||
27501 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27502 | PyObject *resultobj; | |
27503 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27504 | wxSize result; | |
27505 | PyObject * obj0 = 0 ; | |
27506 | char *kwnames[] = { | |
27507 | (char *) "self", NULL | |
27508 | }; | |
27509 | ||
27510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
27511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27512 | { | |
27513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27514 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
27515 | ||
27516 | wxPyEndAllowThreads(__tstate); | |
27517 | if (PyErr_Occurred()) SWIG_fail; | |
27518 | } | |
27519 | { | |
27520 | wxSize * resultptr; | |
27521 | resultptr = new wxSize((wxSize &) result); | |
27522 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27523 | } | |
27524 | return resultobj; | |
27525 | fail: | |
27526 | return NULL; | |
27527 | } | |
27528 | ||
27529 | ||
27530 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27531 | PyObject *resultobj; | |
27532 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27533 | PyObject * obj0 = 0 ; | |
27534 | char *kwnames[] = { | |
27535 | (char *) "self", NULL | |
27536 | }; | |
27537 | ||
27538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
27539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27540 | { | |
27541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27542 | (arg1)->base_InitDialog(); | |
27543 | ||
27544 | wxPyEndAllowThreads(__tstate); | |
27545 | if (PyErr_Occurred()) SWIG_fail; | |
27546 | } | |
27547 | Py_INCREF(Py_None); resultobj = Py_None; | |
27548 | return resultobj; | |
27549 | fail: | |
27550 | return NULL; | |
27551 | } | |
27552 | ||
27553 | ||
27554 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27555 | PyObject *resultobj; | |
27556 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27557 | bool result; | |
27558 | PyObject * obj0 = 0 ; | |
27559 | char *kwnames[] = { | |
27560 | (char *) "self", NULL | |
27561 | }; | |
27562 | ||
27563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
27564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27565 | { | |
27566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27567 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
27568 | ||
27569 | wxPyEndAllowThreads(__tstate); | |
27570 | if (PyErr_Occurred()) SWIG_fail; | |
27571 | } | |
02a34c4c | 27572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27573 | return resultobj; |
27574 | fail: | |
27575 | return NULL; | |
27576 | } | |
27577 | ||
27578 | ||
27579 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27580 | PyObject *resultobj; | |
27581 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27582 | bool result; | |
27583 | PyObject * obj0 = 0 ; | |
27584 | char *kwnames[] = { | |
27585 | (char *) "self", NULL | |
27586 | }; | |
27587 | ||
27588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
27589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27590 | { | |
27591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27592 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
27593 | ||
27594 | wxPyEndAllowThreads(__tstate); | |
27595 | if (PyErr_Occurred()) SWIG_fail; | |
27596 | } | |
02a34c4c | 27597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27598 | return resultobj; |
27599 | fail: | |
27600 | return NULL; | |
27601 | } | |
27602 | ||
27603 | ||
27604 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27605 | PyObject *resultobj; | |
27606 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27607 | bool result; | |
27608 | PyObject * obj0 = 0 ; | |
27609 | char *kwnames[] = { | |
27610 | (char *) "self", NULL | |
27611 | }; | |
27612 | ||
27613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
27614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27615 | { | |
27616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27617 | result = (bool)(arg1)->base_Validate(); | |
27618 | ||
27619 | wxPyEndAllowThreads(__tstate); | |
27620 | if (PyErr_Occurred()) SWIG_fail; | |
27621 | } | |
02a34c4c | 27622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27623 | return resultobj; |
27624 | fail: | |
27625 | return NULL; | |
27626 | } | |
27627 | ||
27628 | ||
27629 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27630 | PyObject *resultobj; | |
27631 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27632 | bool result; | |
27633 | PyObject * obj0 = 0 ; | |
27634 | char *kwnames[] = { | |
27635 | (char *) "self", NULL | |
27636 | }; | |
27637 | ||
27638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
27639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27640 | { | |
27641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27642 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
27643 | ||
27644 | wxPyEndAllowThreads(__tstate); | |
27645 | if (PyErr_Occurred()) SWIG_fail; | |
27646 | } | |
02a34c4c | 27647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27648 | return resultobj; |
27649 | fail: | |
27650 | return NULL; | |
27651 | } | |
27652 | ||
27653 | ||
27654 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27655 | PyObject *resultobj; | |
27656 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27657 | bool result; | |
27658 | PyObject * obj0 = 0 ; | |
27659 | char *kwnames[] = { | |
27660 | (char *) "self", NULL | |
27661 | }; | |
27662 | ||
27663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
27664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27665 | { | |
27666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27667 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
27668 | ||
27669 | wxPyEndAllowThreads(__tstate); | |
27670 | if (PyErr_Occurred()) SWIG_fail; | |
27671 | } | |
02a34c4c | 27672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27673 | return resultobj; |
27674 | fail: | |
27675 | return NULL; | |
27676 | } | |
27677 | ||
27678 | ||
27679 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27680 | PyObject *resultobj; | |
27681 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27682 | wxSize result; | |
27683 | PyObject * obj0 = 0 ; | |
27684 | char *kwnames[] = { | |
27685 | (char *) "self", NULL | |
27686 | }; | |
27687 | ||
27688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
27689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27690 | { | |
27691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27692 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
27693 | ||
27694 | wxPyEndAllowThreads(__tstate); | |
27695 | if (PyErr_Occurred()) SWIG_fail; | |
27696 | } | |
27697 | { | |
27698 | wxSize * resultptr; | |
27699 | resultptr = new wxSize((wxSize &) result); | |
27700 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27701 | } | |
27702 | return resultobj; | |
27703 | fail: | |
27704 | return NULL; | |
27705 | } | |
27706 | ||
27707 | ||
27708 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27709 | PyObject *resultobj; | |
27710 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27711 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27712 | PyObject * obj0 = 0 ; | |
27713 | PyObject * obj1 = 0 ; | |
27714 | char *kwnames[] = { | |
27715 | (char *) "self",(char *) "child", NULL | |
27716 | }; | |
27717 | ||
27718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
27719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27720 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27721 | { | |
27722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27723 | (arg1)->base_AddChild(arg2); | |
27724 | ||
27725 | wxPyEndAllowThreads(__tstate); | |
27726 | if (PyErr_Occurred()) SWIG_fail; | |
27727 | } | |
27728 | Py_INCREF(Py_None); resultobj = Py_None; | |
27729 | return resultobj; | |
27730 | fail: | |
27731 | return NULL; | |
27732 | } | |
27733 | ||
27734 | ||
27735 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27736 | PyObject *resultobj; | |
27737 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27738 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27739 | PyObject * obj0 = 0 ; | |
27740 | PyObject * obj1 = 0 ; | |
27741 | char *kwnames[] = { | |
27742 | (char *) "self",(char *) "child", NULL | |
27743 | }; | |
27744 | ||
27745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
27746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27747 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27748 | { | |
27749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27750 | (arg1)->base_RemoveChild(arg2); | |
27751 | ||
27752 | wxPyEndAllowThreads(__tstate); | |
27753 | if (PyErr_Occurred()) SWIG_fail; | |
27754 | } | |
27755 | Py_INCREF(Py_None); resultobj = Py_None; | |
27756 | return resultobj; | |
27757 | fail: | |
27758 | return NULL; | |
27759 | } | |
27760 | ||
27761 | ||
27762 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
27763 | PyObject *obj; | |
27764 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27765 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
27766 | Py_INCREF(obj); | |
27767 | return Py_BuildValue((char *)""); | |
27768 | } | |
27769 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27770 | PyObject *resultobj; | |
27771 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 27772 | int arg2 = (int) 0 ; |
d14a1e28 RD |
27773 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27774 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27775 | wxHelpEvent *result; | |
27776 | wxPoint temp3 ; | |
8edf1c75 RD |
27777 | PyObject * obj0 = 0 ; |
27778 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
27779 | PyObject * obj2 = 0 ; |
27780 | char *kwnames[] = { | |
27781 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
27782 | }; | |
27783 | ||
8edf1c75 RD |
27784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
27785 | if (obj0) { | |
27786 | { | |
27787 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
27788 | if (PyErr_Occurred()) SWIG_fail; | |
27789 | } | |
27790 | } | |
27791 | if (obj1) { | |
27792 | { | |
27793 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27794 | if (PyErr_Occurred()) SWIG_fail; | |
27795 | } | |
27796 | } | |
d14a1e28 RD |
27797 | if (obj2) { |
27798 | { | |
27799 | arg3 = &temp3; | |
27800 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27801 | } | |
27802 | } | |
27803 | { | |
27804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27805 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
27806 | ||
27807 | wxPyEndAllowThreads(__tstate); | |
27808 | if (PyErr_Occurred()) SWIG_fail; | |
27809 | } | |
27810 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpEvent, 1); | |
27811 | return resultobj; | |
27812 | fail: | |
27813 | return NULL; | |
27814 | } | |
27815 | ||
27816 | ||
27817 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27818 | PyObject *resultobj; | |
27819 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27820 | wxPoint *result; | |
27821 | PyObject * obj0 = 0 ; | |
27822 | char *kwnames[] = { | |
27823 | (char *) "self", NULL | |
27824 | }; | |
27825 | ||
27826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
27827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27828 | { | |
27829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27830 | { | |
27831 | wxPoint const &_result_ref = ((wxHelpEvent const *)arg1)->GetPosition(); | |
27832 | result = (wxPoint *) &_result_ref; | |
27833 | } | |
27834 | ||
27835 | wxPyEndAllowThreads(__tstate); | |
27836 | if (PyErr_Occurred()) SWIG_fail; | |
27837 | } | |
27838 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
27839 | return resultobj; | |
27840 | fail: | |
27841 | return NULL; | |
27842 | } | |
27843 | ||
27844 | ||
27845 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27846 | PyObject *resultobj; | |
27847 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27848 | wxPoint *arg2 = 0 ; | |
27849 | wxPoint temp2 ; | |
27850 | PyObject * obj0 = 0 ; | |
27851 | PyObject * obj1 = 0 ; | |
27852 | char *kwnames[] = { | |
27853 | (char *) "self",(char *) "pos", NULL | |
27854 | }; | |
27855 | ||
27856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
27857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27858 | { | |
27859 | arg2 = &temp2; | |
27860 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27861 | } | |
27862 | { | |
27863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27864 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
27865 | ||
27866 | wxPyEndAllowThreads(__tstate); | |
27867 | if (PyErr_Occurred()) SWIG_fail; | |
27868 | } | |
27869 | Py_INCREF(Py_None); resultobj = Py_None; | |
27870 | return resultobj; | |
27871 | fail: | |
27872 | return NULL; | |
27873 | } | |
27874 | ||
27875 | ||
27876 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27877 | PyObject *resultobj; | |
27878 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27879 | wxString *result; | |
27880 | PyObject * obj0 = 0 ; | |
27881 | char *kwnames[] = { | |
27882 | (char *) "self", NULL | |
27883 | }; | |
27884 | ||
27885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
27886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27887 | { | |
27888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27889 | { | |
27890 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
27891 | result = (wxString *) &_result_ref; | |
27892 | } | |
27893 | ||
27894 | wxPyEndAllowThreads(__tstate); | |
27895 | if (PyErr_Occurred()) SWIG_fail; | |
27896 | } | |
0f774bef RD |
27897 | { |
27898 | #if wxUSE_UNICODE | |
27899 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27900 | #else | |
27901 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27902 | #endif | |
27903 | } | |
d14a1e28 RD |
27904 | return resultobj; |
27905 | fail: | |
27906 | return NULL; | |
27907 | } | |
27908 | ||
27909 | ||
27910 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27911 | PyObject *resultobj; | |
27912 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27913 | wxString *arg2 = 0 ; | |
423f194a | 27914 | bool temp2 = False ; |
d14a1e28 RD |
27915 | PyObject * obj0 = 0 ; |
27916 | PyObject * obj1 = 0 ; | |
27917 | char *kwnames[] = { | |
27918 | (char *) "self",(char *) "link", NULL | |
27919 | }; | |
27920 | ||
27921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
27922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27923 | { | |
27924 | arg2 = wxString_in_helper(obj1); | |
27925 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27926 | temp2 = True; |
d14a1e28 RD |
27927 | } |
27928 | { | |
27929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27930 | (arg1)->SetLink((wxString const &)*arg2); | |
27931 | ||
27932 | wxPyEndAllowThreads(__tstate); | |
27933 | if (PyErr_Occurred()) SWIG_fail; | |
27934 | } | |
27935 | Py_INCREF(Py_None); resultobj = Py_None; | |
27936 | { | |
27937 | if (temp2) | |
27938 | delete arg2; | |
27939 | } | |
27940 | return resultobj; | |
27941 | fail: | |
27942 | { | |
27943 | if (temp2) | |
27944 | delete arg2; | |
27945 | } | |
27946 | return NULL; | |
27947 | } | |
27948 | ||
27949 | ||
27950 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27951 | PyObject *resultobj; | |
27952 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27953 | wxString *result; | |
27954 | PyObject * obj0 = 0 ; | |
27955 | char *kwnames[] = { | |
27956 | (char *) "self", NULL | |
27957 | }; | |
27958 | ||
27959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
27960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27961 | { | |
27962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27963 | { | |
27964 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
27965 | result = (wxString *) &_result_ref; | |
27966 | } | |
27967 | ||
27968 | wxPyEndAllowThreads(__tstate); | |
27969 | if (PyErr_Occurred()) SWIG_fail; | |
27970 | } | |
0f774bef RD |
27971 | { |
27972 | #if wxUSE_UNICODE | |
27973 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27974 | #else | |
27975 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27976 | #endif | |
27977 | } | |
d14a1e28 RD |
27978 | return resultobj; |
27979 | fail: | |
27980 | return NULL; | |
27981 | } | |
27982 | ||
27983 | ||
27984 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27985 | PyObject *resultobj; | |
27986 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27987 | wxString *arg2 = 0 ; | |
423f194a | 27988 | bool temp2 = False ; |
d14a1e28 RD |
27989 | PyObject * obj0 = 0 ; |
27990 | PyObject * obj1 = 0 ; | |
27991 | char *kwnames[] = { | |
27992 | (char *) "self",(char *) "target", NULL | |
27993 | }; | |
27994 | ||
27995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
27996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27997 | { | |
27998 | arg2 = wxString_in_helper(obj1); | |
27999 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28000 | temp2 = True; |
d14a1e28 RD |
28001 | } |
28002 | { | |
28003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28004 | (arg1)->SetTarget((wxString const &)*arg2); | |
28005 | ||
28006 | wxPyEndAllowThreads(__tstate); | |
28007 | if (PyErr_Occurred()) SWIG_fail; | |
28008 | } | |
28009 | Py_INCREF(Py_None); resultobj = Py_None; | |
28010 | { | |
28011 | if (temp2) | |
28012 | delete arg2; | |
28013 | } | |
28014 | return resultobj; | |
28015 | fail: | |
28016 | { | |
28017 | if (temp2) | |
28018 | delete arg2; | |
28019 | } | |
28020 | return NULL; | |
28021 | } | |
28022 | ||
28023 | ||
28024 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
28025 | PyObject *obj; | |
28026 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28027 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
28028 | Py_INCREF(obj); | |
28029 | return Py_BuildValue((char *)""); | |
28030 | } | |
28031 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28032 | PyObject *resultobj; | |
28033 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 28034 | bool arg2 = (bool) True ; |
d14a1e28 RD |
28035 | wxContextHelp *result; |
28036 | PyObject * obj0 = 0 ; | |
28037 | PyObject * obj1 = 0 ; | |
28038 | char *kwnames[] = { | |
28039 | (char *) "window",(char *) "doNow", NULL | |
28040 | }; | |
28041 | ||
28042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
28043 | if (obj0) { | |
28044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28045 | } | |
28046 | if (obj1) { | |
2dbef272 | 28047 | { |
8edf1c75 | 28048 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
28049 | if (PyErr_Occurred()) SWIG_fail; |
28050 | } | |
d14a1e28 RD |
28051 | } |
28052 | { | |
28053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28054 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
28055 | ||
28056 | wxPyEndAllowThreads(__tstate); | |
28057 | if (PyErr_Occurred()) SWIG_fail; | |
28058 | } | |
28059 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelp, 1); | |
28060 | return resultobj; | |
28061 | fail: | |
28062 | return NULL; | |
28063 | } | |
28064 | ||
28065 | ||
28066 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28067 | PyObject *resultobj; | |
28068 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28069 | PyObject * obj0 = 0 ; | |
28070 | char *kwnames[] = { | |
28071 | (char *) "self", NULL | |
28072 | }; | |
28073 | ||
28074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
28075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28076 | { | |
28077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28078 | delete arg1; | |
28079 | ||
28080 | wxPyEndAllowThreads(__tstate); | |
28081 | if (PyErr_Occurred()) SWIG_fail; | |
28082 | } | |
28083 | Py_INCREF(Py_None); resultobj = Py_None; | |
28084 | return resultobj; | |
28085 | fail: | |
28086 | return NULL; | |
28087 | } | |
28088 | ||
28089 | ||
28090 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28091 | PyObject *resultobj; | |
28092 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28093 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28094 | bool result; | |
28095 | PyObject * obj0 = 0 ; | |
28096 | PyObject * obj1 = 0 ; | |
28097 | char *kwnames[] = { | |
28098 | (char *) "self",(char *) "window", NULL | |
28099 | }; | |
28100 | ||
28101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
28102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28103 | if (obj1) { | |
28104 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28105 | } | |
28106 | { | |
28107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28108 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
28109 | ||
28110 | wxPyEndAllowThreads(__tstate); | |
28111 | if (PyErr_Occurred()) SWIG_fail; | |
28112 | } | |
02a34c4c | 28113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28114 | return resultobj; |
28115 | fail: | |
28116 | return NULL; | |
28117 | } | |
28118 | ||
28119 | ||
28120 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28121 | PyObject *resultobj; | |
28122 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28123 | bool result; | |
28124 | PyObject * obj0 = 0 ; | |
28125 | char *kwnames[] = { | |
28126 | (char *) "self", NULL | |
28127 | }; | |
28128 | ||
28129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
28130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28131 | { | |
28132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28133 | result = (bool)(arg1)->EndContextHelp(); | |
28134 | ||
28135 | wxPyEndAllowThreads(__tstate); | |
28136 | if (PyErr_Occurred()) SWIG_fail; | |
28137 | } | |
02a34c4c | 28138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28139 | return resultobj; |
28140 | fail: | |
28141 | return NULL; | |
28142 | } | |
28143 | ||
28144 | ||
28145 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
28146 | PyObject *obj; | |
28147 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28148 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
28149 | Py_INCREF(obj); | |
28150 | return Py_BuildValue((char *)""); | |
28151 | } | |
28152 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28153 | PyObject *resultobj; | |
28154 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 28155 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
28156 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28157 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28158 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28159 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28160 | long arg5 = (long) wxBU_AUTODRAW ; | |
28161 | wxContextHelpButton *result; | |
28162 | wxPoint temp3 ; | |
28163 | wxSize temp4 ; | |
28164 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28165 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28166 | PyObject * obj2 = 0 ; |
28167 | PyObject * obj3 = 0 ; | |
8edf1c75 | 28168 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28169 | char *kwnames[] = { |
28170 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28171 | }; | |
28172 | ||
8edf1c75 | 28173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 28174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28175 | if (obj1) { |
28176 | { | |
28177 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28178 | if (PyErr_Occurred()) SWIG_fail; | |
28179 | } | |
28180 | } | |
d14a1e28 RD |
28181 | if (obj2) { |
28182 | { | |
28183 | arg3 = &temp3; | |
28184 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28185 | } | |
28186 | } | |
28187 | if (obj3) { | |
28188 | { | |
28189 | arg4 = &temp4; | |
28190 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28191 | } | |
28192 | } | |
8edf1c75 RD |
28193 | if (obj4) { |
28194 | { | |
28195 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
28196 | if (PyErr_Occurred()) SWIG_fail; | |
28197 | } | |
28198 | } | |
d14a1e28 RD |
28199 | { |
28200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28201 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28202 | ||
28203 | wxPyEndAllowThreads(__tstate); | |
28204 | if (PyErr_Occurred()) SWIG_fail; | |
28205 | } | |
28206 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelpButton, 1); | |
28207 | return resultobj; | |
28208 | fail: | |
28209 | return NULL; | |
28210 | } | |
28211 | ||
28212 | ||
28213 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
28214 | PyObject *obj; | |
28215 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28216 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
28217 | Py_INCREF(obj); | |
28218 | return Py_BuildValue((char *)""); | |
28219 | } | |
28220 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28221 | PyObject *resultobj; | |
28222 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28223 | wxHelpProvider *result; | |
28224 | PyObject * obj0 = 0 ; | |
28225 | char *kwnames[] = { | |
28226 | (char *) "helpProvider", NULL | |
28227 | }; | |
28228 | ||
28229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
28230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28231 | { | |
28232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28233 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
28234 | ||
28235 | wxPyEndAllowThreads(__tstate); | |
28236 | if (PyErr_Occurred()) SWIG_fail; | |
28237 | } | |
28238 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
28239 | return resultobj; | |
28240 | fail: | |
28241 | return NULL; | |
28242 | } | |
28243 | ||
28244 | ||
28245 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28246 | PyObject *resultobj; | |
28247 | wxHelpProvider *result; | |
28248 | char *kwnames[] = { | |
28249 | NULL | |
28250 | }; | |
28251 | ||
28252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
28253 | { | |
28254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28255 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
28256 | ||
28257 | wxPyEndAllowThreads(__tstate); | |
28258 | if (PyErr_Occurred()) SWIG_fail; | |
28259 | } | |
28260 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
28261 | return resultobj; | |
28262 | fail: | |
28263 | return NULL; | |
28264 | } | |
28265 | ||
28266 | ||
28267 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28268 | PyObject *resultobj; | |
28269 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28270 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28271 | wxString result; | |
28272 | PyObject * obj0 = 0 ; | |
28273 | PyObject * obj1 = 0 ; | |
28274 | char *kwnames[] = { | |
28275 | (char *) "self",(char *) "window", NULL | |
28276 | }; | |
28277 | ||
28278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
28279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28280 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28281 | { | |
28282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28283 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
28284 | ||
28285 | wxPyEndAllowThreads(__tstate); | |
28286 | if (PyErr_Occurred()) SWIG_fail; | |
28287 | } | |
28288 | { | |
28289 | #if wxUSE_UNICODE | |
28290 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28291 | #else | |
28292 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28293 | #endif | |
28294 | } | |
28295 | return resultobj; | |
28296 | fail: | |
28297 | return NULL; | |
28298 | } | |
28299 | ||
28300 | ||
28301 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28302 | PyObject *resultobj; | |
28303 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28304 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28305 | bool result; | |
28306 | PyObject * obj0 = 0 ; | |
28307 | PyObject * obj1 = 0 ; | |
28308 | char *kwnames[] = { | |
28309 | (char *) "self",(char *) "window", NULL | |
28310 | }; | |
28311 | ||
28312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
28313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28314 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28315 | { | |
28316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28317 | result = (bool)(arg1)->ShowHelp(arg2); | |
28318 | ||
28319 | wxPyEndAllowThreads(__tstate); | |
28320 | if (PyErr_Occurred()) SWIG_fail; | |
28321 | } | |
02a34c4c | 28322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28323 | return resultobj; |
28324 | fail: | |
28325 | return NULL; | |
28326 | } | |
28327 | ||
28328 | ||
28329 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28330 | PyObject *resultobj; | |
28331 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28332 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28333 | wxString *arg3 = 0 ; | |
423f194a | 28334 | bool temp3 = False ; |
d14a1e28 RD |
28335 | PyObject * obj0 = 0 ; |
28336 | PyObject * obj1 = 0 ; | |
28337 | PyObject * obj2 = 0 ; | |
28338 | char *kwnames[] = { | |
28339 | (char *) "self",(char *) "window",(char *) "text", NULL | |
28340 | }; | |
28341 | ||
28342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28344 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28345 | { | |
28346 | arg3 = wxString_in_helper(obj2); | |
28347 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28348 | temp3 = True; |
d14a1e28 RD |
28349 | } |
28350 | { | |
28351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28352 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28353 | ||
28354 | wxPyEndAllowThreads(__tstate); | |
28355 | if (PyErr_Occurred()) SWIG_fail; | |
28356 | } | |
28357 | Py_INCREF(Py_None); resultobj = Py_None; | |
28358 | { | |
28359 | if (temp3) | |
28360 | delete arg3; | |
28361 | } | |
28362 | return resultobj; | |
28363 | fail: | |
28364 | { | |
28365 | if (temp3) | |
28366 | delete arg3; | |
28367 | } | |
28368 | return NULL; | |
28369 | } | |
28370 | ||
28371 | ||
28372 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28373 | PyObject *resultobj; | |
28374 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
423f194a | 28375 | int arg2 ; |
d14a1e28 | 28376 | wxString *arg3 = 0 ; |
423f194a | 28377 | bool temp3 = False ; |
d14a1e28 | 28378 | PyObject * obj0 = 0 ; |
8edf1c75 | 28379 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28380 | PyObject * obj2 = 0 ; |
28381 | char *kwnames[] = { | |
28382 | (char *) "self",(char *) "id",(char *) "text", NULL | |
28383 | }; | |
28384 | ||
8edf1c75 | 28385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28387 | { |
28388 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28389 | if (PyErr_Occurred()) SWIG_fail; | |
28390 | } | |
d14a1e28 RD |
28391 | { |
28392 | arg3 = wxString_in_helper(obj2); | |
28393 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28394 | temp3 = True; |
d14a1e28 RD |
28395 | } |
28396 | { | |
28397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28398 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28399 | ||
28400 | wxPyEndAllowThreads(__tstate); | |
28401 | if (PyErr_Occurred()) SWIG_fail; | |
28402 | } | |
28403 | Py_INCREF(Py_None); resultobj = Py_None; | |
28404 | { | |
28405 | if (temp3) | |
28406 | delete arg3; | |
28407 | } | |
28408 | return resultobj; | |
28409 | fail: | |
28410 | { | |
28411 | if (temp3) | |
28412 | delete arg3; | |
28413 | } | |
28414 | return NULL; | |
28415 | } | |
28416 | ||
28417 | ||
28418 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28419 | PyObject *resultobj; | |
28420 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28421 | PyObject * obj0 = 0 ; | |
28422 | char *kwnames[] = { | |
28423 | (char *) "self", NULL | |
28424 | }; | |
28425 | ||
28426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
28427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28428 | { | |
28429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28430 | wxHelpProvider_Destroy(arg1); | |
28431 | ||
28432 | wxPyEndAllowThreads(__tstate); | |
28433 | if (PyErr_Occurred()) SWIG_fail; | |
28434 | } | |
28435 | Py_INCREF(Py_None); resultobj = Py_None; | |
28436 | return resultobj; | |
28437 | fail: | |
28438 | return NULL; | |
28439 | } | |
28440 | ||
28441 | ||
28442 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
28443 | PyObject *obj; | |
28444 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28445 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
28446 | Py_INCREF(obj); | |
28447 | return Py_BuildValue((char *)""); | |
28448 | } | |
28449 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28450 | PyObject *resultobj; | |
28451 | wxSimpleHelpProvider *result; | |
28452 | char *kwnames[] = { | |
28453 | NULL | |
28454 | }; | |
28455 | ||
28456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
28457 | { | |
28458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28459 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
28460 | ||
28461 | wxPyEndAllowThreads(__tstate); | |
28462 | if (PyErr_Occurred()) SWIG_fail; | |
28463 | } | |
28464 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
28465 | return resultobj; | |
28466 | fail: | |
28467 | return NULL; | |
28468 | } | |
28469 | ||
28470 | ||
28471 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
28472 | PyObject *obj; | |
28473 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28474 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
28475 | Py_INCREF(obj); | |
28476 | return Py_BuildValue((char *)""); | |
28477 | } | |
423f194a RD |
28478 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
28479 | PyObject *resultobj; | |
28480 | wxBitmap *arg1 = 0 ; | |
28481 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28482 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28483 | wxGenericDragImage *result; | |
28484 | PyObject * obj0 = 0 ; | |
28485 | PyObject * obj1 = 0 ; | |
28486 | char *kwnames[] = { | |
28487 | (char *) "image",(char *) "cursor", NULL | |
28488 | }; | |
28489 | ||
28490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
28491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28492 | if (arg1 == NULL) { | |
28493 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28494 | } | |
28495 | if (obj1) { | |
28496 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28497 | if (arg2 == NULL) { | |
28498 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28499 | } | |
28500 | } | |
28501 | { | |
28502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28503 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
28504 | ||
28505 | wxPyEndAllowThreads(__tstate); | |
28506 | if (PyErr_Occurred()) SWIG_fail; | |
28507 | } | |
28508 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28509 | return resultobj; | |
28510 | fail: | |
28511 | return NULL; | |
28512 | } | |
28513 | ||
28514 | ||
28515 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28516 | PyObject *resultobj; | |
28517 | wxIcon *arg1 = 0 ; | |
28518 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28519 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28520 | wxGenericDragImage *result; | |
28521 | PyObject * obj0 = 0 ; | |
28522 | PyObject * obj1 = 0 ; | |
28523 | char *kwnames[] = { | |
28524 | (char *) "image",(char *) "cursor", NULL | |
28525 | }; | |
28526 | ||
28527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
28528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28529 | if (arg1 == NULL) { | |
28530 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28531 | } | |
28532 | if (obj1) { | |
28533 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28534 | if (arg2 == NULL) { | |
28535 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28536 | } | |
28537 | } | |
28538 | { | |
28539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28540 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
28541 | ||
28542 | wxPyEndAllowThreads(__tstate); | |
28543 | if (PyErr_Occurred()) SWIG_fail; | |
28544 | } | |
28545 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28546 | return resultobj; | |
28547 | fail: | |
28548 | return NULL; | |
28549 | } | |
28550 | ||
28551 | ||
28552 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28553 | PyObject *resultobj; | |
28554 | wxString *arg1 = 0 ; | |
28555 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28556 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28557 | wxGenericDragImage *result; | |
28558 | bool temp1 = False ; | |
28559 | PyObject * obj0 = 0 ; | |
28560 | PyObject * obj1 = 0 ; | |
28561 | char *kwnames[] = { | |
28562 | (char *) "str",(char *) "cursor", NULL | |
28563 | }; | |
28564 | ||
28565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
28566 | { | |
28567 | arg1 = wxString_in_helper(obj0); | |
28568 | if (arg1 == NULL) SWIG_fail; | |
28569 | temp1 = True; | |
28570 | } | |
28571 | if (obj1) { | |
28572 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28573 | if (arg2 == NULL) { | |
28574 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28575 | } | |
28576 | } | |
28577 | { | |
28578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28579 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
28580 | ||
28581 | wxPyEndAllowThreads(__tstate); | |
28582 | if (PyErr_Occurred()) SWIG_fail; | |
28583 | } | |
28584 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28585 | { | |
28586 | if (temp1) | |
28587 | delete arg1; | |
28588 | } | |
28589 | return resultobj; | |
28590 | fail: | |
28591 | { | |
28592 | if (temp1) | |
28593 | delete arg1; | |
28594 | } | |
28595 | return NULL; | |
28596 | } | |
28597 | ||
28598 | ||
28599 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28600 | PyObject *resultobj; | |
28601 | wxPyTreeCtrl *arg1 = 0 ; | |
28602 | wxTreeItemId *arg2 = 0 ; | |
28603 | wxGenericDragImage *result; | |
28604 | PyObject * obj0 = 0 ; | |
28605 | PyObject * obj1 = 0 ; | |
28606 | char *kwnames[] = { | |
28607 | (char *) "treeCtrl",(char *) "id", NULL | |
28608 | }; | |
28609 | ||
28610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
28611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28612 | if (arg1 == NULL) { | |
28613 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28614 | } | |
28615 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28616 | if (arg2 == NULL) { | |
28617 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28618 | } | |
28619 | { | |
28620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28621 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
28622 | ||
28623 | wxPyEndAllowThreads(__tstate); | |
28624 | if (PyErr_Occurred()) SWIG_fail; | |
28625 | } | |
28626 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28627 | return resultobj; | |
28628 | fail: | |
28629 | return NULL; | |
28630 | } | |
28631 | ||
28632 | ||
28633 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28634 | PyObject *resultobj; | |
28635 | wxPyListCtrl *arg1 = 0 ; | |
28636 | long arg2 ; | |
28637 | wxGenericDragImage *result; | |
28638 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28639 | PyObject * obj1 = 0 ; |
423f194a RD |
28640 | char *kwnames[] = { |
28641 | (char *) "listCtrl",(char *) "id", NULL | |
28642 | }; | |
28643 | ||
8edf1c75 | 28644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
423f194a RD |
28645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
28646 | if (arg1 == NULL) { | |
28647 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28648 | } | |
8edf1c75 RD |
28649 | { |
28650 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
28651 | if (PyErr_Occurred()) SWIG_fail; | |
28652 | } | |
423f194a RD |
28653 | { |
28654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28655 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
28656 | ||
28657 | wxPyEndAllowThreads(__tstate); | |
28658 | if (PyErr_Occurred()) SWIG_fail; | |
28659 | } | |
28660 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28661 | return resultobj; | |
28662 | fail: | |
28663 | return NULL; | |
28664 | } | |
28665 | ||
28666 | ||
28667 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28668 | PyObject *resultobj; | |
28669 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28670 | PyObject * obj0 = 0 ; | |
28671 | char *kwnames[] = { | |
28672 | (char *) "self", NULL | |
28673 | }; | |
28674 | ||
28675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
28676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28677 | { | |
28678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28679 | delete arg1; | |
28680 | ||
28681 | wxPyEndAllowThreads(__tstate); | |
28682 | if (PyErr_Occurred()) SWIG_fail; | |
28683 | } | |
28684 | Py_INCREF(Py_None); resultobj = Py_None; | |
28685 | return resultobj; | |
28686 | fail: | |
28687 | return NULL; | |
28688 | } | |
28689 | ||
28690 | ||
28691 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28692 | PyObject *resultobj; | |
28693 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28694 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
28695 | PyObject * obj0 = 0 ; | |
28696 | PyObject * obj1 = 0 ; | |
28697 | char *kwnames[] = { | |
28698 | (char *) "self",(char *) "bitmap", NULL | |
28699 | }; | |
28700 | ||
28701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
28702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28703 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28704 | { | |
28705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28706 | (arg1)->SetBackingBitmap(arg2); | |
28707 | ||
28708 | wxPyEndAllowThreads(__tstate); | |
28709 | if (PyErr_Occurred()) SWIG_fail; | |
28710 | } | |
28711 | Py_INCREF(Py_None); resultobj = Py_None; | |
28712 | return resultobj; | |
28713 | fail: | |
28714 | return NULL; | |
28715 | } | |
28716 | ||
28717 | ||
28718 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28719 | PyObject *resultobj; | |
28720 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28721 | wxPoint *arg2 = 0 ; | |
28722 | wxWindow *arg3 = (wxWindow *) 0 ; | |
28723 | bool arg4 = (bool) False ; | |
28724 | wxRect *arg5 = (wxRect *) NULL ; | |
28725 | bool result; | |
28726 | wxPoint temp2 ; | |
28727 | PyObject * obj0 = 0 ; | |
28728 | PyObject * obj1 = 0 ; | |
28729 | PyObject * obj2 = 0 ; | |
28730 | PyObject * obj3 = 0 ; | |
28731 | PyObject * obj4 = 0 ; | |
28732 | char *kwnames[] = { | |
28733 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
28734 | }; | |
28735 | ||
28736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28738 | { | |
28739 | arg2 = &temp2; | |
28740 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28741 | } | |
28742 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28743 | if (obj3) { | |
2dbef272 | 28744 | { |
8edf1c75 | 28745 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
28746 | if (PyErr_Occurred()) SWIG_fail; |
28747 | } | |
423f194a RD |
28748 | } |
28749 | if (obj4) { | |
28750 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28751 | } | |
28752 | { | |
28753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28754 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
28755 | ||
28756 | wxPyEndAllowThreads(__tstate); | |
28757 | if (PyErr_Occurred()) SWIG_fail; | |
28758 | } | |
02a34c4c | 28759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28760 | return resultobj; |
28761 | fail: | |
28762 | return NULL; | |
28763 | } | |
28764 | ||
28765 | ||
28766 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28767 | PyObject *resultobj; | |
28768 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28769 | wxPoint *arg2 = 0 ; | |
28770 | wxWindow *arg3 = (wxWindow *) 0 ; | |
28771 | wxWindow *arg4 = (wxWindow *) 0 ; | |
28772 | bool result; | |
28773 | wxPoint temp2 ; | |
28774 | PyObject * obj0 = 0 ; | |
28775 | PyObject * obj1 = 0 ; | |
28776 | PyObject * obj2 = 0 ; | |
28777 | PyObject * obj3 = 0 ; | |
28778 | char *kwnames[] = { | |
28779 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
28780 | }; | |
28781 | ||
28782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28784 | { | |
28785 | arg2 = &temp2; | |
28786 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28787 | } | |
28788 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28789 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28790 | { | |
28791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28792 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
28793 | ||
28794 | wxPyEndAllowThreads(__tstate); | |
28795 | if (PyErr_Occurred()) SWIG_fail; | |
28796 | } | |
02a34c4c | 28797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28798 | return resultobj; |
28799 | fail: | |
28800 | return NULL; | |
28801 | } | |
28802 | ||
28803 | ||
28804 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28805 | PyObject *resultobj; | |
28806 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28807 | bool result; | |
28808 | PyObject * obj0 = 0 ; | |
28809 | char *kwnames[] = { | |
28810 | (char *) "self", NULL | |
28811 | }; | |
28812 | ||
28813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
28814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28815 | { | |
28816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28817 | result = (bool)(arg1)->EndDrag(); | |
28818 | ||
28819 | wxPyEndAllowThreads(__tstate); | |
28820 | if (PyErr_Occurred()) SWIG_fail; | |
28821 | } | |
02a34c4c | 28822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28823 | return resultobj; |
28824 | fail: | |
28825 | return NULL; | |
28826 | } | |
28827 | ||
28828 | ||
28829 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28830 | PyObject *resultobj; | |
28831 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28832 | wxPoint *arg2 = 0 ; | |
28833 | bool result; | |
28834 | wxPoint temp2 ; | |
28835 | PyObject * obj0 = 0 ; | |
28836 | PyObject * obj1 = 0 ; | |
28837 | char *kwnames[] = { | |
28838 | (char *) "self",(char *) "pt", NULL | |
28839 | }; | |
28840 | ||
28841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
28842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28843 | { | |
28844 | arg2 = &temp2; | |
28845 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28846 | } | |
28847 | { | |
28848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28849 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
28850 | ||
28851 | wxPyEndAllowThreads(__tstate); | |
28852 | if (PyErr_Occurred()) SWIG_fail; | |
28853 | } | |
02a34c4c | 28854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28855 | return resultobj; |
28856 | fail: | |
28857 | return NULL; | |
28858 | } | |
28859 | ||
28860 | ||
28861 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28862 | PyObject *resultobj; | |
28863 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28864 | bool result; | |
28865 | PyObject * obj0 = 0 ; | |
28866 | char *kwnames[] = { | |
28867 | (char *) "self", NULL | |
28868 | }; | |
28869 | ||
28870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
28871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28872 | { | |
28873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28874 | result = (bool)(arg1)->Show(); | |
28875 | ||
28876 | wxPyEndAllowThreads(__tstate); | |
28877 | if (PyErr_Occurred()) SWIG_fail; | |
28878 | } | |
02a34c4c | 28879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28880 | return resultobj; |
28881 | fail: | |
28882 | return NULL; | |
28883 | } | |
28884 | ||
28885 | ||
28886 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28887 | PyObject *resultobj; | |
28888 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28889 | bool result; | |
28890 | PyObject * obj0 = 0 ; | |
28891 | char *kwnames[] = { | |
28892 | (char *) "self", NULL | |
28893 | }; | |
28894 | ||
28895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
28896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28897 | { | |
28898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28899 | result = (bool)(arg1)->Hide(); | |
28900 | ||
28901 | wxPyEndAllowThreads(__tstate); | |
28902 | if (PyErr_Occurred()) SWIG_fail; | |
28903 | } | |
02a34c4c | 28904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28905 | return resultobj; |
28906 | fail: | |
28907 | return NULL; | |
28908 | } | |
28909 | ||
28910 | ||
28911 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28912 | PyObject *resultobj; | |
28913 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28914 | wxPoint *arg2 = 0 ; | |
28915 | wxRect result; | |
28916 | wxPoint temp2 ; | |
28917 | PyObject * obj0 = 0 ; | |
28918 | PyObject * obj1 = 0 ; | |
28919 | char *kwnames[] = { | |
28920 | (char *) "self",(char *) "pos", NULL | |
28921 | }; | |
28922 | ||
28923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
28924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28925 | { | |
28926 | arg2 = &temp2; | |
28927 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28928 | } | |
28929 | { | |
28930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28931 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
28932 | ||
28933 | wxPyEndAllowThreads(__tstate); | |
28934 | if (PyErr_Occurred()) SWIG_fail; | |
28935 | } | |
28936 | { | |
28937 | wxRect * resultptr; | |
28938 | resultptr = new wxRect((wxRect &) result); | |
28939 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
28940 | } | |
28941 | return resultobj; | |
28942 | fail: | |
28943 | return NULL; | |
28944 | } | |
28945 | ||
28946 | ||
28947 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28948 | PyObject *resultobj; | |
28949 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28950 | wxDC *arg2 = 0 ; | |
28951 | wxPoint *arg3 = 0 ; | |
28952 | bool result; | |
28953 | wxPoint temp3 ; | |
28954 | PyObject * obj0 = 0 ; | |
28955 | PyObject * obj1 = 0 ; | |
28956 | PyObject * obj2 = 0 ; | |
28957 | char *kwnames[] = { | |
28958 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
28959 | }; | |
28960 | ||
28961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28963 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28964 | if (arg2 == NULL) { | |
28965 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28966 | } | |
28967 | { | |
28968 | arg3 = &temp3; | |
28969 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28970 | } | |
28971 | { | |
28972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28973 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
28974 | ||
28975 | wxPyEndAllowThreads(__tstate); | |
28976 | if (PyErr_Occurred()) SWIG_fail; | |
28977 | } | |
02a34c4c | 28978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
28979 | return resultobj; |
28980 | fail: | |
28981 | return NULL; | |
28982 | } | |
28983 | ||
28984 | ||
28985 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28986 | PyObject *resultobj; | |
28987 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28988 | wxDC *arg2 = 0 ; | |
28989 | wxMemoryDC *arg3 = 0 ; | |
28990 | wxRect *arg4 = 0 ; | |
28991 | wxRect *arg5 = 0 ; | |
28992 | bool result; | |
28993 | wxRect temp4 ; | |
28994 | wxRect temp5 ; | |
28995 | PyObject * obj0 = 0 ; | |
28996 | PyObject * obj1 = 0 ; | |
28997 | PyObject * obj2 = 0 ; | |
28998 | PyObject * obj3 = 0 ; | |
28999 | PyObject * obj4 = 0 ; | |
29000 | char *kwnames[] = { | |
29001 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
29002 | }; | |
29003 | ||
29004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29006 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29007 | if (arg2 == NULL) { | |
29008 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29009 | } | |
29010 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29011 | if (arg3 == NULL) { | |
29012 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29013 | } | |
29014 | { | |
29015 | arg4 = &temp4; | |
29016 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
29017 | } | |
29018 | { | |
29019 | arg5 = &temp5; | |
29020 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
29021 | } | |
29022 | { | |
29023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29024 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
29025 | ||
29026 | wxPyEndAllowThreads(__tstate); | |
29027 | if (PyErr_Occurred()) SWIG_fail; | |
29028 | } | |
02a34c4c | 29029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29030 | return resultobj; |
29031 | fail: | |
29032 | return NULL; | |
29033 | } | |
29034 | ||
29035 | ||
29036 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29037 | PyObject *resultobj; | |
29038 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29039 | wxPoint *arg2 = 0 ; | |
29040 | wxPoint *arg3 = 0 ; | |
29041 | bool arg4 ; | |
29042 | bool arg5 ; | |
29043 | bool result; | |
29044 | wxPoint temp2 ; | |
29045 | wxPoint temp3 ; | |
29046 | PyObject * obj0 = 0 ; | |
29047 | PyObject * obj1 = 0 ; | |
29048 | PyObject * obj2 = 0 ; | |
29049 | PyObject * obj3 = 0 ; | |
29050 | PyObject * obj4 = 0 ; | |
29051 | char *kwnames[] = { | |
29052 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
29053 | }; | |
29054 | ||
29055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29057 | { | |
29058 | arg2 = &temp2; | |
29059 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29060 | } | |
29061 | { | |
29062 | arg3 = &temp3; | |
29063 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29064 | } | |
2dbef272 | 29065 | { |
8edf1c75 | 29066 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
29067 | if (PyErr_Occurred()) SWIG_fail; |
29068 | } | |
29069 | { | |
8edf1c75 | 29070 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
2dbef272 RD |
29071 | if (PyErr_Occurred()) SWIG_fail; |
29072 | } | |
423f194a RD |
29073 | { |
29074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29075 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
29076 | ||
29077 | wxPyEndAllowThreads(__tstate); | |
29078 | if (PyErr_Occurred()) SWIG_fail; | |
29079 | } | |
02a34c4c | 29080 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29081 | return resultobj; |
29082 | fail: | |
29083 | return NULL; | |
29084 | } | |
29085 | ||
29086 | ||
29087 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
29088 | PyObject *obj; | |
29089 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29090 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
29091 | Py_INCREF(obj); | |
29092 | return Py_BuildValue((char *)""); | |
29093 | } | |
29094 | static PyMethodDef SwigMethods[] = { | |
29095 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
29096 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
29097 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
29098 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
29099 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
29100 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
29101 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
29102 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
29103 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29104 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
29105 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
29106 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
29107 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
29108 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
29109 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
29110 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
29111 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
29112 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29113 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
29114 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
29115 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
29116 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
29117 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
29118 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29119 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29120 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
29121 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29122 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
29123 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
29124 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
29125 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
29126 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
29127 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
29128 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
29129 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
29130 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
29131 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29132 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
29133 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
29134 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
29135 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
29136 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29137 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29138 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29139 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
29140 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
29141 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
29142 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29143 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29144 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
29145 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
100c4552 | 29146 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
29147 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
29148 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
29149 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
29150 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
29151 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
29152 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
29153 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
29154 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
29155 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29156 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29157 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29158 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29159 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29160 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
29161 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
29162 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
29163 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
29164 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
29165 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
29166 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
29167 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29168 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
29169 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
29170 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
29171 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
29172 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29173 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
29174 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
29175 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
29176 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
29177 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
29178 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
29179 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29180 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29181 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
29182 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29183 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29184 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
29185 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
29186 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
29187 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
29188 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29189 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
29190 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
29191 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
29192 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29193 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29194 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
29195 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
29196 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
29197 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29198 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
29199 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
29200 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
29201 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29202 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29203 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
c3eb6258 RD |
29204 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
29205 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29206 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
29207 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, |
29208 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
29209 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
29210 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29211 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
29212 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
29213 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29214 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
29215 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
29216 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
8edf1c75 | 29217 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
29218 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, |
29219 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29220 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29221 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29222 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29223 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
29224 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29225 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29226 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
29227 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29228 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29229 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
29230 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29231 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
29232 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29233 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29234 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
29235 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29236 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29237 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29238 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29239 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
29240 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29241 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29242 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
29243 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
29244 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
29245 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
29246 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29247 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29248 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29249 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29250 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29251 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29252 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
29253 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
29254 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
29255 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
29256 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
29257 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
29258 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
29259 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29260 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29261 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
29262 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
29263 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
29264 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
29265 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
29266 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
29267 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
29268 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
29269 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
29270 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
29271 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
29272 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29273 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29274 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
29275 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
29276 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
29277 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
29278 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
02a34c4c | 29279 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
29280 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, |
29281 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
29282 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
29283 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
29284 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
29285 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
29286 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
29287 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
29288 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
29289 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
29290 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29291 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
29292 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29293 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
29294 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29295 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
29296 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
29297 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
29298 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
29299 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
29300 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
29301 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
29302 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
29303 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
29304 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
29305 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
29306 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
29307 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
29308 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
29309 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
29310 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29311 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29312 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29313 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
29314 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
29315 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
29316 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
29317 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
29318 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29319 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29320 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29321 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29322 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29323 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
29324 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
29325 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29326 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29327 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
29328 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29329 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29330 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29331 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29332 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29333 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
29334 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29335 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29336 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29337 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29338 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
d896a793 RD |
29339 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
29340 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29341 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29342 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
29343 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
29344 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
29345 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29346 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29347 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29348 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29349 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29350 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
29351 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
29352 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
29353 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
29354 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
29355 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
29356 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
29357 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29358 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
29359 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
29360 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29361 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29362 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29363 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29364 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29365 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
29366 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
29367 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
29368 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
29369 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29370 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29371 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29372 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29373 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29374 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
29375 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
29376 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29377 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29378 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29379 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29380 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29381 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29382 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29383 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29384 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
29385 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
29386 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
29387 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
29388 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
29389 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29390 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
29391 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29392 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29393 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
29394 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
29395 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
29396 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29397 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29398 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29399 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29400 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29401 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29402 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29403 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29404 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29405 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29406 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
29407 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
29408 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
29409 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
29410 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
29411 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29412 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
29413 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
29414 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
29415 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29416 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29417 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29418 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29419 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
29420 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
29421 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29422 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29423 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29424 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
29425 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
29426 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29427 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29428 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
29429 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29430 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
29431 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
29432 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
29433 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29434 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29435 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
29436 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29437 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
29438 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
29439 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29440 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29441 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
29442 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
29443 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
29444 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29445 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29446 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29447 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
29448 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29449 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
29450 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29451 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
29452 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
29453 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29454 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29455 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
29456 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
29457 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
29458 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
29459 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29460 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29461 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29462 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29463 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29464 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29465 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
29466 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
29467 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
29468 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29469 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29470 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29471 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29472 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29473 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
29474 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
29475 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
29476 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
29477 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
29478 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
29479 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
cbd72d4f RD |
29480 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
29481 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
29482 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
29483 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
29484 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
29485 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29486 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29487 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
29488 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
29489 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
29490 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
29491 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
29492 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
29493 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
29494 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
29495 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
29496 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
29497 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
29498 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
29499 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
29500 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29501 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29502 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29503 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29504 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
29505 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29506 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
29507 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
29508 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
29509 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29510 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
29511 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
29512 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
29513 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
29514 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
29515 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
29516 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
29517 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
29518 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
29519 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
cbd72d4f | 29520 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29521 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
29522 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
29523 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29524 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29525 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
29526 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
29527 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
29528 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
29529 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29530 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29531 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29532 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29533 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29534 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
29535 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29536 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29537 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29538 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
29539 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
29540 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
29541 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
29542 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
29543 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29544 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
29545 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
29546 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29547 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
29548 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
29549 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
29550 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
29551 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
29552 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
29553 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
29554 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29555 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29556 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29557 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
29558 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29559 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29560 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
29561 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
29562 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
29563 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29564 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
29565 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
29566 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29567 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29568 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29569 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29570 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29571 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
29572 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
29573 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
29574 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
29575 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
29576 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
29577 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
29578 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
29579 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
29580 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
29581 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
29582 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
29583 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
29584 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
29585 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
29586 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
29587 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
29588 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
29589 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
29590 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
29591 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
29592 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
29593 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
29594 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
29595 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
29596 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
29597 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
29598 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
29599 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
29600 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
29601 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
29602 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
29603 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
29604 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
29605 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
29606 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29607 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
29608 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29609 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
29610 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
29611 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29612 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
29613 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
29614 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
29615 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
29616 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
29617 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
29618 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
29619 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29620 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29621 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29622 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29623 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29624 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29625 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29626 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29627 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
29628 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
29629 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
29630 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
29631 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
29632 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
29633 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
29634 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
29635 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
29636 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
29637 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29638 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29639 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29640 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29641 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
29642 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
29643 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
29644 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
29645 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
29646 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29647 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29648 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
29649 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29650 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29651 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
29652 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
29653 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
29654 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
29655 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29656 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29657 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29658 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
29659 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
29660 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
29661 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
29662 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
29663 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
29664 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
29665 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
29666 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
29667 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
29668 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29669 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
29670 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
29671 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
29672 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29673 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
29674 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
29675 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
29676 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
29677 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
29678 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
29679 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
29680 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
29681 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29682 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29683 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29684 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29685 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
29686 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
29687 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
29688 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
29689 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
29690 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
29691 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
29692 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
29693 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
29694 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
29695 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
29696 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29697 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
29698 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
29699 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
29700 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
29701 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
29702 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
29703 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
29704 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
29705 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
29706 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
29707 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
29708 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
29709 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29710 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
29711 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29712 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
29713 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
29714 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
29715 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
29716 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
29717 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
29718 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
29719 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
29720 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
29721 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
29722 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
29723 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
29724 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
29725 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29726 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29727 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
29728 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 29729 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29730 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
29731 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29732 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29733 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29734 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29735 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
29736 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
29737 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
29738 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29739 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29740 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29741 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
29742 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29743 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
29744 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29745 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
29746 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29747 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
29748 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29749 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
29750 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29751 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29752 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
29753 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29754 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
29755 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29756 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
29757 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
29758 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
29759 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29760 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29761 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
29762 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
29763 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
29764 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
29765 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29766 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
29767 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
29768 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
29769 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29770 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
29771 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
29772 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
29773 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
29774 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
29775 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
29776 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
29777 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
29778 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
29779 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
29780 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
29781 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
29782 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
29783 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
29784 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
29785 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
29786 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
29787 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
29788 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
29789 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
29790 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
29791 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
29792 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
0ffb2aa6 | 29793 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29794 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, |
29795 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
0ffb2aa6 | 29796 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29797 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, |
29798 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
29799 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
29800 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
29801 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
29802 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29803 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
29804 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
29805 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29806 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29807 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29808 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
29809 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
29810 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
29811 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
29812 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
29813 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
29814 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
29815 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
29816 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
29817 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
29818 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
29819 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
29820 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
29821 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29822 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29823 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
29824 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
29825 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
29826 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
29827 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29828 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29829 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29830 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
29831 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
29832 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
29833 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29834 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
29835 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
29836 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
29837 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
29838 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
29839 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
29840 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29841 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
29842 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
29843 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
29844 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
29845 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
29846 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
29847 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
29848 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
29849 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
29850 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
29851 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
29852 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
29853 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
29854 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29855 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29856 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
29857 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
29858 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
29859 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
29860 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
29861 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29862 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29863 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29864 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29865 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
29866 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
29867 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
29868 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
29869 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
29870 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
29871 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
29872 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
29873 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
29874 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
29875 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
29876 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
29877 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
423f194a RD |
29878 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
29879 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
29880 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
29881 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
29882 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
29883 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
29884 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29885 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
29886 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
29887 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
29888 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
29889 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
29890 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
29891 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
29892 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
29893 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
29894 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
29895 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
29896 | { NULL, NULL } |
29897 | }; | |
29898 | ||
29899 | ||
29900 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
29901 | ||
29902 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
29903 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
29904 | } | |
29905 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
29906 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
29907 | } | |
29908 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
29909 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
29910 | } | |
29911 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
29912 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29913 | } | |
29914 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
29915 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29916 | } | |
29917 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
29918 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
29919 | } | |
29920 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
29921 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29922 | } | |
29923 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
29924 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
29925 | } | |
29926 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
29927 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
29928 | } | |
29929 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
29930 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
29931 | } | |
29932 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
29933 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29934 | } | |
29935 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
29936 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
29937 | } | |
29938 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
29939 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
29940 | } | |
29941 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
29942 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
29943 | } | |
29944 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
29945 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
29946 | } | |
29947 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
29948 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
29949 | } | |
29950 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
29951 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
29952 | } | |
29953 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
29954 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
29955 | } | |
29956 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
29957 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
29958 | } | |
29959 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
29960 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
29961 | } | |
29962 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
29963 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
29964 | } | |
29965 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
29966 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
29967 | } | |
29968 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
29969 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29970 | } | |
29971 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
29972 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
29973 | } | |
29974 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
29975 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
29976 | } | |
29977 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
29978 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
29979 | } | |
29980 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
29981 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
29982 | } | |
29983 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
29984 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
29985 | } | |
29986 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
29987 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29988 | } | |
29989 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
29990 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29991 | } | |
29992 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
29993 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
29994 | } | |
29995 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
29996 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
29997 | } | |
29998 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
29999 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
30000 | } | |
30001 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
30002 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
30003 | } | |
30004 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
30005 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
30006 | } | |
30007 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
30008 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
30009 | } | |
30010 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
30011 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
30012 | } | |
30013 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
30014 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30015 | } | |
30016 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
30017 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30018 | } | |
30019 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
30020 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30021 | } | |
30022 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
30023 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30024 | } | |
30025 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
30026 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30027 | } | |
30028 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
30029 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
30030 | } | |
30031 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
30032 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
30033 | } | |
30034 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
30035 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30036 | } | |
30037 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
30038 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
30039 | } | |
30040 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
30041 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
30042 | } | |
30043 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
30044 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30045 | } | |
30046 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
30047 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30048 | } | |
30049 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
30050 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30051 | } | |
30052 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
30053 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
30054 | } | |
30055 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
30056 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
30057 | } | |
d896a793 RD |
30058 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
30059 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30060 | } | |
d14a1e28 RD |
30061 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
30062 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
30063 | } | |
30064 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
30065 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30066 | } | |
30067 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
30068 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
30069 | } | |
30070 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
30071 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
30072 | } | |
30073 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
30074 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
30075 | } | |
30076 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
30077 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30078 | } | |
30079 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
30080 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
30081 | } | |
30082 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
30083 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30084 | } | |
30085 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
30086 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
30087 | } | |
30088 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
30089 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
30090 | } | |
30091 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
30092 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
30093 | } | |
30094 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
30095 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
30096 | } | |
30097 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
30098 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
30099 | } | |
30100 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
30101 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
30102 | } | |
30103 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
30104 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
30105 | } | |
30106 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
30107 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
30108 | } | |
30109 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
30110 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
30111 | } | |
30112 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
30113 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30114 | } | |
30115 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
30116 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
30117 | } | |
30118 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
30119 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
30120 | } | |
30121 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
30122 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
30123 | } | |
30124 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
30125 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
30126 | } | |
30127 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
30128 | return (void *)((wxControl *) ((wxGauge *) x)); | |
30129 | } | |
30130 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
30131 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
30132 | } | |
30133 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
30134 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
30135 | } | |
30136 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
30137 | return (void *)((wxControl *) ((wxButton *) x)); | |
30138 | } | |
30139 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
30140 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
30141 | } | |
30142 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
30143 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30144 | } | |
30145 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
30146 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
30147 | } | |
30148 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
30149 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
30150 | } | |
30151 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
30152 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
30153 | } | |
30154 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
30155 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
30156 | } | |
30157 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
30158 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
30159 | } | |
30160 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
30161 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
30162 | } | |
30163 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
30164 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
30165 | } | |
30166 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
30167 | return (void *)((wxControl *) ((wxSlider *) x)); | |
30168 | } | |
30169 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
30170 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
30171 | } | |
30172 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
30173 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
30174 | } | |
30175 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
30176 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
30177 | } | |
30178 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
30179 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
30180 | } | |
30181 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
30182 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
30183 | } | |
30184 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
30185 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30186 | } | |
30187 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
30188 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30189 | } | |
30190 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
30191 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30192 | } | |
30193 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
30194 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
30195 | } | |
d896a793 RD |
30196 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
30197 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30198 | } | |
d14a1e28 RD |
30199 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
30200 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30201 | } | |
30202 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
30203 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30204 | } | |
30205 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
30206 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
30207 | } | |
30208 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
30209 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
30210 | } | |
30211 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
30212 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
30213 | } | |
30214 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
30215 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
30216 | } | |
30217 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
30218 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30219 | } | |
30220 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
30221 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
30222 | } | |
30223 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
30224 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
30225 | } | |
30226 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
30227 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
30228 | } | |
30229 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
30230 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
30231 | } | |
30232 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
30233 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
30234 | } | |
30235 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
30236 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
30237 | } | |
30238 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
30239 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
30240 | } | |
30241 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
30242 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
30243 | } | |
30244 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
30245 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30246 | } | |
30247 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
30248 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
30249 | } | |
30250 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
30251 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
30252 | } | |
30253 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
30254 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
30255 | } | |
30256 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
30257 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
30258 | } | |
30259 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
30260 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30261 | } | |
30262 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
30263 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
30264 | } | |
30265 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
30266 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
30267 | } | |
30268 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
30269 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30270 | } | |
30271 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
30272 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
30273 | } | |
30274 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
30275 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
30276 | } | |
30277 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
30278 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
30279 | } | |
30280 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
30281 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30282 | } | |
30283 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
30284 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30285 | } | |
30286 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
30287 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30288 | } | |
30289 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
30290 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30291 | } | |
30292 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
30293 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
30294 | } | |
30295 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
30296 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30297 | } | |
30298 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
30299 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
30300 | } | |
30301 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
30302 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
30303 | } | |
30304 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
30305 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
30306 | } | |
30307 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
30308 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
30309 | } | |
30310 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
30311 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
30312 | } | |
30313 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
30314 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
30315 | } | |
30316 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
30317 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30318 | } | |
30319 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
30320 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30321 | } | |
30322 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
30323 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
30324 | } | |
30325 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
30326 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
30327 | } | |
30328 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
30329 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
30330 | } | |
30331 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
30332 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
30333 | } | |
30334 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
30335 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
30336 | } | |
30337 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
30338 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30339 | } | |
30340 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
30341 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30342 | } | |
30343 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
30344 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
30345 | } | |
30346 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
30347 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
30348 | } | |
30349 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
30350 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
30351 | } | |
30352 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
30353 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
30354 | } | |
30355 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
30356 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
30357 | } | |
30358 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
30359 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
30360 | } | |
30361 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
30362 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30363 | } | |
30364 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
30365 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30366 | } | |
30367 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
30368 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
30369 | } | |
30370 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
30371 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
30372 | } | |
30373 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
30374 | return (void *)((wxObject *) ((wxSizer *) x)); | |
30375 | } | |
30376 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
30377 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
30378 | } | |
30379 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
30380 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
30381 | } | |
30382 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
30383 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
30384 | } | |
30385 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
30386 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30387 | } | |
30388 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
30389 | return (void *)((wxObject *) ((wxEvent *) x)); | |
30390 | } | |
30391 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
30392 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30393 | } | |
30394 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
30395 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
30396 | } | |
30397 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
30398 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
30399 | } | |
30400 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
30401 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
30402 | } | |
30403 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
30404 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
30405 | } | |
30406 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
30407 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30408 | } | |
30409 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
30410 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
30411 | } | |
30412 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
30413 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
30414 | } | |
30415 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
30416 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30417 | } | |
30418 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
30419 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30420 | } | |
30421 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
30422 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30423 | } | |
30424 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
30425 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30426 | } | |
30427 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
30428 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
30429 | } | |
30430 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
30431 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
30432 | } | |
30433 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
30434 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
30435 | } | |
30436 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
30437 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
30438 | } | |
30439 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
30440 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
30441 | } | |
30442 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
30443 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
30444 | } | |
30445 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
30446 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
30447 | } | |
30448 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
30449 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
30450 | } | |
30451 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
30452 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30453 | } | |
30454 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
30455 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
30456 | } | |
30457 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
30458 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
30459 | } | |
30460 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
30461 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30462 | } | |
30463 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
30464 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
30465 | } | |
30466 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
30467 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30468 | } | |
30469 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
30470 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
30471 | } | |
30472 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
30473 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30474 | } | |
30475 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
30476 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30477 | } | |
30478 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
30479 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
30480 | } | |
30481 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
30482 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
30483 | } | |
30484 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
30485 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
30486 | } | |
30487 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
30488 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
30489 | } | |
30490 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
30491 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
30492 | } | |
30493 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
30494 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30495 | } | |
30496 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
30497 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30498 | } | |
30499 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
30500 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
30501 | } | |
30502 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
30503 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
30504 | } | |
30505 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
30506 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
30507 | } | |
30508 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
30509 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
30510 | } | |
30511 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
30512 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
30513 | } | |
30514 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
30515 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
30516 | } | |
30517 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
30518 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
30519 | } | |
30520 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
30521 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
30522 | } | |
30523 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
30524 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
30525 | } | |
30526 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
30527 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
30528 | } | |
30529 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
30530 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
30531 | } | |
30532 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
30533 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
30534 | } | |
30535 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
30536 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
30537 | } | |
30538 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
30539 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
30540 | } | |
30541 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
30542 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
30543 | } | |
30544 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
30545 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
30546 | } | |
30547 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
30548 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
30549 | } | |
30550 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
30551 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
30552 | } | |
30553 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
30554 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
30555 | } | |
30556 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
30557 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
30558 | } | |
30559 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
30560 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
30561 | } | |
30562 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
30563 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30564 | } | |
30565 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
30566 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30567 | } | |
30568 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
30569 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
30570 | } | |
d14a1e28 RD |
30571 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
30572 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
30573 | } | |
41f1cec7 RD |
30574 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
30575 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30576 | } | |
d14a1e28 RD |
30577 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
30578 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
30579 | } | |
30580 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
30581 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30582 | } | |
41f1cec7 RD |
30583 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
30584 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
30585 | } | |
d14a1e28 RD |
30586 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
30587 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
30588 | } | |
30589 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
30590 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
30591 | } | |
30592 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
30593 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
30594 | } | |
30595 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
30596 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
30597 | } | |
30598 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
30599 | return (void *)((wxObject *) ((wxListItem *) x)); | |
30600 | } | |
30601 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
30602 | return (void *)((wxObject *) ((wxImage *) x)); | |
30603 | } | |
30604 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
30605 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
30606 | } | |
30607 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
30608 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
30609 | } | |
d896a793 RD |
30610 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
30611 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30612 | } | |
423f194a RD |
30613 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
30614 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
30615 | } | |
d14a1e28 RD |
30616 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
30617 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
30618 | } | |
30619 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
30620 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30621 | } | |
30622 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
30623 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30624 | } | |
30625 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
30626 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30627 | } | |
30628 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
30629 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30630 | } | |
30631 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
30632 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
30633 | } | |
30634 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
30635 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
30636 | } | |
30637 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
30638 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
30639 | } | |
30640 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
30641 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
30642 | } | |
30643 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
30644 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
30645 | } | |
30646 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
30647 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30648 | } | |
30649 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
30650 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
30651 | } | |
30652 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
30653 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
30654 | } | |
30655 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
30656 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
30657 | } | |
30658 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
30659 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
30660 | } | |
30661 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
30662 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
30663 | } | |
30664 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
30665 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30666 | } | |
30667 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
30668 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30669 | } | |
30670 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
30671 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
30672 | } | |
30673 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
30674 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
30675 | } | |
30676 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
30677 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
30678 | } | |
30679 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
30680 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
30681 | } | |
30682 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
30683 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30684 | } | |
30685 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
30686 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30687 | } | |
30688 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
30689 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
30690 | } | |
30691 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
30692 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30693 | } | |
30694 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
30695 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
30696 | } | |
30697 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
30698 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
30699 | } | |
30700 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
30701 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
30702 | } | |
30703 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
30704 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
30705 | } | |
30706 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
30707 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
30708 | } | |
30709 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
30710 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30711 | } | |
30712 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
30713 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
30714 | } | |
30715 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
30716 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
30717 | } | |
30718 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
30719 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
30720 | } | |
30721 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
30722 | return (void *)((wxWindow *) ((wxControl *) x)); | |
30723 | } | |
30724 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
30725 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
30726 | } | |
30727 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
30728 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30729 | } | |
30730 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
30731 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
30732 | } | |
30733 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
30734 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
30735 | } | |
30736 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
30737 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
30738 | } | |
30739 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
30740 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
30741 | } | |
30742 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
30743 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
30744 | } | |
30745 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
30746 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
30747 | } | |
30748 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
30749 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
30750 | } | |
30751 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
30752 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30753 | } | |
30754 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
30755 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
30756 | } | |
30757 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
30758 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
30759 | } | |
30760 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
30761 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
30762 | } | |
30763 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
30764 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30765 | } | |
30766 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
30767 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30768 | } | |
30769 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
30770 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30771 | } | |
30772 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
30773 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30774 | } | |
30775 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
30776 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30777 | } | |
30778 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
30779 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
30780 | } | |
30781 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
30782 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
30783 | } | |
30784 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
30785 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
30786 | } | |
30787 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
30788 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
30789 | } | |
30790 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
30791 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
30792 | } | |
30793 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
30794 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
30795 | } | |
30796 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
30797 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
30798 | } | |
30799 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
30800 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30801 | } | |
30802 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
30803 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30804 | } | |
30805 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
30806 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
30807 | } | |
30808 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
30809 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30810 | } | |
30811 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
30812 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30813 | } | |
30814 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
30815 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30816 | } | |
30817 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
30818 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
30819 | } | |
30820 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
30821 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30822 | } | |
30823 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
30824 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30825 | } | |
30826 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
30827 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30828 | } | |
30829 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
30830 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30831 | } | |
30832 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
30833 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30834 | } | |
30835 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
30836 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
30837 | } | |
30838 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
30839 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30840 | } | |
30841 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
30842 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30843 | } | |
d896a793 RD |
30844 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
30845 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30846 | } | |
d14a1e28 RD |
30847 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
30848 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
30849 | } | |
30850 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
30851 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30852 | } | |
30853 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
30854 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30855 | } | |
30856 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
30857 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30858 | } | |
30859 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
30860 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
30861 | } | |
30862 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
30863 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
30864 | } | |
30865 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
30866 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
30867 | } | |
30868 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
30869 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
30870 | } | |
30871 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0},{"_p_wxTextUrlEvent"},{0}}; | |
30872 | 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}}; | |
30873 | 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 |
30874 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0},{"_p_wxCheckBox"},{0}}; |
30875 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0},{"_p_wxPyTreeCtrl"},{0}}; | |
d896a793 | 30876 | 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 |
30877 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0},{"_p_wxGenericDirCtrl"},{0}}; |
30878 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}}; | |
30879 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0},{"_p_wxPyTreeItemData"},{0}}; | |
30880 | 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}}; | |
30881 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0},{"_p_wxDirFilterListCtrl"},{0}}; | |
30882 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0},{"_p_wxPyListCtrl"},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl},{0}}; | |
30883 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0},{"_p_wxStaticLine"},{0}}; | |
30884 | 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}}; | |
30885 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0},{"_p_wxPyControl"},{0}}; | |
30886 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0},{"_p_wxGauge"},{0}}; | |
30887 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0},{"_p_wxToolBarBase"},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase},{0}}; | |
30888 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
30889 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0},{"_p_wxToggleButton"},{0}}; | |
30890 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0},{"_p_wxRadioButton"},{0}}; | |
30891 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice},{"_p_wxChoice"},{0}}; | |
423f194a | 30892 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxMemoryDC"},{0}}; |
d14a1e28 | 30893 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0},{"_p_wxListItemAttr"},{0}}; |
58203fa6 | 30894 | static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0},{"_p_void"},{0}}; |
d14a1e28 RD |
30895 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
30896 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
423f194a | 30897 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; |
d14a1e28 RD |
30898 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0},{"_p_wxListView"},{0}}; |
30899 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
30900 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
30901 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0},{"_p_wxNotebook"},{0}}; | |
d896a793 | 30902 | 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 |
30903 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; |
30904 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0},{"_p_wxListbook"},{0}}; | |
30905 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0},{"_p_wxStaticBitmap"},{0}}; | |
30906 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0},{"_p_wxSlider"},{0}}; | |
30907 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
30908 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}}; | |
30909 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0},{"_p_wxContextHelp"},{0}}; | |
30910 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
30911 | 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}}; | |
30912 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0},{"_p_wxListEvent"},{0}}; | |
30913 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0},{"_p_wxListBox"},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox},{0}}; | |
30914 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0},{"_p_wxCheckListBox"},{0}}; | |
30915 | 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}}; | |
30916 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0},{"_p_wxSpinButton"},{0}}; | |
30917 | 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}}; | |
30918 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0},{"_p_wxBitmapButton"},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton},{0}}; | |
30919 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
30920 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0},{"_p_wxContextHelpButton"},{0}}; | |
30921 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0},{"_p_wxRadioBox"},{0}}; | |
30922 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0},{"_p_wxScrollBar"},{0}}; | |
8edf1c75 | 30923 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
30924 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}}; |
30925 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0},{"_p_wxComboBox"},{0}}; | |
30926 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0},{"_p_wxHelpEvent"},{0}}; | |
30927 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0},{"_p_wxListItem"},{0}}; | |
30928 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0},{"_p_wxNotebookSizer"},{0}}; | |
d896a793 | 30929 | static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0},{"_p_wxSpinEvent"},{0}}; |
423f194a | 30930 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}}; |
d14a1e28 RD |
30931 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0},{"_p_wxSpinCtrl"},{0}}; |
30932 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
30933 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0},{"_p_wxHelpProvider"},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider},{0}}; | |
30934 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0},{"_p_wxTextAttr"},{0}}; | |
30935 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0},{"_p_wxSimpleHelpProvider"},{0}}; | |
30936 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
30937 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0},{"_p_wxListbookEvent"},{0}}; | |
30938 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0},{"_p_wxNotebookEvent"},{0}}; | |
d896a793 | 30939 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxListView", _p_wxListViewTo_p_wxObject},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxListbook", _p_wxListbookTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject},{"_p_wxSlider", _p_wxSliderTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject},{"_p_wxButton", _p_wxButtonTo_p_wxObject},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject},{"_p_wxListItem", _p_wxListItemTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{0}}; |
423f194a | 30940 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; |
d14a1e28 RD |
30941 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; |
30942 | 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}}; | |
30943 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
30944 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
30945 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0},{"_p_wxTreeEvent"},{0}}; | |
30946 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
d896a793 | 30947 | 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 |
30948 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0},{"_p_wxStaticText"},{0}}; |
30949 | 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}}; | |
30950 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0},{"_p_wxToolBarToolBase"},{0}}; | |
30951 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
30952 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}}; | |
30953 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0},{"_p_wxBookCtrlSizer"},{0}}; | |
30954 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
30955 | ||
30956 | static swig_type_info *swig_types_initial[] = { | |
30957 | _swigt__p_wxTextUrlEvent, | |
30958 | _swigt__p_wxBookCtrlEvent, | |
30959 | _swigt__p_wxSizer, | |
d14a1e28 RD |
30960 | _swigt__p_wxCheckBox, |
30961 | _swigt__p_wxPyTreeCtrl, | |
30962 | _swigt__p_wxEvent, | |
30963 | _swigt__p_wxGenericDirCtrl, | |
30964 | _swigt__p_bool, | |
30965 | _swigt__p_wxPyTreeItemData, | |
30966 | _swigt__p_wxItemContainer, | |
30967 | _swigt__p_wxDirFilterListCtrl, | |
30968 | _swigt__p_wxPyListCtrl, | |
30969 | _swigt__p_wxStaticLine, | |
30970 | _swigt__p_wxControl, | |
30971 | _swigt__p_wxPyControl, | |
30972 | _swigt__p_wxGauge, | |
30973 | _swigt__p_wxToolBarBase, | |
30974 | _swigt__p_wxFont, | |
30975 | _swigt__p_wxToggleButton, | |
30976 | _swigt__p_wxRadioButton, | |
30977 | _swigt__p_wxChoice, | |
423f194a | 30978 | _swigt__p_wxMemoryDC, |
d14a1e28 | 30979 | _swigt__p_wxListItemAttr, |
58203fa6 | 30980 | _swigt__p_void, |
d14a1e28 RD |
30981 | _swigt__p_int, |
30982 | _swigt__p_wxSize, | |
423f194a | 30983 | _swigt__p_wxDC, |
d14a1e28 RD |
30984 | _swigt__p_wxListView, |
30985 | _swigt__p_wxIcon, | |
30986 | _swigt__p_wxTextCtrl, | |
30987 | _swigt__p_wxNotebook, | |
30988 | _swigt__p_wxNotifyEvent, | |
30989 | _swigt__p_wxArrayString, | |
30990 | _swigt__p_wxListbook, | |
30991 | _swigt__p_wxStaticBitmap, | |
30992 | _swigt__p_wxSlider, | |
30993 | _swigt__p_wxStaticBox, | |
30994 | _swigt__p_wxArrayInt, | |
30995 | _swigt__p_wxContextHelp, | |
30996 | _swigt__p_long, | |
30997 | _swigt__p_wxEvtHandler, | |
30998 | _swigt__p_wxListEvent, | |
30999 | _swigt__p_wxListBox, | |
31000 | _swigt__p_wxCheckListBox, | |
31001 | _swigt__p_wxBookCtrl, | |
31002 | _swigt__p_wxSpinButton, | |
31003 | _swigt__p_wxButton, | |
31004 | _swigt__p_wxBitmapButton, | |
31005 | _swigt__p_wxRect, | |
31006 | _swigt__p_wxContextHelpButton, | |
31007 | _swigt__p_wxRadioBox, | |
31008 | _swigt__p_wxScrollBar, | |
8edf1c75 | 31009 | _swigt__p_char, |
d14a1e28 RD |
31010 | _swigt__p_wxTreeItemId, |
31011 | _swigt__p_wxComboBox, | |
31012 | _swigt__p_wxHelpEvent, | |
31013 | _swigt__p_wxListItem, | |
31014 | _swigt__p_wxNotebookSizer, | |
d896a793 | 31015 | _swigt__p_wxSpinEvent, |
423f194a | 31016 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
31017 | _swigt__p_wxSpinCtrl, |
31018 | _swigt__p_wxImageList, | |
31019 | _swigt__p_wxHelpProvider, | |
31020 | _swigt__p_wxTextAttr, | |
31021 | _swigt__p_wxSimpleHelpProvider, | |
31022 | _swigt__p_wxPoint, | |
31023 | _swigt__p_wxListbookEvent, | |
31024 | _swigt__p_wxNotebookEvent, | |
31025 | _swigt__p_wxObject, | |
423f194a | 31026 | _swigt__p_wxCursor, |
d14a1e28 RD |
31027 | _swigt__p_wxKeyEvent, |
31028 | _swigt__p_wxWindow, | |
31029 | _swigt__p_wxString, | |
31030 | _swigt__p_wxBitmap, | |
31031 | _swigt__p_wxTreeEvent, | |
31032 | _swigt__p_wxMouseEvent, | |
31033 | _swigt__p_wxCommandEvent, | |
31034 | _swigt__p_wxStaticText, | |
31035 | _swigt__p_wxControlWithItems, | |
31036 | _swigt__p_wxToolBarToolBase, | |
31037 | _swigt__p_wxColour, | |
31038 | _swigt__p_wxToolBar, | |
31039 | _swigt__p_wxBookCtrlSizer, | |
31040 | _swigt__p_wxValidator, | |
31041 | 0 | |
31042 | }; | |
31043 | ||
31044 | ||
31045 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
31046 | ||
31047 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
31048 | {0}}; |
31049 | ||
31050 | #ifdef __cplusplus | |
31051 | } | |
31052 | #endif | |
31053 | ||
31054 | #ifdef __cplusplus | |
31055 | extern "C" | |
31056 | #endif | |
31057 | SWIGEXPORT(void) SWIG_init(void) { | |
31058 | static PyObject *SWIG_globals = 0; | |
31059 | static int typeinit = 0; | |
31060 | PyObject *m, *d; | |
31061 | int i; | |
31062 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
31063 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
31064 | d = PyModule_GetDict(m); | |
31065 | ||
31066 | if (!typeinit) { | |
31067 | for (i = 0; swig_types_initial[i]; i++) { | |
31068 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
31069 | } | |
31070 | typeinit = 1; | |
31071 | } | |
31072 | SWIG_InstallConstants(d,swig_const_table); | |
31073 | ||
cbd72d4f RD |
31074 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
31075 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
8edf1c75 RD |
31076 | PyDict_SetItemString(d,"BU_LEFT", SWIG_PyObj_FromInt((int)wxBU_LEFT)); |
31077 | PyDict_SetItemString(d,"BU_TOP", SWIG_PyObj_FromInt((int)wxBU_TOP)); | |
31078 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_PyObj_FromInt((int)wxBU_RIGHT)); | |
31079 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_PyObj_FromInt((int)wxBU_BOTTOM)); | |
31080 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_PyObj_FromInt((int)wxBU_EXACTFIT)); | |
31081 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_PyObj_FromInt((int)wxBU_AUTODRAW)); | |
cbd72d4f | 31082 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
8edf1c75 RD |
31083 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_PyObj_FromInt((int)wxCHK_2STATE)); |
31084 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_PyObj_FromInt((int)wxCHK_3STATE)); | |
31085 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_PyObj_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
31086 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_PyObj_FromInt((int)wxCHK_UNCHECKED)); | |
31087 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_PyObj_FromInt((int)wxCHK_CHECKED)); | |
31088 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_PyObj_FromInt((int)wxCHK_UNDETERMINED)); | |
cbd72d4f RD |
31089 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
31090 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
31091 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
8edf1c75 RD |
31092 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_PyObj_FromInt((int)wxGA_HORIZONTAL)); |
31093 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_PyObj_FromInt((int)wxGA_VERTICAL)); | |
31094 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_PyObj_FromInt((int)wxGA_SMOOTH)); | |
31095 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_PyObj_FromInt((int)wxGA_PROGRESSBAR)); | |
cbd72d4f RD |
31096 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
31097 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
31098 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
31099 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
31100 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
8edf1c75 RD |
31101 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_PyObj_FromInt((int)wxTE_NO_VSCROLL)); |
31102 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_PyObj_FromInt((int)wxTE_AUTO_SCROLL)); | |
31103 | PyDict_SetItemString(d,"TE_READONLY", SWIG_PyObj_FromInt((int)wxTE_READONLY)); | |
31104 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_PyObj_FromInt((int)wxTE_MULTILINE)); | |
31105 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_PyObj_FromInt((int)wxTE_PROCESS_TAB)); | |
31106 | PyDict_SetItemString(d,"TE_LEFT", SWIG_PyObj_FromInt((int)wxTE_LEFT)); | |
31107 | PyDict_SetItemString(d,"TE_CENTER", SWIG_PyObj_FromInt((int)wxTE_CENTER)); | |
31108 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_PyObj_FromInt((int)wxTE_RIGHT)); | |
31109 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_PyObj_FromInt((int)wxTE_CENTRE)); | |
31110 | PyDict_SetItemString(d,"TE_RICH", SWIG_PyObj_FromInt((int)wxTE_RICH)); | |
31111 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_PyObj_FromInt((int)wxTE_PROCESS_ENTER)); | |
31112 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_PyObj_FromInt((int)wxTE_PASSWORD)); | |
31113 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_PyObj_FromInt((int)wxTE_AUTO_URL)); | |
31114 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_PyObj_FromInt((int)wxTE_NOHIDESEL)); | |
31115 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_PyObj_FromInt((int)wxTE_DONTWRAP)); | |
31116 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_PyObj_FromInt((int)wxTE_LINEWRAP)); | |
31117 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_PyObj_FromInt((int)wxTE_WORDWRAP)); | |
31118 | PyDict_SetItemString(d,"TE_RICH2", SWIG_PyObj_FromInt((int)wxTE_RICH2)); | |
31119 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
31120 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
31121 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
31122 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
31123 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
31124 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
31125 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
31126 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
31127 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
31128 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
31129 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
31130 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
31131 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
31132 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT)); | |
31133 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
31134 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
31135 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
31136 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TABS)); | |
02a34c4c RD |
31137 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_PyObj_FromInt((int)wxTE_HT_UNKNOWN)); |
31138 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_PyObj_FromInt((int)wxTE_HT_BEFORE)); | |
31139 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_PyObj_FromInt((int)wxTE_HT_ON_TEXT)); | |
31140 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_PyObj_FromInt((int)wxTE_HT_BELOW)); | |
31141 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_PyObj_FromInt((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
31142 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
31143 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
31144 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
31145 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
cbd72d4f RD |
31146 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
31147 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
31148 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
8edf1c75 RD |
31149 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSP_HORIZONTAL)); |
31150 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_PyObj_FromInt((int)wxSP_VERTICAL)); | |
31151 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_PyObj_FromInt((int)wxSP_ARROW_KEYS)); | |
31152 | PyDict_SetItemString(d,"SP_WRAP", SWIG_PyObj_FromInt((int)wxSP_WRAP)); | |
d14a1e28 | 31153 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
cbd72d4f RD |
31154 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
31155 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
31156 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
31157 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 31158 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
cbd72d4f | 31159 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
8edf1c75 RD |
31160 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_PyObj_FromInt((int)wxNB_FIXEDWIDTH)); |
31161 | PyDict_SetItemString(d,"NB_TOP", SWIG_PyObj_FromInt((int)wxNB_TOP)); | |
31162 | PyDict_SetItemString(d,"NB_LEFT", SWIG_PyObj_FromInt((int)wxNB_LEFT)); | |
31163 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_PyObj_FromInt((int)wxNB_RIGHT)); | |
31164 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_PyObj_FromInt((int)wxNB_BOTTOM)); | |
31165 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_PyObj_FromInt((int)wxNB_MULTILINE)); | |
31166 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
31167 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONICON)); | |
31168 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
31169 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
31170 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
31171 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
8edf1c75 RD |
31172 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_PyObj_FromInt((int)wxLB_DEFAULT)); |
31173 | PyDict_SetItemString(d,"LB_TOP", SWIG_PyObj_FromInt((int)wxLB_TOP)); | |
31174 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_PyObj_FromInt((int)wxLB_BOTTOM)); | |
31175 | PyDict_SetItemString(d,"LB_LEFT", SWIG_PyObj_FromInt((int)wxLB_LEFT)); | |
31176 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_PyObj_FromInt((int)wxLB_RIGHT)); | |
31177 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_PyObj_FromInt((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
31178 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
31179 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
8edf1c75 RD |
31180 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_BUTTON)); |
31181 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
31182 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
31183 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_PyObj_FromInt((int)wxTB_HORIZONTAL)); | |
31184 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_PyObj_FromInt((int)wxTB_VERTICAL)); | |
31185 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_PyObj_FromInt((int)wxTB_3DBUTTONS)); | |
31186 | PyDict_SetItemString(d,"TB_FLAT", SWIG_PyObj_FromInt((int)wxTB_FLAT)); | |
31187 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_PyObj_FromInt((int)wxTB_DOCKABLE)); | |
31188 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_PyObj_FromInt((int)wxTB_NOICONS)); | |
31189 | PyDict_SetItemString(d,"TB_TEXT", SWIG_PyObj_FromInt((int)wxTB_TEXT)); | |
31190 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_PyObj_FromInt((int)wxTB_NODIVIDER)); | |
31191 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_PyObj_FromInt((int)wxTB_NOALIGN)); | |
31192 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_PyObj_FromInt((int)wxTB_HORZ_LAYOUT)); | |
31193 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_PyObj_FromInt((int)wxTB_HORZ_TEXT)); | |
cbd72d4f | 31194 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
8edf1c75 RD |
31195 | PyDict_SetItemString(d,"LC_VRULES", SWIG_PyObj_FromInt((int)wxLC_VRULES)); |
31196 | PyDict_SetItemString(d,"LC_HRULES", SWIG_PyObj_FromInt((int)wxLC_HRULES)); | |
31197 | PyDict_SetItemString(d,"LC_ICON", SWIG_PyObj_FromInt((int)wxLC_ICON)); | |
31198 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_PyObj_FromInt((int)wxLC_SMALL_ICON)); | |
31199 | PyDict_SetItemString(d,"LC_LIST", SWIG_PyObj_FromInt((int)wxLC_LIST)); | |
31200 | PyDict_SetItemString(d,"LC_REPORT", SWIG_PyObj_FromInt((int)wxLC_REPORT)); | |
31201 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLC_ALIGN_TOP)); | |
31202 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLC_ALIGN_LEFT)); | |
31203 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_PyObj_FromInt((int)wxLC_AUTOARRANGE)); | |
31204 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_PyObj_FromInt((int)wxLC_VIRTUAL)); | |
31205 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxLC_EDIT_LABELS)); | |
31206 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_HEADER)); | |
31207 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_SORT_HEADER)); | |
31208 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_PyObj_FromInt((int)wxLC_SINGLE_SEL)); | |
31209 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_ASCENDING)); | |
31210 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_DESCENDING)); | |
31211 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_PyObj_FromInt((int)wxLC_MASK_TYPE)); | |
31212 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_PyObj_FromInt((int)wxLC_MASK_ALIGN)); | |
31213 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_PyObj_FromInt((int)wxLC_MASK_SORT)); | |
31214 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_PyObj_FromInt((int)wxLIST_MASK_STATE)); | |
31215 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_PyObj_FromInt((int)wxLIST_MASK_TEXT)); | |
31216 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_PyObj_FromInt((int)wxLIST_MASK_IMAGE)); | |
31217 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_PyObj_FromInt((int)wxLIST_MASK_DATA)); | |
31218 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_PyObj_FromInt((int)wxLIST_SET_ITEM)); | |
31219 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_PyObj_FromInt((int)wxLIST_MASK_WIDTH)); | |
31220 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_PyObj_FromInt((int)wxLIST_MASK_FORMAT)); | |
31221 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_PyObj_FromInt((int)wxLIST_STATE_DONTCARE)); | |
31222 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
31223 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FOCUSED)); | |
31224 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_PyObj_FromInt((int)wxLIST_STATE_SELECTED)); | |
31225 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_PyObj_FromInt((int)wxLIST_STATE_CUT)); | |
31226 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DISABLED)); | |
31227 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FILTERED)); | |
31228 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_PyObj_FromInt((int)wxLIST_STATE_INUSE)); | |
31229 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_PyObj_FromInt((int)wxLIST_STATE_PICKED)); | |
31230 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_PyObj_FromInt((int)wxLIST_STATE_SOURCE)); | |
31231 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
31232 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_BELOW)); | |
31233 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
31234 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
31235 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
31236 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
31237 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
31238 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
31239 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
31240 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
31241 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ABOVE)); | |
31242 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ALL)); | |
31243 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_PyObj_FromInt((int)wxLIST_NEXT_BELOW)); | |
31244 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_LEFT)); | |
31245 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_RIGHT)); | |
31246 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
31247 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_LEFT)); | |
31248 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_TOP)); | |
31249 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
31250 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_LEFT)); | |
31251 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
31252 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
31253 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTER)); | |
31254 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE)); | |
31255 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
31256 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_PyObj_FromInt((int)wxLIST_RECT_BOUNDS)); | |
31257 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_PyObj_FromInt((int)wxLIST_RECT_ICON)); | |
31258 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_PyObj_FromInt((int)wxLIST_RECT_LABEL)); | |
31259 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_PyObj_FromInt((int)wxLIST_FIND_UP)); | |
31260 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_PyObj_FromInt((int)wxLIST_FIND_DOWN)); | |
31261 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FIND_LEFT)); | |
31262 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
31263 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
31264 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
31265 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
31266 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
31267 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
31268 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
31269 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
31270 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
31271 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
31272 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
31273 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
31274 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
31275 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
31276 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
31277 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
31278 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
31279 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
31280 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
31281 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
31282 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
31283 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
31284 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
31285 | ||
31286 | // Map renamed classes back to their common name for OOR | |
31287 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
31288 | ||
cbd72d4f | 31289 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
8edf1c75 RD |
31290 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_NO_BUTTONS)); |
31291 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_HAS_BUTTONS)); | |
31292 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_PyObj_FromInt((int)wxTR_NO_LINES)); | |
31293 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_PyObj_FromInt((int)wxTR_LINES_AT_ROOT)); | |
31294 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_PyObj_FromInt((int)wxTR_SINGLE)); | |
31295 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_PyObj_FromInt((int)wxTR_MULTIPLE)); | |
31296 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_PyObj_FromInt((int)wxTR_EXTENDED)); | |
31297 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_PyObj_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
31298 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxTR_EDIT_LABELS)); | |
31299 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_PyObj_FromInt((int)wxTR_HIDE_ROOT)); | |
31300 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_PyObj_FromInt((int)wxTR_ROW_LINES)); | |
31301 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_PyObj_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
31302 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_PyObj_FromInt((int)wxTR_DEFAULT_STYLE)); | |
31303 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_TWIST_BUTTONS)); | |
31304 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_MAC_BUTTONS)); | |
31305 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_AQUA_BUTTONS)); | |
31306 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Normal)); | |
31307 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Selected)); | |
31308 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Expanded)); | |
31309 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
31310 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Max)); | |
31311 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
31312 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_BELOW)); | |
31313 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
31314 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
31315 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
31316 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
31317 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
31318 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
31319 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
31320 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
31321 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
31322 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
31323 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
31324 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
31325 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
31326 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
31327 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
31328 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
31329 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
31330 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
31331 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
31332 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
31333 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
31334 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
31335 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
31336 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
31337 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
31338 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
31339 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
31340 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
31341 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
31342 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
31343 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
9fd4be55 | 31344 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
31345 | |
31346 | // Map renamed classes back to their common name for OOR | |
31347 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
31348 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
31349 | ||
cbd72d4f | 31350 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
8edf1c75 RD |
31351 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_PyObj_FromInt((int)wxDIRCTRL_DIR_ONLY)); |
31352 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_PyObj_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
31353 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_PyObj_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
31354 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_PyObj_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
31355 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
31356 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
31357 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
31358 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
31359 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
423f194a RD |
31360 | |
31361 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
31362 | ||
d14a1e28 RD |
31363 | } |
31364 |