]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
83448d71 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
f0983263 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
f0983263 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
f0983263 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
f0983263 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
f0983263 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
f0983263 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
f0983263 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
f0983263 | 126 | |
d14a1e28 RD |
127 | /*********************************************************************** |
128 | * pyrun.swg for wxPython | |
129 | * | |
130 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
131 | * but not the runtime functions themselves. This helps keep the | |
132 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
133 | * anyway. | |
134 | * | |
135 | ************************************************************************/ | |
136 | ||
d14a1e28 RD |
137 | #include "Python.h" |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
d14a1e28 RD |
167 | /* Common SWIG API */ |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
83448d71 | 174 | |
d14a1e28 RD |
175 | /* Python-specific SWIG API */ |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
8edf1c75 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
f0983263 RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
8edf1c75 RD |
198 | /* ----------------------------------------------------------------------------- |
199 | * the needed conversions between C++ and python | |
200 | * ----------------------------------------------------------------------------- */ | |
201 | /* basic types */ | |
202 | /* | |
203 | utilities | |
204 | */ | |
205 | SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
206 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr); | |
207 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj); | |
208 | SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type, | |
209 | long min_value, long max_value); | |
210 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type, | |
211 | unsigned long max_value); | |
212 | SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
213 | SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info, | |
214 | char** cptr, size_t* size); | |
215 | SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info, | |
216 | char* carray, size_t size); | |
217 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size); | |
218 | SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv); | |
d14a1e28 RD |
219 | |
220 | ||
221 | /* Contract support */ | |
222 | ||
423f194a | 223 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 224 | |
d14a1e28 RD |
225 | #ifdef __cplusplus |
226 | } | |
227 | #endif | |
228 | ||
229 | ||
230 | ||
231 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
232 | ||
233 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
234 | #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] | |
235 | #define SWIGTYPE_p_wxSizer swig_types[2] | |
58203fa6 RD |
236 | #define SWIGTYPE_p_wxCheckBox swig_types[3] |
237 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4] | |
238 | #define SWIGTYPE_p_wxEvent swig_types[5] | |
239 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6] | |
240 | #define SWIGTYPE_p_bool swig_types[7] | |
241 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[8] | |
242 | #define SWIGTYPE_p_wxItemContainer swig_types[9] | |
243 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[10] | |
244 | #define SWIGTYPE_p_wxPyListCtrl swig_types[11] | |
245 | #define SWIGTYPE_p_wxStaticLine swig_types[12] | |
246 | #define SWIGTYPE_p_wxControl swig_types[13] | |
247 | #define SWIGTYPE_p_wxPyControl swig_types[14] | |
248 | #define SWIGTYPE_p_wxGauge swig_types[15] | |
249 | #define SWIGTYPE_p_wxToolBarBase swig_types[16] | |
250 | #define SWIGTYPE_p_wxFont swig_types[17] | |
251 | #define SWIGTYPE_p_wxToggleButton swig_types[18] | |
252 | #define SWIGTYPE_p_wxRadioButton swig_types[19] | |
253 | #define SWIGTYPE_p_wxChoice swig_types[20] | |
254 | #define SWIGTYPE_p_wxMemoryDC swig_types[21] | |
255 | #define SWIGTYPE_p_wxListItemAttr swig_types[22] | |
256 | #define SWIGTYPE_p_void swig_types[23] | |
257 | #define SWIGTYPE_p_int swig_types[24] | |
258 | #define SWIGTYPE_p_wxSize swig_types[25] | |
259 | #define SWIGTYPE_p_wxDC swig_types[26] | |
260 | #define SWIGTYPE_p_wxListView swig_types[27] | |
261 | #define SWIGTYPE_p_wxIcon swig_types[28] | |
262 | #define SWIGTYPE_p_wxTextCtrl swig_types[29] | |
263 | #define SWIGTYPE_p_wxNotebook swig_types[30] | |
264 | #define SWIGTYPE_p_wxNotifyEvent swig_types[31] | |
265 | #define SWIGTYPE_p_wxArrayString swig_types[32] | |
266 | #define SWIGTYPE_p_wxListbook swig_types[33] | |
267 | #define SWIGTYPE_p_wxStaticBitmap swig_types[34] | |
268 | #define SWIGTYPE_p_wxSlider swig_types[35] | |
269 | #define SWIGTYPE_p_wxStaticBox swig_types[36] | |
270 | #define SWIGTYPE_p_wxArrayInt swig_types[37] | |
271 | #define SWIGTYPE_p_wxContextHelp swig_types[38] | |
272 | #define SWIGTYPE_p_long swig_types[39] | |
273 | #define SWIGTYPE_p_wxEvtHandler swig_types[40] | |
274 | #define SWIGTYPE_p_wxListEvent swig_types[41] | |
275 | #define SWIGTYPE_p_wxListBox swig_types[42] | |
276 | #define SWIGTYPE_p_wxCheckListBox swig_types[43] | |
277 | #define SWIGTYPE_p_wxBookCtrl swig_types[44] | |
278 | #define SWIGTYPE_p_wxSpinButton swig_types[45] | |
279 | #define SWIGTYPE_p_wxButton swig_types[46] | |
280 | #define SWIGTYPE_p_wxBitmapButton swig_types[47] | |
281 | #define SWIGTYPE_p_wxRect swig_types[48] | |
282 | #define SWIGTYPE_p_wxContextHelpButton swig_types[49] | |
283 | #define SWIGTYPE_p_wxRadioBox swig_types[50] | |
284 | #define SWIGTYPE_p_wxScrollBar swig_types[51] | |
8edf1c75 RD |
285 | #define SWIGTYPE_p_char swig_types[52] |
286 | #define SWIGTYPE_p_wxTreeItemId swig_types[53] | |
287 | #define SWIGTYPE_p_wxComboBox swig_types[54] | |
288 | #define SWIGTYPE_p_wxHelpEvent swig_types[55] | |
289 | #define SWIGTYPE_p_wxListItem swig_types[56] | |
290 | #define SWIGTYPE_p_wxNotebookSizer swig_types[57] | |
291 | #define SWIGTYPE_p_wxSpinEvent swig_types[58] | |
292 | #define SWIGTYPE_p_wxGenericDragImage swig_types[59] | |
293 | #define SWIGTYPE_p_wxSpinCtrl swig_types[60] | |
294 | #define SWIGTYPE_p_wxImageList swig_types[61] | |
295 | #define SWIGTYPE_p_wxHelpProvider swig_types[62] | |
296 | #define SWIGTYPE_p_wxTextAttr swig_types[63] | |
297 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[64] | |
298 | #define SWIGTYPE_p_wxPoint swig_types[65] | |
299 | #define SWIGTYPE_p_wxListbookEvent swig_types[66] | |
300 | #define SWIGTYPE_p_wxNotebookEvent swig_types[67] | |
301 | #define SWIGTYPE_p_wxObject swig_types[68] | |
302 | #define SWIGTYPE_p_wxCursor swig_types[69] | |
303 | #define SWIGTYPE_p_wxKeyEvent swig_types[70] | |
304 | #define SWIGTYPE_p_wxWindow swig_types[71] | |
305 | #define SWIGTYPE_p_wxString swig_types[72] | |
306 | #define SWIGTYPE_p_wxBitmap swig_types[73] | |
307 | #define SWIGTYPE_p_wxTreeEvent swig_types[74] | |
308 | #define SWIGTYPE_p_wxMouseEvent swig_types[75] | |
309 | #define SWIGTYPE_p_wxCommandEvent swig_types[76] | |
310 | #define SWIGTYPE_p_wxStaticText swig_types[77] | |
311 | #define SWIGTYPE_p_wxControlWithItems swig_types[78] | |
312 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[79] | |
313 | #define SWIGTYPE_p_wxColour swig_types[80] | |
314 | #define SWIGTYPE_p_wxToolBar swig_types[81] | |
315 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[82] | |
316 | #define SWIGTYPE_p_wxValidator swig_types[83] | |
317 | static swig_type_info *swig_types[85]; | |
d14a1e28 RD |
318 | |
319 | /* -------- TYPES TABLE (END) -------- */ | |
320 | ||
321 | ||
322 | /*----------------------------------------------- | |
323 | @(target):= _controls.so | |
324 | ------------------------------------------------*/ | |
325 | #define SWIG_init init_controls | |
326 | ||
327 | #define SWIG_name "_controls" | |
328 | ||
8edf1c75 RD |
329 | #include <limits.h> |
330 | #include <float.h> | |
331 | #include <string.h> | |
332 | ||
333 | #ifndef SWIGSTATIC | |
334 | #ifdef __cplusplus | |
335 | #define SWIGSTATIC(a) static inline a | |
336 | #else | |
337 | #define SWIGSTATIC(a) static a | |
338 | #endif | |
339 | #endif | |
340 | ||
341 | #ifndef numeric_cast | |
342 | #ifdef __cplusplus | |
343 | #ifdef HAVE_NUMERIC_CAST | |
344 | #define numeric_cast(type,a) numeric_cast<type>(a) | |
345 | #else | |
346 | #define numeric_cast(type,a) static_cast<type>(a) | |
347 | #endif | |
348 | #else | |
349 | #define numeric_cast(type,a) (type)(a) | |
350 | #endif | |
351 | #endif | |
352 | ||
353 | ||
354 | ||
355 | #define SWIG_PyObj_FromSignedChar PyInt_FromLong | |
356 | #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong | |
357 | #define SWIG_PyObj_FromShort PyInt_FromLong | |
358 | #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong | |
359 | #define SWIG_PyObj_FromInt PyInt_FromLong | |
360 | #define SWIG_PyObj_FromLong PyInt_FromLong | |
361 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
362 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
363 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
364 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
365 | ||
366 | ||
d14a1e28 RD |
367 | #include "wx/wxPython/wxPython.h" |
368 | #include "wx/wxPython/pyclasses.h" | |
369 | ||
d03fd34d RD |
370 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
371 | static const wxString wxPyEmptyString(wxEmptyString); | |
372 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
4e760a36 RD |
373 | |
374 | const wxArrayString wxPyEmptyStringArray; | |
375 | ||
d03fd34d | 376 | static const wxString wxPyButtonNameStr(wxButtonNameStr); |
8edf1c75 RD |
377 | |
378 | SWIGSTATIC(int) | |
379 | SWIG_PyObj_AsInt(PyObject *obj) | |
380 | { | |
381 | return numeric_cast(int, | |
382 | SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX)); | |
383 | } | |
384 | ||
385 | ||
386 | SWIGSTATIC(long) | |
387 | SWIG_PyObj_AsLong(PyObject * obj) | |
388 | { | |
389 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
390 | } | |
391 | ||
d03fd34d | 392 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
8edf1c75 RD |
393 | |
394 | SWIGSTATIC(bool) | |
395 | SWIG_PyObj_AsBool(PyObject *obj) | |
396 | { | |
397 | return PyObject_IsTrue(obj) ? true : false; | |
398 | } | |
399 | ||
d03fd34d RD |
400 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); |
401 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
402 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
403 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
404 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
405 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
406 | |
407 | #include <wx/checklst.h> | |
408 | ||
d14a1e28 | 409 | |
d03fd34d | 410 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
d14a1e28 RD |
411 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ |
412 | if (clientData) { | |
413 | wxPyClientData* data = new wxPyClientData(clientData); | |
414 | self->Insert(item, pos, data); | |
415 | } else | |
416 | self->Insert(item, pos); | |
417 | } | |
418 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
419 | wxArrayInt lst; | |
420 | self->GetSelections(lst); | |
421 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
422 | for(size_t i=0; i<lst.GetCount(); i++) { | |
423 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
424 | } | |
425 | return tup; | |
426 | } | |
0ffb2aa6 RD |
427 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
428 | #ifdef __WXMSW__ | |
429 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
430 | self->GetItem(item)->SetTextColour(c); | |
431 | #endif | |
432 | } | |
433 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
434 | #ifdef __WXMSW__ | |
435 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
436 | self->GetItem(item)->SetBackgroundColour(c); | |
437 | #endif | |
438 | } | |
439 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
440 | #ifdef __WXMSW__ | |
441 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
442 | self->GetItem(item)->SetFont(f); | |
443 | #endif | |
444 | } | |
d03fd34d | 445 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 RD |
446 | |
447 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
448 | PyObject* o2; | |
449 | PyObject* o3; | |
450 | ||
451 | if (!target) { | |
452 | target = o; | |
453 | } else if (target == Py_None) { | |
454 | Py_DECREF(Py_None); | |
455 | target = o; | |
456 | } else { | |
457 | if (!PyTuple_Check(target)) { | |
458 | o2 = target; | |
459 | target = PyTuple_New(1); | |
460 | PyTuple_SetItem(target, 0, o2); | |
461 | } | |
462 | o3 = PyTuple_New(1); | |
463 | PyTuple_SetItem(o3, 0, o); | |
464 | ||
465 | o2 = target; | |
466 | target = PySequence_Concat(o2, o3); | |
467 | Py_DECREF(o2); | |
468 | Py_DECREF(o3); | |
469 | } | |
470 | return target; | |
471 | } | |
472 | ||
473 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
474 | self->AppendText(text); | |
475 | } | |
476 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
477 | return self->GetValue().Mid(from, to - from); | |
478 | } | |
d03fd34d RD |
479 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
480 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
eb9b6107 | 481 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
d03fd34d RD |
482 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
483 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
484 | |
485 | #include <wx/slider.h> | |
486 | ||
d14a1e28 | 487 | |
d03fd34d | 488 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
eb9b6107 | 489 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 490 | |
eb9b6107 | 491 | #if defined(__WXMAC__) || defined(__WXX11__) |
d14a1e28 RD |
492 | // implement dummy classes and such for wxMac |
493 | ||
494 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
495 | ||
496 | class wxToggleButton : public wxControl | |
497 | { | |
498 | public: | |
499 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
500 | const wxPoint&, const wxSize&, long, | |
501 | const wxValidator&, const wxString&) | |
cbd72d4f | 502 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
503 | |
504 | wxToggleButton() | |
cbd72d4f | 505 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
506 | }; |
507 | #endif | |
508 | ||
d03fd34d | 509 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); |
8edf1c75 RD |
510 | |
511 | SWIGSTATIC(PyObject* ) | |
512 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
513 | { | |
514 | return (value > (unsigned long)(LONG_MAX)) ? | |
515 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
516 | } | |
517 | ||
d03fd34d | 518 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
d14a1e28 RD |
519 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
520 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
521 | if (udata) { | |
522 | Py_INCREF(udata->m_obj); | |
523 | return udata->m_obj; | |
524 | } else { | |
525 | Py_INCREF(Py_None); | |
526 | return Py_None; | |
527 | } | |
528 | } | |
529 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
530 | self->SetClientData(new wxPyUserData(clientData)); | |
531 | } | |
532 | wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ | |
533 | wxPyUserData* udata = NULL; | |
534 | if (clientData && clientData != Py_None) | |
535 | udata = new wxPyUserData(clientData); | |
536 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
537 | shortHelp, longHelp, udata); | |
538 | } | |
539 | wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ | |
540 | wxPyUserData* udata = NULL; | |
541 | if (clientData && clientData != Py_None) | |
542 | udata = new wxPyUserData(clientData); | |
543 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
544 | shortHelp, longHelp, udata); | |
545 | } | |
546 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
547 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
548 | if (udata) { | |
549 | Py_INCREF(udata->m_obj); | |
550 | return udata->m_obj; | |
551 | } else { | |
552 | Py_INCREF(Py_None); | |
553 | return Py_None; | |
554 | } | |
555 | } | |
556 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
557 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
558 | } | |
559 | ||
560 | #include <wx/listctrl.h> | |
561 | ||
d14a1e28 | 562 | |
eb9b6107 | 563 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
d14a1e28 RD |
564 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
565 | // Python aware sorting function for wxPyListCtrl | |
566 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
567 | int retval = 0; | |
568 | PyObject* func = (PyObject*)funcPtr; | |
569 | wxPyBeginBlockThreads(); | |
570 | ||
571 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
572 | PyObject* result = PyEval_CallObject(func, args); | |
573 | Py_DECREF(args); | |
574 | if (result) { | |
575 | retval = PyInt_AsLong(result); | |
576 | Py_DECREF(result); | |
577 | } | |
578 | ||
579 | wxPyEndBlockThreads(); | |
580 | return retval; | |
581 | } | |
582 | ||
583 | // C++ Version of a Python aware class | |
584 | class wxPyListCtrl : public wxListCtrl { | |
585 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
586 | public: | |
587 | wxPyListCtrl() : wxListCtrl() {} | |
588 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
589 | const wxPoint& pos, | |
590 | const wxSize& size, | |
591 | long style, | |
592 | const wxValidator& validator, | |
593 | const wxString& name) : | |
594 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
595 | ||
596 | bool Create(wxWindow* parent, wxWindowID id, | |
597 | const wxPoint& pos, | |
598 | const wxSize& size, | |
599 | long style, | |
600 | const wxValidator& validator, | |
601 | const wxString& name) { | |
602 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
603 | } | |
604 | ||
605 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
606 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
607 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
608 | ||
609 | PYPRIVATE; | |
610 | }; | |
611 | ||
612 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
613 | ||
614 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
615 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
616 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
617 | ||
618 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
619 | wxListItem item; | |
620 | item.SetMask( wxLIST_MASK_STATE | | |
621 | wxLIST_MASK_TEXT | | |
622 | wxLIST_MASK_IMAGE | | |
623 | wxLIST_MASK_DATA | | |
624 | wxLIST_SET_ITEM | | |
625 | wxLIST_MASK_WIDTH | | |
626 | wxLIST_MASK_FORMAT | |
627 | ); | |
628 | if (self->GetColumn(col, item)) | |
629 | return new wxListItem(item); | |
630 | else | |
631 | return NULL; | |
632 | } | |
633 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
634 | wxListItem* info = new wxListItem; | |
635 | info->m_itemId = itemId; | |
636 | info->m_col = col; | |
637 | info->m_mask = 0xFFFF; | |
638 | self->GetItem(*info); | |
639 | return info; | |
640 | } | |
641 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
642 | wxPoint pos; | |
643 | self->GetItemPosition(item, pos); | |
644 | return pos; | |
645 | } | |
646 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
647 | wxRect rect; | |
648 | self->GetItemRect(item, rect, code); | |
649 | return rect; | |
650 | } | |
651 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
652 | if (!PyCallable_Check(func)) | |
423f194a | 653 | return False; |
d14a1e28 RD |
654 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
655 | } | |
656 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
657 | ||
658 | return self; | |
659 | ||
660 | ||
661 | ||
662 | } | |
663 | ||
664 | #include <wx/treectrl.h> | |
665 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 666 | |
eb9b6107 | 667 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
d14a1e28 | 668 | bool wxTreeItemId_operator_ee___(wxTreeItemId *self,wxTreeItemId const *other){ |
423f194a | 669 | if (!other) return False; |
d14a1e28 RD |
670 | return *self == *other; |
671 | } | |
672 | bool wxTreeItemId_operator_Ne___(wxTreeItemId *self,wxTreeItemId const *other){ | |
423f194a | 673 | if (!other) return True; |
d14a1e28 RD |
674 | return *self != *other; |
675 | } | |
676 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
677 | // C++ version of Python aware wxTreeCtrl | |
678 | class wxPyTreeCtrl : public wxTreeCtrl { | |
679 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
680 | public: | |
681 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
682 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
683 | const wxPoint& pos, | |
684 | const wxSize& size, | |
685 | long style, | |
686 | const wxValidator& validator, | |
687 | const wxString& name) : | |
688 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
689 | ||
690 | bool Create(wxWindow *parent, wxWindowID id, | |
691 | const wxPoint& pos, | |
692 | const wxSize& size, | |
693 | long style, | |
694 | const wxValidator& validator, | |
695 | const wxString& name) { | |
696 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
697 | } | |
698 | ||
699 | ||
700 | int OnCompareItems(const wxTreeItemId& item1, | |
701 | const wxTreeItemId& item2) { | |
702 | int rval = 0; | |
703 | bool found; | |
704 | wxPyBeginBlockThreads(); | |
705 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
423f194a RD |
706 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
707 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
708 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
709 | Py_DECREF(o1); | |
710 | Py_DECREF(o2); | |
711 | } | |
712 | wxPyEndBlockThreads(); | |
713 | if (! found) | |
714 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
715 | return rval; | |
716 | } | |
717 | PYPRIVATE; | |
718 | }; | |
719 | ||
720 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
721 | ||
722 | ||
8edf1c75 RD |
723 | |
724 | #define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong | |
725 | ||
726 | ||
727 | SWIGSTATIC(unsigned int) | |
728 | SWIG_PyObj_AsUnsignedInt(PyObject *obj) | |
729 | { | |
730 | return numeric_cast(unsigned int, | |
731 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX)); | |
732 | } | |
733 | ||
d14a1e28 RD |
734 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
735 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
736 | if (data == NULL) { | |
737 | data = new wxPyTreeItemData(); | |
738 | data->SetId(item); // set the id | |
739 | self->SetItemData(item, data); | |
740 | } | |
741 | return data; | |
742 | } | |
743 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
744 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
745 | if (data == NULL) { | |
746 | data = new wxPyTreeItemData(); | |
747 | data->SetId(item); // set the id | |
748 | self->SetItemData(item, data); | |
749 | } | |
750 | return data->GetData(); | |
751 | } | |
752 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
753 | data->SetId(item); // set the id | |
754 | self->SetItemData(item, data); | |
755 | } | |
756 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
757 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
758 | if (data == NULL) { | |
759 | data = new wxPyTreeItemData(obj); | |
760 | data->SetId(item); // set the id | |
761 | self->SetItemData(item, data); | |
762 | } else | |
763 | data->SetData(obj); | |
764 | } | |
765 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
766 | wxPyBeginBlockThreads(); | |
767 | PyObject* rval = PyList_New(0); | |
768 | wxArrayTreeItemIds array; | |
769 | size_t num, x; | |
770 | num = self->GetSelections(array); | |
771 | for (x=0; x < num; x++) { | |
772 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
423f194a | 773 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 RD |
774 | PyList_Append(rval, item); |
775 | } | |
776 | wxPyEndBlockThreads(); | |
777 | return rval; | |
778 | } | |
779 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
58203fa6 RD |
780 | void* cookie = 0; |
781 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
d14a1e28 RD |
782 | wxPyBeginBlockThreads(); |
783 | PyObject* tup = PyTuple_New(2); | |
58203fa6 RD |
784 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
785 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
d14a1e28 RD |
786 | wxPyEndBlockThreads(); |
787 | return tup; | |
788 | } | |
58203fa6 RD |
789 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
790 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
d14a1e28 RD |
791 | wxPyBeginBlockThreads(); |
792 | PyObject* tup = PyTuple_New(2); | |
58203fa6 RD |
793 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
794 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
d14a1e28 RD |
795 | wxPyEndBlockThreads(); |
796 | return tup; | |
797 | } | |
798 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
799 | wxRect rect; | |
800 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
801 | wxPyBeginBlockThreads(); | |
802 | wxRect* r = new wxRect(rect); | |
423f194a | 803 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
d14a1e28 RD |
804 | wxPyEndBlockThreads(); |
805 | return val; | |
806 | } | |
807 | else | |
808 | RETURN_NONE(); | |
809 | } | |
d03fd34d | 810 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
d14a1e28 RD |
811 | // C++ version of Python aware wxControl |
812 | class wxPyControl : public wxControl | |
813 | { | |
814 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
815 | public: | |
816 | wxPyControl() : wxControl() {} | |
817 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
818 | const wxPoint& pos = wxDefaultPosition, | |
819 | const wxSize& size = wxDefaultSize, | |
820 | long style = 0, | |
821 | const wxValidator& validator=wxDefaultValidator, | |
822 | const wxString& name = wxPyControlNameStr) | |
823 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
824 | ||
825 | ||
826 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
827 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
828 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
829 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
830 | ||
831 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
832 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
833 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
834 | ||
835 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
836 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
837 | ||
838 | DEC_PYCALLBACK__(InitDialog); | |
839 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
840 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
841 | DEC_PYCALLBACK_BOOL_(Validate); | |
842 | ||
843 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
844 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
845 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
846 | ||
847 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
848 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
849 | ||
850 | PYPRIVATE; | |
851 | }; | |
852 | ||
853 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
854 | ||
855 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
856 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
857 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
858 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
859 | ||
860 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
861 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
862 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
863 | ||
864 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
865 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
866 | ||
867 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
868 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
869 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
870 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
871 | ||
872 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
873 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
874 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
875 | ||
876 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
877 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
878 | ||
879 | ||
880 | ||
881 | ||
882 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
423f194a RD |
883 | |
884 | #include <wx/generic/dragimgg.h> | |
885 | ||
d14a1e28 RD |
886 | #ifdef __cplusplus |
887 | extern "C" { | |
888 | #endif | |
8edf1c75 | 889 | static int _wrap_ButtonNameStr_set(PyObject *) { |
d03fd34d RD |
890 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
891 | return 1; | |
892 | } | |
893 | ||
894 | ||
895 | static PyObject *_wrap_ButtonNameStr_get() { | |
896 | PyObject *pyobj; | |
897 | ||
898 | { | |
899 | #if wxUSE_UNICODE | |
900 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
901 | #else | |
902 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
903 | #endif | |
904 | } | |
905 | return pyobj; | |
906 | } | |
907 | ||
908 | ||
d14a1e28 RD |
909 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { |
910 | PyObject *resultobj; | |
911 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 912 | int arg2 ; |
d14a1e28 RD |
913 | wxString *arg3 = 0 ; |
914 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
915 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
916 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
917 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
918 | long arg6 = (long) 0 ; | |
919 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
920 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
921 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
922 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
923 | wxButton *result; | |
423f194a | 924 | bool temp3 = False ; |
d14a1e28 RD |
925 | wxPoint temp4 ; |
926 | wxSize temp5 ; | |
423f194a | 927 | bool temp8 = False ; |
d14a1e28 | 928 | PyObject * obj0 = 0 ; |
8edf1c75 | 929 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
930 | PyObject * obj2 = 0 ; |
931 | PyObject * obj3 = 0 ; | |
932 | PyObject * obj4 = 0 ; | |
8edf1c75 | 933 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
934 | PyObject * obj6 = 0 ; |
935 | PyObject * obj7 = 0 ; | |
936 | char *kwnames[] = { | |
937 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
938 | }; | |
939 | ||
8edf1c75 | 940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
942 | { |
943 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
944 | if (PyErr_Occurred()) SWIG_fail; | |
945 | } | |
d14a1e28 RD |
946 | { |
947 | arg3 = wxString_in_helper(obj2); | |
948 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 949 | temp3 = True; |
d14a1e28 RD |
950 | } |
951 | if (obj3) { | |
952 | { | |
953 | arg4 = &temp4; | |
954 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
955 | } | |
956 | } | |
957 | if (obj4) { | |
958 | { | |
959 | arg5 = &temp5; | |
960 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
961 | } | |
962 | } | |
8edf1c75 RD |
963 | if (obj5) { |
964 | { | |
965 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
966 | if (PyErr_Occurred()) SWIG_fail; | |
967 | } | |
968 | } | |
d14a1e28 RD |
969 | if (obj6) { |
970 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
971 | if (arg7 == NULL) { | |
972 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
973 | } | |
974 | } | |
975 | if (obj7) { | |
976 | { | |
977 | arg8 = wxString_in_helper(obj7); | |
978 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 979 | temp8 = True; |
d14a1e28 RD |
980 | } |
981 | } | |
982 | { | |
983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
984 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
985 | ||
986 | wxPyEndAllowThreads(__tstate); | |
987 | if (PyErr_Occurred()) SWIG_fail; | |
988 | } | |
989 | { | |
990 | resultobj = wxPyMake_wxObject(result); | |
991 | } | |
992 | { | |
993 | if (temp3) | |
994 | delete arg3; | |
995 | } | |
996 | { | |
997 | if (temp8) | |
998 | delete arg8; | |
999 | } | |
1000 | return resultobj; | |
1001 | fail: | |
1002 | { | |
1003 | if (temp3) | |
1004 | delete arg3; | |
1005 | } | |
1006 | { | |
1007 | if (temp8) | |
1008 | delete arg8; | |
1009 | } | |
1010 | return NULL; | |
1011 | } | |
1012 | ||
1013 | ||
1014 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1015 | PyObject *resultobj; | |
1016 | wxButton *result; | |
1017 | char *kwnames[] = { | |
1018 | NULL | |
1019 | }; | |
1020 | ||
1021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1022 | { | |
1023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1024 | result = (wxButton *)new wxButton(); | |
1025 | ||
1026 | wxPyEndAllowThreads(__tstate); | |
1027 | if (PyErr_Occurred()) SWIG_fail; | |
1028 | } | |
1029 | { | |
1030 | resultobj = wxPyMake_wxObject(result); | |
1031 | } | |
1032 | return resultobj; | |
1033 | fail: | |
1034 | return NULL; | |
1035 | } | |
1036 | ||
1037 | ||
1038 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1039 | PyObject *resultobj; | |
1040 | wxButton *arg1 = (wxButton *) 0 ; | |
1041 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1042 | int arg3 ; |
d14a1e28 RD |
1043 | wxString *arg4 = 0 ; |
1044 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1045 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1046 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1047 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1048 | long arg7 = (long) 0 ; | |
1049 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1050 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1051 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1052 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1053 | bool result; | |
423f194a | 1054 | bool temp4 = False ; |
d14a1e28 RD |
1055 | wxPoint temp5 ; |
1056 | wxSize temp6 ; | |
423f194a | 1057 | bool temp9 = False ; |
d14a1e28 RD |
1058 | PyObject * obj0 = 0 ; |
1059 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1060 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1061 | PyObject * obj3 = 0 ; |
1062 | PyObject * obj4 = 0 ; | |
1063 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1064 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1065 | PyObject * obj7 = 0 ; |
1066 | PyObject * obj8 = 0 ; | |
1067 | char *kwnames[] = { | |
1068 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1069 | }; | |
1070 | ||
8edf1c75 | 1071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
1072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1073 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
1074 | { |
1075 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1076 | if (PyErr_Occurred()) SWIG_fail; | |
1077 | } | |
d14a1e28 RD |
1078 | { |
1079 | arg4 = wxString_in_helper(obj3); | |
1080 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 1081 | temp4 = True; |
d14a1e28 RD |
1082 | } |
1083 | if (obj4) { | |
1084 | { | |
1085 | arg5 = &temp5; | |
1086 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1087 | } | |
1088 | } | |
1089 | if (obj5) { | |
1090 | { | |
1091 | arg6 = &temp6; | |
1092 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1093 | } | |
1094 | } | |
8edf1c75 RD |
1095 | if (obj6) { |
1096 | { | |
1097 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1098 | if (PyErr_Occurred()) SWIG_fail; | |
1099 | } | |
1100 | } | |
d14a1e28 RD |
1101 | if (obj7) { |
1102 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1103 | if (arg8 == NULL) { | |
1104 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1105 | } | |
1106 | } | |
1107 | if (obj8) { | |
1108 | { | |
1109 | arg9 = wxString_in_helper(obj8); | |
1110 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1111 | temp9 = True; |
d14a1e28 RD |
1112 | } |
1113 | } | |
1114 | { | |
1115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1116 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1117 | ||
1118 | wxPyEndAllowThreads(__tstate); | |
1119 | if (PyErr_Occurred()) SWIG_fail; | |
1120 | } | |
4e760a36 | 1121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1122 | { |
1123 | if (temp4) | |
1124 | delete arg4; | |
1125 | } | |
1126 | { | |
1127 | if (temp9) | |
1128 | delete arg9; | |
1129 | } | |
1130 | return resultobj; | |
1131 | fail: | |
1132 | { | |
1133 | if (temp4) | |
1134 | delete arg4; | |
1135 | } | |
1136 | { | |
1137 | if (temp9) | |
1138 | delete arg9; | |
1139 | } | |
1140 | return NULL; | |
1141 | } | |
1142 | ||
1143 | ||
1144 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1145 | PyObject *resultobj; | |
1146 | wxButton *arg1 = (wxButton *) 0 ; | |
1147 | PyObject * obj0 = 0 ; | |
1148 | char *kwnames[] = { | |
1149 | (char *) "self", NULL | |
1150 | }; | |
1151 | ||
1152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1154 | { | |
1155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1156 | (arg1)->SetDefault(); | |
1157 | ||
1158 | wxPyEndAllowThreads(__tstate); | |
1159 | if (PyErr_Occurred()) SWIG_fail; | |
1160 | } | |
1161 | Py_INCREF(Py_None); resultobj = Py_None; | |
1162 | return resultobj; | |
1163 | fail: | |
1164 | return NULL; | |
1165 | } | |
1166 | ||
1167 | ||
d14a1e28 RD |
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 | } | |
4e760a36 | 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 *) { |
d03fd34d 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 | } | |
4e760a36 | 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 | } | |
4e760a36 | 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 | } | |
4e760a36 | 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; | |
83448d71 | 2058 | { |
8edf1c75 | 2059 | arg2 = (bool const) SWIG_PyObj_AsBool(obj1); |
83448d71 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 | } | |
4e760a36 | 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 | } | |
4e760a36 | 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 *) { |
d03fd34d 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 ; | |
4e760a36 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 ; | |
db914595 | 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 | { | |
4e760a36 RD |
2260 | if (! PySequence_Check(obj4)) { |
2261 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2262 | SWIG_fail; | |
2263 | } | |
2264 | arg5 = new wxArrayString; | |
db914595 | 2265 | temp5 = True; |
4e760a36 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 | { | |
4e760a36 | 2282 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
2283 | if (PyErr_Occurred()) SWIG_fail; |
2284 | } | |
2285 | } | |
d14a1e28 | 2286 | if (obj6) { |
4e760a36 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 | { | |
4e760a36 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(); | |
4e760a36 | 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 | { | |
db914595 | 2308 | if (temp5) delete arg5; |
d14a1e28 RD |
2309 | } |
2310 | { | |
2311 | if (temp8) | |
4e760a36 | 2312 | delete arg8; |
d14a1e28 RD |
2313 | } |
2314 | return resultobj; | |
2315 | fail: | |
2316 | { | |
db914595 | 2317 | if (temp5) delete arg5; |
d14a1e28 RD |
2318 | } |
2319 | { | |
2320 | if (temp8) | |
4e760a36 | 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 ; | |
4e760a36 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 ; | |
db914595 | 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 | { | |
4e760a36 RD |
2404 | if (! PySequence_Check(obj5)) { |
2405 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2406 | SWIG_fail; | |
2407 | } | |
2408 | arg6 = new wxArrayString; | |
db914595 | 2409 | temp6 = True; |
4e760a36 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 | { | |
4e760a36 | 2426 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
2427 | if (PyErr_Occurred()) SWIG_fail; |
2428 | } | |
2429 | } | |
d14a1e28 | 2430 | if (obj7) { |
4e760a36 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 | { | |
4e760a36 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(); | |
4e760a36 | 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 | } | |
4e760a36 | 2450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 2451 | { |
db914595 | 2452 | if (temp6) delete arg6; |
d14a1e28 RD |
2453 | } |
2454 | { | |
2455 | if (temp9) | |
4e760a36 | 2456 | delete arg9; |
d14a1e28 RD |
2457 | } |
2458 | return resultobj; | |
2459 | fail: | |
2460 | { | |
db914595 | 2461 | if (temp6) delete arg6; |
d14a1e28 RD |
2462 | } |
2463 | { | |
2464 | if (temp9) | |
4e760a36 | 2465 | delete arg9; |
d14a1e28 RD |
2466 | } |
2467 | return NULL; | |
2468 | } | |
2469 | ||
2470 | ||
2471 | static PyObject *_wrap_Choice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2472 | PyObject *resultobj; | |
2473 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2474 | int result; | |
2475 | PyObject * obj0 = 0 ; | |
2476 | char *kwnames[] = { | |
2477 | (char *) "self", NULL | |
2478 | }; | |
2479 | ||
2480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choice_GetColumns",kwnames,&obj0)) goto fail; | |
2481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2482 | { | |
2483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2484 | result = (int)(arg1)->GetColumns(); | |
2485 | ||
2486 | wxPyEndAllowThreads(__tstate); | |
2487 | if (PyErr_Occurred()) SWIG_fail; | |
2488 | } | |
8edf1c75 | 2489 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2490 | return resultobj; |
2491 | fail: | |
2492 | return NULL; | |
2493 | } | |
2494 | ||
2495 | ||
2496 | static PyObject *_wrap_Choice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2497 | PyObject *resultobj; | |
2498 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2499 | int arg2 = (int) (int)1 ; | |
2500 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2501 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2502 | char *kwnames[] = { |
2503 | (char *) "self",(char *) "n", NULL | |
2504 | }; | |
2505 | ||
8edf1c75 | 2506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Choice_SetColumns",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2508 | if (obj1) { |
2509 | { | |
2510 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
2511 | if (PyErr_Occurred()) SWIG_fail; | |
2512 | } | |
2513 | } | |
d14a1e28 RD |
2514 | { |
2515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2516 | (arg1)->SetColumns(arg2); | |
2517 | ||
2518 | wxPyEndAllowThreads(__tstate); | |
2519 | if (PyErr_Occurred()) SWIG_fail; | |
2520 | } | |
2521 | Py_INCREF(Py_None); resultobj = Py_None; | |
2522 | return resultobj; | |
2523 | fail: | |
2524 | return NULL; | |
2525 | } | |
2526 | ||
2527 | ||
2528 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2529 | PyObject *resultobj; | |
2530 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2531 | int arg2 ; | |
2532 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2533 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2534 | char *kwnames[] = { |
2535 | (char *) "self",(char *) "n", NULL | |
2536 | }; | |
2537 | ||
8edf1c75 | 2538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2540 | { |
2541 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
2542 | if (PyErr_Occurred()) SWIG_fail; | |
2543 | } | |
d14a1e28 RD |
2544 | { |
2545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2546 | (arg1)->SetSelection(arg2); | |
2547 | ||
2548 | wxPyEndAllowThreads(__tstate); | |
2549 | if (PyErr_Occurred()) SWIG_fail; | |
2550 | } | |
2551 | Py_INCREF(Py_None); resultobj = Py_None; | |
2552 | return resultobj; | |
2553 | fail: | |
2554 | return NULL; | |
2555 | } | |
2556 | ||
2557 | ||
2558 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2559 | PyObject *resultobj; | |
2560 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2561 | wxString *arg2 = 0 ; | |
423f194a | 2562 | bool temp2 = False ; |
d14a1e28 RD |
2563 | PyObject * obj0 = 0 ; |
2564 | PyObject * obj1 = 0 ; | |
2565 | char *kwnames[] = { | |
2566 | (char *) "self",(char *) "string", NULL | |
2567 | }; | |
2568 | ||
2569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2571 | { | |
2572 | arg2 = wxString_in_helper(obj1); | |
2573 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2574 | temp2 = True; |
d14a1e28 RD |
2575 | } |
2576 | { | |
2577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2578 | (arg1)->SetStringSelection((wxString const &)*arg2); | |
2579 | ||
2580 | wxPyEndAllowThreads(__tstate); | |
2581 | if (PyErr_Occurred()) SWIG_fail; | |
2582 | } | |
2583 | Py_INCREF(Py_None); resultobj = Py_None; | |
2584 | { | |
2585 | if (temp2) | |
2586 | delete arg2; | |
2587 | } | |
2588 | return resultobj; | |
2589 | fail: | |
2590 | { | |
2591 | if (temp2) | |
2592 | delete arg2; | |
2593 | } | |
2594 | return NULL; | |
2595 | } | |
2596 | ||
2597 | ||
2598 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2599 | PyObject *resultobj; | |
2600 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2601 | int arg2 ; | |
2602 | wxString *arg3 = 0 ; | |
423f194a | 2603 | bool temp3 = False ; |
d14a1e28 | 2604 | PyObject * obj0 = 0 ; |
8edf1c75 | 2605 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2606 | PyObject * obj2 = 0 ; |
2607 | char *kwnames[] = { | |
2608 | (char *) "self",(char *) "n",(char *) "s", NULL | |
2609 | }; | |
2610 | ||
8edf1c75 | 2611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2613 | { |
2614 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2615 | if (PyErr_Occurred()) SWIG_fail; | |
2616 | } | |
d14a1e28 RD |
2617 | { |
2618 | arg3 = wxString_in_helper(obj2); | |
2619 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2620 | temp3 = True; |
d14a1e28 RD |
2621 | } |
2622 | { | |
2623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2624 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2625 | ||
2626 | wxPyEndAllowThreads(__tstate); | |
2627 | if (PyErr_Occurred()) SWIG_fail; | |
2628 | } | |
2629 | Py_INCREF(Py_None); resultobj = Py_None; | |
2630 | { | |
2631 | if (temp3) | |
2632 | delete arg3; | |
2633 | } | |
2634 | return resultobj; | |
2635 | fail: | |
2636 | { | |
2637 | if (temp3) | |
2638 | delete arg3; | |
2639 | } | |
2640 | return NULL; | |
2641 | } | |
2642 | ||
2643 | ||
2644 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2645 | PyObject *obj; | |
2646 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2647 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2648 | Py_INCREF(obj); | |
2649 | return Py_BuildValue((char *)""); | |
2650 | } | |
8edf1c75 | 2651 | static int _wrap_ComboBoxNameStr_set(PyObject *) { |
d03fd34d RD |
2652 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
2653 | return 1; | |
2654 | } | |
2655 | ||
2656 | ||
2657 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2658 | PyObject *pyobj; | |
2659 | ||
2660 | { | |
2661 | #if wxUSE_UNICODE | |
2662 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2663 | #else | |
2664 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2665 | #endif | |
2666 | } | |
2667 | return pyobj; | |
2668 | } | |
2669 | ||
2670 | ||
d14a1e28 RD |
2671 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2672 | PyObject *resultobj; | |
2673 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2674 | int arg2 ; |
d14a1e28 RD |
2675 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2676 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2677 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2678 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2679 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2680 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
2681 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2682 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2683 | long arg7 = (long) 0 ; | |
2684 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2685 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2686 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2687 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 2688 | wxComboBox *result; |
423f194a | 2689 | bool temp3 = False ; |
d14a1e28 RD |
2690 | wxPoint temp4 ; |
2691 | wxSize temp5 ; | |
db914595 | 2692 | bool temp6 = False ; |
423f194a | 2693 | bool temp9 = False ; |
d14a1e28 | 2694 | PyObject * obj0 = 0 ; |
8edf1c75 | 2695 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2696 | PyObject * obj2 = 0 ; |
2697 | PyObject * obj3 = 0 ; | |
2698 | PyObject * obj4 = 0 ; | |
2699 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2700 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2701 | PyObject * obj7 = 0 ; |
2702 | PyObject * obj8 = 0 ; | |
2703 | char *kwnames[] = { | |
2704 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2705 | }; | |
2706 | ||
8edf1c75 | 2707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 2708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2709 | { |
2710 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2711 | if (PyErr_Occurred()) SWIG_fail; | |
2712 | } | |
d14a1e28 RD |
2713 | if (obj2) { |
2714 | { | |
2715 | arg3 = wxString_in_helper(obj2); | |
2716 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2717 | temp3 = True; |
d14a1e28 RD |
2718 | } |
2719 | } | |
2720 | if (obj3) { | |
2721 | { | |
2722 | arg4 = &temp4; | |
2723 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2724 | } | |
2725 | } | |
2726 | if (obj4) { | |
2727 | { | |
2728 | arg5 = &temp5; | |
2729 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2730 | } | |
2731 | } | |
2732 | if (obj5) { | |
2733 | { | |
4e760a36 RD |
2734 | if (! PySequence_Check(obj5)) { |
2735 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2736 | SWIG_fail; | |
2737 | } | |
2738 | arg6 = new wxArrayString; | |
db914595 | 2739 | temp6 = True; |
4e760a36 RD |
2740 | int i, len=PySequence_Length(obj5); |
2741 | for (i=0; i<len; i++) { | |
2742 | PyObject* item = PySequence_GetItem(obj5, i); | |
2743 | #if wxUSE_UNICODE | |
2744 | PyObject* str = PyObject_Unicode(item); | |
2745 | #else | |
2746 | PyObject* str = PyObject_Str(item); | |
2747 | #endif | |
2748 | arg6->Add(Py2wxString(str)); | |
2749 | Py_DECREF(item); | |
2750 | Py_DECREF(str); | |
2751 | } | |
d14a1e28 RD |
2752 | } |
2753 | } | |
8edf1c75 RD |
2754 | if (obj6) { |
2755 | { | |
4e760a36 | 2756 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
2757 | if (PyErr_Occurred()) SWIG_fail; |
2758 | } | |
2759 | } | |
d14a1e28 | 2760 | if (obj7) { |
4e760a36 RD |
2761 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2762 | if (arg8 == NULL) { | |
d14a1e28 RD |
2763 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2764 | } | |
2765 | } | |
2766 | if (obj8) { | |
2767 | { | |
4e760a36 RD |
2768 | arg9 = wxString_in_helper(obj8); |
2769 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2770 | temp9 = True; |
d14a1e28 RD |
2771 | } |
2772 | } | |
2773 | { | |
2774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 2775 | 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 |
2776 | |
2777 | wxPyEndAllowThreads(__tstate); | |
2778 | if (PyErr_Occurred()) SWIG_fail; | |
2779 | } | |
2780 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2781 | { | |
2782 | if (temp3) | |
2783 | delete arg3; | |
2784 | } | |
2785 | { | |
db914595 | 2786 | if (temp6) delete arg6; |
d14a1e28 RD |
2787 | } |
2788 | { | |
2789 | if (temp9) | |
4e760a36 | 2790 | delete arg9; |
d14a1e28 RD |
2791 | } |
2792 | return resultobj; | |
2793 | fail: | |
2794 | { | |
2795 | if (temp3) | |
2796 | delete arg3; | |
2797 | } | |
2798 | { | |
db914595 | 2799 | if (temp6) delete arg6; |
d14a1e28 RD |
2800 | } |
2801 | { | |
2802 | if (temp9) | |
4e760a36 | 2803 | delete arg9; |
d14a1e28 RD |
2804 | } |
2805 | return NULL; | |
2806 | } | |
2807 | ||
2808 | ||
2809 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2810 | PyObject *resultobj; | |
2811 | wxComboBox *result; | |
2812 | char *kwnames[] = { | |
2813 | NULL | |
2814 | }; | |
2815 | ||
2816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2817 | { | |
2818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2819 | result = (wxComboBox *)new wxComboBox(); | |
2820 | ||
2821 | wxPyEndAllowThreads(__tstate); | |
2822 | if (PyErr_Occurred()) SWIG_fail; | |
2823 | } | |
2824 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2825 | return resultobj; | |
2826 | fail: | |
2827 | return NULL; | |
2828 | } | |
2829 | ||
2830 | ||
2831 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2832 | PyObject *resultobj; | |
2833 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2834 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2835 | int arg3 ; |
d14a1e28 RD |
2836 | wxString const &arg4_defvalue = wxPyEmptyString ; |
2837 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2838 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2839 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2840 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2841 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4e760a36 RD |
2842 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
2843 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
2844 | long arg8 = (long) 0 ; | |
2845 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2846 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2847 | wxString const &arg10_defvalue = wxPyComboBoxNameStr ; | |
2848 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 2849 | bool result; |
423f194a | 2850 | bool temp4 = False ; |
d14a1e28 RD |
2851 | wxPoint temp5 ; |
2852 | wxSize temp6 ; | |
db914595 | 2853 | bool temp7 = False ; |
423f194a | 2854 | bool temp10 = False ; |
d14a1e28 RD |
2855 | PyObject * obj0 = 0 ; |
2856 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2857 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2858 | PyObject * obj3 = 0 ; |
2859 | PyObject * obj4 = 0 ; | |
2860 | PyObject * obj5 = 0 ; | |
2861 | PyObject * obj6 = 0 ; | |
8edf1c75 | 2862 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
2863 | PyObject * obj8 = 0 ; |
2864 | PyObject * obj9 = 0 ; | |
2865 | char *kwnames[] = { | |
2866 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2867 | }; | |
2868 | ||
8edf1c75 | 2869 | 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 |
2870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2871 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
2872 | { |
2873 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2874 | if (PyErr_Occurred()) SWIG_fail; | |
2875 | } | |
d14a1e28 RD |
2876 | if (obj3) { |
2877 | { | |
2878 | arg4 = wxString_in_helper(obj3); | |
2879 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2880 | temp4 = True; |
d14a1e28 RD |
2881 | } |
2882 | } | |
2883 | if (obj4) { | |
2884 | { | |
2885 | arg5 = &temp5; | |
2886 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2887 | } | |
2888 | } | |
2889 | if (obj5) { | |
2890 | { | |
2891 | arg6 = &temp6; | |
2892 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2893 | } | |
2894 | } | |
2895 | if (obj6) { | |
2896 | { | |
4e760a36 RD |
2897 | if (! PySequence_Check(obj6)) { |
2898 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2899 | SWIG_fail; | |
2900 | } | |
2901 | arg7 = new wxArrayString; | |
db914595 | 2902 | temp7 = True; |
4e760a36 RD |
2903 | int i, len=PySequence_Length(obj6); |
2904 | for (i=0; i<len; i++) { | |
2905 | PyObject* item = PySequence_GetItem(obj6, i); | |
2906 | #if wxUSE_UNICODE | |
2907 | PyObject* str = PyObject_Unicode(item); | |
2908 | #else | |
2909 | PyObject* str = PyObject_Str(item); | |
2910 | #endif | |
2911 | arg7->Add(Py2wxString(str)); | |
2912 | Py_DECREF(item); | |
2913 | Py_DECREF(str); | |
2914 | } | |
d14a1e28 RD |
2915 | } |
2916 | } | |
8edf1c75 RD |
2917 | if (obj7) { |
2918 | { | |
4e760a36 | 2919 | arg8 = (long) SWIG_PyObj_AsLong(obj7); |
8edf1c75 RD |
2920 | if (PyErr_Occurred()) SWIG_fail; |
2921 | } | |
2922 | } | |
d14a1e28 | 2923 | if (obj8) { |
4e760a36 RD |
2924 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2925 | if (arg9 == NULL) { | |
d14a1e28 RD |
2926 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
2927 | } | |
2928 | } | |
2929 | if (obj9) { | |
2930 | { | |
4e760a36 RD |
2931 | arg10 = wxString_in_helper(obj9); |
2932 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 2933 | temp10 = True; |
d14a1e28 RD |
2934 | } |
2935 | } | |
2936 | { | |
2937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 2938 | 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 |
2939 | |
2940 | wxPyEndAllowThreads(__tstate); | |
2941 | if (PyErr_Occurred()) SWIG_fail; | |
2942 | } | |
4e760a36 | 2943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2944 | { |
2945 | if (temp4) | |
2946 | delete arg4; | |
2947 | } | |
2948 | { | |
db914595 | 2949 | if (temp7) delete arg7; |
d14a1e28 RD |
2950 | } |
2951 | { | |
2952 | if (temp10) | |
4e760a36 | 2953 | delete arg10; |
d14a1e28 RD |
2954 | } |
2955 | return resultobj; | |
2956 | fail: | |
2957 | { | |
2958 | if (temp4) | |
2959 | delete arg4; | |
2960 | } | |
2961 | { | |
db914595 | 2962 | if (temp7) delete arg7; |
d14a1e28 RD |
2963 | } |
2964 | { | |
2965 | if (temp10) | |
4e760a36 | 2966 | delete arg10; |
d14a1e28 RD |
2967 | } |
2968 | return NULL; | |
2969 | } | |
2970 | ||
2971 | ||
2972 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2973 | PyObject *resultobj; | |
2974 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2975 | wxString result; | |
2976 | PyObject * obj0 = 0 ; | |
2977 | char *kwnames[] = { | |
2978 | (char *) "self", NULL | |
2979 | }; | |
2980 | ||
2981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
2982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2983 | { | |
2984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2985 | result = ((wxComboBox const *)arg1)->GetValue(); | |
2986 | ||
2987 | wxPyEndAllowThreads(__tstate); | |
2988 | if (PyErr_Occurred()) SWIG_fail; | |
2989 | } | |
2990 | { | |
2991 | #if wxUSE_UNICODE | |
2992 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2993 | #else | |
2994 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2995 | #endif | |
2996 | } | |
2997 | return resultobj; | |
2998 | fail: | |
2999 | return NULL; | |
3000 | } | |
3001 | ||
3002 | ||
3003 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3004 | PyObject *resultobj; | |
3005 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3006 | wxString *arg2 = 0 ; | |
423f194a | 3007 | bool temp2 = False ; |
d14a1e28 RD |
3008 | PyObject * obj0 = 0 ; |
3009 | PyObject * obj1 = 0 ; | |
3010 | char *kwnames[] = { | |
3011 | (char *) "self",(char *) "value", NULL | |
3012 | }; | |
3013 | ||
3014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
3015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3016 | { | |
3017 | arg2 = wxString_in_helper(obj1); | |
3018 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3019 | temp2 = True; |
d14a1e28 RD |
3020 | } |
3021 | { | |
3022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3023 | (arg1)->SetValue((wxString const &)*arg2); | |
3024 | ||
3025 | wxPyEndAllowThreads(__tstate); | |
3026 | if (PyErr_Occurred()) SWIG_fail; | |
3027 | } | |
3028 | Py_INCREF(Py_None); resultobj = Py_None; | |
3029 | { | |
3030 | if (temp2) | |
3031 | delete arg2; | |
3032 | } | |
3033 | return resultobj; | |
3034 | fail: | |
3035 | { | |
3036 | if (temp2) | |
3037 | delete arg2; | |
3038 | } | |
3039 | return NULL; | |
3040 | } | |
3041 | ||
3042 | ||
3043 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3044 | PyObject *resultobj; | |
3045 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3046 | PyObject * obj0 = 0 ; | |
3047 | char *kwnames[] = { | |
3048 | (char *) "self", NULL | |
3049 | }; | |
3050 | ||
3051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
3052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3053 | { | |
3054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3055 | (arg1)->Copy(); | |
3056 | ||
3057 | wxPyEndAllowThreads(__tstate); | |
3058 | if (PyErr_Occurred()) SWIG_fail; | |
3059 | } | |
3060 | Py_INCREF(Py_None); resultobj = Py_None; | |
3061 | return resultobj; | |
3062 | fail: | |
3063 | return NULL; | |
3064 | } | |
3065 | ||
3066 | ||
3067 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3068 | PyObject *resultobj; | |
3069 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3070 | PyObject * obj0 = 0 ; | |
3071 | char *kwnames[] = { | |
3072 | (char *) "self", NULL | |
3073 | }; | |
3074 | ||
3075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
3076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3077 | { | |
3078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3079 | (arg1)->Cut(); | |
3080 | ||
3081 | wxPyEndAllowThreads(__tstate); | |
3082 | if (PyErr_Occurred()) SWIG_fail; | |
3083 | } | |
3084 | Py_INCREF(Py_None); resultobj = Py_None; | |
3085 | return resultobj; | |
3086 | fail: | |
3087 | return NULL; | |
3088 | } | |
3089 | ||
3090 | ||
3091 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3092 | PyObject *resultobj; | |
3093 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3094 | PyObject * obj0 = 0 ; | |
3095 | char *kwnames[] = { | |
3096 | (char *) "self", NULL | |
3097 | }; | |
3098 | ||
3099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
3100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3101 | { | |
3102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3103 | (arg1)->Paste(); | |
3104 | ||
3105 | wxPyEndAllowThreads(__tstate); | |
3106 | if (PyErr_Occurred()) SWIG_fail; | |
3107 | } | |
3108 | Py_INCREF(Py_None); resultobj = Py_None; | |
3109 | return resultobj; | |
3110 | fail: | |
3111 | return NULL; | |
3112 | } | |
3113 | ||
3114 | ||
3115 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3116 | PyObject *resultobj; | |
3117 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3118 | long arg2 ; | |
3119 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3120 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3121 | char *kwnames[] = { |
3122 | (char *) "self",(char *) "pos", NULL | |
3123 | }; | |
3124 | ||
8edf1c75 | 3125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3127 | { |
3128 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3129 | if (PyErr_Occurred()) SWIG_fail; | |
3130 | } | |
d14a1e28 RD |
3131 | { |
3132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3133 | (arg1)->SetInsertionPoint(arg2); | |
3134 | ||
3135 | wxPyEndAllowThreads(__tstate); | |
3136 | if (PyErr_Occurred()) SWIG_fail; | |
3137 | } | |
3138 | Py_INCREF(Py_None); resultobj = Py_None; | |
3139 | return resultobj; | |
3140 | fail: | |
3141 | return NULL; | |
3142 | } | |
3143 | ||
3144 | ||
3145 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3146 | PyObject *resultobj; | |
3147 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3148 | long result; | |
3149 | PyObject * obj0 = 0 ; | |
3150 | char *kwnames[] = { | |
3151 | (char *) "self", NULL | |
3152 | }; | |
3153 | ||
3154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
3155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3156 | { | |
3157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3158 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3159 | ||
3160 | wxPyEndAllowThreads(__tstate); | |
3161 | if (PyErr_Occurred()) SWIG_fail; | |
3162 | } | |
8edf1c75 | 3163 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
3164 | return resultobj; |
3165 | fail: | |
3166 | return NULL; | |
3167 | } | |
3168 | ||
3169 | ||
3170 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3171 | PyObject *resultobj; | |
3172 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3173 | long result; | |
3174 | PyObject * obj0 = 0 ; | |
3175 | char *kwnames[] = { | |
3176 | (char *) "self", NULL | |
3177 | }; | |
3178 | ||
3179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
3180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3181 | { | |
3182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3183 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3184 | ||
3185 | wxPyEndAllowThreads(__tstate); | |
3186 | if (PyErr_Occurred()) SWIG_fail; | |
3187 | } | |
8edf1c75 | 3188 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
3189 | return resultobj; |
3190 | fail: | |
3191 | return NULL; | |
3192 | } | |
3193 | ||
3194 | ||
3195 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3196 | PyObject *resultobj; | |
3197 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3198 | long arg2 ; | |
3199 | long arg3 ; | |
3200 | wxString *arg4 = 0 ; | |
423f194a | 3201 | bool temp4 = False ; |
d14a1e28 | 3202 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3203 | PyObject * obj1 = 0 ; |
3204 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3205 | PyObject * obj3 = 0 ; |
3206 | char *kwnames[] = { | |
3207 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3208 | }; | |
3209 | ||
8edf1c75 | 3210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3212 | { | |
8edf1c75 RD |
3213 | arg2 = (long) SWIG_PyObj_AsLong(obj1); |
3214 | if (PyErr_Occurred()) SWIG_fail; | |
3215 | } | |
3216 | { | |
3217 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3218 | if (PyErr_Occurred()) SWIG_fail; | |
3219 | } | |
3220 | { | |
3221 | arg4 = wxString_in_helper(obj3); | |
3222 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 3223 | temp4 = True; |
d14a1e28 RD |
3224 | } |
3225 | { | |
3226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3227 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3228 | ||
3229 | wxPyEndAllowThreads(__tstate); | |
3230 | if (PyErr_Occurred()) SWIG_fail; | |
3231 | } | |
3232 | Py_INCREF(Py_None); resultobj = Py_None; | |
3233 | { | |
3234 | if (temp4) | |
3235 | delete arg4; | |
3236 | } | |
3237 | return resultobj; | |
3238 | fail: | |
3239 | { | |
3240 | if (temp4) | |
3241 | delete arg4; | |
3242 | } | |
3243 | return NULL; | |
3244 | } | |
3245 | ||
3246 | ||
8a0b029b RD |
3247 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3248 | PyObject *resultobj; | |
3249 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3250 | int arg2 ; | |
3251 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3252 | PyObject * obj1 = 0 ; |
8a0b029b RD |
3253 | char *kwnames[] = { |
3254 | (char *) "self",(char *) "n", NULL | |
3255 | }; | |
3256 | ||
8edf1c75 | 3257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
8a0b029b | 3258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3259 | { |
3260 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3261 | if (PyErr_Occurred()) SWIG_fail; | |
3262 | } | |
8a0b029b RD |
3263 | { |
3264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3265 | (arg1)->SetSelection(arg2); | |
3266 | ||
3267 | wxPyEndAllowThreads(__tstate); | |
3268 | if (PyErr_Occurred()) SWIG_fail; | |
3269 | } | |
3270 | Py_INCREF(Py_None); resultobj = Py_None; | |
3271 | return resultobj; | |
3272 | fail: | |
3273 | return NULL; | |
3274 | } | |
3275 | ||
3276 | ||
d14a1e28 RD |
3277 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
3278 | PyObject *resultobj; | |
3279 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3280 | long arg2 ; | |
3281 | long arg3 ; | |
3282 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3283 | PyObject * obj1 = 0 ; |
3284 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3285 | char *kwnames[] = { |
3286 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3287 | }; | |
3288 | ||
8edf1c75 | 3289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3291 | { |
3292 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3293 | if (PyErr_Occurred()) SWIG_fail; | |
3294 | } | |
3295 | { | |
3296 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3297 | if (PyErr_Occurred()) SWIG_fail; | |
3298 | } | |
d14a1e28 RD |
3299 | { |
3300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3301 | (arg1)->SetSelection(arg2,arg3); | |
3302 | ||
3303 | wxPyEndAllowThreads(__tstate); | |
3304 | if (PyErr_Occurred()) SWIG_fail; | |
3305 | } | |
3306 | Py_INCREF(Py_None); resultobj = Py_None; | |
3307 | return resultobj; | |
3308 | fail: | |
3309 | return NULL; | |
3310 | } | |
3311 | ||
3312 | ||
3313 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3314 | PyObject *resultobj; | |
3315 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3316 | bool arg2 ; | |
3317 | PyObject * obj0 = 0 ; | |
3318 | PyObject * obj1 = 0 ; | |
3319 | char *kwnames[] = { | |
3320 | (char *) "self",(char *) "editable", NULL | |
3321 | }; | |
3322 | ||
3323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
3324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 3325 | { |
8edf1c75 | 3326 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
3327 | if (PyErr_Occurred()) SWIG_fail; |
3328 | } | |
d14a1e28 RD |
3329 | { |
3330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3331 | (arg1)->SetEditable(arg2); | |
3332 | ||
3333 | wxPyEndAllowThreads(__tstate); | |
3334 | if (PyErr_Occurred()) SWIG_fail; | |
3335 | } | |
3336 | Py_INCREF(Py_None); resultobj = Py_None; | |
3337 | return resultobj; | |
3338 | fail: | |
3339 | return NULL; | |
3340 | } | |
3341 | ||
3342 | ||
3343 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3344 | PyObject *resultobj; | |
3345 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3346 | PyObject * obj0 = 0 ; | |
3347 | char *kwnames[] = { | |
3348 | (char *) "self", NULL | |
3349 | }; | |
3350 | ||
3351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
3352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3353 | { | |
3354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3355 | (arg1)->SetInsertionPointEnd(); | |
3356 | ||
3357 | wxPyEndAllowThreads(__tstate); | |
3358 | if (PyErr_Occurred()) SWIG_fail; | |
3359 | } | |
3360 | Py_INCREF(Py_None); resultobj = Py_None; | |
3361 | return resultobj; | |
3362 | fail: | |
3363 | return NULL; | |
3364 | } | |
3365 | ||
3366 | ||
3367 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3368 | PyObject *resultobj; | |
3369 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3370 | long arg2 ; | |
3371 | long arg3 ; | |
3372 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3373 | PyObject * obj1 = 0 ; |
3374 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3375 | char *kwnames[] = { |
3376 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3377 | }; | |
3378 | ||
8edf1c75 | 3379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3381 | { |
3382 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3383 | if (PyErr_Occurred()) SWIG_fail; | |
3384 | } | |
3385 | { | |
3386 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3387 | if (PyErr_Occurred()) SWIG_fail; | |
3388 | } | |
d14a1e28 RD |
3389 | { |
3390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3391 | (arg1)->Remove(arg2,arg3); | |
3392 | ||
3393 | wxPyEndAllowThreads(__tstate); | |
3394 | if (PyErr_Occurred()) SWIG_fail; | |
3395 | } | |
3396 | Py_INCREF(Py_None); resultobj = Py_None; | |
3397 | return resultobj; | |
3398 | fail: | |
3399 | return NULL; | |
3400 | } | |
3401 | ||
3402 | ||
3403 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
3404 | PyObject *obj; | |
3405 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3406 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3407 | Py_INCREF(obj); | |
3408 | return Py_BuildValue((char *)""); | |
3409 | } | |
8edf1c75 | 3410 | static int _wrap_GaugeNameStr_set(PyObject *) { |
d03fd34d RD |
3411 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
3412 | return 1; | |
3413 | } | |
3414 | ||
3415 | ||
3416 | static PyObject *_wrap_GaugeNameStr_get() { | |
3417 | PyObject *pyobj; | |
3418 | ||
3419 | { | |
3420 | #if wxUSE_UNICODE | |
3421 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3422 | #else | |
3423 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3424 | #endif | |
3425 | } | |
3426 | return pyobj; | |
3427 | } | |
3428 | ||
3429 | ||
d14a1e28 RD |
3430 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3431 | PyObject *resultobj; | |
3432 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3433 | int arg2 ; |
d14a1e28 RD |
3434 | int arg3 ; |
3435 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3436 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3437 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3438 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3439 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3440 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3441 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3442 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3443 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3444 | wxGauge *result; | |
3445 | wxPoint temp4 ; | |
3446 | wxSize temp5 ; | |
423f194a | 3447 | bool temp8 = False ; |
d14a1e28 | 3448 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3449 | PyObject * obj1 = 0 ; |
3450 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3451 | PyObject * obj3 = 0 ; |
3452 | PyObject * obj4 = 0 ; | |
8edf1c75 | 3453 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3454 | PyObject * obj6 = 0 ; |
3455 | PyObject * obj7 = 0 ; | |
3456 | char *kwnames[] = { | |
3457 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3458 | }; | |
3459 | ||
8edf1c75 | 3460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 3461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3462 | { |
3463 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3464 | if (PyErr_Occurred()) SWIG_fail; | |
3465 | } | |
3466 | { | |
3467 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3468 | if (PyErr_Occurred()) SWIG_fail; | |
3469 | } | |
d14a1e28 RD |
3470 | if (obj3) { |
3471 | { | |
3472 | arg4 = &temp4; | |
3473 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3474 | } | |
3475 | } | |
3476 | if (obj4) { | |
3477 | { | |
3478 | arg5 = &temp5; | |
3479 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3480 | } | |
3481 | } | |
8edf1c75 RD |
3482 | if (obj5) { |
3483 | { | |
3484 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3485 | if (PyErr_Occurred()) SWIG_fail; | |
3486 | } | |
3487 | } | |
d14a1e28 RD |
3488 | if (obj6) { |
3489 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3490 | if (arg7 == NULL) { | |
3491 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3492 | } | |
3493 | } | |
3494 | if (obj7) { | |
3495 | { | |
3496 | arg8 = wxString_in_helper(obj7); | |
3497 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 3498 | temp8 = True; |
d14a1e28 RD |
3499 | } |
3500 | } | |
3501 | { | |
3502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3503 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3504 | ||
3505 | wxPyEndAllowThreads(__tstate); | |
3506 | if (PyErr_Occurred()) SWIG_fail; | |
3507 | } | |
3508 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3509 | { | |
3510 | if (temp8) | |
3511 | delete arg8; | |
3512 | } | |
3513 | return resultobj; | |
3514 | fail: | |
3515 | { | |
3516 | if (temp8) | |
3517 | delete arg8; | |
3518 | } | |
3519 | return NULL; | |
3520 | } | |
3521 | ||
3522 | ||
3523 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3524 | PyObject *resultobj; | |
3525 | wxGauge *result; | |
3526 | char *kwnames[] = { | |
3527 | NULL | |
3528 | }; | |
3529 | ||
3530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3531 | { | |
3532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3533 | result = (wxGauge *)new wxGauge(); | |
3534 | ||
3535 | wxPyEndAllowThreads(__tstate); | |
3536 | if (PyErr_Occurred()) SWIG_fail; | |
3537 | } | |
3538 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3539 | return resultobj; | |
3540 | fail: | |
3541 | return NULL; | |
3542 | } | |
3543 | ||
3544 | ||
3545 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3546 | PyObject *resultobj; | |
3547 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3548 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 3549 | int arg3 ; |
d14a1e28 RD |
3550 | int arg4 ; |
3551 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3552 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3553 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3554 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3555 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3556 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3557 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3558 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3559 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3560 | bool result; | |
3561 | wxPoint temp5 ; | |
3562 | wxSize temp6 ; | |
423f194a | 3563 | bool temp9 = False ; |
d14a1e28 RD |
3564 | PyObject * obj0 = 0 ; |
3565 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
3566 | PyObject * obj2 = 0 ; |
3567 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3568 | PyObject * obj4 = 0 ; |
3569 | PyObject * obj5 = 0 ; | |
8edf1c75 | 3570 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3571 | PyObject * obj7 = 0 ; |
3572 | PyObject * obj8 = 0 ; | |
3573 | char *kwnames[] = { | |
3574 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3575 | }; | |
3576 | ||
8edf1c75 | 3577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3579 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
3580 | { |
3581 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3582 | if (PyErr_Occurred()) SWIG_fail; | |
3583 | } | |
3584 | { | |
3585 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
3586 | if (PyErr_Occurred()) SWIG_fail; | |
3587 | } | |
d14a1e28 RD |
3588 | if (obj4) { |
3589 | { | |
3590 | arg5 = &temp5; | |
3591 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3592 | } | |
3593 | } | |
3594 | if (obj5) { | |
3595 | { | |
3596 | arg6 = &temp6; | |
3597 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3598 | } | |
3599 | } | |
8edf1c75 RD |
3600 | if (obj6) { |
3601 | { | |
3602 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
3603 | if (PyErr_Occurred()) SWIG_fail; | |
3604 | } | |
3605 | } | |
d14a1e28 RD |
3606 | if (obj7) { |
3607 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3608 | if (arg8 == NULL) { | |
3609 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3610 | } | |
3611 | } | |
3612 | if (obj8) { | |
3613 | { | |
3614 | arg9 = wxString_in_helper(obj8); | |
3615 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 3616 | temp9 = True; |
d14a1e28 RD |
3617 | } |
3618 | } | |
3619 | { | |
3620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3621 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3622 | ||
3623 | wxPyEndAllowThreads(__tstate); | |
3624 | if (PyErr_Occurred()) SWIG_fail; | |
3625 | } | |
4e760a36 | 3626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3627 | { |
3628 | if (temp9) | |
3629 | delete arg9; | |
3630 | } | |
3631 | return resultobj; | |
3632 | fail: | |
3633 | { | |
3634 | if (temp9) | |
3635 | delete arg9; | |
3636 | } | |
3637 | return NULL; | |
3638 | } | |
3639 | ||
3640 | ||
3641 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3642 | PyObject *resultobj; | |
3643 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3644 | int arg2 ; | |
3645 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3646 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3647 | char *kwnames[] = { |
3648 | (char *) "self",(char *) "range", NULL | |
3649 | }; | |
3650 | ||
8edf1c75 | 3651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3653 | { |
3654 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3655 | if (PyErr_Occurred()) SWIG_fail; | |
3656 | } | |
d14a1e28 RD |
3657 | { |
3658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3659 | (arg1)->SetRange(arg2); | |
3660 | ||
3661 | wxPyEndAllowThreads(__tstate); | |
3662 | if (PyErr_Occurred()) SWIG_fail; | |
3663 | } | |
3664 | Py_INCREF(Py_None); resultobj = Py_None; | |
3665 | return resultobj; | |
3666 | fail: | |
3667 | return NULL; | |
3668 | } | |
3669 | ||
3670 | ||
3671 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3672 | PyObject *resultobj; | |
3673 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3674 | int result; | |
3675 | PyObject * obj0 = 0 ; | |
3676 | char *kwnames[] = { | |
3677 | (char *) "self", NULL | |
3678 | }; | |
3679 | ||
3680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
3681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3682 | { | |
3683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3684 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3685 | ||
3686 | wxPyEndAllowThreads(__tstate); | |
3687 | if (PyErr_Occurred()) SWIG_fail; | |
3688 | } | |
8edf1c75 | 3689 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3690 | return resultobj; |
3691 | fail: | |
3692 | return NULL; | |
3693 | } | |
3694 | ||
3695 | ||
3696 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3697 | PyObject *resultobj; | |
3698 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3699 | int arg2 ; | |
3700 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3701 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3702 | char *kwnames[] = { |
3703 | (char *) "self",(char *) "pos", NULL | |
3704 | }; | |
3705 | ||
8edf1c75 | 3706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3708 | { |
3709 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3710 | if (PyErr_Occurred()) SWIG_fail; | |
3711 | } | |
d14a1e28 RD |
3712 | { |
3713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3714 | (arg1)->SetValue(arg2); | |
3715 | ||
3716 | wxPyEndAllowThreads(__tstate); | |
3717 | if (PyErr_Occurred()) SWIG_fail; | |
3718 | } | |
3719 | Py_INCREF(Py_None); resultobj = Py_None; | |
3720 | return resultobj; | |
3721 | fail: | |
3722 | return NULL; | |
3723 | } | |
3724 | ||
3725 | ||
3726 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3727 | PyObject *resultobj; | |
3728 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3729 | int result; | |
3730 | PyObject * obj0 = 0 ; | |
3731 | char *kwnames[] = { | |
3732 | (char *) "self", NULL | |
3733 | }; | |
3734 | ||
3735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
3736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3737 | { | |
3738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3739 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3740 | ||
3741 | wxPyEndAllowThreads(__tstate); | |
3742 | if (PyErr_Occurred()) SWIG_fail; | |
3743 | } | |
8edf1c75 | 3744 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3745 | return resultobj; |
3746 | fail: | |
3747 | return NULL; | |
3748 | } | |
3749 | ||
3750 | ||
3751 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3752 | PyObject *resultobj; | |
3753 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3754 | bool result; | |
3755 | PyObject * obj0 = 0 ; | |
3756 | char *kwnames[] = { | |
3757 | (char *) "self", NULL | |
3758 | }; | |
3759 | ||
3760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
3761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3762 | { | |
3763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3764 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3765 | ||
3766 | wxPyEndAllowThreads(__tstate); | |
3767 | if (PyErr_Occurred()) SWIG_fail; | |
3768 | } | |
4e760a36 | 3769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3770 | return resultobj; |
3771 | fail: | |
3772 | return NULL; | |
3773 | } | |
3774 | ||
3775 | ||
3776 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3777 | PyObject *resultobj; | |
3778 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3779 | int arg2 ; | |
3780 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3781 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3782 | char *kwnames[] = { |
3783 | (char *) "self",(char *) "w", NULL | |
3784 | }; | |
3785 | ||
8edf1c75 | 3786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3788 | { |
3789 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3790 | if (PyErr_Occurred()) SWIG_fail; | |
3791 | } | |
d14a1e28 RD |
3792 | { |
3793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3794 | (arg1)->SetShadowWidth(arg2); | |
3795 | ||
3796 | wxPyEndAllowThreads(__tstate); | |
3797 | if (PyErr_Occurred()) SWIG_fail; | |
3798 | } | |
3799 | Py_INCREF(Py_None); resultobj = Py_None; | |
3800 | return resultobj; | |
3801 | fail: | |
3802 | return NULL; | |
3803 | } | |
3804 | ||
3805 | ||
3806 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3807 | PyObject *resultobj; | |
3808 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3809 | int result; | |
3810 | PyObject * obj0 = 0 ; | |
3811 | char *kwnames[] = { | |
3812 | (char *) "self", NULL | |
3813 | }; | |
3814 | ||
3815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
3816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3817 | { | |
3818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3819 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3820 | ||
3821 | wxPyEndAllowThreads(__tstate); | |
3822 | if (PyErr_Occurred()) SWIG_fail; | |
3823 | } | |
8edf1c75 | 3824 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3825 | return resultobj; |
3826 | fail: | |
3827 | return NULL; | |
3828 | } | |
3829 | ||
3830 | ||
3831 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3832 | PyObject *resultobj; | |
3833 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3834 | int arg2 ; | |
3835 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3836 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3837 | char *kwnames[] = { |
3838 | (char *) "self",(char *) "w", NULL | |
3839 | }; | |
3840 | ||
8edf1c75 | 3841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3843 | { |
3844 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3845 | if (PyErr_Occurred()) SWIG_fail; | |
3846 | } | |
d14a1e28 RD |
3847 | { |
3848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3849 | (arg1)->SetBezelFace(arg2); | |
3850 | ||
3851 | wxPyEndAllowThreads(__tstate); | |
3852 | if (PyErr_Occurred()) SWIG_fail; | |
3853 | } | |
3854 | Py_INCREF(Py_None); resultobj = Py_None; | |
3855 | return resultobj; | |
3856 | fail: | |
3857 | return NULL; | |
3858 | } | |
3859 | ||
3860 | ||
3861 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3862 | PyObject *resultobj; | |
3863 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3864 | int result; | |
3865 | PyObject * obj0 = 0 ; | |
3866 | char *kwnames[] = { | |
3867 | (char *) "self", NULL | |
3868 | }; | |
3869 | ||
3870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
3871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3872 | { | |
3873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3874 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3875 | ||
3876 | wxPyEndAllowThreads(__tstate); | |
3877 | if (PyErr_Occurred()) SWIG_fail; | |
3878 | } | |
8edf1c75 | 3879 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3880 | return resultobj; |
3881 | fail: | |
3882 | return NULL; | |
3883 | } | |
3884 | ||
3885 | ||
3886 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
3887 | PyObject *obj; | |
3888 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3889 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
3890 | Py_INCREF(obj); | |
3891 | return Py_BuildValue((char *)""); | |
3892 | } | |
8edf1c75 | 3893 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
d03fd34d RD |
3894 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
3895 | return 1; | |
3896 | } | |
3897 | ||
3898 | ||
3899 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
3900 | PyObject *pyobj; | |
3901 | ||
3902 | { | |
3903 | #if wxUSE_UNICODE | |
3904 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3905 | #else | |
3906 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3907 | #endif | |
3908 | } | |
3909 | return pyobj; | |
3910 | } | |
3911 | ||
3912 | ||
8edf1c75 | 3913 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
d03fd34d RD |
3914 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
3915 | return 1; | |
3916 | } | |
3917 | ||
3918 | ||
3919 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
3920 | PyObject *pyobj; | |
3921 | ||
3922 | { | |
3923 | #if wxUSE_UNICODE | |
3924 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3925 | #else | |
3926 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3927 | #endif | |
3928 | } | |
3929 | return pyobj; | |
3930 | } | |
3931 | ||
3932 | ||
8edf1c75 | 3933 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
d03fd34d RD |
3934 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
3935 | return 1; | |
3936 | } | |
3937 | ||
3938 | ||
3939 | static PyObject *_wrap_StaticTextNameStr_get() { | |
3940 | PyObject *pyobj; | |
3941 | ||
3942 | { | |
3943 | #if wxUSE_UNICODE | |
3944 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3945 | #else | |
3946 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3947 | #endif | |
3948 | } | |
3949 | return pyobj; | |
3950 | } | |
3951 | ||
3952 | ||
d14a1e28 RD |
3953 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
3954 | PyObject *resultobj; | |
3955 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3956 | int arg2 ; |
d14a1e28 RD |
3957 | wxString *arg3 = 0 ; |
3958 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3959 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3960 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3961 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3962 | long arg6 = (long) 0 ; | |
3963 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
3964 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3965 | wxStaticBox *result; | |
423f194a | 3966 | bool temp3 = False ; |
d14a1e28 RD |
3967 | wxPoint temp4 ; |
3968 | wxSize temp5 ; | |
423f194a | 3969 | bool temp7 = False ; |
d14a1e28 | 3970 | PyObject * obj0 = 0 ; |
8edf1c75 | 3971 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3972 | PyObject * obj2 = 0 ; |
3973 | PyObject * obj3 = 0 ; | |
3974 | PyObject * obj4 = 0 ; | |
8edf1c75 | 3975 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3976 | PyObject * obj6 = 0 ; |
3977 | char *kwnames[] = { | |
3978 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3979 | }; | |
3980 | ||
8edf1c75 | 3981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 3982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3983 | { |
3984 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3985 | if (PyErr_Occurred()) SWIG_fail; | |
3986 | } | |
d14a1e28 RD |
3987 | { |
3988 | arg3 = wxString_in_helper(obj2); | |
3989 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3990 | temp3 = True; |
d14a1e28 RD |
3991 | } |
3992 | if (obj3) { | |
3993 | { | |
3994 | arg4 = &temp4; | |
3995 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3996 | } | |
3997 | } | |
3998 | if (obj4) { | |
3999 | { | |
4000 | arg5 = &temp5; | |
4001 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4002 | } | |
4003 | } | |
8edf1c75 RD |
4004 | if (obj5) { |
4005 | { | |
4006 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4007 | if (PyErr_Occurred()) SWIG_fail; | |
4008 | } | |
4009 | } | |
d14a1e28 RD |
4010 | if (obj6) { |
4011 | { | |
4012 | arg7 = wxString_in_helper(obj6); | |
4013 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4014 | temp7 = True; |
d14a1e28 RD |
4015 | } |
4016 | } | |
4017 | { | |
4018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4019 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4020 | ||
4021 | wxPyEndAllowThreads(__tstate); | |
4022 | if (PyErr_Occurred()) SWIG_fail; | |
4023 | } | |
4024 | { | |
4025 | resultobj = wxPyMake_wxObject(result); | |
4026 | } | |
4027 | { | |
4028 | if (temp3) | |
4029 | delete arg3; | |
4030 | } | |
4031 | { | |
4032 | if (temp7) | |
4033 | delete arg7; | |
4034 | } | |
4035 | return resultobj; | |
4036 | fail: | |
4037 | { | |
4038 | if (temp3) | |
4039 | delete arg3; | |
4040 | } | |
4041 | { | |
4042 | if (temp7) | |
4043 | delete arg7; | |
4044 | } | |
4045 | return NULL; | |
4046 | } | |
4047 | ||
4048 | ||
4049 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4050 | PyObject *resultobj; | |
4051 | wxStaticBox *result; | |
4052 | char *kwnames[] = { | |
4053 | NULL | |
4054 | }; | |
4055 | ||
4056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4057 | { | |
4058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4059 | result = (wxStaticBox *)new wxStaticBox(); | |
4060 | ||
4061 | wxPyEndAllowThreads(__tstate); | |
4062 | if (PyErr_Occurred()) SWIG_fail; | |
4063 | } | |
4064 | { | |
4065 | resultobj = wxPyMake_wxObject(result); | |
4066 | } | |
4067 | return resultobj; | |
4068 | fail: | |
4069 | return NULL; | |
4070 | } | |
4071 | ||
4072 | ||
4073 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4074 | PyObject *resultobj; | |
4075 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4076 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4077 | int arg3 ; |
d14a1e28 RD |
4078 | wxString *arg4 = 0 ; |
4079 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4080 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4081 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4082 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4083 | long arg7 = (long) 0 ; | |
4084 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4085 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4086 | bool result; | |
423f194a | 4087 | bool temp4 = False ; |
d14a1e28 RD |
4088 | wxPoint temp5 ; |
4089 | wxSize temp6 ; | |
423f194a | 4090 | bool temp8 = False ; |
d14a1e28 RD |
4091 | PyObject * obj0 = 0 ; |
4092 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4093 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4094 | PyObject * obj3 = 0 ; |
4095 | PyObject * obj4 = 0 ; | |
4096 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4097 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4098 | PyObject * obj7 = 0 ; |
4099 | char *kwnames[] = { | |
4100 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4101 | }; | |
4102 | ||
8edf1c75 | 4103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4105 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4106 | { |
4107 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4108 | if (PyErr_Occurred()) SWIG_fail; | |
4109 | } | |
d14a1e28 RD |
4110 | { |
4111 | arg4 = wxString_in_helper(obj3); | |
4112 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4113 | temp4 = True; |
d14a1e28 RD |
4114 | } |
4115 | if (obj4) { | |
4116 | { | |
4117 | arg5 = &temp5; | |
4118 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4119 | } | |
4120 | } | |
4121 | if (obj5) { | |
4122 | { | |
4123 | arg6 = &temp6; | |
4124 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4125 | } | |
4126 | } | |
8edf1c75 RD |
4127 | if (obj6) { |
4128 | { | |
4129 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4130 | if (PyErr_Occurred()) SWIG_fail; | |
4131 | } | |
4132 | } | |
d14a1e28 RD |
4133 | if (obj7) { |
4134 | { | |
4135 | arg8 = wxString_in_helper(obj7); | |
4136 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4137 | temp8 = True; |
d14a1e28 RD |
4138 | } |
4139 | } | |
4140 | { | |
4141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4142 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4143 | ||
4144 | wxPyEndAllowThreads(__tstate); | |
4145 | if (PyErr_Occurred()) SWIG_fail; | |
4146 | } | |
4e760a36 | 4147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4148 | { |
4149 | if (temp4) | |
4150 | delete arg4; | |
4151 | } | |
4152 | { | |
4153 | if (temp8) | |
4154 | delete arg8; | |
4155 | } | |
4156 | return resultobj; | |
4157 | fail: | |
4158 | { | |
4159 | if (temp4) | |
4160 | delete arg4; | |
4161 | } | |
4162 | { | |
4163 | if (temp8) | |
4164 | delete arg8; | |
4165 | } | |
4166 | return NULL; | |
4167 | } | |
4168 | ||
4169 | ||
4170 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
4171 | PyObject *obj; | |
4172 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4173 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4174 | Py_INCREF(obj); | |
4175 | return Py_BuildValue((char *)""); | |
4176 | } | |
4177 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4178 | PyObject *resultobj; | |
4179 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4180 | int arg2 ; |
d14a1e28 RD |
4181 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4182 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4183 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4184 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4185 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4186 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4187 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4188 | wxStaticLine *result; | |
4189 | wxPoint temp3 ; | |
4190 | wxSize temp4 ; | |
423f194a | 4191 | bool temp6 = False ; |
d14a1e28 | 4192 | PyObject * obj0 = 0 ; |
8edf1c75 | 4193 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4194 | PyObject * obj2 = 0 ; |
4195 | PyObject * obj3 = 0 ; | |
8edf1c75 | 4196 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4197 | PyObject * obj5 = 0 ; |
4198 | char *kwnames[] = { | |
4199 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4200 | }; | |
4201 | ||
8edf1c75 | 4202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 4203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4204 | { |
4205 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4206 | if (PyErr_Occurred()) SWIG_fail; | |
4207 | } | |
d14a1e28 RD |
4208 | if (obj2) { |
4209 | { | |
4210 | arg3 = &temp3; | |
4211 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4212 | } | |
4213 | } | |
4214 | if (obj3) { | |
4215 | { | |
4216 | arg4 = &temp4; | |
4217 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4218 | } | |
4219 | } | |
8edf1c75 RD |
4220 | if (obj4) { |
4221 | { | |
4222 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
4223 | if (PyErr_Occurred()) SWIG_fail; | |
4224 | } | |
4225 | } | |
d14a1e28 RD |
4226 | if (obj5) { |
4227 | { | |
4228 | arg6 = wxString_in_helper(obj5); | |
4229 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 4230 | temp6 = True; |
d14a1e28 RD |
4231 | } |
4232 | } | |
4233 | { | |
4234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4235 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4236 | ||
4237 | wxPyEndAllowThreads(__tstate); | |
4238 | if (PyErr_Occurred()) SWIG_fail; | |
4239 | } | |
4240 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
4241 | { | |
4242 | if (temp6) | |
4243 | delete arg6; | |
4244 | } | |
4245 | return resultobj; | |
4246 | fail: | |
4247 | { | |
4248 | if (temp6) | |
4249 | delete arg6; | |
4250 | } | |
4251 | return NULL; | |
4252 | } | |
4253 | ||
4254 | ||
4255 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4256 | PyObject *resultobj; | |
4257 | wxStaticLine *result; | |
4258 | char *kwnames[] = { | |
4259 | NULL | |
4260 | }; | |
4261 | ||
4262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4263 | { | |
4264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4265 | result = (wxStaticLine *)new wxStaticLine(); | |
4266 | ||
4267 | wxPyEndAllowThreads(__tstate); | |
4268 | if (PyErr_Occurred()) SWIG_fail; | |
4269 | } | |
4270 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
4271 | return resultobj; | |
4272 | fail: | |
4273 | return NULL; | |
4274 | } | |
4275 | ||
4276 | ||
4277 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4278 | PyObject *resultobj; | |
4279 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4280 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4281 | int arg3 ; |
d14a1e28 RD |
4282 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4283 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4284 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4285 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4286 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4287 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4288 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4289 | bool result; | |
4290 | wxPoint temp4 ; | |
4291 | wxSize temp5 ; | |
423f194a | 4292 | bool temp7 = False ; |
d14a1e28 RD |
4293 | PyObject * obj0 = 0 ; |
4294 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4295 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4296 | PyObject * obj3 = 0 ; |
4297 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4298 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4299 | PyObject * obj6 = 0 ; |
4300 | char *kwnames[] = { | |
4301 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4302 | }; | |
4303 | ||
8edf1c75 | 4304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
4305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4306 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4307 | { |
4308 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4309 | if (PyErr_Occurred()) SWIG_fail; | |
4310 | } | |
d14a1e28 RD |
4311 | if (obj3) { |
4312 | { | |
4313 | arg4 = &temp4; | |
4314 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4315 | } | |
4316 | } | |
4317 | if (obj4) { | |
4318 | { | |
4319 | arg5 = &temp5; | |
4320 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4321 | } | |
4322 | } | |
8edf1c75 RD |
4323 | if (obj5) { |
4324 | { | |
4325 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4326 | if (PyErr_Occurred()) SWIG_fail; | |
4327 | } | |
4328 | } | |
d14a1e28 RD |
4329 | if (obj6) { |
4330 | { | |
4331 | arg7 = wxString_in_helper(obj6); | |
4332 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4333 | temp7 = True; |
d14a1e28 RD |
4334 | } |
4335 | } | |
4336 | { | |
4337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4338 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4339 | ||
4340 | wxPyEndAllowThreads(__tstate); | |
4341 | if (PyErr_Occurred()) SWIG_fail; | |
4342 | } | |
4e760a36 | 4343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4344 | { |
4345 | if (temp7) | |
4346 | delete arg7; | |
4347 | } | |
4348 | return resultobj; | |
4349 | fail: | |
4350 | { | |
4351 | if (temp7) | |
4352 | delete arg7; | |
4353 | } | |
4354 | return NULL; | |
4355 | } | |
4356 | ||
4357 | ||
4358 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4359 | PyObject *resultobj; | |
4360 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4361 | bool result; | |
4362 | PyObject * obj0 = 0 ; | |
4363 | char *kwnames[] = { | |
4364 | (char *) "self", NULL | |
4365 | }; | |
4366 | ||
4367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
4368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4369 | { | |
4370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4371 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4372 | ||
4373 | wxPyEndAllowThreads(__tstate); | |
4374 | if (PyErr_Occurred()) SWIG_fail; | |
4375 | } | |
4e760a36 | 4376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4377 | return resultobj; |
4378 | fail: | |
4379 | return NULL; | |
4380 | } | |
4381 | ||
4382 | ||
4383 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4384 | PyObject *resultobj; | |
4385 | int result; | |
4386 | char *kwnames[] = { | |
4387 | NULL | |
4388 | }; | |
4389 | ||
4390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4391 | { | |
4392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4393 | result = (int)wxStaticLine::GetDefaultSize(); | |
4394 | ||
4395 | wxPyEndAllowThreads(__tstate); | |
4396 | if (PyErr_Occurred()) SWIG_fail; | |
4397 | } | |
8edf1c75 | 4398 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4399 | return resultobj; |
4400 | fail: | |
4401 | return NULL; | |
4402 | } | |
4403 | ||
4404 | ||
4405 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
4406 | PyObject *obj; | |
4407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4408 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4409 | Py_INCREF(obj); | |
4410 | return Py_BuildValue((char *)""); | |
4411 | } | |
4412 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4413 | PyObject *resultobj; | |
4414 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4415 | int arg2 ; |
d14a1e28 RD |
4416 | wxString *arg3 = 0 ; |
4417 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4418 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4419 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4420 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4421 | long arg6 = (long) 0 ; | |
4422 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4423 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4424 | wxStaticText *result; | |
423f194a | 4425 | bool temp3 = False ; |
d14a1e28 RD |
4426 | wxPoint temp4 ; |
4427 | wxSize temp5 ; | |
423f194a | 4428 | bool temp7 = False ; |
d14a1e28 | 4429 | PyObject * obj0 = 0 ; |
8edf1c75 | 4430 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4431 | PyObject * obj2 = 0 ; |
4432 | PyObject * obj3 = 0 ; | |
4433 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4434 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4435 | PyObject * obj6 = 0 ; |
4436 | char *kwnames[] = { | |
4437 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4438 | }; | |
4439 | ||
8edf1c75 | 4440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 4441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4442 | { |
4443 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4444 | if (PyErr_Occurred()) SWIG_fail; | |
4445 | } | |
d14a1e28 RD |
4446 | { |
4447 | arg3 = wxString_in_helper(obj2); | |
4448 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 4449 | temp3 = True; |
d14a1e28 RD |
4450 | } |
4451 | if (obj3) { | |
4452 | { | |
4453 | arg4 = &temp4; | |
4454 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4455 | } | |
4456 | } | |
4457 | if (obj4) { | |
4458 | { | |
4459 | arg5 = &temp5; | |
4460 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4461 | } | |
4462 | } | |
8edf1c75 RD |
4463 | if (obj5) { |
4464 | { | |
4465 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4466 | if (PyErr_Occurred()) SWIG_fail; | |
4467 | } | |
4468 | } | |
d14a1e28 RD |
4469 | if (obj6) { |
4470 | { | |
4471 | arg7 = wxString_in_helper(obj6); | |
4472 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4473 | temp7 = True; |
d14a1e28 RD |
4474 | } |
4475 | } | |
4476 | { | |
4477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4478 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4479 | ||
4480 | wxPyEndAllowThreads(__tstate); | |
4481 | if (PyErr_Occurred()) SWIG_fail; | |
4482 | } | |
4483 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4484 | { | |
4485 | if (temp3) | |
4486 | delete arg3; | |
4487 | } | |
4488 | { | |
4489 | if (temp7) | |
4490 | delete arg7; | |
4491 | } | |
4492 | return resultobj; | |
4493 | fail: | |
4494 | { | |
4495 | if (temp3) | |
4496 | delete arg3; | |
4497 | } | |
4498 | { | |
4499 | if (temp7) | |
4500 | delete arg7; | |
4501 | } | |
4502 | return NULL; | |
4503 | } | |
4504 | ||
4505 | ||
4506 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4507 | PyObject *resultobj; | |
4508 | wxStaticText *result; | |
4509 | char *kwnames[] = { | |
4510 | NULL | |
4511 | }; | |
4512 | ||
4513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4514 | { | |
4515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4516 | result = (wxStaticText *)new wxStaticText(); | |
4517 | ||
4518 | wxPyEndAllowThreads(__tstate); | |
4519 | if (PyErr_Occurred()) SWIG_fail; | |
4520 | } | |
4521 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4522 | return resultobj; | |
4523 | fail: | |
4524 | return NULL; | |
4525 | } | |
4526 | ||
4527 | ||
4528 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4529 | PyObject *resultobj; | |
4530 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4531 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4532 | int arg3 ; |
d14a1e28 RD |
4533 | wxString *arg4 = 0 ; |
4534 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4535 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4536 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4537 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4538 | long arg7 = (long) 0 ; | |
4539 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4540 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4541 | bool result; | |
423f194a | 4542 | bool temp4 = False ; |
d14a1e28 RD |
4543 | wxPoint temp5 ; |
4544 | wxSize temp6 ; | |
423f194a | 4545 | bool temp8 = False ; |
d14a1e28 RD |
4546 | PyObject * obj0 = 0 ; |
4547 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4548 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4549 | PyObject * obj3 = 0 ; |
4550 | PyObject * obj4 = 0 ; | |
4551 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4552 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4553 | PyObject * obj7 = 0 ; |
4554 | char *kwnames[] = { | |
4555 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4556 | }; | |
4557 | ||
8edf1c75 | 4558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticText,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4560 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4561 | { |
4562 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4563 | if (PyErr_Occurred()) SWIG_fail; | |
4564 | } | |
d14a1e28 RD |
4565 | { |
4566 | arg4 = wxString_in_helper(obj3); | |
4567 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4568 | temp4 = True; |
d14a1e28 RD |
4569 | } |
4570 | if (obj4) { | |
4571 | { | |
4572 | arg5 = &temp5; | |
4573 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4574 | } | |
4575 | } | |
4576 | if (obj5) { | |
4577 | { | |
4578 | arg6 = &temp6; | |
4579 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4580 | } | |
4581 | } | |
8edf1c75 RD |
4582 | if (obj6) { |
4583 | { | |
4584 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4585 | if (PyErr_Occurred()) SWIG_fail; | |
4586 | } | |
4587 | } | |
d14a1e28 RD |
4588 | if (obj7) { |
4589 | { | |
4590 | arg8 = wxString_in_helper(obj7); | |
4591 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4592 | temp8 = True; |
d14a1e28 RD |
4593 | } |
4594 | } | |
4595 | { | |
4596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4597 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4598 | ||
4599 | wxPyEndAllowThreads(__tstate); | |
4600 | if (PyErr_Occurred()) SWIG_fail; | |
4601 | } | |
4e760a36 | 4602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4603 | { |
4604 | if (temp4) | |
4605 | delete arg4; | |
4606 | } | |
4607 | { | |
4608 | if (temp8) | |
4609 | delete arg8; | |
4610 | } | |
4611 | return resultobj; | |
4612 | fail: | |
4613 | { | |
4614 | if (temp4) | |
4615 | delete arg4; | |
4616 | } | |
4617 | { | |
4618 | if (temp8) | |
4619 | delete arg8; | |
4620 | } | |
4621 | return NULL; | |
4622 | } | |
4623 | ||
4624 | ||
4625 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4626 | PyObject *obj; | |
4627 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4628 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4629 | Py_INCREF(obj); | |
4630 | return Py_BuildValue((char *)""); | |
4631 | } | |
4632 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4633 | PyObject *resultobj; | |
4634 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4635 | int arg2 ; |
d14a1e28 RD |
4636 | wxBitmap *arg3 = 0 ; |
4637 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4638 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4639 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4640 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4641 | long arg6 = (long) 0 ; | |
4642 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4643 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4644 | wxStaticBitmap *result; | |
4645 | wxPoint temp4 ; | |
4646 | wxSize temp5 ; | |
423f194a | 4647 | bool temp7 = False ; |
d14a1e28 | 4648 | PyObject * obj0 = 0 ; |
8edf1c75 | 4649 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4650 | PyObject * obj2 = 0 ; |
4651 | PyObject * obj3 = 0 ; | |
4652 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4653 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4654 | PyObject * obj6 = 0 ; |
4655 | char *kwnames[] = { | |
4656 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4657 | }; | |
4658 | ||
8edf1c75 | 4659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 4660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4661 | { |
4662 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4663 | if (PyErr_Occurred()) SWIG_fail; | |
4664 | } | |
d14a1e28 RD |
4665 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4666 | if (arg3 == NULL) { | |
4667 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4668 | } | |
4669 | if (obj3) { | |
4670 | { | |
4671 | arg4 = &temp4; | |
4672 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4673 | } | |
4674 | } | |
4675 | if (obj4) { | |
4676 | { | |
4677 | arg5 = &temp5; | |
4678 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4679 | } | |
4680 | } | |
8edf1c75 RD |
4681 | if (obj5) { |
4682 | { | |
4683 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4684 | if (PyErr_Occurred()) SWIG_fail; | |
4685 | } | |
4686 | } | |
d14a1e28 RD |
4687 | if (obj6) { |
4688 | { | |
4689 | arg7 = wxString_in_helper(obj6); | |
4690 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4691 | temp7 = True; |
d14a1e28 RD |
4692 | } |
4693 | } | |
4694 | { | |
4695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4696 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4697 | ||
4698 | wxPyEndAllowThreads(__tstate); | |
4699 | if (PyErr_Occurred()) SWIG_fail; | |
4700 | } | |
4701 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4702 | { | |
4703 | if (temp7) | |
4704 | delete arg7; | |
4705 | } | |
4706 | return resultobj; | |
4707 | fail: | |
4708 | { | |
4709 | if (temp7) | |
4710 | delete arg7; | |
4711 | } | |
4712 | return NULL; | |
4713 | } | |
4714 | ||
4715 | ||
4716 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4717 | PyObject *resultobj; | |
4718 | wxStaticBitmap *result; | |
4719 | char *kwnames[] = { | |
4720 | NULL | |
4721 | }; | |
4722 | ||
4723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4724 | { | |
4725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4726 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4727 | ||
4728 | wxPyEndAllowThreads(__tstate); | |
4729 | if (PyErr_Occurred()) SWIG_fail; | |
4730 | } | |
4731 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4732 | return resultobj; | |
4733 | fail: | |
4734 | return NULL; | |
4735 | } | |
4736 | ||
4737 | ||
4738 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4739 | PyObject *resultobj; | |
4740 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4741 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4742 | int arg3 ; |
d14a1e28 RD |
4743 | wxBitmap *arg4 = 0 ; |
4744 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4745 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4746 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4747 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4748 | long arg7 = (long) 0 ; | |
4749 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4750 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4751 | bool result; | |
4752 | wxPoint temp5 ; | |
4753 | wxSize temp6 ; | |
423f194a | 4754 | bool temp8 = False ; |
d14a1e28 RD |
4755 | PyObject * obj0 = 0 ; |
4756 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4757 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4758 | PyObject * obj3 = 0 ; |
4759 | PyObject * obj4 = 0 ; | |
4760 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4761 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4762 | PyObject * obj7 = 0 ; |
4763 | char *kwnames[] = { | |
4764 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4765 | }; | |
4766 | ||
8edf1c75 | 4767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4769 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4770 | { |
4771 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4772 | if (PyErr_Occurred()) SWIG_fail; | |
4773 | } | |
d14a1e28 RD |
4774 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4775 | if (arg4 == NULL) { | |
4776 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4777 | } | |
4778 | if (obj4) { | |
4779 | { | |
4780 | arg5 = &temp5; | |
4781 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4782 | } | |
4783 | } | |
4784 | if (obj5) { | |
4785 | { | |
4786 | arg6 = &temp6; | |
4787 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4788 | } | |
4789 | } | |
8edf1c75 RD |
4790 | if (obj6) { |
4791 | { | |
4792 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4793 | if (PyErr_Occurred()) SWIG_fail; | |
4794 | } | |
4795 | } | |
d14a1e28 RD |
4796 | if (obj7) { |
4797 | { | |
4798 | arg8 = wxString_in_helper(obj7); | |
4799 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4800 | temp8 = True; |
d14a1e28 RD |
4801 | } |
4802 | } | |
4803 | { | |
4804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4805 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4806 | ||
4807 | wxPyEndAllowThreads(__tstate); | |
4808 | if (PyErr_Occurred()) SWIG_fail; | |
4809 | } | |
4e760a36 | 4810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4811 | { |
4812 | if (temp8) | |
4813 | delete arg8; | |
4814 | } | |
4815 | return resultobj; | |
4816 | fail: | |
4817 | { | |
4818 | if (temp8) | |
4819 | delete arg8; | |
4820 | } | |
4821 | return NULL; | |
4822 | } | |
4823 | ||
4824 | ||
4825 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4826 | PyObject *resultobj; | |
4827 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4828 | wxBitmap result; | |
4829 | PyObject * obj0 = 0 ; | |
4830 | char *kwnames[] = { | |
4831 | (char *) "self", NULL | |
4832 | }; | |
4833 | ||
4834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
4835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4836 | { | |
4837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4838 | result = (arg1)->GetBitmap(); | |
4839 | ||
4840 | wxPyEndAllowThreads(__tstate); | |
4841 | if (PyErr_Occurred()) SWIG_fail; | |
4842 | } | |
4843 | { | |
4844 | wxBitmap * resultptr; | |
4845 | resultptr = new wxBitmap((wxBitmap &) result); | |
4846 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
4847 | } | |
4848 | return resultobj; | |
4849 | fail: | |
4850 | return NULL; | |
4851 | } | |
4852 | ||
4853 | ||
4854 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4855 | PyObject *resultobj; | |
4856 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4857 | wxBitmap *arg2 = 0 ; | |
4858 | PyObject * obj0 = 0 ; | |
4859 | PyObject * obj1 = 0 ; | |
4860 | char *kwnames[] = { | |
4861 | (char *) "self",(char *) "bitmap", NULL | |
4862 | }; | |
4863 | ||
4864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4866 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4867 | if (arg2 == NULL) { | |
4868 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4869 | } | |
4870 | { | |
4871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4872 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4873 | ||
4874 | wxPyEndAllowThreads(__tstate); | |
4875 | if (PyErr_Occurred()) SWIG_fail; | |
4876 | } | |
4877 | Py_INCREF(Py_None); resultobj = Py_None; | |
4878 | return resultobj; | |
4879 | fail: | |
4880 | return NULL; | |
4881 | } | |
4882 | ||
4883 | ||
4884 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4885 | PyObject *resultobj; | |
4886 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4887 | wxIcon *arg2 = 0 ; | |
4888 | PyObject * obj0 = 0 ; | |
4889 | PyObject * obj1 = 0 ; | |
4890 | char *kwnames[] = { | |
4891 | (char *) "self",(char *) "icon", NULL | |
4892 | }; | |
4893 | ||
4894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4896 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4897 | if (arg2 == NULL) { | |
4898 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4899 | } | |
4900 | { | |
4901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4902 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
4903 | ||
4904 | wxPyEndAllowThreads(__tstate); | |
4905 | if (PyErr_Occurred()) SWIG_fail; | |
4906 | } | |
4907 | Py_INCREF(Py_None); resultobj = Py_None; | |
4908 | return resultobj; | |
4909 | fail: | |
4910 | return NULL; | |
4911 | } | |
4912 | ||
4913 | ||
4914 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
4915 | PyObject *obj; | |
4916 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4917 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
4918 | Py_INCREF(obj); | |
4919 | return Py_BuildValue((char *)""); | |
4920 | } | |
8edf1c75 | 4921 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
d03fd34d RD |
4922 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
4923 | return 1; | |
4924 | } | |
4925 | ||
4926 | ||
4927 | static PyObject *_wrap_ListBoxNameStr_get() { | |
4928 | PyObject *pyobj; | |
4929 | ||
4930 | { | |
4931 | #if wxUSE_UNICODE | |
4932 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4933 | #else | |
4934 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4935 | #endif | |
4936 | } | |
4937 | return pyobj; | |
4938 | } | |
4939 | ||
4940 | ||
d14a1e28 RD |
4941 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4942 | PyObject *resultobj; | |
4943 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4944 | int arg2 ; |
d14a1e28 RD |
4945 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4946 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4947 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4948 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4e760a36 RD |
4949 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
4950 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
4951 | long arg6 = (long) 0 ; | |
4952 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
4953 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
4954 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
4955 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
4956 | wxListBox *result; |
4957 | wxPoint temp3 ; | |
4958 | wxSize temp4 ; | |
db914595 | 4959 | bool temp5 = False ; |
423f194a | 4960 | bool temp8 = False ; |
d14a1e28 | 4961 | PyObject * obj0 = 0 ; |
8edf1c75 | 4962 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4963 | PyObject * obj2 = 0 ; |
4964 | PyObject * obj3 = 0 ; | |
4965 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4966 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4967 | PyObject * obj6 = 0 ; |
4968 | PyObject * obj7 = 0 ; | |
4969 | char *kwnames[] = { | |
4970 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4971 | }; | |
4972 | ||
8edf1c75 | 4973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 4974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4975 | { |
4976 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4977 | if (PyErr_Occurred()) SWIG_fail; | |
4978 | } | |
d14a1e28 RD |
4979 | if (obj2) { |
4980 | { | |
4981 | arg3 = &temp3; | |
4982 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4983 | } | |
4984 | } | |
4985 | if (obj3) { | |
4986 | { | |
4987 | arg4 = &temp4; | |
4988 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4989 | } | |
4990 | } | |
4991 | if (obj4) { | |
4992 | { | |
4e760a36 RD |
4993 | if (! PySequence_Check(obj4)) { |
4994 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4995 | SWIG_fail; | |
4996 | } | |
4997 | arg5 = new wxArrayString; | |
db914595 | 4998 | temp5 = True; |
4e760a36 RD |
4999 | int i, len=PySequence_Length(obj4); |
5000 | for (i=0; i<len; i++) { | |
5001 | PyObject* item = PySequence_GetItem(obj4, i); | |
5002 | #if wxUSE_UNICODE | |
5003 | PyObject* str = PyObject_Unicode(item); | |
5004 | #else | |
5005 | PyObject* str = PyObject_Str(item); | |
5006 | #endif | |
5007 | arg5->Add(Py2wxString(str)); | |
5008 | Py_DECREF(item); | |
5009 | Py_DECREF(str); | |
5010 | } | |
d14a1e28 RD |
5011 | } |
5012 | } | |
8edf1c75 RD |
5013 | if (obj5) { |
5014 | { | |
4e760a36 | 5015 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
5016 | if (PyErr_Occurred()) SWIG_fail; |
5017 | } | |
5018 | } | |
d14a1e28 | 5019 | if (obj6) { |
4e760a36 RD |
5020 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5021 | if (arg7 == NULL) { | |
d14a1e28 RD |
5022 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5023 | } | |
5024 | } | |
5025 | if (obj7) { | |
5026 | { | |
4e760a36 RD |
5027 | arg8 = wxString_in_helper(obj7); |
5028 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 5029 | temp8 = True; |
d14a1e28 RD |
5030 | } |
5031 | } | |
5032 | { | |
5033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 5034 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5035 | |
5036 | wxPyEndAllowThreads(__tstate); | |
5037 | if (PyErr_Occurred()) SWIG_fail; | |
5038 | } | |
5039 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
5040 | { | |
db914595 | 5041 | if (temp5) delete arg5; |
d14a1e28 RD |
5042 | } |
5043 | { | |
5044 | if (temp8) | |
4e760a36 | 5045 | delete arg8; |
d14a1e28 RD |
5046 | } |
5047 | return resultobj; | |
5048 | fail: | |
5049 | { | |
db914595 | 5050 | if (temp5) delete arg5; |
d14a1e28 RD |
5051 | } |
5052 | { | |
5053 | if (temp8) | |
4e760a36 | 5054 | delete arg8; |
d14a1e28 RD |
5055 | } |
5056 | return NULL; | |
5057 | } | |
5058 | ||
5059 | ||
5060 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5061 | PyObject *resultobj; | |
5062 | wxListBox *result; | |
5063 | char *kwnames[] = { | |
5064 | NULL | |
5065 | }; | |
5066 | ||
5067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5068 | { | |
5069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5070 | result = (wxListBox *)new wxListBox(); | |
5071 | ||
5072 | wxPyEndAllowThreads(__tstate); | |
5073 | if (PyErr_Occurred()) SWIG_fail; | |
5074 | } | |
5075 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
5076 | return resultobj; | |
5077 | fail: | |
5078 | return NULL; | |
5079 | } | |
5080 | ||
5081 | ||
5082 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5083 | PyObject *resultobj; | |
5084 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5085 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 5086 | int arg3 ; |
d14a1e28 RD |
5087 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5088 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5089 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5090 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
5091 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5092 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5093 | long arg7 = (long) 0 ; | |
5094 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5095 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5096 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5097 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5098 | bool result; |
5099 | wxPoint temp4 ; | |
5100 | wxSize temp5 ; | |
db914595 | 5101 | bool temp6 = False ; |
423f194a | 5102 | bool temp9 = False ; |
d14a1e28 RD |
5103 | PyObject * obj0 = 0 ; |
5104 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5105 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5106 | PyObject * obj3 = 0 ; |
5107 | PyObject * obj4 = 0 ; | |
5108 | PyObject * obj5 = 0 ; | |
8edf1c75 | 5109 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5110 | PyObject * obj7 = 0 ; |
5111 | PyObject * obj8 = 0 ; | |
5112 | char *kwnames[] = { | |
5113 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5114 | }; | |
5115 | ||
8edf1c75 | 5116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
5117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5118 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
5119 | { |
5120 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5121 | if (PyErr_Occurred()) SWIG_fail; | |
5122 | } | |
d14a1e28 RD |
5123 | if (obj3) { |
5124 | { | |
5125 | arg4 = &temp4; | |
5126 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5127 | } | |
5128 | } | |
5129 | if (obj4) { | |
5130 | { | |
5131 | arg5 = &temp5; | |
5132 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5133 | } | |
5134 | } | |
5135 | if (obj5) { | |
5136 | { | |
4e760a36 RD |
5137 | if (! PySequence_Check(obj5)) { |
5138 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5139 | SWIG_fail; | |
5140 | } | |
5141 | arg6 = new wxArrayString; | |
db914595 | 5142 | temp6 = True; |
4e760a36 RD |
5143 | int i, len=PySequence_Length(obj5); |
5144 | for (i=0; i<len; i++) { | |
5145 | PyObject* item = PySequence_GetItem(obj5, i); | |
5146 | #if wxUSE_UNICODE | |
5147 | PyObject* str = PyObject_Unicode(item); | |
5148 | #else | |
5149 | PyObject* str = PyObject_Str(item); | |
5150 | #endif | |
5151 | arg6->Add(Py2wxString(str)); | |
5152 | Py_DECREF(item); | |
5153 | Py_DECREF(str); | |
5154 | } | |
d14a1e28 RD |
5155 | } |
5156 | } | |
8edf1c75 RD |
5157 | if (obj6) { |
5158 | { | |
4e760a36 | 5159 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
5160 | if (PyErr_Occurred()) SWIG_fail; |
5161 | } | |
5162 | } | |
d14a1e28 | 5163 | if (obj7) { |
4e760a36 RD |
5164 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5165 | if (arg8 == NULL) { | |
d14a1e28 RD |
5166 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5167 | } | |
5168 | } | |
5169 | if (obj8) { | |
5170 | { | |
4e760a36 RD |
5171 | arg9 = wxString_in_helper(obj8); |
5172 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 5173 | temp9 = True; |
d14a1e28 RD |
5174 | } |
5175 | } | |
5176 | { | |
5177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 5178 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5179 | |
5180 | wxPyEndAllowThreads(__tstate); | |
5181 | if (PyErr_Occurred()) SWIG_fail; | |
5182 | } | |
4e760a36 | 5183 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 5184 | { |
db914595 | 5185 | if (temp6) delete arg6; |
d14a1e28 RD |
5186 | } |
5187 | { | |
5188 | if (temp9) | |
4e760a36 | 5189 | delete arg9; |
d14a1e28 RD |
5190 | } |
5191 | return resultobj; | |
5192 | fail: | |
5193 | { | |
db914595 | 5194 | if (temp6) delete arg6; |
d14a1e28 RD |
5195 | } |
5196 | { | |
5197 | if (temp9) | |
4e760a36 | 5198 | delete arg9; |
d14a1e28 RD |
5199 | } |
5200 | return NULL; | |
5201 | } | |
5202 | ||
5203 | ||
5204 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5205 | PyObject *resultobj; | |
5206 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5207 | wxString *arg2 = 0 ; | |
5208 | int arg3 ; | |
5209 | PyObject *arg4 = (PyObject *) NULL ; | |
423f194a | 5210 | bool temp2 = False ; |
d14a1e28 RD |
5211 | PyObject * obj0 = 0 ; |
5212 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5213 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5214 | PyObject * obj3 = 0 ; |
5215 | char *kwnames[] = { | |
5216 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5217 | }; | |
5218 | ||
8edf1c75 | 5219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5221 | { | |
5222 | arg2 = wxString_in_helper(obj1); | |
5223 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5224 | temp2 = True; |
d14a1e28 | 5225 | } |
8edf1c75 RD |
5226 | { |
5227 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5228 | if (PyErr_Occurred()) SWIG_fail; | |
5229 | } | |
d14a1e28 RD |
5230 | if (obj3) { |
5231 | arg4 = obj3; | |
5232 | } | |
5233 | { | |
5234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5235 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5236 | ||
5237 | wxPyEndAllowThreads(__tstate); | |
5238 | if (PyErr_Occurred()) SWIG_fail; | |
5239 | } | |
5240 | Py_INCREF(Py_None); resultobj = Py_None; | |
5241 | { | |
5242 | if (temp2) | |
5243 | delete arg2; | |
5244 | } | |
5245 | return resultobj; | |
5246 | fail: | |
5247 | { | |
5248 | if (temp2) | |
5249 | delete arg2; | |
5250 | } | |
5251 | return NULL; | |
5252 | } | |
5253 | ||
5254 | ||
5255 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5256 | PyObject *resultobj; | |
5257 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5258 | wxArrayString *arg2 = 0 ; | |
5259 | int arg3 ; | |
db914595 | 5260 | bool temp2 = False ; |
d14a1e28 RD |
5261 | PyObject * obj0 = 0 ; |
5262 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5263 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5264 | char *kwnames[] = { |
5265 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5266 | }; | |
5267 | ||
8edf1c75 | 5268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
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; | |
db914595 | 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 | } | |
8edf1c75 RD |
5290 | { |
5291 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5292 | if (PyErr_Occurred()) SWIG_fail; | |
5293 | } | |
d14a1e28 RD |
5294 | { |
5295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5296 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5297 | ||
5298 | wxPyEndAllowThreads(__tstate); | |
5299 | if (PyErr_Occurred()) SWIG_fail; | |
5300 | } | |
5301 | Py_INCREF(Py_None); resultobj = Py_None; | |
5302 | { | |
db914595 | 5303 | if (temp2) delete arg2; |
d14a1e28 RD |
5304 | } |
5305 | return resultobj; | |
5306 | fail: | |
5307 | { | |
db914595 | 5308 | if (temp2) delete arg2; |
d14a1e28 RD |
5309 | } |
5310 | return NULL; | |
5311 | } | |
5312 | ||
5313 | ||
5314 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5315 | PyObject *resultobj; | |
5316 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5317 | wxArrayString *arg2 = 0 ; | |
db914595 | 5318 | bool temp2 = False ; |
d14a1e28 RD |
5319 | PyObject * obj0 = 0 ; |
5320 | PyObject * obj1 = 0 ; | |
5321 | char *kwnames[] = { | |
5322 | (char *) "self",(char *) "items", NULL | |
5323 | }; | |
5324 | ||
5325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
5326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5327 | { | |
5328 | if (! PySequence_Check(obj1)) { | |
5329 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5330 | SWIG_fail; | |
5331 | } | |
5332 | arg2 = new wxArrayString; | |
db914595 | 5333 | temp2 = True; |
d14a1e28 RD |
5334 | int i, len=PySequence_Length(obj1); |
5335 | for (i=0; i<len; i++) { | |
5336 | PyObject* item = PySequence_GetItem(obj1, i); | |
5337 | #if wxUSE_UNICODE | |
5338 | PyObject* str = PyObject_Unicode(item); | |
5339 | #else | |
5340 | PyObject* str = PyObject_Str(item); | |
5341 | #endif | |
5342 | arg2->Add(Py2wxString(str)); | |
5343 | Py_DECREF(item); | |
5344 | Py_DECREF(str); | |
5345 | } | |
5346 | } | |
5347 | { | |
5348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5349 | (arg1)->Set((wxArrayString const &)*arg2); | |
5350 | ||
5351 | wxPyEndAllowThreads(__tstate); | |
5352 | if (PyErr_Occurred()) SWIG_fail; | |
5353 | } | |
5354 | Py_INCREF(Py_None); resultobj = Py_None; | |
5355 | { | |
db914595 | 5356 | if (temp2) delete arg2; |
d14a1e28 RD |
5357 | } |
5358 | return resultobj; | |
5359 | fail: | |
5360 | { | |
db914595 | 5361 | if (temp2) delete arg2; |
d14a1e28 RD |
5362 | } |
5363 | return NULL; | |
5364 | } | |
5365 | ||
5366 | ||
5367 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5368 | PyObject *resultobj; | |
5369 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5370 | int arg2 ; | |
5371 | bool result; | |
5372 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5373 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5374 | char *kwnames[] = { |
5375 | (char *) "self",(char *) "n", NULL | |
5376 | }; | |
5377 | ||
8edf1c75 | 5378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5379 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5380 | { |
5381 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5382 | if (PyErr_Occurred()) SWIG_fail; | |
5383 | } | |
d14a1e28 RD |
5384 | { |
5385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5386 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
5387 | ||
5388 | wxPyEndAllowThreads(__tstate); | |
5389 | if (PyErr_Occurred()) SWIG_fail; | |
5390 | } | |
4e760a36 | 5391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5392 | return resultobj; |
5393 | fail: | |
5394 | return NULL; | |
5395 | } | |
5396 | ||
5397 | ||
5398 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5399 | PyObject *resultobj; | |
5400 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5401 | int arg2 ; | |
423f194a | 5402 | bool arg3 = (bool) True ; |
d14a1e28 | 5403 | PyObject * obj0 = 0 ; |
8edf1c75 | 5404 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5405 | PyObject * obj2 = 0 ; |
5406 | char *kwnames[] = { | |
5407 | (char *) "self",(char *) "n",(char *) "select", NULL | |
5408 | }; | |
5409 | ||
8edf1c75 | 5410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5412 | { |
5413 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5414 | if (PyErr_Occurred()) SWIG_fail; | |
5415 | } | |
d14a1e28 | 5416 | if (obj2) { |
83448d71 | 5417 | { |
8edf1c75 | 5418 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
5419 | if (PyErr_Occurred()) SWIG_fail; |
5420 | } | |
d14a1e28 RD |
5421 | } |
5422 | { | |
5423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5424 | (arg1)->SetSelection(arg2,arg3); | |
5425 | ||
5426 | wxPyEndAllowThreads(__tstate); | |
5427 | if (PyErr_Occurred()) SWIG_fail; | |
5428 | } | |
5429 | Py_INCREF(Py_None); resultobj = Py_None; | |
5430 | return resultobj; | |
5431 | fail: | |
5432 | return NULL; | |
5433 | } | |
5434 | ||
5435 | ||
5436 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5437 | PyObject *resultobj; | |
5438 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5439 | int arg2 ; | |
5440 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5441 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5442 | char *kwnames[] = { |
5443 | (char *) "self",(char *) "n", NULL | |
5444 | }; | |
5445 | ||
8edf1c75 | 5446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5448 | { |
5449 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5450 | if (PyErr_Occurred()) SWIG_fail; | |
5451 | } | |
d14a1e28 RD |
5452 | { |
5453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5454 | (arg1)->Select(arg2); | |
5455 | ||
5456 | wxPyEndAllowThreads(__tstate); | |
5457 | if (PyErr_Occurred()) SWIG_fail; | |
5458 | } | |
5459 | Py_INCREF(Py_None); resultobj = Py_None; | |
5460 | return resultobj; | |
5461 | fail: | |
5462 | return NULL; | |
5463 | } | |
5464 | ||
5465 | ||
5466 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5467 | PyObject *resultobj; | |
5468 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5469 | int arg2 ; | |
5470 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5471 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5472 | char *kwnames[] = { |
5473 | (char *) "self",(char *) "n", NULL | |
5474 | }; | |
5475 | ||
8edf1c75 | 5476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5478 | { |
5479 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5480 | if (PyErr_Occurred()) SWIG_fail; | |
5481 | } | |
d14a1e28 RD |
5482 | { |
5483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5484 | (arg1)->Deselect(arg2); | |
5485 | ||
5486 | wxPyEndAllowThreads(__tstate); | |
5487 | if (PyErr_Occurred()) SWIG_fail; | |
5488 | } | |
5489 | Py_INCREF(Py_None); resultobj = Py_None; | |
5490 | return resultobj; | |
5491 | fail: | |
5492 | return NULL; | |
5493 | } | |
5494 | ||
5495 | ||
5496 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5497 | PyObject *resultobj; | |
5498 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5499 | int arg2 = (int) -1 ; | |
5500 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5501 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5502 | char *kwnames[] = { |
5503 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
5504 | }; | |
5505 | ||
8edf1c75 | 5506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5508 | if (obj1) { |
5509 | { | |
5510 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5511 | if (PyErr_Occurred()) SWIG_fail; | |
5512 | } | |
5513 | } | |
d14a1e28 RD |
5514 | { |
5515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5516 | (arg1)->DeselectAll(arg2); | |
5517 | ||
5518 | wxPyEndAllowThreads(__tstate); | |
5519 | if (PyErr_Occurred()) SWIG_fail; | |
5520 | } | |
5521 | Py_INCREF(Py_None); resultobj = Py_None; | |
5522 | return resultobj; | |
5523 | fail: | |
5524 | return NULL; | |
5525 | } | |
5526 | ||
5527 | ||
5528 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5529 | PyObject *resultobj; | |
5530 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5531 | wxString *arg2 = 0 ; | |
423f194a | 5532 | bool arg3 = (bool) True ; |
d14a1e28 | 5533 | bool result; |
423f194a | 5534 | bool temp2 = False ; |
d14a1e28 RD |
5535 | PyObject * obj0 = 0 ; |
5536 | PyObject * obj1 = 0 ; | |
5537 | PyObject * obj2 = 0 ; | |
5538 | char *kwnames[] = { | |
5539 | (char *) "self",(char *) "s",(char *) "select", NULL | |
5540 | }; | |
5541 | ||
5542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5544 | { | |
5545 | arg2 = wxString_in_helper(obj1); | |
5546 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5547 | temp2 = True; |
d14a1e28 RD |
5548 | } |
5549 | if (obj2) { | |
83448d71 | 5550 | { |
8edf1c75 | 5551 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
5552 | if (PyErr_Occurred()) SWIG_fail; |
5553 | } | |
d14a1e28 RD |
5554 | } |
5555 | { | |
5556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5557 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
5558 | ||
5559 | wxPyEndAllowThreads(__tstate); | |
5560 | if (PyErr_Occurred()) SWIG_fail; | |
5561 | } | |
4e760a36 | 5562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5563 | { |
5564 | if (temp2) | |
5565 | delete arg2; | |
5566 | } | |
5567 | return resultobj; | |
5568 | fail: | |
5569 | { | |
5570 | if (temp2) | |
5571 | delete arg2; | |
5572 | } | |
5573 | return NULL; | |
5574 | } | |
5575 | ||
5576 | ||
5577 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5578 | PyObject *resultobj; | |
5579 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5580 | PyObject *result; | |
5581 | PyObject * obj0 = 0 ; | |
5582 | char *kwnames[] = { | |
5583 | (char *) "self", NULL | |
5584 | }; | |
5585 | ||
5586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
5587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5588 | { | |
5589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5590 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
5591 | ||
5592 | wxPyEndAllowThreads(__tstate); | |
5593 | if (PyErr_Occurred()) SWIG_fail; | |
5594 | } | |
5595 | resultobj = result; | |
5596 | return resultobj; | |
5597 | fail: | |
5598 | return NULL; | |
5599 | } | |
5600 | ||
5601 | ||
5602 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5603 | PyObject *resultobj; | |
5604 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5605 | int arg2 ; | |
5606 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5607 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5608 | char *kwnames[] = { |
5609 | (char *) "self",(char *) "n", NULL | |
5610 | }; | |
5611 | ||
8edf1c75 | 5612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5614 | { |
5615 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5616 | if (PyErr_Occurred()) SWIG_fail; | |
5617 | } | |
d14a1e28 RD |
5618 | { |
5619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5620 | (arg1)->SetFirstItem(arg2); | |
5621 | ||
5622 | wxPyEndAllowThreads(__tstate); | |
5623 | if (PyErr_Occurred()) SWIG_fail; | |
5624 | } | |
5625 | Py_INCREF(Py_None); resultobj = Py_None; | |
5626 | return resultobj; | |
5627 | fail: | |
5628 | return NULL; | |
5629 | } | |
5630 | ||
5631 | ||
5632 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5633 | PyObject *resultobj; | |
5634 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5635 | wxString *arg2 = 0 ; | |
423f194a | 5636 | bool temp2 = False ; |
d14a1e28 RD |
5637 | PyObject * obj0 = 0 ; |
5638 | PyObject * obj1 = 0 ; | |
5639 | char *kwnames[] = { | |
5640 | (char *) "self",(char *) "s", NULL | |
5641 | }; | |
5642 | ||
5643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
5644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5645 | { | |
5646 | arg2 = wxString_in_helper(obj1); | |
5647 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5648 | temp2 = True; |
d14a1e28 RD |
5649 | } |
5650 | { | |
5651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5652 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
5653 | ||
5654 | wxPyEndAllowThreads(__tstate); | |
5655 | if (PyErr_Occurred()) SWIG_fail; | |
5656 | } | |
5657 | Py_INCREF(Py_None); resultobj = Py_None; | |
5658 | { | |
5659 | if (temp2) | |
5660 | delete arg2; | |
5661 | } | |
5662 | return resultobj; | |
5663 | fail: | |
5664 | { | |
5665 | if (temp2) | |
5666 | delete arg2; | |
5667 | } | |
5668 | return NULL; | |
5669 | } | |
5670 | ||
5671 | ||
5672 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5673 | PyObject *resultobj; | |
5674 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5675 | int arg2 ; | |
5676 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5677 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5678 | char *kwnames[] = { |
5679 | (char *) "self",(char *) "n", NULL | |
5680 | }; | |
5681 | ||
8edf1c75 | 5682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5684 | { |
5685 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5686 | if (PyErr_Occurred()) SWIG_fail; | |
5687 | } | |
d14a1e28 RD |
5688 | { |
5689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5690 | (arg1)->EnsureVisible(arg2); | |
5691 | ||
5692 | wxPyEndAllowThreads(__tstate); | |
5693 | if (PyErr_Occurred()) SWIG_fail; | |
5694 | } | |
5695 | Py_INCREF(Py_None); resultobj = Py_None; | |
5696 | return resultobj; | |
5697 | fail: | |
5698 | return NULL; | |
5699 | } | |
5700 | ||
5701 | ||
5702 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5703 | PyObject *resultobj; | |
5704 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5705 | wxString *arg2 = 0 ; | |
423f194a | 5706 | bool temp2 = False ; |
d14a1e28 RD |
5707 | PyObject * obj0 = 0 ; |
5708 | PyObject * obj1 = 0 ; | |
5709 | char *kwnames[] = { | |
5710 | (char *) "self",(char *) "s", NULL | |
5711 | }; | |
5712 | ||
5713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
5714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5715 | { | |
5716 | arg2 = wxString_in_helper(obj1); | |
5717 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5718 | temp2 = True; |
d14a1e28 RD |
5719 | } |
5720 | { | |
5721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5722 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
5723 | ||
5724 | wxPyEndAllowThreads(__tstate); | |
5725 | if (PyErr_Occurred()) SWIG_fail; | |
5726 | } | |
5727 | Py_INCREF(Py_None); resultobj = Py_None; | |
5728 | { | |
5729 | if (temp2) | |
5730 | delete arg2; | |
5731 | } | |
5732 | return resultobj; | |
5733 | fail: | |
5734 | { | |
5735 | if (temp2) | |
5736 | delete arg2; | |
5737 | } | |
5738 | return NULL; | |
5739 | } | |
5740 | ||
5741 | ||
5742 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5743 | PyObject *resultobj; | |
5744 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5745 | bool result; | |
5746 | PyObject * obj0 = 0 ; | |
5747 | char *kwnames[] = { | |
5748 | (char *) "self", NULL | |
5749 | }; | |
5750 | ||
5751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
5752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5753 | { | |
5754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5755 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
5756 | ||
5757 | wxPyEndAllowThreads(__tstate); | |
5758 | if (PyErr_Occurred()) SWIG_fail; | |
5759 | } | |
4e760a36 | 5760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5761 | return resultobj; |
5762 | fail: | |
5763 | return NULL; | |
5764 | } | |
5765 | ||
5766 | ||
0ffb2aa6 RD |
5767 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
5768 | PyObject *resultobj; | |
5769 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5770 | int arg2 ; | |
5771 | wxColour *arg3 = 0 ; | |
5772 | wxColour temp3 ; | |
5773 | PyObject * obj0 = 0 ; | |
5774 | PyObject * obj1 = 0 ; | |
5775 | PyObject * obj2 = 0 ; | |
5776 | char *kwnames[] = { | |
5777 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5778 | }; | |
5779 | ||
5780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5782 | { | |
5783 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5784 | if (PyErr_Occurred()) SWIG_fail; | |
5785 | } | |
5786 | { | |
5787 | arg3 = &temp3; | |
5788 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5789 | } | |
5790 | { | |
5791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5792 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5793 | ||
5794 | wxPyEndAllowThreads(__tstate); | |
5795 | if (PyErr_Occurred()) SWIG_fail; | |
5796 | } | |
5797 | Py_INCREF(Py_None); resultobj = Py_None; | |
5798 | return resultobj; | |
5799 | fail: | |
5800 | return NULL; | |
5801 | } | |
5802 | ||
5803 | ||
5804 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5805 | PyObject *resultobj; | |
5806 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5807 | int arg2 ; | |
5808 | wxColour *arg3 = 0 ; | |
5809 | wxColour temp3 ; | |
5810 | PyObject * obj0 = 0 ; | |
5811 | PyObject * obj1 = 0 ; | |
5812 | PyObject * obj2 = 0 ; | |
5813 | char *kwnames[] = { | |
5814 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5815 | }; | |
5816 | ||
5817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5819 | { | |
5820 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5821 | if (PyErr_Occurred()) SWIG_fail; | |
5822 | } | |
5823 | { | |
5824 | arg3 = &temp3; | |
5825 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5826 | } | |
5827 | { | |
5828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5829 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5830 | ||
5831 | wxPyEndAllowThreads(__tstate); | |
5832 | if (PyErr_Occurred()) SWIG_fail; | |
5833 | } | |
5834 | Py_INCREF(Py_None); resultobj = Py_None; | |
5835 | return resultobj; | |
5836 | fail: | |
5837 | return NULL; | |
5838 | } | |
5839 | ||
5840 | ||
5841 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5842 | PyObject *resultobj; | |
5843 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5844 | int arg2 ; | |
5845 | wxFont *arg3 = 0 ; | |
5846 | PyObject * obj0 = 0 ; | |
5847 | PyObject * obj1 = 0 ; | |
5848 | PyObject * obj2 = 0 ; | |
5849 | char *kwnames[] = { | |
5850 | (char *) "self",(char *) "item",(char *) "f", NULL | |
5851 | }; | |
5852 | ||
5853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5855 | { | |
5856 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5857 | if (PyErr_Occurred()) SWIG_fail; | |
5858 | } | |
5859 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5860 | if (arg3 == NULL) { | |
5861 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5862 | } | |
5863 | { | |
5864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5865 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
5866 | ||
5867 | wxPyEndAllowThreads(__tstate); | |
5868 | if (PyErr_Occurred()) SWIG_fail; | |
5869 | } | |
5870 | Py_INCREF(Py_None); resultobj = Py_None; | |
5871 | return resultobj; | |
5872 | fail: | |
5873 | return NULL; | |
5874 | } | |
5875 | ||
5876 | ||
d14a1e28 RD |
5877 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { |
5878 | PyObject *obj; | |
5879 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5880 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
5881 | Py_INCREF(obj); | |
5882 | return Py_BuildValue((char *)""); | |
5883 | } | |
5884 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5885 | PyObject *resultobj; | |
5886 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 5887 | int arg2 ; |
d14a1e28 RD |
5888 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5889 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5890 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5891 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4e760a36 RD |
5892 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5893 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5894 | long arg6 = (long) 0 ; | |
5895 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5896 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5897 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5898 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5899 | wxCheckListBox *result; |
5900 | wxPoint temp3 ; | |
5901 | wxSize temp4 ; | |
db914595 | 5902 | bool temp5 = False ; |
423f194a | 5903 | bool temp8 = False ; |
d14a1e28 | 5904 | PyObject * obj0 = 0 ; |
8edf1c75 | 5905 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5906 | PyObject * obj2 = 0 ; |
5907 | PyObject * obj3 = 0 ; | |
5908 | PyObject * obj4 = 0 ; | |
8edf1c75 | 5909 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5910 | PyObject * obj6 = 0 ; |
5911 | PyObject * obj7 = 0 ; | |
5912 | char *kwnames[] = { | |
5913 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5914 | }; | |
5915 | ||
8edf1c75 | 5916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 5917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5918 | { |
5919 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5920 | if (PyErr_Occurred()) SWIG_fail; | |
5921 | } | |
d14a1e28 RD |
5922 | if (obj2) { |
5923 | { | |
5924 | arg3 = &temp3; | |
5925 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5926 | } | |
5927 | } | |
5928 | if (obj3) { | |
5929 | { | |
5930 | arg4 = &temp4; | |
5931 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5932 | } | |
5933 | } | |
5934 | if (obj4) { | |
5935 | { | |
4e760a36 RD |
5936 | if (! PySequence_Check(obj4)) { |
5937 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5938 | SWIG_fail; | |
5939 | } | |
5940 | arg5 = new wxArrayString; | |
db914595 | 5941 | temp5 = True; |
4e760a36 RD |
5942 | int i, len=PySequence_Length(obj4); |
5943 | for (i=0; i<len; i++) { | |
5944 | PyObject* item = PySequence_GetItem(obj4, i); | |
5945 | #if wxUSE_UNICODE | |
5946 | PyObject* str = PyObject_Unicode(item); | |
5947 | #else | |
5948 | PyObject* str = PyObject_Str(item); | |
5949 | #endif | |
5950 | arg5->Add(Py2wxString(str)); | |
5951 | Py_DECREF(item); | |
5952 | Py_DECREF(str); | |
5953 | } | |
d14a1e28 RD |
5954 | } |
5955 | } | |
8edf1c75 RD |
5956 | if (obj5) { |
5957 | { | |
4e760a36 | 5958 | arg6 = (long) SWIG_PyObj_AsLong(obj5); |
8edf1c75 RD |
5959 | if (PyErr_Occurred()) SWIG_fail; |
5960 | } | |
5961 | } | |
d14a1e28 | 5962 | if (obj6) { |
4e760a36 RD |
5963 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5964 | if (arg7 == NULL) { | |
d14a1e28 RD |
5965 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
5966 | } | |
5967 | } | |
5968 | if (obj7) { | |
5969 | { | |
4e760a36 RD |
5970 | arg8 = wxString_in_helper(obj7); |
5971 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 5972 | temp8 = True; |
d14a1e28 RD |
5973 | } |
5974 | } | |
5975 | { | |
5976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 5977 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5978 | |
5979 | wxPyEndAllowThreads(__tstate); | |
5980 | if (PyErr_Occurred()) SWIG_fail; | |
5981 | } | |
5982 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5983 | { | |
db914595 | 5984 | if (temp5) delete arg5; |
d14a1e28 RD |
5985 | } |
5986 | { | |
5987 | if (temp8) | |
4e760a36 | 5988 | delete arg8; |
d14a1e28 RD |
5989 | } |
5990 | return resultobj; | |
5991 | fail: | |
5992 | { | |
db914595 | 5993 | if (temp5) delete arg5; |
d14a1e28 RD |
5994 | } |
5995 | { | |
5996 | if (temp8) | |
4e760a36 | 5997 | delete arg8; |
d14a1e28 RD |
5998 | } |
5999 | return NULL; | |
6000 | } | |
6001 | ||
6002 | ||
6003 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6004 | PyObject *resultobj; | |
6005 | wxCheckListBox *result; | |
6006 | char *kwnames[] = { | |
6007 | NULL | |
6008 | }; | |
6009 | ||
6010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6011 | { | |
6012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6013 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6014 | ||
6015 | wxPyEndAllowThreads(__tstate); | |
6016 | if (PyErr_Occurred()) SWIG_fail; | |
6017 | } | |
6018 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
6019 | return resultobj; | |
6020 | fail: | |
6021 | return NULL; | |
6022 | } | |
6023 | ||
6024 | ||
6025 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6026 | PyObject *resultobj; | |
6027 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6028 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 6029 | int arg3 ; |
d14a1e28 RD |
6030 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6031 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6032 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6033 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
6034 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
6035 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6036 | long arg7 = (long) 0 ; | |
6037 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6038 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6039 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6040 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
6041 | bool result; |
6042 | wxPoint temp4 ; | |
6043 | wxSize temp5 ; | |
db914595 | 6044 | bool temp6 = False ; |
423f194a | 6045 | bool temp9 = False ; |
d14a1e28 RD |
6046 | PyObject * obj0 = 0 ; |
6047 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6048 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6049 | PyObject * obj3 = 0 ; |
6050 | PyObject * obj4 = 0 ; | |
6051 | PyObject * obj5 = 0 ; | |
8edf1c75 | 6052 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6053 | PyObject * obj7 = 0 ; |
6054 | PyObject * obj8 = 0 ; | |
6055 | char *kwnames[] = { | |
6056 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6057 | }; | |
6058 | ||
8edf1c75 | 6059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
6060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6061 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
6062 | { |
6063 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6064 | if (PyErr_Occurred()) SWIG_fail; | |
6065 | } | |
d14a1e28 RD |
6066 | if (obj3) { |
6067 | { | |
6068 | arg4 = &temp4; | |
6069 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6070 | } | |
6071 | } | |
6072 | if (obj4) { | |
6073 | { | |
6074 | arg5 = &temp5; | |
6075 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6076 | } | |
6077 | } | |
6078 | if (obj5) { | |
6079 | { | |
4e760a36 RD |
6080 | if (! PySequence_Check(obj5)) { |
6081 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6082 | SWIG_fail; | |
6083 | } | |
6084 | arg6 = new wxArrayString; | |
db914595 | 6085 | temp6 = True; |
4e760a36 RD |
6086 | int i, len=PySequence_Length(obj5); |
6087 | for (i=0; i<len; i++) { | |
6088 | PyObject* item = PySequence_GetItem(obj5, i); | |
6089 | #if wxUSE_UNICODE | |
6090 | PyObject* str = PyObject_Unicode(item); | |
6091 | #else | |
6092 | PyObject* str = PyObject_Str(item); | |
6093 | #endif | |
6094 | arg6->Add(Py2wxString(str)); | |
6095 | Py_DECREF(item); | |
6096 | Py_DECREF(str); | |
6097 | } | |
d14a1e28 RD |
6098 | } |
6099 | } | |
8edf1c75 RD |
6100 | if (obj6) { |
6101 | { | |
4e760a36 | 6102 | arg7 = (long) SWIG_PyObj_AsLong(obj6); |
8edf1c75 RD |
6103 | if (PyErr_Occurred()) SWIG_fail; |
6104 | } | |
6105 | } | |
d14a1e28 | 6106 | if (obj7) { |
4e760a36 RD |
6107 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6108 | if (arg8 == NULL) { | |
d14a1e28 RD |
6109 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
6110 | } | |
6111 | } | |
6112 | if (obj8) { | |
6113 | { | |
4e760a36 RD |
6114 | arg9 = wxString_in_helper(obj8); |
6115 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 6116 | temp9 = True; |
d14a1e28 RD |
6117 | } |
6118 | } | |
6119 | { | |
6120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 6121 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
6122 | |
6123 | wxPyEndAllowThreads(__tstate); | |
6124 | if (PyErr_Occurred()) SWIG_fail; | |
6125 | } | |
4e760a36 | 6126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 6127 | { |
db914595 | 6128 | if (temp6) delete arg6; |
d14a1e28 RD |
6129 | } |
6130 | { | |
6131 | if (temp9) | |
4e760a36 | 6132 | delete arg9; |
d14a1e28 RD |
6133 | } |
6134 | return resultobj; | |
6135 | fail: | |
6136 | { | |
db914595 | 6137 | if (temp6) delete arg6; |
d14a1e28 RD |
6138 | } |
6139 | { | |
6140 | if (temp9) | |
4e760a36 | 6141 | delete arg9; |
d14a1e28 RD |
6142 | } |
6143 | return NULL; | |
6144 | } | |
6145 | ||
6146 | ||
6147 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6148 | PyObject *resultobj; | |
6149 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6150 | int arg2 ; | |
6151 | bool result; | |
6152 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6153 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6154 | char *kwnames[] = { |
6155 | (char *) "self",(char *) "index", NULL | |
6156 | }; | |
6157 | ||
8edf1c75 | 6158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6160 | { |
6161 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6162 | if (PyErr_Occurred()) SWIG_fail; | |
6163 | } | |
d14a1e28 RD |
6164 | { |
6165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6166 | result = (bool)(arg1)->IsChecked(arg2); | |
6167 | ||
6168 | wxPyEndAllowThreads(__tstate); | |
6169 | if (PyErr_Occurred()) SWIG_fail; | |
6170 | } | |
4e760a36 | 6171 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6172 | return resultobj; |
6173 | fail: | |
6174 | return NULL; | |
6175 | } | |
6176 | ||
6177 | ||
6178 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6179 | PyObject *resultobj; | |
6180 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6181 | int arg2 ; | |
423f194a | 6182 | int arg3 = (int) True ; |
d14a1e28 | 6183 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
6184 | PyObject * obj1 = 0 ; |
6185 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6186 | char *kwnames[] = { |
6187 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6188 | }; | |
6189 | ||
8edf1c75 | 6190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6192 | { |
6193 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6194 | if (PyErr_Occurred()) SWIG_fail; | |
6195 | } | |
6196 | if (obj2) { | |
6197 | { | |
6198 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6199 | if (PyErr_Occurred()) SWIG_fail; | |
6200 | } | |
6201 | } | |
d14a1e28 RD |
6202 | { |
6203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6204 | (arg1)->Check(arg2,arg3); | |
6205 | ||
6206 | wxPyEndAllowThreads(__tstate); | |
6207 | if (PyErr_Occurred()) SWIG_fail; | |
6208 | } | |
6209 | Py_INCREF(Py_None); resultobj = Py_None; | |
6210 | return resultobj; | |
6211 | fail: | |
6212 | return NULL; | |
6213 | } | |
6214 | ||
6215 | ||
6216 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6217 | PyObject *resultobj; | |
6218 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6219 | int result; | |
6220 | PyObject * obj0 = 0 ; | |
6221 | char *kwnames[] = { | |
6222 | (char *) "self", NULL | |
6223 | }; | |
6224 | ||
6225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
6226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6227 | { | |
6228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6229 | result = (int)(arg1)->GetItemHeight(); | |
6230 | ||
6231 | wxPyEndAllowThreads(__tstate); | |
6232 | if (PyErr_Occurred()) SWIG_fail; | |
6233 | } | |
8edf1c75 | 6234 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6235 | return resultobj; |
6236 | fail: | |
6237 | return NULL; | |
6238 | } | |
6239 | ||
6240 | ||
6241 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6242 | PyObject *resultobj; | |
6243 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6244 | wxPoint *arg2 = 0 ; | |
6245 | int result; | |
6246 | wxPoint temp2 ; | |
6247 | PyObject * obj0 = 0 ; | |
6248 | PyObject * obj1 = 0 ; | |
6249 | char *kwnames[] = { | |
6250 | (char *) "self",(char *) "pt", NULL | |
6251 | }; | |
6252 | ||
6253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
6254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6255 | { | |
6256 | arg2 = &temp2; | |
6257 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6258 | } | |
6259 | { | |
6260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6261 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6262 | ||
6263 | wxPyEndAllowThreads(__tstate); | |
6264 | if (PyErr_Occurred()) SWIG_fail; | |
6265 | } | |
8edf1c75 | 6266 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6267 | return resultobj; |
6268 | fail: | |
6269 | return NULL; | |
6270 | } | |
6271 | ||
6272 | ||
6273 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6274 | PyObject *resultobj; | |
6275 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
423f194a RD |
6276 | int arg2 ; |
6277 | int arg3 ; | |
d14a1e28 RD |
6278 | int result; |
6279 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6280 | PyObject * obj1 = 0 ; |
6281 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6282 | char *kwnames[] = { |
6283 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6284 | }; | |
6285 | ||
8edf1c75 | 6286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6288 | { |
6289 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6290 | if (PyErr_Occurred()) SWIG_fail; | |
6291 | } | |
6292 | { | |
6293 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6294 | if (PyErr_Occurred()) SWIG_fail; | |
6295 | } | |
d14a1e28 RD |
6296 | { |
6297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6298 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6299 | ||
6300 | wxPyEndAllowThreads(__tstate); | |
6301 | if (PyErr_Occurred()) SWIG_fail; | |
6302 | } | |
8edf1c75 | 6303 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6304 | return resultobj; |
6305 | fail: | |
6306 | return NULL; | |
6307 | } | |
6308 | ||
6309 | ||
6310 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6311 | PyObject *obj; | |
6312 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6313 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6314 | Py_INCREF(obj); | |
6315 | return Py_BuildValue((char *)""); | |
6316 | } | |
8edf1c75 | 6317 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
d03fd34d RD |
6318 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
6319 | return 1; | |
6320 | } | |
6321 | ||
6322 | ||
6323 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6324 | PyObject *pyobj; | |
6325 | ||
6326 | { | |
6327 | #if wxUSE_UNICODE | |
6328 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6329 | #else | |
6330 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6331 | #endif | |
6332 | } | |
6333 | return pyobj; | |
6334 | } | |
6335 | ||
6336 | ||
d14a1e28 RD |
6337 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { |
6338 | PyObject *resultobj; | |
6339 | wxTextAttr *result; | |
6340 | ||
6341 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
6342 | { | |
6343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6344 | result = (wxTextAttr *)new wxTextAttr(); | |
6345 | ||
6346 | wxPyEndAllowThreads(__tstate); | |
6347 | if (PyErr_Occurred()) SWIG_fail; | |
6348 | } | |
6349 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6350 | return resultobj; | |
6351 | fail: | |
6352 | return NULL; | |
6353 | } | |
6354 | ||
6355 | ||
6356 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
6357 | PyObject *resultobj; | |
6358 | wxColour *arg1 = 0 ; | |
6359 | wxColour const &arg2_defvalue = wxNullColour ; | |
6360 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6361 | wxFont const &arg3_defvalue = wxNullFont ; | |
6362 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6363 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6364 | wxTextAttr *result; | |
6365 | wxColour temp1 ; | |
6366 | wxColour temp2 ; | |
6367 | PyObject * obj0 = 0 ; | |
6368 | PyObject * obj1 = 0 ; | |
6369 | PyObject * obj2 = 0 ; | |
8edf1c75 | 6370 | PyObject * obj3 = 0 ; |
d14a1e28 | 6371 | |
8edf1c75 | 6372 | if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
6373 | { |
6374 | arg1 = &temp1; | |
6375 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
6376 | } | |
6377 | if (obj1) { | |
6378 | { | |
6379 | arg2 = &temp2; | |
6380 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6381 | } | |
6382 | } | |
6383 | if (obj2) { | |
6384 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6385 | if (arg3 == NULL) { | |
6386 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6387 | } | |
6388 | } | |
8edf1c75 RD |
6389 | if (obj3) { |
6390 | { | |
6391 | arg4 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj3); | |
6392 | if (PyErr_Occurred()) SWIG_fail; | |
6393 | } | |
6394 | } | |
6395 | { | |
6396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6397 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
d14a1e28 RD |
6398 | |
6399 | wxPyEndAllowThreads(__tstate); | |
6400 | if (PyErr_Occurred()) SWIG_fail; | |
6401 | } | |
6402 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6403 | return resultobj; | |
6404 | fail: | |
6405 | return NULL; | |
6406 | } | |
6407 | ||
6408 | ||
6409 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
6410 | int argc; | |
6411 | PyObject *argv[5]; | |
6412 | int ii; | |
6413 | ||
6414 | argc = PyObject_Length(args); | |
6415 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
6416 | argv[ii] = PyTuple_GetItem(args,ii); | |
6417 | } | |
6418 | if (argc == 0) { | |
6419 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
6420 | } | |
6421 | if ((argc >= 1) && (argc <= 4)) { | |
6422 | int _v; | |
6423 | { | |
6424 | _v = wxColour_typecheck(argv[0]); | |
6425 | } | |
6426 | if (_v) { | |
6427 | if (argc <= 1) { | |
6428 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6429 | } | |
6430 | { | |
6431 | _v = wxColour_typecheck(argv[1]); | |
6432 | } | |
6433 | if (_v) { | |
6434 | if (argc <= 2) { | |
6435 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6436 | } | |
6437 | { | |
6438 | void *ptr; | |
6439 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxFont, 0) == -1) { | |
6440 | _v = 0; | |
6441 | PyErr_Clear(); | |
6442 | } else { | |
6443 | _v = 1; | |
6444 | } | |
6445 | } | |
6446 | if (_v) { | |
6447 | if (argc <= 3) { | |
6448 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6449 | } | |
8edf1c75 RD |
6450 | { |
6451 | SWIG_PyObj_AsInt(argv[3]); | |
6452 | if (PyErr_Occurred()) { | |
6453 | _v = 0; | |
6454 | PyErr_Clear(); | |
6455 | } else { | |
6456 | _v = 1; | |
6457 | } | |
6458 | } | |
6459 | if (_v) { | |
6460 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6461 | } | |
d14a1e28 RD |
6462 | } |
6463 | } | |
6464 | } | |
6465 | } | |
6466 | ||
6467 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
6468 | return NULL; | |
6469 | } | |
6470 | ||
6471 | ||
8edf1c75 RD |
6472 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
6473 | PyObject *resultobj; | |
6474 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6475 | PyObject * obj0 = 0 ; | |
6476 | char *kwnames[] = { | |
6477 | (char *) "self", NULL | |
6478 | }; | |
6479 | ||
6480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
6481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6482 | { | |
6483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6484 | delete arg1; | |
6485 | ||
6486 | wxPyEndAllowThreads(__tstate); | |
6487 | if (PyErr_Occurred()) SWIG_fail; | |
6488 | } | |
6489 | Py_INCREF(Py_None); resultobj = Py_None; | |
6490 | return resultobj; | |
6491 | fail: | |
6492 | return NULL; | |
6493 | } | |
6494 | ||
6495 | ||
d14a1e28 RD |
6496 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { |
6497 | PyObject *resultobj; | |
6498 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6499 | PyObject * obj0 = 0 ; | |
6500 | char *kwnames[] = { | |
6501 | (char *) "self", NULL | |
6502 | }; | |
6503 | ||
6504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
6505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6506 | { | |
6507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6508 | (arg1)->Init(); | |
6509 | ||
6510 | wxPyEndAllowThreads(__tstate); | |
6511 | if (PyErr_Occurred()) SWIG_fail; | |
6512 | } | |
6513 | Py_INCREF(Py_None); resultobj = Py_None; | |
6514 | return resultobj; | |
6515 | fail: | |
6516 | return NULL; | |
6517 | } | |
6518 | ||
6519 | ||
6520 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6521 | PyObject *resultobj; | |
6522 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6523 | wxColour *arg2 = 0 ; | |
6524 | wxColour temp2 ; | |
6525 | PyObject * obj0 = 0 ; | |
6526 | PyObject * obj1 = 0 ; | |
6527 | char *kwnames[] = { | |
6528 | (char *) "self",(char *) "colText", NULL | |
6529 | }; | |
6530 | ||
6531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
6532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6533 | { | |
6534 | arg2 = &temp2; | |
6535 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6536 | } | |
6537 | { | |
6538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6539 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
6540 | ||
6541 | wxPyEndAllowThreads(__tstate); | |
6542 | if (PyErr_Occurred()) SWIG_fail; | |
6543 | } | |
6544 | Py_INCREF(Py_None); resultobj = Py_None; | |
6545 | return resultobj; | |
6546 | fail: | |
6547 | return NULL; | |
6548 | } | |
6549 | ||
6550 | ||
6551 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6552 | PyObject *resultobj; | |
6553 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6554 | wxColour *arg2 = 0 ; | |
6555 | wxColour temp2 ; | |
6556 | PyObject * obj0 = 0 ; | |
6557 | PyObject * obj1 = 0 ; | |
6558 | char *kwnames[] = { | |
6559 | (char *) "self",(char *) "colBack", NULL | |
6560 | }; | |
6561 | ||
6562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
6563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6564 | { | |
6565 | arg2 = &temp2; | |
6566 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6567 | } | |
6568 | { | |
6569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6570 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
6571 | ||
6572 | wxPyEndAllowThreads(__tstate); | |
6573 | if (PyErr_Occurred()) SWIG_fail; | |
6574 | } | |
6575 | Py_INCREF(Py_None); resultobj = Py_None; | |
6576 | return resultobj; | |
6577 | fail: | |
6578 | return NULL; | |
6579 | } | |
6580 | ||
6581 | ||
6582 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6583 | PyObject *resultobj; | |
6584 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6585 | wxFont *arg2 = 0 ; | |
6586 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
6587 | PyObject * obj0 = 0 ; | |
6588 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6589 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6590 | char *kwnames[] = { |
6591 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
6592 | }; | |
6593 | ||
8edf1c75 | 6594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6596 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6597 | if (arg2 == NULL) { | |
6598 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6599 | } | |
8edf1c75 RD |
6600 | if (obj2) { |
6601 | { | |
6602 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
6603 | if (PyErr_Occurred()) SWIG_fail; | |
6604 | } | |
6605 | } | |
d14a1e28 RD |
6606 | { |
6607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6608 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
6609 | ||
6610 | wxPyEndAllowThreads(__tstate); | |
6611 | if (PyErr_Occurred()) SWIG_fail; | |
6612 | } | |
6613 | Py_INCREF(Py_None); resultobj = Py_None; | |
6614 | return resultobj; | |
6615 | fail: | |
6616 | return NULL; | |
6617 | } | |
6618 | ||
6619 | ||
6620 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6621 | PyObject *resultobj; | |
6622 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6623 | int arg2 ; | |
6624 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6625 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6626 | char *kwnames[] = { |
6627 | (char *) "self",(char *) "alignment", NULL | |
6628 | }; | |
6629 | ||
8edf1c75 | 6630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6632 | { |
6633 | arg2 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj1); | |
6634 | if (PyErr_Occurred()) SWIG_fail; | |
6635 | } | |
d14a1e28 RD |
6636 | { |
6637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6638 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
6639 | ||
6640 | wxPyEndAllowThreads(__tstate); | |
6641 | if (PyErr_Occurred()) SWIG_fail; | |
6642 | } | |
6643 | Py_INCREF(Py_None); resultobj = Py_None; | |
6644 | return resultobj; | |
6645 | fail: | |
6646 | return NULL; | |
6647 | } | |
6648 | ||
6649 | ||
6650 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6651 | PyObject *resultobj; | |
6652 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6653 | wxArrayInt *arg2 = 0 ; | |
db914595 | 6654 | bool temp2 = False ; |
d14a1e28 RD |
6655 | PyObject * obj0 = 0 ; |
6656 | PyObject * obj1 = 0 ; | |
6657 | char *kwnames[] = { | |
6658 | (char *) "self",(char *) "tabs", NULL | |
6659 | }; | |
6660 | ||
6661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
6662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6663 | { | |
6664 | if (! PySequence_Check(obj1)) { | |
6665 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
6666 | SWIG_fail; | |
6667 | } | |
6668 | arg2 = new wxArrayInt; | |
db914595 | 6669 | temp2 = True; |
d14a1e28 RD |
6670 | int i, len=PySequence_Length(obj1); |
6671 | for (i=0; i<len; i++) { | |
6672 | PyObject* item = PySequence_GetItem(obj1, i); | |
6673 | PyObject* number = PyNumber_Int(item); | |
6674 | arg2->Add(PyInt_AS_LONG(number)); | |
6675 | Py_DECREF(item); | |
6676 | Py_DECREF(number); | |
6677 | } | |
6678 | } | |
6679 | { | |
6680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6681 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
6682 | ||
6683 | wxPyEndAllowThreads(__tstate); | |
6684 | if (PyErr_Occurred()) SWIG_fail; | |
6685 | } | |
6686 | Py_INCREF(Py_None); resultobj = Py_None; | |
6687 | { | |
db914595 | 6688 | if (temp2) delete arg2; |
d14a1e28 RD |
6689 | } |
6690 | return resultobj; | |
6691 | fail: | |
6692 | { | |
db914595 | 6693 | if (temp2) delete arg2; |
d14a1e28 RD |
6694 | } |
6695 | return NULL; | |
6696 | } | |
6697 | ||
6698 | ||
6699 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6700 | PyObject *resultobj; | |
6701 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6702 | int arg2 ; | |
6703 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6704 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6705 | char *kwnames[] = { |
6706 | (char *) "self",(char *) "indent", NULL | |
6707 | }; | |
6708 | ||
8edf1c75 | 6709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6711 | { |
6712 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6713 | if (PyErr_Occurred()) SWIG_fail; | |
6714 | } | |
d14a1e28 RD |
6715 | { |
6716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6717 | (arg1)->SetLeftIndent(arg2); | |
6718 | ||
6719 | wxPyEndAllowThreads(__tstate); | |
6720 | if (PyErr_Occurred()) SWIG_fail; | |
6721 | } | |
6722 | Py_INCREF(Py_None); resultobj = Py_None; | |
6723 | return resultobj; | |
6724 | fail: | |
6725 | return NULL; | |
6726 | } | |
6727 | ||
6728 | ||
6729 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6730 | PyObject *resultobj; | |
6731 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6732 | int arg2 ; | |
6733 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6734 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6735 | char *kwnames[] = { |
6736 | (char *) "self",(char *) "indent", NULL | |
6737 | }; | |
6738 | ||
8edf1c75 | 6739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6741 | { |
6742 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6743 | if (PyErr_Occurred()) SWIG_fail; | |
6744 | } | |
d14a1e28 RD |
6745 | { |
6746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6747 | (arg1)->SetRightIndent(arg2); | |
6748 | ||
6749 | wxPyEndAllowThreads(__tstate); | |
6750 | if (PyErr_Occurred()) SWIG_fail; | |
6751 | } | |
6752 | Py_INCREF(Py_None); resultobj = Py_None; | |
6753 | return resultobj; | |
6754 | fail: | |
6755 | return NULL; | |
6756 | } | |
6757 | ||
6758 | ||
6759 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6760 | PyObject *resultobj; | |
6761 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6762 | long arg2 ; | |
6763 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6764 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6765 | char *kwnames[] = { |
6766 | (char *) "self",(char *) "flags", NULL | |
6767 | }; | |
6768 | ||
8edf1c75 | 6769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6771 | { |
6772 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
6773 | if (PyErr_Occurred()) SWIG_fail; | |
6774 | } | |
d14a1e28 RD |
6775 | { |
6776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6777 | (arg1)->SetFlags(arg2); | |
6778 | ||
6779 | wxPyEndAllowThreads(__tstate); | |
6780 | if (PyErr_Occurred()) SWIG_fail; | |
6781 | } | |
6782 | Py_INCREF(Py_None); resultobj = Py_None; | |
6783 | return resultobj; | |
6784 | fail: | |
6785 | return NULL; | |
6786 | } | |
6787 | ||
6788 | ||
6789 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6790 | PyObject *resultobj; | |
6791 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6792 | bool result; | |
6793 | PyObject * obj0 = 0 ; | |
6794 | char *kwnames[] = { | |
6795 | (char *) "self", NULL | |
6796 | }; | |
6797 | ||
6798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
6799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6800 | { | |
6801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6802 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
6803 | ||
6804 | wxPyEndAllowThreads(__tstate); | |
6805 | if (PyErr_Occurred()) SWIG_fail; | |
6806 | } | |
4e760a36 | 6807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6808 | return resultobj; |
6809 | fail: | |
6810 | return NULL; | |
6811 | } | |
6812 | ||
6813 | ||
6814 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6815 | PyObject *resultobj; | |
6816 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6817 | bool result; | |
6818 | PyObject * obj0 = 0 ; | |
6819 | char *kwnames[] = { | |
6820 | (char *) "self", NULL | |
6821 | }; | |
6822 | ||
6823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
6824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6825 | { | |
6826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6827 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
6828 | ||
6829 | wxPyEndAllowThreads(__tstate); | |
6830 | if (PyErr_Occurred()) SWIG_fail; | |
6831 | } | |
4e760a36 | 6832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6833 | return resultobj; |
6834 | fail: | |
6835 | return NULL; | |
6836 | } | |
6837 | ||
6838 | ||
6839 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6840 | PyObject *resultobj; | |
6841 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6842 | bool result; | |
6843 | PyObject * obj0 = 0 ; | |
6844 | char *kwnames[] = { | |
6845 | (char *) "self", NULL | |
6846 | }; | |
6847 | ||
6848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
6849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6850 | { | |
6851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6852 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
6853 | ||
6854 | wxPyEndAllowThreads(__tstate); | |
6855 | if (PyErr_Occurred()) SWIG_fail; | |
6856 | } | |
4e760a36 | 6857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6858 | return resultobj; |
6859 | fail: | |
6860 | return NULL; | |
6861 | } | |
6862 | ||
6863 | ||
6864 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6865 | PyObject *resultobj; | |
6866 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6867 | bool result; | |
6868 | PyObject * obj0 = 0 ; | |
6869 | char *kwnames[] = { | |
6870 | (char *) "self", NULL | |
6871 | }; | |
6872 | ||
6873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
6874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6875 | { | |
6876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6877 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
6878 | ||
6879 | wxPyEndAllowThreads(__tstate); | |
6880 | if (PyErr_Occurred()) SWIG_fail; | |
6881 | } | |
4e760a36 | 6882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6883 | return resultobj; |
6884 | fail: | |
6885 | return NULL; | |
6886 | } | |
6887 | ||
6888 | ||
6889 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6890 | PyObject *resultobj; | |
6891 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6892 | bool result; | |
6893 | PyObject * obj0 = 0 ; | |
6894 | char *kwnames[] = { | |
6895 | (char *) "self", NULL | |
6896 | }; | |
6897 | ||
6898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
6899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6900 | { | |
6901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6902 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
6903 | ||
6904 | wxPyEndAllowThreads(__tstate); | |
6905 | if (PyErr_Occurred()) SWIG_fail; | |
6906 | } | |
4e760a36 | 6907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6908 | return resultobj; |
6909 | fail: | |
6910 | return NULL; | |
6911 | } | |
6912 | ||
6913 | ||
6914 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6915 | PyObject *resultobj; | |
6916 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6917 | bool result; | |
6918 | PyObject * obj0 = 0 ; | |
6919 | char *kwnames[] = { | |
6920 | (char *) "self", NULL | |
6921 | }; | |
6922 | ||
6923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
6924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6925 | { | |
6926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6927 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
6928 | ||
6929 | wxPyEndAllowThreads(__tstate); | |
6930 | if (PyErr_Occurred()) SWIG_fail; | |
6931 | } | |
4e760a36 | 6932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6933 | return resultobj; |
6934 | fail: | |
6935 | return NULL; | |
6936 | } | |
6937 | ||
6938 | ||
6939 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6940 | PyObject *resultobj; | |
6941 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6942 | bool result; | |
6943 | PyObject * obj0 = 0 ; | |
6944 | char *kwnames[] = { | |
6945 | (char *) "self", NULL | |
6946 | }; | |
6947 | ||
6948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
6949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6950 | { | |
6951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6952 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
6953 | ||
6954 | wxPyEndAllowThreads(__tstate); | |
6955 | if (PyErr_Occurred()) SWIG_fail; | |
6956 | } | |
4e760a36 | 6957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6958 | return resultobj; |
6959 | fail: | |
6960 | return NULL; | |
6961 | } | |
6962 | ||
6963 | ||
6964 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6965 | PyObject *resultobj; | |
6966 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6967 | long arg2 ; | |
6968 | bool result; | |
6969 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6970 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6971 | char *kwnames[] = { |
6972 | (char *) "self",(char *) "flag", NULL | |
6973 | }; | |
6974 | ||
8edf1c75 | 6975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6977 | { |
6978 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
6979 | if (PyErr_Occurred()) SWIG_fail; | |
6980 | } | |
d14a1e28 RD |
6981 | { |
6982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6983 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
6984 | ||
6985 | wxPyEndAllowThreads(__tstate); | |
6986 | if (PyErr_Occurred()) SWIG_fail; | |
6987 | } | |
4e760a36 | 6988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6989 | return resultobj; |
6990 | fail: | |
6991 | return NULL; | |
6992 | } | |
6993 | ||
6994 | ||
6995 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6996 | PyObject *resultobj; | |
6997 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6998 | wxColour *result; | |
6999 | PyObject * obj0 = 0 ; | |
7000 | char *kwnames[] = { | |
7001 | (char *) "self", NULL | |
7002 | }; | |
7003 | ||
7004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
7005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7006 | { | |
7007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7008 | { | |
7009 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7010 | result = (wxColour *) &_result_ref; | |
7011 | } | |
7012 | ||
7013 | wxPyEndAllowThreads(__tstate); | |
7014 | if (PyErr_Occurred()) SWIG_fail; | |
7015 | } | |
7016 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
7017 | return resultobj; | |
7018 | fail: | |
7019 | return NULL; | |
7020 | } | |
7021 | ||
7022 | ||
7023 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7024 | PyObject *resultobj; | |
7025 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7026 | wxColour *result; | |
7027 | PyObject * obj0 = 0 ; | |
7028 | char *kwnames[] = { | |
7029 | (char *) "self", NULL | |
7030 | }; | |
7031 | ||
7032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
7033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7034 | { | |
7035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7036 | { | |
7037 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7038 | result = (wxColour *) &_result_ref; | |
7039 | } | |
7040 | ||
7041 | wxPyEndAllowThreads(__tstate); | |
7042 | if (PyErr_Occurred()) SWIG_fail; | |
7043 | } | |
7044 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
7045 | return resultobj; | |
7046 | fail: | |
7047 | return NULL; | |
7048 | } | |
7049 | ||
7050 | ||
7051 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7052 | PyObject *resultobj; | |
7053 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7054 | wxFont *result; | |
7055 | PyObject * obj0 = 0 ; | |
7056 | char *kwnames[] = { | |
7057 | (char *) "self", NULL | |
7058 | }; | |
7059 | ||
7060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
7061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7062 | { | |
7063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7064 | { | |
7065 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7066 | result = (wxFont *) &_result_ref; | |
7067 | } | |
7068 | ||
7069 | wxPyEndAllowThreads(__tstate); | |
7070 | if (PyErr_Occurred()) SWIG_fail; | |
7071 | } | |
7072 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
7073 | return resultobj; | |
7074 | fail: | |
7075 | return NULL; | |
7076 | } | |
7077 | ||
7078 | ||
7079 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7080 | PyObject *resultobj; | |
7081 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7082 | int result; | |
7083 | PyObject * obj0 = 0 ; | |
7084 | char *kwnames[] = { | |
7085 | (char *) "self", NULL | |
7086 | }; | |
7087 | ||
7088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
7089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7090 | { | |
7091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7092 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7093 | ||
7094 | wxPyEndAllowThreads(__tstate); | |
7095 | if (PyErr_Occurred()) SWIG_fail; | |
7096 | } | |
8edf1c75 | 7097 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7098 | return resultobj; |
7099 | fail: | |
7100 | return NULL; | |
7101 | } | |
7102 | ||
7103 | ||
7104 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7105 | PyObject *resultobj; | |
7106 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7107 | wxArrayInt *result; | |
7108 | PyObject * obj0 = 0 ; | |
7109 | char *kwnames[] = { | |
7110 | (char *) "self", NULL | |
7111 | }; | |
7112 | ||
7113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
7114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7115 | { | |
7116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7117 | { | |
7118 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7119 | result = (wxArrayInt *) &_result_ref; | |
7120 | } | |
7121 | ||
7122 | wxPyEndAllowThreads(__tstate); | |
7123 | if (PyErr_Occurred()) SWIG_fail; | |
7124 | } | |
7125 | { | |
7126 | resultobj = PyList_New(0); | |
7127 | size_t idx; | |
7128 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7129 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7130 | PyList_Append(resultobj, val); | |
7131 | Py_DECREF(val); | |
7132 | } | |
7133 | } | |
7134 | return resultobj; | |
7135 | fail: | |
7136 | return NULL; | |
7137 | } | |
7138 | ||
7139 | ||
7140 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7141 | PyObject *resultobj; | |
7142 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7143 | long result; | |
7144 | PyObject * obj0 = 0 ; | |
7145 | char *kwnames[] = { | |
7146 | (char *) "self", NULL | |
7147 | }; | |
7148 | ||
7149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
7150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7151 | { | |
7152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7153 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7154 | ||
7155 | wxPyEndAllowThreads(__tstate); | |
7156 | if (PyErr_Occurred()) SWIG_fail; | |
7157 | } | |
8edf1c75 | 7158 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7159 | return resultobj; |
7160 | fail: | |
7161 | return NULL; | |
7162 | } | |
7163 | ||
7164 | ||
7165 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7166 | PyObject *resultobj; | |
7167 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7168 | long result; | |
7169 | PyObject * obj0 = 0 ; | |
7170 | char *kwnames[] = { | |
7171 | (char *) "self", NULL | |
7172 | }; | |
7173 | ||
7174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
7175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7176 | { | |
7177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7178 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7179 | ||
7180 | wxPyEndAllowThreads(__tstate); | |
7181 | if (PyErr_Occurred()) SWIG_fail; | |
7182 | } | |
8edf1c75 | 7183 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7184 | return resultobj; |
7185 | fail: | |
7186 | return NULL; | |
7187 | } | |
7188 | ||
7189 | ||
7190 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7191 | PyObject *resultobj; | |
7192 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7193 | long result; | |
7194 | PyObject * obj0 = 0 ; | |
7195 | char *kwnames[] = { | |
7196 | (char *) "self", NULL | |
7197 | }; | |
7198 | ||
7199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
7200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7201 | { | |
7202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7203 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7204 | ||
7205 | wxPyEndAllowThreads(__tstate); | |
7206 | if (PyErr_Occurred()) SWIG_fail; | |
7207 | } | |
8edf1c75 | 7208 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7209 | return resultobj; |
7210 | fail: | |
7211 | return NULL; | |
7212 | } | |
7213 | ||
7214 | ||
7215 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7216 | PyObject *resultobj; | |
7217 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7218 | bool result; | |
7219 | PyObject * obj0 = 0 ; | |
7220 | char *kwnames[] = { | |
7221 | (char *) "self", NULL | |
7222 | }; | |
7223 | ||
7224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
7225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7226 | { | |
7227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7228 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7229 | ||
7230 | wxPyEndAllowThreads(__tstate); | |
7231 | if (PyErr_Occurred()) SWIG_fail; | |
7232 | } | |
4e760a36 | 7233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7234 | return resultobj; |
7235 | fail: | |
7236 | return NULL; | |
7237 | } | |
7238 | ||
7239 | ||
7240 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7241 | PyObject *resultobj; | |
7242 | wxTextAttr *arg1 = 0 ; | |
7243 | wxTextAttr *arg2 = 0 ; | |
7244 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7245 | wxTextAttr result; | |
7246 | PyObject * obj0 = 0 ; | |
7247 | PyObject * obj1 = 0 ; | |
7248 | PyObject * obj2 = 0 ; | |
7249 | char *kwnames[] = { | |
7250 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7251 | }; | |
7252 | ||
7253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7255 | if (arg1 == NULL) { | |
7256 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7257 | } | |
7258 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7259 | if (arg2 == NULL) { | |
7260 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7261 | } | |
7262 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7263 | { | |
7264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7265 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7266 | ||
7267 | wxPyEndAllowThreads(__tstate); | |
7268 | if (PyErr_Occurred()) SWIG_fail; | |
7269 | } | |
7270 | { | |
7271 | wxTextAttr * resultptr; | |
7272 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
7273 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTextAttr, 1); | |
7274 | } | |
7275 | return resultobj; | |
7276 | fail: | |
7277 | return NULL; | |
7278 | } | |
7279 | ||
7280 | ||
7281 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7282 | PyObject *obj; | |
7283 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7284 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7285 | Py_INCREF(obj); | |
7286 | return Py_BuildValue((char *)""); | |
7287 | } | |
7288 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7289 | PyObject *resultobj; | |
7290 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 7291 | int arg2 ; |
d14a1e28 RD |
7292 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7293 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7294 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7295 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7296 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7297 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7298 | long arg6 = (long) 0 ; | |
7299 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7300 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7301 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7302 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7303 | wxTextCtrl *result; | |
423f194a | 7304 | bool temp3 = False ; |
d14a1e28 RD |
7305 | wxPoint temp4 ; |
7306 | wxSize temp5 ; | |
423f194a | 7307 | bool temp8 = False ; |
d14a1e28 | 7308 | PyObject * obj0 = 0 ; |
8edf1c75 | 7309 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7310 | PyObject * obj2 = 0 ; |
7311 | PyObject * obj3 = 0 ; | |
7312 | PyObject * obj4 = 0 ; | |
8edf1c75 | 7313 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7314 | PyObject * obj6 = 0 ; |
7315 | PyObject * obj7 = 0 ; | |
7316 | char *kwnames[] = { | |
7317 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7318 | }; | |
7319 | ||
8edf1c75 | 7320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 7321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7322 | { |
7323 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7324 | if (PyErr_Occurred()) SWIG_fail; | |
7325 | } | |
d14a1e28 RD |
7326 | if (obj2) { |
7327 | { | |
7328 | arg3 = wxString_in_helper(obj2); | |
7329 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7330 | temp3 = True; |
d14a1e28 RD |
7331 | } |
7332 | } | |
7333 | if (obj3) { | |
7334 | { | |
7335 | arg4 = &temp4; | |
7336 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7337 | } | |
7338 | } | |
7339 | if (obj4) { | |
7340 | { | |
7341 | arg5 = &temp5; | |
7342 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7343 | } | |
7344 | } | |
8edf1c75 RD |
7345 | if (obj5) { |
7346 | { | |
7347 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
7348 | if (PyErr_Occurred()) SWIG_fail; | |
7349 | } | |
7350 | } | |
d14a1e28 RD |
7351 | if (obj6) { |
7352 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7353 | if (arg7 == NULL) { | |
7354 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7355 | } | |
7356 | } | |
7357 | if (obj7) { | |
7358 | { | |
7359 | arg8 = wxString_in_helper(obj7); | |
7360 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 7361 | temp8 = True; |
d14a1e28 RD |
7362 | } |
7363 | } | |
7364 | { | |
7365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7366 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7367 | ||
7368 | wxPyEndAllowThreads(__tstate); | |
7369 | if (PyErr_Occurred()) SWIG_fail; | |
7370 | } | |
7371 | { | |
7372 | resultobj = wxPyMake_wxObject(result); | |
7373 | } | |
7374 | { | |
7375 | if (temp3) | |
7376 | delete arg3; | |
7377 | } | |
7378 | { | |
7379 | if (temp8) | |
7380 | delete arg8; | |
7381 | } | |
7382 | return resultobj; | |
7383 | fail: | |
7384 | { | |
7385 | if (temp3) | |
7386 | delete arg3; | |
7387 | } | |
7388 | { | |
7389 | if (temp8) | |
7390 | delete arg8; | |
7391 | } | |
7392 | return NULL; | |
7393 | } | |
7394 | ||
7395 | ||
7396 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7397 | PyObject *resultobj; | |
7398 | wxTextCtrl *result; | |
7399 | char *kwnames[] = { | |
7400 | NULL | |
7401 | }; | |
7402 | ||
7403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
7404 | { | |
7405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7406 | result = (wxTextCtrl *)new wxTextCtrl(); | |
7407 | ||
7408 | wxPyEndAllowThreads(__tstate); | |
7409 | if (PyErr_Occurred()) SWIG_fail; | |
7410 | } | |
7411 | { | |
7412 | resultobj = wxPyMake_wxObject(result); | |
7413 | } | |
7414 | return resultobj; | |
7415 | fail: | |
7416 | return NULL; | |
7417 | } | |
7418 | ||
7419 | ||
7420 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7421 | PyObject *resultobj; | |
7422 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7423 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 7424 | int arg3 ; |
d14a1e28 RD |
7425 | wxString const &arg4_defvalue = wxPyEmptyString ; |
7426 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7427 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7428 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7429 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7430 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7431 | long arg7 = (long) 0 ; | |
7432 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7433 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7434 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
7435 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7436 | bool result; | |
423f194a | 7437 | bool temp4 = False ; |
d14a1e28 RD |
7438 | wxPoint temp5 ; |
7439 | wxSize temp6 ; | |
423f194a | 7440 | bool temp9 = False ; |
d14a1e28 RD |
7441 | PyObject * obj0 = 0 ; |
7442 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7443 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7444 | PyObject * obj3 = 0 ; |
7445 | PyObject * obj4 = 0 ; | |
7446 | PyObject * obj5 = 0 ; | |
8edf1c75 | 7447 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7448 | PyObject * obj7 = 0 ; |
7449 | PyObject * obj8 = 0 ; | |
7450 | char *kwnames[] = { | |
7451 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7452 | }; | |
7453 | ||
8edf1c75 | 7454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
7455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7456 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
7457 | { |
7458 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7459 | if (PyErr_Occurred()) SWIG_fail; | |
7460 | } | |
d14a1e28 RD |
7461 | if (obj3) { |
7462 | { | |
7463 | arg4 = wxString_in_helper(obj3); | |
7464 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7465 | temp4 = True; |
d14a1e28 RD |
7466 | } |
7467 | } | |
7468 | if (obj4) { | |
7469 | { | |
7470 | arg5 = &temp5; | |
7471 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
7472 | } | |
7473 | } | |
7474 | if (obj5) { | |
7475 | { | |
7476 | arg6 = &temp6; | |
7477 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7478 | } | |
7479 | } | |
8edf1c75 RD |
7480 | if (obj6) { |
7481 | { | |
7482 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
7483 | if (PyErr_Occurred()) SWIG_fail; | |
7484 | } | |
7485 | } | |
d14a1e28 RD |
7486 | if (obj7) { |
7487 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7488 | if (arg8 == NULL) { | |
7489 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7490 | } | |
7491 | } | |
7492 | if (obj8) { | |
7493 | { | |
7494 | arg9 = wxString_in_helper(obj8); | |
7495 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 7496 | temp9 = True; |
d14a1e28 RD |
7497 | } |
7498 | } | |
7499 | { | |
7500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7501 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7502 | ||
7503 | wxPyEndAllowThreads(__tstate); | |
7504 | if (PyErr_Occurred()) SWIG_fail; | |
7505 | } | |
4e760a36 | 7506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7507 | { |
7508 | if (temp4) | |
7509 | delete arg4; | |
7510 | } | |
7511 | { | |
7512 | if (temp9) | |
7513 | delete arg9; | |
7514 | } | |
7515 | return resultobj; | |
7516 | fail: | |
7517 | { | |
7518 | if (temp4) | |
7519 | delete arg4; | |
7520 | } | |
7521 | { | |
7522 | if (temp9) | |
7523 | delete arg9; | |
7524 | } | |
7525 | return NULL; | |
7526 | } | |
7527 | ||
7528 | ||
7529 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7530 | PyObject *resultobj; | |
7531 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7532 | wxString result; | |
7533 | PyObject * obj0 = 0 ; | |
7534 | char *kwnames[] = { | |
7535 | (char *) "self", NULL | |
7536 | }; | |
7537 | ||
7538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
7539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7540 | { | |
7541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7542 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
7543 | ||
7544 | wxPyEndAllowThreads(__tstate); | |
7545 | if (PyErr_Occurred()) SWIG_fail; | |
7546 | } | |
7547 | { | |
7548 | #if wxUSE_UNICODE | |
7549 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7550 | #else | |
7551 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7552 | #endif | |
7553 | } | |
7554 | return resultobj; | |
7555 | fail: | |
7556 | return NULL; | |
7557 | } | |
7558 | ||
7559 | ||
7560 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7561 | PyObject *resultobj; | |
7562 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7563 | wxString *arg2 = 0 ; | |
423f194a | 7564 | bool temp2 = False ; |
d14a1e28 RD |
7565 | PyObject * obj0 = 0 ; |
7566 | PyObject * obj1 = 0 ; | |
7567 | char *kwnames[] = { | |
7568 | (char *) "self",(char *) "value", NULL | |
7569 | }; | |
7570 | ||
7571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
7572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7573 | { | |
7574 | arg2 = wxString_in_helper(obj1); | |
7575 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7576 | temp2 = True; |
d14a1e28 RD |
7577 | } |
7578 | { | |
7579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7580 | (arg1)->SetValue((wxString const &)*arg2); | |
7581 | ||
7582 | wxPyEndAllowThreads(__tstate); | |
7583 | if (PyErr_Occurred()) SWIG_fail; | |
7584 | } | |
7585 | Py_INCREF(Py_None); resultobj = Py_None; | |
7586 | { | |
7587 | if (temp2) | |
7588 | delete arg2; | |
7589 | } | |
7590 | return resultobj; | |
7591 | fail: | |
7592 | { | |
7593 | if (temp2) | |
7594 | delete arg2; | |
7595 | } | |
7596 | return NULL; | |
7597 | } | |
7598 | ||
7599 | ||
7600 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7601 | PyObject *resultobj; | |
7602 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7603 | long arg2 ; | |
7604 | long arg3 ; | |
7605 | wxString result; | |
7606 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7607 | PyObject * obj1 = 0 ; |
7608 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7609 | char *kwnames[] = { |
7610 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7611 | }; | |
7612 | ||
8edf1c75 | 7613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7615 | { |
7616 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7617 | if (PyErr_Occurred()) SWIG_fail; | |
7618 | } | |
7619 | { | |
7620 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7621 | if (PyErr_Occurred()) SWIG_fail; | |
7622 | } | |
d14a1e28 RD |
7623 | { |
7624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7625 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
7626 | ||
7627 | wxPyEndAllowThreads(__tstate); | |
7628 | if (PyErr_Occurred()) SWIG_fail; | |
7629 | } | |
7630 | { | |
7631 | #if wxUSE_UNICODE | |
7632 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7633 | #else | |
7634 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7635 | #endif | |
7636 | } | |
7637 | return resultobj; | |
7638 | fail: | |
7639 | return NULL; | |
7640 | } | |
7641 | ||
7642 | ||
7643 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7644 | PyObject *resultobj; | |
7645 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7646 | long arg2 ; | |
7647 | int result; | |
7648 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7649 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7650 | char *kwnames[] = { |
7651 | (char *) "self",(char *) "lineNo", NULL | |
7652 | }; | |
7653 | ||
8edf1c75 | 7654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7656 | { |
7657 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7658 | if (PyErr_Occurred()) SWIG_fail; | |
7659 | } | |
d14a1e28 RD |
7660 | { |
7661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7662 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
7663 | ||
7664 | wxPyEndAllowThreads(__tstate); | |
7665 | if (PyErr_Occurred()) SWIG_fail; | |
7666 | } | |
8edf1c75 | 7667 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7668 | return resultobj; |
7669 | fail: | |
7670 | return NULL; | |
7671 | } | |
7672 | ||
7673 | ||
7674 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7675 | PyObject *resultobj; | |
7676 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7677 | long arg2 ; | |
7678 | wxString result; | |
7679 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7680 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7681 | char *kwnames[] = { |
7682 | (char *) "self",(char *) "lineNo", NULL | |
7683 | }; | |
7684 | ||
8edf1c75 | 7685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7687 | { |
7688 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7689 | if (PyErr_Occurred()) SWIG_fail; | |
7690 | } | |
d14a1e28 RD |
7691 | { |
7692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7693 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
7694 | ||
7695 | wxPyEndAllowThreads(__tstate); | |
7696 | if (PyErr_Occurred()) SWIG_fail; | |
7697 | } | |
7698 | { | |
7699 | #if wxUSE_UNICODE | |
7700 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7701 | #else | |
7702 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7703 | #endif | |
7704 | } | |
7705 | return resultobj; | |
7706 | fail: | |
7707 | return NULL; | |
7708 | } | |
7709 | ||
7710 | ||
7711 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7712 | PyObject *resultobj; | |
7713 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7714 | int result; | |
7715 | PyObject * obj0 = 0 ; | |
7716 | char *kwnames[] = { | |
7717 | (char *) "self", NULL | |
7718 | }; | |
7719 | ||
7720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
7721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7722 | { | |
7723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7724 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
7725 | ||
7726 | wxPyEndAllowThreads(__tstate); | |
7727 | if (PyErr_Occurred()) SWIG_fail; | |
7728 | } | |
8edf1c75 | 7729 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7730 | return resultobj; |
7731 | fail: | |
7732 | return NULL; | |
7733 | } | |
7734 | ||
7735 | ||
7736 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7737 | PyObject *resultobj; | |
7738 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7739 | bool result; | |
7740 | PyObject * obj0 = 0 ; | |
7741 | char *kwnames[] = { | |
7742 | (char *) "self", NULL | |
7743 | }; | |
7744 | ||
7745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
7746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7747 | { | |
7748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7749 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
7750 | ||
7751 | wxPyEndAllowThreads(__tstate); | |
7752 | if (PyErr_Occurred()) SWIG_fail; | |
7753 | } | |
4e760a36 | 7754 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7755 | return resultobj; |
7756 | fail: | |
7757 | return NULL; | |
7758 | } | |
7759 | ||
7760 | ||
7761 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7762 | PyObject *resultobj; | |
7763 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7764 | bool result; | |
7765 | PyObject * obj0 = 0 ; | |
7766 | char *kwnames[] = { | |
7767 | (char *) "self", NULL | |
7768 | }; | |
7769 | ||
7770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
7771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7772 | { | |
7773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7774 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
7775 | ||
7776 | wxPyEndAllowThreads(__tstate); | |
7777 | if (PyErr_Occurred()) SWIG_fail; | |
7778 | } | |
4e760a36 | 7779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7780 | return resultobj; |
7781 | fail: | |
7782 | return NULL; | |
7783 | } | |
7784 | ||
7785 | ||
7786 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7787 | PyObject *resultobj; | |
7788 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7789 | bool result; | |
7790 | PyObject * obj0 = 0 ; | |
7791 | char *kwnames[] = { | |
7792 | (char *) "self", NULL | |
7793 | }; | |
7794 | ||
7795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
7796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7797 | { | |
7798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7799 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
7800 | ||
7801 | wxPyEndAllowThreads(__tstate); | |
7802 | if (PyErr_Occurred()) SWIG_fail; | |
7803 | } | |
4e760a36 | 7804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7805 | return resultobj; |
7806 | fail: | |
7807 | return NULL; | |
7808 | } | |
7809 | ||
7810 | ||
7811 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7812 | PyObject *resultobj; | |
7813 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7814 | bool result; | |
7815 | PyObject * obj0 = 0 ; | |
7816 | char *kwnames[] = { | |
7817 | (char *) "self", NULL | |
7818 | }; | |
7819 | ||
7820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
7821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7822 | { | |
7823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7824 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
7825 | ||
7826 | wxPyEndAllowThreads(__tstate); | |
7827 | if (PyErr_Occurred()) SWIG_fail; | |
7828 | } | |
4e760a36 | 7829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7830 | return resultobj; |
7831 | fail: | |
7832 | return NULL; | |
7833 | } | |
7834 | ||
7835 | ||
7836 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7837 | PyObject *resultobj; | |
7838 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7839 | long *arg2 = (long *) 0 ; | |
7840 | long *arg3 = (long *) 0 ; | |
7841 | long temp2 ; | |
7842 | long temp3 ; | |
7843 | PyObject * obj0 = 0 ; | |
7844 | char *kwnames[] = { | |
7845 | (char *) "self", NULL | |
7846 | }; | |
7847 | ||
7848 | arg2 = &temp2; | |
7849 | arg3 = &temp3; | |
7850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
7851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7852 | { | |
7853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7854 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
7855 | ||
7856 | wxPyEndAllowThreads(__tstate); | |
7857 | if (PyErr_Occurred()) SWIG_fail; | |
7858 | } | |
7859 | Py_INCREF(Py_None); resultobj = Py_None; | |
7860 | { | |
7861 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
7862 | resultobj = t_output_helper(resultobj,o); | |
7863 | } | |
7864 | { | |
7865 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7866 | resultobj = t_output_helper(resultobj,o); | |
7867 | } | |
7868 | return resultobj; | |
7869 | fail: | |
7870 | return NULL; | |
7871 | } | |
7872 | ||
7873 | ||
7874 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7875 | PyObject *resultobj; | |
7876 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7877 | wxString result; | |
7878 | PyObject * obj0 = 0 ; | |
7879 | char *kwnames[] = { | |
7880 | (char *) "self", NULL | |
7881 | }; | |
7882 | ||
7883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
7884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7885 | { | |
7886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7887 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
7888 | ||
7889 | wxPyEndAllowThreads(__tstate); | |
7890 | if (PyErr_Occurred()) SWIG_fail; | |
7891 | } | |
7892 | { | |
7893 | #if wxUSE_UNICODE | |
7894 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7895 | #else | |
7896 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7897 | #endif | |
7898 | } | |
7899 | return resultobj; | |
7900 | fail: | |
7901 | return NULL; | |
7902 | } | |
7903 | ||
7904 | ||
7905 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7906 | PyObject *resultobj; | |
7907 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7908 | PyObject * obj0 = 0 ; | |
7909 | char *kwnames[] = { | |
7910 | (char *) "self", NULL | |
7911 | }; | |
7912 | ||
7913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
7914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7915 | { | |
7916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7917 | (arg1)->Clear(); | |
7918 | ||
7919 | wxPyEndAllowThreads(__tstate); | |
7920 | if (PyErr_Occurred()) SWIG_fail; | |
7921 | } | |
7922 | Py_INCREF(Py_None); resultobj = Py_None; | |
7923 | return resultobj; | |
7924 | fail: | |
7925 | return NULL; | |
7926 | } | |
7927 | ||
7928 | ||
7929 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7930 | PyObject *resultobj; | |
7931 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7932 | long arg2 ; | |
7933 | long arg3 ; | |
7934 | wxString *arg4 = 0 ; | |
423f194a | 7935 | bool temp4 = False ; |
d14a1e28 | 7936 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
7937 | PyObject * obj1 = 0 ; |
7938 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7939 | PyObject * obj3 = 0 ; |
7940 | char *kwnames[] = { | |
7941 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
7942 | }; | |
7943 | ||
8edf1c75 | 7944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 7945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7946 | { |
7947 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7948 | if (PyErr_Occurred()) SWIG_fail; | |
7949 | } | |
7950 | { | |
7951 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7952 | if (PyErr_Occurred()) SWIG_fail; | |
7953 | } | |
d14a1e28 RD |
7954 | { |
7955 | arg4 = wxString_in_helper(obj3); | |
7956 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7957 | temp4 = True; |
d14a1e28 RD |
7958 | } |
7959 | { | |
7960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7961 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
7962 | ||
7963 | wxPyEndAllowThreads(__tstate); | |
7964 | if (PyErr_Occurred()) SWIG_fail; | |
7965 | } | |
7966 | Py_INCREF(Py_None); resultobj = Py_None; | |
7967 | { | |
7968 | if (temp4) | |
7969 | delete arg4; | |
7970 | } | |
7971 | return resultobj; | |
7972 | fail: | |
7973 | { | |
7974 | if (temp4) | |
7975 | delete arg4; | |
7976 | } | |
7977 | return NULL; | |
7978 | } | |
7979 | ||
7980 | ||
7981 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7982 | PyObject *resultobj; | |
7983 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7984 | long arg2 ; | |
7985 | long arg3 ; | |
7986 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7987 | PyObject * obj1 = 0 ; |
7988 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7989 | char *kwnames[] = { |
7990 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7991 | }; | |
7992 | ||
8edf1c75 | 7993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7995 | { |
7996 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7997 | if (PyErr_Occurred()) SWIG_fail; | |
7998 | } | |
7999 | { | |
8000 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8001 | if (PyErr_Occurred()) SWIG_fail; | |
8002 | } | |
d14a1e28 RD |
8003 | { |
8004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8005 | (arg1)->Remove(arg2,arg3); | |
8006 | ||
8007 | wxPyEndAllowThreads(__tstate); | |
8008 | if (PyErr_Occurred()) SWIG_fail; | |
8009 | } | |
8010 | Py_INCREF(Py_None); resultobj = Py_None; | |
8011 | return resultobj; | |
8012 | fail: | |
8013 | return NULL; | |
8014 | } | |
8015 | ||
8016 | ||
8017 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8018 | PyObject *resultobj; | |
8019 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8020 | wxString *arg2 = 0 ; | |
8021 | bool result; | |
423f194a | 8022 | bool temp2 = False ; |
d14a1e28 RD |
8023 | PyObject * obj0 = 0 ; |
8024 | PyObject * obj1 = 0 ; | |
8025 | char *kwnames[] = { | |
8026 | (char *) "self",(char *) "file", NULL | |
8027 | }; | |
8028 | ||
8029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
8030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8031 | { | |
8032 | arg2 = wxString_in_helper(obj1); | |
8033 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8034 | temp2 = True; |
d14a1e28 RD |
8035 | } |
8036 | { | |
8037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8038 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8039 | ||
8040 | wxPyEndAllowThreads(__tstate); | |
8041 | if (PyErr_Occurred()) SWIG_fail; | |
8042 | } | |
4e760a36 | 8043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8044 | { |
8045 | if (temp2) | |
8046 | delete arg2; | |
8047 | } | |
8048 | return resultobj; | |
8049 | fail: | |
8050 | { | |
8051 | if (temp2) | |
8052 | delete arg2; | |
8053 | } | |
8054 | return NULL; | |
8055 | } | |
8056 | ||
8057 | ||
8058 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8059 | PyObject *resultobj; | |
8060 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8061 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8062 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8063 | bool result; | |
423f194a | 8064 | bool temp2 = False ; |
d14a1e28 RD |
8065 | PyObject * obj0 = 0 ; |
8066 | PyObject * obj1 = 0 ; | |
8067 | char *kwnames[] = { | |
8068 | (char *) "self",(char *) "file", NULL | |
8069 | }; | |
8070 | ||
8071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
8072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8073 | if (obj1) { | |
8074 | { | |
8075 | arg2 = wxString_in_helper(obj1); | |
8076 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8077 | temp2 = True; |
d14a1e28 RD |
8078 | } |
8079 | } | |
8080 | { | |
8081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8082 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8083 | ||
8084 | wxPyEndAllowThreads(__tstate); | |
8085 | if (PyErr_Occurred()) SWIG_fail; | |
8086 | } | |
4e760a36 | 8087 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8088 | { |
8089 | if (temp2) | |
8090 | delete arg2; | |
8091 | } | |
8092 | return resultobj; | |
8093 | fail: | |
8094 | { | |
8095 | if (temp2) | |
8096 | delete arg2; | |
8097 | } | |
8098 | return NULL; | |
8099 | } | |
8100 | ||
8101 | ||
8102 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8103 | PyObject *resultobj; | |
8104 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8105 | PyObject * obj0 = 0 ; | |
8106 | char *kwnames[] = { | |
8107 | (char *) "self", NULL | |
8108 | }; | |
8109 | ||
8110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
8111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8112 | { | |
8113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8114 | (arg1)->MarkDirty(); | |
8115 | ||
8116 | wxPyEndAllowThreads(__tstate); | |
8117 | if (PyErr_Occurred()) SWIG_fail; | |
8118 | } | |
8119 | Py_INCREF(Py_None); resultobj = Py_None; | |
8120 | return resultobj; | |
8121 | fail: | |
8122 | return NULL; | |
8123 | } | |
8124 | ||
8125 | ||
8126 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8127 | PyObject *resultobj; | |
8128 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8129 | PyObject * obj0 = 0 ; | |
8130 | char *kwnames[] = { | |
8131 | (char *) "self", NULL | |
8132 | }; | |
8133 | ||
8134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
8135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8136 | { | |
8137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8138 | (arg1)->DiscardEdits(); | |
8139 | ||
8140 | wxPyEndAllowThreads(__tstate); | |
8141 | if (PyErr_Occurred()) SWIG_fail; | |
8142 | } | |
8143 | Py_INCREF(Py_None); resultobj = Py_None; | |
8144 | return resultobj; | |
8145 | fail: | |
8146 | return NULL; | |
8147 | } | |
8148 | ||
8149 | ||
8150 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8151 | PyObject *resultobj; | |
8152 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8153 | unsigned long arg2 ; | |
8154 | PyObject * obj0 = 0 ; | |
8155 | PyObject * obj1 = 0 ; | |
8156 | char *kwnames[] = { | |
8157 | (char *) "self",(char *) "len", NULL | |
8158 | }; | |
8159 | ||
8160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
8161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 8162 | { |
8edf1c75 | 8163 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
8164 | if (PyErr_Occurred()) SWIG_fail; |
8165 | } | |
d14a1e28 RD |
8166 | { |
8167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8168 | (arg1)->SetMaxLength(arg2); | |
8169 | ||
8170 | wxPyEndAllowThreads(__tstate); | |
8171 | if (PyErr_Occurred()) SWIG_fail; | |
8172 | } | |
8173 | Py_INCREF(Py_None); resultobj = Py_None; | |
8174 | return resultobj; | |
8175 | fail: | |
8176 | return NULL; | |
8177 | } | |
8178 | ||
8179 | ||
8180 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8181 | PyObject *resultobj; | |
8182 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8183 | wxString *arg2 = 0 ; | |
423f194a | 8184 | bool temp2 = False ; |
d14a1e28 RD |
8185 | PyObject * obj0 = 0 ; |
8186 | PyObject * obj1 = 0 ; | |
8187 | char *kwnames[] = { | |
8188 | (char *) "self",(char *) "text", NULL | |
8189 | }; | |
8190 | ||
8191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
8192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8193 | { | |
8194 | arg2 = wxString_in_helper(obj1); | |
8195 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8196 | temp2 = True; |
d14a1e28 RD |
8197 | } |
8198 | { | |
8199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8200 | (arg1)->WriteText((wxString const &)*arg2); | |
8201 | ||
8202 | wxPyEndAllowThreads(__tstate); | |
8203 | if (PyErr_Occurred()) SWIG_fail; | |
8204 | } | |
8205 | Py_INCREF(Py_None); resultobj = Py_None; | |
8206 | { | |
8207 | if (temp2) | |
8208 | delete arg2; | |
8209 | } | |
8210 | return resultobj; | |
8211 | fail: | |
8212 | { | |
8213 | if (temp2) | |
8214 | delete arg2; | |
8215 | } | |
8216 | return NULL; | |
8217 | } | |
8218 | ||
8219 | ||
8220 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8221 | PyObject *resultobj; | |
8222 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8223 | wxString *arg2 = 0 ; | |
423f194a | 8224 | bool temp2 = False ; |
d14a1e28 RD |
8225 | PyObject * obj0 = 0 ; |
8226 | PyObject * obj1 = 0 ; | |
8227 | char *kwnames[] = { | |
8228 | (char *) "self",(char *) "text", NULL | |
8229 | }; | |
8230 | ||
8231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
8232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8233 | { | |
8234 | arg2 = wxString_in_helper(obj1); | |
8235 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8236 | temp2 = True; |
d14a1e28 RD |
8237 | } |
8238 | { | |
8239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8240 | (arg1)->AppendText((wxString const &)*arg2); | |
8241 | ||
8242 | wxPyEndAllowThreads(__tstate); | |
8243 | if (PyErr_Occurred()) SWIG_fail; | |
8244 | } | |
8245 | Py_INCREF(Py_None); resultobj = Py_None; | |
8246 | { | |
8247 | if (temp2) | |
8248 | delete arg2; | |
8249 | } | |
8250 | return resultobj; | |
8251 | fail: | |
8252 | { | |
8253 | if (temp2) | |
8254 | delete arg2; | |
8255 | } | |
8256 | return NULL; | |
8257 | } | |
8258 | ||
8259 | ||
8260 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8261 | PyObject *resultobj; | |
8262 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8263 | wxKeyEvent *arg2 = 0 ; | |
8264 | bool result; | |
8265 | PyObject * obj0 = 0 ; | |
8266 | PyObject * obj1 = 0 ; | |
8267 | char *kwnames[] = { | |
8268 | (char *) "self",(char *) "event", NULL | |
8269 | }; | |
8270 | ||
8271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
8272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8273 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8274 | if (arg2 == NULL) { | |
8275 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8276 | } | |
8277 | { | |
8278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8279 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8280 | ||
8281 | wxPyEndAllowThreads(__tstate); | |
8282 | if (PyErr_Occurred()) SWIG_fail; | |
8283 | } | |
4e760a36 | 8284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8285 | return resultobj; |
8286 | fail: | |
8287 | return NULL; | |
8288 | } | |
8289 | ||
8290 | ||
8291 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8292 | PyObject *resultobj; | |
8293 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8294 | long arg2 ; | |
8295 | long arg3 ; | |
8296 | wxTextAttr *arg4 = 0 ; | |
8297 | bool result; | |
8298 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8299 | PyObject * obj1 = 0 ; |
8300 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8301 | PyObject * obj3 = 0 ; |
8302 | char *kwnames[] = { | |
8303 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8304 | }; | |
8305 | ||
8edf1c75 | 8306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8308 | { |
8309 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8310 | if (PyErr_Occurred()) SWIG_fail; | |
8311 | } | |
8312 | { | |
8313 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8314 | if (PyErr_Occurred()) SWIG_fail; | |
8315 | } | |
d14a1e28 RD |
8316 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8317 | if (arg4 == NULL) { | |
8318 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8319 | } | |
8320 | { | |
8321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8322 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
8323 | ||
8324 | wxPyEndAllowThreads(__tstate); | |
8325 | if (PyErr_Occurred()) SWIG_fail; | |
8326 | } | |
4e760a36 | 8327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8328 | return resultobj; |
8329 | fail: | |
8330 | return NULL; | |
8331 | } | |
8332 | ||
8333 | ||
8334 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8335 | PyObject *resultobj; | |
8336 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8337 | long arg2 ; | |
8338 | wxTextAttr *arg3 = 0 ; | |
8339 | bool result; | |
8340 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8341 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8342 | PyObject * obj2 = 0 ; |
8343 | char *kwnames[] = { | |
8344 | (char *) "self",(char *) "position",(char *) "style", NULL | |
8345 | }; | |
8346 | ||
8edf1c75 | 8347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8349 | { |
8350 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8351 | if (PyErr_Occurred()) SWIG_fail; | |
8352 | } | |
d14a1e28 RD |
8353 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8354 | if (arg3 == NULL) { | |
8355 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8356 | } | |
8357 | { | |
8358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8359 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
8360 | ||
8361 | wxPyEndAllowThreads(__tstate); | |
8362 | if (PyErr_Occurred()) SWIG_fail; | |
8363 | } | |
4e760a36 | 8364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8365 | return resultobj; |
8366 | fail: | |
8367 | return NULL; | |
8368 | } | |
8369 | ||
8370 | ||
8371 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8372 | PyObject *resultobj; | |
8373 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8374 | wxTextAttr *arg2 = 0 ; | |
8375 | bool result; | |
8376 | PyObject * obj0 = 0 ; | |
8377 | PyObject * obj1 = 0 ; | |
8378 | char *kwnames[] = { | |
8379 | (char *) "self",(char *) "style", NULL | |
8380 | }; | |
8381 | ||
8382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
8383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8384 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8385 | if (arg2 == NULL) { | |
8386 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8387 | } | |
8388 | { | |
8389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8390 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
8391 | ||
8392 | wxPyEndAllowThreads(__tstate); | |
8393 | if (PyErr_Occurred()) SWIG_fail; | |
8394 | } | |
4e760a36 | 8395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8396 | return resultobj; |
8397 | fail: | |
8398 | return NULL; | |
8399 | } | |
8400 | ||
8401 | ||
8402 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8403 | PyObject *resultobj; | |
8404 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8405 | wxTextAttr *result; | |
8406 | PyObject * obj0 = 0 ; | |
8407 | char *kwnames[] = { | |
8408 | (char *) "self", NULL | |
8409 | }; | |
8410 | ||
8411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
8412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8413 | { | |
8414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8415 | { | |
8416 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
8417 | result = (wxTextAttr *) &_result_ref; | |
8418 | } | |
8419 | ||
8420 | wxPyEndAllowThreads(__tstate); | |
8421 | if (PyErr_Occurred()) SWIG_fail; | |
8422 | } | |
8423 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 0); | |
8424 | return resultobj; | |
8425 | fail: | |
8426 | return NULL; | |
8427 | } | |
8428 | ||
8429 | ||
8430 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8431 | PyObject *resultobj; | |
8432 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8433 | long arg2 ; | |
8434 | long arg3 ; | |
8435 | long result; | |
8436 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8437 | PyObject * obj1 = 0 ; |
8438 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8439 | char *kwnames[] = { |
8440 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8441 | }; | |
8442 | ||
8edf1c75 | 8443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8445 | { |
8446 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8447 | if (PyErr_Occurred()) SWIG_fail; | |
8448 | } | |
8449 | { | |
8450 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8451 | if (PyErr_Occurred()) SWIG_fail; | |
8452 | } | |
d14a1e28 RD |
8453 | { |
8454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8455 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
8456 | ||
8457 | wxPyEndAllowThreads(__tstate); | |
8458 | if (PyErr_Occurred()) SWIG_fail; | |
8459 | } | |
8edf1c75 | 8460 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8461 | return resultobj; |
8462 | fail: | |
8463 | return NULL; | |
8464 | } | |
8465 | ||
8466 | ||
8467 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8468 | PyObject *resultobj; | |
8469 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8470 | long arg2 ; | |
8471 | long *arg3 = (long *) 0 ; | |
8472 | long *arg4 = (long *) 0 ; | |
8473 | long temp3 ; | |
8474 | long temp4 ; | |
8475 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8476 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8477 | char *kwnames[] = { |
8478 | (char *) "self",(char *) "pos", NULL | |
8479 | }; | |
8480 | ||
8481 | arg3 = &temp3; | |
8482 | arg4 = &temp4; | |
8edf1c75 | 8483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8485 | { |
8486 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8487 | if (PyErr_Occurred()) SWIG_fail; | |
8488 | } | |
d14a1e28 RD |
8489 | { |
8490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8491 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
8492 | ||
8493 | wxPyEndAllowThreads(__tstate); | |
8494 | if (PyErr_Occurred()) SWIG_fail; | |
8495 | } | |
8496 | Py_INCREF(Py_None); resultobj = Py_None; | |
8497 | { | |
8498 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8499 | resultobj = t_output_helper(resultobj,o); | |
8500 | } | |
8501 | { | |
8502 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8503 | resultobj = t_output_helper(resultobj,o); | |
8504 | } | |
8505 | return resultobj; | |
8506 | fail: | |
8507 | return NULL; | |
8508 | } | |
8509 | ||
8510 | ||
8511 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8512 | PyObject *resultobj; | |
8513 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8514 | long arg2 ; | |
8515 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8516 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8517 | char *kwnames[] = { |
8518 | (char *) "self",(char *) "pos", NULL | |
8519 | }; | |
8520 | ||
8edf1c75 | 8521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8523 | { |
8524 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8525 | if (PyErr_Occurred()) SWIG_fail; | |
8526 | } | |
d14a1e28 RD |
8527 | { |
8528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8529 | (arg1)->ShowPosition(arg2); | |
8530 | ||
8531 | wxPyEndAllowThreads(__tstate); | |
8532 | if (PyErr_Occurred()) SWIG_fail; | |
8533 | } | |
8534 | Py_INCREF(Py_None); resultobj = Py_None; | |
8535 | return resultobj; | |
8536 | fail: | |
8537 | return NULL; | |
8538 | } | |
8539 | ||
8540 | ||
4e760a36 RD |
8541 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8542 | PyObject *resultobj; | |
8543 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8544 | wxPoint *arg2 = 0 ; | |
8545 | long *arg3 = (long *) 0 ; | |
8546 | long *arg4 = (long *) 0 ; | |
8547 | int result; | |
8548 | wxPoint temp2 ; | |
8549 | long temp3 ; | |
8550 | long temp4 ; | |
8551 | PyObject * obj0 = 0 ; | |
8552 | PyObject * obj1 = 0 ; | |
8553 | char *kwnames[] = { | |
8554 | (char *) "self",(char *) "pt", NULL | |
8555 | }; | |
8556 | ||
8557 | arg3 = &temp3; | |
8558 | arg4 = &temp4; | |
8559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
8560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8561 | { | |
8562 | arg2 = &temp2; | |
8563 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8564 | } | |
8565 | { | |
8566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8567 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
8568 | ||
8569 | wxPyEndAllowThreads(__tstate); | |
8570 | if (PyErr_Occurred()) SWIG_fail; | |
8571 | } | |
8572 | resultobj = SWIG_PyObj_FromInt((int)result); | |
8573 | { | |
8574 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8575 | resultobj = t_output_helper(resultobj,o); | |
8576 | } | |
8577 | { | |
8578 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8579 | resultobj = t_output_helper(resultobj,o); | |
8580 | } | |
8581 | return resultobj; | |
8582 | fail: | |
8583 | return NULL; | |
8584 | } | |
8585 | ||
8586 | ||
d14a1e28 RD |
8587 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8588 | PyObject *resultobj; | |
8589 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8590 | PyObject * obj0 = 0 ; | |
8591 | char *kwnames[] = { | |
8592 | (char *) "self", NULL | |
8593 | }; | |
8594 | ||
8595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
8596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8597 | { | |
8598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8599 | (arg1)->Copy(); | |
8600 | ||
8601 | wxPyEndAllowThreads(__tstate); | |
8602 | if (PyErr_Occurred()) SWIG_fail; | |
8603 | } | |
8604 | Py_INCREF(Py_None); resultobj = Py_None; | |
8605 | return resultobj; | |
8606 | fail: | |
8607 | return NULL; | |
8608 | } | |
8609 | ||
8610 | ||
8611 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8612 | PyObject *resultobj; | |
8613 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8614 | PyObject * obj0 = 0 ; | |
8615 | char *kwnames[] = { | |
8616 | (char *) "self", NULL | |
8617 | }; | |
8618 | ||
8619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
8620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8621 | { | |
8622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8623 | (arg1)->Cut(); | |
8624 | ||
8625 | wxPyEndAllowThreads(__tstate); | |
8626 | if (PyErr_Occurred()) SWIG_fail; | |
8627 | } | |
8628 | Py_INCREF(Py_None); resultobj = Py_None; | |
8629 | return resultobj; | |
8630 | fail: | |
8631 | return NULL; | |
8632 | } | |
8633 | ||
8634 | ||
8635 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8636 | PyObject *resultobj; | |
8637 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8638 | PyObject * obj0 = 0 ; | |
8639 | char *kwnames[] = { | |
8640 | (char *) "self", NULL | |
8641 | }; | |
8642 | ||
8643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
8644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8645 | { | |
8646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8647 | (arg1)->Paste(); | |
8648 | ||
8649 | wxPyEndAllowThreads(__tstate); | |
8650 | if (PyErr_Occurred()) SWIG_fail; | |
8651 | } | |
8652 | Py_INCREF(Py_None); resultobj = Py_None; | |
8653 | return resultobj; | |
8654 | fail: | |
8655 | return NULL; | |
8656 | } | |
8657 | ||
8658 | ||
8659 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8660 | PyObject *resultobj; | |
8661 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8662 | bool result; | |
8663 | PyObject * obj0 = 0 ; | |
8664 | char *kwnames[] = { | |
8665 | (char *) "self", NULL | |
8666 | }; | |
8667 | ||
8668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
8669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8670 | { | |
8671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8672 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
8673 | ||
8674 | wxPyEndAllowThreads(__tstate); | |
8675 | if (PyErr_Occurred()) SWIG_fail; | |
8676 | } | |
4e760a36 | 8677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8678 | return resultobj; |
8679 | fail: | |
8680 | return NULL; | |
8681 | } | |
8682 | ||
8683 | ||
8684 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8685 | PyObject *resultobj; | |
8686 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8687 | bool result; | |
8688 | PyObject * obj0 = 0 ; | |
8689 | char *kwnames[] = { | |
8690 | (char *) "self", NULL | |
8691 | }; | |
8692 | ||
8693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
8694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8695 | { | |
8696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8697 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
8698 | ||
8699 | wxPyEndAllowThreads(__tstate); | |
8700 | if (PyErr_Occurred()) SWIG_fail; | |
8701 | } | |
4e760a36 | 8702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8703 | return resultobj; |
8704 | fail: | |
8705 | return NULL; | |
8706 | } | |
8707 | ||
8708 | ||
8709 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8710 | PyObject *resultobj; | |
8711 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8712 | bool result; | |
8713 | PyObject * obj0 = 0 ; | |
8714 | char *kwnames[] = { | |
8715 | (char *) "self", NULL | |
8716 | }; | |
8717 | ||
8718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
8719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8720 | { | |
8721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8722 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
8723 | ||
8724 | wxPyEndAllowThreads(__tstate); | |
8725 | if (PyErr_Occurred()) SWIG_fail; | |
8726 | } | |
4e760a36 | 8727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8728 | return resultobj; |
8729 | fail: | |
8730 | return NULL; | |
8731 | } | |
8732 | ||
8733 | ||
8734 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8735 | PyObject *resultobj; | |
8736 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8737 | PyObject * obj0 = 0 ; | |
8738 | char *kwnames[] = { | |
8739 | (char *) "self", NULL | |
8740 | }; | |
8741 | ||
8742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
8743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8744 | { | |
8745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8746 | (arg1)->Undo(); | |
8747 | ||
8748 | wxPyEndAllowThreads(__tstate); | |
8749 | if (PyErr_Occurred()) SWIG_fail; | |
8750 | } | |
8751 | Py_INCREF(Py_None); resultobj = Py_None; | |
8752 | return resultobj; | |
8753 | fail: | |
8754 | return NULL; | |
8755 | } | |
8756 | ||
8757 | ||
8758 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8759 | PyObject *resultobj; | |
8760 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8761 | PyObject * obj0 = 0 ; | |
8762 | char *kwnames[] = { | |
8763 | (char *) "self", NULL | |
8764 | }; | |
8765 | ||
8766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
8767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8768 | { | |
8769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8770 | (arg1)->Redo(); | |
8771 | ||
8772 | wxPyEndAllowThreads(__tstate); | |
8773 | if (PyErr_Occurred()) SWIG_fail; | |
8774 | } | |
8775 | Py_INCREF(Py_None); resultobj = Py_None; | |
8776 | return resultobj; | |
8777 | fail: | |
8778 | return NULL; | |
8779 | } | |
8780 | ||
8781 | ||
8782 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8783 | PyObject *resultobj; | |
8784 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8785 | bool result; | |
8786 | PyObject * obj0 = 0 ; | |
8787 | char *kwnames[] = { | |
8788 | (char *) "self", NULL | |
8789 | }; | |
8790 | ||
8791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
8792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8793 | { | |
8794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8795 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
8796 | ||
8797 | wxPyEndAllowThreads(__tstate); | |
8798 | if (PyErr_Occurred()) SWIG_fail; | |
8799 | } | |
4e760a36 | 8800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8801 | return resultobj; |
8802 | fail: | |
8803 | return NULL; | |
8804 | } | |
8805 | ||
8806 | ||
8807 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8808 | PyObject *resultobj; | |
8809 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8810 | bool result; | |
8811 | PyObject * obj0 = 0 ; | |
8812 | char *kwnames[] = { | |
8813 | (char *) "self", NULL | |
8814 | }; | |
8815 | ||
8816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
8817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8818 | { | |
8819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8820 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
8821 | ||
8822 | wxPyEndAllowThreads(__tstate); | |
8823 | if (PyErr_Occurred()) SWIG_fail; | |
8824 | } | |
4e760a36 | 8825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8826 | return resultobj; |
8827 | fail: | |
8828 | return NULL; | |
8829 | } | |
8830 | ||
8831 | ||
8832 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8833 | PyObject *resultobj; | |
8834 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8835 | long arg2 ; | |
8836 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8837 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8838 | char *kwnames[] = { |
8839 | (char *) "self",(char *) "pos", NULL | |
8840 | }; | |
8841 | ||
8edf1c75 | 8842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8844 | { |
8845 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8846 | if (PyErr_Occurred()) SWIG_fail; | |
8847 | } | |
d14a1e28 RD |
8848 | { |
8849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8850 | (arg1)->SetInsertionPoint(arg2); | |
8851 | ||
8852 | wxPyEndAllowThreads(__tstate); | |
8853 | if (PyErr_Occurred()) SWIG_fail; | |
8854 | } | |
8855 | Py_INCREF(Py_None); resultobj = Py_None; | |
8856 | return resultobj; | |
8857 | fail: | |
8858 | return NULL; | |
8859 | } | |
8860 | ||
8861 | ||
8862 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8863 | PyObject *resultobj; | |
8864 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8865 | PyObject * obj0 = 0 ; | |
8866 | char *kwnames[] = { | |
8867 | (char *) "self", NULL | |
8868 | }; | |
8869 | ||
8870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
8871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8872 | { | |
8873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8874 | (arg1)->SetInsertionPointEnd(); | |
8875 | ||
8876 | wxPyEndAllowThreads(__tstate); | |
8877 | if (PyErr_Occurred()) SWIG_fail; | |
8878 | } | |
8879 | Py_INCREF(Py_None); resultobj = Py_None; | |
8880 | return resultobj; | |
8881 | fail: | |
8882 | return NULL; | |
8883 | } | |
8884 | ||
8885 | ||
8886 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8887 | PyObject *resultobj; | |
8888 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8889 | long result; | |
8890 | PyObject * obj0 = 0 ; | |
8891 | char *kwnames[] = { | |
8892 | (char *) "self", NULL | |
8893 | }; | |
8894 | ||
8895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
8896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8897 | { | |
8898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8899 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
8900 | ||
8901 | wxPyEndAllowThreads(__tstate); | |
8902 | if (PyErr_Occurred()) SWIG_fail; | |
8903 | } | |
8edf1c75 | 8904 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8905 | return resultobj; |
8906 | fail: | |
8907 | return NULL; | |
8908 | } | |
8909 | ||
8910 | ||
8911 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8912 | PyObject *resultobj; | |
8913 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8914 | long result; | |
8915 | PyObject * obj0 = 0 ; | |
8916 | char *kwnames[] = { | |
8917 | (char *) "self", NULL | |
8918 | }; | |
8919 | ||
8920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
8921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8922 | { | |
8923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8924 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
8925 | ||
8926 | wxPyEndAllowThreads(__tstate); | |
8927 | if (PyErr_Occurred()) SWIG_fail; | |
8928 | } | |
8edf1c75 | 8929 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
8930 | return resultobj; |
8931 | fail: | |
8932 | return NULL; | |
8933 | } | |
8934 | ||
8935 | ||
8936 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8937 | PyObject *resultobj; | |
8938 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8939 | long arg2 ; | |
8940 | long arg3 ; | |
8941 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8942 | PyObject * obj1 = 0 ; |
8943 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8944 | char *kwnames[] = { |
8945 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8946 | }; | |
8947 | ||
8edf1c75 | 8948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8950 | { |
8951 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8952 | if (PyErr_Occurred()) SWIG_fail; | |
8953 | } | |
8954 | { | |
8955 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8956 | if (PyErr_Occurred()) SWIG_fail; | |
8957 | } | |
d14a1e28 RD |
8958 | { |
8959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8960 | (arg1)->SetSelection(arg2,arg3); | |
8961 | ||
8962 | wxPyEndAllowThreads(__tstate); | |
8963 | if (PyErr_Occurred()) SWIG_fail; | |
8964 | } | |
8965 | Py_INCREF(Py_None); resultobj = Py_None; | |
8966 | return resultobj; | |
8967 | fail: | |
8968 | return NULL; | |
8969 | } | |
8970 | ||
8971 | ||
8972 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8973 | PyObject *resultobj; | |
8974 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8975 | PyObject * obj0 = 0 ; | |
8976 | char *kwnames[] = { | |
8977 | (char *) "self", NULL | |
8978 | }; | |
8979 | ||
8980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
8981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8982 | { | |
8983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8984 | (arg1)->SelectAll(); | |
8985 | ||
8986 | wxPyEndAllowThreads(__tstate); | |
8987 | if (PyErr_Occurred()) SWIG_fail; | |
8988 | } | |
8989 | Py_INCREF(Py_None); resultobj = Py_None; | |
8990 | return resultobj; | |
8991 | fail: | |
8992 | return NULL; | |
8993 | } | |
8994 | ||
8995 | ||
8996 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8997 | PyObject *resultobj; | |
8998 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8999 | bool arg2 ; | |
9000 | PyObject * obj0 = 0 ; | |
9001 | PyObject * obj1 = 0 ; | |
9002 | char *kwnames[] = { | |
9003 | (char *) "self",(char *) "editable", NULL | |
9004 | }; | |
9005 | ||
9006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
9007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 9008 | { |
8edf1c75 | 9009 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
9010 | if (PyErr_Occurred()) SWIG_fail; |
9011 | } | |
d14a1e28 RD |
9012 | { |
9013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9014 | (arg1)->SetEditable(arg2); | |
9015 | ||
9016 | wxPyEndAllowThreads(__tstate); | |
9017 | if (PyErr_Occurred()) SWIG_fail; | |
9018 | } | |
9019 | Py_INCREF(Py_None); resultobj = Py_None; | |
9020 | return resultobj; | |
9021 | fail: | |
9022 | return NULL; | |
9023 | } | |
9024 | ||
9025 | ||
9026 | static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9027 | PyObject *resultobj; | |
9028 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
423f194a | 9029 | bool arg2 = (bool) True ; |
d14a1e28 RD |
9030 | bool result; |
9031 | PyObject * obj0 = 0 ; | |
9032 | PyObject * obj1 = 0 ; | |
9033 | char *kwnames[] = { | |
9034 | (char *) "self",(char *) "show", NULL | |
9035 | }; | |
9036 | ||
9037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail; | |
9038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9039 | if (obj1) { | |
83448d71 | 9040 | { |
8edf1c75 | 9041 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
9042 | if (PyErr_Occurred()) SWIG_fail; |
9043 | } | |
d14a1e28 RD |
9044 | } |
9045 | { | |
9046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9047 | result = (bool)(arg1)->ShowNativeCaret(arg2); | |
9048 | ||
9049 | wxPyEndAllowThreads(__tstate); | |
9050 | if (PyErr_Occurred()) SWIG_fail; | |
9051 | } | |
4e760a36 | 9052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9053 | return resultobj; |
9054 | fail: | |
9055 | return NULL; | |
9056 | } | |
9057 | ||
9058 | ||
9059 | static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9060 | PyObject *resultobj; | |
9061 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9062 | bool result; | |
9063 | PyObject * obj0 = 0 ; | |
9064 | char *kwnames[] = { | |
9065 | (char *) "self", NULL | |
9066 | }; | |
9067 | ||
9068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail; | |
9069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9070 | { | |
9071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9072 | result = (bool)(arg1)->HideNativeCaret(); | |
9073 | ||
9074 | wxPyEndAllowThreads(__tstate); | |
9075 | if (PyErr_Occurred()) SWIG_fail; | |
9076 | } | |
4e760a36 | 9077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9078 | return resultobj; |
9079 | fail: | |
9080 | return NULL; | |
9081 | } | |
9082 | ||
9083 | ||
9084 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9085 | PyObject *resultobj; | |
9086 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9087 | wxString *arg2 = 0 ; | |
423f194a | 9088 | bool temp2 = False ; |
d14a1e28 RD |
9089 | PyObject * obj0 = 0 ; |
9090 | PyObject * obj1 = 0 ; | |
9091 | char *kwnames[] = { | |
9092 | (char *) "self",(char *) "text", NULL | |
9093 | }; | |
9094 | ||
9095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
9096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9097 | { | |
9098 | arg2 = wxString_in_helper(obj1); | |
9099 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9100 | temp2 = True; |
d14a1e28 RD |
9101 | } |
9102 | { | |
9103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9104 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9105 | ||
9106 | wxPyEndAllowThreads(__tstate); | |
9107 | if (PyErr_Occurred()) SWIG_fail; | |
9108 | } | |
9109 | Py_INCREF(Py_None); resultobj = Py_None; | |
9110 | { | |
9111 | if (temp2) | |
9112 | delete arg2; | |
9113 | } | |
9114 | return resultobj; | |
9115 | fail: | |
9116 | { | |
9117 | if (temp2) | |
9118 | delete arg2; | |
9119 | } | |
9120 | return NULL; | |
9121 | } | |
9122 | ||
9123 | ||
9124 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9125 | PyObject *resultobj; | |
9126 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9127 | long arg2 ; | |
9128 | long arg3 ; | |
9129 | wxString result; | |
9130 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9131 | PyObject * obj1 = 0 ; |
9132 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9133 | char *kwnames[] = { |
9134 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9135 | }; | |
9136 | ||
8edf1c75 | 9137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 9138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9139 | { |
9140 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
9141 | if (PyErr_Occurred()) SWIG_fail; | |
9142 | } | |
9143 | { | |
9144 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9145 | if (PyErr_Occurred()) SWIG_fail; | |
9146 | } | |
d14a1e28 RD |
9147 | { |
9148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9149 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9150 | ||
9151 | wxPyEndAllowThreads(__tstate); | |
9152 | if (PyErr_Occurred()) SWIG_fail; | |
9153 | } | |
9154 | { | |
9155 | #if wxUSE_UNICODE | |
9156 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9157 | #else | |
9158 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9159 | #endif | |
9160 | } | |
9161 | return resultobj; | |
9162 | fail: | |
9163 | return NULL; | |
9164 | } | |
9165 | ||
9166 | ||
9167 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
9168 | PyObject *obj; | |
9169 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9170 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9171 | Py_INCREF(obj); | |
9172 | return Py_BuildValue((char *)""); | |
9173 | } | |
9174 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9175 | PyObject *resultobj; | |
9176 | int arg1 ; | |
9177 | wxMouseEvent *arg2 = 0 ; | |
9178 | long arg3 ; | |
9179 | long arg4 ; | |
9180 | wxTextUrlEvent *result; | |
8edf1c75 | 9181 | PyObject * obj0 = 0 ; |
d14a1e28 | 9182 | PyObject * obj1 = 0 ; |
8edf1c75 RD |
9183 | PyObject * obj2 = 0 ; |
9184 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9185 | char *kwnames[] = { |
9186 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9187 | }; | |
9188 | ||
8edf1c75 RD |
9189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
9190 | { | |
9191 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9192 | if (PyErr_Occurred()) SWIG_fail; | |
9193 | } | |
d14a1e28 RD |
9194 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9195 | if (arg2 == NULL) { | |
9196 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9197 | } | |
8edf1c75 RD |
9198 | { |
9199 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9200 | if (PyErr_Occurred()) SWIG_fail; | |
9201 | } | |
9202 | { | |
9203 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
9204 | if (PyErr_Occurred()) SWIG_fail; | |
9205 | } | |
d14a1e28 RD |
9206 | { |
9207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9208 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9209 | ||
9210 | wxPyEndAllowThreads(__tstate); | |
9211 | if (PyErr_Occurred()) SWIG_fail; | |
9212 | } | |
9213 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextUrlEvent, 1); | |
9214 | return resultobj; | |
9215 | fail: | |
9216 | return NULL; | |
9217 | } | |
9218 | ||
9219 | ||
9220 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9221 | PyObject *resultobj; | |
9222 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9223 | wxMouseEvent *result; | |
9224 | PyObject * obj0 = 0 ; | |
9225 | char *kwnames[] = { | |
9226 | (char *) "self", NULL | |
9227 | }; | |
9228 | ||
9229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
9230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9231 | { | |
9232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9233 | { | |
9234 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9235 | result = (wxMouseEvent *) &_result_ref; | |
9236 | } | |
9237 | ||
9238 | wxPyEndAllowThreads(__tstate); | |
9239 | if (PyErr_Occurred()) SWIG_fail; | |
9240 | } | |
9241 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseEvent, 0); | |
9242 | return resultobj; | |
9243 | fail: | |
9244 | return NULL; | |
9245 | } | |
9246 | ||
9247 | ||
9248 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9249 | PyObject *resultobj; | |
9250 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9251 | long result; | |
9252 | PyObject * obj0 = 0 ; | |
9253 | char *kwnames[] = { | |
9254 | (char *) "self", NULL | |
9255 | }; | |
9256 | ||
9257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
9258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9259 | { | |
9260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9261 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9262 | ||
9263 | wxPyEndAllowThreads(__tstate); | |
9264 | if (PyErr_Occurred()) SWIG_fail; | |
9265 | } | |
8edf1c75 | 9266 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9267 | return resultobj; |
9268 | fail: | |
9269 | return NULL; | |
9270 | } | |
9271 | ||
9272 | ||
9273 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9274 | PyObject *resultobj; | |
9275 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9276 | long result; | |
9277 | PyObject * obj0 = 0 ; | |
9278 | char *kwnames[] = { | |
9279 | (char *) "self", NULL | |
9280 | }; | |
9281 | ||
9282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
9283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9284 | { | |
9285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9286 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
9287 | ||
9288 | wxPyEndAllowThreads(__tstate); | |
9289 | if (PyErr_Occurred()) SWIG_fail; | |
9290 | } | |
8edf1c75 | 9291 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9292 | return resultobj; |
9293 | fail: | |
9294 | return NULL; | |
9295 | } | |
9296 | ||
9297 | ||
9298 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
9299 | PyObject *obj; | |
9300 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9301 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
9302 | Py_INCREF(obj); | |
9303 | return Py_BuildValue((char *)""); | |
9304 | } | |
8edf1c75 | 9305 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
d03fd34d RD |
9306 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
9307 | return 1; | |
9308 | } | |
9309 | ||
9310 | ||
9311 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
9312 | PyObject *pyobj; | |
9313 | ||
9314 | { | |
9315 | #if wxUSE_UNICODE | |
9316 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9317 | #else | |
9318 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9319 | #endif | |
9320 | } | |
9321 | return pyobj; | |
9322 | } | |
9323 | ||
9324 | ||
d14a1e28 RD |
9325 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9326 | PyObject *resultobj; | |
9327 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9328 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9329 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9330 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9331 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9332 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9333 | long arg5 = (long) wxSB_HORIZONTAL ; | |
9334 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
9335 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
9336 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
9337 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9338 | wxScrollBar *result; | |
9339 | wxPoint temp3 ; | |
9340 | wxSize temp4 ; | |
423f194a | 9341 | bool temp7 = False ; |
d14a1e28 | 9342 | PyObject * obj0 = 0 ; |
8edf1c75 | 9343 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9344 | PyObject * obj2 = 0 ; |
9345 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9346 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9347 | PyObject * obj5 = 0 ; |
9348 | PyObject * obj6 = 0 ; | |
9349 | char *kwnames[] = { | |
9350 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9351 | }; | |
9352 | ||
8edf1c75 | 9353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 9354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9355 | if (obj1) { |
9356 | { | |
9357 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9358 | if (PyErr_Occurred()) SWIG_fail; | |
9359 | } | |
9360 | } | |
d14a1e28 RD |
9361 | if (obj2) { |
9362 | { | |
9363 | arg3 = &temp3; | |
9364 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9365 | } | |
9366 | } | |
9367 | if (obj3) { | |
9368 | { | |
9369 | arg4 = &temp4; | |
9370 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9371 | } | |
9372 | } | |
8edf1c75 RD |
9373 | if (obj4) { |
9374 | { | |
9375 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9376 | if (PyErr_Occurred()) SWIG_fail; | |
9377 | } | |
9378 | } | |
d14a1e28 RD |
9379 | if (obj5) { |
9380 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9381 | if (arg6 == NULL) { | |
9382 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9383 | } | |
9384 | } | |
9385 | if (obj6) { | |
9386 | { | |
9387 | arg7 = wxString_in_helper(obj6); | |
9388 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 9389 | temp7 = True; |
d14a1e28 RD |
9390 | } |
9391 | } | |
9392 | { | |
9393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9394 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
9395 | ||
9396 | wxPyEndAllowThreads(__tstate); | |
9397 | if (PyErr_Occurred()) SWIG_fail; | |
9398 | } | |
9399 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9400 | { | |
9401 | if (temp7) | |
9402 | delete arg7; | |
9403 | } | |
9404 | return resultobj; | |
9405 | fail: | |
9406 | { | |
9407 | if (temp7) | |
9408 | delete arg7; | |
9409 | } | |
9410 | return NULL; | |
9411 | } | |
9412 | ||
9413 | ||
9414 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9415 | PyObject *resultobj; | |
9416 | wxScrollBar *result; | |
9417 | char *kwnames[] = { | |
9418 | NULL | |
9419 | }; | |
9420 | ||
9421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
9422 | { | |
9423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9424 | result = (wxScrollBar *)new wxScrollBar(); | |
9425 | ||
9426 | wxPyEndAllowThreads(__tstate); | |
9427 | if (PyErr_Occurred()) SWIG_fail; | |
9428 | } | |
9429 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9430 | return resultobj; | |
9431 | fail: | |
9432 | return NULL; | |
9433 | } | |
9434 | ||
9435 | ||
9436 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9437 | PyObject *resultobj; | |
9438 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9439 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9440 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9441 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9442 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9443 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9444 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9445 | long arg6 = (long) wxSB_HORIZONTAL ; | |
9446 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9447 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9448 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
9449 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9450 | bool result; | |
9451 | wxPoint temp4 ; | |
9452 | wxSize temp5 ; | |
423f194a | 9453 | bool temp8 = False ; |
d14a1e28 RD |
9454 | PyObject * obj0 = 0 ; |
9455 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9456 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9457 | PyObject * obj3 = 0 ; |
9458 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9459 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9460 | PyObject * obj6 = 0 ; |
9461 | PyObject * obj7 = 0 ; | |
9462 | char *kwnames[] = { | |
9463 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9464 | }; | |
9465 | ||
8edf1c75 | 9466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
9467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9468 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
9469 | if (obj2) { |
9470 | { | |
9471 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9472 | if (PyErr_Occurred()) SWIG_fail; | |
9473 | } | |
9474 | } | |
d14a1e28 RD |
9475 | if (obj3) { |
9476 | { | |
9477 | arg4 = &temp4; | |
9478 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9479 | } | |
9480 | } | |
9481 | if (obj4) { | |
9482 | { | |
9483 | arg5 = &temp5; | |
9484 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9485 | } | |
9486 | } | |
8edf1c75 RD |
9487 | if (obj5) { |
9488 | { | |
9489 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9490 | if (PyErr_Occurred()) SWIG_fail; | |
9491 | } | |
9492 | } | |
d14a1e28 RD |
9493 | if (obj6) { |
9494 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9495 | if (arg7 == NULL) { | |
9496 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9497 | } | |
9498 | } | |
9499 | if (obj7) { | |
9500 | { | |
9501 | arg8 = wxString_in_helper(obj7); | |
9502 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 9503 | temp8 = True; |
d14a1e28 RD |
9504 | } |
9505 | } | |
9506 | { | |
9507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9508 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9509 | ||
9510 | wxPyEndAllowThreads(__tstate); | |
9511 | if (PyErr_Occurred()) SWIG_fail; | |
9512 | } | |
4e760a36 | 9513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9514 | { |
9515 | if (temp8) | |
9516 | delete arg8; | |
9517 | } | |
9518 | return resultobj; | |
9519 | fail: | |
9520 | { | |
9521 | if (temp8) | |
9522 | delete arg8; | |
9523 | } | |
9524 | return NULL; | |
9525 | } | |
9526 | ||
9527 | ||
9528 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9529 | PyObject *resultobj; | |
9530 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9531 | int result; | |
9532 | PyObject * obj0 = 0 ; | |
9533 | char *kwnames[] = { | |
9534 | (char *) "self", NULL | |
9535 | }; | |
9536 | ||
9537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
9538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9539 | { | |
9540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9541 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
9542 | ||
9543 | wxPyEndAllowThreads(__tstate); | |
9544 | if (PyErr_Occurred()) SWIG_fail; | |
9545 | } | |
8edf1c75 | 9546 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9547 | return resultobj; |
9548 | fail: | |
9549 | return NULL; | |
9550 | } | |
9551 | ||
9552 | ||
9553 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9554 | PyObject *resultobj; | |
9555 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9556 | int result; | |
9557 | PyObject * obj0 = 0 ; | |
9558 | char *kwnames[] = { | |
9559 | (char *) "self", NULL | |
9560 | }; | |
9561 | ||
9562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
9563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9564 | { | |
9565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9566 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
9567 | ||
9568 | wxPyEndAllowThreads(__tstate); | |
9569 | if (PyErr_Occurred()) SWIG_fail; | |
9570 | } | |
8edf1c75 | 9571 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9572 | return resultobj; |
9573 | fail: | |
9574 | return NULL; | |
9575 | } | |
9576 | ||
9577 | ||
9578 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9579 | PyObject *resultobj; | |
9580 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9581 | int result; | |
9582 | PyObject * obj0 = 0 ; | |
9583 | char *kwnames[] = { | |
9584 | (char *) "self", NULL | |
9585 | }; | |
9586 | ||
9587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
9588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9589 | { | |
9590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9591 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
9592 | ||
9593 | wxPyEndAllowThreads(__tstate); | |
9594 | if (PyErr_Occurred()) SWIG_fail; | |
9595 | } | |
8edf1c75 | 9596 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9597 | return resultobj; |
9598 | fail: | |
9599 | return NULL; | |
9600 | } | |
9601 | ||
9602 | ||
9603 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9604 | PyObject *resultobj; | |
9605 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9606 | int result; | |
9607 | PyObject * obj0 = 0 ; | |
9608 | char *kwnames[] = { | |
9609 | (char *) "self", NULL | |
9610 | }; | |
9611 | ||
9612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
9613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9614 | { | |
9615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9616 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
9617 | ||
9618 | wxPyEndAllowThreads(__tstate); | |
9619 | if (PyErr_Occurred()) SWIG_fail; | |
9620 | } | |
8edf1c75 | 9621 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9622 | return resultobj; |
9623 | fail: | |
9624 | return NULL; | |
9625 | } | |
9626 | ||
9627 | ||
9628 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9629 | PyObject *resultobj; | |
9630 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9631 | bool result; | |
9632 | PyObject * obj0 = 0 ; | |
9633 | char *kwnames[] = { | |
9634 | (char *) "self", NULL | |
9635 | }; | |
9636 | ||
9637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
9638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9639 | { | |
9640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9641 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
9642 | ||
9643 | wxPyEndAllowThreads(__tstate); | |
9644 | if (PyErr_Occurred()) SWIG_fail; | |
9645 | } | |
4e760a36 | 9646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9647 | return resultobj; |
9648 | fail: | |
9649 | return NULL; | |
9650 | } | |
9651 | ||
9652 | ||
9653 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9654 | PyObject *resultobj; | |
9655 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9656 | int arg2 ; | |
9657 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9658 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9659 | char *kwnames[] = { |
9660 | (char *) "self",(char *) "viewStart", NULL | |
9661 | }; | |
9662 | ||
8edf1c75 | 9663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9665 | { |
9666 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9667 | if (PyErr_Occurred()) SWIG_fail; | |
9668 | } | |
d14a1e28 RD |
9669 | { |
9670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9671 | (arg1)->SetThumbPosition(arg2); | |
9672 | ||
9673 | wxPyEndAllowThreads(__tstate); | |
9674 | if (PyErr_Occurred()) SWIG_fail; | |
9675 | } | |
9676 | Py_INCREF(Py_None); resultobj = Py_None; | |
9677 | return resultobj; | |
9678 | fail: | |
9679 | return NULL; | |
9680 | } | |
9681 | ||
9682 | ||
9683 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9684 | PyObject *resultobj; | |
9685 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9686 | int arg2 ; | |
9687 | int arg3 ; | |
9688 | int arg4 ; | |
9689 | int arg5 ; | |
423f194a | 9690 | bool arg6 = (bool) True ; |
d14a1e28 | 9691 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
9692 | PyObject * obj1 = 0 ; |
9693 | PyObject * obj2 = 0 ; | |
9694 | PyObject * obj3 = 0 ; | |
9695 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
9696 | PyObject * obj5 = 0 ; |
9697 | char *kwnames[] = { | |
9698 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
9699 | }; | |
9700 | ||
8edf1c75 | 9701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9703 | { |
9704 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9705 | if (PyErr_Occurred()) SWIG_fail; | |
9706 | } | |
9707 | { | |
9708 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9709 | if (PyErr_Occurred()) SWIG_fail; | |
9710 | } | |
9711 | { | |
9712 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9713 | if (PyErr_Occurred()) SWIG_fail; | |
9714 | } | |
9715 | { | |
9716 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
9717 | if (PyErr_Occurred()) SWIG_fail; | |
9718 | } | |
d14a1e28 | 9719 | if (obj5) { |
83448d71 | 9720 | { |
8edf1c75 | 9721 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
83448d71 RD |
9722 | if (PyErr_Occurred()) SWIG_fail; |
9723 | } | |
d14a1e28 RD |
9724 | } |
9725 | { | |
9726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9727 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
9728 | ||
9729 | wxPyEndAllowThreads(__tstate); | |
9730 | if (PyErr_Occurred()) SWIG_fail; | |
9731 | } | |
9732 | Py_INCREF(Py_None); resultobj = Py_None; | |
9733 | return resultobj; | |
9734 | fail: | |
9735 | return NULL; | |
9736 | } | |
9737 | ||
9738 | ||
9739 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
9740 | PyObject *obj; | |
9741 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9742 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
9743 | Py_INCREF(obj); | |
9744 | return Py_BuildValue((char *)""); | |
9745 | } | |
8edf1c75 | 9746 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
d03fd34d RD |
9747 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
9748 | return 1; | |
9749 | } | |
9750 | ||
9751 | ||
9752 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
9753 | PyObject *pyobj; | |
9754 | ||
9755 | { | |
9756 | #if wxUSE_UNICODE | |
9757 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9758 | #else | |
9759 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9760 | #endif | |
9761 | } | |
9762 | return pyobj; | |
9763 | } | |
9764 | ||
9765 | ||
8edf1c75 | 9766 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
d03fd34d RD |
9767 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
9768 | return 1; | |
9769 | } | |
9770 | ||
9771 | ||
9772 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
9773 | PyObject *pyobj; | |
9774 | ||
9775 | { | |
9776 | #if wxUSE_UNICODE | |
9777 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9778 | #else | |
9779 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9780 | #endif | |
9781 | } | |
9782 | return pyobj; | |
9783 | } | |
9784 | ||
9785 | ||
d14a1e28 RD |
9786 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
9787 | PyObject *resultobj; | |
9788 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9789 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9790 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9791 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9792 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9793 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9794 | long arg5 = (long) wxSP_HORIZONTAL ; | |
9795 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
9796 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9797 | wxSpinButton *result; | |
9798 | wxPoint temp3 ; | |
9799 | wxSize temp4 ; | |
423f194a | 9800 | bool temp6 = False ; |
d14a1e28 | 9801 | PyObject * obj0 = 0 ; |
8edf1c75 | 9802 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9803 | PyObject * obj2 = 0 ; |
9804 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9805 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9806 | PyObject * obj5 = 0 ; |
9807 | char *kwnames[] = { | |
9808 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9809 | }; | |
9810 | ||
8edf1c75 | 9811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9813 | if (obj1) { |
9814 | { | |
9815 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9816 | if (PyErr_Occurred()) SWIG_fail; | |
9817 | } | |
9818 | } | |
d14a1e28 RD |
9819 | if (obj2) { |
9820 | { | |
9821 | arg3 = &temp3; | |
9822 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9823 | } | |
9824 | } | |
9825 | if (obj3) { | |
9826 | { | |
9827 | arg4 = &temp4; | |
9828 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9829 | } | |
9830 | } | |
8edf1c75 RD |
9831 | if (obj4) { |
9832 | { | |
9833 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9834 | if (PyErr_Occurred()) SWIG_fail; | |
9835 | } | |
9836 | } | |
d14a1e28 RD |
9837 | if (obj5) { |
9838 | { | |
9839 | arg6 = wxString_in_helper(obj5); | |
9840 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 9841 | temp6 = True; |
d14a1e28 RD |
9842 | } |
9843 | } | |
9844 | { | |
9845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9846 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9847 | ||
9848 | wxPyEndAllowThreads(__tstate); | |
9849 | if (PyErr_Occurred()) SWIG_fail; | |
9850 | } | |
9851 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9852 | { | |
9853 | if (temp6) | |
9854 | delete arg6; | |
9855 | } | |
9856 | return resultobj; | |
9857 | fail: | |
9858 | { | |
9859 | if (temp6) | |
9860 | delete arg6; | |
9861 | } | |
9862 | return NULL; | |
9863 | } | |
9864 | ||
9865 | ||
9866 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9867 | PyObject *resultobj; | |
9868 | wxSpinButton *result; | |
9869 | char *kwnames[] = { | |
9870 | NULL | |
9871 | }; | |
9872 | ||
9873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
9874 | { | |
9875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9876 | result = (wxSpinButton *)new wxSpinButton(); | |
9877 | ||
9878 | wxPyEndAllowThreads(__tstate); | |
9879 | if (PyErr_Occurred()) SWIG_fail; | |
9880 | } | |
9881 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9882 | return resultobj; | |
9883 | fail: | |
9884 | return NULL; | |
9885 | } | |
9886 | ||
9887 | ||
9888 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9889 | PyObject *resultobj; | |
9890 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9891 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9892 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9893 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9894 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9895 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9896 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9897 | long arg6 = (long) wxSP_HORIZONTAL ; | |
9898 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
9899 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9900 | bool result; | |
9901 | wxPoint temp4 ; | |
9902 | wxSize temp5 ; | |
423f194a | 9903 | bool temp7 = False ; |
d14a1e28 RD |
9904 | PyObject * obj0 = 0 ; |
9905 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9906 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9907 | PyObject * obj3 = 0 ; |
9908 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9909 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9910 | PyObject * obj6 = 0 ; |
9911 | char *kwnames[] = { | |
9912 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9913 | }; | |
9914 | ||
8edf1c75 | 9915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
9916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9917 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
9918 | if (obj2) { |
9919 | { | |
9920 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9921 | if (PyErr_Occurred()) SWIG_fail; | |
9922 | } | |
9923 | } | |
d14a1e28 RD |
9924 | if (obj3) { |
9925 | { | |
9926 | arg4 = &temp4; | |
9927 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9928 | } | |
9929 | } | |
9930 | if (obj4) { | |
9931 | { | |
9932 | arg5 = &temp5; | |
9933 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9934 | } | |
9935 | } | |
8edf1c75 RD |
9936 | if (obj5) { |
9937 | { | |
9938 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9939 | if (PyErr_Occurred()) SWIG_fail; | |
9940 | } | |
9941 | } | |
d14a1e28 RD |
9942 | if (obj6) { |
9943 | { | |
9944 | arg7 = wxString_in_helper(obj6); | |
9945 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 9946 | temp7 = True; |
d14a1e28 RD |
9947 | } |
9948 | } | |
9949 | { | |
9950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9951 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9952 | ||
9953 | wxPyEndAllowThreads(__tstate); | |
9954 | if (PyErr_Occurred()) SWIG_fail; | |
9955 | } | |
4e760a36 | 9956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9957 | { |
9958 | if (temp7) | |
9959 | delete arg7; | |
9960 | } | |
9961 | return resultobj; | |
9962 | fail: | |
9963 | { | |
9964 | if (temp7) | |
9965 | delete arg7; | |
9966 | } | |
9967 | return NULL; | |
9968 | } | |
9969 | ||
9970 | ||
9971 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9972 | PyObject *resultobj; | |
9973 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9974 | int result; | |
9975 | PyObject * obj0 = 0 ; | |
9976 | char *kwnames[] = { | |
9977 | (char *) "self", NULL | |
9978 | }; | |
9979 | ||
9980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
9981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9982 | { | |
9983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9984 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
9985 | ||
9986 | wxPyEndAllowThreads(__tstate); | |
9987 | if (PyErr_Occurred()) SWIG_fail; | |
9988 | } | |
8edf1c75 | 9989 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9990 | return resultobj; |
9991 | fail: | |
9992 | return NULL; | |
9993 | } | |
9994 | ||
9995 | ||
9996 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9997 | PyObject *resultobj; | |
9998 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9999 | int result; | |
10000 | PyObject * obj0 = 0 ; | |
10001 | char *kwnames[] = { | |
10002 | (char *) "self", NULL | |
10003 | }; | |
10004 | ||
10005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
10006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10007 | { | |
10008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10009 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10010 | ||
10011 | wxPyEndAllowThreads(__tstate); | |
10012 | if (PyErr_Occurred()) SWIG_fail; | |
10013 | } | |
8edf1c75 | 10014 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10015 | return resultobj; |
10016 | fail: | |
10017 | return NULL; | |
10018 | } | |
10019 | ||
10020 | ||
10021 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10022 | PyObject *resultobj; | |
10023 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10024 | int result; | |
10025 | PyObject * obj0 = 0 ; | |
10026 | char *kwnames[] = { | |
10027 | (char *) "self", NULL | |
10028 | }; | |
10029 | ||
10030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
10031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10032 | { | |
10033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10034 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10035 | ||
10036 | wxPyEndAllowThreads(__tstate); | |
10037 | if (PyErr_Occurred()) SWIG_fail; | |
10038 | } | |
8edf1c75 | 10039 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10040 | return resultobj; |
10041 | fail: | |
10042 | return NULL; | |
10043 | } | |
10044 | ||
10045 | ||
10046 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10047 | PyObject *resultobj; | |
10048 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10049 | int arg2 ; | |
10050 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10051 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10052 | char *kwnames[] = { |
10053 | (char *) "self",(char *) "val", NULL | |
10054 | }; | |
10055 | ||
8edf1c75 | 10056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10058 | { |
10059 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10060 | if (PyErr_Occurred()) SWIG_fail; | |
10061 | } | |
d14a1e28 RD |
10062 | { |
10063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10064 | (arg1)->SetValue(arg2); | |
10065 | ||
10066 | wxPyEndAllowThreads(__tstate); | |
10067 | if (PyErr_Occurred()) SWIG_fail; | |
10068 | } | |
10069 | Py_INCREF(Py_None); resultobj = Py_None; | |
10070 | return resultobj; | |
10071 | fail: | |
10072 | return NULL; | |
10073 | } | |
10074 | ||
10075 | ||
10076 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10077 | PyObject *resultobj; | |
10078 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10079 | int arg2 ; | |
10080 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10081 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10082 | char *kwnames[] = { |
10083 | (char *) "self",(char *) "minVal", NULL | |
10084 | }; | |
10085 | ||
8edf1c75 | 10086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10088 | { |
10089 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10090 | if (PyErr_Occurred()) SWIG_fail; | |
10091 | } | |
d14a1e28 RD |
10092 | { |
10093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10094 | (arg1)->SetMin(arg2); | |
10095 | ||
10096 | wxPyEndAllowThreads(__tstate); | |
10097 | if (PyErr_Occurred()) SWIG_fail; | |
10098 | } | |
10099 | Py_INCREF(Py_None); resultobj = Py_None; | |
10100 | return resultobj; | |
10101 | fail: | |
10102 | return NULL; | |
10103 | } | |
10104 | ||
10105 | ||
10106 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10107 | PyObject *resultobj; | |
10108 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10109 | int arg2 ; | |
10110 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10111 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10112 | char *kwnames[] = { |
10113 | (char *) "self",(char *) "maxVal", NULL | |
10114 | }; | |
10115 | ||
8edf1c75 | 10116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10118 | { |
10119 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10120 | if (PyErr_Occurred()) SWIG_fail; | |
10121 | } | |
d14a1e28 RD |
10122 | { |
10123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10124 | (arg1)->SetMax(arg2); | |
10125 | ||
10126 | wxPyEndAllowThreads(__tstate); | |
10127 | if (PyErr_Occurred()) SWIG_fail; | |
10128 | } | |
10129 | Py_INCREF(Py_None); resultobj = Py_None; | |
10130 | return resultobj; | |
10131 | fail: | |
10132 | return NULL; | |
10133 | } | |
10134 | ||
10135 | ||
10136 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10137 | PyObject *resultobj; | |
10138 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10139 | int arg2 ; | |
10140 | int arg3 ; | |
10141 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10142 | PyObject * obj1 = 0 ; |
10143 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10144 | char *kwnames[] = { |
10145 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10146 | }; | |
10147 | ||
8edf1c75 | 10148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10150 | { | |
8edf1c75 RD |
10151 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
10152 | if (PyErr_Occurred()) SWIG_fail; | |
10153 | } | |
10154 | { | |
10155 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10156 | if (PyErr_Occurred()) SWIG_fail; | |
10157 | } | |
10158 | { | |
10159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10160 | (arg1)->SetRange(arg2,arg3); | |
d14a1e28 RD |
10161 | |
10162 | wxPyEndAllowThreads(__tstate); | |
10163 | if (PyErr_Occurred()) SWIG_fail; | |
10164 | } | |
10165 | Py_INCREF(Py_None); resultobj = Py_None; | |
10166 | return resultobj; | |
10167 | fail: | |
10168 | return NULL; | |
10169 | } | |
10170 | ||
10171 | ||
10172 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10173 | PyObject *resultobj; | |
10174 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10175 | bool result; | |
10176 | PyObject * obj0 = 0 ; | |
10177 | char *kwnames[] = { | |
10178 | (char *) "self", NULL | |
10179 | }; | |
10180 | ||
10181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
10182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10183 | { | |
10184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10185 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10186 | ||
10187 | wxPyEndAllowThreads(__tstate); | |
10188 | if (PyErr_Occurred()) SWIG_fail; | |
10189 | } | |
4e760a36 | 10190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10191 | return resultobj; |
10192 | fail: | |
10193 | return NULL; | |
10194 | } | |
10195 | ||
10196 | ||
10197 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
10198 | PyObject *obj; | |
10199 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10200 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
10201 | Py_INCREF(obj); | |
10202 | return Py_BuildValue((char *)""); | |
10203 | } | |
10204 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10205 | PyObject *resultobj; | |
10206 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10207 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10208 | wxString const &arg3_defvalue = wxPyEmptyString ; |
10209 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10210 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10211 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10212 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10213 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10214 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
10215 | int arg7 = (int) 0 ; | |
10216 | int arg8 = (int) 100 ; | |
10217 | int arg9 = (int) 0 ; | |
10218 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
10219 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10220 | wxSpinCtrl *result; | |
423f194a | 10221 | bool temp3 = False ; |
d14a1e28 RD |
10222 | wxPoint temp4 ; |
10223 | wxSize temp5 ; | |
423f194a | 10224 | bool temp10 = False ; |
d14a1e28 | 10225 | PyObject * obj0 = 0 ; |
8edf1c75 | 10226 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10227 | PyObject * obj2 = 0 ; |
10228 | PyObject * obj3 = 0 ; | |
10229 | PyObject * obj4 = 0 ; | |
8edf1c75 RD |
10230 | PyObject * obj5 = 0 ; |
10231 | PyObject * obj6 = 0 ; | |
10232 | PyObject * obj7 = 0 ; | |
10233 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10234 | PyObject * obj9 = 0 ; |
10235 | char *kwnames[] = { | |
10236 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10237 | }; | |
10238 | ||
8edf1c75 | 10239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 10240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10241 | if (obj1) { |
10242 | { | |
10243 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10244 | if (PyErr_Occurred()) SWIG_fail; | |
10245 | } | |
10246 | } | |
d14a1e28 RD |
10247 | if (obj2) { |
10248 | { | |
10249 | arg3 = wxString_in_helper(obj2); | |
10250 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10251 | temp3 = True; |
d14a1e28 RD |
10252 | } |
10253 | } | |
10254 | if (obj3) { | |
10255 | { | |
10256 | arg4 = &temp4; | |
10257 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10258 | } | |
10259 | } | |
10260 | if (obj4) { | |
10261 | { | |
10262 | arg5 = &temp5; | |
10263 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10264 | } | |
10265 | } | |
8edf1c75 RD |
10266 | if (obj5) { |
10267 | { | |
10268 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
10269 | if (PyErr_Occurred()) SWIG_fail; | |
10270 | } | |
10271 | } | |
10272 | if (obj6) { | |
10273 | { | |
10274 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
10275 | if (PyErr_Occurred()) SWIG_fail; | |
10276 | } | |
10277 | } | |
10278 | if (obj7) { | |
10279 | { | |
10280 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
10281 | if (PyErr_Occurred()) SWIG_fail; | |
10282 | } | |
10283 | } | |
10284 | if (obj8) { | |
10285 | { | |
10286 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
10287 | if (PyErr_Occurred()) SWIG_fail; | |
10288 | } | |
10289 | } | |
d14a1e28 RD |
10290 | if (obj9) { |
10291 | { | |
10292 | arg10 = wxString_in_helper(obj9); | |
10293 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10294 | temp10 = True; |
d14a1e28 RD |
10295 | } |
10296 | } | |
10297 | { | |
10298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10299 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
10300 | ||
10301 | wxPyEndAllowThreads(__tstate); | |
10302 | if (PyErr_Occurred()) SWIG_fail; | |
10303 | } | |
10304 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
10305 | { | |
10306 | if (temp3) | |
10307 | delete arg3; | |
10308 | } | |
10309 | { | |
10310 | if (temp10) | |
10311 | delete arg10; | |
10312 | } | |
10313 | return resultobj; | |
10314 | fail: | |
10315 | { | |
10316 | if (temp3) | |
10317 | delete arg3; | |
10318 | } | |
10319 | { | |
10320 | if (temp10) | |
10321 | delete arg10; | |
10322 | } | |
10323 | return NULL; | |
10324 | } | |
10325 | ||
10326 | ||
10327 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10328 | PyObject *resultobj; | |
10329 | wxSpinCtrl *result; | |
10330 | char *kwnames[] = { | |
10331 | NULL | |
10332 | }; | |
10333 | ||
10334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
10335 | { | |
10336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10337 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
10338 | ||
10339 | wxPyEndAllowThreads(__tstate); | |
10340 | if (PyErr_Occurred()) SWIG_fail; | |
10341 | } | |
10342 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
10343 | return resultobj; | |
10344 | fail: | |
10345 | return NULL; | |
10346 | } | |
10347 | ||
10348 | ||
10349 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10350 | PyObject *resultobj; | |
10351 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10352 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10353 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10354 | wxString const &arg4_defvalue = wxPyEmptyString ; |
10355 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
10356 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10357 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10358 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10359 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10360 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
10361 | int arg8 = (int) 0 ; | |
10362 | int arg9 = (int) 100 ; | |
10363 | int arg10 = (int) 0 ; | |
10364 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
10365 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10366 | bool result; | |
423f194a | 10367 | bool temp4 = False ; |
d14a1e28 RD |
10368 | wxPoint temp5 ; |
10369 | wxSize temp6 ; | |
423f194a | 10370 | bool temp11 = False ; |
d14a1e28 RD |
10371 | PyObject * obj0 = 0 ; |
10372 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10373 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10374 | PyObject * obj3 = 0 ; |
10375 | PyObject * obj4 = 0 ; | |
10376 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
10377 | PyObject * obj6 = 0 ; |
10378 | PyObject * obj7 = 0 ; | |
10379 | PyObject * obj8 = 0 ; | |
10380 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
10381 | PyObject * obj10 = 0 ; |
10382 | char *kwnames[] = { | |
10383 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10384 | }; | |
10385 | ||
8edf1c75 | 10386 | 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 |
10387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10388 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
10389 | if (obj2) { |
10390 | { | |
10391 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10392 | if (PyErr_Occurred()) SWIG_fail; | |
10393 | } | |
10394 | } | |
d14a1e28 RD |
10395 | if (obj3) { |
10396 | { | |
10397 | arg4 = wxString_in_helper(obj3); | |
10398 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10399 | temp4 = True; |
d14a1e28 RD |
10400 | } |
10401 | } | |
10402 | if (obj4) { | |
10403 | { | |
10404 | arg5 = &temp5; | |
10405 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10406 | } | |
10407 | } | |
10408 | if (obj5) { | |
10409 | { | |
10410 | arg6 = &temp6; | |
10411 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10412 | } | |
10413 | } | |
8edf1c75 RD |
10414 | if (obj6) { |
10415 | { | |
10416 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
10417 | if (PyErr_Occurred()) SWIG_fail; | |
10418 | } | |
10419 | } | |
10420 | if (obj7) { | |
10421 | { | |
10422 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
10423 | if (PyErr_Occurred()) SWIG_fail; | |
10424 | } | |
10425 | } | |
10426 | if (obj8) { | |
10427 | { | |
10428 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
10429 | if (PyErr_Occurred()) SWIG_fail; | |
10430 | } | |
10431 | } | |
10432 | if (obj9) { | |
10433 | { | |
10434 | arg10 = (int) SWIG_PyObj_AsInt(obj9); | |
10435 | if (PyErr_Occurred()) SWIG_fail; | |
10436 | } | |
10437 | } | |
d14a1e28 RD |
10438 | if (obj10) { |
10439 | { | |
10440 | arg11 = wxString_in_helper(obj10); | |
10441 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 10442 | temp11 = True; |
d14a1e28 RD |
10443 | } |
10444 | } | |
10445 | { | |
10446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10447 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
10448 | ||
10449 | wxPyEndAllowThreads(__tstate); | |
10450 | if (PyErr_Occurred()) SWIG_fail; | |
10451 | } | |
4e760a36 | 10452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10453 | { |
10454 | if (temp4) | |
10455 | delete arg4; | |
10456 | } | |
10457 | { | |
10458 | if (temp11) | |
10459 | delete arg11; | |
10460 | } | |
10461 | return resultobj; | |
10462 | fail: | |
10463 | { | |
10464 | if (temp4) | |
10465 | delete arg4; | |
10466 | } | |
10467 | { | |
10468 | if (temp11) | |
10469 | delete arg11; | |
10470 | } | |
10471 | return NULL; | |
10472 | } | |
10473 | ||
10474 | ||
10475 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10476 | PyObject *resultobj; | |
10477 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10478 | int result; | |
10479 | PyObject * obj0 = 0 ; | |
10480 | char *kwnames[] = { | |
10481 | (char *) "self", NULL | |
10482 | }; | |
10483 | ||
10484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
10485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10486 | { | |
10487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10488 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
10489 | ||
10490 | wxPyEndAllowThreads(__tstate); | |
10491 | if (PyErr_Occurred()) SWIG_fail; | |
10492 | } | |
8edf1c75 | 10493 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10494 | return resultobj; |
10495 | fail: | |
10496 | return NULL; | |
10497 | } | |
10498 | ||
10499 | ||
10500 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10501 | PyObject *resultobj; | |
10502 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10503 | int arg2 ; | |
10504 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10505 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10506 | char *kwnames[] = { |
10507 | (char *) "self",(char *) "value", NULL | |
10508 | }; | |
10509 | ||
8edf1c75 | 10510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10512 | { |
10513 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10514 | if (PyErr_Occurred()) SWIG_fail; | |
10515 | } | |
d14a1e28 RD |
10516 | { |
10517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10518 | (arg1)->SetValue(arg2); | |
10519 | ||
10520 | wxPyEndAllowThreads(__tstate); | |
10521 | if (PyErr_Occurred()) SWIG_fail; | |
10522 | } | |
10523 | Py_INCREF(Py_None); resultobj = Py_None; | |
10524 | return resultobj; | |
10525 | fail: | |
10526 | return NULL; | |
10527 | } | |
10528 | ||
10529 | ||
10530 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10531 | PyObject *resultobj; | |
10532 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10533 | wxString *arg2 = 0 ; | |
423f194a | 10534 | bool temp2 = False ; |
d14a1e28 RD |
10535 | PyObject * obj0 = 0 ; |
10536 | PyObject * obj1 = 0 ; | |
10537 | char *kwnames[] = { | |
10538 | (char *) "self",(char *) "text", NULL | |
10539 | }; | |
10540 | ||
10541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
10542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10543 | { | |
10544 | arg2 = wxString_in_helper(obj1); | |
10545 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10546 | temp2 = True; |
d14a1e28 RD |
10547 | } |
10548 | { | |
10549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10550 | (arg1)->SetValue((wxString const &)*arg2); | |
10551 | ||
10552 | wxPyEndAllowThreads(__tstate); | |
10553 | if (PyErr_Occurred()) SWIG_fail; | |
10554 | } | |
10555 | Py_INCREF(Py_None); resultobj = Py_None; | |
10556 | { | |
10557 | if (temp2) | |
10558 | delete arg2; | |
10559 | } | |
10560 | return resultobj; | |
10561 | fail: | |
10562 | { | |
10563 | if (temp2) | |
10564 | delete arg2; | |
10565 | } | |
10566 | return NULL; | |
10567 | } | |
10568 | ||
10569 | ||
10570 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10571 | PyObject *resultobj; | |
10572 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10573 | int arg2 ; | |
10574 | int arg3 ; | |
10575 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10576 | PyObject * obj1 = 0 ; |
10577 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10578 | char *kwnames[] = { |
10579 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10580 | }; | |
10581 | ||
8edf1c75 | 10582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10584 | { |
10585 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10586 | if (PyErr_Occurred()) SWIG_fail; | |
10587 | } | |
10588 | { | |
10589 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10590 | if (PyErr_Occurred()) SWIG_fail; | |
10591 | } | |
d14a1e28 RD |
10592 | { |
10593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10594 | (arg1)->SetRange(arg2,arg3); | |
10595 | ||
10596 | wxPyEndAllowThreads(__tstate); | |
10597 | if (PyErr_Occurred()) SWIG_fail; | |
10598 | } | |
10599 | Py_INCREF(Py_None); resultobj = Py_None; | |
10600 | return resultobj; | |
10601 | fail: | |
10602 | return NULL; | |
10603 | } | |
10604 | ||
10605 | ||
10606 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10607 | PyObject *resultobj; | |
10608 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10609 | int result; | |
10610 | PyObject * obj0 = 0 ; | |
10611 | char *kwnames[] = { | |
10612 | (char *) "self", NULL | |
10613 | }; | |
10614 | ||
10615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
10616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10617 | { | |
10618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10619 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
10620 | ||
10621 | wxPyEndAllowThreads(__tstate); | |
10622 | if (PyErr_Occurred()) SWIG_fail; | |
10623 | } | |
8edf1c75 | 10624 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10625 | return resultobj; |
10626 | fail: | |
10627 | return NULL; | |
10628 | } | |
10629 | ||
10630 | ||
10631 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10632 | PyObject *resultobj; | |
10633 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10634 | int result; | |
10635 | PyObject * obj0 = 0 ; | |
10636 | char *kwnames[] = { | |
10637 | (char *) "self", NULL | |
10638 | }; | |
10639 | ||
10640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
10641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10642 | { | |
10643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10644 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
10645 | ||
10646 | wxPyEndAllowThreads(__tstate); | |
10647 | if (PyErr_Occurred()) SWIG_fail; | |
10648 | } | |
8edf1c75 | 10649 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10650 | return resultobj; |
10651 | fail: | |
10652 | return NULL; | |
10653 | } | |
10654 | ||
10655 | ||
10656 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10657 | PyObject *resultobj; | |
10658 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10659 | long arg2 ; | |
10660 | long arg3 ; | |
10661 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10662 | PyObject * obj1 = 0 ; |
10663 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10664 | char *kwnames[] = { |
10665 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10666 | }; | |
10667 | ||
8edf1c75 | 10668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10670 | { |
10671 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
10672 | if (PyErr_Occurred()) SWIG_fail; | |
10673 | } | |
10674 | { | |
10675 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
10676 | if (PyErr_Occurred()) SWIG_fail; | |
10677 | } | |
d14a1e28 RD |
10678 | { |
10679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10680 | (arg1)->SetSelection(arg2,arg3); | |
10681 | ||
10682 | wxPyEndAllowThreads(__tstate); | |
10683 | if (PyErr_Occurred()) SWIG_fail; | |
10684 | } | |
10685 | Py_INCREF(Py_None); resultobj = Py_None; | |
10686 | return resultobj; | |
10687 | fail: | |
10688 | return NULL; | |
10689 | } | |
10690 | ||
10691 | ||
10692 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
10693 | PyObject *obj; | |
10694 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10695 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
10696 | Py_INCREF(obj); | |
10697 | return Py_BuildValue((char *)""); | |
10698 | } | |
eb9b6107 RD |
10699 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
10700 | PyObject *resultobj; | |
10701 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10702 | int arg2 = (int) 0 ; | |
10703 | wxSpinEvent *result; | |
8edf1c75 RD |
10704 | PyObject * obj0 = 0 ; |
10705 | PyObject * obj1 = 0 ; | |
eb9b6107 RD |
10706 | char *kwnames[] = { |
10707 | (char *) "commandType",(char *) "winid", NULL | |
10708 | }; | |
10709 | ||
8edf1c75 RD |
10710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
10711 | if (obj0) { | |
10712 | { | |
10713 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
10714 | if (PyErr_Occurred()) SWIG_fail; | |
10715 | } | |
10716 | } | |
10717 | if (obj1) { | |
10718 | { | |
10719 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10720 | if (PyErr_Occurred()) SWIG_fail; | |
10721 | } | |
10722 | } | |
eb9b6107 RD |
10723 | { |
10724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10725 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
10726 | ||
10727 | wxPyEndAllowThreads(__tstate); | |
10728 | if (PyErr_Occurred()) SWIG_fail; | |
10729 | } | |
10730 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinEvent, 1); | |
10731 | return resultobj; | |
10732 | fail: | |
10733 | return NULL; | |
10734 | } | |
10735 | ||
10736 | ||
10737 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10738 | PyObject *resultobj; | |
10739 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10740 | int result; | |
10741 | PyObject * obj0 = 0 ; | |
10742 | char *kwnames[] = { | |
10743 | (char *) "self", NULL | |
10744 | }; | |
10745 | ||
10746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10748 | { | |
10749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10750 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
10751 | ||
10752 | wxPyEndAllowThreads(__tstate); | |
10753 | if (PyErr_Occurred()) SWIG_fail; | |
10754 | } | |
8edf1c75 | 10755 | resultobj = SWIG_PyObj_FromInt((int)result); |
eb9b6107 RD |
10756 | return resultobj; |
10757 | fail: | |
10758 | return NULL; | |
10759 | } | |
10760 | ||
10761 | ||
10762 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10763 | PyObject *resultobj; | |
10764 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10765 | int arg2 ; | |
10766 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10767 | PyObject * obj1 = 0 ; |
eb9b6107 RD |
10768 | char *kwnames[] = { |
10769 | (char *) "self",(char *) "pos", NULL | |
10770 | }; | |
10771 | ||
8edf1c75 | 10772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
eb9b6107 | 10773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10774 | { |
10775 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10776 | if (PyErr_Occurred()) SWIG_fail; | |
10777 | } | |
eb9b6107 RD |
10778 | { |
10779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10780 | (arg1)->SetPosition(arg2); | |
10781 | ||
10782 | wxPyEndAllowThreads(__tstate); | |
10783 | if (PyErr_Occurred()) SWIG_fail; | |
10784 | } | |
10785 | Py_INCREF(Py_None); resultobj = Py_None; | |
10786 | return resultobj; | |
10787 | fail: | |
10788 | return NULL; | |
10789 | } | |
10790 | ||
10791 | ||
10792 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
10793 | PyObject *obj; | |
10794 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10795 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
10796 | Py_INCREF(obj); | |
10797 | return Py_BuildValue((char *)""); | |
10798 | } | |
8edf1c75 | 10799 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
d03fd34d RD |
10800 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
10801 | return 1; | |
10802 | } | |
10803 | ||
10804 | ||
10805 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
10806 | PyObject *pyobj; | |
10807 | ||
10808 | { | |
10809 | #if wxUSE_UNICODE | |
10810 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10811 | #else | |
10812 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10813 | #endif | |
10814 | } | |
10815 | return pyobj; | |
10816 | } | |
10817 | ||
10818 | ||
8edf1c75 | 10819 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
d03fd34d RD |
10820 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
10821 | return 1; | |
10822 | } | |
10823 | ||
10824 | ||
10825 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
10826 | PyObject *pyobj; | |
10827 | ||
10828 | { | |
10829 | #if wxUSE_UNICODE | |
10830 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10831 | #else | |
10832 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10833 | #endif | |
10834 | } | |
10835 | return pyobj; | |
10836 | } | |
10837 | ||
10838 | ||
d14a1e28 RD |
10839 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
10840 | PyObject *resultobj; | |
10841 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10842 | int arg2 ; |
d14a1e28 RD |
10843 | wxString *arg3 = 0 ; |
10844 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10845 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10846 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10847 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
10848 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
10849 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
10850 | int arg7 = (int) 0 ; | |
10851 | long arg8 = (long) wxRA_HORIZONTAL ; | |
10852 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
10853 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
10854 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
10855 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 10856 | wxRadioBox *result; |
423f194a | 10857 | bool temp3 = False ; |
d14a1e28 RD |
10858 | wxPoint temp4 ; |
10859 | wxSize temp5 ; | |
db914595 | 10860 | bool temp6 = False ; |
423f194a | 10861 | bool temp10 = False ; |
d14a1e28 | 10862 | PyObject * obj0 = 0 ; |
8edf1c75 | 10863 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10864 | PyObject * obj2 = 0 ; |
10865 | PyObject * obj3 = 0 ; | |
10866 | PyObject * obj4 = 0 ; | |
10867 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
10868 | PyObject * obj6 = 0 ; |
10869 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
10870 | PyObject * obj8 = 0 ; |
10871 | PyObject * obj9 = 0 ; | |
10872 | char *kwnames[] = { | |
8edf1c75 | 10873 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
10874 | }; |
10875 | ||
8edf1c75 | 10876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 10877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10878 | { |
10879 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10880 | if (PyErr_Occurred()) SWIG_fail; | |
10881 | } | |
d14a1e28 RD |
10882 | { |
10883 | arg3 = wxString_in_helper(obj2); | |
10884 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10885 | temp3 = True; |
d14a1e28 RD |
10886 | } |
10887 | if (obj3) { | |
10888 | { | |
10889 | arg4 = &temp4; | |
10890 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10891 | } | |
10892 | } | |
10893 | if (obj4) { | |
10894 | { | |
10895 | arg5 = &temp5; | |
10896 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10897 | } | |
10898 | } | |
10899 | if (obj5) { | |
10900 | { | |
4e760a36 RD |
10901 | if (! PySequence_Check(obj5)) { |
10902 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10903 | SWIG_fail; | |
10904 | } | |
10905 | arg6 = new wxArrayString; | |
db914595 | 10906 | temp6 = True; |
4e760a36 RD |
10907 | int i, len=PySequence_Length(obj5); |
10908 | for (i=0; i<len; i++) { | |
10909 | PyObject* item = PySequence_GetItem(obj5, i); | |
10910 | #if wxUSE_UNICODE | |
10911 | PyObject* str = PyObject_Unicode(item); | |
10912 | #else | |
10913 | PyObject* str = PyObject_Str(item); | |
10914 | #endif | |
10915 | arg6->Add(Py2wxString(str)); | |
10916 | Py_DECREF(item); | |
10917 | Py_DECREF(str); | |
10918 | } | |
d14a1e28 RD |
10919 | } |
10920 | } | |
8edf1c75 RD |
10921 | if (obj6) { |
10922 | { | |
4e760a36 | 10923 | arg7 = (int) SWIG_PyObj_AsInt(obj6); |
8edf1c75 RD |
10924 | if (PyErr_Occurred()) SWIG_fail; |
10925 | } | |
10926 | } | |
10927 | if (obj7) { | |
10928 | { | |
4e760a36 | 10929 | arg8 = (long) SWIG_PyObj_AsLong(obj7); |
8edf1c75 RD |
10930 | if (PyErr_Occurred()) SWIG_fail; |
10931 | } | |
10932 | } | |
d14a1e28 | 10933 | if (obj8) { |
4e760a36 RD |
10934 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10935 | if (arg9 == NULL) { | |
d14a1e28 RD |
10936 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
10937 | } | |
10938 | } | |
10939 | if (obj9) { | |
10940 | { | |
4e760a36 RD |
10941 | arg10 = wxString_in_helper(obj9); |
10942 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10943 | temp10 = True; |
d14a1e28 RD |
10944 | } |
10945 | } | |
10946 | { | |
10947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 10948 | 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 |
10949 | |
10950 | wxPyEndAllowThreads(__tstate); | |
10951 | if (PyErr_Occurred()) SWIG_fail; | |
10952 | } | |
10953 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
10954 | { | |
10955 | if (temp3) | |
10956 | delete arg3; | |
10957 | } | |
10958 | { | |
db914595 | 10959 | if (temp6) delete arg6; |
d14a1e28 RD |
10960 | } |
10961 | { | |
10962 | if (temp10) | |
4e760a36 | 10963 | delete arg10; |
d14a1e28 RD |
10964 | } |
10965 | return resultobj; | |
10966 | fail: | |
10967 | { | |
10968 | if (temp3) | |
10969 | delete arg3; | |
10970 | } | |
10971 | { | |
db914595 | 10972 | if (temp6) delete arg6; |
d14a1e28 RD |
10973 | } |
10974 | { | |
10975 | if (temp10) | |
4e760a36 | 10976 | delete arg10; |
d14a1e28 RD |
10977 | } |
10978 | return NULL; | |
10979 | } | |
10980 | ||
10981 | ||
10982 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10983 | PyObject *resultobj; | |
10984 | wxRadioBox *result; | |
10985 | char *kwnames[] = { | |
10986 | NULL | |
10987 | }; | |
10988 | ||
10989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
10990 | { | |
10991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10992 | result = (wxRadioBox *)new wxRadioBox(); | |
10993 | ||
10994 | wxPyEndAllowThreads(__tstate); | |
10995 | if (PyErr_Occurred()) SWIG_fail; | |
10996 | } | |
10997 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
10998 | return resultobj; | |
10999 | fail: | |
11000 | return NULL; | |
11001 | } | |
11002 | ||
11003 | ||
11004 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11005 | PyObject *resultobj; | |
11006 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11007 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11008 | int arg3 ; |
d14a1e28 RD |
11009 | wxString *arg4 = 0 ; |
11010 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11011 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11012 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11013 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4e760a36 RD |
11014 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
11015 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11016 | int arg8 = (int) 0 ; | |
11017 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11018 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11019 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11020 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11021 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 11022 | bool result; |
423f194a | 11023 | bool temp4 = False ; |
d14a1e28 RD |
11024 | wxPoint temp5 ; |
11025 | wxSize temp6 ; | |
db914595 | 11026 | bool temp7 = False ; |
423f194a | 11027 | bool temp11 = False ; |
d14a1e28 RD |
11028 | PyObject * obj0 = 0 ; |
11029 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11030 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11031 | PyObject * obj3 = 0 ; |
11032 | PyObject * obj4 = 0 ; | |
11033 | PyObject * obj5 = 0 ; | |
11034 | PyObject * obj6 = 0 ; | |
8edf1c75 RD |
11035 | PyObject * obj7 = 0 ; |
11036 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11037 | PyObject * obj9 = 0 ; |
11038 | PyObject * obj10 = 0 ; | |
11039 | char *kwnames[] = { | |
8edf1c75 | 11040 | (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 |
11041 | }; |
11042 | ||
8edf1c75 | 11043 | 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 |
11044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11045 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
11046 | { |
11047 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11048 | if (PyErr_Occurred()) SWIG_fail; | |
11049 | } | |
d14a1e28 RD |
11050 | { |
11051 | arg4 = wxString_in_helper(obj3); | |
11052 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11053 | temp4 = True; |
d14a1e28 RD |
11054 | } |
11055 | if (obj4) { | |
11056 | { | |
11057 | arg5 = &temp5; | |
11058 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11059 | } | |
11060 | } | |
11061 | if (obj5) { | |
11062 | { | |
11063 | arg6 = &temp6; | |
11064 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11065 | } | |
11066 | } | |
11067 | if (obj6) { | |
11068 | { | |
4e760a36 RD |
11069 | if (! PySequence_Check(obj6)) { |
11070 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11071 | SWIG_fail; | |
11072 | } | |
11073 | arg7 = new wxArrayString; | |
db914595 | 11074 | temp7 = True; |
4e760a36 RD |
11075 | int i, len=PySequence_Length(obj6); |
11076 | for (i=0; i<len; i++) { | |
11077 | PyObject* item = PySequence_GetItem(obj6, i); | |
11078 | #if wxUSE_UNICODE | |
11079 | PyObject* str = PyObject_Unicode(item); | |
11080 | #else | |
11081 | PyObject* str = PyObject_Str(item); | |
11082 | #endif | |
11083 | arg7->Add(Py2wxString(str)); | |
11084 | Py_DECREF(item); | |
11085 | Py_DECREF(str); | |
11086 | } | |
d14a1e28 RD |
11087 | } |
11088 | } | |
8edf1c75 RD |
11089 | if (obj7) { |
11090 | { | |
4e760a36 | 11091 | arg8 = (int) SWIG_PyObj_AsInt(obj7); |
8edf1c75 RD |
11092 | if (PyErr_Occurred()) SWIG_fail; |
11093 | } | |
11094 | } | |
11095 | if (obj8) { | |
11096 | { | |
4e760a36 | 11097 | arg9 = (long) SWIG_PyObj_AsLong(obj8); |
8edf1c75 RD |
11098 | if (PyErr_Occurred()) SWIG_fail; |
11099 | } | |
11100 | } | |
d14a1e28 | 11101 | if (obj9) { |
4e760a36 RD |
11102 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11103 | if (arg10 == NULL) { | |
d14a1e28 RD |
11104 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; |
11105 | } | |
11106 | } | |
11107 | if (obj10) { | |
11108 | { | |
4e760a36 RD |
11109 | arg11 = wxString_in_helper(obj10); |
11110 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 11111 | temp11 = True; |
d14a1e28 RD |
11112 | } |
11113 | } | |
11114 | { | |
11115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 11116 | 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 |
11117 | |
11118 | wxPyEndAllowThreads(__tstate); | |
11119 | if (PyErr_Occurred()) SWIG_fail; | |
11120 | } | |
4e760a36 | 11121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11122 | { |
11123 | if (temp4) | |
11124 | delete arg4; | |
11125 | } | |
11126 | { | |
db914595 | 11127 | if (temp7) delete arg7; |
d14a1e28 RD |
11128 | } |
11129 | { | |
11130 | if (temp11) | |
4e760a36 | 11131 | delete arg11; |
d14a1e28 RD |
11132 | } |
11133 | return resultobj; | |
11134 | fail: | |
11135 | { | |
11136 | if (temp4) | |
11137 | delete arg4; | |
11138 | } | |
11139 | { | |
db914595 | 11140 | if (temp7) delete arg7; |
d14a1e28 RD |
11141 | } |
11142 | { | |
11143 | if (temp11) | |
4e760a36 | 11144 | delete arg11; |
d14a1e28 RD |
11145 | } |
11146 | return NULL; | |
11147 | } | |
11148 | ||
11149 | ||
11150 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11151 | PyObject *resultobj; | |
11152 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11153 | int arg2 ; | |
11154 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11155 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11156 | char *kwnames[] = { |
11157 | (char *) "self",(char *) "n", NULL | |
11158 | }; | |
11159 | ||
8edf1c75 | 11160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11162 | { |
11163 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11164 | if (PyErr_Occurred()) SWIG_fail; | |
11165 | } | |
d14a1e28 RD |
11166 | { |
11167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11168 | (arg1)->SetSelection(arg2); | |
11169 | ||
11170 | wxPyEndAllowThreads(__tstate); | |
11171 | if (PyErr_Occurred()) SWIG_fail; | |
11172 | } | |
11173 | Py_INCREF(Py_None); resultobj = Py_None; | |
11174 | return resultobj; | |
11175 | fail: | |
11176 | return NULL; | |
11177 | } | |
11178 | ||
11179 | ||
11180 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11181 | PyObject *resultobj; | |
11182 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11183 | int result; | |
11184 | PyObject * obj0 = 0 ; | |
11185 | char *kwnames[] = { | |
11186 | (char *) "self", NULL | |
11187 | }; | |
11188 | ||
11189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
11190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11191 | { | |
11192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11193 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
11194 | ||
11195 | wxPyEndAllowThreads(__tstate); | |
11196 | if (PyErr_Occurred()) SWIG_fail; | |
11197 | } | |
8edf1c75 | 11198 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11199 | return resultobj; |
11200 | fail: | |
11201 | return NULL; | |
11202 | } | |
11203 | ||
11204 | ||
11205 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11206 | PyObject *resultobj; | |
11207 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11208 | wxString result; | |
11209 | PyObject * obj0 = 0 ; | |
11210 | char *kwnames[] = { | |
11211 | (char *) "self", NULL | |
11212 | }; | |
11213 | ||
11214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
11215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11216 | { | |
11217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11218 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
11219 | ||
11220 | wxPyEndAllowThreads(__tstate); | |
11221 | if (PyErr_Occurred()) SWIG_fail; | |
11222 | } | |
11223 | { | |
11224 | #if wxUSE_UNICODE | |
11225 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11226 | #else | |
11227 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11228 | #endif | |
11229 | } | |
11230 | return resultobj; | |
11231 | fail: | |
11232 | return NULL; | |
11233 | } | |
11234 | ||
11235 | ||
11236 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11237 | PyObject *resultobj; | |
11238 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11239 | wxString *arg2 = 0 ; | |
11240 | bool result; | |
423f194a | 11241 | bool temp2 = False ; |
d14a1e28 RD |
11242 | PyObject * obj0 = 0 ; |
11243 | PyObject * obj1 = 0 ; | |
11244 | char *kwnames[] = { | |
11245 | (char *) "self",(char *) "s", NULL | |
11246 | }; | |
11247 | ||
11248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
11249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11250 | { | |
11251 | arg2 = wxString_in_helper(obj1); | |
11252 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11253 | temp2 = True; |
d14a1e28 RD |
11254 | } |
11255 | { | |
11256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11257 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
11258 | ||
11259 | wxPyEndAllowThreads(__tstate); | |
11260 | if (PyErr_Occurred()) SWIG_fail; | |
11261 | } | |
4e760a36 | 11262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11263 | { |
11264 | if (temp2) | |
11265 | delete arg2; | |
11266 | } | |
11267 | return resultobj; | |
11268 | fail: | |
11269 | { | |
11270 | if (temp2) | |
11271 | delete arg2; | |
11272 | } | |
11273 | return NULL; | |
11274 | } | |
11275 | ||
11276 | ||
11277 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11278 | PyObject *resultobj; | |
11279 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11280 | int result; | |
11281 | PyObject * obj0 = 0 ; | |
11282 | char *kwnames[] = { | |
11283 | (char *) "self", NULL | |
11284 | }; | |
11285 | ||
11286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
11287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11288 | { | |
11289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11290 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
11291 | ||
11292 | wxPyEndAllowThreads(__tstate); | |
11293 | if (PyErr_Occurred()) SWIG_fail; | |
11294 | } | |
8edf1c75 | 11295 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11296 | return resultobj; |
11297 | fail: | |
11298 | return NULL; | |
11299 | } | |
11300 | ||
11301 | ||
11302 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11303 | PyObject *resultobj; | |
11304 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11305 | wxString *arg2 = 0 ; | |
11306 | int result; | |
423f194a | 11307 | bool temp2 = False ; |
d14a1e28 RD |
11308 | PyObject * obj0 = 0 ; |
11309 | PyObject * obj1 = 0 ; | |
11310 | char *kwnames[] = { | |
11311 | (char *) "self",(char *) "s", NULL | |
11312 | }; | |
11313 | ||
11314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
11315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11316 | { | |
11317 | arg2 = wxString_in_helper(obj1); | |
11318 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11319 | temp2 = True; |
d14a1e28 RD |
11320 | } |
11321 | { | |
11322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11323 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
11324 | ||
11325 | wxPyEndAllowThreads(__tstate); | |
11326 | if (PyErr_Occurred()) SWIG_fail; | |
11327 | } | |
8edf1c75 | 11328 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11329 | { |
11330 | if (temp2) | |
11331 | delete arg2; | |
11332 | } | |
11333 | return resultobj; | |
11334 | fail: | |
11335 | { | |
11336 | if (temp2) | |
11337 | delete arg2; | |
11338 | } | |
11339 | return NULL; | |
11340 | } | |
11341 | ||
11342 | ||
11343 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11344 | PyObject *resultobj; | |
11345 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11346 | int arg2 ; | |
11347 | wxString result; | |
11348 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11349 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11350 | char *kwnames[] = { |
11351 | (char *) "self",(char *) "n", NULL | |
11352 | }; | |
11353 | ||
8edf1c75 | 11354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11356 | { |
11357 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11358 | if (PyErr_Occurred()) SWIG_fail; | |
11359 | } | |
d14a1e28 RD |
11360 | { |
11361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11362 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
11363 | ||
11364 | wxPyEndAllowThreads(__tstate); | |
11365 | if (PyErr_Occurred()) SWIG_fail; | |
11366 | } | |
11367 | { | |
11368 | #if wxUSE_UNICODE | |
11369 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11370 | #else | |
11371 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11372 | #endif | |
11373 | } | |
11374 | return resultobj; | |
11375 | fail: | |
11376 | return NULL; | |
11377 | } | |
11378 | ||
11379 | ||
11380 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11381 | PyObject *resultobj; | |
11382 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11383 | int arg2 ; | |
11384 | wxString *arg3 = 0 ; | |
423f194a | 11385 | bool temp3 = False ; |
d14a1e28 | 11386 | PyObject * obj0 = 0 ; |
8edf1c75 | 11387 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11388 | PyObject * obj2 = 0 ; |
11389 | char *kwnames[] = { | |
11390 | (char *) "self",(char *) "n",(char *) "label", NULL | |
11391 | }; | |
11392 | ||
8edf1c75 | 11393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11395 | { |
11396 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11397 | if (PyErr_Occurred()) SWIG_fail; | |
11398 | } | |
d14a1e28 RD |
11399 | { |
11400 | arg3 = wxString_in_helper(obj2); | |
11401 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11402 | temp3 = True; |
d14a1e28 RD |
11403 | } |
11404 | { | |
11405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11406 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
11407 | ||
11408 | wxPyEndAllowThreads(__tstate); | |
11409 | if (PyErr_Occurred()) SWIG_fail; | |
11410 | } | |
11411 | Py_INCREF(Py_None); resultobj = Py_None; | |
11412 | { | |
11413 | if (temp3) | |
11414 | delete arg3; | |
11415 | } | |
11416 | return resultobj; | |
11417 | fail: | |
11418 | { | |
11419 | if (temp3) | |
11420 | delete arg3; | |
11421 | } | |
11422 | return NULL; | |
11423 | } | |
11424 | ||
11425 | ||
11426 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11427 | PyObject *resultobj; | |
11428 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11429 | int arg2 ; | |
423f194a | 11430 | bool arg3 = (bool) True ; |
d14a1e28 | 11431 | PyObject * obj0 = 0 ; |
8edf1c75 | 11432 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11433 | PyObject * obj2 = 0 ; |
11434 | char *kwnames[] = { | |
11435 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
11436 | }; | |
11437 | ||
8edf1c75 | 11438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11440 | { |
11441 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11442 | if (PyErr_Occurred()) SWIG_fail; | |
11443 | } | |
d14a1e28 | 11444 | if (obj2) { |
83448d71 | 11445 | { |
8edf1c75 | 11446 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
11447 | if (PyErr_Occurred()) SWIG_fail; |
11448 | } | |
d14a1e28 RD |
11449 | } |
11450 | { | |
11451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11452 | (arg1)->Enable(arg2,arg3); | |
11453 | ||
11454 | wxPyEndAllowThreads(__tstate); | |
11455 | if (PyErr_Occurred()) SWIG_fail; | |
11456 | } | |
11457 | Py_INCREF(Py_None); resultobj = Py_None; | |
11458 | return resultobj; | |
11459 | fail: | |
11460 | return NULL; | |
11461 | } | |
11462 | ||
11463 | ||
11464 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11465 | PyObject *resultobj; | |
11466 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11467 | int arg2 ; | |
423f194a | 11468 | bool arg3 = (bool) True ; |
d14a1e28 | 11469 | PyObject * obj0 = 0 ; |
8edf1c75 | 11470 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11471 | PyObject * obj2 = 0 ; |
11472 | char *kwnames[] = { | |
11473 | (char *) "self",(char *) "n",(char *) "show", NULL | |
11474 | }; | |
11475 | ||
8edf1c75 | 11476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11478 | { |
11479 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11480 | if (PyErr_Occurred()) SWIG_fail; | |
11481 | } | |
d14a1e28 | 11482 | if (obj2) { |
83448d71 | 11483 | { |
8edf1c75 | 11484 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
11485 | if (PyErr_Occurred()) SWIG_fail; |
11486 | } | |
d14a1e28 RD |
11487 | } |
11488 | { | |
11489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11490 | (arg1)->Show(arg2,arg3); | |
11491 | ||
11492 | wxPyEndAllowThreads(__tstate); | |
11493 | if (PyErr_Occurred()) SWIG_fail; | |
11494 | } | |
11495 | Py_INCREF(Py_None); resultobj = Py_None; | |
11496 | return resultobj; | |
11497 | fail: | |
11498 | return NULL; | |
11499 | } | |
11500 | ||
11501 | ||
11502 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11503 | PyObject *resultobj; | |
11504 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11505 | int result; | |
11506 | PyObject * obj0 = 0 ; | |
11507 | char *kwnames[] = { | |
11508 | (char *) "self", NULL | |
11509 | }; | |
11510 | ||
11511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
11512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11513 | { | |
11514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11515 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
11516 | ||
11517 | wxPyEndAllowThreads(__tstate); | |
11518 | if (PyErr_Occurred()) SWIG_fail; | |
11519 | } | |
8edf1c75 | 11520 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11521 | return resultobj; |
11522 | fail: | |
11523 | return NULL; | |
11524 | } | |
11525 | ||
11526 | ||
11527 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11528 | PyObject *resultobj; | |
11529 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11530 | int result; | |
11531 | PyObject * obj0 = 0 ; | |
11532 | char *kwnames[] = { | |
11533 | (char *) "self", NULL | |
11534 | }; | |
11535 | ||
11536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
11537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11538 | { | |
11539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11540 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
11541 | ||
11542 | wxPyEndAllowThreads(__tstate); | |
11543 | if (PyErr_Occurred()) SWIG_fail; | |
11544 | } | |
8edf1c75 | 11545 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11546 | return resultobj; |
11547 | fail: | |
11548 | return NULL; | |
11549 | } | |
11550 | ||
11551 | ||
11552 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11553 | PyObject *resultobj; | |
11554 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11555 | int arg2 ; | |
11556 | int arg3 ; | |
11557 | long arg4 ; | |
11558 | int result; | |
11559 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11560 | PyObject * obj1 = 0 ; |
11561 | PyObject * obj2 = 0 ; | |
11562 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11563 | char *kwnames[] = { |
11564 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
11565 | }; | |
11566 | ||
8edf1c75 | 11567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 11568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11569 | { |
11570 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11571 | if (PyErr_Occurred()) SWIG_fail; | |
11572 | } | |
11573 | { | |
11574 | arg3 = (wxDirection) SWIG_PyObj_AsInt(obj2); | |
11575 | if (PyErr_Occurred()) SWIG_fail; | |
11576 | } | |
11577 | { | |
11578 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
11579 | if (PyErr_Occurred()) SWIG_fail; | |
11580 | } | |
d14a1e28 RD |
11581 | { |
11582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11583 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
11584 | ||
11585 | wxPyEndAllowThreads(__tstate); | |
11586 | if (PyErr_Occurred()) SWIG_fail; | |
11587 | } | |
8edf1c75 | 11588 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11589 | return resultobj; |
11590 | fail: | |
11591 | return NULL; | |
11592 | } | |
11593 | ||
11594 | ||
11595 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
11596 | PyObject *obj; | |
11597 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11598 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
11599 | Py_INCREF(obj); | |
11600 | return Py_BuildValue((char *)""); | |
11601 | } | |
11602 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11603 | PyObject *resultobj; | |
11604 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11605 | int arg2 ; |
d14a1e28 RD |
11606 | wxString *arg3 = 0 ; |
11607 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11608 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11609 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11610 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11611 | long arg6 = (long) 0 ; | |
11612 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11613 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11614 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
11615 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11616 | wxRadioButton *result; | |
423f194a | 11617 | bool temp3 = False ; |
d14a1e28 RD |
11618 | wxPoint temp4 ; |
11619 | wxSize temp5 ; | |
423f194a | 11620 | bool temp8 = False ; |
d14a1e28 | 11621 | PyObject * obj0 = 0 ; |
8edf1c75 | 11622 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11623 | PyObject * obj2 = 0 ; |
11624 | PyObject * obj3 = 0 ; | |
11625 | PyObject * obj4 = 0 ; | |
8edf1c75 | 11626 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11627 | PyObject * obj6 = 0 ; |
11628 | PyObject * obj7 = 0 ; | |
11629 | char *kwnames[] = { | |
11630 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11631 | }; | |
11632 | ||
8edf1c75 | 11633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 11634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11635 | { |
11636 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11637 | if (PyErr_Occurred()) SWIG_fail; | |
11638 | } | |
d14a1e28 RD |
11639 | { |
11640 | arg3 = wxString_in_helper(obj2); | |
11641 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11642 | temp3 = True; |
d14a1e28 RD |
11643 | } |
11644 | if (obj3) { | |
11645 | { | |
11646 | arg4 = &temp4; | |
11647 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11648 | } | |
11649 | } | |
11650 | if (obj4) { | |
11651 | { | |
11652 | arg5 = &temp5; | |
11653 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11654 | } | |
11655 | } | |
8edf1c75 RD |
11656 | if (obj5) { |
11657 | { | |
11658 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
11659 | if (PyErr_Occurred()) SWIG_fail; | |
11660 | } | |
11661 | } | |
d14a1e28 RD |
11662 | if (obj6) { |
11663 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11664 | if (arg7 == NULL) { | |
11665 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11666 | } | |
11667 | } | |
11668 | if (obj7) { | |
11669 | { | |
11670 | arg8 = wxString_in_helper(obj7); | |
11671 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 11672 | temp8 = True; |
d14a1e28 RD |
11673 | } |
11674 | } | |
11675 | { | |
11676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11677 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11678 | ||
11679 | wxPyEndAllowThreads(__tstate); | |
11680 | if (PyErr_Occurred()) SWIG_fail; | |
11681 | } | |
11682 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11683 | { | |
11684 | if (temp3) | |
11685 | delete arg3; | |
11686 | } | |
11687 | { | |
11688 | if (temp8) | |
11689 | delete arg8; | |
11690 | } | |
11691 | return resultobj; | |
11692 | fail: | |
11693 | { | |
11694 | if (temp3) | |
11695 | delete arg3; | |
11696 | } | |
11697 | { | |
11698 | if (temp8) | |
11699 | delete arg8; | |
11700 | } | |
11701 | return NULL; | |
11702 | } | |
11703 | ||
11704 | ||
11705 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11706 | PyObject *resultobj; | |
11707 | wxRadioButton *result; | |
11708 | char *kwnames[] = { | |
11709 | NULL | |
11710 | }; | |
11711 | ||
11712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
11713 | { | |
11714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11715 | result = (wxRadioButton *)new wxRadioButton(); | |
11716 | ||
11717 | wxPyEndAllowThreads(__tstate); | |
11718 | if (PyErr_Occurred()) SWIG_fail; | |
11719 | } | |
11720 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11721 | return resultobj; | |
11722 | fail: | |
11723 | return NULL; | |
11724 | } | |
11725 | ||
11726 | ||
11727 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11728 | PyObject *resultobj; | |
11729 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11730 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11731 | int arg3 ; |
d14a1e28 RD |
11732 | wxString *arg4 = 0 ; |
11733 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11734 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11735 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11736 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11737 | long arg7 = (long) 0 ; | |
11738 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11739 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11740 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
11741 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11742 | bool result; | |
423f194a | 11743 | bool temp4 = False ; |
d14a1e28 RD |
11744 | wxPoint temp5 ; |
11745 | wxSize temp6 ; | |
423f194a | 11746 | bool temp9 = False ; |
d14a1e28 RD |
11747 | PyObject * obj0 = 0 ; |
11748 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11749 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11750 | PyObject * obj3 = 0 ; |
11751 | PyObject * obj4 = 0 ; | |
11752 | PyObject * obj5 = 0 ; | |
8edf1c75 | 11753 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
11754 | PyObject * obj7 = 0 ; |
11755 | PyObject * obj8 = 0 ; | |
11756 | char *kwnames[] = { | |
11757 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11758 | }; | |
11759 | ||
8edf1c75 | 11760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
11761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11762 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
11763 | { |
11764 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11765 | if (PyErr_Occurred()) SWIG_fail; | |
11766 | } | |
d14a1e28 RD |
11767 | { |
11768 | arg4 = wxString_in_helper(obj3); | |
11769 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11770 | temp4 = True; |
d14a1e28 RD |
11771 | } |
11772 | if (obj4) { | |
11773 | { | |
11774 | arg5 = &temp5; | |
11775 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11776 | } | |
11777 | } | |
11778 | if (obj5) { | |
11779 | { | |
11780 | arg6 = &temp6; | |
11781 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11782 | } | |
11783 | } | |
8edf1c75 RD |
11784 | if (obj6) { |
11785 | { | |
11786 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
11787 | if (PyErr_Occurred()) SWIG_fail; | |
11788 | } | |
11789 | } | |
d14a1e28 RD |
11790 | if (obj7) { |
11791 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11792 | if (arg8 == NULL) { | |
11793 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11794 | } | |
11795 | } | |
11796 | if (obj8) { | |
11797 | { | |
11798 | arg9 = wxString_in_helper(obj8); | |
11799 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 11800 | temp9 = True; |
d14a1e28 RD |
11801 | } |
11802 | } | |
11803 | { | |
11804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11805 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11806 | ||
11807 | wxPyEndAllowThreads(__tstate); | |
11808 | if (PyErr_Occurred()) SWIG_fail; | |
11809 | } | |
4e760a36 | 11810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11811 | { |
11812 | if (temp4) | |
11813 | delete arg4; | |
11814 | } | |
11815 | { | |
11816 | if (temp9) | |
11817 | delete arg9; | |
11818 | } | |
11819 | return resultobj; | |
11820 | fail: | |
11821 | { | |
11822 | if (temp4) | |
11823 | delete arg4; | |
11824 | } | |
11825 | { | |
11826 | if (temp9) | |
11827 | delete arg9; | |
11828 | } | |
11829 | return NULL; | |
11830 | } | |
11831 | ||
11832 | ||
11833 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11834 | PyObject *resultobj; | |
11835 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11836 | bool result; | |
11837 | PyObject * obj0 = 0 ; | |
11838 | char *kwnames[] = { | |
11839 | (char *) "self", NULL | |
11840 | }; | |
11841 | ||
11842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
11843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11844 | { | |
11845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11846 | result = (bool)(arg1)->GetValue(); | |
11847 | ||
11848 | wxPyEndAllowThreads(__tstate); | |
11849 | if (PyErr_Occurred()) SWIG_fail; | |
11850 | } | |
4e760a36 | 11851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11852 | return resultobj; |
11853 | fail: | |
11854 | return NULL; | |
11855 | } | |
11856 | ||
11857 | ||
11858 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11859 | PyObject *resultobj; | |
11860 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11861 | bool arg2 ; | |
11862 | PyObject * obj0 = 0 ; | |
11863 | PyObject * obj1 = 0 ; | |
11864 | char *kwnames[] = { | |
11865 | (char *) "self",(char *) "value", NULL | |
11866 | }; | |
11867 | ||
11868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 11870 | { |
8edf1c75 | 11871 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
11872 | if (PyErr_Occurred()) SWIG_fail; |
11873 | } | |
d14a1e28 RD |
11874 | { |
11875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11876 | (arg1)->SetValue(arg2); | |
11877 | ||
11878 | wxPyEndAllowThreads(__tstate); | |
11879 | if (PyErr_Occurred()) SWIG_fail; | |
11880 | } | |
11881 | Py_INCREF(Py_None); resultobj = Py_None; | |
11882 | return resultobj; | |
11883 | fail: | |
11884 | return NULL; | |
11885 | } | |
11886 | ||
11887 | ||
11888 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
11889 | PyObject *obj; | |
11890 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11891 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
11892 | Py_INCREF(obj); | |
11893 | return Py_BuildValue((char *)""); | |
11894 | } | |
8edf1c75 | 11895 | static int _wrap_SliderNameStr_set(PyObject *) { |
d03fd34d RD |
11896 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
11897 | return 1; | |
11898 | } | |
11899 | ||
11900 | ||
11901 | static PyObject *_wrap_SliderNameStr_get() { | |
11902 | PyObject *pyobj; | |
11903 | ||
11904 | { | |
11905 | #if wxUSE_UNICODE | |
11906 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11907 | #else | |
11908 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11909 | #endif | |
11910 | } | |
11911 | return pyobj; | |
11912 | } | |
11913 | ||
11914 | ||
d14a1e28 RD |
11915 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
11916 | PyObject *resultobj; | |
11917 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11918 | int arg2 ; |
d14a1e28 RD |
11919 | int arg3 ; |
11920 | int arg4 ; | |
11921 | int arg5 ; | |
11922 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
11923 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
11924 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
11925 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
11926 | long arg8 = (long) wxSL_HORIZONTAL ; | |
11927 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11928 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11929 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
11930 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11931 | wxSlider *result; | |
11932 | wxPoint temp6 ; | |
11933 | wxSize temp7 ; | |
423f194a | 11934 | bool temp10 = False ; |
d14a1e28 | 11935 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11936 | PyObject * obj1 = 0 ; |
11937 | PyObject * obj2 = 0 ; | |
11938 | PyObject * obj3 = 0 ; | |
11939 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11940 | PyObject * obj5 = 0 ; |
11941 | PyObject * obj6 = 0 ; | |
8edf1c75 | 11942 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
11943 | PyObject * obj8 = 0 ; |
11944 | PyObject * obj9 = 0 ; | |
11945 | char *kwnames[] = { | |
8edf1c75 | 11946 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11947 | }; |
11948 | ||
8edf1c75 | 11949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 11950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11951 | { |
11952 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11953 | if (PyErr_Occurred()) SWIG_fail; | |
11954 | } | |
11955 | { | |
11956 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11957 | if (PyErr_Occurred()) SWIG_fail; | |
11958 | } | |
11959 | { | |
11960 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11961 | if (PyErr_Occurred()) SWIG_fail; | |
11962 | } | |
11963 | { | |
11964 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11965 | if (PyErr_Occurred()) SWIG_fail; | |
11966 | } | |
d14a1e28 RD |
11967 | if (obj5) { |
11968 | { | |
11969 | arg6 = &temp6; | |
11970 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
11971 | } | |
11972 | } | |
11973 | if (obj6) { | |
11974 | { | |
11975 | arg7 = &temp7; | |
11976 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
11977 | } | |
11978 | } | |
8edf1c75 RD |
11979 | if (obj7) { |
11980 | { | |
11981 | arg8 = (long) SWIG_PyObj_AsLong(obj7); | |
11982 | if (PyErr_Occurred()) SWIG_fail; | |
11983 | } | |
11984 | } | |
d14a1e28 RD |
11985 | if (obj8) { |
11986 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11987 | if (arg9 == NULL) { | |
11988 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11989 | } | |
11990 | } | |
11991 | if (obj9) { | |
11992 | { | |
11993 | arg10 = wxString_in_helper(obj9); | |
11994 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 11995 | temp10 = True; |
d14a1e28 RD |
11996 | } |
11997 | } | |
11998 | { | |
11999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12000 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
12001 | ||
12002 | wxPyEndAllowThreads(__tstate); | |
12003 | if (PyErr_Occurred()) SWIG_fail; | |
12004 | } | |
12005 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
12006 | { | |
12007 | if (temp10) | |
12008 | delete arg10; | |
12009 | } | |
12010 | return resultobj; | |
12011 | fail: | |
12012 | { | |
12013 | if (temp10) | |
12014 | delete arg10; | |
12015 | } | |
12016 | return NULL; | |
12017 | } | |
12018 | ||
12019 | ||
12020 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12021 | PyObject *resultobj; | |
12022 | wxSlider *result; | |
12023 | char *kwnames[] = { | |
12024 | NULL | |
12025 | }; | |
12026 | ||
12027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
12028 | { | |
12029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12030 | result = (wxSlider *)new wxSlider(); | |
12031 | ||
12032 | wxPyEndAllowThreads(__tstate); | |
12033 | if (PyErr_Occurred()) SWIG_fail; | |
12034 | } | |
12035 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
12036 | return resultobj; | |
12037 | fail: | |
12038 | return NULL; | |
12039 | } | |
12040 | ||
12041 | ||
12042 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12043 | PyObject *resultobj; | |
12044 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12045 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 12046 | int arg3 ; |
d14a1e28 RD |
12047 | int arg4 ; |
12048 | int arg5 ; | |
12049 | int arg6 ; | |
12050 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12051 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12052 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
12053 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
12054 | long arg9 = (long) wxSL_HORIZONTAL ; | |
12055 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12056 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12057 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
12058 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12059 | bool result; | |
12060 | wxPoint temp7 ; | |
12061 | wxSize temp8 ; | |
423f194a | 12062 | bool temp11 = False ; |
d14a1e28 RD |
12063 | PyObject * obj0 = 0 ; |
12064 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12065 | PyObject * obj2 = 0 ; |
12066 | PyObject * obj3 = 0 ; | |
12067 | PyObject * obj4 = 0 ; | |
12068 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12069 | PyObject * obj6 = 0 ; |
12070 | PyObject * obj7 = 0 ; | |
8edf1c75 | 12071 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
12072 | PyObject * obj9 = 0 ; |
12073 | PyObject * obj10 = 0 ; | |
12074 | char *kwnames[] = { | |
8edf1c75 | 12075 | (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 |
12076 | }; |
12077 | ||
8edf1c75 | 12078 | 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 |
12079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12080 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
12081 | { |
12082 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12083 | if (PyErr_Occurred()) SWIG_fail; | |
12084 | } | |
12085 | { | |
12086 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12087 | if (PyErr_Occurred()) SWIG_fail; | |
12088 | } | |
12089 | { | |
12090 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12091 | if (PyErr_Occurred()) SWIG_fail; | |
12092 | } | |
12093 | { | |
12094 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
12095 | if (PyErr_Occurred()) SWIG_fail; | |
12096 | } | |
d14a1e28 RD |
12097 | if (obj6) { |
12098 | { | |
12099 | arg7 = &temp7; | |
12100 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12101 | } | |
12102 | } | |
12103 | if (obj7) { | |
12104 | { | |
12105 | arg8 = &temp8; | |
12106 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
12107 | } | |
12108 | } | |
8edf1c75 RD |
12109 | if (obj8) { |
12110 | { | |
12111 | arg9 = (long) SWIG_PyObj_AsLong(obj8); | |
12112 | if (PyErr_Occurred()) SWIG_fail; | |
12113 | } | |
12114 | } | |
d14a1e28 RD |
12115 | if (obj9) { |
12116 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12117 | if (arg10 == NULL) { | |
12118 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12119 | } | |
12120 | } | |
12121 | if (obj10) { | |
12122 | { | |
12123 | arg11 = wxString_in_helper(obj10); | |
12124 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 12125 | temp11 = True; |
d14a1e28 RD |
12126 | } |
12127 | } | |
12128 | { | |
12129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12130 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
12131 | ||
12132 | wxPyEndAllowThreads(__tstate); | |
12133 | if (PyErr_Occurred()) SWIG_fail; | |
12134 | } | |
4e760a36 | 12135 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12136 | { |
12137 | if (temp11) | |
12138 | delete arg11; | |
12139 | } | |
12140 | return resultobj; | |
12141 | fail: | |
12142 | { | |
12143 | if (temp11) | |
12144 | delete arg11; | |
12145 | } | |
12146 | return NULL; | |
12147 | } | |
12148 | ||
12149 | ||
12150 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12151 | PyObject *resultobj; | |
12152 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12153 | int result; | |
12154 | PyObject * obj0 = 0 ; | |
12155 | char *kwnames[] = { | |
12156 | (char *) "self", NULL | |
12157 | }; | |
12158 | ||
12159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
12160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12161 | { | |
12162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12163 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
12164 | ||
12165 | wxPyEndAllowThreads(__tstate); | |
12166 | if (PyErr_Occurred()) SWIG_fail; | |
12167 | } | |
8edf1c75 | 12168 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12169 | return resultobj; |
12170 | fail: | |
12171 | return NULL; | |
12172 | } | |
12173 | ||
12174 | ||
12175 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12176 | PyObject *resultobj; | |
12177 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12178 | int arg2 ; | |
12179 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12180 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12181 | char *kwnames[] = { |
12182 | (char *) "self",(char *) "value", NULL | |
12183 | }; | |
12184 | ||
8edf1c75 | 12185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12187 | { |
12188 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12189 | if (PyErr_Occurred()) SWIG_fail; | |
12190 | } | |
d14a1e28 RD |
12191 | { |
12192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12193 | (arg1)->SetValue(arg2); | |
12194 | ||
12195 | wxPyEndAllowThreads(__tstate); | |
12196 | if (PyErr_Occurred()) SWIG_fail; | |
12197 | } | |
12198 | Py_INCREF(Py_None); resultobj = Py_None; | |
12199 | return resultobj; | |
12200 | fail: | |
12201 | return NULL; | |
12202 | } | |
12203 | ||
12204 | ||
12205 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12206 | PyObject *resultobj; | |
12207 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12208 | int arg2 ; | |
12209 | int arg3 ; | |
12210 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12211 | PyObject * obj1 = 0 ; |
12212 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12213 | char *kwnames[] = { |
12214 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
12215 | }; | |
12216 | ||
8edf1c75 | 12217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12219 | { |
12220 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12221 | if (PyErr_Occurred()) SWIG_fail; | |
12222 | } | |
12223 | { | |
12224 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12225 | if (PyErr_Occurred()) SWIG_fail; | |
12226 | } | |
d14a1e28 RD |
12227 | { |
12228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12229 | (arg1)->SetRange(arg2,arg3); | |
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_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12242 | PyObject *resultobj; | |
12243 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12244 | int result; | |
12245 | PyObject * obj0 = 0 ; | |
12246 | char *kwnames[] = { | |
12247 | (char *) "self", NULL | |
12248 | }; | |
12249 | ||
12250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
12251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12252 | { | |
12253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12254 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
12255 | ||
12256 | wxPyEndAllowThreads(__tstate); | |
12257 | if (PyErr_Occurred()) SWIG_fail; | |
12258 | } | |
8edf1c75 | 12259 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12260 | return resultobj; |
12261 | fail: | |
12262 | return NULL; | |
12263 | } | |
12264 | ||
12265 | ||
12266 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12267 | PyObject *resultobj; | |
12268 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12269 | int result; | |
12270 | PyObject * obj0 = 0 ; | |
12271 | char *kwnames[] = { | |
12272 | (char *) "self", NULL | |
12273 | }; | |
12274 | ||
12275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
12276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12277 | { | |
12278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12279 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
12280 | ||
12281 | wxPyEndAllowThreads(__tstate); | |
12282 | if (PyErr_Occurred()) SWIG_fail; | |
12283 | } | |
8edf1c75 | 12284 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12285 | return resultobj; |
12286 | fail: | |
12287 | return NULL; | |
12288 | } | |
12289 | ||
12290 | ||
12291 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12292 | PyObject *resultobj; | |
12293 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12294 | int arg2 ; | |
12295 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12296 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12297 | char *kwnames[] = { |
12298 | (char *) "self",(char *) "minValue", NULL | |
12299 | }; | |
12300 | ||
8edf1c75 | 12301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12303 | { |
12304 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12305 | if (PyErr_Occurred()) SWIG_fail; | |
12306 | } | |
d14a1e28 RD |
12307 | { |
12308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12309 | (arg1)->SetMin(arg2); | |
12310 | ||
12311 | wxPyEndAllowThreads(__tstate); | |
12312 | if (PyErr_Occurred()) SWIG_fail; | |
12313 | } | |
12314 | Py_INCREF(Py_None); resultobj = Py_None; | |
12315 | return resultobj; | |
12316 | fail: | |
12317 | return NULL; | |
12318 | } | |
12319 | ||
12320 | ||
12321 | static PyObject *_wrap_Slider_SetMax(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 *) "maxValue", NULL | |
12329 | }; | |
12330 | ||
8edf1c75 | 12331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",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)->SetMax(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_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12352 | PyObject *resultobj; | |
12353 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12354 | int arg2 ; | |
12355 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12356 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12357 | char *kwnames[] = { |
12358 | (char *) "self",(char *) "lineSize", NULL | |
12359 | }; | |
12360 | ||
8edf1c75 | 12361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12363 | { |
12364 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12365 | if (PyErr_Occurred()) SWIG_fail; | |
12366 | } | |
d14a1e28 RD |
12367 | { |
12368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12369 | (arg1)->SetLineSize(arg2); | |
12370 | ||
12371 | wxPyEndAllowThreads(__tstate); | |
12372 | if (PyErr_Occurred()) SWIG_fail; | |
12373 | } | |
12374 | Py_INCREF(Py_None); resultobj = Py_None; | |
12375 | return resultobj; | |
12376 | fail: | |
12377 | return NULL; | |
12378 | } | |
12379 | ||
12380 | ||
12381 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12382 | PyObject *resultobj; | |
12383 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12384 | int arg2 ; | |
12385 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12386 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12387 | char *kwnames[] = { |
12388 | (char *) "self",(char *) "pageSize", NULL | |
12389 | }; | |
12390 | ||
8edf1c75 | 12391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12393 | { |
12394 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12395 | if (PyErr_Occurred()) SWIG_fail; | |
12396 | } | |
d14a1e28 RD |
12397 | { |
12398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12399 | (arg1)->SetPageSize(arg2); | |
12400 | ||
12401 | wxPyEndAllowThreads(__tstate); | |
12402 | if (PyErr_Occurred()) SWIG_fail; | |
12403 | } | |
12404 | Py_INCREF(Py_None); resultobj = Py_None; | |
12405 | return resultobj; | |
12406 | fail: | |
12407 | return NULL; | |
12408 | } | |
12409 | ||
12410 | ||
12411 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12412 | PyObject *resultobj; | |
12413 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12414 | int result; | |
12415 | PyObject * obj0 = 0 ; | |
12416 | char *kwnames[] = { | |
12417 | (char *) "self", NULL | |
12418 | }; | |
12419 | ||
12420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
12421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12422 | { | |
12423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12424 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
12425 | ||
12426 | wxPyEndAllowThreads(__tstate); | |
12427 | if (PyErr_Occurred()) SWIG_fail; | |
12428 | } | |
8edf1c75 | 12429 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12430 | return resultobj; |
12431 | fail: | |
12432 | return NULL; | |
12433 | } | |
12434 | ||
12435 | ||
12436 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12437 | PyObject *resultobj; | |
12438 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12439 | int result; | |
12440 | PyObject * obj0 = 0 ; | |
12441 | char *kwnames[] = { | |
12442 | (char *) "self", NULL | |
12443 | }; | |
12444 | ||
12445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
12446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12447 | { | |
12448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12449 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
12450 | ||
12451 | wxPyEndAllowThreads(__tstate); | |
12452 | if (PyErr_Occurred()) SWIG_fail; | |
12453 | } | |
8edf1c75 | 12454 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12455 | return resultobj; |
12456 | fail: | |
12457 | return NULL; | |
12458 | } | |
12459 | ||
12460 | ||
12461 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12462 | PyObject *resultobj; | |
12463 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12464 | int arg2 ; | |
12465 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12466 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12467 | char *kwnames[] = { |
12468 | (char *) "self",(char *) "lenPixels", NULL | |
12469 | }; | |
12470 | ||
8edf1c75 | 12471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12473 | { |
12474 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12475 | if (PyErr_Occurred()) SWIG_fail; | |
12476 | } | |
d14a1e28 RD |
12477 | { |
12478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12479 | (arg1)->SetThumbLength(arg2); | |
12480 | ||
12481 | wxPyEndAllowThreads(__tstate); | |
12482 | if (PyErr_Occurred()) SWIG_fail; | |
12483 | } | |
12484 | Py_INCREF(Py_None); resultobj = Py_None; | |
12485 | return resultobj; | |
12486 | fail: | |
12487 | return NULL; | |
12488 | } | |
12489 | ||
12490 | ||
12491 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12492 | PyObject *resultobj; | |
12493 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12494 | int result; | |
12495 | PyObject * obj0 = 0 ; | |
12496 | char *kwnames[] = { | |
12497 | (char *) "self", NULL | |
12498 | }; | |
12499 | ||
12500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
12501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12502 | { | |
12503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12504 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
12505 | ||
12506 | wxPyEndAllowThreads(__tstate); | |
12507 | if (PyErr_Occurred()) SWIG_fail; | |
12508 | } | |
8edf1c75 | 12509 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12510 | return resultobj; |
12511 | fail: | |
12512 | return NULL; | |
12513 | } | |
12514 | ||
12515 | ||
12516 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12517 | PyObject *resultobj; | |
12518 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12519 | int arg2 ; | |
8edf1c75 | 12520 | int arg3 = (int) 1 ; |
d14a1e28 | 12521 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12522 | PyObject * obj1 = 0 ; |
12523 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12524 | char *kwnames[] = { |
12525 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
12526 | }; | |
12527 | ||
8edf1c75 | 12528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12530 | { |
12531 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12532 | if (PyErr_Occurred()) SWIG_fail; | |
12533 | } | |
12534 | if (obj2) { | |
12535 | { | |
12536 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12537 | if (PyErr_Occurred()) SWIG_fail; | |
12538 | } | |
12539 | } | |
d14a1e28 RD |
12540 | { |
12541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12542 | (arg1)->SetTickFreq(arg2,arg3); | |
12543 | ||
12544 | wxPyEndAllowThreads(__tstate); | |
12545 | if (PyErr_Occurred()) SWIG_fail; | |
12546 | } | |
12547 | Py_INCREF(Py_None); resultobj = Py_None; | |
12548 | return resultobj; | |
12549 | fail: | |
12550 | return NULL; | |
12551 | } | |
12552 | ||
12553 | ||
12554 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12555 | PyObject *resultobj; | |
12556 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12557 | int result; | |
12558 | PyObject * obj0 = 0 ; | |
12559 | char *kwnames[] = { | |
12560 | (char *) "self", NULL | |
12561 | }; | |
12562 | ||
12563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
12564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12565 | { | |
12566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12567 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
12568 | ||
12569 | wxPyEndAllowThreads(__tstate); | |
12570 | if (PyErr_Occurred()) SWIG_fail; | |
12571 | } | |
8edf1c75 | 12572 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12573 | return resultobj; |
12574 | fail: | |
12575 | return NULL; | |
12576 | } | |
12577 | ||
12578 | ||
12579 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12580 | PyObject *resultobj; | |
12581 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12582 | PyObject * obj0 = 0 ; | |
12583 | char *kwnames[] = { | |
12584 | (char *) "self", NULL | |
12585 | }; | |
12586 | ||
12587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
12588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12589 | { | |
12590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12591 | (arg1)->ClearTicks(); | |
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 *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12604 | PyObject *resultobj; | |
12605 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12606 | int arg2 ; | |
12607 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12608 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12609 | char *kwnames[] = { |
12610 | (char *) "self",(char *) "tickPos", NULL | |
12611 | }; | |
12612 | ||
8edf1c75 | 12613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12615 | { |
12616 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12617 | if (PyErr_Occurred()) SWIG_fail; | |
12618 | } | |
d14a1e28 RD |
12619 | { |
12620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12621 | (arg1)->SetTick(arg2); | |
12622 | ||
12623 | wxPyEndAllowThreads(__tstate); | |
12624 | if (PyErr_Occurred()) SWIG_fail; | |
12625 | } | |
12626 | Py_INCREF(Py_None); resultobj = Py_None; | |
12627 | return resultobj; | |
12628 | fail: | |
12629 | return NULL; | |
12630 | } | |
12631 | ||
12632 | ||
12633 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12634 | PyObject *resultobj; | |
12635 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12636 | PyObject * obj0 = 0 ; | |
12637 | char *kwnames[] = { | |
12638 | (char *) "self", NULL | |
12639 | }; | |
12640 | ||
12641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
12642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12643 | { | |
12644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12645 | (arg1)->ClearSel(); | |
12646 | ||
12647 | wxPyEndAllowThreads(__tstate); | |
12648 | if (PyErr_Occurred()) SWIG_fail; | |
12649 | } | |
12650 | Py_INCREF(Py_None); resultobj = Py_None; | |
12651 | return resultobj; | |
12652 | fail: | |
12653 | return NULL; | |
12654 | } | |
12655 | ||
12656 | ||
12657 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12658 | PyObject *resultobj; | |
12659 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12660 | int result; | |
12661 | PyObject * obj0 = 0 ; | |
12662 | char *kwnames[] = { | |
12663 | (char *) "self", NULL | |
12664 | }; | |
12665 | ||
12666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
12667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12668 | { | |
12669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12670 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
12671 | ||
12672 | wxPyEndAllowThreads(__tstate); | |
12673 | if (PyErr_Occurred()) SWIG_fail; | |
12674 | } | |
8edf1c75 | 12675 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12676 | return resultobj; |
12677 | fail: | |
12678 | return NULL; | |
12679 | } | |
12680 | ||
12681 | ||
12682 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12683 | PyObject *resultobj; | |
12684 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12685 | int result; | |
12686 | PyObject * obj0 = 0 ; | |
12687 | char *kwnames[] = { | |
12688 | (char *) "self", NULL | |
12689 | }; | |
12690 | ||
12691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
12692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12693 | { | |
12694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12695 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
12696 | ||
12697 | wxPyEndAllowThreads(__tstate); | |
12698 | if (PyErr_Occurred()) SWIG_fail; | |
12699 | } | |
8edf1c75 | 12700 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12701 | return resultobj; |
12702 | fail: | |
12703 | return NULL; | |
12704 | } | |
12705 | ||
12706 | ||
12707 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12708 | PyObject *resultobj; | |
12709 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12710 | int arg2 ; | |
12711 | int arg3 ; | |
12712 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12713 | PyObject * obj1 = 0 ; |
12714 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12715 | char *kwnames[] = { |
12716 | (char *) "self",(char *) "min",(char *) "max", NULL | |
12717 | }; | |
12718 | ||
8edf1c75 | 12719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12721 | { |
12722 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12723 | if (PyErr_Occurred()) SWIG_fail; | |
12724 | } | |
12725 | { | |
12726 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12727 | if (PyErr_Occurred()) SWIG_fail; | |
12728 | } | |
d14a1e28 RD |
12729 | { |
12730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12731 | (arg1)->SetSelection(arg2,arg3); | |
12732 | ||
12733 | wxPyEndAllowThreads(__tstate); | |
12734 | if (PyErr_Occurred()) SWIG_fail; | |
12735 | } | |
12736 | Py_INCREF(Py_None); resultobj = Py_None; | |
12737 | return resultobj; | |
12738 | fail: | |
12739 | return NULL; | |
12740 | } | |
12741 | ||
12742 | ||
12743 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
12744 | PyObject *obj; | |
12745 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12746 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
12747 | Py_INCREF(obj); | |
12748 | return Py_BuildValue((char *)""); | |
12749 | } | |
8edf1c75 | 12750 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
d03fd34d RD |
12751 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
12752 | return 1; | |
12753 | } | |
12754 | ||
12755 | ||
12756 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
12757 | PyObject *pyobj; | |
12758 | ||
12759 | { | |
12760 | #if wxUSE_UNICODE | |
12761 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12762 | #else | |
12763 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12764 | #endif | |
12765 | } | |
12766 | return pyobj; | |
12767 | } | |
12768 | ||
12769 | ||
d14a1e28 RD |
12770 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
12771 | PyObject *resultobj; | |
12772 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 12773 | int arg2 ; |
d14a1e28 RD |
12774 | wxString *arg3 = 0 ; |
12775 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12776 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12777 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12778 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12779 | long arg6 = (long) 0 ; | |
12780 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12781 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12782 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
12783 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12784 | wxToggleButton *result; | |
423f194a | 12785 | bool temp3 = False ; |
d14a1e28 RD |
12786 | wxPoint temp4 ; |
12787 | wxSize temp5 ; | |
423f194a | 12788 | bool temp8 = False ; |
d14a1e28 | 12789 | PyObject * obj0 = 0 ; |
8edf1c75 | 12790 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12791 | PyObject * obj2 = 0 ; |
12792 | PyObject * obj3 = 0 ; | |
12793 | PyObject * obj4 = 0 ; | |
8edf1c75 | 12794 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12795 | PyObject * obj6 = 0 ; |
12796 | PyObject * obj7 = 0 ; | |
12797 | char *kwnames[] = { | |
12798 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12799 | }; | |
12800 | ||
8edf1c75 | 12801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 12802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12803 | { |
12804 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12805 | if (PyErr_Occurred()) SWIG_fail; | |
12806 | } | |
d14a1e28 RD |
12807 | { |
12808 | arg3 = wxString_in_helper(obj2); | |
12809 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12810 | temp3 = True; |
d14a1e28 RD |
12811 | } |
12812 | if (obj3) { | |
12813 | { | |
12814 | arg4 = &temp4; | |
12815 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12816 | } | |
12817 | } | |
12818 | if (obj4) { | |
12819 | { | |
12820 | arg5 = &temp5; | |
12821 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12822 | } | |
12823 | } | |
8edf1c75 RD |
12824 | if (obj5) { |
12825 | { | |
12826 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
12827 | if (PyErr_Occurred()) SWIG_fail; | |
12828 | } | |
12829 | } | |
d14a1e28 RD |
12830 | if (obj6) { |
12831 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12832 | if (arg7 == NULL) { | |
12833 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12834 | } | |
12835 | } | |
12836 | if (obj7) { | |
12837 | { | |
12838 | arg8 = wxString_in_helper(obj7); | |
12839 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 12840 | temp8 = True; |
d14a1e28 RD |
12841 | } |
12842 | } | |
12843 | { | |
12844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12845 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12846 | ||
12847 | wxPyEndAllowThreads(__tstate); | |
12848 | if (PyErr_Occurred()) SWIG_fail; | |
12849 | } | |
12850 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12851 | { | |
12852 | if (temp3) | |
12853 | delete arg3; | |
12854 | } | |
12855 | { | |
12856 | if (temp8) | |
12857 | delete arg8; | |
12858 | } | |
12859 | return resultobj; | |
12860 | fail: | |
12861 | { | |
12862 | if (temp3) | |
12863 | delete arg3; | |
12864 | } | |
12865 | { | |
12866 | if (temp8) | |
12867 | delete arg8; | |
12868 | } | |
12869 | return NULL; | |
12870 | } | |
12871 | ||
12872 | ||
12873 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12874 | PyObject *resultobj; | |
12875 | wxToggleButton *result; | |
12876 | char *kwnames[] = { | |
12877 | NULL | |
12878 | }; | |
12879 | ||
12880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
12881 | { | |
12882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12883 | result = (wxToggleButton *)new wxToggleButton(); | |
12884 | ||
12885 | wxPyEndAllowThreads(__tstate); | |
12886 | if (PyErr_Occurred()) SWIG_fail; | |
12887 | } | |
12888 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12889 | return resultobj; | |
12890 | fail: | |
12891 | return NULL; | |
12892 | } | |
12893 | ||
12894 | ||
12895 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12896 | PyObject *resultobj; | |
12897 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
12898 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 12899 | int arg3 ; |
d14a1e28 RD |
12900 | wxString *arg4 = 0 ; |
12901 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
12902 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12903 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12904 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12905 | long arg7 = (long) 0 ; | |
12906 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12907 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12908 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
12909 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12910 | bool result; | |
423f194a | 12911 | bool temp4 = False ; |
d14a1e28 RD |
12912 | wxPoint temp5 ; |
12913 | wxSize temp6 ; | |
423f194a | 12914 | bool temp9 = False ; |
d14a1e28 RD |
12915 | PyObject * obj0 = 0 ; |
12916 | PyObject * obj1 = 0 ; | |
8edf1c75 | 12917 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12918 | PyObject * obj3 = 0 ; |
12919 | PyObject * obj4 = 0 ; | |
12920 | PyObject * obj5 = 0 ; | |
8edf1c75 | 12921 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
12922 | PyObject * obj7 = 0 ; |
12923 | PyObject * obj8 = 0 ; | |
12924 | char *kwnames[] = { | |
12925 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12926 | }; | |
12927 | ||
8edf1c75 | 12928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
12929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12930 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
12931 | { |
12932 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12933 | if (PyErr_Occurred()) SWIG_fail; | |
12934 | } | |
d14a1e28 RD |
12935 | { |
12936 | arg4 = wxString_in_helper(obj3); | |
12937 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 12938 | temp4 = True; |
d14a1e28 RD |
12939 | } |
12940 | if (obj4) { | |
12941 | { | |
12942 | arg5 = &temp5; | |
12943 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12944 | } | |
12945 | } | |
12946 | if (obj5) { | |
12947 | { | |
12948 | arg6 = &temp6; | |
12949 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12950 | } | |
12951 | } | |
8edf1c75 RD |
12952 | if (obj6) { |
12953 | { | |
12954 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
12955 | if (PyErr_Occurred()) SWIG_fail; | |
12956 | } | |
12957 | } | |
d14a1e28 RD |
12958 | if (obj7) { |
12959 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12960 | if (arg8 == NULL) { | |
12961 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12962 | } | |
12963 | } | |
12964 | if (obj8) { | |
12965 | { | |
12966 | arg9 = wxString_in_helper(obj8); | |
12967 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 12968 | temp9 = True; |
d14a1e28 RD |
12969 | } |
12970 | } | |
12971 | { | |
12972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12973 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
12974 | ||
12975 | wxPyEndAllowThreads(__tstate); | |
12976 | if (PyErr_Occurred()) SWIG_fail; | |
12977 | } | |
4e760a36 | 12978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12979 | { |
12980 | if (temp4) | |
12981 | delete arg4; | |
12982 | } | |
12983 | { | |
12984 | if (temp9) | |
12985 | delete arg9; | |
12986 | } | |
12987 | return resultobj; | |
12988 | fail: | |
12989 | { | |
12990 | if (temp4) | |
12991 | delete arg4; | |
12992 | } | |
12993 | { | |
12994 | if (temp9) | |
12995 | delete arg9; | |
12996 | } | |
12997 | return NULL; | |
12998 | } | |
12999 | ||
13000 | ||
13001 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13002 | PyObject *resultobj; | |
13003 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13004 | bool arg2 ; | |
13005 | PyObject * obj0 = 0 ; | |
13006 | PyObject * obj1 = 0 ; | |
13007 | char *kwnames[] = { | |
13008 | (char *) "self",(char *) "value", NULL | |
13009 | }; | |
13010 | ||
13011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13013 | { |
8edf1c75 | 13014 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
13015 | if (PyErr_Occurred()) SWIG_fail; |
13016 | } | |
d14a1e28 RD |
13017 | { |
13018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13019 | (arg1)->SetValue(arg2); | |
13020 | ||
13021 | wxPyEndAllowThreads(__tstate); | |
13022 | if (PyErr_Occurred()) SWIG_fail; | |
13023 | } | |
13024 | Py_INCREF(Py_None); resultobj = Py_None; | |
13025 | return resultobj; | |
13026 | fail: | |
13027 | return NULL; | |
13028 | } | |
13029 | ||
13030 | ||
13031 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13032 | PyObject *resultobj; | |
13033 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13034 | bool result; | |
13035 | PyObject * obj0 = 0 ; | |
13036 | char *kwnames[] = { | |
13037 | (char *) "self", NULL | |
13038 | }; | |
13039 | ||
13040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
13041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13042 | { | |
13043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13044 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
13045 | ||
13046 | wxPyEndAllowThreads(__tstate); | |
13047 | if (PyErr_Occurred()) SWIG_fail; | |
13048 | } | |
4e760a36 | 13049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13050 | return resultobj; |
13051 | fail: | |
13052 | return NULL; | |
13053 | } | |
13054 | ||
13055 | ||
13056 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13057 | PyObject *resultobj; | |
13058 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13059 | wxString *arg2 = 0 ; | |
423f194a | 13060 | bool temp2 = False ; |
d14a1e28 RD |
13061 | PyObject * obj0 = 0 ; |
13062 | PyObject * obj1 = 0 ; | |
13063 | char *kwnames[] = { | |
13064 | (char *) "self",(char *) "label", NULL | |
13065 | }; | |
13066 | ||
13067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
13068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13069 | { | |
13070 | arg2 = wxString_in_helper(obj1); | |
13071 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13072 | temp2 = True; |
d14a1e28 RD |
13073 | } |
13074 | { | |
13075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13076 | (arg1)->SetLabel((wxString const &)*arg2); | |
13077 | ||
13078 | wxPyEndAllowThreads(__tstate); | |
13079 | if (PyErr_Occurred()) SWIG_fail; | |
13080 | } | |
13081 | Py_INCREF(Py_None); resultobj = Py_None; | |
13082 | { | |
13083 | if (temp2) | |
13084 | delete arg2; | |
13085 | } | |
13086 | return resultobj; | |
13087 | fail: | |
13088 | { | |
13089 | if (temp2) | |
13090 | delete arg2; | |
13091 | } | |
13092 | return NULL; | |
13093 | } | |
13094 | ||
13095 | ||
13096 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
13097 | PyObject *obj; | |
13098 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13099 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
13100 | Py_INCREF(obj); | |
13101 | return Py_BuildValue((char *)""); | |
13102 | } | |
8edf1c75 | 13103 | static int _wrap_NOTEBOOK_NAME_set(PyObject *) { |
d03fd34d RD |
13104 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); |
13105 | return 1; | |
13106 | } | |
13107 | ||
13108 | ||
13109 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
13110 | PyObject *pyobj; | |
13111 | ||
13112 | { | |
13113 | #if wxUSE_UNICODE | |
13114 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13115 | #else | |
13116 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13117 | #endif | |
13118 | } | |
13119 | return pyobj; | |
13120 | } | |
13121 | ||
13122 | ||
d14a1e28 RD |
13123 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
13124 | PyObject *resultobj; | |
13125 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13126 | size_t result; | |
13127 | PyObject * obj0 = 0 ; | |
13128 | char *kwnames[] = { | |
13129 | (char *) "self", NULL | |
13130 | }; | |
13131 | ||
13132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
13133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13134 | { | |
13135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13136 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
13137 | ||
13138 | wxPyEndAllowThreads(__tstate); | |
13139 | if (PyErr_Occurred()) SWIG_fail; | |
13140 | } | |
8edf1c75 | 13141 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
13142 | return resultobj; |
13143 | fail: | |
13144 | return NULL; | |
13145 | } | |
13146 | ||
13147 | ||
13148 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13149 | PyObject *resultobj; | |
13150 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13151 | size_t arg2 ; | |
13152 | wxWindow *result; | |
13153 | PyObject * obj0 = 0 ; | |
13154 | PyObject * obj1 = 0 ; | |
13155 | char *kwnames[] = { | |
13156 | (char *) "self",(char *) "n", NULL | |
13157 | }; | |
13158 | ||
13159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
13160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13161 | { |
8edf1c75 | 13162 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13163 | if (PyErr_Occurred()) SWIG_fail; |
13164 | } | |
d14a1e28 RD |
13165 | { |
13166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13167 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
13168 | ||
13169 | wxPyEndAllowThreads(__tstate); | |
13170 | if (PyErr_Occurred()) SWIG_fail; | |
13171 | } | |
13172 | { | |
13173 | resultobj = wxPyMake_wxObject(result); | |
13174 | } | |
13175 | return resultobj; | |
13176 | fail: | |
13177 | return NULL; | |
13178 | } | |
13179 | ||
13180 | ||
13181 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13182 | PyObject *resultobj; | |
13183 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13184 | int result; | |
13185 | PyObject * obj0 = 0 ; | |
13186 | char *kwnames[] = { | |
13187 | (char *) "self", NULL | |
13188 | }; | |
13189 | ||
13190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
13191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13192 | { | |
13193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13194 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
13195 | ||
13196 | wxPyEndAllowThreads(__tstate); | |
13197 | if (PyErr_Occurred()) SWIG_fail; | |
13198 | } | |
8edf1c75 | 13199 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13200 | return resultobj; |
13201 | fail: | |
13202 | return NULL; | |
13203 | } | |
13204 | ||
13205 | ||
13206 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13207 | PyObject *resultobj; | |
13208 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13209 | size_t arg2 ; | |
13210 | wxString *arg3 = 0 ; | |
13211 | bool result; | |
423f194a | 13212 | bool temp3 = False ; |
d14a1e28 RD |
13213 | PyObject * obj0 = 0 ; |
13214 | PyObject * obj1 = 0 ; | |
13215 | PyObject * obj2 = 0 ; | |
13216 | char *kwnames[] = { | |
13217 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
13218 | }; | |
13219 | ||
13220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13222 | { |
8edf1c75 | 13223 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13224 | if (PyErr_Occurred()) SWIG_fail; |
13225 | } | |
d14a1e28 RD |
13226 | { |
13227 | arg3 = wxString_in_helper(obj2); | |
13228 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13229 | temp3 = True; |
d14a1e28 RD |
13230 | } |
13231 | { | |
13232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13233 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
13234 | ||
13235 | wxPyEndAllowThreads(__tstate); | |
13236 | if (PyErr_Occurred()) SWIG_fail; | |
13237 | } | |
4e760a36 | 13238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13239 | { |
13240 | if (temp3) | |
13241 | delete arg3; | |
13242 | } | |
13243 | return resultobj; | |
13244 | fail: | |
13245 | { | |
13246 | if (temp3) | |
13247 | delete arg3; | |
13248 | } | |
13249 | return NULL; | |
13250 | } | |
13251 | ||
13252 | ||
13253 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13254 | PyObject *resultobj; | |
13255 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13256 | size_t arg2 ; | |
13257 | wxString result; | |
13258 | PyObject * obj0 = 0 ; | |
13259 | PyObject * obj1 = 0 ; | |
13260 | char *kwnames[] = { | |
13261 | (char *) "self",(char *) "n", NULL | |
13262 | }; | |
13263 | ||
13264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
13265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13266 | { |
8edf1c75 | 13267 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13268 | if (PyErr_Occurred()) SWIG_fail; |
13269 | } | |
d14a1e28 RD |
13270 | { |
13271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13272 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
13273 | ||
13274 | wxPyEndAllowThreads(__tstate); | |
13275 | if (PyErr_Occurred()) SWIG_fail; | |
13276 | } | |
13277 | { | |
13278 | #if wxUSE_UNICODE | |
13279 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13280 | #else | |
13281 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13282 | #endif | |
13283 | } | |
13284 | return resultobj; | |
13285 | fail: | |
13286 | return NULL; | |
13287 | } | |
13288 | ||
13289 | ||
13290 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13291 | PyObject *resultobj; | |
13292 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13293 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13294 | PyObject * obj0 = 0 ; | |
13295 | PyObject * obj1 = 0 ; | |
13296 | char *kwnames[] = { | |
13297 | (char *) "self",(char *) "imageList", NULL | |
13298 | }; | |
13299 | ||
13300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
13301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13302 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13303 | { | |
13304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13305 | (arg1)->SetImageList(arg2); | |
13306 | ||
13307 | wxPyEndAllowThreads(__tstate); | |
13308 | if (PyErr_Occurred()) SWIG_fail; | |
13309 | } | |
13310 | Py_INCREF(Py_None); resultobj = Py_None; | |
13311 | return resultobj; | |
13312 | fail: | |
13313 | return NULL; | |
13314 | } | |
13315 | ||
13316 | ||
13317 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13318 | PyObject *resultobj; | |
13319 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13320 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13321 | PyObject * obj0 = 0 ; | |
13322 | PyObject * obj1 = 0 ; | |
13323 | char *kwnames[] = { | |
13324 | (char *) "self",(char *) "imageList", NULL | |
13325 | }; | |
13326 | ||
13327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
13328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 13329 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
13330 | { |
13331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13332 | (arg1)->AssignImageList(arg2); | |
13333 | ||
13334 | wxPyEndAllowThreads(__tstate); | |
13335 | if (PyErr_Occurred()) SWIG_fail; | |
13336 | } | |
13337 | Py_INCREF(Py_None); resultobj = Py_None; | |
13338 | return resultobj; | |
13339 | fail: | |
13340 | return NULL; | |
13341 | } | |
13342 | ||
13343 | ||
13344 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13345 | PyObject *resultobj; | |
13346 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13347 | wxImageList *result; | |
13348 | PyObject * obj0 = 0 ; | |
13349 | char *kwnames[] = { | |
13350 | (char *) "self", NULL | |
13351 | }; | |
13352 | ||
13353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
13354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13355 | { | |
13356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13357 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
13358 | ||
13359 | wxPyEndAllowThreads(__tstate); | |
13360 | if (PyErr_Occurred()) SWIG_fail; | |
13361 | } | |
13362 | { | |
13363 | resultobj = wxPyMake_wxObject(result); | |
13364 | } | |
13365 | return resultobj; | |
13366 | fail: | |
13367 | return NULL; | |
13368 | } | |
13369 | ||
13370 | ||
13371 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13372 | PyObject *resultobj; | |
13373 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13374 | size_t arg2 ; | |
13375 | int result; | |
13376 | PyObject * obj0 = 0 ; | |
13377 | PyObject * obj1 = 0 ; | |
13378 | char *kwnames[] = { | |
13379 | (char *) "self",(char *) "n", NULL | |
13380 | }; | |
13381 | ||
13382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
13383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13384 | { |
8edf1c75 | 13385 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13386 | if (PyErr_Occurred()) SWIG_fail; |
13387 | } | |
d14a1e28 RD |
13388 | { |
13389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13390 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
13391 | ||
13392 | wxPyEndAllowThreads(__tstate); | |
13393 | if (PyErr_Occurred()) SWIG_fail; | |
13394 | } | |
8edf1c75 | 13395 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13396 | return resultobj; |
13397 | fail: | |
13398 | return NULL; | |
13399 | } | |
13400 | ||
13401 | ||
13402 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13403 | PyObject *resultobj; | |
13404 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13405 | size_t arg2 ; | |
13406 | int arg3 ; | |
13407 | bool result; | |
13408 | PyObject * obj0 = 0 ; | |
13409 | PyObject * obj1 = 0 ; | |
8edf1c75 | 13410 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13411 | char *kwnames[] = { |
13412 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
13413 | }; | |
13414 | ||
8edf1c75 | 13415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 13417 | { |
8edf1c75 RD |
13418 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
13419 | if (PyErr_Occurred()) SWIG_fail; | |
13420 | } | |
13421 | { | |
13422 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
13423 | if (PyErr_Occurred()) SWIG_fail; |
13424 | } | |
d14a1e28 RD |
13425 | { |
13426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13427 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
13428 | ||
13429 | wxPyEndAllowThreads(__tstate); | |
13430 | if (PyErr_Occurred()) SWIG_fail; | |
13431 | } | |
4e760a36 | 13432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13433 | return resultobj; |
13434 | fail: | |
13435 | return NULL; | |
13436 | } | |
13437 | ||
13438 | ||
13439 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13440 | PyObject *resultobj; | |
13441 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13442 | wxSize *arg2 = 0 ; | |
13443 | wxSize temp2 ; | |
13444 | PyObject * obj0 = 0 ; | |
13445 | PyObject * obj1 = 0 ; | |
13446 | char *kwnames[] = { | |
13447 | (char *) "self",(char *) "size", NULL | |
13448 | }; | |
13449 | ||
13450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
13451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13452 | { | |
13453 | arg2 = &temp2; | |
13454 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13455 | } | |
13456 | { | |
13457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13458 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
13459 | ||
13460 | wxPyEndAllowThreads(__tstate); | |
13461 | if (PyErr_Occurred()) SWIG_fail; | |
13462 | } | |
13463 | Py_INCREF(Py_None); resultobj = Py_None; | |
13464 | return resultobj; | |
13465 | fail: | |
13466 | return NULL; | |
13467 | } | |
13468 | ||
13469 | ||
13470 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13471 | PyObject *resultobj; | |
13472 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13473 | wxSize *arg2 = 0 ; | |
13474 | wxSize result; | |
13475 | wxSize temp2 ; | |
13476 | PyObject * obj0 = 0 ; | |
13477 | PyObject * obj1 = 0 ; | |
13478 | char *kwnames[] = { | |
13479 | (char *) "self",(char *) "sizePage", NULL | |
13480 | }; | |
13481 | ||
13482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
13483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13484 | { | |
13485 | arg2 = &temp2; | |
13486 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13487 | } | |
13488 | { | |
13489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13490 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13491 | ||
13492 | wxPyEndAllowThreads(__tstate); | |
13493 | if (PyErr_Occurred()) SWIG_fail; | |
13494 | } | |
13495 | { | |
13496 | wxSize * resultptr; | |
13497 | resultptr = new wxSize((wxSize &) result); | |
13498 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13499 | } | |
13500 | return resultobj; | |
13501 | fail: | |
13502 | return NULL; | |
13503 | } | |
13504 | ||
13505 | ||
13506 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13507 | PyObject *resultobj; | |
13508 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13509 | size_t arg2 ; | |
13510 | bool result; | |
13511 | PyObject * obj0 = 0 ; | |
13512 | PyObject * obj1 = 0 ; | |
13513 | char *kwnames[] = { | |
13514 | (char *) "self",(char *) "n", NULL | |
13515 | }; | |
13516 | ||
13517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
13518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13519 | { |
8edf1c75 | 13520 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13521 | if (PyErr_Occurred()) SWIG_fail; |
13522 | } | |
d14a1e28 RD |
13523 | { |
13524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13525 | result = (bool)(arg1)->DeletePage(arg2); | |
13526 | ||
13527 | wxPyEndAllowThreads(__tstate); | |
13528 | if (PyErr_Occurred()) SWIG_fail; | |
13529 | } | |
4e760a36 | 13530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13531 | return resultobj; |
13532 | fail: | |
13533 | return NULL; | |
13534 | } | |
13535 | ||
13536 | ||
13537 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13538 | PyObject *resultobj; | |
13539 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13540 | size_t arg2 ; | |
13541 | bool result; | |
13542 | PyObject * obj0 = 0 ; | |
13543 | PyObject * obj1 = 0 ; | |
13544 | char *kwnames[] = { | |
13545 | (char *) "self",(char *) "n", NULL | |
13546 | }; | |
13547 | ||
13548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
13549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13550 | { |
8edf1c75 | 13551 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13552 | if (PyErr_Occurred()) SWIG_fail; |
13553 | } | |
d14a1e28 RD |
13554 | { |
13555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13556 | result = (bool)(arg1)->RemovePage(arg2); | |
13557 | ||
13558 | wxPyEndAllowThreads(__tstate); | |
13559 | if (PyErr_Occurred()) SWIG_fail; | |
13560 | } | |
4e760a36 | 13561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13562 | return resultobj; |
13563 | fail: | |
13564 | return NULL; | |
13565 | } | |
13566 | ||
13567 | ||
13568 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13569 | PyObject *resultobj; | |
13570 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13571 | bool result; | |
13572 | PyObject * obj0 = 0 ; | |
13573 | char *kwnames[] = { | |
13574 | (char *) "self", NULL | |
13575 | }; | |
13576 | ||
13577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
13578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13579 | { | |
13580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13581 | result = (bool)(arg1)->DeleteAllPages(); | |
13582 | ||
13583 | wxPyEndAllowThreads(__tstate); | |
13584 | if (PyErr_Occurred()) SWIG_fail; | |
13585 | } | |
4e760a36 | 13586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13587 | return resultobj; |
13588 | fail: | |
13589 | return NULL; | |
13590 | } | |
13591 | ||
13592 | ||
13593 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13594 | PyObject *resultobj; | |
13595 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13596 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13597 | wxString *arg3 = 0 ; | |
423f194a | 13598 | bool arg4 = (bool) False ; |
d14a1e28 RD |
13599 | int arg5 = (int) -1 ; |
13600 | bool result; | |
423f194a | 13601 | bool temp3 = False ; |
d14a1e28 RD |
13602 | PyObject * obj0 = 0 ; |
13603 | PyObject * obj1 = 0 ; | |
13604 | PyObject * obj2 = 0 ; | |
13605 | PyObject * obj3 = 0 ; | |
8edf1c75 | 13606 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13607 | char *kwnames[] = { |
13608 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13609 | }; | |
13610 | ||
8edf1c75 | 13611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
13612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13613 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13614 | { | |
13615 | arg3 = wxString_in_helper(obj2); | |
13616 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13617 | temp3 = True; |
d14a1e28 RD |
13618 | } |
13619 | if (obj3) { | |
83448d71 | 13620 | { |
8edf1c75 RD |
13621 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
13622 | if (PyErr_Occurred()) SWIG_fail; | |
13623 | } | |
13624 | } | |
13625 | if (obj4) { | |
13626 | { | |
13627 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
83448d71 RD |
13628 | if (PyErr_Occurred()) SWIG_fail; |
13629 | } | |
d14a1e28 RD |
13630 | } |
13631 | { | |
13632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13633 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
13634 | ||
13635 | wxPyEndAllowThreads(__tstate); | |
13636 | if (PyErr_Occurred()) SWIG_fail; | |
13637 | } | |
4e760a36 | 13638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13639 | { |
13640 | if (temp3) | |
13641 | delete arg3; | |
13642 | } | |
13643 | return resultobj; | |
13644 | fail: | |
13645 | { | |
13646 | if (temp3) | |
13647 | delete arg3; | |
13648 | } | |
13649 | return NULL; | |
13650 | } | |
13651 | ||
13652 | ||
13653 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13654 | PyObject *resultobj; | |
13655 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13656 | size_t arg2 ; | |
13657 | wxWindow *arg3 = (wxWindow *) 0 ; | |
13658 | wxString *arg4 = 0 ; | |
423f194a | 13659 | bool arg5 = (bool) False ; |
d14a1e28 RD |
13660 | int arg6 = (int) -1 ; |
13661 | bool result; | |
423f194a | 13662 | bool temp4 = False ; |
d14a1e28 RD |
13663 | PyObject * obj0 = 0 ; |
13664 | PyObject * obj1 = 0 ; | |
13665 | PyObject * obj2 = 0 ; | |
13666 | PyObject * obj3 = 0 ; | |
13667 | PyObject * obj4 = 0 ; | |
8edf1c75 | 13668 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13669 | char *kwnames[] = { |
13670 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13671 | }; | |
13672 | ||
8edf1c75 | 13673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 13674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 13675 | { |
8edf1c75 | 13676 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13677 | if (PyErr_Occurred()) SWIG_fail; |
13678 | } | |
d14a1e28 RD |
13679 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13680 | { | |
13681 | arg4 = wxString_in_helper(obj3); | |
13682 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13683 | temp4 = True; |
d14a1e28 RD |
13684 | } |
13685 | if (obj4) { | |
83448d71 | 13686 | { |
8edf1c75 RD |
13687 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
13688 | if (PyErr_Occurred()) SWIG_fail; | |
13689 | } | |
13690 | } | |
13691 | if (obj5) { | |
13692 | { | |
13693 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
83448d71 RD |
13694 | if (PyErr_Occurred()) SWIG_fail; |
13695 | } | |
d14a1e28 RD |
13696 | } |
13697 | { | |
13698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13699 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
13700 | ||
13701 | wxPyEndAllowThreads(__tstate); | |
13702 | if (PyErr_Occurred()) SWIG_fail; | |
13703 | } | |
4e760a36 | 13704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13705 | { |
13706 | if (temp4) | |
13707 | delete arg4; | |
13708 | } | |
13709 | return resultobj; | |
13710 | fail: | |
13711 | { | |
13712 | if (temp4) | |
13713 | delete arg4; | |
13714 | } | |
13715 | return NULL; | |
13716 | } | |
13717 | ||
13718 | ||
13719 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13720 | PyObject *resultobj; | |
13721 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13722 | size_t arg2 ; | |
13723 | int result; | |
13724 | PyObject * obj0 = 0 ; | |
13725 | PyObject * obj1 = 0 ; | |
13726 | char *kwnames[] = { | |
13727 | (char *) "self",(char *) "n", NULL | |
13728 | }; | |
13729 | ||
13730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
13731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13732 | { |
8edf1c75 | 13733 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
13734 | if (PyErr_Occurred()) SWIG_fail; |
13735 | } | |
d14a1e28 RD |
13736 | { |
13737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13738 | result = (int)(arg1)->SetSelection(arg2); | |
13739 | ||
13740 | wxPyEndAllowThreads(__tstate); | |
13741 | if (PyErr_Occurred()) SWIG_fail; | |
13742 | } | |
8edf1c75 | 13743 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13744 | return resultobj; |
13745 | fail: | |
13746 | return NULL; | |
13747 | } | |
13748 | ||
13749 | ||
13750 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13751 | PyObject *resultobj; | |
13752 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
423f194a | 13753 | bool arg2 = (bool) True ; |
d14a1e28 RD |
13754 | PyObject * obj0 = 0 ; |
13755 | PyObject * obj1 = 0 ; | |
13756 | char *kwnames[] = { | |
13757 | (char *) "self",(char *) "forward", NULL | |
13758 | }; | |
13759 | ||
13760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
13761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13762 | if (obj1) { | |
83448d71 | 13763 | { |
8edf1c75 | 13764 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
13765 | if (PyErr_Occurred()) SWIG_fail; |
13766 | } | |
d14a1e28 RD |
13767 | } |
13768 | { | |
13769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13770 | (arg1)->AdvanceSelection(arg2); | |
13771 | ||
13772 | wxPyEndAllowThreads(__tstate); | |
13773 | if (PyErr_Occurred()) SWIG_fail; | |
13774 | } | |
13775 | Py_INCREF(Py_None); resultobj = Py_None; | |
13776 | return resultobj; | |
13777 | fail: | |
13778 | return NULL; | |
13779 | } | |
13780 | ||
13781 | ||
13782 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
13783 | PyObject *obj; | |
13784 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13785 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
13786 | Py_INCREF(obj); | |
13787 | return Py_BuildValue((char *)""); | |
13788 | } | |
13789 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13790 | PyObject *resultobj; | |
13791 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13792 | int arg2 = (int) 0 ; | |
13793 | int arg3 = (int) -1 ; | |
13794 | int arg4 = (int) -1 ; | |
13795 | wxBookCtrlEvent *result; | |
8edf1c75 RD |
13796 | PyObject * obj0 = 0 ; |
13797 | PyObject * obj1 = 0 ; | |
13798 | PyObject * obj2 = 0 ; | |
13799 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13800 | char *kwnames[] = { |
13801 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13802 | }; | |
13803 | ||
8edf1c75 RD |
13804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13805 | if (obj0) { | |
13806 | { | |
13807 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13808 | if (PyErr_Occurred()) SWIG_fail; | |
13809 | } | |
13810 | } | |
13811 | if (obj1) { | |
13812 | { | |
13813 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13814 | if (PyErr_Occurred()) SWIG_fail; | |
13815 | } | |
13816 | } | |
13817 | if (obj2) { | |
13818 | { | |
13819 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13820 | if (PyErr_Occurred()) SWIG_fail; | |
13821 | } | |
13822 | } | |
13823 | if (obj3) { | |
13824 | { | |
13825 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
13826 | if (PyErr_Occurred()) SWIG_fail; | |
13827 | } | |
13828 | } | |
d14a1e28 RD |
13829 | { |
13830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13831 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
13832 | ||
13833 | wxPyEndAllowThreads(__tstate); | |
13834 | if (PyErr_Occurred()) SWIG_fail; | |
13835 | } | |
13836 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlEvent, 1); | |
13837 | return resultobj; | |
13838 | fail: | |
13839 | return NULL; | |
13840 | } | |
13841 | ||
13842 | ||
13843 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13844 | PyObject *resultobj; | |
13845 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13846 | int result; | |
13847 | PyObject * obj0 = 0 ; | |
13848 | char *kwnames[] = { | |
13849 | (char *) "self", NULL | |
13850 | }; | |
13851 | ||
13852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
13853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13854 | { | |
13855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13856 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
13857 | ||
13858 | wxPyEndAllowThreads(__tstate); | |
13859 | if (PyErr_Occurred()) SWIG_fail; | |
13860 | } | |
8edf1c75 | 13861 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13862 | return resultobj; |
13863 | fail: | |
13864 | return NULL; | |
13865 | } | |
13866 | ||
13867 | ||
13868 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13869 | PyObject *resultobj; | |
13870 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13871 | int arg2 ; | |
13872 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13873 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13874 | char *kwnames[] = { |
13875 | (char *) "self",(char *) "nSel", NULL | |
13876 | }; | |
13877 | ||
8edf1c75 | 13878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13880 | { |
13881 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13882 | if (PyErr_Occurred()) SWIG_fail; | |
13883 | } | |
d14a1e28 RD |
13884 | { |
13885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13886 | (arg1)->SetSelection(arg2); | |
13887 | ||
13888 | wxPyEndAllowThreads(__tstate); | |
13889 | if (PyErr_Occurred()) SWIG_fail; | |
13890 | } | |
13891 | Py_INCREF(Py_None); resultobj = Py_None; | |
13892 | return resultobj; | |
13893 | fail: | |
13894 | return NULL; | |
13895 | } | |
13896 | ||
13897 | ||
13898 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13899 | PyObject *resultobj; | |
13900 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13901 | int result; | |
13902 | PyObject * obj0 = 0 ; | |
13903 | char *kwnames[] = { | |
13904 | (char *) "self", NULL | |
13905 | }; | |
13906 | ||
13907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
13908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13909 | { | |
13910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13911 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
13912 | ||
13913 | wxPyEndAllowThreads(__tstate); | |
13914 | if (PyErr_Occurred()) SWIG_fail; | |
13915 | } | |
8edf1c75 | 13916 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13917 | return resultobj; |
13918 | fail: | |
13919 | return NULL; | |
13920 | } | |
13921 | ||
13922 | ||
13923 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13924 | PyObject *resultobj; | |
13925 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13926 | int arg2 ; | |
13927 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13928 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13929 | char *kwnames[] = { |
13930 | (char *) "self",(char *) "nOldSel", NULL | |
13931 | }; | |
13932 | ||
8edf1c75 | 13933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13935 | { |
13936 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13937 | if (PyErr_Occurred()) SWIG_fail; | |
13938 | } | |
d14a1e28 RD |
13939 | { |
13940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13941 | (arg1)->SetOldSelection(arg2); | |
13942 | ||
13943 | wxPyEndAllowThreads(__tstate); | |
13944 | if (PyErr_Occurred()) SWIG_fail; | |
13945 | } | |
13946 | Py_INCREF(Py_None); resultobj = Py_None; | |
13947 | return resultobj; | |
13948 | fail: | |
13949 | return NULL; | |
13950 | } | |
13951 | ||
13952 | ||
13953 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
13954 | PyObject *obj; | |
13955 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13956 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
13957 | Py_INCREF(obj); | |
13958 | return Py_BuildValue((char *)""); | |
13959 | } | |
13960 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13961 | PyObject *resultobj; | |
13962 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 13963 | int arg2 ; |
d14a1e28 RD |
13964 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
13965 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13966 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13967 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13968 | long arg5 = (long) 0 ; | |
13969 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
13970 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13971 | wxNotebook *result; | |
13972 | wxPoint temp3 ; | |
13973 | wxSize temp4 ; | |
423f194a | 13974 | bool temp6 = False ; |
d14a1e28 | 13975 | PyObject * obj0 = 0 ; |
8edf1c75 | 13976 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13977 | PyObject * obj2 = 0 ; |
13978 | PyObject * obj3 = 0 ; | |
8edf1c75 | 13979 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13980 | PyObject * obj5 = 0 ; |
13981 | char *kwnames[] = { | |
13982 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13983 | }; | |
13984 | ||
8edf1c75 | 13985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 13986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13987 | { |
13988 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13989 | if (PyErr_Occurred()) SWIG_fail; | |
13990 | } | |
d14a1e28 RD |
13991 | if (obj2) { |
13992 | { | |
13993 | arg3 = &temp3; | |
13994 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13995 | } | |
13996 | } | |
13997 | if (obj3) { | |
13998 | { | |
13999 | arg4 = &temp4; | |
14000 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14001 | } | |
14002 | } | |
8edf1c75 RD |
14003 | if (obj4) { |
14004 | { | |
14005 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
14006 | if (PyErr_Occurred()) SWIG_fail; | |
14007 | } | |
14008 | } | |
d14a1e28 RD |
14009 | if (obj5) { |
14010 | { | |
14011 | arg6 = wxString_in_helper(obj5); | |
14012 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 14013 | temp6 = True; |
d14a1e28 RD |
14014 | } |
14015 | } | |
14016 | { | |
14017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14018 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14019 | ||
14020 | wxPyEndAllowThreads(__tstate); | |
14021 | if (PyErr_Occurred()) SWIG_fail; | |
14022 | } | |
14023 | { | |
14024 | resultobj = wxPyMake_wxObject(result); | |
14025 | } | |
14026 | { | |
14027 | if (temp6) | |
14028 | delete arg6; | |
14029 | } | |
14030 | return resultobj; | |
14031 | fail: | |
14032 | { | |
14033 | if (temp6) | |
14034 | delete arg6; | |
14035 | } | |
14036 | return NULL; | |
14037 | } | |
14038 | ||
14039 | ||
14040 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14041 | PyObject *resultobj; | |
14042 | wxNotebook *result; | |
14043 | char *kwnames[] = { | |
14044 | NULL | |
14045 | }; | |
14046 | ||
14047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
14048 | { | |
14049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14050 | result = (wxNotebook *)new wxNotebook(); | |
14051 | ||
14052 | wxPyEndAllowThreads(__tstate); | |
14053 | if (PyErr_Occurred()) SWIG_fail; | |
14054 | } | |
14055 | { | |
14056 | resultobj = wxPyMake_wxObject(result); | |
14057 | } | |
14058 | return resultobj; | |
14059 | fail: | |
14060 | return NULL; | |
14061 | } | |
14062 | ||
14063 | ||
14064 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14065 | PyObject *resultobj; | |
14066 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14067 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14068 | int arg3 ; |
d14a1e28 RD |
14069 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14070 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14071 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14072 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14073 | long arg6 = (long) 0 ; | |
14074 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
14075 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14076 | bool result; | |
14077 | wxPoint temp4 ; | |
14078 | wxSize temp5 ; | |
423f194a | 14079 | bool temp7 = False ; |
d14a1e28 RD |
14080 | PyObject * obj0 = 0 ; |
14081 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14082 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14083 | PyObject * obj3 = 0 ; |
14084 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14085 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14086 | PyObject * obj6 = 0 ; |
14087 | char *kwnames[] = { | |
14088 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14089 | }; | |
14090 | ||
8edf1c75 | 14091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
14092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14093 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
14094 | { |
14095 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14096 | if (PyErr_Occurred()) SWIG_fail; | |
14097 | } | |
d14a1e28 RD |
14098 | if (obj3) { |
14099 | { | |
14100 | arg4 = &temp4; | |
14101 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14102 | } | |
14103 | } | |
14104 | if (obj4) { | |
14105 | { | |
14106 | arg5 = &temp5; | |
14107 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14108 | } | |
14109 | } | |
8edf1c75 RD |
14110 | if (obj5) { |
14111 | { | |
14112 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
14113 | if (PyErr_Occurred()) SWIG_fail; | |
14114 | } | |
14115 | } | |
d14a1e28 RD |
14116 | if (obj6) { |
14117 | { | |
14118 | arg7 = wxString_in_helper(obj6); | |
14119 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14120 | temp7 = True; |
d14a1e28 RD |
14121 | } |
14122 | } | |
14123 | { | |
14124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14125 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14126 | ||
14127 | wxPyEndAllowThreads(__tstate); | |
14128 | if (PyErr_Occurred()) SWIG_fail; | |
14129 | } | |
4e760a36 | 14130 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14131 | { |
14132 | if (temp7) | |
14133 | delete arg7; | |
14134 | } | |
14135 | return resultobj; | |
14136 | fail: | |
14137 | { | |
14138 | if (temp7) | |
14139 | delete arg7; | |
14140 | } | |
14141 | return NULL; | |
14142 | } | |
14143 | ||
14144 | ||
14145 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14146 | PyObject *resultobj; | |
14147 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14148 | int result; | |
14149 | PyObject * obj0 = 0 ; | |
14150 | char *kwnames[] = { | |
14151 | (char *) "self", NULL | |
14152 | }; | |
14153 | ||
14154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
14155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14156 | { | |
14157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14158 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
14159 | ||
14160 | wxPyEndAllowThreads(__tstate); | |
14161 | if (PyErr_Occurred()) SWIG_fail; | |
14162 | } | |
8edf1c75 | 14163 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14164 | return resultobj; |
14165 | fail: | |
14166 | return NULL; | |
14167 | } | |
14168 | ||
14169 | ||
14170 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14171 | PyObject *resultobj; | |
14172 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14173 | wxSize *arg2 = 0 ; | |
14174 | wxSize temp2 ; | |
14175 | PyObject * obj0 = 0 ; | |
14176 | PyObject * obj1 = 0 ; | |
14177 | char *kwnames[] = { | |
14178 | (char *) "self",(char *) "padding", NULL | |
14179 | }; | |
14180 | ||
14181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
14182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14183 | { | |
14184 | arg2 = &temp2; | |
14185 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14186 | } | |
14187 | { | |
14188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14189 | (arg1)->SetPadding((wxSize const &)*arg2); | |
14190 | ||
14191 | wxPyEndAllowThreads(__tstate); | |
14192 | if (PyErr_Occurred()) SWIG_fail; | |
14193 | } | |
14194 | Py_INCREF(Py_None); resultobj = Py_None; | |
14195 | return resultobj; | |
14196 | fail: | |
14197 | return NULL; | |
14198 | } | |
14199 | ||
14200 | ||
14201 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14202 | PyObject *resultobj; | |
14203 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14204 | wxSize *arg2 = 0 ; | |
14205 | wxSize temp2 ; | |
14206 | PyObject * obj0 = 0 ; | |
14207 | PyObject * obj1 = 0 ; | |
14208 | char *kwnames[] = { | |
14209 | (char *) "self",(char *) "sz", NULL | |
14210 | }; | |
14211 | ||
14212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
14213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14214 | { | |
14215 | arg2 = &temp2; | |
14216 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14217 | } | |
14218 | { | |
14219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14220 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
14221 | ||
14222 | wxPyEndAllowThreads(__tstate); | |
14223 | if (PyErr_Occurred()) SWIG_fail; | |
14224 | } | |
14225 | Py_INCREF(Py_None); resultobj = Py_None; | |
14226 | return resultobj; | |
14227 | fail: | |
14228 | return NULL; | |
14229 | } | |
14230 | ||
14231 | ||
14232 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14233 | PyObject *resultobj; | |
14234 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14235 | wxPoint *arg2 = 0 ; | |
14236 | long *arg3 = (long *) 0 ; | |
14237 | int result; | |
14238 | wxPoint temp2 ; | |
14239 | long temp3 ; | |
14240 | PyObject * obj0 = 0 ; | |
14241 | PyObject * obj1 = 0 ; | |
14242 | char *kwnames[] = { | |
14243 | (char *) "self",(char *) "pt", NULL | |
14244 | }; | |
14245 | ||
14246 | arg3 = &temp3; | |
14247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
14248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14249 | { | |
14250 | arg2 = &temp2; | |
14251 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14252 | } | |
14253 | { | |
14254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14255 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
14256 | ||
14257 | wxPyEndAllowThreads(__tstate); | |
14258 | if (PyErr_Occurred()) SWIG_fail; | |
14259 | } | |
8edf1c75 | 14260 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14261 | { |
14262 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14263 | resultobj = t_output_helper(resultobj,o); | |
14264 | } | |
14265 | return resultobj; | |
14266 | fail: | |
14267 | return NULL; | |
14268 | } | |
14269 | ||
14270 | ||
14271 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14272 | PyObject *resultobj; | |
14273 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14274 | wxSize *arg2 = 0 ; | |
14275 | wxSize result; | |
14276 | wxSize temp2 ; | |
14277 | PyObject * obj0 = 0 ; | |
14278 | PyObject * obj1 = 0 ; | |
14279 | char *kwnames[] = { | |
14280 | (char *) "self",(char *) "sizePage", NULL | |
14281 | }; | |
14282 | ||
14283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
14284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14285 | { | |
14286 | arg2 = &temp2; | |
14287 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14288 | } | |
14289 | { | |
14290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14291 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14292 | ||
14293 | wxPyEndAllowThreads(__tstate); | |
14294 | if (PyErr_Occurred()) SWIG_fail; | |
14295 | } | |
14296 | { | |
14297 | wxSize * resultptr; | |
14298 | resultptr = new wxSize((wxSize &) result); | |
14299 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14300 | } | |
14301 | return resultobj; | |
14302 | fail: | |
14303 | return NULL; | |
14304 | } | |
14305 | ||
14306 | ||
14307 | static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14308 | PyObject *resultobj; | |
14309 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14310 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14311 | wxColour *arg3 = 0 ; | |
14312 | wxColour temp3 ; | |
14313 | PyObject * obj0 = 0 ; | |
14314 | PyObject * obj1 = 0 ; | |
14315 | PyObject * obj2 = 0 ; | |
14316 | char *kwnames[] = { | |
14317 | (char *) "self",(char *) "window",(char *) "colour", NULL | |
14318 | }; | |
14319 | ||
14320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14322 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14323 | { | |
14324 | arg3 = &temp3; | |
14325 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14326 | } | |
14327 | { | |
14328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14329 | (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3); | |
14330 | ||
14331 | wxPyEndAllowThreads(__tstate); | |
14332 | if (PyErr_Occurred()) SWIG_fail; | |
14333 | } | |
14334 | Py_INCREF(Py_None); resultobj = Py_None; | |
14335 | return resultobj; | |
14336 | fail: | |
14337 | return NULL; | |
14338 | } | |
14339 | ||
14340 | ||
14341 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
14342 | PyObject *obj; | |
14343 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14344 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
14345 | Py_INCREF(obj); | |
14346 | return Py_BuildValue((char *)""); | |
14347 | } | |
14348 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14349 | PyObject *resultobj; | |
14350 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14351 | int arg2 = (int) 0 ; | |
14352 | int arg3 = (int) -1 ; | |
14353 | int arg4 = (int) -1 ; | |
14354 | wxNotebookEvent *result; | |
8edf1c75 RD |
14355 | PyObject * obj0 = 0 ; |
14356 | PyObject * obj1 = 0 ; | |
14357 | PyObject * obj2 = 0 ; | |
14358 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14359 | char *kwnames[] = { |
14360 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14361 | }; | |
14362 | ||
8edf1c75 RD |
14363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14364 | if (obj0) { | |
14365 | { | |
14366 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
14367 | if (PyErr_Occurred()) SWIG_fail; | |
14368 | } | |
14369 | } | |
14370 | if (obj1) { | |
14371 | { | |
14372 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14373 | if (PyErr_Occurred()) SWIG_fail; | |
14374 | } | |
14375 | } | |
14376 | if (obj2) { | |
14377 | { | |
14378 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14379 | if (PyErr_Occurred()) SWIG_fail; | |
14380 | } | |
14381 | } | |
14382 | if (obj3) { | |
14383 | { | |
14384 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14385 | if (PyErr_Occurred()) SWIG_fail; | |
14386 | } | |
14387 | } | |
d14a1e28 RD |
14388 | { |
14389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14390 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
14391 | ||
14392 | wxPyEndAllowThreads(__tstate); | |
14393 | if (PyErr_Occurred()) SWIG_fail; | |
14394 | } | |
14395 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookEvent, 1); | |
14396 | return resultobj; | |
14397 | fail: | |
14398 | return NULL; | |
14399 | } | |
14400 | ||
14401 | ||
14402 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
14403 | PyObject *obj; | |
14404 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14405 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
14406 | Py_INCREF(obj); | |
14407 | return Py_BuildValue((char *)""); | |
14408 | } | |
14409 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14410 | PyObject *resultobj; | |
14411 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 14412 | int arg2 ; |
d14a1e28 RD |
14413 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14414 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14415 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14416 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14417 | long arg5 = (long) 0 ; | |
14418 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
14419 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14420 | wxListbook *result; | |
14421 | wxPoint temp3 ; | |
14422 | wxSize temp4 ; | |
423f194a | 14423 | bool temp6 = False ; |
d14a1e28 | 14424 | PyObject * obj0 = 0 ; |
8edf1c75 | 14425 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14426 | PyObject * obj2 = 0 ; |
14427 | PyObject * obj3 = 0 ; | |
8edf1c75 | 14428 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14429 | PyObject * obj5 = 0 ; |
14430 | char *kwnames[] = { | |
14431 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14432 | }; | |
14433 | ||
8edf1c75 | 14434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 14435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14436 | { |
14437 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14438 | if (PyErr_Occurred()) SWIG_fail; | |
14439 | } | |
d14a1e28 RD |
14440 | if (obj2) { |
14441 | { | |
14442 | arg3 = &temp3; | |
14443 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14444 | } | |
14445 | } | |
14446 | if (obj3) { | |
14447 | { | |
14448 | arg4 = &temp4; | |
14449 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14450 | } | |
14451 | } | |
8edf1c75 RD |
14452 | if (obj4) { |
14453 | { | |
14454 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
14455 | if (PyErr_Occurred()) SWIG_fail; | |
14456 | } | |
14457 | } | |
d14a1e28 RD |
14458 | if (obj5) { |
14459 | { | |
14460 | arg6 = wxString_in_helper(obj5); | |
14461 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 14462 | temp6 = True; |
d14a1e28 RD |
14463 | } |
14464 | } | |
14465 | { | |
14466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14467 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14468 | ||
14469 | wxPyEndAllowThreads(__tstate); | |
14470 | if (PyErr_Occurred()) SWIG_fail; | |
14471 | } | |
14472 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
14473 | { | |
14474 | if (temp6) | |
14475 | delete arg6; | |
14476 | } | |
14477 | return resultobj; | |
14478 | fail: | |
14479 | { | |
14480 | if (temp6) | |
14481 | delete arg6; | |
14482 | } | |
14483 | return NULL; | |
14484 | } | |
14485 | ||
14486 | ||
14487 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14488 | PyObject *resultobj; | |
14489 | wxListbook *result; | |
14490 | char *kwnames[] = { | |
14491 | NULL | |
14492 | }; | |
14493 | ||
14494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
14495 | { | |
14496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14497 | result = (wxListbook *)new wxListbook(); | |
14498 | ||
14499 | wxPyEndAllowThreads(__tstate); | |
14500 | if (PyErr_Occurred()) SWIG_fail; | |
14501 | } | |
14502 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
14503 | return resultobj; | |
14504 | fail: | |
14505 | return NULL; | |
14506 | } | |
14507 | ||
14508 | ||
14509 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14510 | PyObject *resultobj; | |
14511 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14512 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14513 | int arg3 ; |
d14a1e28 RD |
14514 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14515 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14516 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14517 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14518 | long arg6 = (long) 0 ; | |
14519 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
14520 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14521 | bool result; | |
14522 | wxPoint temp4 ; | |
14523 | wxSize temp5 ; | |
423f194a | 14524 | bool temp7 = False ; |
d14a1e28 RD |
14525 | PyObject * obj0 = 0 ; |
14526 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14527 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14528 | PyObject * obj3 = 0 ; |
14529 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14530 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14531 | PyObject * obj6 = 0 ; |
14532 | char *kwnames[] = { | |
14533 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14534 | }; | |
14535 | ||
8edf1c75 | 14536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
14537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14538 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
14539 | { |
14540 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14541 | if (PyErr_Occurred()) SWIG_fail; | |
14542 | } | |
d14a1e28 RD |
14543 | if (obj3) { |
14544 | { | |
14545 | arg4 = &temp4; | |
14546 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14547 | } | |
14548 | } | |
14549 | if (obj4) { | |
14550 | { | |
14551 | arg5 = &temp5; | |
14552 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14553 | } | |
14554 | } | |
8edf1c75 RD |
14555 | if (obj5) { |
14556 | { | |
14557 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
14558 | if (PyErr_Occurred()) SWIG_fail; | |
14559 | } | |
14560 | } | |
d14a1e28 RD |
14561 | if (obj6) { |
14562 | { | |
14563 | arg7 = wxString_in_helper(obj6); | |
14564 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14565 | temp7 = True; |
d14a1e28 RD |
14566 | } |
14567 | } | |
14568 | { | |
14569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14570 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14571 | ||
14572 | wxPyEndAllowThreads(__tstate); | |
14573 | if (PyErr_Occurred()) SWIG_fail; | |
14574 | } | |
4e760a36 | 14575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14576 | { |
14577 | if (temp7) | |
14578 | delete arg7; | |
14579 | } | |
14580 | return resultobj; | |
14581 | fail: | |
14582 | { | |
14583 | if (temp7) | |
14584 | delete arg7; | |
14585 | } | |
14586 | return NULL; | |
14587 | } | |
14588 | ||
14589 | ||
14590 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14591 | PyObject *resultobj; | |
14592 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14593 | bool result; | |
14594 | PyObject * obj0 = 0 ; | |
14595 | char *kwnames[] = { | |
14596 | (char *) "self", NULL | |
14597 | }; | |
14598 | ||
14599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
14600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14601 | { | |
14602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14603 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
14604 | ||
14605 | wxPyEndAllowThreads(__tstate); | |
14606 | if (PyErr_Occurred()) SWIG_fail; | |
14607 | } | |
4e760a36 | 14608 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14609 | return resultobj; |
14610 | fail: | |
14611 | return NULL; | |
14612 | } | |
14613 | ||
14614 | ||
14615 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
14616 | PyObject *obj; | |
14617 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14618 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
14619 | Py_INCREF(obj); | |
14620 | return Py_BuildValue((char *)""); | |
14621 | } | |
14622 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14623 | PyObject *resultobj; | |
14624 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14625 | int arg2 = (int) 0 ; | |
14626 | int arg3 = (int) -1 ; | |
14627 | int arg4 = (int) -1 ; | |
14628 | wxListbookEvent *result; | |
8edf1c75 RD |
14629 | PyObject * obj0 = 0 ; |
14630 | PyObject * obj1 = 0 ; | |
14631 | PyObject * obj2 = 0 ; | |
14632 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14633 | char *kwnames[] = { |
14634 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14635 | }; | |
14636 | ||
8edf1c75 RD |
14637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14638 | if (obj0) { | |
14639 | { | |
14640 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
14641 | if (PyErr_Occurred()) SWIG_fail; | |
14642 | } | |
14643 | } | |
14644 | if (obj1) { | |
14645 | { | |
14646 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14647 | if (PyErr_Occurred()) SWIG_fail; | |
14648 | } | |
14649 | } | |
14650 | if (obj2) { | |
14651 | { | |
14652 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14653 | if (PyErr_Occurred()) SWIG_fail; | |
14654 | } | |
14655 | } | |
14656 | if (obj3) { | |
14657 | { | |
14658 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14659 | if (PyErr_Occurred()) SWIG_fail; | |
14660 | } | |
14661 | } | |
d14a1e28 RD |
14662 | { |
14663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14664 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
14665 | ||
14666 | wxPyEndAllowThreads(__tstate); | |
14667 | if (PyErr_Occurred()) SWIG_fail; | |
14668 | } | |
14669 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbookEvent, 1); | |
14670 | return resultobj; | |
14671 | fail: | |
14672 | return NULL; | |
14673 | } | |
14674 | ||
14675 | ||
14676 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
14677 | PyObject *obj; | |
14678 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14679 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
14680 | Py_INCREF(obj); | |
14681 | return Py_BuildValue((char *)""); | |
14682 | } | |
14683 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14684 | PyObject *resultobj; | |
14685 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14686 | wxBookCtrlSizer *result; | |
14687 | PyObject * obj0 = 0 ; | |
14688 | char *kwnames[] = { | |
14689 | (char *) "nb", NULL | |
14690 | }; | |
14691 | ||
14692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
14693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14694 | { | |
14695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14696 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
14697 | ||
14698 | wxPyEndAllowThreads(__tstate); | |
14699 | if (PyErr_Occurred()) SWIG_fail; | |
14700 | } | |
14701 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlSizer, 1); | |
14702 | return resultobj; | |
14703 | fail: | |
14704 | return NULL; | |
14705 | } | |
14706 | ||
14707 | ||
14708 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14709 | PyObject *resultobj; | |
14710 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14711 | PyObject * obj0 = 0 ; | |
14712 | char *kwnames[] = { | |
14713 | (char *) "self", NULL | |
14714 | }; | |
14715 | ||
14716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14718 | { | |
14719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14720 | (arg1)->RecalcSizes(); | |
14721 | ||
14722 | wxPyEndAllowThreads(__tstate); | |
14723 | if (PyErr_Occurred()) SWIG_fail; | |
14724 | } | |
14725 | Py_INCREF(Py_None); resultobj = Py_None; | |
14726 | return resultobj; | |
14727 | fail: | |
14728 | return NULL; | |
14729 | } | |
14730 | ||
14731 | ||
14732 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14733 | PyObject *resultobj; | |
14734 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14735 | wxSize result; | |
14736 | PyObject * obj0 = 0 ; | |
14737 | char *kwnames[] = { | |
14738 | (char *) "self", NULL | |
14739 | }; | |
14740 | ||
14741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14743 | { | |
14744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14745 | result = (arg1)->CalcMin(); | |
14746 | ||
14747 | wxPyEndAllowThreads(__tstate); | |
14748 | if (PyErr_Occurred()) SWIG_fail; | |
14749 | } | |
14750 | { | |
14751 | wxSize * resultptr; | |
14752 | resultptr = new wxSize((wxSize &) result); | |
14753 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14754 | } | |
14755 | return resultobj; | |
14756 | fail: | |
14757 | return NULL; | |
14758 | } | |
14759 | ||
14760 | ||
14761 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14762 | PyObject *resultobj; | |
14763 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14764 | wxBookCtrl *result; | |
14765 | PyObject * obj0 = 0 ; | |
14766 | char *kwnames[] = { | |
14767 | (char *) "self", NULL | |
14768 | }; | |
14769 | ||
14770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
14771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14772 | { | |
14773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14774 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
14775 | ||
14776 | wxPyEndAllowThreads(__tstate); | |
14777 | if (PyErr_Occurred()) SWIG_fail; | |
14778 | } | |
14779 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrl, 0); | |
14780 | return resultobj; | |
14781 | fail: | |
14782 | return NULL; | |
14783 | } | |
14784 | ||
14785 | ||
14786 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
14787 | PyObject *obj; | |
14788 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14789 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
14790 | Py_INCREF(obj); | |
14791 | return Py_BuildValue((char *)""); | |
14792 | } | |
14793 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14794 | PyObject *resultobj; | |
14795 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14796 | wxNotebookSizer *result; | |
14797 | PyObject * obj0 = 0 ; | |
14798 | char *kwnames[] = { | |
14799 | (char *) "nb", NULL | |
14800 | }; | |
14801 | ||
14802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
14803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14804 | { | |
14805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14806 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
14807 | ||
14808 | wxPyEndAllowThreads(__tstate); | |
14809 | if (PyErr_Occurred()) SWIG_fail; | |
14810 | } | |
14811 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookSizer, 1); | |
14812 | return resultobj; | |
14813 | fail: | |
14814 | return NULL; | |
14815 | } | |
14816 | ||
14817 | ||
14818 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14819 | PyObject *resultobj; | |
14820 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14821 | PyObject * obj0 = 0 ; | |
14822 | char *kwnames[] = { | |
14823 | (char *) "self", NULL | |
14824 | }; | |
14825 | ||
14826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14828 | { | |
14829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14830 | (arg1)->RecalcSizes(); | |
14831 | ||
14832 | wxPyEndAllowThreads(__tstate); | |
14833 | if (PyErr_Occurred()) SWIG_fail; | |
14834 | } | |
14835 | Py_INCREF(Py_None); resultobj = Py_None; | |
14836 | return resultobj; | |
14837 | fail: | |
14838 | return NULL; | |
14839 | } | |
14840 | ||
14841 | ||
14842 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14843 | PyObject *resultobj; | |
14844 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14845 | wxSize result; | |
14846 | PyObject * obj0 = 0 ; | |
14847 | char *kwnames[] = { | |
14848 | (char *) "self", NULL | |
14849 | }; | |
14850 | ||
14851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14853 | { | |
14854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14855 | result = (arg1)->CalcMin(); | |
14856 | ||
14857 | wxPyEndAllowThreads(__tstate); | |
14858 | if (PyErr_Occurred()) SWIG_fail; | |
14859 | } | |
14860 | { | |
14861 | wxSize * resultptr; | |
14862 | resultptr = new wxSize((wxSize &) result); | |
14863 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14864 | } | |
14865 | return resultobj; | |
14866 | fail: | |
14867 | return NULL; | |
14868 | } | |
14869 | ||
14870 | ||
14871 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14872 | PyObject *resultobj; | |
14873 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14874 | wxNotebook *result; | |
14875 | PyObject * obj0 = 0 ; | |
14876 | char *kwnames[] = { | |
14877 | (char *) "self", NULL | |
14878 | }; | |
14879 | ||
14880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
14881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14882 | { | |
14883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14884 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
14885 | ||
14886 | wxPyEndAllowThreads(__tstate); | |
14887 | if (PyErr_Occurred()) SWIG_fail; | |
14888 | } | |
14889 | { | |
14890 | resultobj = wxPyMake_wxObject(result); | |
14891 | } | |
14892 | return resultobj; | |
14893 | fail: | |
14894 | return NULL; | |
14895 | } | |
14896 | ||
14897 | ||
14898 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
14899 | PyObject *obj; | |
14900 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14901 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
14902 | Py_INCREF(obj); | |
14903 | return Py_BuildValue((char *)""); | |
14904 | } | |
14905 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14906 | PyObject *resultobj; | |
14907 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14908 | int result; | |
14909 | PyObject * obj0 = 0 ; | |
14910 | char *kwnames[] = { | |
14911 | (char *) "self", NULL | |
14912 | }; | |
14913 | ||
14914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
14915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14916 | { | |
14917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14918 | result = (int)(arg1)->GetId(); | |
14919 | ||
14920 | wxPyEndAllowThreads(__tstate); | |
14921 | if (PyErr_Occurred()) SWIG_fail; | |
14922 | } | |
8edf1c75 | 14923 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14924 | return resultobj; |
14925 | fail: | |
14926 | return NULL; | |
14927 | } | |
14928 | ||
14929 | ||
14930 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14931 | PyObject *resultobj; | |
14932 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14933 | wxControl *result; | |
14934 | PyObject * obj0 = 0 ; | |
14935 | char *kwnames[] = { | |
14936 | (char *) "self", NULL | |
14937 | }; | |
14938 | ||
14939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
14940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14941 | { | |
14942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14943 | result = (wxControl *)(arg1)->GetControl(); | |
14944 | ||
14945 | wxPyEndAllowThreads(__tstate); | |
14946 | if (PyErr_Occurred()) SWIG_fail; | |
14947 | } | |
14948 | { | |
14949 | resultobj = wxPyMake_wxObject(result); | |
14950 | } | |
14951 | return resultobj; | |
14952 | fail: | |
14953 | return NULL; | |
14954 | } | |
14955 | ||
14956 | ||
14957 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14958 | PyObject *resultobj; | |
14959 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14960 | wxToolBarBase *result; | |
14961 | PyObject * obj0 = 0 ; | |
14962 | char *kwnames[] = { | |
14963 | (char *) "self", NULL | |
14964 | }; | |
14965 | ||
14966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
14967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14968 | { | |
14969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14970 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
14971 | ||
14972 | wxPyEndAllowThreads(__tstate); | |
14973 | if (PyErr_Occurred()) SWIG_fail; | |
14974 | } | |
14975 | { | |
14976 | resultobj = wxPyMake_wxObject(result); | |
14977 | } | |
14978 | return resultobj; | |
14979 | fail: | |
14980 | return NULL; | |
14981 | } | |
14982 | ||
14983 | ||
14984 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14985 | PyObject *resultobj; | |
14986 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14987 | int result; | |
14988 | PyObject * obj0 = 0 ; | |
14989 | char *kwnames[] = { | |
14990 | (char *) "self", NULL | |
14991 | }; | |
14992 | ||
14993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
14994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14995 | { | |
14996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14997 | result = (int)(arg1)->IsButton(); | |
14998 | ||
14999 | wxPyEndAllowThreads(__tstate); | |
15000 | if (PyErr_Occurred()) SWIG_fail; | |
15001 | } | |
8edf1c75 | 15002 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15003 | return resultobj; |
15004 | fail: | |
15005 | return NULL; | |
15006 | } | |
15007 | ||
15008 | ||
15009 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15010 | PyObject *resultobj; | |
15011 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15012 | int result; | |
15013 | PyObject * obj0 = 0 ; | |
15014 | char *kwnames[] = { | |
15015 | (char *) "self", NULL | |
15016 | }; | |
15017 | ||
15018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
15019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15020 | { | |
15021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15022 | result = (int)(arg1)->IsControl(); | |
15023 | ||
15024 | wxPyEndAllowThreads(__tstate); | |
15025 | if (PyErr_Occurred()) SWIG_fail; | |
15026 | } | |
8edf1c75 | 15027 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15028 | return resultobj; |
15029 | fail: | |
15030 | return NULL; | |
15031 | } | |
15032 | ||
15033 | ||
15034 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15035 | PyObject *resultobj; | |
15036 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15037 | int result; | |
15038 | PyObject * obj0 = 0 ; | |
15039 | char *kwnames[] = { | |
15040 | (char *) "self", NULL | |
15041 | }; | |
15042 | ||
15043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
15044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15045 | { | |
15046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15047 | result = (int)(arg1)->IsSeparator(); | |
15048 | ||
15049 | wxPyEndAllowThreads(__tstate); | |
15050 | if (PyErr_Occurred()) SWIG_fail; | |
15051 | } | |
8edf1c75 | 15052 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15053 | return resultobj; |
15054 | fail: | |
15055 | return NULL; | |
15056 | } | |
15057 | ||
15058 | ||
15059 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15060 | PyObject *resultobj; | |
15061 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15062 | int result; | |
15063 | PyObject * obj0 = 0 ; | |
15064 | char *kwnames[] = { | |
15065 | (char *) "self", NULL | |
15066 | }; | |
15067 | ||
15068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
15069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15070 | { | |
15071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15072 | result = (int)(arg1)->GetStyle(); | |
15073 | ||
15074 | wxPyEndAllowThreads(__tstate); | |
15075 | if (PyErr_Occurred()) SWIG_fail; | |
15076 | } | |
8edf1c75 | 15077 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15078 | return resultobj; |
15079 | fail: | |
15080 | return NULL; | |
15081 | } | |
15082 | ||
15083 | ||
15084 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15085 | PyObject *resultobj; | |
15086 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15087 | int result; | |
15088 | PyObject * obj0 = 0 ; | |
15089 | char *kwnames[] = { | |
15090 | (char *) "self", NULL | |
15091 | }; | |
15092 | ||
15093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
15094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15095 | { | |
15096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15097 | result = (int)(arg1)->GetKind(); | |
15098 | ||
15099 | wxPyEndAllowThreads(__tstate); | |
15100 | if (PyErr_Occurred()) SWIG_fail; | |
15101 | } | |
8edf1c75 | 15102 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15103 | return resultobj; |
15104 | fail: | |
15105 | return NULL; | |
15106 | } | |
15107 | ||
15108 | ||
15109 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15110 | PyObject *resultobj; | |
15111 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15112 | bool result; | |
15113 | PyObject * obj0 = 0 ; | |
15114 | char *kwnames[] = { | |
15115 | (char *) "self", NULL | |
15116 | }; | |
15117 | ||
15118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
15119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15120 | { | |
15121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15122 | result = (bool)(arg1)->IsEnabled(); | |
15123 | ||
15124 | wxPyEndAllowThreads(__tstate); | |
15125 | if (PyErr_Occurred()) SWIG_fail; | |
15126 | } | |
4e760a36 | 15127 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15128 | return resultobj; |
15129 | fail: | |
15130 | return NULL; | |
15131 | } | |
15132 | ||
15133 | ||
15134 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15135 | PyObject *resultobj; | |
15136 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15137 | bool result; | |
15138 | PyObject * obj0 = 0 ; | |
15139 | char *kwnames[] = { | |
15140 | (char *) "self", NULL | |
15141 | }; | |
15142 | ||
15143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
15144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15145 | { | |
15146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15147 | result = (bool)(arg1)->IsToggled(); | |
15148 | ||
15149 | wxPyEndAllowThreads(__tstate); | |
15150 | if (PyErr_Occurred()) SWIG_fail; | |
15151 | } | |
4e760a36 | 15152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15153 | return resultobj; |
15154 | fail: | |
15155 | return NULL; | |
15156 | } | |
15157 | ||
15158 | ||
15159 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15160 | PyObject *resultobj; | |
15161 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15162 | bool result; | |
15163 | PyObject * obj0 = 0 ; | |
15164 | char *kwnames[] = { | |
15165 | (char *) "self", NULL | |
15166 | }; | |
15167 | ||
15168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
15169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15170 | { | |
15171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15172 | result = (bool)(arg1)->CanBeToggled(); | |
15173 | ||
15174 | wxPyEndAllowThreads(__tstate); | |
15175 | if (PyErr_Occurred()) SWIG_fail; | |
15176 | } | |
4e760a36 | 15177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15178 | return resultobj; |
15179 | fail: | |
15180 | return NULL; | |
15181 | } | |
15182 | ||
15183 | ||
15184 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15185 | PyObject *resultobj; | |
15186 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15187 | wxBitmap *result; | |
15188 | PyObject * obj0 = 0 ; | |
15189 | char *kwnames[] = { | |
15190 | (char *) "self", NULL | |
15191 | }; | |
15192 | ||
15193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
15194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15195 | { | |
15196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15197 | { | |
15198 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
15199 | result = (wxBitmap *) &_result_ref; | |
15200 | } | |
15201 | ||
15202 | wxPyEndAllowThreads(__tstate); | |
15203 | if (PyErr_Occurred()) SWIG_fail; | |
15204 | } | |
15205 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
15206 | return resultobj; | |
15207 | fail: | |
15208 | return NULL; | |
15209 | } | |
15210 | ||
15211 | ||
15212 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15213 | PyObject *resultobj; | |
15214 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15215 | wxBitmap *result; | |
15216 | PyObject * obj0 = 0 ; | |
15217 | char *kwnames[] = { | |
15218 | (char *) "self", NULL | |
15219 | }; | |
15220 | ||
15221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
15222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15223 | { | |
15224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15225 | { | |
15226 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
15227 | result = (wxBitmap *) &_result_ref; | |
15228 | } | |
15229 | ||
15230 | wxPyEndAllowThreads(__tstate); | |
15231 | if (PyErr_Occurred()) SWIG_fail; | |
15232 | } | |
15233 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
15234 | return resultobj; | |
15235 | fail: | |
15236 | return NULL; | |
15237 | } | |
15238 | ||
15239 | ||
15240 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15241 | PyObject *resultobj; | |
15242 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15243 | wxBitmap result; | |
15244 | PyObject * obj0 = 0 ; | |
15245 | char *kwnames[] = { | |
15246 | (char *) "self", NULL | |
15247 | }; | |
15248 | ||
15249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
15250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15251 | { | |
15252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15253 | result = (arg1)->GetBitmap(); | |
15254 | ||
15255 | wxPyEndAllowThreads(__tstate); | |
15256 | if (PyErr_Occurred()) SWIG_fail; | |
15257 | } | |
15258 | { | |
15259 | wxBitmap * resultptr; | |
15260 | resultptr = new wxBitmap((wxBitmap &) result); | |
15261 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
15262 | } | |
15263 | return resultobj; | |
15264 | fail: | |
15265 | return NULL; | |
15266 | } | |
15267 | ||
15268 | ||
15269 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15270 | PyObject *resultobj; | |
15271 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15272 | wxString result; | |
15273 | PyObject * obj0 = 0 ; | |
15274 | char *kwnames[] = { | |
15275 | (char *) "self", NULL | |
15276 | }; | |
15277 | ||
15278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
15279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15280 | { | |
15281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15282 | result = (arg1)->GetLabel(); | |
15283 | ||
15284 | wxPyEndAllowThreads(__tstate); | |
15285 | if (PyErr_Occurred()) SWIG_fail; | |
15286 | } | |
15287 | { | |
15288 | #if wxUSE_UNICODE | |
15289 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15290 | #else | |
15291 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15292 | #endif | |
15293 | } | |
15294 | return resultobj; | |
15295 | fail: | |
15296 | return NULL; | |
15297 | } | |
15298 | ||
15299 | ||
15300 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15301 | PyObject *resultobj; | |
15302 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15303 | wxString result; | |
15304 | PyObject * obj0 = 0 ; | |
15305 | char *kwnames[] = { | |
15306 | (char *) "self", NULL | |
15307 | }; | |
15308 | ||
15309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
15310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15311 | { | |
15312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15313 | result = (arg1)->GetShortHelp(); | |
15314 | ||
15315 | wxPyEndAllowThreads(__tstate); | |
15316 | if (PyErr_Occurred()) SWIG_fail; | |
15317 | } | |
15318 | { | |
15319 | #if wxUSE_UNICODE | |
15320 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15321 | #else | |
15322 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15323 | #endif | |
15324 | } | |
15325 | return resultobj; | |
15326 | fail: | |
15327 | return NULL; | |
15328 | } | |
15329 | ||
15330 | ||
15331 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15332 | PyObject *resultobj; | |
15333 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15334 | wxString result; | |
15335 | PyObject * obj0 = 0 ; | |
15336 | char *kwnames[] = { | |
15337 | (char *) "self", NULL | |
15338 | }; | |
15339 | ||
15340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
15341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15342 | { | |
15343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15344 | result = (arg1)->GetLongHelp(); | |
15345 | ||
15346 | wxPyEndAllowThreads(__tstate); | |
15347 | if (PyErr_Occurred()) SWIG_fail; | |
15348 | } | |
15349 | { | |
15350 | #if wxUSE_UNICODE | |
15351 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15352 | #else | |
15353 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15354 | #endif | |
15355 | } | |
15356 | return resultobj; | |
15357 | fail: | |
15358 | return NULL; | |
15359 | } | |
15360 | ||
15361 | ||
15362 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15363 | PyObject *resultobj; | |
15364 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15365 | bool arg2 ; | |
15366 | bool result; | |
15367 | PyObject * obj0 = 0 ; | |
15368 | PyObject * obj1 = 0 ; | |
15369 | char *kwnames[] = { | |
15370 | (char *) "self",(char *) "enable", NULL | |
15371 | }; | |
15372 | ||
15373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15375 | { |
8edf1c75 | 15376 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15377 | if (PyErr_Occurred()) SWIG_fail; |
15378 | } | |
d14a1e28 RD |
15379 | { |
15380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15381 | result = (bool)(arg1)->Enable(arg2); | |
15382 | ||
15383 | wxPyEndAllowThreads(__tstate); | |
15384 | if (PyErr_Occurred()) SWIG_fail; | |
15385 | } | |
4e760a36 | 15386 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15387 | return resultobj; |
15388 | fail: | |
15389 | return NULL; | |
15390 | } | |
15391 | ||
15392 | ||
15393 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15394 | PyObject *resultobj; | |
15395 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15396 | PyObject * obj0 = 0 ; | |
15397 | char *kwnames[] = { | |
15398 | (char *) "self", NULL | |
15399 | }; | |
15400 | ||
15401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
15402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15403 | { | |
15404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15405 | (arg1)->Toggle(); | |
15406 | ||
15407 | wxPyEndAllowThreads(__tstate); | |
15408 | if (PyErr_Occurred()) SWIG_fail; | |
15409 | } | |
15410 | Py_INCREF(Py_None); resultobj = Py_None; | |
15411 | return resultobj; | |
15412 | fail: | |
15413 | return NULL; | |
15414 | } | |
15415 | ||
15416 | ||
15417 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15418 | PyObject *resultobj; | |
15419 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15420 | bool arg2 ; | |
15421 | bool result; | |
15422 | PyObject * obj0 = 0 ; | |
15423 | PyObject * obj1 = 0 ; | |
15424 | char *kwnames[] = { | |
15425 | (char *) "self",(char *) "toggle", NULL | |
15426 | }; | |
15427 | ||
15428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
15429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15430 | { |
8edf1c75 | 15431 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15432 | if (PyErr_Occurred()) SWIG_fail; |
15433 | } | |
d14a1e28 RD |
15434 | { |
15435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15436 | result = (bool)(arg1)->SetToggle(arg2); | |
15437 | ||
15438 | wxPyEndAllowThreads(__tstate); | |
15439 | if (PyErr_Occurred()) SWIG_fail; | |
15440 | } | |
4e760a36 | 15441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15442 | return resultobj; |
15443 | fail: | |
15444 | return NULL; | |
15445 | } | |
15446 | ||
15447 | ||
15448 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15449 | PyObject *resultobj; | |
15450 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15451 | wxString *arg2 = 0 ; | |
15452 | bool result; | |
423f194a | 15453 | bool temp2 = False ; |
d14a1e28 RD |
15454 | PyObject * obj0 = 0 ; |
15455 | PyObject * obj1 = 0 ; | |
15456 | char *kwnames[] = { | |
15457 | (char *) "self",(char *) "help", NULL | |
15458 | }; | |
15459 | ||
15460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
15461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15462 | { | |
15463 | arg2 = wxString_in_helper(obj1); | |
15464 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15465 | temp2 = True; |
d14a1e28 RD |
15466 | } |
15467 | { | |
15468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15469 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
15470 | ||
15471 | wxPyEndAllowThreads(__tstate); | |
15472 | if (PyErr_Occurred()) SWIG_fail; | |
15473 | } | |
4e760a36 | 15474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15475 | { |
15476 | if (temp2) | |
15477 | delete arg2; | |
15478 | } | |
15479 | return resultobj; | |
15480 | fail: | |
15481 | { | |
15482 | if (temp2) | |
15483 | delete arg2; | |
15484 | } | |
15485 | return NULL; | |
15486 | } | |
15487 | ||
15488 | ||
15489 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15490 | PyObject *resultobj; | |
15491 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15492 | wxString *arg2 = 0 ; | |
15493 | bool result; | |
423f194a | 15494 | bool temp2 = False ; |
d14a1e28 RD |
15495 | PyObject * obj0 = 0 ; |
15496 | PyObject * obj1 = 0 ; | |
15497 | char *kwnames[] = { | |
15498 | (char *) "self",(char *) "help", NULL | |
15499 | }; | |
15500 | ||
15501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15503 | { | |
15504 | arg2 = wxString_in_helper(obj1); | |
15505 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15506 | temp2 = True; |
d14a1e28 RD |
15507 | } |
15508 | { | |
15509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15510 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
15511 | ||
15512 | wxPyEndAllowThreads(__tstate); | |
15513 | if (PyErr_Occurred()) SWIG_fail; | |
15514 | } | |
4e760a36 | 15515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15516 | { |
15517 | if (temp2) | |
15518 | delete arg2; | |
15519 | } | |
15520 | return resultobj; | |
15521 | fail: | |
15522 | { | |
15523 | if (temp2) | |
15524 | delete arg2; | |
15525 | } | |
15526 | return NULL; | |
15527 | } | |
15528 | ||
15529 | ||
15530 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15531 | PyObject *resultobj; | |
15532 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15533 | wxBitmap *arg2 = 0 ; | |
15534 | PyObject * obj0 = 0 ; | |
15535 | PyObject * obj1 = 0 ; | |
15536 | char *kwnames[] = { | |
15537 | (char *) "self",(char *) "bmp", NULL | |
15538 | }; | |
15539 | ||
15540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15542 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15543 | if (arg2 == NULL) { | |
15544 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15545 | } | |
15546 | { | |
15547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15548 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
15549 | ||
15550 | wxPyEndAllowThreads(__tstate); | |
15551 | if (PyErr_Occurred()) SWIG_fail; | |
15552 | } | |
15553 | Py_INCREF(Py_None); resultobj = Py_None; | |
15554 | return resultobj; | |
15555 | fail: | |
15556 | return NULL; | |
15557 | } | |
15558 | ||
15559 | ||
15560 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15561 | PyObject *resultobj; | |
15562 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15563 | wxBitmap *arg2 = 0 ; | |
15564 | PyObject * obj0 = 0 ; | |
15565 | PyObject * obj1 = 0 ; | |
15566 | char *kwnames[] = { | |
15567 | (char *) "self",(char *) "bmp", NULL | |
15568 | }; | |
15569 | ||
15570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15572 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15573 | if (arg2 == NULL) { | |
15574 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15575 | } | |
15576 | { | |
15577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15578 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
15579 | ||
15580 | wxPyEndAllowThreads(__tstate); | |
15581 | if (PyErr_Occurred()) SWIG_fail; | |
15582 | } | |
15583 | Py_INCREF(Py_None); resultobj = Py_None; | |
15584 | return resultobj; | |
15585 | fail: | |
15586 | return NULL; | |
15587 | } | |
15588 | ||
15589 | ||
15590 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15591 | PyObject *resultobj; | |
15592 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15593 | wxString *arg2 = 0 ; | |
423f194a | 15594 | bool temp2 = False ; |
d14a1e28 RD |
15595 | PyObject * obj0 = 0 ; |
15596 | PyObject * obj1 = 0 ; | |
15597 | char *kwnames[] = { | |
15598 | (char *) "self",(char *) "label", NULL | |
15599 | }; | |
15600 | ||
15601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15603 | { | |
15604 | arg2 = wxString_in_helper(obj1); | |
15605 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15606 | temp2 = True; |
d14a1e28 RD |
15607 | } |
15608 | { | |
15609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15610 | (arg1)->SetLabel((wxString const &)*arg2); | |
15611 | ||
15612 | wxPyEndAllowThreads(__tstate); | |
15613 | if (PyErr_Occurred()) SWIG_fail; | |
15614 | } | |
15615 | Py_INCREF(Py_None); resultobj = Py_None; | |
15616 | { | |
15617 | if (temp2) | |
15618 | delete arg2; | |
15619 | } | |
15620 | return resultobj; | |
15621 | fail: | |
15622 | { | |
15623 | if (temp2) | |
15624 | delete arg2; | |
15625 | } | |
15626 | return NULL; | |
15627 | } | |
15628 | ||
15629 | ||
15630 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15631 | PyObject *resultobj; | |
15632 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15633 | PyObject * obj0 = 0 ; | |
15634 | char *kwnames[] = { | |
15635 | (char *) "self", NULL | |
15636 | }; | |
15637 | ||
15638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
15639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15640 | { | |
15641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15642 | (arg1)->Detach(); | |
15643 | ||
15644 | wxPyEndAllowThreads(__tstate); | |
15645 | if (PyErr_Occurred()) SWIG_fail; | |
15646 | } | |
15647 | Py_INCREF(Py_None); resultobj = Py_None; | |
15648 | return resultobj; | |
15649 | fail: | |
15650 | return NULL; | |
15651 | } | |
15652 | ||
15653 | ||
15654 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15655 | PyObject *resultobj; | |
15656 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15657 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
15658 | PyObject * obj0 = 0 ; | |
15659 | PyObject * obj1 = 0 ; | |
15660 | char *kwnames[] = { | |
15661 | (char *) "self",(char *) "tbar", NULL | |
15662 | }; | |
15663 | ||
15664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15666 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15667 | { | |
15668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15669 | (arg1)->Attach(arg2); | |
15670 | ||
15671 | wxPyEndAllowThreads(__tstate); | |
15672 | if (PyErr_Occurred()) SWIG_fail; | |
15673 | } | |
15674 | Py_INCREF(Py_None); resultobj = Py_None; | |
15675 | return resultobj; | |
15676 | fail: | |
15677 | return NULL; | |
15678 | } | |
15679 | ||
15680 | ||
15681 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15682 | PyObject *resultobj; | |
15683 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15684 | PyObject *result; | |
15685 | PyObject * obj0 = 0 ; | |
15686 | char *kwnames[] = { | |
15687 | (char *) "self", NULL | |
15688 | }; | |
15689 | ||
15690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15692 | { | |
15693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15694 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
15695 | ||
15696 | wxPyEndAllowThreads(__tstate); | |
15697 | if (PyErr_Occurred()) SWIG_fail; | |
15698 | } | |
15699 | resultobj = result; | |
15700 | return resultobj; | |
15701 | fail: | |
15702 | return NULL; | |
15703 | } | |
15704 | ||
15705 | ||
15706 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15707 | PyObject *resultobj; | |
15708 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15709 | PyObject *arg2 = (PyObject *) 0 ; | |
15710 | PyObject * obj0 = 0 ; | |
15711 | PyObject * obj1 = 0 ; | |
15712 | char *kwnames[] = { | |
15713 | (char *) "self",(char *) "clientData", NULL | |
15714 | }; | |
15715 | ||
15716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15718 | arg2 = obj1; | |
15719 | { | |
15720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15721 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
15722 | ||
15723 | wxPyEndAllowThreads(__tstate); | |
15724 | if (PyErr_Occurred()) SWIG_fail; | |
15725 | } | |
15726 | Py_INCREF(Py_None); resultobj = Py_None; | |
15727 | return resultobj; | |
15728 | fail: | |
15729 | return NULL; | |
15730 | } | |
15731 | ||
15732 | ||
15733 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
15734 | PyObject *obj; | |
15735 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15736 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
15737 | Py_INCREF(obj); | |
15738 | return Py_BuildValue((char *)""); | |
15739 | } | |
15740 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15741 | PyObject *resultobj; | |
15742 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15743 | int arg2 ; | |
15744 | wxString *arg3 = 0 ; | |
15745 | wxBitmap *arg4 = 0 ; | |
15746 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
15747 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
15748 | int arg6 = (int) wxITEM_NORMAL ; | |
15749 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15750 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15751 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15752 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15753 | PyObject *arg9 = (PyObject *) NULL ; | |
15754 | wxToolBarToolBase *result; | |
423f194a RD |
15755 | bool temp3 = False ; |
15756 | bool temp7 = False ; | |
15757 | bool temp8 = False ; | |
d14a1e28 | 15758 | PyObject * obj0 = 0 ; |
8edf1c75 | 15759 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15760 | PyObject * obj2 = 0 ; |
15761 | PyObject * obj3 = 0 ; | |
15762 | PyObject * obj4 = 0 ; | |
8edf1c75 | 15763 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15764 | PyObject * obj6 = 0 ; |
15765 | PyObject * obj7 = 0 ; | |
15766 | PyObject * obj8 = 0 ; | |
15767 | char *kwnames[] = { | |
15768 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15769 | }; | |
15770 | ||
8edf1c75 | 15771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 15772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15773 | { |
15774 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15775 | if (PyErr_Occurred()) SWIG_fail; | |
15776 | } | |
d14a1e28 RD |
15777 | { |
15778 | arg3 = wxString_in_helper(obj2); | |
15779 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 15780 | temp3 = True; |
d14a1e28 RD |
15781 | } |
15782 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15783 | if (arg4 == NULL) { | |
15784 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15785 | } | |
15786 | if (obj4) { | |
15787 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15788 | if (arg5 == NULL) { | |
15789 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15790 | } | |
15791 | } | |
8edf1c75 RD |
15792 | if (obj5) { |
15793 | { | |
15794 | arg6 = (wxItemKind) SWIG_PyObj_AsInt(obj5); | |
15795 | if (PyErr_Occurred()) SWIG_fail; | |
15796 | } | |
15797 | } | |
d14a1e28 RD |
15798 | if (obj6) { |
15799 | { | |
15800 | arg7 = wxString_in_helper(obj6); | |
15801 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 15802 | temp7 = True; |
d14a1e28 RD |
15803 | } |
15804 | } | |
15805 | if (obj7) { | |
15806 | { | |
15807 | arg8 = wxString_in_helper(obj7); | |
15808 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 15809 | temp8 = True; |
d14a1e28 RD |
15810 | } |
15811 | } | |
15812 | if (obj8) { | |
15813 | arg9 = obj8; | |
15814 | } | |
15815 | { | |
15816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15817 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
15818 | ||
15819 | wxPyEndAllowThreads(__tstate); | |
15820 | if (PyErr_Occurred()) SWIG_fail; | |
15821 | } | |
15822 | { | |
15823 | resultobj = wxPyMake_wxObject(result); | |
15824 | } | |
15825 | { | |
15826 | if (temp3) | |
15827 | delete arg3; | |
15828 | } | |
15829 | { | |
15830 | if (temp7) | |
15831 | delete arg7; | |
15832 | } | |
15833 | { | |
15834 | if (temp8) | |
15835 | delete arg8; | |
15836 | } | |
15837 | return resultobj; | |
15838 | fail: | |
15839 | { | |
15840 | if (temp3) | |
15841 | delete arg3; | |
15842 | } | |
15843 | { | |
15844 | if (temp7) | |
15845 | delete arg7; | |
15846 | } | |
15847 | { | |
15848 | if (temp8) | |
15849 | delete arg8; | |
15850 | } | |
15851 | return NULL; | |
15852 | } | |
15853 | ||
15854 | ||
15855 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15856 | PyObject *resultobj; | |
15857 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15858 | size_t arg2 ; | |
15859 | int arg3 ; | |
15860 | wxString *arg4 = 0 ; | |
15861 | wxBitmap *arg5 = 0 ; | |
15862 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
15863 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
15864 | int arg7 = (int) wxITEM_NORMAL ; | |
15865 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15866 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15867 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
15868 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
15869 | PyObject *arg10 = (PyObject *) NULL ; | |
15870 | wxToolBarToolBase *result; | |
423f194a RD |
15871 | bool temp4 = False ; |
15872 | bool temp8 = False ; | |
15873 | bool temp9 = False ; | |
d14a1e28 RD |
15874 | PyObject * obj0 = 0 ; |
15875 | PyObject * obj1 = 0 ; | |
8edf1c75 | 15876 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15877 | PyObject * obj3 = 0 ; |
15878 | PyObject * obj4 = 0 ; | |
15879 | PyObject * obj5 = 0 ; | |
8edf1c75 | 15880 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
15881 | PyObject * obj7 = 0 ; |
15882 | PyObject * obj8 = 0 ; | |
15883 | PyObject * obj9 = 0 ; | |
15884 | char *kwnames[] = { | |
15885 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15886 | }; | |
15887 | ||
8edf1c75 | 15888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d14a1e28 | 15889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 15890 | { |
8edf1c75 RD |
15891 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
15892 | if (PyErr_Occurred()) SWIG_fail; | |
15893 | } | |
15894 | { | |
15895 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
15896 | if (PyErr_Occurred()) SWIG_fail; |
15897 | } | |
d14a1e28 RD |
15898 | { |
15899 | arg4 = wxString_in_helper(obj3); | |
15900 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 15901 | temp4 = True; |
d14a1e28 RD |
15902 | } |
15903 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15904 | if (arg5 == NULL) { | |
15905 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15906 | } | |
15907 | if (obj5) { | |
15908 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15909 | if (arg6 == NULL) { | |
15910 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15911 | } | |
15912 | } | |
8edf1c75 RD |
15913 | if (obj6) { |
15914 | { | |
15915 | arg7 = (wxItemKind) SWIG_PyObj_AsInt(obj6); | |
15916 | if (PyErr_Occurred()) SWIG_fail; | |
15917 | } | |
15918 | } | |
d14a1e28 RD |
15919 | if (obj7) { |
15920 | { | |
15921 | arg8 = wxString_in_helper(obj7); | |
15922 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 15923 | temp8 = True; |
d14a1e28 RD |
15924 | } |
15925 | } | |
15926 | if (obj8) { | |
15927 | { | |
15928 | arg9 = wxString_in_helper(obj8); | |
15929 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 15930 | temp9 = True; |
d14a1e28 RD |
15931 | } |
15932 | } | |
15933 | if (obj9) { | |
15934 | arg10 = obj9; | |
15935 | } | |
15936 | { | |
15937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15938 | 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); | |
15939 | ||
15940 | wxPyEndAllowThreads(__tstate); | |
15941 | if (PyErr_Occurred()) SWIG_fail; | |
15942 | } | |
15943 | { | |
15944 | resultobj = wxPyMake_wxObject(result); | |
15945 | } | |
15946 | { | |
15947 | if (temp4) | |
15948 | delete arg4; | |
15949 | } | |
15950 | { | |
15951 | if (temp8) | |
15952 | delete arg8; | |
15953 | } | |
15954 | { | |
15955 | if (temp9) | |
15956 | delete arg9; | |
15957 | } | |
15958 | return resultobj; | |
15959 | fail: | |
15960 | { | |
15961 | if (temp4) | |
15962 | delete arg4; | |
15963 | } | |
15964 | { | |
15965 | if (temp8) | |
15966 | delete arg8; | |
15967 | } | |
15968 | { | |
15969 | if (temp9) | |
15970 | delete arg9; | |
15971 | } | |
15972 | return NULL; | |
15973 | } | |
15974 | ||
15975 | ||
d03fd34d RD |
15976 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
15977 | PyObject *resultobj; | |
15978 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15979 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
15980 | wxToolBarToolBase *result; | |
15981 | PyObject * obj0 = 0 ; | |
15982 | PyObject * obj1 = 0 ; | |
15983 | char *kwnames[] = { | |
15984 | (char *) "self",(char *) "tool", NULL | |
15985 | }; | |
15986 | ||
15987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
15988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15989 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15990 | { | |
15991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15992 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
15993 | ||
15994 | wxPyEndAllowThreads(__tstate); | |
15995 | if (PyErr_Occurred()) SWIG_fail; | |
15996 | } | |
15997 | { | |
15998 | resultobj = wxPyMake_wxObject(result); | |
15999 | } | |
16000 | return resultobj; | |
16001 | fail: | |
16002 | return NULL; | |
16003 | } | |
16004 | ||
16005 | ||
16006 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16007 | PyObject *resultobj; | |
16008 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16009 | size_t arg2 ; | |
16010 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
16011 | wxToolBarToolBase *result; | |
16012 | PyObject * obj0 = 0 ; | |
16013 | PyObject * obj1 = 0 ; | |
16014 | PyObject * obj2 = 0 ; | |
16015 | char *kwnames[] = { | |
16016 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
16017 | }; | |
16018 | ||
16019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16021 | { |
8edf1c75 | 16022 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
16023 | if (PyErr_Occurred()) SWIG_fail; |
16024 | } | |
d03fd34d RD |
16025 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
16026 | { | |
16027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16028 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
16029 | ||
16030 | wxPyEndAllowThreads(__tstate); | |
16031 | if (PyErr_Occurred()) SWIG_fail; | |
16032 | } | |
16033 | { | |
16034 | resultobj = wxPyMake_wxObject(result); | |
16035 | } | |
16036 | return resultobj; | |
16037 | fail: | |
16038 | return NULL; | |
16039 | } | |
16040 | ||
16041 | ||
d14a1e28 RD |
16042 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
16043 | PyObject *resultobj; | |
16044 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16045 | wxControl *arg2 = (wxControl *) 0 ; | |
16046 | wxToolBarToolBase *result; | |
16047 | PyObject * obj0 = 0 ; | |
16048 | PyObject * obj1 = 0 ; | |
16049 | char *kwnames[] = { | |
16050 | (char *) "self",(char *) "control", NULL | |
16051 | }; | |
16052 | ||
16053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
16054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16055 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16056 | { | |
16057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16058 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
16059 | ||
16060 | wxPyEndAllowThreads(__tstate); | |
16061 | if (PyErr_Occurred()) SWIG_fail; | |
16062 | } | |
16063 | { | |
16064 | resultobj = wxPyMake_wxObject(result); | |
16065 | } | |
16066 | return resultobj; | |
16067 | fail: | |
16068 | return NULL; | |
16069 | } | |
16070 | ||
16071 | ||
16072 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16073 | PyObject *resultobj; | |
16074 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16075 | size_t arg2 ; | |
16076 | wxControl *arg3 = (wxControl *) 0 ; | |
16077 | wxToolBarToolBase *result; | |
16078 | PyObject * obj0 = 0 ; | |
16079 | PyObject * obj1 = 0 ; | |
16080 | PyObject * obj2 = 0 ; | |
16081 | char *kwnames[] = { | |
16082 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
16083 | }; | |
16084 | ||
16085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16087 | { |
8edf1c75 | 16088 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
16089 | if (PyErr_Occurred()) SWIG_fail; |
16090 | } | |
d14a1e28 RD |
16091 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
16092 | { | |
16093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16094 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
16095 | ||
16096 | wxPyEndAllowThreads(__tstate); | |
16097 | if (PyErr_Occurred()) SWIG_fail; | |
16098 | } | |
16099 | { | |
16100 | resultobj = wxPyMake_wxObject(result); | |
16101 | } | |
16102 | return resultobj; | |
16103 | fail: | |
16104 | return NULL; | |
16105 | } | |
16106 | ||
16107 | ||
16108 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16109 | PyObject *resultobj; | |
16110 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16111 | int arg2 ; | |
16112 | wxControl *result; | |
16113 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16114 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16115 | char *kwnames[] = { |
16116 | (char *) "self",(char *) "id", NULL | |
16117 | }; | |
16118 | ||
8edf1c75 | 16119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16121 | { |
16122 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16123 | if (PyErr_Occurred()) SWIG_fail; | |
16124 | } | |
d14a1e28 RD |
16125 | { |
16126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16127 | result = (wxControl *)(arg1)->FindControl(arg2); | |
16128 | ||
16129 | wxPyEndAllowThreads(__tstate); | |
16130 | if (PyErr_Occurred()) SWIG_fail; | |
16131 | } | |
16132 | { | |
16133 | resultobj = wxPyMake_wxObject(result); | |
16134 | } | |
16135 | return resultobj; | |
16136 | fail: | |
16137 | return NULL; | |
16138 | } | |
16139 | ||
16140 | ||
16141 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16142 | PyObject *resultobj; | |
16143 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16144 | wxToolBarToolBase *result; | |
16145 | PyObject * obj0 = 0 ; | |
16146 | char *kwnames[] = { | |
16147 | (char *) "self", NULL | |
16148 | }; | |
16149 | ||
16150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
16151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16152 | { | |
16153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16154 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
16155 | ||
16156 | wxPyEndAllowThreads(__tstate); | |
16157 | if (PyErr_Occurred()) SWIG_fail; | |
16158 | } | |
16159 | { | |
16160 | resultobj = wxPyMake_wxObject(result); | |
16161 | } | |
16162 | return resultobj; | |
16163 | fail: | |
16164 | return NULL; | |
16165 | } | |
16166 | ||
16167 | ||
16168 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16169 | PyObject *resultobj; | |
16170 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16171 | size_t arg2 ; | |
16172 | wxToolBarToolBase *result; | |
16173 | PyObject * obj0 = 0 ; | |
16174 | PyObject * obj1 = 0 ; | |
16175 | char *kwnames[] = { | |
16176 | (char *) "self",(char *) "pos", NULL | |
16177 | }; | |
16178 | ||
16179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
16180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16181 | { |
8edf1c75 | 16182 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
16183 | if (PyErr_Occurred()) SWIG_fail; |
16184 | } | |
d14a1e28 RD |
16185 | { |
16186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16187 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
16188 | ||
16189 | wxPyEndAllowThreads(__tstate); | |
16190 | if (PyErr_Occurred()) SWIG_fail; | |
16191 | } | |
16192 | { | |
16193 | resultobj = wxPyMake_wxObject(result); | |
16194 | } | |
16195 | return resultobj; | |
16196 | fail: | |
16197 | return NULL; | |
16198 | } | |
16199 | ||
16200 | ||
16201 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16202 | PyObject *resultobj; | |
16203 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16204 | int arg2 ; | |
16205 | wxToolBarToolBase *result; | |
16206 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16207 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16208 | char *kwnames[] = { |
16209 | (char *) "self",(char *) "id", NULL | |
16210 | }; | |
16211 | ||
8edf1c75 | 16212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16214 | { |
16215 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16216 | if (PyErr_Occurred()) SWIG_fail; | |
16217 | } | |
d14a1e28 RD |
16218 | { |
16219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16220 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
16221 | ||
16222 | wxPyEndAllowThreads(__tstate); | |
16223 | if (PyErr_Occurred()) SWIG_fail; | |
16224 | } | |
16225 | { | |
16226 | resultobj = wxPyMake_wxObject(result); | |
16227 | } | |
16228 | return resultobj; | |
16229 | fail: | |
16230 | return NULL; | |
16231 | } | |
16232 | ||
16233 | ||
16234 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16235 | PyObject *resultobj; | |
16236 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16237 | size_t arg2 ; | |
16238 | bool result; | |
16239 | PyObject * obj0 = 0 ; | |
16240 | PyObject * obj1 = 0 ; | |
16241 | char *kwnames[] = { | |
16242 | (char *) "self",(char *) "pos", NULL | |
16243 | }; | |
16244 | ||
16245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
16246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16247 | { |
8edf1c75 | 16248 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
16249 | if (PyErr_Occurred()) SWIG_fail; |
16250 | } | |
d14a1e28 RD |
16251 | { |
16252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16253 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
16254 | ||
16255 | wxPyEndAllowThreads(__tstate); | |
16256 | if (PyErr_Occurred()) SWIG_fail; | |
16257 | } | |
4e760a36 | 16258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16259 | return resultobj; |
16260 | fail: | |
16261 | return NULL; | |
16262 | } | |
16263 | ||
16264 | ||
16265 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16266 | PyObject *resultobj; | |
16267 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16268 | int arg2 ; | |
16269 | bool result; | |
16270 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16271 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16272 | char *kwnames[] = { |
16273 | (char *) "self",(char *) "id", NULL | |
16274 | }; | |
16275 | ||
8edf1c75 | 16276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16278 | { |
16279 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16280 | if (PyErr_Occurred()) SWIG_fail; | |
16281 | } | |
d14a1e28 RD |
16282 | { |
16283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16284 | result = (bool)(arg1)->DeleteTool(arg2); | |
16285 | ||
16286 | wxPyEndAllowThreads(__tstate); | |
16287 | if (PyErr_Occurred()) SWIG_fail; | |
16288 | } | |
4e760a36 | 16289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16290 | return resultobj; |
16291 | fail: | |
16292 | return NULL; | |
16293 | } | |
16294 | ||
16295 | ||
16296 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16297 | PyObject *resultobj; | |
16298 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16299 | PyObject * obj0 = 0 ; | |
16300 | char *kwnames[] = { | |
16301 | (char *) "self", NULL | |
16302 | }; | |
16303 | ||
16304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
16305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16306 | { | |
16307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16308 | (arg1)->ClearTools(); | |
16309 | ||
16310 | wxPyEndAllowThreads(__tstate); | |
16311 | if (PyErr_Occurred()) SWIG_fail; | |
16312 | } | |
16313 | Py_INCREF(Py_None); resultobj = Py_None; | |
16314 | return resultobj; | |
16315 | fail: | |
16316 | return NULL; | |
16317 | } | |
16318 | ||
16319 | ||
16320 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16321 | PyObject *resultobj; | |
16322 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16323 | bool result; | |
16324 | PyObject * obj0 = 0 ; | |
16325 | char *kwnames[] = { | |
16326 | (char *) "self", NULL | |
16327 | }; | |
16328 | ||
16329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
16330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16331 | { | |
16332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16333 | result = (bool)(arg1)->Realize(); | |
16334 | ||
16335 | wxPyEndAllowThreads(__tstate); | |
16336 | if (PyErr_Occurred()) SWIG_fail; | |
16337 | } | |
4e760a36 | 16338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16339 | return resultobj; |
16340 | fail: | |
16341 | return NULL; | |
16342 | } | |
16343 | ||
16344 | ||
16345 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16346 | PyObject *resultobj; | |
16347 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16348 | int arg2 ; | |
16349 | bool arg3 ; | |
16350 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16351 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16352 | PyObject * obj2 = 0 ; |
16353 | char *kwnames[] = { | |
16354 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
16355 | }; | |
16356 | ||
8edf1c75 | 16357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 16359 | { |
8edf1c75 RD |
16360 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16361 | if (PyErr_Occurred()) SWIG_fail; | |
16362 | } | |
16363 | { | |
16364 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
16365 | if (PyErr_Occurred()) SWIG_fail; |
16366 | } | |
d14a1e28 RD |
16367 | { |
16368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16369 | (arg1)->EnableTool(arg2,arg3); | |
16370 | ||
16371 | wxPyEndAllowThreads(__tstate); | |
16372 | if (PyErr_Occurred()) SWIG_fail; | |
16373 | } | |
16374 | Py_INCREF(Py_None); resultobj = Py_None; | |
16375 | return resultobj; | |
16376 | fail: | |
16377 | return NULL; | |
16378 | } | |
16379 | ||
16380 | ||
16381 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16382 | PyObject *resultobj; | |
16383 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16384 | int arg2 ; | |
16385 | bool arg3 ; | |
16386 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16387 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16388 | PyObject * obj2 = 0 ; |
16389 | char *kwnames[] = { | |
16390 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16391 | }; | |
16392 | ||
8edf1c75 | 16393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 16395 | { |
8edf1c75 RD |
16396 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16397 | if (PyErr_Occurred()) SWIG_fail; | |
16398 | } | |
16399 | { | |
16400 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
16401 | if (PyErr_Occurred()) SWIG_fail; |
16402 | } | |
d14a1e28 RD |
16403 | { |
16404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16405 | (arg1)->ToggleTool(arg2,arg3); | |
16406 | ||
16407 | wxPyEndAllowThreads(__tstate); | |
16408 | if (PyErr_Occurred()) SWIG_fail; | |
16409 | } | |
16410 | Py_INCREF(Py_None); resultobj = Py_None; | |
16411 | return resultobj; | |
16412 | fail: | |
16413 | return NULL; | |
16414 | } | |
16415 | ||
16416 | ||
16417 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16418 | PyObject *resultobj; | |
16419 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16420 | int arg2 ; | |
16421 | bool arg3 ; | |
16422 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16423 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16424 | PyObject * obj2 = 0 ; |
16425 | char *kwnames[] = { | |
16426 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16427 | }; | |
16428 | ||
8edf1c75 | 16429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 16431 | { |
8edf1c75 RD |
16432 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
16433 | if (PyErr_Occurred()) SWIG_fail; | |
16434 | } | |
16435 | { | |
16436 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
16437 | if (PyErr_Occurred()) SWIG_fail; |
16438 | } | |
d14a1e28 RD |
16439 | { |
16440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16441 | (arg1)->SetToggle(arg2,arg3); | |
16442 | ||
16443 | wxPyEndAllowThreads(__tstate); | |
16444 | if (PyErr_Occurred()) SWIG_fail; | |
16445 | } | |
16446 | Py_INCREF(Py_None); resultobj = Py_None; | |
16447 | return resultobj; | |
16448 | fail: | |
16449 | return NULL; | |
16450 | } | |
16451 | ||
16452 | ||
16453 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16454 | PyObject *resultobj; | |
16455 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16456 | int arg2 ; | |
16457 | PyObject *result; | |
16458 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16459 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16460 | char *kwnames[] = { |
16461 | (char *) "self",(char *) "id", NULL | |
16462 | }; | |
16463 | ||
8edf1c75 | 16464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16466 | { |
16467 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16468 | if (PyErr_Occurred()) SWIG_fail; | |
16469 | } | |
d14a1e28 RD |
16470 | { |
16471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16472 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
16473 | ||
16474 | wxPyEndAllowThreads(__tstate); | |
16475 | if (PyErr_Occurred()) SWIG_fail; | |
16476 | } | |
16477 | resultobj = result; | |
16478 | return resultobj; | |
16479 | fail: | |
16480 | return NULL; | |
16481 | } | |
16482 | ||
16483 | ||
16484 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16485 | PyObject *resultobj; | |
16486 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16487 | int arg2 ; | |
16488 | PyObject *arg3 = (PyObject *) 0 ; | |
16489 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16490 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16491 | PyObject * obj2 = 0 ; |
16492 | char *kwnames[] = { | |
16493 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
16494 | }; | |
16495 | ||
8edf1c75 | 16496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16498 | { |
16499 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16500 | if (PyErr_Occurred()) SWIG_fail; | |
16501 | } | |
d14a1e28 RD |
16502 | arg3 = obj2; |
16503 | { | |
16504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16505 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
16506 | ||
16507 | wxPyEndAllowThreads(__tstate); | |
16508 | if (PyErr_Occurred()) SWIG_fail; | |
16509 | } | |
16510 | Py_INCREF(Py_None); resultobj = Py_None; | |
16511 | return resultobj; | |
16512 | fail: | |
16513 | return NULL; | |
16514 | } | |
16515 | ||
16516 | ||
16517 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16518 | PyObject *resultobj; | |
16519 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16520 | int arg2 ; | |
16521 | int result; | |
16522 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16523 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16524 | char *kwnames[] = { |
16525 | (char *) "self",(char *) "id", NULL | |
16526 | }; | |
16527 | ||
8edf1c75 | 16528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16530 | { |
16531 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16532 | if (PyErr_Occurred()) SWIG_fail; | |
16533 | } | |
d14a1e28 RD |
16534 | { |
16535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16536 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
16537 | ||
16538 | wxPyEndAllowThreads(__tstate); | |
16539 | if (PyErr_Occurred()) SWIG_fail; | |
16540 | } | |
8edf1c75 | 16541 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16542 | return resultobj; |
16543 | fail: | |
16544 | return NULL; | |
16545 | } | |
16546 | ||
16547 | ||
16548 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16549 | PyObject *resultobj; | |
16550 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16551 | int arg2 ; | |
16552 | bool result; | |
16553 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16554 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16555 | char *kwnames[] = { |
16556 | (char *) "self",(char *) "id", NULL | |
16557 | }; | |
16558 | ||
8edf1c75 | 16559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16561 | { |
16562 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16563 | if (PyErr_Occurred()) SWIG_fail; | |
16564 | } | |
d14a1e28 RD |
16565 | { |
16566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16567 | result = (bool)(arg1)->GetToolState(arg2); | |
16568 | ||
16569 | wxPyEndAllowThreads(__tstate); | |
16570 | if (PyErr_Occurred()) SWIG_fail; | |
16571 | } | |
4e760a36 | 16572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16573 | return resultobj; |
16574 | fail: | |
16575 | return NULL; | |
16576 | } | |
16577 | ||
16578 | ||
16579 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16580 | PyObject *resultobj; | |
16581 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16582 | int arg2 ; | |
16583 | bool result; | |
16584 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16585 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16586 | char *kwnames[] = { |
16587 | (char *) "self",(char *) "id", NULL | |
16588 | }; | |
16589 | ||
8edf1c75 | 16590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16592 | { |
16593 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16594 | if (PyErr_Occurred()) SWIG_fail; | |
16595 | } | |
d14a1e28 RD |
16596 | { |
16597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16598 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
16599 | ||
16600 | wxPyEndAllowThreads(__tstate); | |
16601 | if (PyErr_Occurred()) SWIG_fail; | |
16602 | } | |
4e760a36 | 16603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16604 | return resultobj; |
16605 | fail: | |
16606 | return NULL; | |
16607 | } | |
16608 | ||
16609 | ||
16610 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16611 | PyObject *resultobj; | |
16612 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16613 | int arg2 ; | |
16614 | wxString *arg3 = 0 ; | |
423f194a | 16615 | bool temp3 = False ; |
d14a1e28 | 16616 | PyObject * obj0 = 0 ; |
8edf1c75 | 16617 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16618 | PyObject * obj2 = 0 ; |
16619 | char *kwnames[] = { | |
16620 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16621 | }; | |
16622 | ||
8edf1c75 | 16623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16625 | { |
16626 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16627 | if (PyErr_Occurred()) SWIG_fail; | |
16628 | } | |
d14a1e28 RD |
16629 | { |
16630 | arg3 = wxString_in_helper(obj2); | |
16631 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16632 | temp3 = True; |
d14a1e28 RD |
16633 | } |
16634 | { | |
16635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16636 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
16637 | ||
16638 | wxPyEndAllowThreads(__tstate); | |
16639 | if (PyErr_Occurred()) SWIG_fail; | |
16640 | } | |
16641 | Py_INCREF(Py_None); resultobj = Py_None; | |
16642 | { | |
16643 | if (temp3) | |
16644 | delete arg3; | |
16645 | } | |
16646 | return resultobj; | |
16647 | fail: | |
16648 | { | |
16649 | if (temp3) | |
16650 | delete arg3; | |
16651 | } | |
16652 | return NULL; | |
16653 | } | |
16654 | ||
16655 | ||
16656 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16657 | PyObject *resultobj; | |
16658 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16659 | int arg2 ; | |
16660 | wxString result; | |
16661 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16662 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16663 | char *kwnames[] = { |
16664 | (char *) "self",(char *) "id", NULL | |
16665 | }; | |
16666 | ||
8edf1c75 | 16667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16669 | { |
16670 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16671 | if (PyErr_Occurred()) SWIG_fail; | |
16672 | } | |
d14a1e28 RD |
16673 | { |
16674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16675 | result = (arg1)->GetToolShortHelp(arg2); | |
16676 | ||
16677 | wxPyEndAllowThreads(__tstate); | |
16678 | if (PyErr_Occurred()) SWIG_fail; | |
16679 | } | |
16680 | { | |
16681 | #if wxUSE_UNICODE | |
16682 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16683 | #else | |
16684 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16685 | #endif | |
16686 | } | |
16687 | return resultobj; | |
16688 | fail: | |
16689 | return NULL; | |
16690 | } | |
16691 | ||
16692 | ||
16693 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16694 | PyObject *resultobj; | |
16695 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16696 | int arg2 ; | |
16697 | wxString *arg3 = 0 ; | |
423f194a | 16698 | bool temp3 = False ; |
d14a1e28 | 16699 | PyObject * obj0 = 0 ; |
8edf1c75 | 16700 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16701 | PyObject * obj2 = 0 ; |
16702 | char *kwnames[] = { | |
16703 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16704 | }; | |
16705 | ||
8edf1c75 | 16706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16708 | { |
16709 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16710 | if (PyErr_Occurred()) SWIG_fail; | |
16711 | } | |
d14a1e28 RD |
16712 | { |
16713 | arg3 = wxString_in_helper(obj2); | |
16714 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16715 | temp3 = True; |
d14a1e28 RD |
16716 | } |
16717 | { | |
16718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16719 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
16720 | ||
16721 | wxPyEndAllowThreads(__tstate); | |
16722 | if (PyErr_Occurred()) SWIG_fail; | |
16723 | } | |
16724 | Py_INCREF(Py_None); resultobj = Py_None; | |
16725 | { | |
16726 | if (temp3) | |
16727 | delete arg3; | |
16728 | } | |
16729 | return resultobj; | |
16730 | fail: | |
16731 | { | |
16732 | if (temp3) | |
16733 | delete arg3; | |
16734 | } | |
16735 | return NULL; | |
16736 | } | |
16737 | ||
16738 | ||
16739 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16740 | PyObject *resultobj; | |
16741 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16742 | int arg2 ; | |
16743 | wxString result; | |
16744 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16745 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16746 | char *kwnames[] = { |
16747 | (char *) "self",(char *) "id", NULL | |
16748 | }; | |
16749 | ||
8edf1c75 | 16750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16752 | { |
16753 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16754 | if (PyErr_Occurred()) SWIG_fail; | |
16755 | } | |
d14a1e28 RD |
16756 | { |
16757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16758 | result = (arg1)->GetToolLongHelp(arg2); | |
16759 | ||
16760 | wxPyEndAllowThreads(__tstate); | |
16761 | if (PyErr_Occurred()) SWIG_fail; | |
16762 | } | |
16763 | { | |
16764 | #if wxUSE_UNICODE | |
16765 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16766 | #else | |
16767 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16768 | #endif | |
16769 | } | |
16770 | return resultobj; | |
16771 | fail: | |
16772 | return NULL; | |
16773 | } | |
16774 | ||
16775 | ||
16776 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16777 | PyObject *resultobj; | |
16778 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16779 | int arg2 ; | |
16780 | int arg3 ; | |
16781 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16782 | PyObject * obj1 = 0 ; |
16783 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16784 | char *kwnames[] = { |
16785 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16786 | }; | |
16787 | ||
8edf1c75 | 16788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16790 | { |
16791 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16792 | if (PyErr_Occurred()) SWIG_fail; | |
16793 | } | |
16794 | { | |
16795 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16796 | if (PyErr_Occurred()) SWIG_fail; | |
16797 | } | |
d14a1e28 RD |
16798 | { |
16799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16800 | (arg1)->SetMargins(arg2,arg3); | |
16801 | ||
16802 | wxPyEndAllowThreads(__tstate); | |
16803 | if (PyErr_Occurred()) SWIG_fail; | |
16804 | } | |
16805 | Py_INCREF(Py_None); resultobj = Py_None; | |
16806 | return resultobj; | |
16807 | fail: | |
16808 | return NULL; | |
16809 | } | |
16810 | ||
16811 | ||
16812 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16813 | PyObject *resultobj; | |
16814 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16815 | wxSize *arg2 = 0 ; | |
16816 | wxSize temp2 ; | |
16817 | PyObject * obj0 = 0 ; | |
16818 | PyObject * obj1 = 0 ; | |
16819 | char *kwnames[] = { | |
16820 | (char *) "self",(char *) "size", NULL | |
16821 | }; | |
16822 | ||
16823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
16824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16825 | { | |
16826 | arg2 = &temp2; | |
16827 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16828 | } | |
16829 | { | |
16830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16831 | (arg1)->SetMargins((wxSize const &)*arg2); | |
16832 | ||
16833 | wxPyEndAllowThreads(__tstate); | |
16834 | if (PyErr_Occurred()) SWIG_fail; | |
16835 | } | |
16836 | Py_INCREF(Py_None); resultobj = Py_None; | |
16837 | return resultobj; | |
16838 | fail: | |
16839 | return NULL; | |
16840 | } | |
16841 | ||
16842 | ||
16843 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16844 | PyObject *resultobj; | |
16845 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16846 | int arg2 ; | |
16847 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16848 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16849 | char *kwnames[] = { |
16850 | (char *) "self",(char *) "packing", NULL | |
16851 | }; | |
16852 | ||
8edf1c75 | 16853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16855 | { |
16856 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16857 | if (PyErr_Occurred()) SWIG_fail; | |
16858 | } | |
d14a1e28 RD |
16859 | { |
16860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16861 | (arg1)->SetToolPacking(arg2); | |
16862 | ||
16863 | wxPyEndAllowThreads(__tstate); | |
16864 | if (PyErr_Occurred()) SWIG_fail; | |
16865 | } | |
16866 | Py_INCREF(Py_None); resultobj = Py_None; | |
16867 | return resultobj; | |
16868 | fail: | |
16869 | return NULL; | |
16870 | } | |
16871 | ||
16872 | ||
16873 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16874 | PyObject *resultobj; | |
16875 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16876 | int arg2 ; | |
16877 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16878 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16879 | char *kwnames[] = { |
16880 | (char *) "self",(char *) "separation", NULL | |
16881 | }; | |
16882 | ||
8edf1c75 | 16883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16885 | { |
16886 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16887 | if (PyErr_Occurred()) SWIG_fail; | |
16888 | } | |
d14a1e28 RD |
16889 | { |
16890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16891 | (arg1)->SetToolSeparation(arg2); | |
16892 | ||
16893 | wxPyEndAllowThreads(__tstate); | |
16894 | if (PyErr_Occurred()) SWIG_fail; | |
16895 | } | |
16896 | Py_INCREF(Py_None); resultobj = Py_None; | |
16897 | return resultobj; | |
16898 | fail: | |
16899 | return NULL; | |
16900 | } | |
16901 | ||
16902 | ||
16903 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16904 | PyObject *resultobj; | |
16905 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16906 | wxSize result; | |
16907 | PyObject * obj0 = 0 ; | |
16908 | char *kwnames[] = { | |
16909 | (char *) "self", NULL | |
16910 | }; | |
16911 | ||
16912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
16913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16914 | { | |
16915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16916 | result = (arg1)->GetToolMargins(); | |
16917 | ||
16918 | wxPyEndAllowThreads(__tstate); | |
16919 | if (PyErr_Occurred()) SWIG_fail; | |
16920 | } | |
16921 | { | |
16922 | wxSize * resultptr; | |
16923 | resultptr = new wxSize((wxSize &) result); | |
16924 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16925 | } | |
16926 | return resultobj; | |
16927 | fail: | |
16928 | return NULL; | |
16929 | } | |
16930 | ||
16931 | ||
16932 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16933 | PyObject *resultobj; | |
16934 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16935 | wxSize result; | |
16936 | PyObject * obj0 = 0 ; | |
16937 | char *kwnames[] = { | |
16938 | (char *) "self", NULL | |
16939 | }; | |
16940 | ||
16941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
16942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16943 | { | |
16944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16945 | result = (arg1)->GetMargins(); | |
16946 | ||
16947 | wxPyEndAllowThreads(__tstate); | |
16948 | if (PyErr_Occurred()) SWIG_fail; | |
16949 | } | |
16950 | { | |
16951 | wxSize * resultptr; | |
16952 | resultptr = new wxSize((wxSize &) result); | |
16953 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16954 | } | |
16955 | return resultobj; | |
16956 | fail: | |
16957 | return NULL; | |
16958 | } | |
16959 | ||
16960 | ||
16961 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16962 | PyObject *resultobj; | |
16963 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16964 | int result; | |
16965 | PyObject * obj0 = 0 ; | |
16966 | char *kwnames[] = { | |
16967 | (char *) "self", NULL | |
16968 | }; | |
16969 | ||
16970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
16971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16972 | { | |
16973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16974 | result = (int)(arg1)->GetToolPacking(); | |
16975 | ||
16976 | wxPyEndAllowThreads(__tstate); | |
16977 | if (PyErr_Occurred()) SWIG_fail; | |
16978 | } | |
8edf1c75 | 16979 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16980 | return resultobj; |
16981 | fail: | |
16982 | return NULL; | |
16983 | } | |
16984 | ||
16985 | ||
16986 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16987 | PyObject *resultobj; | |
16988 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16989 | int result; | |
16990 | PyObject * obj0 = 0 ; | |
16991 | char *kwnames[] = { | |
16992 | (char *) "self", NULL | |
16993 | }; | |
16994 | ||
16995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
16996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16997 | { | |
16998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16999 | result = (int)(arg1)->GetToolSeparation(); | |
17000 | ||
17001 | wxPyEndAllowThreads(__tstate); | |
17002 | if (PyErr_Occurred()) SWIG_fail; | |
17003 | } | |
8edf1c75 | 17004 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17005 | return resultobj; |
17006 | fail: | |
17007 | return NULL; | |
17008 | } | |
17009 | ||
17010 | ||
17011 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17012 | PyObject *resultobj; | |
17013 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17014 | int arg2 ; | |
17015 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17016 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17017 | char *kwnames[] = { |
17018 | (char *) "self",(char *) "nRows", NULL | |
17019 | }; | |
17020 | ||
8edf1c75 | 17021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17023 | { |
17024 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17025 | if (PyErr_Occurred()) SWIG_fail; | |
17026 | } | |
d14a1e28 RD |
17027 | { |
17028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17029 | (arg1)->SetRows(arg2); | |
17030 | ||
17031 | wxPyEndAllowThreads(__tstate); | |
17032 | if (PyErr_Occurred()) SWIG_fail; | |
17033 | } | |
17034 | Py_INCREF(Py_None); resultobj = Py_None; | |
17035 | return resultobj; | |
17036 | fail: | |
17037 | return NULL; | |
17038 | } | |
17039 | ||
17040 | ||
17041 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17042 | PyObject *resultobj; | |
17043 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17044 | int arg2 ; | |
17045 | int arg3 ; | |
17046 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17047 | PyObject * obj1 = 0 ; |
17048 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17049 | char *kwnames[] = { |
17050 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
17051 | }; | |
17052 | ||
8edf1c75 | 17053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17055 | { |
17056 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17057 | if (PyErr_Occurred()) SWIG_fail; | |
17058 | } | |
17059 | { | |
17060 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17061 | if (PyErr_Occurred()) SWIG_fail; | |
17062 | } | |
d14a1e28 RD |
17063 | { |
17064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17065 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
17066 | ||
17067 | wxPyEndAllowThreads(__tstate); | |
17068 | if (PyErr_Occurred()) SWIG_fail; | |
17069 | } | |
17070 | Py_INCREF(Py_None); resultobj = Py_None; | |
17071 | return resultobj; | |
17072 | fail: | |
17073 | return NULL; | |
17074 | } | |
17075 | ||
17076 | ||
17077 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17078 | PyObject *resultobj; | |
17079 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17080 | int result; | |
17081 | PyObject * obj0 = 0 ; | |
17082 | char *kwnames[] = { | |
17083 | (char *) "self", NULL | |
17084 | }; | |
17085 | ||
17086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
17087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17088 | { | |
17089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17090 | result = (int)(arg1)->GetMaxRows(); | |
17091 | ||
17092 | wxPyEndAllowThreads(__tstate); | |
17093 | if (PyErr_Occurred()) SWIG_fail; | |
17094 | } | |
8edf1c75 | 17095 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17096 | return resultobj; |
17097 | fail: | |
17098 | return NULL; | |
17099 | } | |
17100 | ||
17101 | ||
17102 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17103 | PyObject *resultobj; | |
17104 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17105 | int result; | |
17106 | PyObject * obj0 = 0 ; | |
17107 | char *kwnames[] = { | |
17108 | (char *) "self", NULL | |
17109 | }; | |
17110 | ||
17111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
17112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17113 | { | |
17114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17115 | result = (int)(arg1)->GetMaxCols(); | |
17116 | ||
17117 | wxPyEndAllowThreads(__tstate); | |
17118 | if (PyErr_Occurred()) SWIG_fail; | |
17119 | } | |
8edf1c75 | 17120 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17121 | return resultobj; |
17122 | fail: | |
17123 | return NULL; | |
17124 | } | |
17125 | ||
17126 | ||
17127 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17128 | PyObject *resultobj; | |
17129 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17130 | wxSize *arg2 = 0 ; | |
17131 | wxSize temp2 ; | |
17132 | PyObject * obj0 = 0 ; | |
17133 | PyObject * obj1 = 0 ; | |
17134 | char *kwnames[] = { | |
17135 | (char *) "self",(char *) "size", NULL | |
17136 | }; | |
17137 | ||
17138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
17139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17140 | { | |
17141 | arg2 = &temp2; | |
17142 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17143 | } | |
17144 | { | |
17145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17146 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
17147 | ||
17148 | wxPyEndAllowThreads(__tstate); | |
17149 | if (PyErr_Occurred()) SWIG_fail; | |
17150 | } | |
17151 | Py_INCREF(Py_None); resultobj = Py_None; | |
17152 | return resultobj; | |
17153 | fail: | |
17154 | return NULL; | |
17155 | } | |
17156 | ||
17157 | ||
17158 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17159 | PyObject *resultobj; | |
17160 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17161 | wxSize result; | |
17162 | PyObject * obj0 = 0 ; | |
17163 | char *kwnames[] = { | |
17164 | (char *) "self", NULL | |
17165 | }; | |
17166 | ||
17167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
17168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17169 | { | |
17170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17171 | result = (arg1)->GetToolBitmapSize(); | |
17172 | ||
17173 | wxPyEndAllowThreads(__tstate); | |
17174 | if (PyErr_Occurred()) SWIG_fail; | |
17175 | } | |
17176 | { | |
17177 | wxSize * resultptr; | |
17178 | resultptr = new wxSize((wxSize &) result); | |
17179 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
17180 | } | |
17181 | return resultobj; | |
17182 | fail: | |
17183 | return NULL; | |
17184 | } | |
17185 | ||
17186 | ||
17187 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17188 | PyObject *resultobj; | |
17189 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17190 | wxSize result; | |
17191 | PyObject * obj0 = 0 ; | |
17192 | char *kwnames[] = { | |
17193 | (char *) "self", NULL | |
17194 | }; | |
17195 | ||
17196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
17197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17198 | { | |
17199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17200 | result = (arg1)->GetToolSize(); | |
17201 | ||
17202 | wxPyEndAllowThreads(__tstate); | |
17203 | if (PyErr_Occurred()) SWIG_fail; | |
17204 | } | |
17205 | { | |
17206 | wxSize * resultptr; | |
17207 | resultptr = new wxSize((wxSize &) result); | |
17208 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
17209 | } | |
17210 | return resultobj; | |
17211 | fail: | |
17212 | return NULL; | |
17213 | } | |
17214 | ||
17215 | ||
17216 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17217 | PyObject *resultobj; | |
17218 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
423f194a RD |
17219 | int arg2 ; |
17220 | int arg3 ; | |
d14a1e28 RD |
17221 | wxToolBarToolBase *result; |
17222 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17223 | PyObject * obj1 = 0 ; |
17224 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17225 | char *kwnames[] = { |
17226 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17227 | }; | |
17228 | ||
8edf1c75 | 17229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17231 | { |
17232 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17233 | if (PyErr_Occurred()) SWIG_fail; | |
17234 | } | |
17235 | { | |
17236 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17237 | if (PyErr_Occurred()) SWIG_fail; | |
17238 | } | |
d14a1e28 RD |
17239 | { |
17240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17241 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17242 | ||
17243 | wxPyEndAllowThreads(__tstate); | |
17244 | if (PyErr_Occurred()) SWIG_fail; | |
17245 | } | |
17246 | { | |
17247 | resultobj = wxPyMake_wxObject(result); | |
17248 | } | |
17249 | return resultobj; | |
17250 | fail: | |
17251 | return NULL; | |
17252 | } | |
17253 | ||
17254 | ||
d03fd34d RD |
17255 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
17256 | PyObject *resultobj; | |
17257 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17258 | int arg2 ; | |
17259 | wxToolBarToolBase *result; | |
17260 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17261 | PyObject * obj1 = 0 ; |
d03fd34d RD |
17262 | char *kwnames[] = { |
17263 | (char *) "self",(char *) "toolid", NULL | |
17264 | }; | |
17265 | ||
8edf1c75 | 17266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
d03fd34d | 17267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17268 | { |
17269 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17270 | if (PyErr_Occurred()) SWIG_fail; | |
17271 | } | |
d03fd34d RD |
17272 | { |
17273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17274 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
17275 | ||
17276 | wxPyEndAllowThreads(__tstate); | |
17277 | if (PyErr_Occurred()) SWIG_fail; | |
17278 | } | |
17279 | { | |
17280 | resultobj = wxPyMake_wxObject(result); | |
17281 | } | |
17282 | return resultobj; | |
17283 | fail: | |
17284 | return NULL; | |
17285 | } | |
17286 | ||
17287 | ||
d14a1e28 RD |
17288 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
17289 | PyObject *resultobj; | |
17290 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17291 | bool result; | |
17292 | PyObject * obj0 = 0 ; | |
17293 | char *kwnames[] = { | |
17294 | (char *) "self", NULL | |
17295 | }; | |
17296 | ||
17297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
17298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17299 | { | |
17300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17301 | result = (bool)(arg1)->IsVertical(); | |
17302 | ||
17303 | wxPyEndAllowThreads(__tstate); | |
17304 | if (PyErr_Occurred()) SWIG_fail; | |
17305 | } | |
4e760a36 | 17306 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17307 | return resultobj; |
17308 | fail: | |
17309 | return NULL; | |
17310 | } | |
17311 | ||
17312 | ||
17313 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
17314 | PyObject *obj; | |
17315 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17316 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
17317 | Py_INCREF(obj); | |
17318 | return Py_BuildValue((char *)""); | |
17319 | } | |
17320 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17321 | PyObject *resultobj; | |
17322 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 17323 | int arg2 ; |
d14a1e28 RD |
17324 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17325 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17326 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17327 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17328 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17329 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
17330 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17331 | wxToolBar *result; | |
17332 | wxPoint temp3 ; | |
17333 | wxSize temp4 ; | |
423f194a | 17334 | bool temp6 = False ; |
d14a1e28 | 17335 | PyObject * obj0 = 0 ; |
8edf1c75 | 17336 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17337 | PyObject * obj2 = 0 ; |
17338 | PyObject * obj3 = 0 ; | |
8edf1c75 | 17339 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17340 | PyObject * obj5 = 0 ; |
17341 | char *kwnames[] = { | |
17342 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17343 | }; | |
17344 | ||
8edf1c75 | 17345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 17346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17347 | { |
17348 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17349 | if (PyErr_Occurred()) SWIG_fail; | |
17350 | } | |
d14a1e28 RD |
17351 | if (obj2) { |
17352 | { | |
17353 | arg3 = &temp3; | |
17354 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17355 | } | |
17356 | } | |
17357 | if (obj3) { | |
17358 | { | |
17359 | arg4 = &temp4; | |
17360 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17361 | } | |
17362 | } | |
8edf1c75 RD |
17363 | if (obj4) { |
17364 | { | |
17365 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
17366 | if (PyErr_Occurred()) SWIG_fail; | |
17367 | } | |
17368 | } | |
d14a1e28 RD |
17369 | if (obj5) { |
17370 | { | |
17371 | arg6 = wxString_in_helper(obj5); | |
17372 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 17373 | temp6 = True; |
d14a1e28 RD |
17374 | } |
17375 | } | |
17376 | { | |
17377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17378 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17379 | ||
17380 | wxPyEndAllowThreads(__tstate); | |
17381 | if (PyErr_Occurred()) SWIG_fail; | |
17382 | } | |
17383 | { | |
17384 | resultobj = wxPyMake_wxObject(result); | |
17385 | } | |
17386 | { | |
17387 | if (temp6) | |
17388 | delete arg6; | |
17389 | } | |
17390 | return resultobj; | |
17391 | fail: | |
17392 | { | |
17393 | if (temp6) | |
17394 | delete arg6; | |
17395 | } | |
17396 | return NULL; | |
17397 | } | |
17398 | ||
17399 | ||
17400 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17401 | PyObject *resultobj; | |
17402 | wxToolBar *result; | |
17403 | char *kwnames[] = { | |
17404 | NULL | |
17405 | }; | |
17406 | ||
17407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
17408 | { | |
17409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17410 | result = (wxToolBar *)new wxToolBar(); | |
17411 | ||
17412 | wxPyEndAllowThreads(__tstate); | |
17413 | if (PyErr_Occurred()) SWIG_fail; | |
17414 | } | |
17415 | { | |
17416 | resultobj = wxPyMake_wxObject(result); | |
17417 | } | |
17418 | return resultobj; | |
17419 | fail: | |
17420 | return NULL; | |
17421 | } | |
17422 | ||
17423 | ||
17424 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17425 | PyObject *resultobj; | |
17426 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
17427 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 17428 | int arg3 ; |
d14a1e28 RD |
17429 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17430 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17431 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17432 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17433 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17434 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
17435 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17436 | bool result; | |
17437 | wxPoint temp4 ; | |
17438 | wxSize temp5 ; | |
423f194a | 17439 | bool temp7 = False ; |
d14a1e28 RD |
17440 | PyObject * obj0 = 0 ; |
17441 | PyObject * obj1 = 0 ; | |
8edf1c75 | 17442 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17443 | PyObject * obj3 = 0 ; |
17444 | PyObject * obj4 = 0 ; | |
8edf1c75 | 17445 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17446 | PyObject * obj6 = 0 ; |
17447 | char *kwnames[] = { | |
17448 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17449 | }; | |
17450 | ||
8edf1c75 | 17451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
17452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
17453 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
17454 | { |
17455 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17456 | if (PyErr_Occurred()) SWIG_fail; | |
17457 | } | |
d14a1e28 RD |
17458 | if (obj3) { |
17459 | { | |
17460 | arg4 = &temp4; | |
17461 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17462 | } | |
17463 | } | |
17464 | if (obj4) { | |
17465 | { | |
17466 | arg5 = &temp5; | |
17467 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17468 | } | |
17469 | } | |
8edf1c75 RD |
17470 | if (obj5) { |
17471 | { | |
17472 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
17473 | if (PyErr_Occurred()) SWIG_fail; | |
17474 | } | |
17475 | } | |
d14a1e28 RD |
17476 | if (obj6) { |
17477 | { | |
17478 | arg7 = wxString_in_helper(obj6); | |
17479 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 17480 | temp7 = True; |
d14a1e28 RD |
17481 | } |
17482 | } | |
17483 | { | |
17484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17485 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17486 | ||
17487 | wxPyEndAllowThreads(__tstate); | |
17488 | if (PyErr_Occurred()) SWIG_fail; | |
17489 | } | |
4e760a36 | 17490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17491 | { |
17492 | if (temp7) | |
17493 | delete arg7; | |
17494 | } | |
17495 | return resultobj; | |
17496 | fail: | |
17497 | { | |
17498 | if (temp7) | |
17499 | delete arg7; | |
17500 | } | |
17501 | return NULL; | |
17502 | } | |
17503 | ||
17504 | ||
17505 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17506 | PyObject *resultobj; | |
17507 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
423f194a RD |
17508 | int arg2 ; |
17509 | int arg3 ; | |
d14a1e28 RD |
17510 | wxToolBarToolBase *result; |
17511 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17512 | PyObject * obj1 = 0 ; |
17513 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17514 | char *kwnames[] = { |
17515 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17516 | }; | |
17517 | ||
8edf1c75 | 17518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17520 | { |
17521 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17522 | if (PyErr_Occurred()) SWIG_fail; | |
17523 | } | |
17524 | { | |
17525 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17526 | if (PyErr_Occurred()) SWIG_fail; | |
17527 | } | |
d14a1e28 RD |
17528 | { |
17529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17530 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17531 | ||
17532 | wxPyEndAllowThreads(__tstate); | |
17533 | if (PyErr_Occurred()) SWIG_fail; | |
17534 | } | |
17535 | { | |
17536 | resultobj = wxPyMake_wxObject(result); | |
17537 | } | |
17538 | return resultobj; | |
17539 | fail: | |
17540 | return NULL; | |
17541 | } | |
17542 | ||
17543 | ||
17544 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
17545 | PyObject *obj; | |
17546 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17547 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
17548 | Py_INCREF(obj); | |
17549 | return Py_BuildValue((char *)""); | |
17550 | } | |
8edf1c75 | 17551 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
d03fd34d RD |
17552 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
17553 | return 1; | |
17554 | } | |
17555 | ||
17556 | ||
17557 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
17558 | PyObject *pyobj; | |
17559 | ||
17560 | { | |
17561 | #if wxUSE_UNICODE | |
17562 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17563 | #else | |
17564 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17565 | #endif | |
17566 | } | |
17567 | return pyobj; | |
17568 | } | |
17569 | ||
17570 | ||
d14a1e28 RD |
17571 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
17572 | PyObject *resultobj; | |
17573 | wxColour const &arg1_defvalue = wxNullColour ; | |
17574 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
17575 | wxColour const &arg2_defvalue = wxNullColour ; | |
17576 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
17577 | wxFont const &arg3_defvalue = wxNullFont ; | |
17578 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
17579 | wxListItemAttr *result; | |
17580 | wxColour temp1 ; | |
17581 | wxColour temp2 ; | |
17582 | PyObject * obj0 = 0 ; | |
17583 | PyObject * obj1 = 0 ; | |
17584 | PyObject * obj2 = 0 ; | |
17585 | char *kwnames[] = { | |
17586 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
17587 | }; | |
17588 | ||
17589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17590 | if (obj0) { | |
17591 | { | |
17592 | arg1 = &temp1; | |
17593 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
17594 | } | |
17595 | } | |
17596 | if (obj1) { | |
17597 | { | |
17598 | arg2 = &temp2; | |
17599 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17600 | } | |
17601 | } | |
17602 | if (obj2) { | |
17603 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17604 | if (arg3 == NULL) { | |
17605 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17606 | } | |
17607 | } | |
17608 | { | |
17609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17610 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
17611 | ||
17612 | wxPyEndAllowThreads(__tstate); | |
17613 | if (PyErr_Occurred()) SWIG_fail; | |
17614 | } | |
17615 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 1); | |
17616 | return resultobj; | |
17617 | fail: | |
17618 | return NULL; | |
17619 | } | |
17620 | ||
17621 | ||
17622 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17623 | PyObject *resultobj; | |
17624 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17625 | wxColour *arg2 = 0 ; | |
17626 | wxColour temp2 ; | |
17627 | PyObject * obj0 = 0 ; | |
17628 | PyObject * obj1 = 0 ; | |
17629 | char *kwnames[] = { | |
17630 | (char *) "self",(char *) "colText", NULL | |
17631 | }; | |
17632 | ||
17633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
17634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17635 | { | |
17636 | arg2 = &temp2; | |
17637 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17638 | } | |
17639 | { | |
17640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17641 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
17642 | ||
17643 | wxPyEndAllowThreads(__tstate); | |
17644 | if (PyErr_Occurred()) SWIG_fail; | |
17645 | } | |
17646 | Py_INCREF(Py_None); resultobj = Py_None; | |
17647 | return resultobj; | |
17648 | fail: | |
17649 | return NULL; | |
17650 | } | |
17651 | ||
17652 | ||
17653 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17654 | PyObject *resultobj; | |
17655 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17656 | wxColour *arg2 = 0 ; | |
17657 | wxColour temp2 ; | |
17658 | PyObject * obj0 = 0 ; | |
17659 | PyObject * obj1 = 0 ; | |
17660 | char *kwnames[] = { | |
17661 | (char *) "self",(char *) "colBack", NULL | |
17662 | }; | |
17663 | ||
17664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17666 | { | |
17667 | arg2 = &temp2; | |
17668 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17669 | } | |
17670 | { | |
17671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17672 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17673 | ||
17674 | wxPyEndAllowThreads(__tstate); | |
17675 | if (PyErr_Occurred()) SWIG_fail; | |
17676 | } | |
17677 | Py_INCREF(Py_None); resultobj = Py_None; | |
17678 | return resultobj; | |
17679 | fail: | |
17680 | return NULL; | |
17681 | } | |
17682 | ||
17683 | ||
17684 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17685 | PyObject *resultobj; | |
17686 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17687 | wxFont *arg2 = 0 ; | |
17688 | PyObject * obj0 = 0 ; | |
17689 | PyObject * obj1 = 0 ; | |
17690 | char *kwnames[] = { | |
17691 | (char *) "self",(char *) "font", NULL | |
17692 | }; | |
17693 | ||
17694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
17695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17696 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17697 | if (arg2 == NULL) { | |
17698 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17699 | } | |
17700 | { | |
17701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17702 | (arg1)->SetFont((wxFont const &)*arg2); | |
17703 | ||
17704 | wxPyEndAllowThreads(__tstate); | |
17705 | if (PyErr_Occurred()) SWIG_fail; | |
17706 | } | |
17707 | Py_INCREF(Py_None); resultobj = Py_None; | |
17708 | return resultobj; | |
17709 | fail: | |
17710 | return NULL; | |
17711 | } | |
17712 | ||
17713 | ||
17714 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17715 | PyObject *resultobj; | |
17716 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17717 | bool result; | |
17718 | PyObject * obj0 = 0 ; | |
17719 | char *kwnames[] = { | |
17720 | (char *) "self", NULL | |
17721 | }; | |
17722 | ||
17723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
17724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17725 | { | |
17726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17727 | result = (bool)(arg1)->HasTextColour(); | |
17728 | ||
17729 | wxPyEndAllowThreads(__tstate); | |
17730 | if (PyErr_Occurred()) SWIG_fail; | |
17731 | } | |
4e760a36 | 17732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17733 | return resultobj; |
17734 | fail: | |
17735 | return NULL; | |
17736 | } | |
17737 | ||
17738 | ||
17739 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17740 | PyObject *resultobj; | |
17741 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17742 | bool result; | |
17743 | PyObject * obj0 = 0 ; | |
17744 | char *kwnames[] = { | |
17745 | (char *) "self", NULL | |
17746 | }; | |
17747 | ||
17748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
17749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17750 | { | |
17751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17752 | result = (bool)(arg1)->HasBackgroundColour(); | |
17753 | ||
17754 | wxPyEndAllowThreads(__tstate); | |
17755 | if (PyErr_Occurred()) SWIG_fail; | |
17756 | } | |
4e760a36 | 17757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17758 | return resultobj; |
17759 | fail: | |
17760 | return NULL; | |
17761 | } | |
17762 | ||
17763 | ||
17764 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17765 | PyObject *resultobj; | |
17766 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17767 | bool result; | |
17768 | PyObject * obj0 = 0 ; | |
17769 | char *kwnames[] = { | |
17770 | (char *) "self", NULL | |
17771 | }; | |
17772 | ||
17773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
17774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17775 | { | |
17776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17777 | result = (bool)(arg1)->HasFont(); | |
17778 | ||
17779 | wxPyEndAllowThreads(__tstate); | |
17780 | if (PyErr_Occurred()) SWIG_fail; | |
17781 | } | |
4e760a36 | 17782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17783 | return resultobj; |
17784 | fail: | |
17785 | return NULL; | |
17786 | } | |
17787 | ||
17788 | ||
17789 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17790 | PyObject *resultobj; | |
17791 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17792 | wxColour result; | |
17793 | PyObject * obj0 = 0 ; | |
17794 | char *kwnames[] = { | |
17795 | (char *) "self", NULL | |
17796 | }; | |
17797 | ||
17798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
17799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17800 | { | |
17801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17802 | result = (arg1)->GetTextColour(); | |
17803 | ||
17804 | wxPyEndAllowThreads(__tstate); | |
17805 | if (PyErr_Occurred()) SWIG_fail; | |
17806 | } | |
17807 | { | |
17808 | wxColour * resultptr; | |
17809 | resultptr = new wxColour((wxColour &) result); | |
17810 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17811 | } | |
17812 | return resultobj; | |
17813 | fail: | |
17814 | return NULL; | |
17815 | } | |
17816 | ||
17817 | ||
17818 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17819 | PyObject *resultobj; | |
17820 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17821 | wxColour result; | |
17822 | PyObject * obj0 = 0 ; | |
17823 | char *kwnames[] = { | |
17824 | (char *) "self", NULL | |
17825 | }; | |
17826 | ||
17827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
17828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17829 | { | |
17830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17831 | result = (arg1)->GetBackgroundColour(); | |
17832 | ||
17833 | wxPyEndAllowThreads(__tstate); | |
17834 | if (PyErr_Occurred()) SWIG_fail; | |
17835 | } | |
17836 | { | |
17837 | wxColour * resultptr; | |
17838 | resultptr = new wxColour((wxColour &) result); | |
17839 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17840 | } | |
17841 | return resultobj; | |
17842 | fail: | |
17843 | return NULL; | |
17844 | } | |
17845 | ||
17846 | ||
17847 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17848 | PyObject *resultobj; | |
17849 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17850 | wxFont result; | |
17851 | PyObject * obj0 = 0 ; | |
17852 | char *kwnames[] = { | |
17853 | (char *) "self", NULL | |
17854 | }; | |
17855 | ||
17856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
17857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17858 | { | |
17859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17860 | result = (arg1)->GetFont(); | |
17861 | ||
17862 | wxPyEndAllowThreads(__tstate); | |
17863 | if (PyErr_Occurred()) SWIG_fail; | |
17864 | } | |
17865 | { | |
17866 | wxFont * resultptr; | |
17867 | resultptr = new wxFont((wxFont &) result); | |
17868 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
17869 | } | |
17870 | return resultobj; | |
17871 | fail: | |
17872 | return NULL; | |
17873 | } | |
17874 | ||
17875 | ||
17876 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17877 | PyObject *resultobj; | |
17878 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17879 | PyObject * obj0 = 0 ; | |
17880 | char *kwnames[] = { | |
17881 | (char *) "self", NULL | |
17882 | }; | |
17883 | ||
17884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
17885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17886 | { | |
17887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17888 | wxListItemAttr_Destroy(arg1); | |
17889 | ||
17890 | wxPyEndAllowThreads(__tstate); | |
17891 | if (PyErr_Occurred()) SWIG_fail; | |
17892 | } | |
17893 | Py_INCREF(Py_None); resultobj = Py_None; | |
17894 | return resultobj; | |
17895 | fail: | |
17896 | return NULL; | |
17897 | } | |
17898 | ||
17899 | ||
17900 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
17901 | PyObject *obj; | |
17902 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17903 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
17904 | Py_INCREF(obj); | |
17905 | return Py_BuildValue((char *)""); | |
17906 | } | |
17907 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17908 | PyObject *resultobj; | |
17909 | wxListItem *result; | |
17910 | char *kwnames[] = { | |
17911 | NULL | |
17912 | }; | |
17913 | ||
17914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
17915 | { | |
17916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17917 | result = (wxListItem *)new wxListItem(); | |
17918 | ||
17919 | wxPyEndAllowThreads(__tstate); | |
17920 | if (PyErr_Occurred()) SWIG_fail; | |
17921 | } | |
17922 | { | |
17923 | resultobj = wxPyMake_wxObject(result); | |
17924 | } | |
17925 | return resultobj; | |
17926 | fail: | |
17927 | return NULL; | |
17928 | } | |
17929 | ||
17930 | ||
17931 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17932 | PyObject *resultobj; | |
17933 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17934 | PyObject * obj0 = 0 ; | |
17935 | char *kwnames[] = { | |
17936 | (char *) "self", NULL | |
17937 | }; | |
17938 | ||
17939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
17940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17941 | { | |
17942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17943 | delete arg1; | |
17944 | ||
17945 | wxPyEndAllowThreads(__tstate); | |
17946 | if (PyErr_Occurred()) SWIG_fail; | |
17947 | } | |
17948 | Py_INCREF(Py_None); resultobj = Py_None; | |
17949 | return resultobj; | |
17950 | fail: | |
17951 | return NULL; | |
17952 | } | |
17953 | ||
17954 | ||
17955 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17956 | PyObject *resultobj; | |
17957 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17958 | PyObject * obj0 = 0 ; | |
17959 | char *kwnames[] = { | |
17960 | (char *) "self", NULL | |
17961 | }; | |
17962 | ||
17963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
17964 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17965 | { | |
17966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17967 | (arg1)->Clear(); | |
17968 | ||
17969 | wxPyEndAllowThreads(__tstate); | |
17970 | if (PyErr_Occurred()) SWIG_fail; | |
17971 | } | |
17972 | Py_INCREF(Py_None); resultobj = Py_None; | |
17973 | return resultobj; | |
17974 | fail: | |
17975 | return NULL; | |
17976 | } | |
17977 | ||
17978 | ||
17979 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17980 | PyObject *resultobj; | |
17981 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17982 | PyObject * obj0 = 0 ; | |
17983 | char *kwnames[] = { | |
17984 | (char *) "self", NULL | |
17985 | }; | |
17986 | ||
17987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
17988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17989 | { | |
17990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17991 | (arg1)->ClearAttributes(); | |
17992 | ||
17993 | wxPyEndAllowThreads(__tstate); | |
17994 | if (PyErr_Occurred()) SWIG_fail; | |
17995 | } | |
17996 | Py_INCREF(Py_None); resultobj = Py_None; | |
17997 | return resultobj; | |
17998 | fail: | |
17999 | return NULL; | |
18000 | } | |
18001 | ||
18002 | ||
18003 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18004 | PyObject *resultobj; | |
18005 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18006 | long arg2 ; | |
18007 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18008 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18009 | char *kwnames[] = { |
18010 | (char *) "self",(char *) "mask", NULL | |
18011 | }; | |
18012 | ||
8edf1c75 | 18013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18015 | { |
18016 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18017 | if (PyErr_Occurred()) SWIG_fail; | |
18018 | } | |
d14a1e28 RD |
18019 | { |
18020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18021 | (arg1)->SetMask(arg2); | |
18022 | ||
18023 | wxPyEndAllowThreads(__tstate); | |
18024 | if (PyErr_Occurred()) SWIG_fail; | |
18025 | } | |
18026 | Py_INCREF(Py_None); resultobj = Py_None; | |
18027 | return resultobj; | |
18028 | fail: | |
18029 | return NULL; | |
18030 | } | |
18031 | ||
18032 | ||
18033 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18034 | PyObject *resultobj; | |
18035 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18036 | long arg2 ; | |
18037 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18038 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18039 | char *kwnames[] = { |
18040 | (char *) "self",(char *) "id", NULL | |
18041 | }; | |
18042 | ||
8edf1c75 | 18043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18045 | { |
18046 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18047 | if (PyErr_Occurred()) SWIG_fail; | |
18048 | } | |
d14a1e28 RD |
18049 | { |
18050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18051 | (arg1)->SetId(arg2); | |
18052 | ||
18053 | wxPyEndAllowThreads(__tstate); | |
18054 | if (PyErr_Occurred()) SWIG_fail; | |
18055 | } | |
18056 | Py_INCREF(Py_None); resultobj = Py_None; | |
18057 | return resultobj; | |
18058 | fail: | |
18059 | return NULL; | |
18060 | } | |
18061 | ||
18062 | ||
18063 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18064 | PyObject *resultobj; | |
18065 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18066 | int arg2 ; | |
18067 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18068 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18069 | char *kwnames[] = { |
18070 | (char *) "self",(char *) "col", NULL | |
18071 | }; | |
18072 | ||
8edf1c75 | 18073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18075 | { |
18076 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18077 | if (PyErr_Occurred()) SWIG_fail; | |
18078 | } | |
d14a1e28 RD |
18079 | { |
18080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18081 | (arg1)->SetColumn(arg2); | |
18082 | ||
18083 | wxPyEndAllowThreads(__tstate); | |
18084 | if (PyErr_Occurred()) SWIG_fail; | |
18085 | } | |
18086 | Py_INCREF(Py_None); resultobj = Py_None; | |
18087 | return resultobj; | |
18088 | fail: | |
18089 | return NULL; | |
18090 | } | |
18091 | ||
18092 | ||
18093 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18094 | PyObject *resultobj; | |
18095 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18096 | long arg2 ; | |
18097 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18098 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18099 | char *kwnames[] = { |
18100 | (char *) "self",(char *) "state", NULL | |
18101 | }; | |
18102 | ||
8edf1c75 | 18103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18105 | { |
18106 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18107 | if (PyErr_Occurred()) SWIG_fail; | |
18108 | } | |
d14a1e28 RD |
18109 | { |
18110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18111 | (arg1)->SetState(arg2); | |
18112 | ||
18113 | wxPyEndAllowThreads(__tstate); | |
18114 | if (PyErr_Occurred()) SWIG_fail; | |
18115 | } | |
18116 | Py_INCREF(Py_None); resultobj = Py_None; | |
18117 | return resultobj; | |
18118 | fail: | |
18119 | return NULL; | |
18120 | } | |
18121 | ||
18122 | ||
18123 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18124 | PyObject *resultobj; | |
18125 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18126 | long arg2 ; | |
18127 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18128 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18129 | char *kwnames[] = { |
18130 | (char *) "self",(char *) "stateMask", NULL | |
18131 | }; | |
18132 | ||
8edf1c75 | 18133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18135 | { |
18136 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18137 | if (PyErr_Occurred()) SWIG_fail; | |
18138 | } | |
d14a1e28 RD |
18139 | { |
18140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18141 | (arg1)->SetStateMask(arg2); | |
18142 | ||
18143 | wxPyEndAllowThreads(__tstate); | |
18144 | if (PyErr_Occurred()) SWIG_fail; | |
18145 | } | |
18146 | Py_INCREF(Py_None); resultobj = Py_None; | |
18147 | return resultobj; | |
18148 | fail: | |
18149 | return NULL; | |
18150 | } | |
18151 | ||
18152 | ||
18153 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18154 | PyObject *resultobj; | |
18155 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18156 | wxString *arg2 = 0 ; | |
423f194a | 18157 | bool temp2 = False ; |
d14a1e28 RD |
18158 | PyObject * obj0 = 0 ; |
18159 | PyObject * obj1 = 0 ; | |
18160 | char *kwnames[] = { | |
18161 | (char *) "self",(char *) "text", NULL | |
18162 | }; | |
18163 | ||
18164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18166 | { | |
18167 | arg2 = wxString_in_helper(obj1); | |
18168 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18169 | temp2 = True; |
d14a1e28 RD |
18170 | } |
18171 | { | |
18172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18173 | (arg1)->SetText((wxString const &)*arg2); | |
18174 | ||
18175 | wxPyEndAllowThreads(__tstate); | |
18176 | if (PyErr_Occurred()) SWIG_fail; | |
18177 | } | |
18178 | Py_INCREF(Py_None); resultobj = Py_None; | |
18179 | { | |
18180 | if (temp2) | |
18181 | delete arg2; | |
18182 | } | |
18183 | return resultobj; | |
18184 | fail: | |
18185 | { | |
18186 | if (temp2) | |
18187 | delete arg2; | |
18188 | } | |
18189 | return NULL; | |
18190 | } | |
18191 | ||
18192 | ||
18193 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18194 | PyObject *resultobj; | |
18195 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18196 | int arg2 ; | |
18197 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18198 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18199 | char *kwnames[] = { |
18200 | (char *) "self",(char *) "image", NULL | |
18201 | }; | |
18202 | ||
8edf1c75 | 18203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18205 | { |
18206 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18207 | if (PyErr_Occurred()) SWIG_fail; | |
18208 | } | |
d14a1e28 RD |
18209 | { |
18210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18211 | (arg1)->SetImage(arg2); | |
18212 | ||
18213 | wxPyEndAllowThreads(__tstate); | |
18214 | if (PyErr_Occurred()) SWIG_fail; | |
18215 | } | |
18216 | Py_INCREF(Py_None); resultobj = Py_None; | |
18217 | return resultobj; | |
18218 | fail: | |
18219 | return NULL; | |
18220 | } | |
18221 | ||
18222 | ||
18223 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18224 | PyObject *resultobj; | |
18225 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18226 | long arg2 ; | |
18227 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18228 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18229 | char *kwnames[] = { |
18230 | (char *) "self",(char *) "data", NULL | |
18231 | }; | |
18232 | ||
8edf1c75 | 18233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18235 | { |
18236 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18237 | if (PyErr_Occurred()) SWIG_fail; | |
18238 | } | |
d14a1e28 RD |
18239 | { |
18240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18241 | (arg1)->SetData(arg2); | |
18242 | ||
18243 | wxPyEndAllowThreads(__tstate); | |
18244 | if (PyErr_Occurred()) SWIG_fail; | |
18245 | } | |
18246 | Py_INCREF(Py_None); resultobj = Py_None; | |
18247 | return resultobj; | |
18248 | fail: | |
18249 | return NULL; | |
18250 | } | |
18251 | ||
18252 | ||
18253 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18254 | PyObject *resultobj; | |
18255 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18256 | int arg2 ; | |
18257 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18258 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18259 | char *kwnames[] = { |
18260 | (char *) "self",(char *) "width", NULL | |
18261 | }; | |
18262 | ||
8edf1c75 | 18263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18265 | { |
18266 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18267 | if (PyErr_Occurred()) SWIG_fail; | |
18268 | } | |
d14a1e28 RD |
18269 | { |
18270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18271 | (arg1)->SetWidth(arg2); | |
18272 | ||
18273 | wxPyEndAllowThreads(__tstate); | |
18274 | if (PyErr_Occurred()) SWIG_fail; | |
18275 | } | |
18276 | Py_INCREF(Py_None); resultobj = Py_None; | |
18277 | return resultobj; | |
18278 | fail: | |
18279 | return NULL; | |
18280 | } | |
18281 | ||
18282 | ||
18283 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18284 | PyObject *resultobj; | |
18285 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18286 | int arg2 ; | |
18287 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18288 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18289 | char *kwnames[] = { |
18290 | (char *) "self",(char *) "align", NULL | |
18291 | }; | |
18292 | ||
8edf1c75 | 18293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18295 | { |
18296 | arg2 = (wxListColumnFormat) SWIG_PyObj_AsInt(obj1); | |
18297 | if (PyErr_Occurred()) SWIG_fail; | |
18298 | } | |
d14a1e28 RD |
18299 | { |
18300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18301 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
18302 | ||
18303 | wxPyEndAllowThreads(__tstate); | |
18304 | if (PyErr_Occurred()) SWIG_fail; | |
18305 | } | |
18306 | Py_INCREF(Py_None); resultobj = Py_None; | |
18307 | return resultobj; | |
18308 | fail: | |
18309 | return NULL; | |
18310 | } | |
18311 | ||
18312 | ||
18313 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18314 | PyObject *resultobj; | |
18315 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18316 | wxColour *arg2 = 0 ; | |
18317 | wxColour temp2 ; | |
18318 | PyObject * obj0 = 0 ; | |
18319 | PyObject * obj1 = 0 ; | |
18320 | char *kwnames[] = { | |
18321 | (char *) "self",(char *) "colText", NULL | |
18322 | }; | |
18323 | ||
18324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18326 | { | |
18327 | arg2 = &temp2; | |
18328 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18329 | } | |
18330 | { | |
18331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18332 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18333 | ||
18334 | wxPyEndAllowThreads(__tstate); | |
18335 | if (PyErr_Occurred()) SWIG_fail; | |
18336 | } | |
18337 | Py_INCREF(Py_None); resultobj = Py_None; | |
18338 | return resultobj; | |
18339 | fail: | |
18340 | return NULL; | |
18341 | } | |
18342 | ||
18343 | ||
18344 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18345 | PyObject *resultobj; | |
18346 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18347 | wxColour *arg2 = 0 ; | |
18348 | wxColour temp2 ; | |
18349 | PyObject * obj0 = 0 ; | |
18350 | PyObject * obj1 = 0 ; | |
18351 | char *kwnames[] = { | |
18352 | (char *) "self",(char *) "colBack", NULL | |
18353 | }; | |
18354 | ||
18355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
18356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18357 | { | |
18358 | arg2 = &temp2; | |
18359 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18360 | } | |
18361 | { | |
18362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18363 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18364 | ||
18365 | wxPyEndAllowThreads(__tstate); | |
18366 | if (PyErr_Occurred()) SWIG_fail; | |
18367 | } | |
18368 | Py_INCREF(Py_None); resultobj = Py_None; | |
18369 | return resultobj; | |
18370 | fail: | |
18371 | return NULL; | |
18372 | } | |
18373 | ||
18374 | ||
18375 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18376 | PyObject *resultobj; | |
18377 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18378 | wxFont *arg2 = 0 ; | |
18379 | PyObject * obj0 = 0 ; | |
18380 | PyObject * obj1 = 0 ; | |
18381 | char *kwnames[] = { | |
18382 | (char *) "self",(char *) "font", NULL | |
18383 | }; | |
18384 | ||
18385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
18386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18387 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18388 | if (arg2 == NULL) { | |
18389 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18390 | } | |
18391 | { | |
18392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18393 | (arg1)->SetFont((wxFont const &)*arg2); | |
18394 | ||
18395 | wxPyEndAllowThreads(__tstate); | |
18396 | if (PyErr_Occurred()) SWIG_fail; | |
18397 | } | |
18398 | Py_INCREF(Py_None); resultobj = Py_None; | |
18399 | return resultobj; | |
18400 | fail: | |
18401 | return NULL; | |
18402 | } | |
18403 | ||
18404 | ||
18405 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18406 | PyObject *resultobj; | |
18407 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18408 | long result; | |
18409 | PyObject * obj0 = 0 ; | |
18410 | char *kwnames[] = { | |
18411 | (char *) "self", NULL | |
18412 | }; | |
18413 | ||
18414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
18415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18416 | { | |
18417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18418 | result = (long)(arg1)->GetMask(); | |
18419 | ||
18420 | wxPyEndAllowThreads(__tstate); | |
18421 | if (PyErr_Occurred()) SWIG_fail; | |
18422 | } | |
8edf1c75 | 18423 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18424 | return resultobj; |
18425 | fail: | |
18426 | return NULL; | |
18427 | } | |
18428 | ||
18429 | ||
18430 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18431 | PyObject *resultobj; | |
18432 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18433 | long result; | |
18434 | PyObject * obj0 = 0 ; | |
18435 | char *kwnames[] = { | |
18436 | (char *) "self", NULL | |
18437 | }; | |
18438 | ||
18439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
18440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18441 | { | |
18442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18443 | result = (long)(arg1)->GetId(); | |
18444 | ||
18445 | wxPyEndAllowThreads(__tstate); | |
18446 | if (PyErr_Occurred()) SWIG_fail; | |
18447 | } | |
8edf1c75 | 18448 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18449 | return resultobj; |
18450 | fail: | |
18451 | return NULL; | |
18452 | } | |
18453 | ||
18454 | ||
18455 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18456 | PyObject *resultobj; | |
18457 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18458 | int result; | |
18459 | PyObject * obj0 = 0 ; | |
18460 | char *kwnames[] = { | |
18461 | (char *) "self", NULL | |
18462 | }; | |
18463 | ||
18464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
18465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18466 | { | |
18467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18468 | result = (int)(arg1)->GetColumn(); | |
18469 | ||
18470 | wxPyEndAllowThreads(__tstate); | |
18471 | if (PyErr_Occurred()) SWIG_fail; | |
18472 | } | |
8edf1c75 | 18473 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18474 | return resultobj; |
18475 | fail: | |
18476 | return NULL; | |
18477 | } | |
18478 | ||
18479 | ||
18480 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18481 | PyObject *resultobj; | |
18482 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18483 | long result; | |
18484 | PyObject * obj0 = 0 ; | |
18485 | char *kwnames[] = { | |
18486 | (char *) "self", NULL | |
18487 | }; | |
18488 | ||
18489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
18490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18491 | { | |
18492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18493 | result = (long)(arg1)->GetState(); | |
18494 | ||
18495 | wxPyEndAllowThreads(__tstate); | |
18496 | if (PyErr_Occurred()) SWIG_fail; | |
18497 | } | |
8edf1c75 | 18498 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18499 | return resultobj; |
18500 | fail: | |
18501 | return NULL; | |
18502 | } | |
18503 | ||
18504 | ||
18505 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18506 | PyObject *resultobj; | |
18507 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18508 | wxString *result; | |
18509 | PyObject * obj0 = 0 ; | |
18510 | char *kwnames[] = { | |
18511 | (char *) "self", NULL | |
18512 | }; | |
18513 | ||
18514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
18515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18516 | { | |
18517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18518 | { | |
18519 | wxString const &_result_ref = (arg1)->GetText(); | |
18520 | result = (wxString *) &_result_ref; | |
18521 | } | |
18522 | ||
18523 | wxPyEndAllowThreads(__tstate); | |
18524 | if (PyErr_Occurred()) SWIG_fail; | |
18525 | } | |
f0983263 RD |
18526 | { |
18527 | #if wxUSE_UNICODE | |
18528 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18529 | #else | |
18530 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18531 | #endif | |
18532 | } | |
d14a1e28 RD |
18533 | return resultobj; |
18534 | fail: | |
18535 | return NULL; | |
18536 | } | |
18537 | ||
18538 | ||
18539 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18540 | PyObject *resultobj; | |
18541 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18542 | int result; | |
18543 | PyObject * obj0 = 0 ; | |
18544 | char *kwnames[] = { | |
18545 | (char *) "self", NULL | |
18546 | }; | |
18547 | ||
18548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
18549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18550 | { | |
18551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18552 | result = (int)(arg1)->GetImage(); | |
18553 | ||
18554 | wxPyEndAllowThreads(__tstate); | |
18555 | if (PyErr_Occurred()) SWIG_fail; | |
18556 | } | |
8edf1c75 | 18557 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18558 | return resultobj; |
18559 | fail: | |
18560 | return NULL; | |
18561 | } | |
18562 | ||
18563 | ||
18564 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18565 | PyObject *resultobj; | |
18566 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18567 | long result; | |
18568 | PyObject * obj0 = 0 ; | |
18569 | char *kwnames[] = { | |
18570 | (char *) "self", NULL | |
18571 | }; | |
18572 | ||
18573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
18574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18575 | { | |
18576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18577 | result = (long)(arg1)->GetData(); | |
18578 | ||
18579 | wxPyEndAllowThreads(__tstate); | |
18580 | if (PyErr_Occurred()) SWIG_fail; | |
18581 | } | |
8edf1c75 | 18582 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18583 | return resultobj; |
18584 | fail: | |
18585 | return NULL; | |
18586 | } | |
18587 | ||
18588 | ||
18589 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18590 | PyObject *resultobj; | |
18591 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18592 | int result; | |
18593 | PyObject * obj0 = 0 ; | |
18594 | char *kwnames[] = { | |
18595 | (char *) "self", NULL | |
18596 | }; | |
18597 | ||
18598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
18599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18600 | { | |
18601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18602 | result = (int)(arg1)->GetWidth(); | |
18603 | ||
18604 | wxPyEndAllowThreads(__tstate); | |
18605 | if (PyErr_Occurred()) SWIG_fail; | |
18606 | } | |
8edf1c75 | 18607 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18608 | return resultobj; |
18609 | fail: | |
18610 | return NULL; | |
18611 | } | |
18612 | ||
18613 | ||
18614 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18615 | PyObject *resultobj; | |
18616 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18617 | int result; | |
18618 | PyObject * obj0 = 0 ; | |
18619 | char *kwnames[] = { | |
18620 | (char *) "self", NULL | |
18621 | }; | |
18622 | ||
18623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
18624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18625 | { | |
18626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18627 | result = (int)(arg1)->GetAlign(); | |
18628 | ||
18629 | wxPyEndAllowThreads(__tstate); | |
18630 | if (PyErr_Occurred()) SWIG_fail; | |
18631 | } | |
8edf1c75 | 18632 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18633 | return resultobj; |
18634 | fail: | |
18635 | return NULL; | |
18636 | } | |
18637 | ||
18638 | ||
18639 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18640 | PyObject *resultobj; | |
18641 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18642 | wxListItemAttr *result; | |
18643 | PyObject * obj0 = 0 ; | |
18644 | char *kwnames[] = { | |
18645 | (char *) "self", NULL | |
18646 | }; | |
18647 | ||
18648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
18649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18650 | { | |
18651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18652 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
18653 | ||
18654 | wxPyEndAllowThreads(__tstate); | |
18655 | if (PyErr_Occurred()) SWIG_fail; | |
18656 | } | |
18657 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 0); | |
18658 | return resultobj; | |
18659 | fail: | |
18660 | return NULL; | |
18661 | } | |
18662 | ||
18663 | ||
18664 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18665 | PyObject *resultobj; | |
18666 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18667 | bool result; | |
18668 | PyObject * obj0 = 0 ; | |
18669 | char *kwnames[] = { | |
18670 | (char *) "self", NULL | |
18671 | }; | |
18672 | ||
18673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
18674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18675 | { | |
18676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18677 | result = (bool)(arg1)->HasAttributes(); | |
18678 | ||
18679 | wxPyEndAllowThreads(__tstate); | |
18680 | if (PyErr_Occurred()) SWIG_fail; | |
18681 | } | |
4e760a36 | 18682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18683 | return resultobj; |
18684 | fail: | |
18685 | return NULL; | |
18686 | } | |
18687 | ||
18688 | ||
18689 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18690 | PyObject *resultobj; | |
18691 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18692 | wxColour result; | |
18693 | PyObject * obj0 = 0 ; | |
18694 | char *kwnames[] = { | |
18695 | (char *) "self", NULL | |
18696 | }; | |
18697 | ||
18698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
18699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18700 | { | |
18701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18702 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
18703 | ||
18704 | wxPyEndAllowThreads(__tstate); | |
18705 | if (PyErr_Occurred()) SWIG_fail; | |
18706 | } | |
18707 | { | |
18708 | wxColour * resultptr; | |
18709 | resultptr = new wxColour((wxColour &) result); | |
18710 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18711 | } | |
18712 | return resultobj; | |
18713 | fail: | |
18714 | return NULL; | |
18715 | } | |
18716 | ||
18717 | ||
18718 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18719 | PyObject *resultobj; | |
18720 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18721 | wxColour result; | |
18722 | PyObject * obj0 = 0 ; | |
18723 | char *kwnames[] = { | |
18724 | (char *) "self", NULL | |
18725 | }; | |
18726 | ||
18727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
18728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18729 | { | |
18730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18731 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
18732 | ||
18733 | wxPyEndAllowThreads(__tstate); | |
18734 | if (PyErr_Occurred()) SWIG_fail; | |
18735 | } | |
18736 | { | |
18737 | wxColour * resultptr; | |
18738 | resultptr = new wxColour((wxColour &) result); | |
18739 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18740 | } | |
18741 | return resultobj; | |
18742 | fail: | |
18743 | return NULL; | |
18744 | } | |
18745 | ||
18746 | ||
18747 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18748 | PyObject *resultobj; | |
18749 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18750 | wxFont result; | |
18751 | PyObject * obj0 = 0 ; | |
18752 | char *kwnames[] = { | |
18753 | (char *) "self", NULL | |
18754 | }; | |
18755 | ||
18756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
18757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18758 | { | |
18759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18760 | result = ((wxListItem const *)arg1)->GetFont(); | |
18761 | ||
18762 | wxPyEndAllowThreads(__tstate); | |
18763 | if (PyErr_Occurred()) SWIG_fail; | |
18764 | } | |
18765 | { | |
18766 | wxFont * resultptr; | |
18767 | resultptr = new wxFont((wxFont &) result); | |
18768 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
18769 | } | |
18770 | return resultobj; | |
18771 | fail: | |
18772 | return NULL; | |
18773 | } | |
18774 | ||
18775 | ||
18776 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18777 | PyObject *resultobj; | |
18778 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18779 | long arg2 ; | |
18780 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18781 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18782 | char *kwnames[] = { |
18783 | (char *) "self",(char *) "m_mask", NULL | |
18784 | }; | |
18785 | ||
8edf1c75 | 18786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18788 | { |
18789 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18790 | if (PyErr_Occurred()) SWIG_fail; | |
18791 | } | |
d14a1e28 RD |
18792 | if (arg1) (arg1)->m_mask = arg2; |
18793 | ||
18794 | Py_INCREF(Py_None); resultobj = Py_None; | |
18795 | return resultobj; | |
18796 | fail: | |
18797 | return NULL; | |
18798 | } | |
18799 | ||
18800 | ||
18801 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18802 | PyObject *resultobj; | |
18803 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18804 | long result; | |
18805 | PyObject * obj0 = 0 ; | |
18806 | char *kwnames[] = { | |
18807 | (char *) "self", NULL | |
18808 | }; | |
18809 | ||
18810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
18811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18812 | result = (long) ((arg1)->m_mask); | |
18813 | ||
8edf1c75 | 18814 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18815 | return resultobj; |
18816 | fail: | |
18817 | return NULL; | |
18818 | } | |
18819 | ||
18820 | ||
18821 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18822 | PyObject *resultobj; | |
18823 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18824 | long arg2 ; | |
18825 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18826 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18827 | char *kwnames[] = { |
18828 | (char *) "self",(char *) "m_itemId", NULL | |
18829 | }; | |
18830 | ||
8edf1c75 | 18831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18833 | { |
18834 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18835 | if (PyErr_Occurred()) SWIG_fail; | |
18836 | } | |
d14a1e28 RD |
18837 | if (arg1) (arg1)->m_itemId = arg2; |
18838 | ||
18839 | Py_INCREF(Py_None); resultobj = Py_None; | |
18840 | return resultobj; | |
18841 | fail: | |
18842 | return NULL; | |
18843 | } | |
18844 | ||
18845 | ||
18846 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18847 | PyObject *resultobj; | |
18848 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18849 | long result; | |
18850 | PyObject * obj0 = 0 ; | |
18851 | char *kwnames[] = { | |
18852 | (char *) "self", NULL | |
18853 | }; | |
18854 | ||
18855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
18856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18857 | result = (long) ((arg1)->m_itemId); | |
18858 | ||
8edf1c75 | 18859 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18860 | return resultobj; |
18861 | fail: | |
18862 | return NULL; | |
18863 | } | |
18864 | ||
18865 | ||
18866 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18867 | PyObject *resultobj; | |
18868 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18869 | int arg2 ; | |
18870 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18871 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18872 | char *kwnames[] = { |
18873 | (char *) "self",(char *) "m_col", NULL | |
18874 | }; | |
18875 | ||
8edf1c75 | 18876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18878 | { |
18879 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18880 | if (PyErr_Occurred()) SWIG_fail; | |
18881 | } | |
d14a1e28 RD |
18882 | if (arg1) (arg1)->m_col = arg2; |
18883 | ||
18884 | Py_INCREF(Py_None); resultobj = Py_None; | |
18885 | return resultobj; | |
18886 | fail: | |
18887 | return NULL; | |
18888 | } | |
18889 | ||
18890 | ||
18891 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18892 | PyObject *resultobj; | |
18893 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18894 | int result; | |
18895 | PyObject * obj0 = 0 ; | |
18896 | char *kwnames[] = { | |
18897 | (char *) "self", NULL | |
18898 | }; | |
18899 | ||
18900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
18901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18902 | result = (int) ((arg1)->m_col); | |
18903 | ||
8edf1c75 | 18904 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18905 | return resultobj; |
18906 | fail: | |
18907 | return NULL; | |
18908 | } | |
18909 | ||
18910 | ||
18911 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18912 | PyObject *resultobj; | |
18913 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18914 | long arg2 ; | |
18915 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18916 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18917 | char *kwnames[] = { |
18918 | (char *) "self",(char *) "m_state", NULL | |
18919 | }; | |
18920 | ||
8edf1c75 | 18921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18923 | { |
18924 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18925 | if (PyErr_Occurred()) SWIG_fail; | |
18926 | } | |
d14a1e28 RD |
18927 | if (arg1) (arg1)->m_state = arg2; |
18928 | ||
18929 | Py_INCREF(Py_None); resultobj = Py_None; | |
18930 | return resultobj; | |
18931 | fail: | |
18932 | return NULL; | |
18933 | } | |
18934 | ||
18935 | ||
18936 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18937 | PyObject *resultobj; | |
18938 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18939 | long result; | |
18940 | PyObject * obj0 = 0 ; | |
18941 | char *kwnames[] = { | |
18942 | (char *) "self", NULL | |
18943 | }; | |
18944 | ||
18945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
18946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18947 | result = (long) ((arg1)->m_state); | |
18948 | ||
8edf1c75 | 18949 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18950 | return resultobj; |
18951 | fail: | |
18952 | return NULL; | |
18953 | } | |
18954 | ||
18955 | ||
18956 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18957 | PyObject *resultobj; | |
18958 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18959 | long arg2 ; | |
18960 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18961 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18962 | char *kwnames[] = { |
18963 | (char *) "self",(char *) "m_stateMask", NULL | |
18964 | }; | |
18965 | ||
8edf1c75 | 18966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18968 | { |
18969 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18970 | if (PyErr_Occurred()) SWIG_fail; | |
18971 | } | |
d14a1e28 RD |
18972 | if (arg1) (arg1)->m_stateMask = arg2; |
18973 | ||
18974 | Py_INCREF(Py_None); resultobj = Py_None; | |
18975 | return resultobj; | |
18976 | fail: | |
18977 | return NULL; | |
18978 | } | |
18979 | ||
18980 | ||
18981 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18982 | PyObject *resultobj; | |
18983 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18984 | long result; | |
18985 | PyObject * obj0 = 0 ; | |
18986 | char *kwnames[] = { | |
18987 | (char *) "self", NULL | |
18988 | }; | |
18989 | ||
18990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
18991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18992 | result = (long) ((arg1)->m_stateMask); | |
18993 | ||
8edf1c75 | 18994 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
18995 | return resultobj; |
18996 | fail: | |
18997 | return NULL; | |
18998 | } | |
18999 | ||
19000 | ||
19001 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19002 | PyObject *resultobj; | |
19003 | wxListItem *arg1 = (wxListItem *) 0 ; | |
d03fd34d | 19004 | wxString *arg2 = (wxString *) 0 ; |
f775c30d | 19005 | bool temp2 = False ; |
d14a1e28 RD |
19006 | PyObject * obj0 = 0 ; |
19007 | PyObject * obj1 = 0 ; | |
19008 | char *kwnames[] = { | |
19009 | (char *) "self",(char *) "m_text", NULL | |
19010 | }; | |
19011 | ||
19012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
19013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
f775c30d RD |
19014 | { |
19015 | arg2 = wxString_in_helper(obj1); | |
19016 | if (arg2 == NULL) SWIG_fail; | |
19017 | temp2 = True; | |
19018 | } | |
d03fd34d | 19019 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
19020 | |
19021 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
19022 | { |
19023 | if (temp2) | |
19024 | delete arg2; | |
19025 | } | |
d14a1e28 RD |
19026 | return resultobj; |
19027 | fail: | |
f775c30d RD |
19028 | { |
19029 | if (temp2) | |
19030 | delete arg2; | |
19031 | } | |
d14a1e28 RD |
19032 | return NULL; |
19033 | } | |
19034 | ||
19035 | ||
19036 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19037 | PyObject *resultobj; | |
19038 | wxListItem *arg1 = (wxListItem *) 0 ; | |
d03fd34d | 19039 | wxString *result; |
d14a1e28 RD |
19040 | PyObject * obj0 = 0 ; |
19041 | char *kwnames[] = { | |
19042 | (char *) "self", NULL | |
19043 | }; | |
19044 | ||
19045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
19046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d03fd34d | 19047 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
19048 | |
19049 | { | |
19050 | #if wxUSE_UNICODE | |
d03fd34d | 19051 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 19052 | #else |
d03fd34d | 19053 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
19054 | #endif |
19055 | } | |
19056 | return resultobj; | |
19057 | fail: | |
19058 | return NULL; | |
19059 | } | |
19060 | ||
19061 | ||
19062 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19063 | PyObject *resultobj; | |
19064 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19065 | int arg2 ; | |
19066 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19067 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19068 | char *kwnames[] = { |
19069 | (char *) "self",(char *) "m_image", NULL | |
19070 | }; | |
19071 | ||
8edf1c75 | 19072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19074 | { |
19075 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19076 | if (PyErr_Occurred()) SWIG_fail; | |
19077 | } | |
d14a1e28 RD |
19078 | if (arg1) (arg1)->m_image = arg2; |
19079 | ||
19080 | Py_INCREF(Py_None); resultobj = Py_None; | |
19081 | return resultobj; | |
19082 | fail: | |
19083 | return NULL; | |
19084 | } | |
19085 | ||
19086 | ||
19087 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19088 | PyObject *resultobj; | |
19089 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19090 | int result; | |
19091 | PyObject * obj0 = 0 ; | |
19092 | char *kwnames[] = { | |
19093 | (char *) "self", NULL | |
19094 | }; | |
19095 | ||
19096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
19097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19098 | result = (int) ((arg1)->m_image); | |
19099 | ||
8edf1c75 | 19100 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19101 | return resultobj; |
19102 | fail: | |
19103 | return NULL; | |
19104 | } | |
19105 | ||
19106 | ||
19107 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19108 | PyObject *resultobj; | |
19109 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19110 | long arg2 ; | |
19111 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19112 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19113 | char *kwnames[] = { |
19114 | (char *) "self",(char *) "m_data", NULL | |
19115 | }; | |
19116 | ||
8edf1c75 | 19117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19119 | { |
19120 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19121 | if (PyErr_Occurred()) SWIG_fail; | |
19122 | } | |
d14a1e28 RD |
19123 | if (arg1) (arg1)->m_data = arg2; |
19124 | ||
19125 | Py_INCREF(Py_None); resultobj = Py_None; | |
19126 | return resultobj; | |
19127 | fail: | |
19128 | return NULL; | |
19129 | } | |
19130 | ||
19131 | ||
19132 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19133 | PyObject *resultobj; | |
19134 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19135 | long result; | |
19136 | PyObject * obj0 = 0 ; | |
19137 | char *kwnames[] = { | |
19138 | (char *) "self", NULL | |
19139 | }; | |
19140 | ||
19141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
19142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19143 | result = (long) ((arg1)->m_data); | |
19144 | ||
8edf1c75 | 19145 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19146 | return resultobj; |
19147 | fail: | |
19148 | return NULL; | |
19149 | } | |
19150 | ||
19151 | ||
19152 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19153 | PyObject *resultobj; | |
19154 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19155 | int arg2 ; | |
19156 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19157 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19158 | char *kwnames[] = { |
19159 | (char *) "self",(char *) "m_format", NULL | |
19160 | }; | |
19161 | ||
8edf1c75 | 19162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19164 | { |
19165 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19166 | if (PyErr_Occurred()) SWIG_fail; | |
19167 | } | |
d14a1e28 RD |
19168 | if (arg1) (arg1)->m_format = arg2; |
19169 | ||
19170 | Py_INCREF(Py_None); resultobj = Py_None; | |
19171 | return resultobj; | |
19172 | fail: | |
19173 | return NULL; | |
19174 | } | |
19175 | ||
19176 | ||
19177 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19178 | PyObject *resultobj; | |
19179 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19180 | int result; | |
19181 | PyObject * obj0 = 0 ; | |
19182 | char *kwnames[] = { | |
19183 | (char *) "self", NULL | |
19184 | }; | |
19185 | ||
19186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
19187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19188 | result = (int) ((arg1)->m_format); | |
19189 | ||
8edf1c75 | 19190 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19191 | return resultobj; |
19192 | fail: | |
19193 | return NULL; | |
19194 | } | |
19195 | ||
19196 | ||
19197 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19198 | PyObject *resultobj; | |
19199 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19200 | int arg2 ; | |
19201 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19202 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19203 | char *kwnames[] = { |
19204 | (char *) "self",(char *) "m_width", NULL | |
19205 | }; | |
19206 | ||
8edf1c75 | 19207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19209 | { |
19210 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19211 | if (PyErr_Occurred()) SWIG_fail; | |
19212 | } | |
d14a1e28 RD |
19213 | if (arg1) (arg1)->m_width = arg2; |
19214 | ||
19215 | Py_INCREF(Py_None); resultobj = Py_None; | |
19216 | return resultobj; | |
19217 | fail: | |
19218 | return NULL; | |
19219 | } | |
19220 | ||
19221 | ||
19222 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19223 | PyObject *resultobj; | |
19224 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19225 | int result; | |
19226 | PyObject * obj0 = 0 ; | |
19227 | char *kwnames[] = { | |
19228 | (char *) "self", NULL | |
19229 | }; | |
19230 | ||
19231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
19232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19233 | result = (int) ((arg1)->m_width); | |
19234 | ||
8edf1c75 | 19235 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19236 | return resultobj; |
19237 | fail: | |
19238 | return NULL; | |
19239 | } | |
19240 | ||
19241 | ||
19242 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
19243 | PyObject *obj; | |
19244 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19245 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
19246 | Py_INCREF(obj); | |
19247 | return Py_BuildValue((char *)""); | |
19248 | } | |
19249 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19250 | PyObject *resultobj; | |
19251 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19252 | int arg2 = (int) 0 ; | |
19253 | wxListEvent *result; | |
8edf1c75 RD |
19254 | PyObject * obj0 = 0 ; |
19255 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19256 | char *kwnames[] = { |
19257 | (char *) "commandType",(char *) "id", NULL | |
19258 | }; | |
19259 | ||
8edf1c75 RD |
19260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
19261 | if (obj0) { | |
19262 | { | |
19263 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
19264 | if (PyErr_Occurred()) SWIG_fail; | |
19265 | } | |
19266 | } | |
19267 | if (obj1) { | |
19268 | { | |
19269 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19270 | if (PyErr_Occurred()) SWIG_fail; | |
19271 | } | |
19272 | } | |
d14a1e28 RD |
19273 | { |
19274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19275 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
19276 | ||
19277 | wxPyEndAllowThreads(__tstate); | |
19278 | if (PyErr_Occurred()) SWIG_fail; | |
19279 | } | |
19280 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListEvent, 1); | |
19281 | return resultobj; | |
19282 | fail: | |
19283 | return NULL; | |
19284 | } | |
19285 | ||
19286 | ||
19287 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19288 | PyObject *resultobj; | |
19289 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19290 | int arg2 ; | |
19291 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19292 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19293 | char *kwnames[] = { |
19294 | (char *) "self",(char *) "m_code", NULL | |
19295 | }; | |
19296 | ||
8edf1c75 | 19297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19299 | { |
19300 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19301 | if (PyErr_Occurred()) SWIG_fail; | |
19302 | } | |
d14a1e28 RD |
19303 | if (arg1) (arg1)->m_code = arg2; |
19304 | ||
19305 | Py_INCREF(Py_None); resultobj = Py_None; | |
19306 | return resultobj; | |
19307 | fail: | |
19308 | return NULL; | |
19309 | } | |
19310 | ||
19311 | ||
19312 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19313 | PyObject *resultobj; | |
19314 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19315 | int result; | |
19316 | PyObject * obj0 = 0 ; | |
19317 | char *kwnames[] = { | |
19318 | (char *) "self", NULL | |
19319 | }; | |
19320 | ||
19321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
19322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19323 | result = (int) ((arg1)->m_code); | |
19324 | ||
8edf1c75 | 19325 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19326 | return resultobj; |
19327 | fail: | |
19328 | return NULL; | |
19329 | } | |
19330 | ||
19331 | ||
19332 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19333 | PyObject *resultobj; | |
19334 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19335 | long arg2 ; | |
19336 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19337 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19338 | char *kwnames[] = { |
19339 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
19340 | }; | |
19341 | ||
8edf1c75 | 19342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19344 | { |
19345 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19346 | if (PyErr_Occurred()) SWIG_fail; | |
19347 | } | |
d14a1e28 RD |
19348 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
19349 | ||
19350 | Py_INCREF(Py_None); resultobj = Py_None; | |
19351 | return resultobj; | |
19352 | fail: | |
19353 | return NULL; | |
19354 | } | |
19355 | ||
19356 | ||
19357 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19358 | PyObject *resultobj; | |
19359 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19360 | long result; | |
19361 | PyObject * obj0 = 0 ; | |
19362 | char *kwnames[] = { | |
19363 | (char *) "self", NULL | |
19364 | }; | |
19365 | ||
19366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
19367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19368 | result = (long) ((arg1)->m_oldItemIndex); | |
19369 | ||
8edf1c75 | 19370 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19371 | return resultobj; |
19372 | fail: | |
19373 | return NULL; | |
19374 | } | |
19375 | ||
19376 | ||
19377 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19378 | PyObject *resultobj; | |
19379 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19380 | long arg2 ; | |
19381 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19382 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19383 | char *kwnames[] = { |
19384 | (char *) "self",(char *) "m_itemIndex", NULL | |
19385 | }; | |
19386 | ||
8edf1c75 | 19387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19389 | { |
19390 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19391 | if (PyErr_Occurred()) SWIG_fail; | |
19392 | } | |
d14a1e28 RD |
19393 | if (arg1) (arg1)->m_itemIndex = arg2; |
19394 | ||
19395 | Py_INCREF(Py_None); resultobj = Py_None; | |
19396 | return resultobj; | |
19397 | fail: | |
19398 | return NULL; | |
19399 | } | |
19400 | ||
19401 | ||
19402 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19403 | PyObject *resultobj; | |
19404 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19405 | long result; | |
19406 | PyObject * obj0 = 0 ; | |
19407 | char *kwnames[] = { | |
19408 | (char *) "self", NULL | |
19409 | }; | |
19410 | ||
19411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
19412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19413 | result = (long) ((arg1)->m_itemIndex); | |
19414 | ||
8edf1c75 | 19415 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19416 | return resultobj; |
19417 | fail: | |
19418 | return NULL; | |
19419 | } | |
19420 | ||
19421 | ||
19422 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19423 | PyObject *resultobj; | |
19424 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19425 | int arg2 ; | |
19426 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19427 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19428 | char *kwnames[] = { |
19429 | (char *) "self",(char *) "m_col", NULL | |
19430 | }; | |
19431 | ||
8edf1c75 | 19432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19434 | { |
19435 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19436 | if (PyErr_Occurred()) SWIG_fail; | |
19437 | } | |
d14a1e28 RD |
19438 | if (arg1) (arg1)->m_col = arg2; |
19439 | ||
19440 | Py_INCREF(Py_None); resultobj = Py_None; | |
19441 | return resultobj; | |
19442 | fail: | |
19443 | return NULL; | |
19444 | } | |
19445 | ||
19446 | ||
19447 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19448 | PyObject *resultobj; | |
19449 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19450 | int result; | |
19451 | PyObject * obj0 = 0 ; | |
19452 | char *kwnames[] = { | |
19453 | (char *) "self", NULL | |
19454 | }; | |
19455 | ||
19456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
19457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19458 | result = (int) ((arg1)->m_col); | |
19459 | ||
8edf1c75 | 19460 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19461 | return resultobj; |
19462 | fail: | |
19463 | return NULL; | |
19464 | } | |
19465 | ||
19466 | ||
19467 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19468 | PyObject *resultobj; | |
19469 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19470 | wxPoint *arg2 = (wxPoint *) 0 ; | |
19471 | PyObject * obj0 = 0 ; | |
19472 | PyObject * obj1 = 0 ; | |
19473 | char *kwnames[] = { | |
19474 | (char *) "self",(char *) "m_pointDrag", NULL | |
19475 | }; | |
19476 | ||
19477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
19478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19479 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19480 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
19481 | ||
19482 | Py_INCREF(Py_None); resultobj = Py_None; | |
19483 | return resultobj; | |
19484 | fail: | |
19485 | return NULL; | |
19486 | } | |
19487 | ||
19488 | ||
19489 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19490 | PyObject *resultobj; | |
19491 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19492 | wxPoint *result; | |
19493 | PyObject * obj0 = 0 ; | |
19494 | char *kwnames[] = { | |
19495 | (char *) "self", NULL | |
19496 | }; | |
19497 | ||
19498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
19499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19500 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
19501 | ||
19502 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
19503 | return resultobj; | |
19504 | fail: | |
19505 | return NULL; | |
19506 | } | |
19507 | ||
19508 | ||
19509 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19510 | PyObject *resultobj; | |
19511 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19512 | wxListItem *result; | |
19513 | PyObject * obj0 = 0 ; | |
19514 | char *kwnames[] = { | |
19515 | (char *) "self", NULL | |
19516 | }; | |
19517 | ||
19518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
19519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19520 | result = (wxListItem *)& ((arg1)->m_item); | |
19521 | ||
19522 | { | |
19523 | resultobj = wxPyMake_wxObject(result); | |
19524 | } | |
19525 | return resultobj; | |
19526 | fail: | |
19527 | return NULL; | |
19528 | } | |
19529 | ||
19530 | ||
19531 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19532 | PyObject *resultobj; | |
19533 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19534 | int result; | |
19535 | PyObject * obj0 = 0 ; | |
19536 | char *kwnames[] = { | |
19537 | (char *) "self", NULL | |
19538 | }; | |
19539 | ||
19540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
19541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19542 | { | |
19543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19544 | result = (int)(arg1)->GetKeyCode(); | |
19545 | ||
19546 | wxPyEndAllowThreads(__tstate); | |
19547 | if (PyErr_Occurred()) SWIG_fail; | |
19548 | } | |
8edf1c75 | 19549 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19550 | return resultobj; |
19551 | fail: | |
19552 | return NULL; | |
19553 | } | |
19554 | ||
19555 | ||
19556 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19557 | PyObject *resultobj; | |
19558 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19559 | long result; | |
19560 | PyObject * obj0 = 0 ; | |
19561 | char *kwnames[] = { | |
19562 | (char *) "self", NULL | |
19563 | }; | |
19564 | ||
19565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
19566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19567 | { | |
19568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19569 | result = (long)(arg1)->GetIndex(); | |
19570 | ||
19571 | wxPyEndAllowThreads(__tstate); | |
19572 | if (PyErr_Occurred()) SWIG_fail; | |
19573 | } | |
8edf1c75 | 19574 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19575 | return resultobj; |
19576 | fail: | |
19577 | return NULL; | |
19578 | } | |
19579 | ||
19580 | ||
19581 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19582 | PyObject *resultobj; | |
19583 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19584 | int result; | |
19585 | PyObject * obj0 = 0 ; | |
19586 | char *kwnames[] = { | |
19587 | (char *) "self", NULL | |
19588 | }; | |
19589 | ||
19590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
19591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19592 | { | |
19593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19594 | result = (int)(arg1)->GetColumn(); | |
19595 | ||
19596 | wxPyEndAllowThreads(__tstate); | |
19597 | if (PyErr_Occurred()) SWIG_fail; | |
19598 | } | |
8edf1c75 | 19599 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19600 | return resultobj; |
19601 | fail: | |
19602 | return NULL; | |
19603 | } | |
19604 | ||
19605 | ||
19606 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19607 | PyObject *resultobj; | |
19608 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19609 | wxPoint result; | |
19610 | PyObject * obj0 = 0 ; | |
19611 | char *kwnames[] = { | |
19612 | (char *) "self", NULL | |
19613 | }; | |
19614 | ||
19615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
19616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19617 | { | |
19618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19619 | result = (arg1)->GetPoint(); | |
19620 | ||
19621 | wxPyEndAllowThreads(__tstate); | |
19622 | if (PyErr_Occurred()) SWIG_fail; | |
19623 | } | |
19624 | { | |
19625 | wxPoint * resultptr; | |
19626 | resultptr = new wxPoint((wxPoint &) result); | |
19627 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
19628 | } | |
19629 | return resultobj; | |
19630 | fail: | |
19631 | return NULL; | |
19632 | } | |
19633 | ||
19634 | ||
19635 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19636 | PyObject *resultobj; | |
19637 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19638 | wxString *result; | |
19639 | PyObject * obj0 = 0 ; | |
19640 | char *kwnames[] = { | |
19641 | (char *) "self", NULL | |
19642 | }; | |
19643 | ||
19644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
19645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19646 | { | |
19647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19648 | { | |
19649 | wxString const &_result_ref = (arg1)->GetLabel(); | |
19650 | result = (wxString *) &_result_ref; | |
19651 | } | |
19652 | ||
19653 | wxPyEndAllowThreads(__tstate); | |
19654 | if (PyErr_Occurred()) SWIG_fail; | |
19655 | } | |
f0983263 RD |
19656 | { |
19657 | #if wxUSE_UNICODE | |
19658 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19659 | #else | |
19660 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19661 | #endif | |
19662 | } | |
d14a1e28 RD |
19663 | return resultobj; |
19664 | fail: | |
19665 | return NULL; | |
19666 | } | |
19667 | ||
19668 | ||
19669 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19670 | PyObject *resultobj; | |
19671 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19672 | wxString *result; | |
19673 | PyObject * obj0 = 0 ; | |
19674 | char *kwnames[] = { | |
19675 | (char *) "self", NULL | |
19676 | }; | |
19677 | ||
19678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
19679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19680 | { | |
19681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19682 | { | |
19683 | wxString const &_result_ref = (arg1)->GetText(); | |
19684 | result = (wxString *) &_result_ref; | |
19685 | } | |
19686 | ||
19687 | wxPyEndAllowThreads(__tstate); | |
19688 | if (PyErr_Occurred()) SWIG_fail; | |
19689 | } | |
f0983263 RD |
19690 | { |
19691 | #if wxUSE_UNICODE | |
19692 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19693 | #else | |
19694 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19695 | #endif | |
19696 | } | |
d14a1e28 RD |
19697 | return resultobj; |
19698 | fail: | |
19699 | return NULL; | |
19700 | } | |
19701 | ||
19702 | ||
19703 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19704 | PyObject *resultobj; | |
19705 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19706 | int result; | |
19707 | PyObject * obj0 = 0 ; | |
19708 | char *kwnames[] = { | |
19709 | (char *) "self", NULL | |
19710 | }; | |
19711 | ||
19712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
19713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19714 | { | |
19715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19716 | result = (int)(arg1)->GetImage(); | |
19717 | ||
19718 | wxPyEndAllowThreads(__tstate); | |
19719 | if (PyErr_Occurred()) SWIG_fail; | |
19720 | } | |
8edf1c75 | 19721 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19722 | return resultobj; |
19723 | fail: | |
19724 | return NULL; | |
19725 | } | |
19726 | ||
19727 | ||
19728 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19729 | PyObject *resultobj; | |
19730 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19731 | long result; | |
19732 | PyObject * obj0 = 0 ; | |
19733 | char *kwnames[] = { | |
19734 | (char *) "self", NULL | |
19735 | }; | |
19736 | ||
19737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
19738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19739 | { | |
19740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19741 | result = (long)(arg1)->GetData(); | |
19742 | ||
19743 | wxPyEndAllowThreads(__tstate); | |
19744 | if (PyErr_Occurred()) SWIG_fail; | |
19745 | } | |
8edf1c75 | 19746 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19747 | return resultobj; |
19748 | fail: | |
19749 | return NULL; | |
19750 | } | |
19751 | ||
19752 | ||
19753 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19754 | PyObject *resultobj; | |
19755 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19756 | long result; | |
19757 | PyObject * obj0 = 0 ; | |
19758 | char *kwnames[] = { | |
19759 | (char *) "self", NULL | |
19760 | }; | |
19761 | ||
19762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
19763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19764 | { | |
19765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19766 | result = (long)(arg1)->GetMask(); | |
19767 | ||
19768 | wxPyEndAllowThreads(__tstate); | |
19769 | if (PyErr_Occurred()) SWIG_fail; | |
19770 | } | |
8edf1c75 | 19771 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19772 | return resultobj; |
19773 | fail: | |
19774 | return NULL; | |
19775 | } | |
19776 | ||
19777 | ||
19778 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19779 | PyObject *resultobj; | |
19780 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19781 | wxListItem *result; | |
19782 | PyObject * obj0 = 0 ; | |
19783 | char *kwnames[] = { | |
19784 | (char *) "self", NULL | |
19785 | }; | |
19786 | ||
19787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
19788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19789 | { | |
19790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19791 | { | |
19792 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
19793 | result = (wxListItem *) &_result_ref; | |
19794 | } | |
19795 | ||
19796 | wxPyEndAllowThreads(__tstate); | |
19797 | if (PyErr_Occurred()) SWIG_fail; | |
19798 | } | |
19799 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItem, 0); | |
19800 | return resultobj; | |
19801 | fail: | |
19802 | return NULL; | |
19803 | } | |
19804 | ||
19805 | ||
19806 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19807 | PyObject *resultobj; | |
19808 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19809 | long result; | |
19810 | PyObject * obj0 = 0 ; | |
19811 | char *kwnames[] = { | |
19812 | (char *) "self", NULL | |
19813 | }; | |
19814 | ||
19815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
19816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19817 | { | |
19818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19819 | result = (long)(arg1)->GetCacheFrom(); | |
19820 | ||
19821 | wxPyEndAllowThreads(__tstate); | |
19822 | if (PyErr_Occurred()) SWIG_fail; | |
19823 | } | |
8edf1c75 | 19824 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19825 | return resultobj; |
19826 | fail: | |
19827 | return NULL; | |
19828 | } | |
19829 | ||
19830 | ||
19831 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19832 | PyObject *resultobj; | |
19833 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19834 | long result; | |
19835 | PyObject * obj0 = 0 ; | |
19836 | char *kwnames[] = { | |
19837 | (char *) "self", NULL | |
19838 | }; | |
19839 | ||
19840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
19841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19842 | { | |
19843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19844 | result = (long)(arg1)->GetCacheTo(); | |
19845 | ||
19846 | wxPyEndAllowThreads(__tstate); | |
19847 | if (PyErr_Occurred()) SWIG_fail; | |
19848 | } | |
8edf1c75 | 19849 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19850 | return resultobj; |
19851 | fail: | |
19852 | return NULL; | |
19853 | } | |
19854 | ||
19855 | ||
19856 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19857 | PyObject *resultobj; | |
19858 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19859 | bool result; | |
19860 | PyObject * obj0 = 0 ; | |
19861 | char *kwnames[] = { | |
19862 | (char *) "self", NULL | |
19863 | }; | |
19864 | ||
19865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
19866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19867 | { | |
19868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19869 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
19870 | ||
19871 | wxPyEndAllowThreads(__tstate); | |
19872 | if (PyErr_Occurred()) SWIG_fail; | |
19873 | } | |
4e760a36 | 19874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19875 | return resultobj; |
19876 | fail: | |
19877 | return NULL; | |
19878 | } | |
19879 | ||
19880 | ||
19881 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19882 | PyObject *resultobj; | |
19883 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19884 | bool arg2 ; | |
19885 | PyObject * obj0 = 0 ; | |
19886 | PyObject * obj1 = 0 ; | |
19887 | char *kwnames[] = { | |
19888 | (char *) "self",(char *) "editCancelled", NULL | |
19889 | }; | |
19890 | ||
19891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
19892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19893 | { |
8edf1c75 | 19894 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19895 | if (PyErr_Occurred()) SWIG_fail; |
19896 | } | |
d14a1e28 RD |
19897 | { |
19898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19899 | (arg1)->SetEditCanceled(arg2); | |
19900 | ||
19901 | wxPyEndAllowThreads(__tstate); | |
19902 | if (PyErr_Occurred()) SWIG_fail; | |
19903 | } | |
19904 | Py_INCREF(Py_None); resultobj = Py_None; | |
19905 | return resultobj; | |
19906 | fail: | |
19907 | return NULL; | |
19908 | } | |
19909 | ||
19910 | ||
19911 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
19912 | PyObject *obj; | |
19913 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19914 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
19915 | Py_INCREF(obj); | |
19916 | return Py_BuildValue((char *)""); | |
19917 | } | |
19918 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19919 | PyObject *resultobj; | |
19920 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19921 | int arg2 = (int) -1 ; |
d14a1e28 RD |
19922 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19923 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19924 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19925 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19926 | long arg5 = (long) wxLC_ICON ; | |
19927 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
19928 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
19929 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
19930 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19931 | wxPyListCtrl *result; | |
19932 | wxPoint temp3 ; | |
19933 | wxSize temp4 ; | |
423f194a | 19934 | bool temp7 = False ; |
d14a1e28 | 19935 | PyObject * obj0 = 0 ; |
8edf1c75 | 19936 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19937 | PyObject * obj2 = 0 ; |
19938 | PyObject * obj3 = 0 ; | |
8edf1c75 | 19939 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
19940 | PyObject * obj5 = 0 ; |
19941 | PyObject * obj6 = 0 ; | |
19942 | char *kwnames[] = { | |
19943 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19944 | }; | |
19945 | ||
8edf1c75 | 19946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 19947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19948 | if (obj1) { |
19949 | { | |
19950 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19951 | if (PyErr_Occurred()) SWIG_fail; | |
19952 | } | |
19953 | } | |
d14a1e28 RD |
19954 | if (obj2) { |
19955 | { | |
19956 | arg3 = &temp3; | |
19957 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19958 | } | |
19959 | } | |
19960 | if (obj3) { | |
19961 | { | |
19962 | arg4 = &temp4; | |
19963 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19964 | } | |
19965 | } | |
8edf1c75 RD |
19966 | if (obj4) { |
19967 | { | |
19968 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
19969 | if (PyErr_Occurred()) SWIG_fail; | |
19970 | } | |
19971 | } | |
d14a1e28 RD |
19972 | if (obj5) { |
19973 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19974 | if (arg6 == NULL) { | |
19975 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19976 | } | |
19977 | } | |
19978 | if (obj6) { | |
19979 | { | |
19980 | arg7 = wxString_in_helper(obj6); | |
19981 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 19982 | temp7 = True; |
d14a1e28 RD |
19983 | } |
19984 | } | |
19985 | { | |
19986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19987 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
19988 | ||
19989 | wxPyEndAllowThreads(__tstate); | |
19990 | if (PyErr_Occurred()) SWIG_fail; | |
19991 | } | |
19992 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
19993 | { | |
19994 | if (temp7) | |
19995 | delete arg7; | |
19996 | } | |
19997 | return resultobj; | |
19998 | fail: | |
19999 | { | |
20000 | if (temp7) | |
20001 | delete arg7; | |
20002 | } | |
20003 | return NULL; | |
20004 | } | |
20005 | ||
20006 | ||
20007 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20008 | PyObject *resultobj; | |
20009 | wxPyListCtrl *result; | |
20010 | char *kwnames[] = { | |
20011 | NULL | |
20012 | }; | |
20013 | ||
20014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
20015 | { | |
20016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20017 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
20018 | ||
20019 | wxPyEndAllowThreads(__tstate); | |
20020 | if (PyErr_Occurred()) SWIG_fail; | |
20021 | } | |
20022 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
20023 | return resultobj; | |
20024 | fail: | |
20025 | return NULL; | |
20026 | } | |
20027 | ||
20028 | ||
20029 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20030 | PyObject *resultobj; | |
20031 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20032 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 20033 | int arg3 = (int) -1 ; |
d14a1e28 RD |
20034 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20035 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20036 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20037 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20038 | long arg6 = (long) wxLC_ICON ; | |
20039 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
20040 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
20041 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
20042 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20043 | bool result; | |
20044 | wxPoint temp4 ; | |
20045 | wxSize temp5 ; | |
423f194a | 20046 | bool temp8 = False ; |
d14a1e28 RD |
20047 | PyObject * obj0 = 0 ; |
20048 | PyObject * obj1 = 0 ; | |
8edf1c75 | 20049 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20050 | PyObject * obj3 = 0 ; |
20051 | PyObject * obj4 = 0 ; | |
8edf1c75 | 20052 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
20053 | PyObject * obj6 = 0 ; |
20054 | PyObject * obj7 = 0 ; | |
20055 | char *kwnames[] = { | |
20056 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20057 | }; | |
20058 | ||
8edf1c75 | 20059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
20060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20061 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
20062 | if (obj2) { |
20063 | { | |
20064 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20065 | if (PyErr_Occurred()) SWIG_fail; | |
20066 | } | |
20067 | } | |
d14a1e28 RD |
20068 | if (obj3) { |
20069 | { | |
20070 | arg4 = &temp4; | |
20071 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20072 | } | |
20073 | } | |
20074 | if (obj4) { | |
20075 | { | |
20076 | arg5 = &temp5; | |
20077 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20078 | } | |
20079 | } | |
8edf1c75 RD |
20080 | if (obj5) { |
20081 | { | |
20082 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
20083 | if (PyErr_Occurred()) SWIG_fail; | |
20084 | } | |
20085 | } | |
d14a1e28 RD |
20086 | if (obj6) { |
20087 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20088 | if (arg7 == NULL) { | |
20089 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20090 | } | |
20091 | } | |
20092 | if (obj7) { | |
20093 | { | |
20094 | arg8 = wxString_in_helper(obj7); | |
20095 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 20096 | temp8 = True; |
d14a1e28 RD |
20097 | } |
20098 | } | |
20099 | { | |
20100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20101 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
20102 | ||
20103 | wxPyEndAllowThreads(__tstate); | |
20104 | if (PyErr_Occurred()) SWIG_fail; | |
20105 | } | |
4e760a36 | 20106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20107 | { |
20108 | if (temp8) | |
20109 | delete arg8; | |
20110 | } | |
20111 | return resultobj; | |
20112 | fail: | |
20113 | { | |
20114 | if (temp8) | |
20115 | delete arg8; | |
20116 | } | |
20117 | return NULL; | |
20118 | } | |
20119 | ||
20120 | ||
20121 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20122 | PyObject *resultobj; | |
20123 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20124 | PyObject *arg2 = (PyObject *) 0 ; | |
20125 | PyObject *arg3 = (PyObject *) 0 ; | |
20126 | PyObject * obj0 = 0 ; | |
20127 | PyObject * obj1 = 0 ; | |
20128 | PyObject * obj2 = 0 ; | |
20129 | char *kwnames[] = { | |
20130 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20131 | }; | |
20132 | ||
20133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20135 | arg2 = obj1; | |
20136 | arg3 = obj2; | |
20137 | { | |
20138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20139 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20140 | ||
20141 | wxPyEndAllowThreads(__tstate); | |
20142 | if (PyErr_Occurred()) SWIG_fail; | |
20143 | } | |
20144 | Py_INCREF(Py_None); resultobj = Py_None; | |
20145 | return resultobj; | |
20146 | fail: | |
20147 | return NULL; | |
20148 | } | |
20149 | ||
20150 | ||
20151 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20152 | PyObject *resultobj; | |
20153 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20154 | wxColour *arg2 = 0 ; | |
20155 | bool result; | |
20156 | wxColour temp2 ; | |
20157 | PyObject * obj0 = 0 ; | |
20158 | PyObject * obj1 = 0 ; | |
20159 | char *kwnames[] = { | |
20160 | (char *) "self",(char *) "col", NULL | |
20161 | }; | |
20162 | ||
20163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
20164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20165 | { | |
20166 | arg2 = &temp2; | |
20167 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20168 | } | |
20169 | { | |
20170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20171 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
20172 | ||
20173 | wxPyEndAllowThreads(__tstate); | |
20174 | if (PyErr_Occurred()) SWIG_fail; | |
20175 | } | |
4e760a36 | 20176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20177 | return resultobj; |
20178 | fail: | |
20179 | return NULL; | |
20180 | } | |
20181 | ||
20182 | ||
20183 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20184 | PyObject *resultobj; | |
20185 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20186 | wxColour *arg2 = 0 ; | |
20187 | bool result; | |
20188 | wxColour temp2 ; | |
20189 | PyObject * obj0 = 0 ; | |
20190 | PyObject * obj1 = 0 ; | |
20191 | char *kwnames[] = { | |
20192 | (char *) "self",(char *) "col", NULL | |
20193 | }; | |
20194 | ||
20195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
20196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20197 | { | |
20198 | arg2 = &temp2; | |
20199 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20200 | } | |
20201 | { | |
20202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20203 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
20204 | ||
20205 | wxPyEndAllowThreads(__tstate); | |
20206 | if (PyErr_Occurred()) SWIG_fail; | |
20207 | } | |
4e760a36 | 20208 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20209 | return resultobj; |
20210 | fail: | |
20211 | return NULL; | |
20212 | } | |
20213 | ||
20214 | ||
20215 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20216 | PyObject *resultobj; | |
20217 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20218 | int arg2 ; | |
20219 | wxListItem *result; | |
20220 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20221 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20222 | char *kwnames[] = { |
20223 | (char *) "self",(char *) "col", NULL | |
20224 | }; | |
20225 | ||
8edf1c75 | 20226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20228 | { |
20229 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20230 | if (PyErr_Occurred()) SWIG_fail; | |
20231 | } | |
d14a1e28 RD |
20232 | { |
20233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20234 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
20235 | ||
20236 | wxPyEndAllowThreads(__tstate); | |
20237 | if (PyErr_Occurred()) SWIG_fail; | |
20238 | } | |
20239 | { | |
20240 | resultobj = wxPyMake_wxObject(result); | |
20241 | } | |
20242 | return resultobj; | |
20243 | fail: | |
20244 | return NULL; | |
20245 | } | |
20246 | ||
20247 | ||
20248 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20249 | PyObject *resultobj; | |
20250 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20251 | int arg2 ; | |
20252 | wxListItem *arg3 = 0 ; | |
20253 | bool result; | |
20254 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20255 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20256 | PyObject * obj2 = 0 ; |
20257 | char *kwnames[] = { | |
20258 | (char *) "self",(char *) "col",(char *) "item", NULL | |
20259 | }; | |
20260 | ||
8edf1c75 | 20261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20263 | { |
20264 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20265 | if (PyErr_Occurred()) SWIG_fail; | |
20266 | } | |
d14a1e28 RD |
20267 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20268 | if (arg3 == NULL) { | |
20269 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20270 | } | |
20271 | { | |
20272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20273 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
20274 | ||
20275 | wxPyEndAllowThreads(__tstate); | |
20276 | if (PyErr_Occurred()) SWIG_fail; | |
20277 | } | |
4e760a36 | 20278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20279 | return resultobj; |
20280 | fail: | |
20281 | return NULL; | |
20282 | } | |
20283 | ||
20284 | ||
20285 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20286 | PyObject *resultobj; | |
20287 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20288 | int arg2 ; | |
20289 | int result; | |
20290 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20291 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20292 | char *kwnames[] = { |
20293 | (char *) "self",(char *) "col", NULL | |
20294 | }; | |
20295 | ||
8edf1c75 | 20296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20298 | { |
20299 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20300 | if (PyErr_Occurred()) SWIG_fail; | |
20301 | } | |
d14a1e28 RD |
20302 | { |
20303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20304 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
20305 | ||
20306 | wxPyEndAllowThreads(__tstate); | |
20307 | if (PyErr_Occurred()) SWIG_fail; | |
20308 | } | |
8edf1c75 | 20309 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20310 | return resultobj; |
20311 | fail: | |
20312 | return NULL; | |
20313 | } | |
20314 | ||
20315 | ||
20316 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20317 | PyObject *resultobj; | |
20318 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20319 | int arg2 ; | |
20320 | int arg3 ; | |
20321 | bool result; | |
20322 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20323 | PyObject * obj1 = 0 ; |
20324 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20325 | char *kwnames[] = { |
20326 | (char *) "self",(char *) "col",(char *) "width", NULL | |
20327 | }; | |
20328 | ||
8edf1c75 | 20329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20331 | { |
20332 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20333 | if (PyErr_Occurred()) SWIG_fail; | |
20334 | } | |
20335 | { | |
20336 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20337 | if (PyErr_Occurred()) SWIG_fail; | |
20338 | } | |
d14a1e28 RD |
20339 | { |
20340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20341 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
20342 | ||
20343 | wxPyEndAllowThreads(__tstate); | |
20344 | if (PyErr_Occurred()) SWIG_fail; | |
20345 | } | |
4e760a36 | 20346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20347 | return resultobj; |
20348 | fail: | |
20349 | return NULL; | |
20350 | } | |
20351 | ||
20352 | ||
20353 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20354 | PyObject *resultobj; | |
20355 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20356 | int result; | |
20357 | PyObject * obj0 = 0 ; | |
20358 | char *kwnames[] = { | |
20359 | (char *) "self", NULL | |
20360 | }; | |
20361 | ||
20362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
20363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20364 | { | |
20365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20366 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
20367 | ||
20368 | wxPyEndAllowThreads(__tstate); | |
20369 | if (PyErr_Occurred()) SWIG_fail; | |
20370 | } | |
8edf1c75 | 20371 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20372 | return resultobj; |
20373 | fail: | |
20374 | return NULL; | |
20375 | } | |
20376 | ||
20377 | ||
20378 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20379 | PyObject *resultobj; | |
20380 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20381 | wxRect result; | |
20382 | PyObject * obj0 = 0 ; | |
20383 | char *kwnames[] = { | |
20384 | (char *) "self", NULL | |
20385 | }; | |
20386 | ||
20387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
20388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20389 | { | |
20390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20391 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
20392 | ||
20393 | wxPyEndAllowThreads(__tstate); | |
20394 | if (PyErr_Occurred()) SWIG_fail; | |
20395 | } | |
20396 | { | |
20397 | wxRect * resultptr; | |
20398 | resultptr = new wxRect((wxRect &) result); | |
20399 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20400 | } | |
20401 | return resultobj; | |
20402 | fail: | |
20403 | return NULL; | |
20404 | } | |
20405 | ||
20406 | ||
20407 | static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20408 | PyObject *resultobj; | |
20409 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20410 | wxTextCtrl *result; | |
20411 | PyObject * obj0 = 0 ; | |
20412 | char *kwnames[] = { | |
20413 | (char *) "self", NULL | |
20414 | }; | |
20415 | ||
20416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
20417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20418 | { | |
20419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20420 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
20421 | ||
20422 | wxPyEndAllowThreads(__tstate); | |
20423 | if (PyErr_Occurred()) SWIG_fail; | |
20424 | } | |
20425 | { | |
20426 | resultobj = wxPyMake_wxObject(result); | |
20427 | } | |
20428 | return resultobj; | |
20429 | fail: | |
20430 | return NULL; | |
20431 | } | |
20432 | ||
20433 | ||
20434 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20435 | PyObject *resultobj; | |
20436 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20437 | long arg2 ; | |
20438 | int arg3 = (int) 0 ; | |
20439 | wxListItem *result; | |
20440 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20441 | PyObject * obj1 = 0 ; |
20442 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20443 | char *kwnames[] = { |
20444 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
20445 | }; | |
20446 | ||
8edf1c75 | 20447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20449 | { |
20450 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20451 | if (PyErr_Occurred()) SWIG_fail; | |
20452 | } | |
20453 | if (obj2) { | |
20454 | { | |
20455 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20456 | if (PyErr_Occurred()) SWIG_fail; | |
20457 | } | |
20458 | } | |
d14a1e28 RD |
20459 | { |
20460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20461 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
20462 | ||
20463 | wxPyEndAllowThreads(__tstate); | |
20464 | if (PyErr_Occurred()) SWIG_fail; | |
20465 | } | |
20466 | { | |
20467 | resultobj = wxPyMake_wxObject(result); | |
20468 | } | |
20469 | return resultobj; | |
20470 | fail: | |
20471 | return NULL; | |
20472 | } | |
20473 | ||
20474 | ||
20475 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20476 | PyObject *resultobj; | |
20477 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20478 | wxListItem *arg2 = 0 ; | |
20479 | bool result; | |
20480 | PyObject * obj0 = 0 ; | |
20481 | PyObject * obj1 = 0 ; | |
20482 | char *kwnames[] = { | |
20483 | (char *) "self",(char *) "info", NULL | |
20484 | }; | |
20485 | ||
20486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
20487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20488 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20489 | if (arg2 == NULL) { | |
20490 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20491 | } | |
20492 | { | |
20493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20494 | result = (bool)(arg1)->SetItem(*arg2); | |
20495 | ||
20496 | wxPyEndAllowThreads(__tstate); | |
20497 | if (PyErr_Occurred()) SWIG_fail; | |
20498 | } | |
4e760a36 | 20499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20500 | return resultobj; |
20501 | fail: | |
20502 | return NULL; | |
20503 | } | |
20504 | ||
20505 | ||
20506 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20507 | PyObject *resultobj; | |
20508 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20509 | long arg2 ; | |
20510 | int arg3 ; | |
20511 | wxString *arg4 = 0 ; | |
20512 | int arg5 = (int) -1 ; | |
20513 | long result; | |
423f194a | 20514 | bool temp4 = False ; |
d14a1e28 | 20515 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
20516 | PyObject * obj1 = 0 ; |
20517 | PyObject * obj2 = 0 ; | |
d14a1e28 | 20518 | PyObject * obj3 = 0 ; |
8edf1c75 | 20519 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20520 | char *kwnames[] = { |
20521 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
20522 | }; | |
20523 | ||
8edf1c75 | 20524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 20525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20526 | { |
20527 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20528 | if (PyErr_Occurred()) SWIG_fail; | |
20529 | } | |
20530 | { | |
20531 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20532 | if (PyErr_Occurred()) SWIG_fail; | |
20533 | } | |
d14a1e28 RD |
20534 | { |
20535 | arg4 = wxString_in_helper(obj3); | |
20536 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 20537 | temp4 = True; |
d14a1e28 | 20538 | } |
8edf1c75 RD |
20539 | if (obj4) { |
20540 | { | |
20541 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
20542 | if (PyErr_Occurred()) SWIG_fail; | |
20543 | } | |
20544 | } | |
d14a1e28 RD |
20545 | { |
20546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20547 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
20548 | ||
20549 | wxPyEndAllowThreads(__tstate); | |
20550 | if (PyErr_Occurred()) SWIG_fail; | |
20551 | } | |
8edf1c75 | 20552 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20553 | { |
20554 | if (temp4) | |
20555 | delete arg4; | |
20556 | } | |
20557 | return resultobj; | |
20558 | fail: | |
20559 | { | |
20560 | if (temp4) | |
20561 | delete arg4; | |
20562 | } | |
20563 | return NULL; | |
20564 | } | |
20565 | ||
20566 | ||
20567 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20568 | PyObject *resultobj; | |
20569 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20570 | long arg2 ; | |
20571 | long arg3 ; | |
20572 | int result; | |
20573 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20574 | PyObject * obj1 = 0 ; |
20575 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20576 | char *kwnames[] = { |
20577 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
20578 | }; | |
20579 | ||
8edf1c75 | 20580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20582 | { |
20583 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20584 | if (PyErr_Occurred()) SWIG_fail; | |
20585 | } | |
20586 | { | |
20587 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20588 | if (PyErr_Occurred()) SWIG_fail; | |
20589 | } | |
d14a1e28 RD |
20590 | { |
20591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20592 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
20593 | ||
20594 | wxPyEndAllowThreads(__tstate); | |
20595 | if (PyErr_Occurred()) SWIG_fail; | |
20596 | } | |
8edf1c75 | 20597 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20598 | return resultobj; |
20599 | fail: | |
20600 | return NULL; | |
20601 | } | |
20602 | ||
20603 | ||
20604 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20605 | PyObject *resultobj; | |
20606 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20607 | long arg2 ; | |
20608 | long arg3 ; | |
20609 | long arg4 ; | |
20610 | bool result; | |
20611 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20612 | PyObject * obj1 = 0 ; |
20613 | PyObject * obj2 = 0 ; | |
20614 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20615 | char *kwnames[] = { |
20616 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
20617 | }; | |
20618 | ||
8edf1c75 | 20619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20621 | { |
20622 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20623 | if (PyErr_Occurred()) SWIG_fail; | |
20624 | } | |
20625 | { | |
20626 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20627 | if (PyErr_Occurred()) SWIG_fail; | |
20628 | } | |
20629 | { | |
20630 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
20631 | if (PyErr_Occurred()) SWIG_fail; | |
20632 | } | |
d14a1e28 RD |
20633 | { |
20634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20635 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
20636 | ||
20637 | wxPyEndAllowThreads(__tstate); | |
20638 | if (PyErr_Occurred()) SWIG_fail; | |
20639 | } | |
4e760a36 | 20640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20641 | return resultobj; |
20642 | fail: | |
20643 | return NULL; | |
20644 | } | |
20645 | ||
20646 | ||
20647 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20648 | PyObject *resultobj; | |
20649 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20650 | long arg2 ; | |
20651 | int arg3 ; | |
20652 | int arg4 ; | |
20653 | bool result; | |
20654 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20655 | PyObject * obj1 = 0 ; |
20656 | PyObject * obj2 = 0 ; | |
20657 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20658 | char *kwnames[] = { |
20659 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
20660 | }; | |
20661 | ||
8edf1c75 | 20662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 20663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20664 | { |
20665 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20666 | if (PyErr_Occurred()) SWIG_fail; | |
20667 | } | |
20668 | { | |
20669 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20670 | if (PyErr_Occurred()) SWIG_fail; | |
20671 | } | |
20672 | { | |
20673 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
20674 | if (PyErr_Occurred()) SWIG_fail; | |
20675 | } | |
d14a1e28 RD |
20676 | { |
20677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20678 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
20679 | ||
20680 | wxPyEndAllowThreads(__tstate); | |
20681 | if (PyErr_Occurred()) SWIG_fail; | |
20682 | } | |
4e760a36 | 20683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20684 | return resultobj; |
20685 | fail: | |
20686 | return NULL; | |
20687 | } | |
20688 | ||
20689 | ||
20690 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20691 | PyObject *resultobj; | |
20692 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20693 | long arg2 ; | |
20694 | wxString result; | |
20695 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20696 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20697 | char *kwnames[] = { |
20698 | (char *) "self",(char *) "item", NULL | |
20699 | }; | |
20700 | ||
8edf1c75 | 20701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20703 | { |
20704 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20705 | if (PyErr_Occurred()) SWIG_fail; | |
20706 | } | |
d14a1e28 RD |
20707 | { |
20708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20709 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
20710 | ||
20711 | wxPyEndAllowThreads(__tstate); | |
20712 | if (PyErr_Occurred()) SWIG_fail; | |
20713 | } | |
20714 | { | |
20715 | #if wxUSE_UNICODE | |
20716 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20717 | #else | |
20718 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20719 | #endif | |
20720 | } | |
20721 | return resultobj; | |
20722 | fail: | |
20723 | return NULL; | |
20724 | } | |
20725 | ||
20726 | ||
20727 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20728 | PyObject *resultobj; | |
20729 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20730 | long arg2 ; | |
20731 | wxString *arg3 = 0 ; | |
423f194a | 20732 | bool temp3 = False ; |
d14a1e28 | 20733 | PyObject * obj0 = 0 ; |
8edf1c75 | 20734 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20735 | PyObject * obj2 = 0 ; |
20736 | char *kwnames[] = { | |
20737 | (char *) "self",(char *) "item",(char *) "str", NULL | |
20738 | }; | |
20739 | ||
8edf1c75 | 20740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20742 | { |
20743 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20744 | if (PyErr_Occurred()) SWIG_fail; | |
20745 | } | |
d14a1e28 RD |
20746 | { |
20747 | arg3 = wxString_in_helper(obj2); | |
20748 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 20749 | temp3 = True; |
d14a1e28 RD |
20750 | } |
20751 | { | |
20752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20753 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
20754 | ||
20755 | wxPyEndAllowThreads(__tstate); | |
20756 | if (PyErr_Occurred()) SWIG_fail; | |
20757 | } | |
20758 | Py_INCREF(Py_None); resultobj = Py_None; | |
20759 | { | |
20760 | if (temp3) | |
20761 | delete arg3; | |
20762 | } | |
20763 | return resultobj; | |
20764 | fail: | |
20765 | { | |
20766 | if (temp3) | |
20767 | delete arg3; | |
20768 | } | |
20769 | return NULL; | |
20770 | } | |
20771 | ||
20772 | ||
20773 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20774 | PyObject *resultobj; | |
20775 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20776 | long arg2 ; | |
20777 | long result; | |
20778 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20779 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20780 | char *kwnames[] = { |
20781 | (char *) "self",(char *) "item", NULL | |
20782 | }; | |
20783 | ||
8edf1c75 | 20784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20786 | { |
20787 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20788 | if (PyErr_Occurred()) SWIG_fail; | |
20789 | } | |
d14a1e28 RD |
20790 | { |
20791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20792 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
20793 | ||
20794 | wxPyEndAllowThreads(__tstate); | |
20795 | if (PyErr_Occurred()) SWIG_fail; | |
20796 | } | |
8edf1c75 | 20797 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
20798 | return resultobj; |
20799 | fail: | |
20800 | return NULL; | |
20801 | } | |
20802 | ||
20803 | ||
20804 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20805 | PyObject *resultobj; | |
20806 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20807 | long arg2 ; | |
20808 | long arg3 ; | |
20809 | bool result; | |
20810 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20811 | PyObject * obj1 = 0 ; |
20812 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20813 | char *kwnames[] = { |
20814 | (char *) "self",(char *) "item",(char *) "data", NULL | |
20815 | }; | |
20816 | ||
8edf1c75 | 20817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20819 | { |
20820 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20821 | if (PyErr_Occurred()) SWIG_fail; | |
20822 | } | |
20823 | { | |
20824 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20825 | if (PyErr_Occurred()) SWIG_fail; | |
20826 | } | |
d14a1e28 RD |
20827 | { |
20828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20829 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
20830 | ||
20831 | wxPyEndAllowThreads(__tstate); | |
20832 | if (PyErr_Occurred()) SWIG_fail; | |
20833 | } | |
4e760a36 | 20834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20835 | return resultobj; |
20836 | fail: | |
20837 | return NULL; | |
20838 | } | |
20839 | ||
20840 | ||
20841 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20842 | PyObject *resultobj; | |
20843 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20844 | long arg2 ; | |
20845 | wxPoint result; | |
20846 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20847 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20848 | char *kwnames[] = { |
20849 | (char *) "self",(char *) "item", NULL | |
20850 | }; | |
20851 | ||
8edf1c75 | 20852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 20853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20854 | { |
20855 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20856 | if (PyErr_Occurred()) SWIG_fail; | |
20857 | } | |
d14a1e28 RD |
20858 | { |
20859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20860 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
20861 | ||
20862 | wxPyEndAllowThreads(__tstate); | |
20863 | if (PyErr_Occurred()) SWIG_fail; | |
20864 | } | |
20865 | { | |
20866 | wxPoint * resultptr; | |
20867 | resultptr = new wxPoint((wxPoint &) result); | |
20868 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20869 | } | |
20870 | return resultobj; | |
20871 | fail: | |
20872 | return NULL; | |
20873 | } | |
20874 | ||
20875 | ||
20876 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20877 | PyObject *resultobj; | |
20878 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20879 | long arg2 ; | |
20880 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
20881 | wxRect result; | |
20882 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20883 | PyObject * obj1 = 0 ; |
20884 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20885 | char *kwnames[] = { |
20886 | (char *) "self",(char *) "item",(char *) "code", NULL | |
20887 | }; | |
20888 | ||
8edf1c75 | 20889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20891 | { |
20892 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20893 | if (PyErr_Occurred()) SWIG_fail; | |
20894 | } | |
20895 | if (obj2) { | |
20896 | { | |
20897 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20898 | if (PyErr_Occurred()) SWIG_fail; | |
20899 | } | |
20900 | } | |
d14a1e28 RD |
20901 | { |
20902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20903 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
20904 | ||
20905 | wxPyEndAllowThreads(__tstate); | |
20906 | if (PyErr_Occurred()) SWIG_fail; | |
20907 | } | |
20908 | { | |
20909 | wxRect * resultptr; | |
20910 | resultptr = new wxRect((wxRect &) result); | |
20911 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20912 | } | |
20913 | return resultobj; | |
20914 | fail: | |
20915 | return NULL; | |
20916 | } | |
20917 | ||
20918 | ||
20919 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20920 | PyObject *resultobj; | |
20921 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20922 | long arg2 ; | |
20923 | wxPoint *arg3 = 0 ; | |
20924 | bool result; | |
20925 | wxPoint temp3 ; | |
20926 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20927 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20928 | PyObject * obj2 = 0 ; |
20929 | char *kwnames[] = { | |
20930 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
20931 | }; | |
20932 | ||
8edf1c75 | 20933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20935 | { |
20936 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20937 | if (PyErr_Occurred()) SWIG_fail; | |
20938 | } | |
d14a1e28 RD |
20939 | { |
20940 | arg3 = &temp3; | |
20941 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20942 | } | |
20943 | { | |
20944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20945 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
20946 | ||
20947 | wxPyEndAllowThreads(__tstate); | |
20948 | if (PyErr_Occurred()) SWIG_fail; | |
20949 | } | |
4e760a36 | 20950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20951 | return resultobj; |
20952 | fail: | |
20953 | return NULL; | |
20954 | } | |
20955 | ||
20956 | ||
20957 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20958 | PyObject *resultobj; | |
20959 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20960 | int result; | |
20961 | PyObject * obj0 = 0 ; | |
20962 | char *kwnames[] = { | |
20963 | (char *) "self", NULL | |
20964 | }; | |
20965 | ||
20966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
20967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20968 | { | |
20969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20970 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
20971 | ||
20972 | wxPyEndAllowThreads(__tstate); | |
20973 | if (PyErr_Occurred()) SWIG_fail; | |
20974 | } | |
8edf1c75 | 20975 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20976 | return resultobj; |
20977 | fail: | |
20978 | return NULL; | |
20979 | } | |
20980 | ||
20981 | ||
20982 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20983 | PyObject *resultobj; | |
20984 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20985 | int result; | |
20986 | PyObject * obj0 = 0 ; | |
20987 | char *kwnames[] = { | |
20988 | (char *) "self", NULL | |
20989 | }; | |
20990 | ||
20991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
20992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20993 | { | |
20994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20995 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
20996 | ||
20997 | wxPyEndAllowThreads(__tstate); | |
20998 | if (PyErr_Occurred()) SWIG_fail; | |
20999 | } | |
8edf1c75 | 21000 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21001 | return resultobj; |
21002 | fail: | |
21003 | return NULL; | |
21004 | } | |
21005 | ||
21006 | ||
21007 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21008 | PyObject *resultobj; | |
21009 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21010 | wxSize result; | |
21011 | PyObject * obj0 = 0 ; | |
21012 | char *kwnames[] = { | |
21013 | (char *) "self", NULL | |
21014 | }; | |
21015 | ||
21016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
21017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21018 | { | |
21019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21020 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
21021 | ||
21022 | wxPyEndAllowThreads(__tstate); | |
21023 | if (PyErr_Occurred()) SWIG_fail; | |
21024 | } | |
21025 | { | |
21026 | wxSize * resultptr; | |
21027 | resultptr = new wxSize((wxSize &) result); | |
21028 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21029 | } | |
21030 | return resultobj; | |
21031 | fail: | |
21032 | return NULL; | |
21033 | } | |
21034 | ||
21035 | ||
21036 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21037 | PyObject *resultobj; | |
21038 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21039 | int result; | |
21040 | PyObject * obj0 = 0 ; | |
21041 | char *kwnames[] = { | |
21042 | (char *) "self", NULL | |
21043 | }; | |
21044 | ||
21045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
21046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21047 | { | |
21048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21049 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
21050 | ||
21051 | wxPyEndAllowThreads(__tstate); | |
21052 | if (PyErr_Occurred()) SWIG_fail; | |
21053 | } | |
8edf1c75 | 21054 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21055 | return resultobj; |
21056 | fail: | |
21057 | return NULL; | |
21058 | } | |
21059 | ||
21060 | ||
21061 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21062 | PyObject *resultobj; | |
21063 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21064 | wxColour result; | |
21065 | PyObject * obj0 = 0 ; | |
21066 | char *kwnames[] = { | |
21067 | (char *) "self", NULL | |
21068 | }; | |
21069 | ||
21070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
21071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21072 | { | |
21073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21074 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
21075 | ||
21076 | wxPyEndAllowThreads(__tstate); | |
21077 | if (PyErr_Occurred()) SWIG_fail; | |
21078 | } | |
21079 | { | |
21080 | wxColour * resultptr; | |
21081 | resultptr = new wxColour((wxColour &) result); | |
21082 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21083 | } | |
21084 | return resultobj; | |
21085 | fail: | |
21086 | return NULL; | |
21087 | } | |
21088 | ||
21089 | ||
21090 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21091 | PyObject *resultobj; | |
21092 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21093 | wxColour *arg2 = 0 ; | |
21094 | wxColour temp2 ; | |
21095 | PyObject * obj0 = 0 ; | |
21096 | PyObject * obj1 = 0 ; | |
21097 | char *kwnames[] = { | |
21098 | (char *) "self",(char *) "col", NULL | |
21099 | }; | |
21100 | ||
21101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
21102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21103 | { | |
21104 | arg2 = &temp2; | |
21105 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21106 | } | |
21107 | { | |
21108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21109 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21110 | ||
21111 | wxPyEndAllowThreads(__tstate); | |
21112 | if (PyErr_Occurred()) SWIG_fail; | |
21113 | } | |
21114 | Py_INCREF(Py_None); resultobj = Py_None; | |
21115 | return resultobj; | |
21116 | fail: | |
21117 | return NULL; | |
21118 | } | |
21119 | ||
21120 | ||
21121 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21122 | PyObject *resultobj; | |
21123 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21124 | long result; | |
21125 | PyObject * obj0 = 0 ; | |
21126 | char *kwnames[] = { | |
21127 | (char *) "self", NULL | |
21128 | }; | |
21129 | ||
21130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
21131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21132 | { | |
21133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21134 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
21135 | ||
21136 | wxPyEndAllowThreads(__tstate); | |
21137 | if (PyErr_Occurred()) SWIG_fail; | |
21138 | } | |
8edf1c75 | 21139 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21140 | return resultobj; |
21141 | fail: | |
21142 | return NULL; | |
21143 | } | |
21144 | ||
21145 | ||
21146 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21147 | PyObject *resultobj; | |
21148 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21149 | long arg2 ; | |
423f194a | 21150 | bool arg3 = (bool) True ; |
d14a1e28 | 21151 | PyObject * obj0 = 0 ; |
8edf1c75 | 21152 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21153 | PyObject * obj2 = 0 ; |
21154 | char *kwnames[] = { | |
21155 | (char *) "self",(char *) "style",(char *) "add", NULL | |
21156 | }; | |
21157 | ||
8edf1c75 | 21158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21160 | { |
21161 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21162 | if (PyErr_Occurred()) SWIG_fail; | |
21163 | } | |
d14a1e28 | 21164 | if (obj2) { |
83448d71 | 21165 | { |
8edf1c75 | 21166 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
21167 | if (PyErr_Occurred()) SWIG_fail; |
21168 | } | |
d14a1e28 RD |
21169 | } |
21170 | { | |
21171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21172 | (arg1)->SetSingleStyle(arg2,arg3); | |
21173 | ||
21174 | wxPyEndAllowThreads(__tstate); | |
21175 | if (PyErr_Occurred()) SWIG_fail; | |
21176 | } | |
21177 | Py_INCREF(Py_None); resultobj = Py_None; | |
21178 | return resultobj; | |
21179 | fail: | |
21180 | return NULL; | |
21181 | } | |
21182 | ||
21183 | ||
21184 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21185 | PyObject *resultobj; | |
21186 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21187 | long arg2 ; | |
21188 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21189 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21190 | char *kwnames[] = { |
21191 | (char *) "self",(char *) "style", NULL | |
21192 | }; | |
21193 | ||
8edf1c75 | 21194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21195 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21196 | { |
21197 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21198 | if (PyErr_Occurred()) SWIG_fail; | |
21199 | } | |
d14a1e28 RD |
21200 | { |
21201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21202 | (arg1)->SetWindowStyleFlag(arg2); | |
21203 | ||
21204 | wxPyEndAllowThreads(__tstate); | |
21205 | if (PyErr_Occurred()) SWIG_fail; | |
21206 | } | |
21207 | Py_INCREF(Py_None); resultobj = Py_None; | |
21208 | return resultobj; | |
21209 | fail: | |
21210 | return NULL; | |
21211 | } | |
21212 | ||
21213 | ||
21214 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21215 | PyObject *resultobj; | |
21216 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21217 | long arg2 ; | |
21218 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
21219 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
21220 | long result; | |
21221 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21222 | PyObject * obj1 = 0 ; |
21223 | PyObject * obj2 = 0 ; | |
21224 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21225 | char *kwnames[] = { |
21226 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
21227 | }; | |
21228 | ||
8edf1c75 | 21229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21231 | { |
21232 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21233 | if (PyErr_Occurred()) SWIG_fail; | |
21234 | } | |
21235 | if (obj2) { | |
21236 | { | |
21237 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21238 | if (PyErr_Occurred()) SWIG_fail; | |
21239 | } | |
21240 | } | |
21241 | if (obj3) { | |
21242 | { | |
21243 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21244 | if (PyErr_Occurred()) SWIG_fail; | |
21245 | } | |
21246 | } | |
d14a1e28 RD |
21247 | { |
21248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21249 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
21250 | ||
21251 | wxPyEndAllowThreads(__tstate); | |
21252 | if (PyErr_Occurred()) SWIG_fail; | |
21253 | } | |
8edf1c75 | 21254 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21255 | return resultobj; |
21256 | fail: | |
21257 | return NULL; | |
21258 | } | |
21259 | ||
21260 | ||
21261 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21262 | PyObject *resultobj; | |
21263 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21264 | int arg2 ; | |
21265 | wxImageList *result; | |
21266 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21267 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21268 | char *kwnames[] = { |
21269 | (char *) "self",(char *) "which", NULL | |
21270 | }; | |
21271 | ||
8edf1c75 | 21272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21274 | { |
21275 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21276 | if (PyErr_Occurred()) SWIG_fail; | |
21277 | } | |
d14a1e28 RD |
21278 | { |
21279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21280 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
21281 | ||
21282 | wxPyEndAllowThreads(__tstate); | |
21283 | if (PyErr_Occurred()) SWIG_fail; | |
21284 | } | |
21285 | { | |
21286 | resultobj = wxPyMake_wxObject(result); | |
21287 | } | |
21288 | return resultobj; | |
21289 | fail: | |
21290 | return NULL; | |
21291 | } | |
21292 | ||
21293 | ||
21294 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21295 | PyObject *resultobj; | |
21296 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21297 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21298 | int arg3 ; | |
21299 | PyObject * obj0 = 0 ; | |
21300 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21301 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21302 | char *kwnames[] = { |
21303 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21304 | }; | |
21305 | ||
8edf1c75 | 21306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
21307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
21308 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
21309 | { |
21310 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21311 | if (PyErr_Occurred()) SWIG_fail; | |
21312 | } | |
d14a1e28 RD |
21313 | { |
21314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21315 | (arg1)->SetImageList(arg2,arg3); | |
21316 | ||
21317 | wxPyEndAllowThreads(__tstate); | |
21318 | if (PyErr_Occurred()) SWIG_fail; | |
21319 | } | |
21320 | Py_INCREF(Py_None); resultobj = Py_None; | |
21321 | return resultobj; | |
21322 | fail: | |
21323 | return NULL; | |
21324 | } | |
21325 | ||
21326 | ||
21327 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21328 | PyObject *resultobj; | |
21329 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21330 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21331 | int arg3 ; | |
21332 | PyObject * obj0 = 0 ; | |
21333 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21334 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21335 | char *kwnames[] = { |
21336 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21337 | }; | |
21338 | ||
8edf1c75 | 21339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
58203fa6 | 21341 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
8edf1c75 RD |
21342 | { |
21343 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21344 | if (PyErr_Occurred()) SWIG_fail; | |
21345 | } | |
d14a1e28 RD |
21346 | { |
21347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21348 | (arg1)->AssignImageList(arg2,arg3); | |
21349 | ||
21350 | wxPyEndAllowThreads(__tstate); | |
21351 | if (PyErr_Occurred()) SWIG_fail; | |
21352 | } | |
21353 | Py_INCREF(Py_None); resultobj = Py_None; | |
21354 | return resultobj; | |
21355 | fail: | |
21356 | return NULL; | |
21357 | } | |
21358 | ||
21359 | ||
21360 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21361 | PyObject *resultobj; | |
21362 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21363 | bool result; | |
21364 | PyObject * obj0 = 0 ; | |
21365 | char *kwnames[] = { | |
21366 | (char *) "self", NULL | |
21367 | }; | |
21368 | ||
21369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
21370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21371 | { | |
21372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21373 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
21374 | ||
21375 | wxPyEndAllowThreads(__tstate); | |
21376 | if (PyErr_Occurred()) SWIG_fail; | |
21377 | } | |
4e760a36 | 21378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21379 | return resultobj; |
21380 | fail: | |
21381 | return NULL; | |
21382 | } | |
21383 | ||
21384 | ||
21385 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21386 | PyObject *resultobj; | |
21387 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21388 | long arg2 ; | |
21389 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21390 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21391 | char *kwnames[] = { |
21392 | (char *) "self",(char *) "item", NULL | |
21393 | }; | |
21394 | ||
8edf1c75 | 21395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21397 | { |
21398 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21399 | if (PyErr_Occurred()) SWIG_fail; | |
21400 | } | |
d14a1e28 RD |
21401 | { |
21402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21403 | (arg1)->RefreshItem(arg2); | |
21404 | ||
21405 | wxPyEndAllowThreads(__tstate); | |
21406 | if (PyErr_Occurred()) SWIG_fail; | |
21407 | } | |
21408 | Py_INCREF(Py_None); resultobj = Py_None; | |
21409 | return resultobj; | |
21410 | fail: | |
21411 | return NULL; | |
21412 | } | |
21413 | ||
21414 | ||
21415 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21416 | PyObject *resultobj; | |
21417 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21418 | long arg2 ; | |
21419 | long arg3 ; | |
21420 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21421 | PyObject * obj1 = 0 ; |
21422 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21423 | char *kwnames[] = { |
21424 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
21425 | }; | |
21426 | ||
8edf1c75 | 21427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21429 | { |
21430 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21431 | if (PyErr_Occurred()) SWIG_fail; | |
21432 | } | |
21433 | { | |
21434 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21435 | if (PyErr_Occurred()) SWIG_fail; | |
21436 | } | |
d14a1e28 RD |
21437 | { |
21438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21439 | (arg1)->RefreshItems(arg2,arg3); | |
21440 | ||
21441 | wxPyEndAllowThreads(__tstate); | |
21442 | if (PyErr_Occurred()) SWIG_fail; | |
21443 | } | |
21444 | Py_INCREF(Py_None); resultobj = Py_None; | |
21445 | return resultobj; | |
21446 | fail: | |
21447 | return NULL; | |
21448 | } | |
21449 | ||
21450 | ||
21451 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21452 | PyObject *resultobj; | |
21453 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21454 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
21455 | bool result; | |
21456 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21457 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21458 | char *kwnames[] = { |
21459 | (char *) "self",(char *) "flag", NULL | |
21460 | }; | |
21461 | ||
8edf1c75 | 21462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21464 | if (obj1) { |
21465 | { | |
21466 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21467 | if (PyErr_Occurred()) SWIG_fail; | |
21468 | } | |
21469 | } | |
d14a1e28 RD |
21470 | { |
21471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21472 | result = (bool)(arg1)->Arrange(arg2); | |
21473 | ||
21474 | wxPyEndAllowThreads(__tstate); | |
21475 | if (PyErr_Occurred()) SWIG_fail; | |
21476 | } | |
4e760a36 | 21477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21478 | return resultobj; |
21479 | fail: | |
21480 | return NULL; | |
21481 | } | |
21482 | ||
21483 | ||
21484 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21485 | PyObject *resultobj; | |
21486 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21487 | long arg2 ; | |
21488 | bool result; | |
21489 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21490 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21491 | char *kwnames[] = { |
21492 | (char *) "self",(char *) "item", NULL | |
21493 | }; | |
21494 | ||
8edf1c75 | 21495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21497 | { |
21498 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21499 | if (PyErr_Occurred()) SWIG_fail; | |
21500 | } | |
d14a1e28 RD |
21501 | { |
21502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21503 | result = (bool)(arg1)->DeleteItem(arg2); | |
21504 | ||
21505 | wxPyEndAllowThreads(__tstate); | |
21506 | if (PyErr_Occurred()) SWIG_fail; | |
21507 | } | |
4e760a36 | 21508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21509 | return resultobj; |
21510 | fail: | |
21511 | return NULL; | |
21512 | } | |
21513 | ||
21514 | ||
21515 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21516 | PyObject *resultobj; | |
21517 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21518 | bool result; | |
21519 | PyObject * obj0 = 0 ; | |
21520 | char *kwnames[] = { | |
21521 | (char *) "self", NULL | |
21522 | }; | |
21523 | ||
21524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
21525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21526 | { | |
21527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21528 | result = (bool)(arg1)->DeleteAllItems(); | |
21529 | ||
21530 | wxPyEndAllowThreads(__tstate); | |
21531 | if (PyErr_Occurred()) SWIG_fail; | |
21532 | } | |
4e760a36 | 21533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21534 | return resultobj; |
21535 | fail: | |
21536 | return NULL; | |
21537 | } | |
21538 | ||
21539 | ||
21540 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21541 | PyObject *resultobj; | |
21542 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21543 | int arg2 ; | |
21544 | bool result; | |
21545 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21546 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21547 | char *kwnames[] = { |
21548 | (char *) "self",(char *) "col", NULL | |
21549 | }; | |
21550 | ||
8edf1c75 | 21551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21553 | { |
21554 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21555 | if (PyErr_Occurred()) SWIG_fail; | |
21556 | } | |
d14a1e28 RD |
21557 | { |
21558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21559 | result = (bool)(arg1)->DeleteColumn(arg2); | |
21560 | ||
21561 | wxPyEndAllowThreads(__tstate); | |
21562 | if (PyErr_Occurred()) SWIG_fail; | |
21563 | } | |
4e760a36 | 21564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21565 | return resultobj; |
21566 | fail: | |
21567 | return NULL; | |
21568 | } | |
21569 | ||
21570 | ||
21571 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21572 | PyObject *resultobj; | |
21573 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21574 | bool result; | |
21575 | PyObject * obj0 = 0 ; | |
21576 | char *kwnames[] = { | |
21577 | (char *) "self", NULL | |
21578 | }; | |
21579 | ||
21580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
21581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21582 | { | |
21583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21584 | result = (bool)(arg1)->DeleteAllColumns(); | |
21585 | ||
21586 | wxPyEndAllowThreads(__tstate); | |
21587 | if (PyErr_Occurred()) SWIG_fail; | |
21588 | } | |
4e760a36 | 21589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21590 | return resultobj; |
21591 | fail: | |
21592 | return NULL; | |
21593 | } | |
21594 | ||
21595 | ||
21596 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21597 | PyObject *resultobj; | |
21598 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21599 | PyObject * obj0 = 0 ; | |
21600 | char *kwnames[] = { | |
21601 | (char *) "self", NULL | |
21602 | }; | |
21603 | ||
21604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
21605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21606 | { | |
21607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21608 | (arg1)->ClearAll(); | |
21609 | ||
21610 | wxPyEndAllowThreads(__tstate); | |
21611 | if (PyErr_Occurred()) SWIG_fail; | |
21612 | } | |
21613 | Py_INCREF(Py_None); resultobj = Py_None; | |
21614 | return resultobj; | |
21615 | fail: | |
21616 | return NULL; | |
21617 | } | |
21618 | ||
21619 | ||
21620 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21621 | PyObject *resultobj; | |
21622 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21623 | long arg2 ; | |
21624 | wxTextCtrl *result; | |
21625 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21626 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21627 | char *kwnames[] = { |
21628 | (char *) "self",(char *) "item", NULL | |
21629 | }; | |
21630 | ||
8edf1c75 | 21631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21633 | { |
21634 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21635 | if (PyErr_Occurred()) SWIG_fail; | |
21636 | } | |
d14a1e28 RD |
21637 | { |
21638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21639 | result = (wxTextCtrl *)(arg1)->EditLabel(arg2); | |
21640 | ||
21641 | wxPyEndAllowThreads(__tstate); | |
21642 | if (PyErr_Occurred()) SWIG_fail; | |
21643 | } | |
21644 | { | |
21645 | resultobj = wxPyMake_wxObject(result); | |
21646 | } | |
21647 | return resultobj; | |
21648 | fail: | |
21649 | return NULL; | |
21650 | } | |
21651 | ||
21652 | ||
21653 | static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21654 | PyObject *resultobj; | |
21655 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21656 | bool arg2 ; | |
21657 | bool result; | |
21658 | PyObject * obj0 = 0 ; | |
21659 | PyObject * obj1 = 0 ; | |
21660 | char *kwnames[] = { | |
21661 | (char *) "self",(char *) "cancel", NULL | |
21662 | }; | |
21663 | ||
21664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail; | |
21665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 21666 | { |
8edf1c75 | 21667 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
21668 | if (PyErr_Occurred()) SWIG_fail; |
21669 | } | |
d14a1e28 RD |
21670 | { |
21671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21672 | result = (bool)(arg1)->EndEditLabel(arg2); | |
21673 | ||
21674 | wxPyEndAllowThreads(__tstate); | |
21675 | if (PyErr_Occurred()) SWIG_fail; | |
21676 | } | |
4e760a36 | 21677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21678 | return resultobj; |
21679 | fail: | |
21680 | return NULL; | |
21681 | } | |
21682 | ||
21683 | ||
21684 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21685 | PyObject *resultobj; | |
21686 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21687 | long arg2 ; | |
21688 | bool result; | |
21689 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21690 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21691 | char *kwnames[] = { |
21692 | (char *) "self",(char *) "item", NULL | |
21693 | }; | |
21694 | ||
8edf1c75 | 21695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21697 | { |
21698 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21699 | if (PyErr_Occurred()) SWIG_fail; | |
21700 | } | |
d14a1e28 RD |
21701 | { |
21702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21703 | result = (bool)(arg1)->EnsureVisible(arg2); | |
21704 | ||
21705 | wxPyEndAllowThreads(__tstate); | |
21706 | if (PyErr_Occurred()) SWIG_fail; | |
21707 | } | |
4e760a36 | 21708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21709 | return resultobj; |
21710 | fail: | |
21711 | return NULL; | |
21712 | } | |
21713 | ||
21714 | ||
21715 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21716 | PyObject *resultobj; | |
21717 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21718 | long arg2 ; | |
21719 | wxString *arg3 = 0 ; | |
423f194a | 21720 | bool arg4 = (bool) False ; |
d14a1e28 | 21721 | long result; |
423f194a | 21722 | bool temp3 = False ; |
d14a1e28 | 21723 | PyObject * obj0 = 0 ; |
8edf1c75 | 21724 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21725 | PyObject * obj2 = 0 ; |
21726 | PyObject * obj3 = 0 ; | |
21727 | char *kwnames[] = { | |
21728 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
21729 | }; | |
21730 | ||
8edf1c75 | 21731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21733 | { |
21734 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21735 | if (PyErr_Occurred()) SWIG_fail; | |
21736 | } | |
d14a1e28 RD |
21737 | { |
21738 | arg3 = wxString_in_helper(obj2); | |
21739 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21740 | temp3 = True; |
d14a1e28 RD |
21741 | } |
21742 | if (obj3) { | |
83448d71 | 21743 | { |
8edf1c75 | 21744 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
21745 | if (PyErr_Occurred()) SWIG_fail; |
21746 | } | |
d14a1e28 RD |
21747 | } |
21748 | { | |
21749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21750 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
21751 | ||
21752 | wxPyEndAllowThreads(__tstate); | |
21753 | if (PyErr_Occurred()) SWIG_fail; | |
21754 | } | |
8edf1c75 | 21755 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21756 | { |
21757 | if (temp3) | |
21758 | delete arg3; | |
21759 | } | |
21760 | return resultobj; | |
21761 | fail: | |
21762 | { | |
21763 | if (temp3) | |
21764 | delete arg3; | |
21765 | } | |
21766 | return NULL; | |
21767 | } | |
21768 | ||
21769 | ||
21770 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21771 | PyObject *resultobj; | |
21772 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21773 | long arg2 ; | |
21774 | long arg3 ; | |
21775 | long result; | |
21776 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21777 | PyObject * obj1 = 0 ; |
21778 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21779 | char *kwnames[] = { |
21780 | (char *) "self",(char *) "start",(char *) "data", NULL | |
21781 | }; | |
21782 | ||
8edf1c75 | 21783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21785 | { |
21786 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21787 | if (PyErr_Occurred()) SWIG_fail; | |
21788 | } | |
21789 | { | |
21790 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21791 | if (PyErr_Occurred()) SWIG_fail; | |
21792 | } | |
d14a1e28 RD |
21793 | { |
21794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21795 | result = (long)(arg1)->FindItem(arg2,arg3); | |
21796 | ||
21797 | wxPyEndAllowThreads(__tstate); | |
21798 | if (PyErr_Occurred()) SWIG_fail; | |
21799 | } | |
8edf1c75 | 21800 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21801 | return resultobj; |
21802 | fail: | |
21803 | return NULL; | |
21804 | } | |
21805 | ||
21806 | ||
21807 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21808 | PyObject *resultobj; | |
21809 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21810 | long arg2 ; | |
21811 | wxPoint *arg3 = 0 ; | |
21812 | int arg4 ; | |
21813 | long result; | |
21814 | wxPoint temp3 ; | |
21815 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21816 | PyObject * obj1 = 0 ; |
d14a1e28 | 21817 | PyObject * obj2 = 0 ; |
8edf1c75 | 21818 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
21819 | char *kwnames[] = { |
21820 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
21821 | }; | |
21822 | ||
8edf1c75 | 21823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21825 | { |
21826 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21827 | if (PyErr_Occurred()) SWIG_fail; | |
21828 | } | |
d14a1e28 RD |
21829 | { |
21830 | arg3 = &temp3; | |
21831 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21832 | } | |
8edf1c75 RD |
21833 | { |
21834 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21835 | if (PyErr_Occurred()) SWIG_fail; | |
21836 | } | |
d14a1e28 RD |
21837 | { |
21838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21839 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
21840 | ||
21841 | wxPyEndAllowThreads(__tstate); | |
21842 | if (PyErr_Occurred()) SWIG_fail; | |
21843 | } | |
8edf1c75 | 21844 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21845 | return resultobj; |
21846 | fail: | |
21847 | return NULL; | |
21848 | } | |
21849 | ||
21850 | ||
21851 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21852 | PyObject *resultobj; | |
21853 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21854 | wxPoint *arg2 = 0 ; | |
21855 | int *arg3 = 0 ; | |
21856 | long result; | |
21857 | wxPoint temp2 ; | |
21858 | int temp3 ; | |
21859 | PyObject * obj0 = 0 ; | |
21860 | PyObject * obj1 = 0 ; | |
21861 | char *kwnames[] = { | |
21862 | (char *) "self",(char *) "point", NULL | |
21863 | }; | |
21864 | ||
21865 | arg3 = &temp3; | |
21866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
21867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21868 | { | |
21869 | arg2 = &temp2; | |
21870 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21871 | } | |
21872 | { | |
21873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21874 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
21875 | ||
21876 | wxPyEndAllowThreads(__tstate); | |
21877 | if (PyErr_Occurred()) SWIG_fail; | |
21878 | } | |
8edf1c75 | 21879 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21880 | { |
21881 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21882 | resultobj = t_output_helper(resultobj,o); | |
21883 | } | |
21884 | return resultobj; | |
21885 | fail: | |
21886 | return NULL; | |
21887 | } | |
21888 | ||
21889 | ||
21890 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21891 | PyObject *resultobj; | |
21892 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21893 | wxListItem *arg2 = 0 ; | |
21894 | long result; | |
21895 | PyObject * obj0 = 0 ; | |
21896 | PyObject * obj1 = 0 ; | |
21897 | char *kwnames[] = { | |
21898 | (char *) "self",(char *) "info", NULL | |
21899 | }; | |
21900 | ||
21901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
21902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21903 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21904 | if (arg2 == NULL) { | |
21905 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21906 | } | |
21907 | { | |
21908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21909 | result = (long)(arg1)->InsertItem(*arg2); | |
21910 | ||
21911 | wxPyEndAllowThreads(__tstate); | |
21912 | if (PyErr_Occurred()) SWIG_fail; | |
21913 | } | |
8edf1c75 | 21914 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21915 | return resultobj; |
21916 | fail: | |
21917 | return NULL; | |
21918 | } | |
21919 | ||
21920 | ||
21921 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21922 | PyObject *resultobj; | |
21923 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21924 | long arg2 ; | |
21925 | wxString *arg3 = 0 ; | |
21926 | long result; | |
423f194a | 21927 | bool temp3 = False ; |
d14a1e28 | 21928 | PyObject * obj0 = 0 ; |
8edf1c75 | 21929 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21930 | PyObject * obj2 = 0 ; |
21931 | char *kwnames[] = { | |
21932 | (char *) "self",(char *) "index",(char *) "label", NULL | |
21933 | }; | |
21934 | ||
8edf1c75 | 21935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21937 | { |
21938 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21939 | if (PyErr_Occurred()) SWIG_fail; | |
21940 | } | |
d14a1e28 RD |
21941 | { |
21942 | arg3 = wxString_in_helper(obj2); | |
21943 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21944 | temp3 = True; |
d14a1e28 RD |
21945 | } |
21946 | { | |
21947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21948 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
21949 | ||
21950 | wxPyEndAllowThreads(__tstate); | |
21951 | if (PyErr_Occurred()) SWIG_fail; | |
21952 | } | |
8edf1c75 | 21953 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21954 | { |
21955 | if (temp3) | |
21956 | delete arg3; | |
21957 | } | |
21958 | return resultobj; | |
21959 | fail: | |
21960 | { | |
21961 | if (temp3) | |
21962 | delete arg3; | |
21963 | } | |
21964 | return NULL; | |
21965 | } | |
21966 | ||
21967 | ||
21968 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21969 | PyObject *resultobj; | |
21970 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21971 | long arg2 ; | |
21972 | int arg3 ; | |
21973 | long result; | |
21974 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21975 | PyObject * obj1 = 0 ; |
21976 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21977 | char *kwnames[] = { |
21978 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
21979 | }; | |
21980 | ||
8edf1c75 | 21981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21983 | { |
21984 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21985 | if (PyErr_Occurred()) SWIG_fail; | |
21986 | } | |
21987 | { | |
21988 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21989 | if (PyErr_Occurred()) SWIG_fail; | |
21990 | } | |
d14a1e28 RD |
21991 | { |
21992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21993 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
21994 | ||
21995 | wxPyEndAllowThreads(__tstate); | |
21996 | if (PyErr_Occurred()) SWIG_fail; | |
21997 | } | |
8edf1c75 | 21998 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
21999 | return resultobj; |
22000 | fail: | |
22001 | return NULL; | |
22002 | } | |
22003 | ||
22004 | ||
22005 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22006 | PyObject *resultobj; | |
22007 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22008 | long arg2 ; | |
22009 | wxString *arg3 = 0 ; | |
22010 | int arg4 ; | |
22011 | long result; | |
423f194a | 22012 | bool temp3 = False ; |
d14a1e28 | 22013 | PyObject * obj0 = 0 ; |
8edf1c75 | 22014 | PyObject * obj1 = 0 ; |
d14a1e28 | 22015 | PyObject * obj2 = 0 ; |
8edf1c75 | 22016 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
22017 | char *kwnames[] = { |
22018 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
22019 | }; | |
22020 | ||
8edf1c75 | 22021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 22022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22023 | { |
22024 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22025 | if (PyErr_Occurred()) SWIG_fail; | |
22026 | } | |
d14a1e28 RD |
22027 | { |
22028 | arg3 = wxString_in_helper(obj2); | |
22029 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22030 | temp3 = True; |
d14a1e28 | 22031 | } |
8edf1c75 RD |
22032 | { |
22033 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
22034 | if (PyErr_Occurred()) SWIG_fail; | |
22035 | } | |
d14a1e28 RD |
22036 | { |
22037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22038 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
22039 | ||
22040 | wxPyEndAllowThreads(__tstate); | |
22041 | if (PyErr_Occurred()) SWIG_fail; | |
22042 | } | |
8edf1c75 | 22043 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22044 | { |
22045 | if (temp3) | |
22046 | delete arg3; | |
22047 | } | |
22048 | return resultobj; | |
22049 | fail: | |
22050 | { | |
22051 | if (temp3) | |
22052 | delete arg3; | |
22053 | } | |
22054 | return NULL; | |
22055 | } | |
22056 | ||
22057 | ||
22058 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22059 | PyObject *resultobj; | |
22060 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22061 | long arg2 ; | |
22062 | wxListItem *arg3 = 0 ; | |
22063 | long result; | |
22064 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22065 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22066 | PyObject * obj2 = 0 ; |
22067 | char *kwnames[] = { | |
22068 | (char *) "self",(char *) "col",(char *) "info", NULL | |
22069 | }; | |
22070 | ||
8edf1c75 | 22071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22073 | { |
22074 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22075 | if (PyErr_Occurred()) SWIG_fail; | |
22076 | } | |
d14a1e28 RD |
22077 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
22078 | if (arg3 == NULL) { | |
22079 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22080 | } | |
22081 | { | |
22082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22083 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
22084 | ||
22085 | wxPyEndAllowThreads(__tstate); | |
22086 | if (PyErr_Occurred()) SWIG_fail; | |
22087 | } | |
8edf1c75 | 22088 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22089 | return resultobj; |
22090 | fail: | |
22091 | return NULL; | |
22092 | } | |
22093 | ||
22094 | ||
22095 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22096 | PyObject *resultobj; | |
22097 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22098 | long arg2 ; | |
22099 | wxString *arg3 = 0 ; | |
22100 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
22101 | int arg5 = (int) -1 ; | |
22102 | long result; | |
423f194a | 22103 | bool temp3 = False ; |
d14a1e28 | 22104 | PyObject * obj0 = 0 ; |
8edf1c75 | 22105 | PyObject * obj1 = 0 ; |
d14a1e28 | 22106 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
22107 | PyObject * obj3 = 0 ; |
22108 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
22109 | char *kwnames[] = { |
22110 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
22111 | }; | |
22112 | ||
8edf1c75 | 22113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 22114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22115 | { |
22116 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22117 | if (PyErr_Occurred()) SWIG_fail; | |
22118 | } | |
d14a1e28 RD |
22119 | { |
22120 | arg3 = wxString_in_helper(obj2); | |
22121 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22122 | temp3 = True; |
d14a1e28 | 22123 | } |
8edf1c75 RD |
22124 | if (obj3) { |
22125 | { | |
22126 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
22127 | if (PyErr_Occurred()) SWIG_fail; | |
22128 | } | |
22129 | } | |
22130 | if (obj4) { | |
22131 | { | |
22132 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
22133 | if (PyErr_Occurred()) SWIG_fail; | |
22134 | } | |
22135 | } | |
d14a1e28 RD |
22136 | { |
22137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22138 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
22139 | ||
22140 | wxPyEndAllowThreads(__tstate); | |
22141 | if (PyErr_Occurred()) SWIG_fail; | |
22142 | } | |
8edf1c75 | 22143 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22144 | { |
22145 | if (temp3) | |
22146 | delete arg3; | |
22147 | } | |
22148 | return resultobj; | |
22149 | fail: | |
22150 | { | |
22151 | if (temp3) | |
22152 | delete arg3; | |
22153 | } | |
22154 | return NULL; | |
22155 | } | |
22156 | ||
22157 | ||
22158 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22159 | PyObject *resultobj; | |
22160 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22161 | long arg2 ; | |
22162 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22163 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22164 | char *kwnames[] = { |
22165 | (char *) "self",(char *) "count", NULL | |
22166 | }; | |
22167 | ||
8edf1c75 | 22168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22170 | { |
22171 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22172 | if (PyErr_Occurred()) SWIG_fail; | |
22173 | } | |
d14a1e28 RD |
22174 | { |
22175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22176 | (arg1)->SetItemCount(arg2); | |
22177 | ||
22178 | wxPyEndAllowThreads(__tstate); | |
22179 | if (PyErr_Occurred()) SWIG_fail; | |
22180 | } | |
22181 | Py_INCREF(Py_None); resultobj = Py_None; | |
22182 | return resultobj; | |
22183 | fail: | |
22184 | return NULL; | |
22185 | } | |
22186 | ||
22187 | ||
22188 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22189 | PyObject *resultobj; | |
22190 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22191 | int arg2 ; | |
22192 | int arg3 ; | |
22193 | bool result; | |
22194 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22195 | PyObject * obj1 = 0 ; |
22196 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22197 | char *kwnames[] = { |
22198 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
22199 | }; | |
22200 | ||
8edf1c75 | 22201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22203 | { |
22204 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22205 | if (PyErr_Occurred()) SWIG_fail; | |
22206 | } | |
22207 | { | |
22208 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22209 | if (PyErr_Occurred()) SWIG_fail; | |
22210 | } | |
d14a1e28 RD |
22211 | { |
22212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22213 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
22214 | ||
22215 | wxPyEndAllowThreads(__tstate); | |
22216 | if (PyErr_Occurred()) SWIG_fail; | |
22217 | } | |
4e760a36 | 22218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22219 | return resultobj; |
22220 | fail: | |
22221 | return NULL; | |
22222 | } | |
22223 | ||
22224 | ||
22225 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22226 | PyObject *resultobj; | |
22227 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22228 | long arg2 ; | |
22229 | wxColour *arg3 = 0 ; | |
22230 | wxColour temp3 ; | |
22231 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22232 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22233 | PyObject * obj2 = 0 ; |
22234 | char *kwnames[] = { | |
22235 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22236 | }; | |
22237 | ||
8edf1c75 | 22238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22240 | { |
22241 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22242 | if (PyErr_Occurred()) SWIG_fail; | |
22243 | } | |
d14a1e28 RD |
22244 | { |
22245 | arg3 = &temp3; | |
22246 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22247 | } | |
22248 | { | |
22249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22250 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
22251 | ||
22252 | wxPyEndAllowThreads(__tstate); | |
22253 | if (PyErr_Occurred()) SWIG_fail; | |
22254 | } | |
22255 | Py_INCREF(Py_None); resultobj = Py_None; | |
22256 | return resultobj; | |
22257 | fail: | |
22258 | return NULL; | |
22259 | } | |
22260 | ||
22261 | ||
22262 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22263 | PyObject *resultobj; | |
22264 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22265 | long arg2 ; | |
22266 | wxColour result; | |
22267 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22268 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22269 | char *kwnames[] = { |
22270 | (char *) "self",(char *) "item", NULL | |
22271 | }; | |
22272 | ||
8edf1c75 | 22273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22275 | { |
22276 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22277 | if (PyErr_Occurred()) SWIG_fail; | |
22278 | } | |
d14a1e28 RD |
22279 | { |
22280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22281 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
22282 | ||
22283 | wxPyEndAllowThreads(__tstate); | |
22284 | if (PyErr_Occurred()) SWIG_fail; | |
22285 | } | |
22286 | { | |
22287 | wxColour * resultptr; | |
22288 | resultptr = new wxColour((wxColour &) result); | |
22289 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
22290 | } | |
22291 | return resultobj; | |
22292 | fail: | |
22293 | return NULL; | |
22294 | } | |
22295 | ||
22296 | ||
22297 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22298 | PyObject *resultobj; | |
22299 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22300 | long arg2 ; | |
22301 | wxColour *arg3 = 0 ; | |
22302 | wxColour temp3 ; | |
22303 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22304 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22305 | PyObject * obj2 = 0 ; |
22306 | char *kwnames[] = { | |
22307 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22308 | }; | |
22309 | ||
8edf1c75 | 22310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22312 | { |
22313 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22314 | if (PyErr_Occurred()) SWIG_fail; | |
22315 | } | |
d14a1e28 RD |
22316 | { |
22317 | arg3 = &temp3; | |
22318 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22319 | } | |
22320 | { | |
22321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22322 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
22323 | ||
22324 | wxPyEndAllowThreads(__tstate); | |
22325 | if (PyErr_Occurred()) SWIG_fail; | |
22326 | } | |
22327 | Py_INCREF(Py_None); resultobj = Py_None; | |
22328 | return resultobj; | |
22329 | fail: | |
22330 | return NULL; | |
22331 | } | |
22332 | ||
22333 | ||
22334 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22335 | PyObject *resultobj; | |
22336 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22337 | long arg2 ; | |
22338 | wxColour result; | |
22339 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22340 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22341 | char *kwnames[] = { |
22342 | (char *) "self",(char *) "item", NULL | |
22343 | }; | |
22344 | ||
8edf1c75 | 22345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22347 | { |
22348 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22349 | if (PyErr_Occurred()) SWIG_fail; | |
22350 | } | |
d14a1e28 RD |
22351 | { |
22352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22353 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
22354 | ||
22355 | wxPyEndAllowThreads(__tstate); | |
22356 | if (PyErr_Occurred()) SWIG_fail; | |
22357 | } | |
22358 | { | |
22359 | wxColour * resultptr; | |
22360 | resultptr = new wxColour((wxColour &) result); | |
22361 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
22362 | } | |
22363 | return resultobj; | |
22364 | fail: | |
22365 | return NULL; | |
22366 | } | |
22367 | ||
22368 | ||
22369 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22370 | PyObject *resultobj; | |
22371 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22372 | PyObject *arg2 = (PyObject *) 0 ; | |
22373 | bool result; | |
22374 | PyObject * obj0 = 0 ; | |
22375 | PyObject * obj1 = 0 ; | |
22376 | char *kwnames[] = { | |
22377 | (char *) "self",(char *) "func", NULL | |
22378 | }; | |
22379 | ||
22380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
22381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22382 | arg2 = obj1; | |
22383 | { | |
22384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22385 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
22386 | ||
22387 | wxPyEndAllowThreads(__tstate); | |
22388 | if (PyErr_Occurred()) SWIG_fail; | |
22389 | } | |
4e760a36 | 22390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22391 | return resultobj; |
22392 | fail: | |
22393 | return NULL; | |
22394 | } | |
22395 | ||
22396 | ||
22397 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22398 | PyObject *resultobj; | |
22399 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22400 | wxWindow *result; | |
22401 | PyObject * obj0 = 0 ; | |
22402 | char *kwnames[] = { | |
22403 | (char *) "self", NULL | |
22404 | }; | |
22405 | ||
22406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
22407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22408 | { | |
22409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22410 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
22411 | ||
22412 | wxPyEndAllowThreads(__tstate); | |
22413 | if (PyErr_Occurred()) SWIG_fail; | |
22414 | } | |
22415 | { | |
22416 | resultobj = wxPyMake_wxObject(result); | |
22417 | } | |
22418 | return resultobj; | |
22419 | fail: | |
22420 | return NULL; | |
22421 | } | |
22422 | ||
22423 | ||
22424 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
22425 | PyObject *obj; | |
22426 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22427 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
22428 | Py_INCREF(obj); | |
22429 | return Py_BuildValue((char *)""); | |
22430 | } | |
22431 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22432 | PyObject *resultobj; | |
22433 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22434 | int arg2 = (int) -1 ; |
d14a1e28 RD |
22435 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
22436 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22437 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22438 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22439 | long arg5 = (long) wxLC_REPORT ; | |
22440 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
22441 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
22442 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
22443 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22444 | wxListView *result; | |
22445 | wxPoint temp3 ; | |
22446 | wxSize temp4 ; | |
423f194a | 22447 | bool temp7 = False ; |
d14a1e28 | 22448 | PyObject * obj0 = 0 ; |
8edf1c75 | 22449 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22450 | PyObject * obj2 = 0 ; |
22451 | PyObject * obj3 = 0 ; | |
8edf1c75 | 22452 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
22453 | PyObject * obj5 = 0 ; |
22454 | PyObject * obj6 = 0 ; | |
22455 | char *kwnames[] = { | |
22456 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22457 | }; | |
22458 | ||
8edf1c75 | 22459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 22460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22461 | if (obj1) { |
22462 | { | |
22463 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22464 | if (PyErr_Occurred()) SWIG_fail; | |
22465 | } | |
22466 | } | |
d14a1e28 RD |
22467 | if (obj2) { |
22468 | { | |
22469 | arg3 = &temp3; | |
22470 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22471 | } | |
22472 | } | |
22473 | if (obj3) { | |
22474 | { | |
22475 | arg4 = &temp4; | |
22476 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22477 | } | |
22478 | } | |
8edf1c75 RD |
22479 | if (obj4) { |
22480 | { | |
22481 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
22482 | if (PyErr_Occurred()) SWIG_fail; | |
22483 | } | |
22484 | } | |
d14a1e28 RD |
22485 | if (obj5) { |
22486 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22487 | if (arg6 == NULL) { | |
22488 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22489 | } | |
22490 | } | |
22491 | if (obj6) { | |
22492 | { | |
22493 | arg7 = wxString_in_helper(obj6); | |
22494 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 22495 | temp7 = True; |
d14a1e28 RD |
22496 | } |
22497 | } | |
22498 | { | |
22499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22500 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
22501 | ||
22502 | wxPyEndAllowThreads(__tstate); | |
22503 | if (PyErr_Occurred()) SWIG_fail; | |
22504 | } | |
22505 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
22506 | { | |
22507 | if (temp7) | |
22508 | delete arg7; | |
22509 | } | |
22510 | return resultobj; | |
22511 | fail: | |
22512 | { | |
22513 | if (temp7) | |
22514 | delete arg7; | |
22515 | } | |
22516 | return NULL; | |
22517 | } | |
22518 | ||
22519 | ||
22520 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22521 | PyObject *resultobj; | |
22522 | wxListView *result; | |
22523 | char *kwnames[] = { | |
22524 | NULL | |
22525 | }; | |
22526 | ||
22527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
22528 | { | |
22529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22530 | result = (wxListView *)new wxListView(); | |
22531 | ||
22532 | wxPyEndAllowThreads(__tstate); | |
22533 | if (PyErr_Occurred()) SWIG_fail; | |
22534 | } | |
22535 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
22536 | return resultobj; | |
22537 | fail: | |
22538 | return NULL; | |
22539 | } | |
22540 | ||
22541 | ||
22542 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22543 | PyObject *resultobj; | |
22544 | wxListView *arg1 = (wxListView *) 0 ; | |
22545 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 22546 | int arg3 = (int) -1 ; |
d14a1e28 RD |
22547 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
22548 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22549 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22550 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22551 | long arg6 = (long) wxLC_REPORT ; | |
22552 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
22553 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
22554 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
22555 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
22556 | bool result; | |
22557 | wxPoint temp4 ; | |
22558 | wxSize temp5 ; | |
423f194a | 22559 | bool temp8 = False ; |
d14a1e28 RD |
22560 | PyObject * obj0 = 0 ; |
22561 | PyObject * obj1 = 0 ; | |
8edf1c75 | 22562 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22563 | PyObject * obj3 = 0 ; |
22564 | PyObject * obj4 = 0 ; | |
8edf1c75 | 22565 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22566 | PyObject * obj6 = 0 ; |
22567 | PyObject * obj7 = 0 ; | |
22568 | char *kwnames[] = { | |
22569 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22570 | }; | |
22571 | ||
8edf1c75 | 22572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
22573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
22574 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
22575 | if (obj2) { |
22576 | { | |
22577 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22578 | if (PyErr_Occurred()) SWIG_fail; | |
22579 | } | |
22580 | } | |
d14a1e28 RD |
22581 | if (obj3) { |
22582 | { | |
22583 | arg4 = &temp4; | |
22584 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22585 | } | |
22586 | } | |
22587 | if (obj4) { | |
22588 | { | |
22589 | arg5 = &temp5; | |
22590 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22591 | } | |
22592 | } | |
8edf1c75 RD |
22593 | if (obj5) { |
22594 | { | |
22595 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
22596 | if (PyErr_Occurred()) SWIG_fail; | |
22597 | } | |
22598 | } | |
d14a1e28 RD |
22599 | if (obj6) { |
22600 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22601 | if (arg7 == NULL) { | |
22602 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22603 | } | |
22604 | } | |
22605 | if (obj7) { | |
22606 | { | |
22607 | arg8 = wxString_in_helper(obj7); | |
22608 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 22609 | temp8 = True; |
d14a1e28 RD |
22610 | } |
22611 | } | |
22612 | { | |
22613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22614 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
22615 | ||
22616 | wxPyEndAllowThreads(__tstate); | |
22617 | if (PyErr_Occurred()) SWIG_fail; | |
22618 | } | |
4e760a36 | 22619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22620 | { |
22621 | if (temp8) | |
22622 | delete arg8; | |
22623 | } | |
22624 | return resultobj; | |
22625 | fail: | |
22626 | { | |
22627 | if (temp8) | |
22628 | delete arg8; | |
22629 | } | |
22630 | return NULL; | |
22631 | } | |
22632 | ||
22633 | ||
22634 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22635 | PyObject *resultobj; | |
22636 | wxListView *arg1 = (wxListView *) 0 ; | |
22637 | long arg2 ; | |
423f194a | 22638 | bool arg3 = (bool) True ; |
d14a1e28 | 22639 | PyObject * obj0 = 0 ; |
8edf1c75 | 22640 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22641 | PyObject * obj2 = 0 ; |
22642 | char *kwnames[] = { | |
22643 | (char *) "self",(char *) "n",(char *) "on", NULL | |
22644 | }; | |
22645 | ||
8edf1c75 | 22646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22648 | { |
22649 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22650 | if (PyErr_Occurred()) SWIG_fail; | |
22651 | } | |
d14a1e28 | 22652 | if (obj2) { |
83448d71 | 22653 | { |
8edf1c75 | 22654 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
22655 | if (PyErr_Occurred()) SWIG_fail; |
22656 | } | |
d14a1e28 RD |
22657 | } |
22658 | { | |
22659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22660 | (arg1)->Select(arg2,arg3); | |
22661 | ||
22662 | wxPyEndAllowThreads(__tstate); | |
22663 | if (PyErr_Occurred()) SWIG_fail; | |
22664 | } | |
22665 | Py_INCREF(Py_None); resultobj = Py_None; | |
22666 | return resultobj; | |
22667 | fail: | |
22668 | return NULL; | |
22669 | } | |
22670 | ||
22671 | ||
22672 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22673 | PyObject *resultobj; | |
22674 | wxListView *arg1 = (wxListView *) 0 ; | |
22675 | long arg2 ; | |
22676 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22677 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22678 | char *kwnames[] = { |
22679 | (char *) "self",(char *) "index", NULL | |
22680 | }; | |
22681 | ||
8edf1c75 | 22682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22684 | { |
22685 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22686 | if (PyErr_Occurred()) SWIG_fail; | |
22687 | } | |
d14a1e28 RD |
22688 | { |
22689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22690 | (arg1)->Focus(arg2); | |
22691 | ||
22692 | wxPyEndAllowThreads(__tstate); | |
22693 | if (PyErr_Occurred()) SWIG_fail; | |
22694 | } | |
22695 | Py_INCREF(Py_None); resultobj = Py_None; | |
22696 | return resultobj; | |
22697 | fail: | |
22698 | return NULL; | |
22699 | } | |
22700 | ||
22701 | ||
22702 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22703 | PyObject *resultobj; | |
22704 | wxListView *arg1 = (wxListView *) 0 ; | |
22705 | long result; | |
22706 | PyObject * obj0 = 0 ; | |
22707 | char *kwnames[] = { | |
22708 | (char *) "self", NULL | |
22709 | }; | |
22710 | ||
22711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
22712 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22713 | { | |
22714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22715 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
22716 | ||
22717 | wxPyEndAllowThreads(__tstate); | |
22718 | if (PyErr_Occurred()) SWIG_fail; | |
22719 | } | |
8edf1c75 | 22720 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22721 | return resultobj; |
22722 | fail: | |
22723 | return NULL; | |
22724 | } | |
22725 | ||
22726 | ||
22727 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22728 | PyObject *resultobj; | |
22729 | wxListView *arg1 = (wxListView *) 0 ; | |
22730 | long arg2 ; | |
22731 | long result; | |
22732 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22733 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22734 | char *kwnames[] = { |
22735 | (char *) "self",(char *) "item", NULL | |
22736 | }; | |
22737 | ||
8edf1c75 | 22738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22740 | { |
22741 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22742 | if (PyErr_Occurred()) SWIG_fail; | |
22743 | } | |
d14a1e28 RD |
22744 | { |
22745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22746 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
22747 | ||
22748 | wxPyEndAllowThreads(__tstate); | |
22749 | if (PyErr_Occurred()) SWIG_fail; | |
22750 | } | |
8edf1c75 | 22751 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22752 | return resultobj; |
22753 | fail: | |
22754 | return NULL; | |
22755 | } | |
22756 | ||
22757 | ||
22758 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22759 | PyObject *resultobj; | |
22760 | wxListView *arg1 = (wxListView *) 0 ; | |
22761 | long result; | |
22762 | PyObject * obj0 = 0 ; | |
22763 | char *kwnames[] = { | |
22764 | (char *) "self", NULL | |
22765 | }; | |
22766 | ||
22767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
22768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22769 | { | |
22770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22771 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
22772 | ||
22773 | wxPyEndAllowThreads(__tstate); | |
22774 | if (PyErr_Occurred()) SWIG_fail; | |
22775 | } | |
8edf1c75 | 22776 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22777 | return resultobj; |
22778 | fail: | |
22779 | return NULL; | |
22780 | } | |
22781 | ||
22782 | ||
22783 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22784 | PyObject *resultobj; | |
22785 | wxListView *arg1 = (wxListView *) 0 ; | |
22786 | long arg2 ; | |
22787 | bool result; | |
22788 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22789 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22790 | char *kwnames[] = { |
22791 | (char *) "self",(char *) "index", NULL | |
22792 | }; | |
22793 | ||
8edf1c75 | 22794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22796 | { |
22797 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22798 | if (PyErr_Occurred()) SWIG_fail; | |
22799 | } | |
d14a1e28 RD |
22800 | { |
22801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22802 | result = (bool)(arg1)->IsSelected(arg2); | |
22803 | ||
22804 | wxPyEndAllowThreads(__tstate); | |
22805 | if (PyErr_Occurred()) SWIG_fail; | |
22806 | } | |
4e760a36 | 22807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22808 | return resultobj; |
22809 | fail: | |
22810 | return NULL; | |
22811 | } | |
22812 | ||
22813 | ||
22814 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22815 | PyObject *resultobj; | |
22816 | wxListView *arg1 = (wxListView *) 0 ; | |
22817 | int arg2 ; | |
22818 | int arg3 ; | |
22819 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22820 | PyObject * obj1 = 0 ; |
22821 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22822 | char *kwnames[] = { |
22823 | (char *) "self",(char *) "col",(char *) "image", NULL | |
22824 | }; | |
22825 | ||
8edf1c75 | 22826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22828 | { |
22829 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22830 | if (PyErr_Occurred()) SWIG_fail; | |
22831 | } | |
22832 | { | |
22833 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22834 | if (PyErr_Occurred()) SWIG_fail; | |
22835 | } | |
d14a1e28 RD |
22836 | { |
22837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22838 | (arg1)->SetColumnImage(arg2,arg3); | |
22839 | ||
22840 | wxPyEndAllowThreads(__tstate); | |
22841 | if (PyErr_Occurred()) SWIG_fail; | |
22842 | } | |
22843 | Py_INCREF(Py_None); resultobj = Py_None; | |
22844 | return resultobj; | |
22845 | fail: | |
22846 | return NULL; | |
22847 | } | |
22848 | ||
22849 | ||
22850 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22851 | PyObject *resultobj; | |
22852 | wxListView *arg1 = (wxListView *) 0 ; | |
22853 | int arg2 ; | |
22854 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22855 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22856 | char *kwnames[] = { |
22857 | (char *) "self",(char *) "col", NULL | |
22858 | }; | |
22859 | ||
8edf1c75 | 22860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22862 | { |
22863 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22864 | if (PyErr_Occurred()) SWIG_fail; | |
22865 | } | |
d14a1e28 RD |
22866 | { |
22867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22868 | (arg1)->ClearColumnImage(arg2); | |
22869 | ||
22870 | wxPyEndAllowThreads(__tstate); | |
22871 | if (PyErr_Occurred()) SWIG_fail; | |
22872 | } | |
22873 | Py_INCREF(Py_None); resultobj = Py_None; | |
22874 | return resultobj; | |
22875 | fail: | |
22876 | return NULL; | |
22877 | } | |
22878 | ||
22879 | ||
22880 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
22881 | PyObject *obj; | |
22882 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22883 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
22884 | Py_INCREF(obj); | |
22885 | return Py_BuildValue((char *)""); | |
22886 | } | |
8edf1c75 | 22887 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
d03fd34d RD |
22888 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
22889 | return 1; | |
22890 | } | |
22891 | ||
22892 | ||
22893 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
22894 | PyObject *pyobj; | |
22895 | ||
22896 | { | |
22897 | #if wxUSE_UNICODE | |
22898 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22899 | #else | |
22900 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22901 | #endif | |
22902 | } | |
22903 | return pyobj; | |
22904 | } | |
22905 | ||
22906 | ||
d14a1e28 RD |
22907 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
22908 | PyObject *resultobj; | |
22909 | wxTreeItemId *result; | |
22910 | char *kwnames[] = { | |
22911 | NULL | |
22912 | }; | |
22913 | ||
22914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
22915 | { | |
22916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22917 | result = (wxTreeItemId *)new wxTreeItemId(); | |
22918 | ||
22919 | wxPyEndAllowThreads(__tstate); | |
22920 | if (PyErr_Occurred()) SWIG_fail; | |
22921 | } | |
22922 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 1); | |
22923 | return resultobj; | |
22924 | fail: | |
22925 | return NULL; | |
22926 | } | |
22927 | ||
22928 | ||
22929 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22930 | PyObject *resultobj; | |
22931 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22932 | PyObject * obj0 = 0 ; | |
22933 | char *kwnames[] = { | |
22934 | (char *) "self", NULL | |
22935 | }; | |
22936 | ||
22937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
22938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22939 | { | |
22940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22941 | delete arg1; | |
22942 | ||
22943 | wxPyEndAllowThreads(__tstate); | |
22944 | if (PyErr_Occurred()) SWIG_fail; | |
22945 | } | |
22946 | Py_INCREF(Py_None); resultobj = Py_None; | |
22947 | return resultobj; | |
22948 | fail: | |
22949 | return NULL; | |
22950 | } | |
22951 | ||
22952 | ||
22953 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22954 | PyObject *resultobj; | |
22955 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22956 | bool result; | |
22957 | PyObject * obj0 = 0 ; | |
22958 | char *kwnames[] = { | |
22959 | (char *) "self", NULL | |
22960 | }; | |
22961 | ||
22962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
22963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22964 | { | |
22965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22966 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
22967 | ||
22968 | wxPyEndAllowThreads(__tstate); | |
22969 | if (PyErr_Occurred()) SWIG_fail; | |
22970 | } | |
4e760a36 | 22971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22972 | return resultobj; |
22973 | fail: | |
22974 | return NULL; | |
22975 | } | |
22976 | ||
22977 | ||
22978 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22979 | PyObject *resultobj; | |
22980 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22981 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
22982 | bool result; | |
22983 | PyObject * obj0 = 0 ; | |
22984 | PyObject * obj1 = 0 ; | |
22985 | char *kwnames[] = { | |
22986 | (char *) "self",(char *) "other", NULL | |
22987 | }; | |
22988 | ||
22989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,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 | { | |
22993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22994 | result = (bool)wxTreeItemId_operator_ee___(arg1,(wxTreeItemId const *)arg2); | |
22995 | ||
22996 | wxPyEndAllowThreads(__tstate); | |
22997 | if (PyErr_Occurred()) SWIG_fail; | |
22998 | } | |
4e760a36 | 22999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23000 | return resultobj; |
23001 | fail: | |
23002 | return NULL; | |
23003 | } | |
23004 | ||
23005 | ||
23006 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23007 | PyObject *resultobj; | |
23008 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23009 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
23010 | bool result; | |
23011 | PyObject * obj0 = 0 ; | |
23012 | PyObject * obj1 = 0 ; | |
23013 | char *kwnames[] = { | |
23014 | (char *) "self",(char *) "other", NULL | |
23015 | }; | |
23016 | ||
23017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
23018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23019 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23020 | { | |
23021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23022 | result = (bool)wxTreeItemId_operator_Ne___(arg1,(wxTreeItemId const *)arg2); | |
23023 | ||
23024 | wxPyEndAllowThreads(__tstate); | |
23025 | if (PyErr_Occurred()) SWIG_fail; | |
23026 | } | |
4e760a36 | 23027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23028 | return resultobj; |
23029 | fail: | |
23030 | return NULL; | |
23031 | } | |
23032 | ||
23033 | ||
23034 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23035 | PyObject *resultobj; | |
23036 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 23037 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
23038 | PyObject * obj0 = 0 ; |
23039 | PyObject * obj1 = 0 ; | |
23040 | char *kwnames[] = { | |
23041 | (char *) "self",(char *) "m_pItem", NULL | |
23042 | }; | |
23043 | ||
23044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
23045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23046 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
23047 | if (arg1) (arg1)->m_pItem = arg2; | |
23048 | ||
23049 | Py_INCREF(Py_None); resultobj = Py_None; | |
23050 | return resultobj; | |
23051 | fail: | |
23052 | return NULL; | |
23053 | } | |
23054 | ||
23055 | ||
23056 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23057 | PyObject *resultobj; | |
23058 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 23059 | void *result; |
d14a1e28 RD |
23060 | PyObject * obj0 = 0 ; |
23061 | char *kwnames[] = { | |
23062 | (char *) "self", NULL | |
23063 | }; | |
23064 | ||
23065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
23066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 23067 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 23068 | |
58203fa6 | 23069 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_void, 0); |
d14a1e28 RD |
23070 | return resultobj; |
23071 | fail: | |
23072 | return NULL; | |
23073 | } | |
23074 | ||
23075 | ||
23076 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
23077 | PyObject *obj; | |
23078 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23079 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
23080 | Py_INCREF(obj); | |
23081 | return Py_BuildValue((char *)""); | |
23082 | } | |
23083 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23084 | PyObject *resultobj; | |
23085 | PyObject *arg1 = (PyObject *) NULL ; | |
23086 | wxPyTreeItemData *result; | |
23087 | PyObject * obj0 = 0 ; | |
23088 | char *kwnames[] = { | |
23089 | (char *) "obj", NULL | |
23090 | }; | |
23091 | ||
23092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
23093 | if (obj0) { | |
23094 | arg1 = obj0; | |
23095 | } | |
23096 | { | |
23097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23098 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
23099 | ||
23100 | wxPyEndAllowThreads(__tstate); | |
23101 | if (PyErr_Occurred()) SWIG_fail; | |
23102 | } | |
23103 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 1); | |
23104 | return resultobj; | |
23105 | fail: | |
23106 | return NULL; | |
23107 | } | |
23108 | ||
23109 | ||
23110 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23111 | PyObject *resultobj; | |
23112 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23113 | PyObject *result; | |
23114 | PyObject * obj0 = 0 ; | |
23115 | char *kwnames[] = { | |
23116 | (char *) "self", NULL | |
23117 | }; | |
23118 | ||
23119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
23120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23121 | { | |
23122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23123 | result = (PyObject *)(arg1)->GetData(); | |
23124 | ||
23125 | wxPyEndAllowThreads(__tstate); | |
23126 | if (PyErr_Occurred()) SWIG_fail; | |
23127 | } | |
23128 | resultobj = result; | |
23129 | return resultobj; | |
23130 | fail: | |
23131 | return NULL; | |
23132 | } | |
23133 | ||
23134 | ||
23135 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23136 | PyObject *resultobj; | |
23137 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23138 | PyObject *arg2 = (PyObject *) 0 ; | |
23139 | PyObject * obj0 = 0 ; | |
23140 | PyObject * obj1 = 0 ; | |
23141 | char *kwnames[] = { | |
23142 | (char *) "self",(char *) "obj", NULL | |
23143 | }; | |
23144 | ||
23145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
23146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23147 | arg2 = obj1; | |
23148 | { | |
23149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23150 | (arg1)->SetData(arg2); | |
23151 | ||
23152 | wxPyEndAllowThreads(__tstate); | |
23153 | if (PyErr_Occurred()) SWIG_fail; | |
23154 | } | |
23155 | Py_INCREF(Py_None); resultobj = Py_None; | |
23156 | return resultobj; | |
23157 | fail: | |
23158 | return NULL; | |
23159 | } | |
23160 | ||
23161 | ||
23162 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23163 | PyObject *resultobj; | |
23164 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23165 | wxTreeItemId *result; | |
23166 | PyObject * obj0 = 0 ; | |
23167 | char *kwnames[] = { | |
23168 | (char *) "self", NULL | |
23169 | }; | |
23170 | ||
23171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
23172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23173 | { | |
23174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23175 | { | |
23176 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
23177 | result = (wxTreeItemId *) &_result_ref; | |
23178 | } | |
23179 | ||
23180 | wxPyEndAllowThreads(__tstate); | |
23181 | if (PyErr_Occurred()) SWIG_fail; | |
23182 | } | |
23183 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 0); | |
23184 | return resultobj; | |
23185 | fail: | |
23186 | return NULL; | |
23187 | } | |
23188 | ||
23189 | ||
23190 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23191 | PyObject *resultobj; | |
23192 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23193 | wxTreeItemId *arg2 = 0 ; | |
23194 | PyObject * obj0 = 0 ; | |
23195 | PyObject * obj1 = 0 ; | |
23196 | char *kwnames[] = { | |
23197 | (char *) "self",(char *) "id", NULL | |
23198 | }; | |
23199 | ||
23200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
23201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23202 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23203 | if (arg2 == NULL) { | |
23204 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23205 | } | |
23206 | { | |
23207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23208 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
23209 | ||
23210 | wxPyEndAllowThreads(__tstate); | |
23211 | if (PyErr_Occurred()) SWIG_fail; | |
23212 | } | |
23213 | Py_INCREF(Py_None); resultobj = Py_None; | |
23214 | return resultobj; | |
23215 | fail: | |
23216 | return NULL; | |
23217 | } | |
23218 | ||
23219 | ||
23220 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23221 | PyObject *resultobj; | |
23222 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23223 | PyObject * obj0 = 0 ; | |
23224 | char *kwnames[] = { | |
23225 | (char *) "self", NULL | |
23226 | }; | |
23227 | ||
23228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
23229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23230 | { | |
23231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23232 | wxPyTreeItemData_Destroy(arg1); | |
23233 | ||
23234 | wxPyEndAllowThreads(__tstate); | |
23235 | if (PyErr_Occurred()) SWIG_fail; | |
23236 | } | |
23237 | Py_INCREF(Py_None); resultobj = Py_None; | |
23238 | return resultobj; | |
23239 | fail: | |
23240 | return NULL; | |
23241 | } | |
23242 | ||
23243 | ||
23244 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
23245 | PyObject *obj; | |
23246 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23247 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
23248 | Py_INCREF(obj); | |
23249 | return Py_BuildValue((char *)""); | |
23250 | } | |
23251 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23252 | PyObject *resultobj; | |
23253 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
23254 | int arg2 = (int) 0 ; | |
23255 | wxTreeEvent *result; | |
8edf1c75 RD |
23256 | PyObject * obj0 = 0 ; |
23257 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
23258 | char *kwnames[] = { |
23259 | (char *) "commandType",(char *) "id", NULL | |
23260 | }; | |
23261 | ||
8edf1c75 RD |
23262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
23263 | if (obj0) { | |
23264 | { | |
23265 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
23266 | if (PyErr_Occurred()) SWIG_fail; | |
23267 | } | |
23268 | } | |
23269 | if (obj1) { | |
23270 | { | |
23271 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23272 | if (PyErr_Occurred()) SWIG_fail; | |
23273 | } | |
23274 | } | |
d14a1e28 RD |
23275 | { |
23276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23277 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
23278 | ||
23279 | wxPyEndAllowThreads(__tstate); | |
23280 | if (PyErr_Occurred()) SWIG_fail; | |
23281 | } | |
23282 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeEvent, 1); | |
23283 | return resultobj; | |
23284 | fail: | |
23285 | return NULL; | |
23286 | } | |
23287 | ||
23288 | ||
23289 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23290 | PyObject *resultobj; | |
23291 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23292 | wxTreeItemId result; | |
23293 | PyObject * obj0 = 0 ; | |
23294 | char *kwnames[] = { | |
23295 | (char *) "self", NULL | |
23296 | }; | |
23297 | ||
23298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
23299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23300 | { | |
23301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23302 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
23303 | ||
23304 | wxPyEndAllowThreads(__tstate); | |
23305 | if (PyErr_Occurred()) SWIG_fail; | |
23306 | } | |
23307 | { | |
23308 | wxTreeItemId * resultptr; | |
23309 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23310 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23311 | } | |
23312 | return resultobj; | |
23313 | fail: | |
23314 | return NULL; | |
23315 | } | |
23316 | ||
23317 | ||
23318 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23319 | PyObject *resultobj; | |
23320 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23321 | wxTreeItemId *arg2 = 0 ; | |
23322 | PyObject * obj0 = 0 ; | |
23323 | PyObject * obj1 = 0 ; | |
23324 | char *kwnames[] = { | |
23325 | (char *) "self",(char *) "item", NULL | |
23326 | }; | |
23327 | ||
23328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
23329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23330 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23331 | if (arg2 == NULL) { | |
23332 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23333 | } | |
23334 | { | |
23335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23336 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
23337 | ||
23338 | wxPyEndAllowThreads(__tstate); | |
23339 | if (PyErr_Occurred()) SWIG_fail; | |
23340 | } | |
23341 | Py_INCREF(Py_None); resultobj = Py_None; | |
23342 | return resultobj; | |
23343 | fail: | |
23344 | return NULL; | |
23345 | } | |
23346 | ||
23347 | ||
23348 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23349 | PyObject *resultobj; | |
23350 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23351 | wxTreeItemId result; | |
23352 | PyObject * obj0 = 0 ; | |
23353 | char *kwnames[] = { | |
23354 | (char *) "self", NULL | |
23355 | }; | |
23356 | ||
23357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
23358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23359 | { | |
23360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23361 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
23362 | ||
23363 | wxPyEndAllowThreads(__tstate); | |
23364 | if (PyErr_Occurred()) SWIG_fail; | |
23365 | } | |
23366 | { | |
23367 | wxTreeItemId * resultptr; | |
23368 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23369 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23370 | } | |
23371 | return resultobj; | |
23372 | fail: | |
23373 | return NULL; | |
23374 | } | |
23375 | ||
23376 | ||
23377 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23378 | PyObject *resultobj; | |
23379 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23380 | wxTreeItemId *arg2 = 0 ; | |
23381 | PyObject * obj0 = 0 ; | |
23382 | PyObject * obj1 = 0 ; | |
23383 | char *kwnames[] = { | |
23384 | (char *) "self",(char *) "item", NULL | |
23385 | }; | |
23386 | ||
23387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
23388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23389 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23390 | if (arg2 == NULL) { | |
23391 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23392 | } | |
23393 | { | |
23394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23395 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
23396 | ||
23397 | wxPyEndAllowThreads(__tstate); | |
23398 | if (PyErr_Occurred()) SWIG_fail; | |
23399 | } | |
23400 | Py_INCREF(Py_None); resultobj = Py_None; | |
23401 | return resultobj; | |
23402 | fail: | |
23403 | return NULL; | |
23404 | } | |
23405 | ||
23406 | ||
23407 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23408 | PyObject *resultobj; | |
23409 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23410 | wxPoint result; | |
23411 | PyObject * obj0 = 0 ; | |
23412 | char *kwnames[] = { | |
23413 | (char *) "self", NULL | |
23414 | }; | |
23415 | ||
23416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
23417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23418 | { | |
23419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23420 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
23421 | ||
23422 | wxPyEndAllowThreads(__tstate); | |
23423 | if (PyErr_Occurred()) SWIG_fail; | |
23424 | } | |
23425 | { | |
23426 | wxPoint * resultptr; | |
23427 | resultptr = new wxPoint((wxPoint &) result); | |
23428 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23429 | } | |
23430 | return resultobj; | |
23431 | fail: | |
23432 | return NULL; | |
23433 | } | |
23434 | ||
23435 | ||
23436 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23437 | PyObject *resultobj; | |
23438 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23439 | wxPoint *arg2 = 0 ; | |
23440 | wxPoint temp2 ; | |
23441 | PyObject * obj0 = 0 ; | |
23442 | PyObject * obj1 = 0 ; | |
23443 | char *kwnames[] = { | |
23444 | (char *) "self",(char *) "pt", NULL | |
23445 | }; | |
23446 | ||
23447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
23448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23449 | { | |
23450 | arg2 = &temp2; | |
23451 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23452 | } | |
23453 | { | |
23454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23455 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
23456 | ||
23457 | wxPyEndAllowThreads(__tstate); | |
23458 | if (PyErr_Occurred()) SWIG_fail; | |
23459 | } | |
23460 | Py_INCREF(Py_None); resultobj = Py_None; | |
23461 | return resultobj; | |
23462 | fail: | |
23463 | return NULL; | |
23464 | } | |
23465 | ||
23466 | ||
23467 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23468 | PyObject *resultobj; | |
23469 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23470 | wxKeyEvent *result; | |
23471 | PyObject * obj0 = 0 ; | |
23472 | char *kwnames[] = { | |
23473 | (char *) "self", NULL | |
23474 | }; | |
23475 | ||
23476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
23477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23478 | { | |
23479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23480 | { | |
23481 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
23482 | result = (wxKeyEvent *) &_result_ref; | |
23483 | } | |
23484 | ||
23485 | wxPyEndAllowThreads(__tstate); | |
23486 | if (PyErr_Occurred()) SWIG_fail; | |
23487 | } | |
23488 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 0); | |
23489 | return resultobj; | |
23490 | fail: | |
23491 | return NULL; | |
23492 | } | |
23493 | ||
23494 | ||
23495 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23496 | PyObject *resultobj; | |
23497 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23498 | int result; | |
23499 | PyObject * obj0 = 0 ; | |
23500 | char *kwnames[] = { | |
23501 | (char *) "self", NULL | |
23502 | }; | |
23503 | ||
23504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
23505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23506 | { | |
23507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23508 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
23509 | ||
23510 | wxPyEndAllowThreads(__tstate); | |
23511 | if (PyErr_Occurred()) SWIG_fail; | |
23512 | } | |
8edf1c75 | 23513 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
23514 | return resultobj; |
23515 | fail: | |
23516 | return NULL; | |
23517 | } | |
23518 | ||
23519 | ||
23520 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23521 | PyObject *resultobj; | |
23522 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23523 | wxKeyEvent *arg2 = 0 ; | |
23524 | PyObject * obj0 = 0 ; | |
23525 | PyObject * obj1 = 0 ; | |
23526 | char *kwnames[] = { | |
23527 | (char *) "self",(char *) "evt", NULL | |
23528 | }; | |
23529 | ||
23530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
23531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23532 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23533 | if (arg2 == NULL) { | |
23534 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23535 | } | |
23536 | { | |
23537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23538 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
23539 | ||
23540 | wxPyEndAllowThreads(__tstate); | |
23541 | if (PyErr_Occurred()) SWIG_fail; | |
23542 | } | |
23543 | Py_INCREF(Py_None); resultobj = Py_None; | |
23544 | return resultobj; | |
23545 | fail: | |
23546 | return NULL; | |
23547 | } | |
23548 | ||
23549 | ||
23550 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23551 | PyObject *resultobj; | |
23552 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23553 | wxString *result; | |
23554 | PyObject * obj0 = 0 ; | |
23555 | char *kwnames[] = { | |
23556 | (char *) "self", NULL | |
23557 | }; | |
23558 | ||
23559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
23560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23561 | { | |
23562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23563 | { | |
23564 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
23565 | result = (wxString *) &_result_ref; | |
23566 | } | |
23567 | ||
23568 | wxPyEndAllowThreads(__tstate); | |
23569 | if (PyErr_Occurred()) SWIG_fail; | |
23570 | } | |
f0983263 RD |
23571 | { |
23572 | #if wxUSE_UNICODE | |
23573 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23574 | #else | |
23575 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23576 | #endif | |
23577 | } | |
d14a1e28 RD |
23578 | return resultobj; |
23579 | fail: | |
23580 | return NULL; | |
23581 | } | |
23582 | ||
23583 | ||
23584 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23585 | PyObject *resultobj; | |
23586 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23587 | wxString *arg2 = 0 ; | |
423f194a | 23588 | bool temp2 = False ; |
d14a1e28 RD |
23589 | PyObject * obj0 = 0 ; |
23590 | PyObject * obj1 = 0 ; | |
23591 | char *kwnames[] = { | |
23592 | (char *) "self",(char *) "label", NULL | |
23593 | }; | |
23594 | ||
23595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
23596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23597 | { | |
23598 | arg2 = wxString_in_helper(obj1); | |
23599 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23600 | temp2 = True; |
d14a1e28 RD |
23601 | } |
23602 | { | |
23603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23604 | (arg1)->SetLabel((wxString const &)*arg2); | |
23605 | ||
23606 | wxPyEndAllowThreads(__tstate); | |
23607 | if (PyErr_Occurred()) SWIG_fail; | |
23608 | } | |
23609 | Py_INCREF(Py_None); resultobj = Py_None; | |
23610 | { | |
23611 | if (temp2) | |
23612 | delete arg2; | |
23613 | } | |
23614 | return resultobj; | |
23615 | fail: | |
23616 | { | |
23617 | if (temp2) | |
23618 | delete arg2; | |
23619 | } | |
23620 | return NULL; | |
23621 | } | |
23622 | ||
23623 | ||
23624 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23625 | PyObject *resultobj; | |
23626 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23627 | bool result; | |
23628 | PyObject * obj0 = 0 ; | |
23629 | char *kwnames[] = { | |
23630 | (char *) "self", NULL | |
23631 | }; | |
23632 | ||
23633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
23634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23635 | { | |
23636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23637 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
23638 | ||
23639 | wxPyEndAllowThreads(__tstate); | |
23640 | if (PyErr_Occurred()) SWIG_fail; | |
23641 | } | |
4e760a36 | 23642 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23643 | return resultobj; |
23644 | fail: | |
23645 | return NULL; | |
23646 | } | |
23647 | ||
23648 | ||
23649 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23650 | PyObject *resultobj; | |
23651 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23652 | bool arg2 ; | |
23653 | PyObject * obj0 = 0 ; | |
23654 | PyObject * obj1 = 0 ; | |
23655 | char *kwnames[] = { | |
23656 | (char *) "self",(char *) "editCancelled", NULL | |
23657 | }; | |
23658 | ||
23659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
23660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 23661 | { |
8edf1c75 | 23662 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
23663 | if (PyErr_Occurred()) SWIG_fail; |
23664 | } | |
d14a1e28 RD |
23665 | { |
23666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23667 | (arg1)->SetEditCanceled(arg2); | |
23668 | ||
23669 | wxPyEndAllowThreads(__tstate); | |
23670 | if (PyErr_Occurred()) SWIG_fail; | |
23671 | } | |
23672 | Py_INCREF(Py_None); resultobj = Py_None; | |
23673 | return resultobj; | |
23674 | fail: | |
23675 | return NULL; | |
23676 | } | |
23677 | ||
23678 | ||
9fd4be55 RD |
23679 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
23680 | PyObject *resultobj; | |
23681 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23682 | wxString *arg2 = 0 ; | |
23683 | bool temp2 = False ; | |
23684 | PyObject * obj0 = 0 ; | |
23685 | PyObject * obj1 = 0 ; | |
23686 | char *kwnames[] = { | |
23687 | (char *) "self",(char *) "toolTip", NULL | |
23688 | }; | |
23689 | ||
23690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
23691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23692 | { | |
23693 | arg2 = wxString_in_helper(obj1); | |
23694 | if (arg2 == NULL) SWIG_fail; | |
23695 | temp2 = True; | |
23696 | } | |
23697 | { | |
23698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23699 | (arg1)->SetToolTip((wxString const &)*arg2); | |
23700 | ||
23701 | wxPyEndAllowThreads(__tstate); | |
23702 | if (PyErr_Occurred()) SWIG_fail; | |
23703 | } | |
23704 | Py_INCREF(Py_None); resultobj = Py_None; | |
23705 | { | |
23706 | if (temp2) | |
23707 | delete arg2; | |
23708 | } | |
23709 | return resultobj; | |
23710 | fail: | |
23711 | { | |
23712 | if (temp2) | |
23713 | delete arg2; | |
23714 | } | |
23715 | return NULL; | |
23716 | } | |
23717 | ||
23718 | ||
d14a1e28 RD |
23719 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
23720 | PyObject *obj; | |
23721 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23722 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
23723 | Py_INCREF(obj); | |
23724 | return Py_BuildValue((char *)""); | |
23725 | } | |
23726 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23727 | PyObject *resultobj; | |
23728 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23729 | int arg2 = (int) -1 ; |
d14a1e28 RD |
23730 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23731 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23732 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23733 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23734 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
23735 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23736 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
d03fd34d | 23737 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23738 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
23739 | wxPyTreeCtrl *result; | |
23740 | wxPoint temp3 ; | |
23741 | wxSize temp4 ; | |
423f194a | 23742 | bool temp7 = False ; |
d14a1e28 | 23743 | PyObject * obj0 = 0 ; |
8edf1c75 | 23744 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23745 | PyObject * obj2 = 0 ; |
23746 | PyObject * obj3 = 0 ; | |
8edf1c75 | 23747 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
23748 | PyObject * obj5 = 0 ; |
23749 | PyObject * obj6 = 0 ; | |
23750 | char *kwnames[] = { | |
23751 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23752 | }; | |
23753 | ||
8edf1c75 | 23754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 23755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23756 | if (obj1) { |
23757 | { | |
23758 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23759 | if (PyErr_Occurred()) SWIG_fail; | |
23760 | } | |
23761 | } | |
d14a1e28 RD |
23762 | if (obj2) { |
23763 | { | |
23764 | arg3 = &temp3; | |
23765 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23766 | } | |
23767 | } | |
23768 | if (obj3) { | |
23769 | { | |
8edf1c75 RD |
23770 | arg4 = &temp4; |
23771 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23772 | } | |
23773 | } | |
23774 | if (obj4) { | |
23775 | { | |
23776 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
23777 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23778 | } |
23779 | } | |
23780 | if (obj5) { | |
23781 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23782 | if (arg6 == NULL) { | |
23783 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23784 | } | |
23785 | } | |
23786 | if (obj6) { | |
23787 | { | |
23788 | arg7 = wxString_in_helper(obj6); | |
23789 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 23790 | temp7 = True; |
d14a1e28 RD |
23791 | } |
23792 | } | |
23793 | { | |
23794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23795 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23796 | ||
23797 | wxPyEndAllowThreads(__tstate); | |
23798 | if (PyErr_Occurred()) SWIG_fail; | |
23799 | } | |
d03fd34d RD |
23800 | { |
23801 | resultobj = wxPyMake_wxObject(result); | |
23802 | } | |
d14a1e28 RD |
23803 | { |
23804 | if (temp7) | |
23805 | delete arg7; | |
23806 | } | |
23807 | return resultobj; | |
23808 | fail: | |
23809 | { | |
23810 | if (temp7) | |
23811 | delete arg7; | |
23812 | } | |
23813 | return NULL; | |
23814 | } | |
23815 | ||
23816 | ||
23817 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23818 | PyObject *resultobj; | |
23819 | wxPyTreeCtrl *result; | |
23820 | char *kwnames[] = { | |
23821 | NULL | |
23822 | }; | |
23823 | ||
23824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
23825 | { | |
23826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23827 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
23828 | ||
23829 | wxPyEndAllowThreads(__tstate); | |
23830 | if (PyErr_Occurred()) SWIG_fail; | |
23831 | } | |
d03fd34d RD |
23832 | { |
23833 | resultobj = wxPyMake_wxObject(result); | |
23834 | } | |
d14a1e28 RD |
23835 | return resultobj; |
23836 | fail: | |
23837 | return NULL; | |
23838 | } | |
23839 | ||
23840 | ||
23841 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23842 | PyObject *resultobj; | |
23843 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23844 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 23845 | int arg3 = (int) -1 ; |
d14a1e28 RD |
23846 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23847 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23848 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23849 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23850 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
23851 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23852 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
d03fd34d | 23853 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23854 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
23855 | bool result; | |
23856 | wxPoint temp4 ; | |
23857 | wxSize temp5 ; | |
423f194a | 23858 | bool temp8 = False ; |
d14a1e28 RD |
23859 | PyObject * obj0 = 0 ; |
23860 | PyObject * obj1 = 0 ; | |
8edf1c75 | 23861 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23862 | PyObject * obj3 = 0 ; |
23863 | PyObject * obj4 = 0 ; | |
8edf1c75 | 23864 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
23865 | PyObject * obj6 = 0 ; |
23866 | PyObject * obj7 = 0 ; | |
23867 | char *kwnames[] = { | |
23868 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23869 | }; | |
23870 | ||
8edf1c75 | 23871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
23872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
23873 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
23874 | if (obj2) { |
23875 | { | |
23876 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
23877 | if (PyErr_Occurred()) SWIG_fail; | |
23878 | } | |
23879 | } | |
d14a1e28 RD |
23880 | if (obj3) { |
23881 | { | |
23882 | arg4 = &temp4; | |
23883 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23884 | } | |
23885 | } | |
23886 | if (obj4) { | |
23887 | { | |
23888 | arg5 = &temp5; | |
23889 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23890 | } | |
23891 | } | |
8edf1c75 RD |
23892 | if (obj5) { |
23893 | { | |
23894 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
23895 | if (PyErr_Occurred()) SWIG_fail; | |
23896 | } | |
23897 | } | |
d14a1e28 RD |
23898 | if (obj6) { |
23899 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23900 | if (arg7 == NULL) { | |
23901 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23902 | } | |
23903 | } | |
23904 | if (obj7) { | |
23905 | { | |
23906 | arg8 = wxString_in_helper(obj7); | |
23907 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 23908 | temp8 = True; |
d14a1e28 RD |
23909 | } |
23910 | } | |
23911 | { | |
23912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23913 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23914 | ||
23915 | wxPyEndAllowThreads(__tstate); | |
23916 | if (PyErr_Occurred()) SWIG_fail; | |
23917 | } | |
4e760a36 | 23918 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23919 | { |
23920 | if (temp8) | |
23921 | delete arg8; | |
23922 | } | |
23923 | return resultobj; | |
23924 | fail: | |
23925 | { | |
23926 | if (temp8) | |
23927 | delete arg8; | |
23928 | } | |
23929 | return NULL; | |
23930 | } | |
23931 | ||
23932 | ||
23933 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23934 | PyObject *resultobj; | |
23935 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23936 | PyObject *arg2 = (PyObject *) 0 ; | |
23937 | PyObject *arg3 = (PyObject *) 0 ; | |
23938 | PyObject * obj0 = 0 ; | |
23939 | PyObject * obj1 = 0 ; | |
23940 | PyObject * obj2 = 0 ; | |
23941 | char *kwnames[] = { | |
23942 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23943 | }; | |
23944 | ||
23945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23947 | arg2 = obj1; | |
23948 | arg3 = obj2; | |
23949 | { | |
23950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23951 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23952 | ||
23953 | wxPyEndAllowThreads(__tstate); | |
23954 | if (PyErr_Occurred()) SWIG_fail; | |
23955 | } | |
23956 | Py_INCREF(Py_None); resultobj = Py_None; | |
23957 | return resultobj; | |
23958 | fail: | |
23959 | return NULL; | |
23960 | } | |
23961 | ||
23962 | ||
23963 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23964 | PyObject *resultobj; | |
23965 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23966 | size_t result; | |
23967 | PyObject * obj0 = 0 ; | |
23968 | char *kwnames[] = { | |
23969 | (char *) "self", NULL | |
23970 | }; | |
23971 | ||
23972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
23973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23974 | { | |
23975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23976 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
23977 | ||
23978 | wxPyEndAllowThreads(__tstate); | |
23979 | if (PyErr_Occurred()) SWIG_fail; | |
23980 | } | |
8edf1c75 | 23981 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
23982 | return resultobj; |
23983 | fail: | |
23984 | return NULL; | |
23985 | } | |
23986 | ||
23987 | ||
23988 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23989 | PyObject *resultobj; | |
23990 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23991 | unsigned int result; | |
23992 | PyObject * obj0 = 0 ; | |
23993 | char *kwnames[] = { | |
23994 | (char *) "self", NULL | |
23995 | }; | |
23996 | ||
23997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
23998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23999 | { | |
24000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24001 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
24002 | ||
24003 | wxPyEndAllowThreads(__tstate); | |
24004 | if (PyErr_Occurred()) SWIG_fail; | |
24005 | } | |
8edf1c75 | 24006 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
24007 | return resultobj; |
24008 | fail: | |
24009 | return NULL; | |
24010 | } | |
24011 | ||
24012 | ||
24013 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24014 | PyObject *resultobj; | |
24015 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24016 | unsigned int arg2 ; | |
24017 | PyObject * obj0 = 0 ; | |
24018 | PyObject * obj1 = 0 ; | |
24019 | char *kwnames[] = { | |
24020 | (char *) "self",(char *) "indent", NULL | |
24021 | }; | |
24022 | ||
24023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
24024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 24025 | { |
8edf1c75 | 24026 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
83448d71 RD |
24027 | if (PyErr_Occurred()) SWIG_fail; |
24028 | } | |
d14a1e28 RD |
24029 | { |
24030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24031 | (arg1)->SetIndent(arg2); | |
24032 | ||
24033 | wxPyEndAllowThreads(__tstate); | |
24034 | if (PyErr_Occurred()) SWIG_fail; | |
24035 | } | |
24036 | Py_INCREF(Py_None); resultobj = Py_None; | |
24037 | return resultobj; | |
24038 | fail: | |
24039 | return NULL; | |
24040 | } | |
24041 | ||
24042 | ||
24043 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24044 | PyObject *resultobj; | |
24045 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24046 | unsigned int result; | |
24047 | PyObject * obj0 = 0 ; | |
24048 | char *kwnames[] = { | |
24049 | (char *) "self", NULL | |
24050 | }; | |
24051 | ||
24052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
24053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24054 | { | |
24055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24056 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
24057 | ||
24058 | wxPyEndAllowThreads(__tstate); | |
24059 | if (PyErr_Occurred()) SWIG_fail; | |
24060 | } | |
8edf1c75 | 24061 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
24062 | return resultobj; |
24063 | fail: | |
24064 | return NULL; | |
24065 | } | |
24066 | ||
24067 | ||
24068 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24069 | PyObject *resultobj; | |
24070 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24071 | unsigned int arg2 ; | |
24072 | PyObject * obj0 = 0 ; | |
24073 | PyObject * obj1 = 0 ; | |
24074 | char *kwnames[] = { | |
24075 | (char *) "self",(char *) "spacing", NULL | |
24076 | }; | |
24077 | ||
24078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
24079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 24080 | { |
8edf1c75 | 24081 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
83448d71 RD |
24082 | if (PyErr_Occurred()) SWIG_fail; |
24083 | } | |
d14a1e28 RD |
24084 | { |
24085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24086 | (arg1)->SetSpacing(arg2); | |
24087 | ||
24088 | wxPyEndAllowThreads(__tstate); | |
24089 | if (PyErr_Occurred()) SWIG_fail; | |
24090 | } | |
24091 | Py_INCREF(Py_None); resultobj = Py_None; | |
24092 | return resultobj; | |
24093 | fail: | |
24094 | return NULL; | |
24095 | } | |
24096 | ||
24097 | ||
24098 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24099 | PyObject *resultobj; | |
24100 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24101 | wxImageList *result; | |
24102 | PyObject * obj0 = 0 ; | |
24103 | char *kwnames[] = { | |
24104 | (char *) "self", NULL | |
24105 | }; | |
24106 | ||
24107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
24108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24109 | { | |
24110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24111 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
24112 | ||
24113 | wxPyEndAllowThreads(__tstate); | |
24114 | if (PyErr_Occurred()) SWIG_fail; | |
24115 | } | |
24116 | { | |
24117 | resultobj = wxPyMake_wxObject(result); | |
24118 | } | |
24119 | return resultobj; | |
24120 | fail: | |
24121 | return NULL; | |
24122 | } | |
24123 | ||
24124 | ||
24125 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24126 | PyObject *resultobj; | |
24127 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24128 | wxImageList *result; | |
24129 | PyObject * obj0 = 0 ; | |
24130 | char *kwnames[] = { | |
24131 | (char *) "self", NULL | |
24132 | }; | |
24133 | ||
24134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
24135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24136 | { | |
24137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24138 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
24139 | ||
24140 | wxPyEndAllowThreads(__tstate); | |
24141 | if (PyErr_Occurred()) SWIG_fail; | |
24142 | } | |
24143 | { | |
24144 | resultobj = wxPyMake_wxObject(result); | |
24145 | } | |
24146 | return resultobj; | |
24147 | fail: | |
24148 | return NULL; | |
24149 | } | |
24150 | ||
24151 | ||
24152 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24153 | PyObject *resultobj; | |
24154 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24155 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24156 | PyObject * obj0 = 0 ; | |
24157 | PyObject * obj1 = 0 ; | |
24158 | char *kwnames[] = { | |
24159 | (char *) "self",(char *) "imageList", NULL | |
24160 | }; | |
24161 | ||
24162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
24163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24164 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24165 | { | |
24166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24167 | (arg1)->SetImageList(arg2); | |
24168 | ||
24169 | wxPyEndAllowThreads(__tstate); | |
24170 | if (PyErr_Occurred()) SWIG_fail; | |
24171 | } | |
24172 | Py_INCREF(Py_None); resultobj = Py_None; | |
24173 | return resultobj; | |
24174 | fail: | |
24175 | return NULL; | |
24176 | } | |
24177 | ||
24178 | ||
24179 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24180 | PyObject *resultobj; | |
24181 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24182 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24183 | PyObject * obj0 = 0 ; | |
24184 | PyObject * obj1 = 0 ; | |
24185 | char *kwnames[] = { | |
24186 | (char *) "self",(char *) "imageList", NULL | |
24187 | }; | |
24188 | ||
24189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
24190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24191 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24192 | { | |
24193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24194 | (arg1)->SetStateImageList(arg2); | |
24195 | ||
24196 | wxPyEndAllowThreads(__tstate); | |
24197 | if (PyErr_Occurred()) SWIG_fail; | |
24198 | } | |
24199 | Py_INCREF(Py_None); resultobj = Py_None; | |
24200 | return resultobj; | |
24201 | fail: | |
24202 | return NULL; | |
24203 | } | |
24204 | ||
24205 | ||
24206 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24207 | PyObject *resultobj; | |
24208 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24209 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24210 | PyObject * obj0 = 0 ; | |
24211 | PyObject * obj1 = 0 ; | |
24212 | char *kwnames[] = { | |
24213 | (char *) "self",(char *) "imageList", NULL | |
24214 | }; | |
24215 | ||
24216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
24217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 24218 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
24219 | { |
24220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24221 | (arg1)->AssignImageList(arg2); | |
24222 | ||
24223 | wxPyEndAllowThreads(__tstate); | |
24224 | if (PyErr_Occurred()) SWIG_fail; | |
24225 | } | |
24226 | Py_INCREF(Py_None); resultobj = Py_None; | |
24227 | return resultobj; | |
24228 | fail: | |
24229 | return NULL; | |
24230 | } | |
24231 | ||
24232 | ||
24233 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24234 | PyObject *resultobj; | |
24235 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24236 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24237 | PyObject * obj0 = 0 ; | |
24238 | PyObject * obj1 = 0 ; | |
24239 | char *kwnames[] = { | |
24240 | (char *) "self",(char *) "imageList", NULL | |
24241 | }; | |
24242 | ||
24243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
24244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 24245 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
24246 | { |
24247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24248 | (arg1)->AssignStateImageList(arg2); | |
24249 | ||
24250 | wxPyEndAllowThreads(__tstate); | |
24251 | if (PyErr_Occurred()) SWIG_fail; | |
24252 | } | |
24253 | Py_INCREF(Py_None); resultobj = Py_None; | |
24254 | return resultobj; | |
24255 | fail: | |
24256 | return NULL; | |
24257 | } | |
24258 | ||
24259 | ||
24260 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24261 | PyObject *resultobj; | |
24262 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24263 | wxTreeItemId *arg2 = 0 ; | |
24264 | wxString result; | |
24265 | PyObject * obj0 = 0 ; | |
24266 | PyObject * obj1 = 0 ; | |
24267 | char *kwnames[] = { | |
24268 | (char *) "self",(char *) "item", NULL | |
24269 | }; | |
24270 | ||
24271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
24272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24273 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24274 | if (arg2 == NULL) { | |
24275 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24276 | } | |
24277 | { | |
24278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24279 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
24280 | ||
24281 | wxPyEndAllowThreads(__tstate); | |
24282 | if (PyErr_Occurred()) SWIG_fail; | |
24283 | } | |
24284 | { | |
24285 | #if wxUSE_UNICODE | |
24286 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24287 | #else | |
24288 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24289 | #endif | |
24290 | } | |
24291 | return resultobj; | |
24292 | fail: | |
24293 | return NULL; | |
24294 | } | |
24295 | ||
24296 | ||
24297 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24298 | PyObject *resultobj; | |
24299 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24300 | wxTreeItemId *arg2 = 0 ; | |
24301 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
24302 | int result; | |
24303 | PyObject * obj0 = 0 ; | |
24304 | PyObject * obj1 = 0 ; | |
8edf1c75 | 24305 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24306 | char *kwnames[] = { |
24307 | (char *) "self",(char *) "item",(char *) "which", NULL | |
24308 | }; | |
24309 | ||
8edf1c75 | 24310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
24311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24312 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24313 | if (arg2 == NULL) { | |
24314 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24315 | } | |
8edf1c75 RD |
24316 | if (obj2) { |
24317 | { | |
24318 | arg3 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj2); | |
24319 | if (PyErr_Occurred()) SWIG_fail; | |
24320 | } | |
24321 | } | |
d14a1e28 RD |
24322 | { |
24323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24324 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
24325 | ||
24326 | wxPyEndAllowThreads(__tstate); | |
24327 | if (PyErr_Occurred()) SWIG_fail; | |
24328 | } | |
8edf1c75 | 24329 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
24330 | return resultobj; |
24331 | fail: | |
24332 | return NULL; | |
24333 | } | |
24334 | ||
24335 | ||
24336 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24337 | PyObject *resultobj; | |
24338 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24339 | wxTreeItemId *arg2 = 0 ; | |
24340 | wxPyTreeItemData *result; | |
24341 | PyObject * obj0 = 0 ; | |
24342 | PyObject * obj1 = 0 ; | |
24343 | char *kwnames[] = { | |
24344 | (char *) "self",(char *) "item", NULL | |
24345 | }; | |
24346 | ||
24347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
24348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24349 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24350 | if (arg2 == NULL) { | |
24351 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24352 | } | |
24353 | { | |
24354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24355 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
24356 | ||
24357 | wxPyEndAllowThreads(__tstate); | |
24358 | if (PyErr_Occurred()) SWIG_fail; | |
24359 | } | |
24360 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 0); | |
24361 | return resultobj; | |
24362 | fail: | |
24363 | return NULL; | |
24364 | } | |
24365 | ||
24366 | ||
24367 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24368 | PyObject *resultobj; | |
24369 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24370 | wxTreeItemId *arg2 = 0 ; | |
24371 | PyObject *result; | |
24372 | PyObject * obj0 = 0 ; | |
24373 | PyObject * obj1 = 0 ; | |
24374 | char *kwnames[] = { | |
24375 | (char *) "self",(char *) "item", NULL | |
24376 | }; | |
24377 | ||
24378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
24379 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24380 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24381 | if (arg2 == NULL) { | |
24382 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24383 | } | |
24384 | { | |
24385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24386 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
24387 | ||
24388 | wxPyEndAllowThreads(__tstate); | |
24389 | if (PyErr_Occurred()) SWIG_fail; | |
24390 | } | |
24391 | resultobj = result; | |
24392 | return resultobj; | |
24393 | fail: | |
24394 | return NULL; | |
24395 | } | |
24396 | ||
24397 | ||
24398 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24399 | PyObject *resultobj; | |
24400 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24401 | wxTreeItemId *arg2 = 0 ; | |
24402 | wxColour result; | |
24403 | PyObject * obj0 = 0 ; | |
24404 | PyObject * obj1 = 0 ; | |
24405 | char *kwnames[] = { | |
24406 | (char *) "self",(char *) "item", NULL | |
24407 | }; | |
24408 | ||
24409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
24410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24411 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24412 | if (arg2 == NULL) { | |
24413 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24414 | } | |
24415 | { | |
24416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24417 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
24418 | ||
24419 | wxPyEndAllowThreads(__tstate); | |
24420 | if (PyErr_Occurred()) SWIG_fail; | |
24421 | } | |
24422 | { | |
24423 | wxColour * resultptr; | |
24424 | resultptr = new wxColour((wxColour &) result); | |
24425 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24426 | } | |
24427 | return resultobj; | |
24428 | fail: | |
24429 | return NULL; | |
24430 | } | |
24431 | ||
24432 | ||
24433 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24434 | PyObject *resultobj; | |
24435 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24436 | wxTreeItemId *arg2 = 0 ; | |
24437 | wxColour result; | |
24438 | PyObject * obj0 = 0 ; | |
24439 | PyObject * obj1 = 0 ; | |
24440 | char *kwnames[] = { | |
24441 | (char *) "self",(char *) "item", NULL | |
24442 | }; | |
24443 | ||
24444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24446 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24447 | if (arg2 == NULL) { | |
24448 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24449 | } | |
24450 | { | |
24451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24452 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
24453 | ||
24454 | wxPyEndAllowThreads(__tstate); | |
24455 | if (PyErr_Occurred()) SWIG_fail; | |
24456 | } | |
24457 | { | |
24458 | wxColour * resultptr; | |
24459 | resultptr = new wxColour((wxColour &) result); | |
24460 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24461 | } | |
24462 | return resultobj; | |
24463 | fail: | |
24464 | return NULL; | |
24465 | } | |
24466 | ||
24467 | ||
24468 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24469 | PyObject *resultobj; | |
24470 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24471 | wxTreeItemId *arg2 = 0 ; | |
24472 | wxFont result; | |
24473 | PyObject * obj0 = 0 ; | |
24474 | PyObject * obj1 = 0 ; | |
24475 | char *kwnames[] = { | |
24476 | (char *) "self",(char *) "item", NULL | |
24477 | }; | |
24478 | ||
24479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
24480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24481 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24482 | if (arg2 == NULL) { | |
24483 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24484 | } | |
24485 | { | |
24486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24487 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
24488 | ||
24489 | wxPyEndAllowThreads(__tstate); | |
24490 | if (PyErr_Occurred()) SWIG_fail; | |
24491 | } | |
24492 | { | |
24493 | wxFont * resultptr; | |
24494 | resultptr = new wxFont((wxFont &) result); | |
24495 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
24496 | } | |
24497 | return resultobj; | |
24498 | fail: | |
24499 | return NULL; | |
24500 | } | |
24501 | ||
24502 | ||
24503 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24504 | PyObject *resultobj; | |
24505 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24506 | wxTreeItemId *arg2 = 0 ; | |
24507 | wxString *arg3 = 0 ; | |
423f194a | 24508 | bool temp3 = False ; |
d14a1e28 RD |
24509 | PyObject * obj0 = 0 ; |
24510 | PyObject * obj1 = 0 ; | |
24511 | PyObject * obj2 = 0 ; | |
24512 | char *kwnames[] = { | |
24513 | (char *) "self",(char *) "item",(char *) "text", NULL | |
24514 | }; | |
24515 | ||
24516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24518 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24519 | if (arg2 == NULL) { | |
24520 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24521 | } | |
24522 | { | |
24523 | arg3 = wxString_in_helper(obj2); | |
24524 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 24525 | temp3 = True; |
d14a1e28 RD |
24526 | } |
24527 | { | |
24528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24529 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
24530 | ||
24531 | wxPyEndAllowThreads(__tstate); | |
24532 | if (PyErr_Occurred()) SWIG_fail; | |
24533 | } | |
24534 | Py_INCREF(Py_None); resultobj = Py_None; | |
24535 | { | |
24536 | if (temp3) | |
24537 | delete arg3; | |
24538 | } | |
24539 | return resultobj; | |
24540 | fail: | |
24541 | { | |
24542 | if (temp3) | |
24543 | delete arg3; | |
24544 | } | |
24545 | return NULL; | |
24546 | } | |
24547 | ||
24548 | ||
24549 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24550 | PyObject *resultobj; | |
24551 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24552 | wxTreeItemId *arg2 = 0 ; | |
24553 | int arg3 ; | |
24554 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
24555 | PyObject * obj0 = 0 ; | |
24556 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24557 | PyObject * obj2 = 0 ; |
24558 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24559 | char *kwnames[] = { |
24560 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
24561 | }; | |
24562 | ||
8edf1c75 | 24563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
24564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24565 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24566 | if (arg2 == NULL) { | |
24567 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24568 | } | |
8edf1c75 RD |
24569 | { |
24570 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24571 | if (PyErr_Occurred()) SWIG_fail; | |
24572 | } | |
24573 | if (obj3) { | |
24574 | { | |
24575 | arg4 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj3); | |
24576 | if (PyErr_Occurred()) SWIG_fail; | |
24577 | } | |
24578 | } | |
d14a1e28 RD |
24579 | { |
24580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24581 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
24582 | ||
24583 | wxPyEndAllowThreads(__tstate); | |
24584 | if (PyErr_Occurred()) SWIG_fail; | |
24585 | } | |
24586 | Py_INCREF(Py_None); resultobj = Py_None; | |
24587 | return resultobj; | |
24588 | fail: | |
24589 | return NULL; | |
24590 | } | |
24591 | ||
24592 | ||
24593 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24594 | PyObject *resultobj; | |
24595 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24596 | wxTreeItemId *arg2 = 0 ; | |
24597 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
24598 | PyObject * obj0 = 0 ; | |
24599 | PyObject * obj1 = 0 ; | |
24600 | PyObject * obj2 = 0 ; | |
24601 | char *kwnames[] = { | |
24602 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24603 | }; | |
24604 | ||
24605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24607 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24608 | if (arg2 == NULL) { | |
24609 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24610 | } | |
24611 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24612 | { | |
24613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24614 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24615 | ||
24616 | wxPyEndAllowThreads(__tstate); | |
24617 | if (PyErr_Occurred()) SWIG_fail; | |
24618 | } | |
24619 | Py_INCREF(Py_None); resultobj = Py_None; | |
24620 | return resultobj; | |
24621 | fail: | |
24622 | return NULL; | |
24623 | } | |
24624 | ||
24625 | ||
24626 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24627 | PyObject *resultobj; | |
24628 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24629 | wxTreeItemId *arg2 = 0 ; | |
24630 | PyObject *arg3 = (PyObject *) 0 ; | |
24631 | PyObject * obj0 = 0 ; | |
24632 | PyObject * obj1 = 0 ; | |
24633 | PyObject * obj2 = 0 ; | |
24634 | char *kwnames[] = { | |
24635 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
24636 | }; | |
24637 | ||
24638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24640 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24641 | if (arg2 == NULL) { | |
24642 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24643 | } | |
24644 | arg3 = obj2; | |
24645 | { | |
24646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24647 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24648 | ||
24649 | wxPyEndAllowThreads(__tstate); | |
24650 | if (PyErr_Occurred()) SWIG_fail; | |
24651 | } | |
24652 | Py_INCREF(Py_None); resultobj = Py_None; | |
24653 | return resultobj; | |
24654 | fail: | |
24655 | return NULL; | |
24656 | } | |
24657 | ||
24658 | ||
24659 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24660 | PyObject *resultobj; | |
24661 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24662 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24663 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24664 | PyObject * obj0 = 0 ; |
24665 | PyObject * obj1 = 0 ; | |
24666 | PyObject * obj2 = 0 ; | |
24667 | char *kwnames[] = { | |
24668 | (char *) "self",(char *) "item",(char *) "has", NULL | |
24669 | }; | |
24670 | ||
24671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24673 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24674 | if (arg2 == NULL) { | |
24675 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24676 | } | |
24677 | if (obj2) { | |
83448d71 | 24678 | { |
8edf1c75 | 24679 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
24680 | if (PyErr_Occurred()) SWIG_fail; |
24681 | } | |
d14a1e28 RD |
24682 | } |
24683 | { | |
24684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24685 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
24686 | ||
24687 | wxPyEndAllowThreads(__tstate); | |
24688 | if (PyErr_Occurred()) SWIG_fail; | |
24689 | } | |
24690 | Py_INCREF(Py_None); resultobj = Py_None; | |
24691 | return resultobj; | |
24692 | fail: | |
24693 | return NULL; | |
24694 | } | |
24695 | ||
24696 | ||
24697 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24698 | PyObject *resultobj; | |
24699 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24700 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24701 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24702 | PyObject * obj0 = 0 ; |
24703 | PyObject * obj1 = 0 ; | |
24704 | PyObject * obj2 = 0 ; | |
24705 | char *kwnames[] = { | |
24706 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
24707 | }; | |
24708 | ||
24709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24711 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24712 | if (arg2 == NULL) { | |
24713 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24714 | } | |
24715 | if (obj2) { | |
83448d71 | 24716 | { |
8edf1c75 | 24717 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
24718 | if (PyErr_Occurred()) SWIG_fail; |
24719 | } | |
d14a1e28 RD |
24720 | } |
24721 | { | |
24722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24723 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
24724 | ||
24725 | wxPyEndAllowThreads(__tstate); | |
24726 | if (PyErr_Occurred()) SWIG_fail; | |
24727 | } | |
24728 | Py_INCREF(Py_None); resultobj = Py_None; | |
24729 | return resultobj; | |
24730 | fail: | |
24731 | return NULL; | |
24732 | } | |
24733 | ||
24734 | ||
24735 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24736 | PyObject *resultobj; | |
24737 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24738 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 24739 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24740 | PyObject * obj0 = 0 ; |
24741 | PyObject * obj1 = 0 ; | |
24742 | PyObject * obj2 = 0 ; | |
24743 | char *kwnames[] = { | |
24744 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
24745 | }; | |
24746 | ||
24747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24749 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24750 | if (arg2 == NULL) { | |
24751 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24752 | } | |
24753 | if (obj2) { | |
83448d71 | 24754 | { |
8edf1c75 | 24755 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
24756 | if (PyErr_Occurred()) SWIG_fail; |
24757 | } | |
d14a1e28 RD |
24758 | } |
24759 | { | |
24760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24761 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
24762 | ||
24763 | wxPyEndAllowThreads(__tstate); | |
24764 | if (PyErr_Occurred()) SWIG_fail; | |
24765 | } | |
24766 | Py_INCREF(Py_None); resultobj = Py_None; | |
24767 | return resultobj; | |
24768 | fail: | |
24769 | return NULL; | |
24770 | } | |
24771 | ||
24772 | ||
24773 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24774 | PyObject *resultobj; | |
24775 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24776 | wxTreeItemId *arg2 = 0 ; | |
24777 | wxColour *arg3 = 0 ; | |
24778 | wxColour temp3 ; | |
24779 | PyObject * obj0 = 0 ; | |
24780 | PyObject * obj1 = 0 ; | |
24781 | PyObject * obj2 = 0 ; | |
24782 | char *kwnames[] = { | |
24783 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24784 | }; | |
24785 | ||
24786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24788 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24789 | if (arg2 == NULL) { | |
24790 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24791 | } | |
24792 | { | |
24793 | arg3 = &temp3; | |
24794 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24795 | } | |
24796 | { | |
24797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24798 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24799 | ||
24800 | wxPyEndAllowThreads(__tstate); | |
24801 | if (PyErr_Occurred()) SWIG_fail; | |
24802 | } | |
24803 | Py_INCREF(Py_None); resultobj = Py_None; | |
24804 | return resultobj; | |
24805 | fail: | |
24806 | return NULL; | |
24807 | } | |
24808 | ||
24809 | ||
24810 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24811 | PyObject *resultobj; | |
24812 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24813 | wxTreeItemId *arg2 = 0 ; | |
24814 | wxColour *arg3 = 0 ; | |
24815 | wxColour temp3 ; | |
24816 | PyObject * obj0 = 0 ; | |
24817 | PyObject * obj1 = 0 ; | |
24818 | PyObject * obj2 = 0 ; | |
24819 | char *kwnames[] = { | |
24820 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24821 | }; | |
24822 | ||
24823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24825 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24826 | if (arg2 == NULL) { | |
24827 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24828 | } | |
24829 | { | |
24830 | arg3 = &temp3; | |
24831 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24832 | } | |
24833 | { | |
24834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24835 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24836 | ||
24837 | wxPyEndAllowThreads(__tstate); | |
24838 | if (PyErr_Occurred()) SWIG_fail; | |
24839 | } | |
24840 | Py_INCREF(Py_None); resultobj = Py_None; | |
24841 | return resultobj; | |
24842 | fail: | |
24843 | return NULL; | |
24844 | } | |
24845 | ||
24846 | ||
24847 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24848 | PyObject *resultobj; | |
24849 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24850 | wxTreeItemId *arg2 = 0 ; | |
24851 | wxFont *arg3 = 0 ; | |
24852 | PyObject * obj0 = 0 ; | |
24853 | PyObject * obj1 = 0 ; | |
24854 | PyObject * obj2 = 0 ; | |
24855 | char *kwnames[] = { | |
24856 | (char *) "self",(char *) "item",(char *) "font", NULL | |
24857 | }; | |
24858 | ||
24859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24861 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24862 | if (arg2 == NULL) { | |
24863 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24864 | } | |
24865 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24866 | if (arg3 == NULL) { | |
24867 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24868 | } | |
24869 | { | |
24870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24871 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
24872 | ||
24873 | wxPyEndAllowThreads(__tstate); | |
24874 | if (PyErr_Occurred()) SWIG_fail; | |
24875 | } | |
24876 | Py_INCREF(Py_None); resultobj = Py_None; | |
24877 | return resultobj; | |
24878 | fail: | |
24879 | return NULL; | |
24880 | } | |
24881 | ||
24882 | ||
24883 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24884 | PyObject *resultobj; | |
24885 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24886 | wxTreeItemId *arg2 = 0 ; | |
24887 | bool result; | |
24888 | PyObject * obj0 = 0 ; | |
24889 | PyObject * obj1 = 0 ; | |
24890 | char *kwnames[] = { | |
24891 | (char *) "self",(char *) "item", NULL | |
24892 | }; | |
24893 | ||
24894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
24895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24896 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24897 | if (arg2 == NULL) { | |
24898 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24899 | } | |
24900 | { | |
24901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24902 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
24903 | ||
24904 | wxPyEndAllowThreads(__tstate); | |
24905 | if (PyErr_Occurred()) SWIG_fail; | |
24906 | } | |
4e760a36 | 24907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24908 | return resultobj; |
24909 | fail: | |
24910 | return NULL; | |
24911 | } | |
24912 | ||
24913 | ||
24914 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24915 | PyObject *resultobj; | |
24916 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24917 | wxTreeItemId *arg2 = 0 ; | |
24918 | bool result; | |
24919 | PyObject * obj0 = 0 ; | |
24920 | PyObject * obj1 = 0 ; | |
24921 | char *kwnames[] = { | |
24922 | (char *) "self",(char *) "item", NULL | |
24923 | }; | |
24924 | ||
24925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
24926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24927 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24928 | if (arg2 == NULL) { | |
24929 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24930 | } | |
24931 | { | |
24932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24933 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
24934 | ||
24935 | wxPyEndAllowThreads(__tstate); | |
24936 | if (PyErr_Occurred()) SWIG_fail; | |
24937 | } | |
4e760a36 | 24938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24939 | return resultobj; |
24940 | fail: | |
24941 | return NULL; | |
24942 | } | |
24943 | ||
24944 | ||
24945 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24946 | PyObject *resultobj; | |
24947 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24948 | wxTreeItemId *arg2 = 0 ; | |
24949 | bool result; | |
24950 | PyObject * obj0 = 0 ; | |
24951 | PyObject * obj1 = 0 ; | |
24952 | char *kwnames[] = { | |
24953 | (char *) "self",(char *) "item", NULL | |
24954 | }; | |
24955 | ||
24956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
24957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24958 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24959 | if (arg2 == NULL) { | |
24960 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24961 | } | |
24962 | { | |
24963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24964 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
24965 | ||
24966 | wxPyEndAllowThreads(__tstate); | |
24967 | if (PyErr_Occurred()) SWIG_fail; | |
24968 | } | |
4e760a36 | 24969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24970 | return resultobj; |
24971 | fail: | |
24972 | return NULL; | |
24973 | } | |
24974 | ||
24975 | ||
24976 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24977 | PyObject *resultobj; | |
24978 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24979 | wxTreeItemId *arg2 = 0 ; | |
24980 | bool result; | |
24981 | PyObject * obj0 = 0 ; | |
24982 | PyObject * obj1 = 0 ; | |
24983 | char *kwnames[] = { | |
24984 | (char *) "self",(char *) "item", NULL | |
24985 | }; | |
24986 | ||
24987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
24988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24989 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24990 | if (arg2 == NULL) { | |
24991 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24992 | } | |
24993 | { | |
24994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24995 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
24996 | ||
24997 | wxPyEndAllowThreads(__tstate); | |
24998 | if (PyErr_Occurred()) SWIG_fail; | |
24999 | } | |
4e760a36 | 25000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25001 | return resultobj; |
25002 | fail: | |
25003 | return NULL; | |
25004 | } | |
25005 | ||
25006 | ||
25007 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25008 | PyObject *resultobj; | |
25009 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25010 | wxTreeItemId *arg2 = 0 ; | |
25011 | bool result; | |
25012 | PyObject * obj0 = 0 ; | |
25013 | PyObject * obj1 = 0 ; | |
25014 | char *kwnames[] = { | |
25015 | (char *) "self",(char *) "item", NULL | |
25016 | }; | |
25017 | ||
25018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
25019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25020 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25021 | if (arg2 == NULL) { | |
25022 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25023 | } | |
25024 | { | |
25025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25026 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
25027 | ||
25028 | wxPyEndAllowThreads(__tstate); | |
25029 | if (PyErr_Occurred()) SWIG_fail; | |
25030 | } | |
4e760a36 | 25031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25032 | return resultobj; |
25033 | fail: | |
25034 | return NULL; | |
25035 | } | |
25036 | ||
25037 | ||
25038 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25039 | PyObject *resultobj; | |
25040 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25041 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25042 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25043 | size_t result; |
25044 | PyObject * obj0 = 0 ; | |
25045 | PyObject * obj1 = 0 ; | |
25046 | PyObject * obj2 = 0 ; | |
25047 | char *kwnames[] = { | |
25048 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
25049 | }; | |
25050 | ||
25051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25053 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25054 | if (arg2 == NULL) { | |
25055 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25056 | } | |
25057 | if (obj2) { | |
83448d71 | 25058 | { |
8edf1c75 | 25059 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
25060 | if (PyErr_Occurred()) SWIG_fail; |
25061 | } | |
d14a1e28 RD |
25062 | } |
25063 | { | |
25064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25065 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
25066 | ||
25067 | wxPyEndAllowThreads(__tstate); | |
25068 | if (PyErr_Occurred()) SWIG_fail; | |
25069 | } | |
8edf1c75 | 25070 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25071 | return resultobj; |
25072 | fail: | |
25073 | return NULL; | |
25074 | } | |
25075 | ||
25076 | ||
25077 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25078 | PyObject *resultobj; | |
25079 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25080 | wxTreeItemId result; | |
25081 | PyObject * obj0 = 0 ; | |
25082 | char *kwnames[] = { | |
25083 | (char *) "self", NULL | |
25084 | }; | |
25085 | ||
25086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
25087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25088 | { | |
25089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25090 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
25091 | ||
25092 | wxPyEndAllowThreads(__tstate); | |
25093 | if (PyErr_Occurred()) SWIG_fail; | |
25094 | } | |
25095 | { | |
25096 | wxTreeItemId * resultptr; | |
25097 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25098 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25099 | } | |
25100 | return resultobj; | |
25101 | fail: | |
25102 | return NULL; | |
25103 | } | |
25104 | ||
25105 | ||
25106 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25107 | PyObject *resultobj; | |
25108 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25109 | wxTreeItemId result; | |
25110 | PyObject * obj0 = 0 ; | |
25111 | char *kwnames[] = { | |
25112 | (char *) "self", NULL | |
25113 | }; | |
25114 | ||
25115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
25116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25117 | { | |
25118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25119 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
25120 | ||
25121 | wxPyEndAllowThreads(__tstate); | |
25122 | if (PyErr_Occurred()) SWIG_fail; | |
25123 | } | |
25124 | { | |
25125 | wxTreeItemId * resultptr; | |
25126 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25127 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25128 | } | |
25129 | return resultobj; | |
25130 | fail: | |
25131 | return NULL; | |
25132 | } | |
25133 | ||
25134 | ||
25135 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25136 | PyObject *resultobj; | |
25137 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25138 | PyObject *result; | |
25139 | PyObject * obj0 = 0 ; | |
25140 | char *kwnames[] = { | |
25141 | (char *) "self", NULL | |
25142 | }; | |
25143 | ||
25144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
25145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25146 | { | |
25147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25148 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
25149 | ||
25150 | wxPyEndAllowThreads(__tstate); | |
25151 | if (PyErr_Occurred()) SWIG_fail; | |
25152 | } | |
25153 | resultobj = result; | |
25154 | return resultobj; | |
25155 | fail: | |
25156 | return NULL; | |
25157 | } | |
25158 | ||
25159 | ||
25160 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25161 | PyObject *resultobj; | |
25162 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25163 | wxTreeItemId *arg2 = 0 ; | |
25164 | wxTreeItemId result; | |
25165 | PyObject * obj0 = 0 ; | |
25166 | PyObject * obj1 = 0 ; | |
25167 | char *kwnames[] = { | |
25168 | (char *) "self",(char *) "item", NULL | |
25169 | }; | |
25170 | ||
25171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
25172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25173 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25174 | if (arg2 == NULL) { | |
25175 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25176 | } | |
25177 | { | |
25178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25179 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
25180 | ||
25181 | wxPyEndAllowThreads(__tstate); | |
25182 | if (PyErr_Occurred()) SWIG_fail; | |
25183 | } | |
25184 | { | |
25185 | wxTreeItemId * resultptr; | |
25186 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25187 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25188 | } | |
25189 | return resultobj; | |
25190 | fail: | |
25191 | return NULL; | |
25192 | } | |
25193 | ||
25194 | ||
25195 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25196 | PyObject *resultobj; | |
25197 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25198 | wxTreeItemId *arg2 = 0 ; | |
25199 | PyObject *result; | |
25200 | PyObject * obj0 = 0 ; | |
25201 | PyObject * obj1 = 0 ; | |
25202 | char *kwnames[] = { | |
25203 | (char *) "self",(char *) "item", NULL | |
25204 | }; | |
25205 | ||
25206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
25207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25208 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25209 | if (arg2 == NULL) { | |
25210 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25211 | } | |
25212 | { | |
25213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25214 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
25215 | ||
25216 | wxPyEndAllowThreads(__tstate); | |
25217 | if (PyErr_Occurred()) SWIG_fail; | |
25218 | } | |
25219 | resultobj = result; | |
25220 | return resultobj; | |
25221 | fail: | |
25222 | return NULL; | |
25223 | } | |
25224 | ||
25225 | ||
25226 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25227 | PyObject *resultobj; | |
25228 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25229 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 25230 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
25231 | PyObject *result; |
25232 | PyObject * obj0 = 0 ; | |
25233 | PyObject * obj1 = 0 ; | |
25234 | PyObject * obj2 = 0 ; | |
25235 | char *kwnames[] = { | |
25236 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
25237 | }; | |
25238 | ||
25239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25241 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25242 | if (arg2 == NULL) { | |
25243 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25244 | } | |
58203fa6 | 25245 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
25246 | { |
25247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 25248 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
25249 | |
25250 | wxPyEndAllowThreads(__tstate); | |
25251 | if (PyErr_Occurred()) SWIG_fail; | |
25252 | } | |
25253 | resultobj = result; | |
25254 | return resultobj; | |
25255 | fail: | |
25256 | return NULL; | |
25257 | } | |
25258 | ||
25259 | ||
25260 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25261 | PyObject *resultobj; | |
25262 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25263 | wxTreeItemId *arg2 = 0 ; | |
25264 | wxTreeItemId result; | |
25265 | PyObject * obj0 = 0 ; | |
25266 | PyObject * obj1 = 0 ; | |
25267 | char *kwnames[] = { | |
25268 | (char *) "self",(char *) "item", NULL | |
25269 | }; | |
25270 | ||
25271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
25272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25273 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25274 | if (arg2 == NULL) { | |
25275 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25276 | } | |
25277 | { | |
25278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25279 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
25280 | ||
25281 | wxPyEndAllowThreads(__tstate); | |
25282 | if (PyErr_Occurred()) SWIG_fail; | |
25283 | } | |
25284 | { | |
25285 | wxTreeItemId * resultptr; | |
25286 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25287 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25288 | } | |
25289 | return resultobj; | |
25290 | fail: | |
25291 | return NULL; | |
25292 | } | |
25293 | ||
25294 | ||
25295 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25296 | PyObject *resultobj; | |
25297 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25298 | wxTreeItemId *arg2 = 0 ; | |
25299 | wxTreeItemId result; | |
25300 | PyObject * obj0 = 0 ; | |
25301 | PyObject * obj1 = 0 ; | |
25302 | char *kwnames[] = { | |
25303 | (char *) "self",(char *) "item", NULL | |
25304 | }; | |
25305 | ||
25306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
25307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25308 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25309 | if (arg2 == NULL) { | |
25310 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25311 | } | |
25312 | { | |
25313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25314 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
25315 | ||
25316 | wxPyEndAllowThreads(__tstate); | |
25317 | if (PyErr_Occurred()) SWIG_fail; | |
25318 | } | |
25319 | { | |
25320 | wxTreeItemId * resultptr; | |
25321 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25322 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25323 | } | |
25324 | return resultobj; | |
25325 | fail: | |
25326 | return NULL; | |
25327 | } | |
25328 | ||
25329 | ||
25330 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25331 | PyObject *resultobj; | |
25332 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25333 | wxTreeItemId *arg2 = 0 ; | |
25334 | wxTreeItemId result; | |
25335 | PyObject * obj0 = 0 ; | |
25336 | PyObject * obj1 = 0 ; | |
25337 | char *kwnames[] = { | |
25338 | (char *) "self",(char *) "item", NULL | |
25339 | }; | |
25340 | ||
25341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
25342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25343 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25344 | if (arg2 == NULL) { | |
25345 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25346 | } | |
25347 | { | |
25348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25349 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
25350 | ||
25351 | wxPyEndAllowThreads(__tstate); | |
25352 | if (PyErr_Occurred()) SWIG_fail; | |
25353 | } | |
25354 | { | |
25355 | wxTreeItemId * resultptr; | |
25356 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25357 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25358 | } | |
25359 | return resultobj; | |
25360 | fail: | |
25361 | return NULL; | |
25362 | } | |
25363 | ||
25364 | ||
25365 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25366 | PyObject *resultobj; | |
25367 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25368 | wxTreeItemId result; | |
25369 | PyObject * obj0 = 0 ; | |
25370 | char *kwnames[] = { | |
25371 | (char *) "self", NULL | |
25372 | }; | |
25373 | ||
25374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
25375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25376 | { | |
25377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25378 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
25379 | ||
25380 | wxPyEndAllowThreads(__tstate); | |
25381 | if (PyErr_Occurred()) SWIG_fail; | |
25382 | } | |
25383 | { | |
25384 | wxTreeItemId * resultptr; | |
25385 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25386 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25387 | } | |
25388 | return resultobj; | |
25389 | fail: | |
25390 | return NULL; | |
25391 | } | |
25392 | ||
25393 | ||
25394 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25395 | PyObject *resultobj; | |
25396 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25397 | wxTreeItemId *arg2 = 0 ; | |
25398 | wxTreeItemId result; | |
25399 | PyObject * obj0 = 0 ; | |
25400 | PyObject * obj1 = 0 ; | |
25401 | char *kwnames[] = { | |
25402 | (char *) "self",(char *) "item", NULL | |
25403 | }; | |
25404 | ||
25405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
25406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25407 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25408 | if (arg2 == NULL) { | |
25409 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25410 | } | |
25411 | { | |
25412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25413 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
25414 | ||
25415 | wxPyEndAllowThreads(__tstate); | |
25416 | if (PyErr_Occurred()) SWIG_fail; | |
25417 | } | |
25418 | { | |
25419 | wxTreeItemId * resultptr; | |
25420 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25421 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25422 | } | |
25423 | return resultobj; | |
25424 | fail: | |
25425 | return NULL; | |
25426 | } | |
25427 | ||
25428 | ||
25429 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25430 | PyObject *resultobj; | |
25431 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25432 | wxTreeItemId *arg2 = 0 ; | |
25433 | wxTreeItemId result; | |
25434 | PyObject * obj0 = 0 ; | |
25435 | PyObject * obj1 = 0 ; | |
25436 | char *kwnames[] = { | |
25437 | (char *) "self",(char *) "item", NULL | |
25438 | }; | |
25439 | ||
25440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
25441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25442 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25443 | if (arg2 == NULL) { | |
25444 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25445 | } | |
25446 | { | |
25447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25448 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
25449 | ||
25450 | wxPyEndAllowThreads(__tstate); | |
25451 | if (PyErr_Occurred()) SWIG_fail; | |
25452 | } | |
25453 | { | |
25454 | wxTreeItemId * resultptr; | |
25455 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25456 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25457 | } | |
25458 | return resultobj; | |
25459 | fail: | |
25460 | return NULL; | |
25461 | } | |
25462 | ||
25463 | ||
25464 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25465 | PyObject *resultobj; | |
25466 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25467 | wxString *arg2 = 0 ; | |
25468 | int arg3 = (int) -1 ; | |
25469 | int arg4 = (int) -1 ; | |
25470 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
25471 | wxTreeItemId result; | |
423f194a | 25472 | bool temp2 = False ; |
d14a1e28 RD |
25473 | PyObject * obj0 = 0 ; |
25474 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
25475 | PyObject * obj2 = 0 ; |
25476 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25477 | PyObject * obj4 = 0 ; |
25478 | char *kwnames[] = { | |
25479 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25480 | }; | |
25481 | ||
8edf1c75 | 25482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
25483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25484 | { | |
25485 | arg2 = wxString_in_helper(obj1); | |
25486 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25487 | temp2 = True; |
d14a1e28 | 25488 | } |
8edf1c75 RD |
25489 | if (obj2) { |
25490 | { | |
25491 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25492 | if (PyErr_Occurred()) SWIG_fail; | |
25493 | } | |
25494 | } | |
25495 | if (obj3) { | |
25496 | { | |
25497 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25498 | if (PyErr_Occurred()) SWIG_fail; | |
25499 | } | |
25500 | } | |
d14a1e28 RD |
25501 | if (obj4) { |
25502 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25503 | } | |
25504 | { | |
25505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25506 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
25507 | ||
25508 | wxPyEndAllowThreads(__tstate); | |
25509 | if (PyErr_Occurred()) SWIG_fail; | |
25510 | } | |
25511 | { | |
25512 | wxTreeItemId * resultptr; | |
25513 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25514 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25515 | } | |
25516 | { | |
25517 | if (temp2) | |
25518 | delete arg2; | |
25519 | } | |
25520 | return resultobj; | |
25521 | fail: | |
25522 | { | |
25523 | if (temp2) | |
25524 | delete arg2; | |
25525 | } | |
25526 | return NULL; | |
25527 | } | |
25528 | ||
25529 | ||
25530 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25531 | PyObject *resultobj; | |
25532 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25533 | wxTreeItemId *arg2 = 0 ; | |
25534 | wxString *arg3 = 0 ; | |
25535 | int arg4 = (int) -1 ; | |
25536 | int arg5 = (int) -1 ; | |
25537 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25538 | wxTreeItemId result; | |
423f194a | 25539 | bool temp3 = False ; |
d14a1e28 RD |
25540 | PyObject * obj0 = 0 ; |
25541 | PyObject * obj1 = 0 ; | |
25542 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
25543 | PyObject * obj3 = 0 ; |
25544 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25545 | PyObject * obj5 = 0 ; |
25546 | char *kwnames[] = { | |
25547 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25548 | }; | |
25549 | ||
8edf1c75 | 25550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
25551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25552 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25553 | if (arg2 == NULL) { | |
25554 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25555 | } | |
25556 | { | |
25557 | arg3 = wxString_in_helper(obj2); | |
25558 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25559 | temp3 = True; |
d14a1e28 | 25560 | } |
8edf1c75 RD |
25561 | if (obj3) { |
25562 | { | |
25563 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25564 | if (PyErr_Occurred()) SWIG_fail; | |
25565 | } | |
25566 | } | |
25567 | if (obj4) { | |
25568 | { | |
25569 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25570 | if (PyErr_Occurred()) SWIG_fail; | |
25571 | } | |
25572 | } | |
d14a1e28 RD |
25573 | if (obj5) { |
25574 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25575 | } | |
25576 | { | |
25577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25578 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25579 | ||
25580 | wxPyEndAllowThreads(__tstate); | |
25581 | if (PyErr_Occurred()) SWIG_fail; | |
25582 | } | |
25583 | { | |
25584 | wxTreeItemId * resultptr; | |
25585 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25586 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25587 | } | |
25588 | { | |
25589 | if (temp3) | |
25590 | delete arg3; | |
25591 | } | |
25592 | return resultobj; | |
25593 | fail: | |
25594 | { | |
25595 | if (temp3) | |
25596 | delete arg3; | |
25597 | } | |
25598 | return NULL; | |
25599 | } | |
25600 | ||
25601 | ||
25602 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25603 | PyObject *resultobj; | |
25604 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25605 | wxTreeItemId *arg2 = 0 ; | |
25606 | wxTreeItemId *arg3 = 0 ; | |
25607 | wxString *arg4 = 0 ; | |
25608 | int arg5 = (int) -1 ; | |
25609 | int arg6 = (int) -1 ; | |
25610 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
25611 | wxTreeItemId result; | |
423f194a | 25612 | bool temp4 = False ; |
d14a1e28 RD |
25613 | PyObject * obj0 = 0 ; |
25614 | PyObject * obj1 = 0 ; | |
25615 | PyObject * obj2 = 0 ; | |
25616 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
25617 | PyObject * obj4 = 0 ; |
25618 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
25619 | PyObject * obj6 = 0 ; |
25620 | char *kwnames[] = { | |
25621 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25622 | }; | |
25623 | ||
8edf1c75 | 25624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
25625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25626 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25627 | if (arg2 == NULL) { | |
25628 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25629 | } | |
25630 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25631 | if (arg3 == NULL) { | |
25632 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25633 | } | |
25634 | { | |
25635 | arg4 = wxString_in_helper(obj3); | |
25636 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25637 | temp4 = True; |
d14a1e28 | 25638 | } |
8edf1c75 RD |
25639 | if (obj4) { |
25640 | { | |
25641 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25642 | if (PyErr_Occurred()) SWIG_fail; | |
25643 | } | |
25644 | } | |
25645 | if (obj5) { | |
25646 | { | |
25647 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
25648 | if (PyErr_Occurred()) SWIG_fail; | |
25649 | } | |
25650 | } | |
d14a1e28 RD |
25651 | if (obj6) { |
25652 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25653 | } | |
25654 | { | |
25655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25656 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25657 | ||
25658 | wxPyEndAllowThreads(__tstate); | |
25659 | if (PyErr_Occurred()) SWIG_fail; | |
25660 | } | |
25661 | { | |
25662 | wxTreeItemId * resultptr; | |
25663 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25664 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25665 | } | |
25666 | { | |
25667 | if (temp4) | |
25668 | delete arg4; | |
25669 | } | |
25670 | return resultobj; | |
25671 | fail: | |
25672 | { | |
25673 | if (temp4) | |
25674 | delete arg4; | |
25675 | } | |
25676 | return NULL; | |
25677 | } | |
25678 | ||
25679 | ||
25680 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25681 | PyObject *resultobj; | |
25682 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25683 | wxTreeItemId *arg2 = 0 ; | |
25684 | size_t arg3 ; | |
25685 | wxString *arg4 = 0 ; | |
25686 | int arg5 = (int) -1 ; | |
25687 | int arg6 = (int) -1 ; | |
25688 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
25689 | wxTreeItemId result; | |
423f194a | 25690 | bool temp4 = False ; |
d14a1e28 RD |
25691 | PyObject * obj0 = 0 ; |
25692 | PyObject * obj1 = 0 ; | |
25693 | PyObject * obj2 = 0 ; | |
25694 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
25695 | PyObject * obj4 = 0 ; |
25696 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
25697 | PyObject * obj6 = 0 ; |
25698 | char *kwnames[] = { | |
25699 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25700 | }; | |
25701 | ||
8edf1c75 | 25702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
25703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25704 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25705 | if (arg2 == NULL) { | |
25706 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25707 | } | |
83448d71 | 25708 | { |
8edf1c75 | 25709 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
83448d71 RD |
25710 | if (PyErr_Occurred()) SWIG_fail; |
25711 | } | |
d14a1e28 RD |
25712 | { |
25713 | arg4 = wxString_in_helper(obj3); | |
25714 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25715 | temp4 = True; |
d14a1e28 | 25716 | } |
8edf1c75 RD |
25717 | if (obj4) { |
25718 | { | |
25719 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25720 | if (PyErr_Occurred()) SWIG_fail; | |
25721 | } | |
25722 | } | |
25723 | if (obj5) { | |
25724 | { | |
25725 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
25726 | if (PyErr_Occurred()) SWIG_fail; | |
25727 | } | |
25728 | } | |
d14a1e28 RD |
25729 | if (obj6) { |
25730 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25731 | } | |
25732 | { | |
25733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25734 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25735 | ||
25736 | wxPyEndAllowThreads(__tstate); | |
25737 | if (PyErr_Occurred()) SWIG_fail; | |
25738 | } | |
25739 | { | |
25740 | wxTreeItemId * resultptr; | |
25741 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25742 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25743 | } | |
25744 | { | |
25745 | if (temp4) | |
25746 | delete arg4; | |
25747 | } | |
25748 | return resultobj; | |
25749 | fail: | |
25750 | { | |
25751 | if (temp4) | |
25752 | delete arg4; | |
25753 | } | |
25754 | return NULL; | |
25755 | } | |
25756 | ||
25757 | ||
25758 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25759 | PyObject *resultobj; | |
25760 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25761 | wxTreeItemId *arg2 = 0 ; | |
25762 | wxString *arg3 = 0 ; | |
25763 | int arg4 = (int) -1 ; | |
25764 | int arg5 = (int) -1 ; | |
25765 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25766 | wxTreeItemId result; | |
423f194a | 25767 | bool temp3 = False ; |
d14a1e28 RD |
25768 | PyObject * obj0 = 0 ; |
25769 | PyObject * obj1 = 0 ; | |
25770 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
25771 | PyObject * obj3 = 0 ; |
25772 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25773 | PyObject * obj5 = 0 ; |
25774 | char *kwnames[] = { | |
25775 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25776 | }; | |
25777 | ||
8edf1c75 | 25778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
25779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25780 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25781 | if (arg2 == NULL) { | |
25782 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25783 | } | |
25784 | { | |
25785 | arg3 = wxString_in_helper(obj2); | |
25786 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25787 | temp3 = True; |
d14a1e28 | 25788 | } |
8edf1c75 RD |
25789 | if (obj3) { |
25790 | { | |
25791 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25792 | if (PyErr_Occurred()) SWIG_fail; | |
25793 | } | |
25794 | } | |
25795 | if (obj4) { | |
25796 | { | |
25797 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25798 | if (PyErr_Occurred()) SWIG_fail; | |
25799 | } | |
25800 | } | |
d14a1e28 RD |
25801 | if (obj5) { |
25802 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25803 | } | |
25804 | { | |
25805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25806 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25807 | ||
25808 | wxPyEndAllowThreads(__tstate); | |
25809 | if (PyErr_Occurred()) SWIG_fail; | |
25810 | } | |
25811 | { | |
25812 | wxTreeItemId * resultptr; | |
25813 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25814 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25815 | } | |
25816 | { | |
25817 | if (temp3) | |
25818 | delete arg3; | |
25819 | } | |
25820 | return resultobj; | |
25821 | fail: | |
25822 | { | |
25823 | if (temp3) | |
25824 | delete arg3; | |
25825 | } | |
25826 | return NULL; | |
25827 | } | |
25828 | ||
25829 | ||
25830 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25831 | PyObject *resultobj; | |
25832 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25833 | wxTreeItemId *arg2 = 0 ; | |
25834 | PyObject * obj0 = 0 ; | |
25835 | PyObject * obj1 = 0 ; | |
25836 | char *kwnames[] = { | |
25837 | (char *) "self",(char *) "item", NULL | |
25838 | }; | |
25839 | ||
25840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
25841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25842 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25843 | if (arg2 == NULL) { | |
25844 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25845 | } | |
25846 | { | |
25847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25848 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
25849 | ||
25850 | wxPyEndAllowThreads(__tstate); | |
25851 | if (PyErr_Occurred()) SWIG_fail; | |
25852 | } | |
25853 | Py_INCREF(Py_None); resultobj = Py_None; | |
25854 | return resultobj; | |
25855 | fail: | |
25856 | return NULL; | |
25857 | } | |
25858 | ||
25859 | ||
25860 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25861 | PyObject *resultobj; | |
25862 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25863 | wxTreeItemId *arg2 = 0 ; | |
25864 | PyObject * obj0 = 0 ; | |
25865 | PyObject * obj1 = 0 ; | |
25866 | char *kwnames[] = { | |
25867 | (char *) "self",(char *) "item", NULL | |
25868 | }; | |
25869 | ||
25870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
25871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25872 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25873 | if (arg2 == NULL) { | |
25874 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25875 | } | |
25876 | { | |
25877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25878 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
25879 | ||
25880 | wxPyEndAllowThreads(__tstate); | |
25881 | if (PyErr_Occurred()) SWIG_fail; | |
25882 | } | |
25883 | Py_INCREF(Py_None); resultobj = Py_None; | |
25884 | return resultobj; | |
25885 | fail: | |
25886 | return NULL; | |
25887 | } | |
25888 | ||
25889 | ||
25890 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25891 | PyObject *resultobj; | |
25892 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25893 | PyObject * obj0 = 0 ; | |
25894 | char *kwnames[] = { | |
25895 | (char *) "self", NULL | |
25896 | }; | |
25897 | ||
25898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
25899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25900 | { | |
25901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25902 | (arg1)->DeleteAllItems(); | |
25903 | ||
25904 | wxPyEndAllowThreads(__tstate); | |
25905 | if (PyErr_Occurred()) SWIG_fail; | |
25906 | } | |
25907 | Py_INCREF(Py_None); resultobj = Py_None; | |
25908 | return resultobj; | |
25909 | fail: | |
25910 | return NULL; | |
25911 | } | |
25912 | ||
25913 | ||
25914 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25915 | PyObject *resultobj; | |
25916 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25917 | wxTreeItemId *arg2 = 0 ; | |
25918 | PyObject * obj0 = 0 ; | |
25919 | PyObject * obj1 = 0 ; | |
25920 | char *kwnames[] = { | |
25921 | (char *) "self",(char *) "item", NULL | |
25922 | }; | |
25923 | ||
25924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
25925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25926 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25927 | if (arg2 == NULL) { | |
25928 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25929 | } | |
25930 | { | |
25931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25932 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
25933 | ||
25934 | wxPyEndAllowThreads(__tstate); | |
25935 | if (PyErr_Occurred()) SWIG_fail; | |
25936 | } | |
25937 | Py_INCREF(Py_None); resultobj = Py_None; | |
25938 | return resultobj; | |
25939 | fail: | |
25940 | return NULL; | |
25941 | } | |
25942 | ||
25943 | ||
25944 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25945 | PyObject *resultobj; | |
25946 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25947 | wxTreeItemId *arg2 = 0 ; | |
25948 | PyObject * obj0 = 0 ; | |
25949 | PyObject * obj1 = 0 ; | |
25950 | char *kwnames[] = { | |
25951 | (char *) "self",(char *) "item", NULL | |
25952 | }; | |
25953 | ||
25954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
25955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25956 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25957 | if (arg2 == NULL) { | |
25958 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25959 | } | |
25960 | { | |
25961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25962 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
25963 | ||
25964 | wxPyEndAllowThreads(__tstate); | |
25965 | if (PyErr_Occurred()) SWIG_fail; | |
25966 | } | |
25967 | Py_INCREF(Py_None); resultobj = Py_None; | |
25968 | return resultobj; | |
25969 | fail: | |
25970 | return NULL; | |
25971 | } | |
25972 | ||
25973 | ||
25974 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25975 | PyObject *resultobj; | |
25976 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25977 | wxTreeItemId *arg2 = 0 ; | |
25978 | PyObject * obj0 = 0 ; | |
25979 | PyObject * obj1 = 0 ; | |
25980 | char *kwnames[] = { | |
25981 | (char *) "self",(char *) "item", NULL | |
25982 | }; | |
25983 | ||
25984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
25985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25986 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25987 | if (arg2 == NULL) { | |
25988 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25989 | } | |
25990 | { | |
25991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25992 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
25993 | ||
25994 | wxPyEndAllowThreads(__tstate); | |
25995 | if (PyErr_Occurred()) SWIG_fail; | |
25996 | } | |
25997 | Py_INCREF(Py_None); resultobj = Py_None; | |
25998 | return resultobj; | |
25999 | fail: | |
26000 | return NULL; | |
26001 | } | |
26002 | ||
26003 | ||
26004 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26005 | PyObject *resultobj; | |
26006 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26007 | wxTreeItemId *arg2 = 0 ; | |
26008 | PyObject * obj0 = 0 ; | |
26009 | PyObject * obj1 = 0 ; | |
26010 | char *kwnames[] = { | |
26011 | (char *) "self",(char *) "item", NULL | |
26012 | }; | |
26013 | ||
26014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
26015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26016 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26017 | if (arg2 == NULL) { | |
26018 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26019 | } | |
26020 | { | |
26021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26022 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
26023 | ||
26024 | wxPyEndAllowThreads(__tstate); | |
26025 | if (PyErr_Occurred()) SWIG_fail; | |
26026 | } | |
26027 | Py_INCREF(Py_None); resultobj = Py_None; | |
26028 | return resultobj; | |
26029 | fail: | |
26030 | return NULL; | |
26031 | } | |
26032 | ||
26033 | ||
26034 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26035 | PyObject *resultobj; | |
26036 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26037 | PyObject * obj0 = 0 ; | |
26038 | char *kwnames[] = { | |
26039 | (char *) "self", NULL | |
26040 | }; | |
26041 | ||
26042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
26043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26044 | { | |
26045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26046 | (arg1)->Unselect(); | |
26047 | ||
26048 | wxPyEndAllowThreads(__tstate); | |
26049 | if (PyErr_Occurred()) SWIG_fail; | |
26050 | } | |
26051 | Py_INCREF(Py_None); resultobj = Py_None; | |
26052 | return resultobj; | |
26053 | fail: | |
26054 | return NULL; | |
26055 | } | |
26056 | ||
26057 | ||
db914595 RD |
26058 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
26059 | PyObject *resultobj; | |
26060 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26061 | wxTreeItemId *arg2 = 0 ; | |
26062 | PyObject * obj0 = 0 ; | |
26063 | PyObject * obj1 = 0 ; | |
26064 | char *kwnames[] = { | |
26065 | (char *) "self",(char *) "item", NULL | |
26066 | }; | |
26067 | ||
26068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
26069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26070 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26071 | if (arg2 == NULL) { | |
26072 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26073 | } | |
26074 | { | |
26075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26076 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
26077 | ||
26078 | wxPyEndAllowThreads(__tstate); | |
26079 | if (PyErr_Occurred()) SWIG_fail; | |
26080 | } | |
26081 | Py_INCREF(Py_None); resultobj = Py_None; | |
26082 | return resultobj; | |
26083 | fail: | |
26084 | return NULL; | |
26085 | } | |
26086 | ||
26087 | ||
d14a1e28 RD |
26088 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
26089 | PyObject *resultobj; | |
26090 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26091 | PyObject * obj0 = 0 ; | |
26092 | char *kwnames[] = { | |
26093 | (char *) "self", NULL | |
26094 | }; | |
26095 | ||
26096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
26097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26098 | { | |
26099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26100 | (arg1)->UnselectAll(); | |
26101 | ||
26102 | wxPyEndAllowThreads(__tstate); | |
26103 | if (PyErr_Occurred()) SWIG_fail; | |
26104 | } | |
26105 | Py_INCREF(Py_None); resultobj = Py_None; | |
26106 | return resultobj; | |
26107 | fail: | |
26108 | return NULL; | |
26109 | } | |
26110 | ||
26111 | ||
26112 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
db914595 RD |
26113 | PyObject *resultobj; |
26114 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26115 | wxTreeItemId *arg2 = 0 ; | |
26116 | bool arg3 = (bool) True ; | |
26117 | PyObject * obj0 = 0 ; | |
26118 | PyObject * obj1 = 0 ; | |
26119 | PyObject * obj2 = 0 ; | |
26120 | char *kwnames[] = { | |
26121 | (char *) "self",(char *) "item",(char *) "select", NULL | |
26122 | }; | |
26123 | ||
26124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26126 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26127 | if (arg2 == NULL) { | |
26128 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26129 | } | |
26130 | if (obj2) { | |
26131 | { | |
26132 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
26133 | if (PyErr_Occurred()) SWIG_fail; | |
26134 | } | |
26135 | } | |
26136 | { | |
26137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26138 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
26139 | ||
26140 | wxPyEndAllowThreads(__tstate); | |
26141 | if (PyErr_Occurred()) SWIG_fail; | |
26142 | } | |
26143 | Py_INCREF(Py_None); resultobj = Py_None; | |
26144 | return resultobj; | |
26145 | fail: | |
26146 | return NULL; | |
26147 | } | |
26148 | ||
26149 | ||
26150 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
26151 | PyObject *resultobj; |
26152 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26153 | wxTreeItemId *arg2 = 0 ; | |
26154 | PyObject * obj0 = 0 ; | |
26155 | PyObject * obj1 = 0 ; | |
26156 | char *kwnames[] = { | |
26157 | (char *) "self",(char *) "item", NULL | |
26158 | }; | |
26159 | ||
db914595 | 26160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
26161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26162 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26163 | if (arg2 == NULL) { | |
26164 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26165 | } | |
26166 | { | |
26167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 26168 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
26169 | |
26170 | wxPyEndAllowThreads(__tstate); | |
26171 | if (PyErr_Occurred()) SWIG_fail; | |
26172 | } | |
26173 | Py_INCREF(Py_None); resultobj = Py_None; | |
26174 | return resultobj; | |
26175 | fail: | |
26176 | return NULL; | |
26177 | } | |
26178 | ||
26179 | ||
26180 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26181 | PyObject *resultobj; | |
26182 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26183 | wxTreeItemId *arg2 = 0 ; | |
26184 | PyObject * obj0 = 0 ; | |
26185 | PyObject * obj1 = 0 ; | |
26186 | char *kwnames[] = { | |
26187 | (char *) "self",(char *) "item", NULL | |
26188 | }; | |
26189 | ||
26190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
26191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26192 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26193 | if (arg2 == NULL) { | |
26194 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26195 | } | |
26196 | { | |
26197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26198 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
26199 | ||
26200 | wxPyEndAllowThreads(__tstate); | |
26201 | if (PyErr_Occurred()) SWIG_fail; | |
26202 | } | |
26203 | Py_INCREF(Py_None); resultobj = Py_None; | |
26204 | return resultobj; | |
26205 | fail: | |
26206 | return NULL; | |
26207 | } | |
26208 | ||
26209 | ||
26210 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26211 | PyObject *resultobj; | |
26212 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26213 | wxTreeItemId *arg2 = 0 ; | |
26214 | PyObject * obj0 = 0 ; | |
26215 | PyObject * obj1 = 0 ; | |
26216 | char *kwnames[] = { | |
26217 | (char *) "self",(char *) "item", NULL | |
26218 | }; | |
26219 | ||
26220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
26221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26222 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26223 | if (arg2 == NULL) { | |
26224 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26225 | } | |
26226 | { | |
26227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26228 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
26229 | ||
26230 | wxPyEndAllowThreads(__tstate); | |
26231 | if (PyErr_Occurred()) SWIG_fail; | |
26232 | } | |
26233 | Py_INCREF(Py_None); resultobj = Py_None; | |
26234 | return resultobj; | |
26235 | fail: | |
26236 | return NULL; | |
26237 | } | |
26238 | ||
26239 | ||
26240 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26241 | PyObject *resultobj; | |
26242 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26243 | wxTreeItemId *arg2 = 0 ; | |
26244 | PyObject * obj0 = 0 ; | |
26245 | PyObject * obj1 = 0 ; | |
26246 | char *kwnames[] = { | |
26247 | (char *) "self",(char *) "item", NULL | |
26248 | }; | |
26249 | ||
26250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
26251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26252 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26253 | if (arg2 == NULL) { | |
26254 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26255 | } | |
26256 | { | |
26257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26258 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
26259 | ||
26260 | wxPyEndAllowThreads(__tstate); | |
26261 | if (PyErr_Occurred()) SWIG_fail; | |
26262 | } | |
26263 | Py_INCREF(Py_None); resultobj = Py_None; | |
26264 | return resultobj; | |
26265 | fail: | |
26266 | return NULL; | |
26267 | } | |
26268 | ||
26269 | ||
26270 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26271 | PyObject *resultobj; | |
26272 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26273 | wxTextCtrl *result; | |
26274 | PyObject * obj0 = 0 ; | |
26275 | char *kwnames[] = { | |
26276 | (char *) "self", NULL | |
26277 | }; | |
26278 | ||
26279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
26280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26281 | { | |
26282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26283 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
26284 | ||
26285 | wxPyEndAllowThreads(__tstate); | |
26286 | if (PyErr_Occurred()) SWIG_fail; | |
26287 | } | |
26288 | { | |
26289 | resultobj = wxPyMake_wxObject(result); | |
26290 | } | |
26291 | return resultobj; | |
26292 | fail: | |
26293 | return NULL; | |
26294 | } | |
26295 | ||
26296 | ||
26297 | static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26298 | PyObject *resultobj; | |
26299 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26300 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 26301 | bool arg3 = (bool) False ; |
d14a1e28 RD |
26302 | PyObject * obj0 = 0 ; |
26303 | PyObject * obj1 = 0 ; | |
26304 | PyObject * obj2 = 0 ; | |
26305 | char *kwnames[] = { | |
26306 | (char *) "self",(char *) "item",(char *) "discardChanges", NULL | |
26307 | }; | |
26308 | ||
26309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26311 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26312 | if (arg2 == NULL) { | |
26313 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26314 | } | |
26315 | if (obj2) { | |
83448d71 | 26316 | { |
8edf1c75 | 26317 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
26318 | if (PyErr_Occurred()) SWIG_fail; |
26319 | } | |
d14a1e28 RD |
26320 | } |
26321 | { | |
26322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26323 | (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3); | |
26324 | ||
26325 | wxPyEndAllowThreads(__tstate); | |
26326 | if (PyErr_Occurred()) SWIG_fail; | |
26327 | } | |
26328 | Py_INCREF(Py_None); resultobj = Py_None; | |
26329 | return resultobj; | |
26330 | fail: | |
26331 | return NULL; | |
26332 | } | |
26333 | ||
26334 | ||
26335 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26336 | PyObject *resultobj; | |
26337 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26338 | wxTreeItemId *arg2 = 0 ; | |
26339 | PyObject * obj0 = 0 ; | |
26340 | PyObject * obj1 = 0 ; | |
26341 | char *kwnames[] = { | |
26342 | (char *) "self",(char *) "item", NULL | |
26343 | }; | |
26344 | ||
26345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
26346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26347 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26348 | if (arg2 == NULL) { | |
26349 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26350 | } | |
26351 | { | |
26352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26353 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
26354 | ||
26355 | wxPyEndAllowThreads(__tstate); | |
26356 | if (PyErr_Occurred()) SWIG_fail; | |
26357 | } | |
26358 | Py_INCREF(Py_None); resultobj = Py_None; | |
26359 | return resultobj; | |
26360 | fail: | |
26361 | return NULL; | |
26362 | } | |
26363 | ||
26364 | ||
26365 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26366 | PyObject *resultobj; | |
26367 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26368 | wxPoint *arg2 = 0 ; | |
26369 | int *arg3 = 0 ; | |
26370 | wxTreeItemId result; | |
26371 | wxPoint temp2 ; | |
26372 | int temp3 ; | |
26373 | PyObject * obj0 = 0 ; | |
26374 | PyObject * obj1 = 0 ; | |
26375 | char *kwnames[] = { | |
26376 | (char *) "self",(char *) "point", NULL | |
26377 | }; | |
26378 | ||
26379 | arg3 = &temp3; | |
26380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
26381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26382 | { | |
26383 | arg2 = &temp2; | |
26384 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26385 | } | |
26386 | { | |
26387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26388 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
26389 | ||
26390 | wxPyEndAllowThreads(__tstate); | |
26391 | if (PyErr_Occurred()) SWIG_fail; | |
26392 | } | |
26393 | { | |
26394 | wxTreeItemId * resultptr; | |
26395 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26396 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
26397 | } | |
26398 | { | |
26399 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26400 | resultobj = t_output_helper(resultobj,o); | |
26401 | } | |
26402 | return resultobj; | |
26403 | fail: | |
26404 | return NULL; | |
26405 | } | |
26406 | ||
26407 | ||
26408 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26409 | PyObject *resultobj; | |
26410 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26411 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 26412 | bool arg3 = (bool) False ; |
d14a1e28 RD |
26413 | PyObject *result; |
26414 | PyObject * obj0 = 0 ; | |
26415 | PyObject * obj1 = 0 ; | |
26416 | PyObject * obj2 = 0 ; | |
26417 | char *kwnames[] = { | |
26418 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
26419 | }; | |
26420 | ||
26421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26423 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26424 | if (arg2 == NULL) { | |
26425 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26426 | } | |
26427 | if (obj2) { | |
83448d71 | 26428 | { |
8edf1c75 | 26429 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
26430 | if (PyErr_Occurred()) SWIG_fail; |
26431 | } | |
d14a1e28 RD |
26432 | } |
26433 | { | |
26434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26435 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26436 | ||
26437 | wxPyEndAllowThreads(__tstate); | |
26438 | if (PyErr_Occurred()) SWIG_fail; | |
26439 | } | |
26440 | resultobj = result; | |
26441 | return resultobj; | |
26442 | fail: | |
26443 | return NULL; | |
26444 | } | |
26445 | ||
26446 | ||
26447 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
26448 | PyObject *obj; | |
26449 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26450 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
26451 | Py_INCREF(obj); | |
26452 | return Py_BuildValue((char *)""); | |
26453 | } | |
8edf1c75 | 26454 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
d03fd34d RD |
26455 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
26456 | return 1; | |
26457 | } | |
26458 | ||
26459 | ||
26460 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
26461 | PyObject *pyobj; | |
26462 | ||
26463 | { | |
26464 | #if wxUSE_UNICODE | |
26465 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
26466 | #else | |
26467 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
26468 | #endif | |
26469 | } | |
26470 | return pyobj; | |
26471 | } | |
26472 | ||
26473 | ||
d14a1e28 RD |
26474 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
26475 | PyObject *resultobj; | |
26476 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 26477 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
26478 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
26479 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
26480 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
26481 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26482 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26483 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26484 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
26485 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
26486 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
26487 | int arg8 = (int) 0 ; | |
d03fd34d | 26488 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
26489 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
26490 | wxGenericDirCtrl *result; | |
423f194a | 26491 | bool temp3 = False ; |
d14a1e28 RD |
26492 | wxPoint temp4 ; |
26493 | wxSize temp5 ; | |
423f194a RD |
26494 | bool temp7 = False ; |
26495 | bool temp9 = False ; | |
d14a1e28 | 26496 | PyObject * obj0 = 0 ; |
8edf1c75 | 26497 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26498 | PyObject * obj2 = 0 ; |
26499 | PyObject * obj3 = 0 ; | |
26500 | PyObject * obj4 = 0 ; | |
8edf1c75 | 26501 | PyObject * obj5 = 0 ; |
d14a1e28 | 26502 | PyObject * obj6 = 0 ; |
8edf1c75 | 26503 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
26504 | PyObject * obj8 = 0 ; |
26505 | char *kwnames[] = { | |
26506 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
26507 | }; | |
26508 | ||
8edf1c75 | 26509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 | 26510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26511 | if (obj1) { |
26512 | { | |
26513 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
26514 | if (PyErr_Occurred()) SWIG_fail; | |
26515 | } | |
26516 | } | |
d14a1e28 RD |
26517 | if (obj2) { |
26518 | { | |
26519 | arg3 = wxString_in_helper(obj2); | |
26520 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26521 | temp3 = True; |
d14a1e28 RD |
26522 | } |
26523 | } | |
26524 | if (obj3) { | |
26525 | { | |
26526 | arg4 = &temp4; | |
26527 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26528 | } | |
26529 | } | |
26530 | if (obj4) { | |
26531 | { | |
26532 | arg5 = &temp5; | |
26533 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26534 | } | |
26535 | } | |
8edf1c75 RD |
26536 | if (obj5) { |
26537 | { | |
26538 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
26539 | if (PyErr_Occurred()) SWIG_fail; | |
26540 | } | |
26541 | } | |
d14a1e28 RD |
26542 | if (obj6) { |
26543 | { | |
26544 | arg7 = wxString_in_helper(obj6); | |
26545 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 26546 | temp7 = True; |
d14a1e28 RD |
26547 | } |
26548 | } | |
8edf1c75 RD |
26549 | if (obj7) { |
26550 | { | |
26551 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
26552 | if (PyErr_Occurred()) SWIG_fail; | |
26553 | } | |
26554 | } | |
d14a1e28 RD |
26555 | if (obj8) { |
26556 | { | |
26557 | arg9 = wxString_in_helper(obj8); | |
26558 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 26559 | temp9 = True; |
d14a1e28 RD |
26560 | } |
26561 | } | |
26562 | { | |
26563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26564 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
26565 | ||
26566 | wxPyEndAllowThreads(__tstate); | |
26567 | if (PyErr_Occurred()) SWIG_fail; | |
26568 | } | |
26569 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
26570 | { | |
26571 | if (temp3) | |
26572 | delete arg3; | |
26573 | } | |
26574 | { | |
26575 | if (temp7) | |
26576 | delete arg7; | |
26577 | } | |
26578 | { | |
26579 | if (temp9) | |
26580 | delete arg9; | |
26581 | } | |
26582 | return resultobj; | |
26583 | fail: | |
26584 | { | |
26585 | if (temp3) | |
26586 | delete arg3; | |
26587 | } | |
26588 | { | |
26589 | if (temp7) | |
26590 | delete arg7; | |
26591 | } | |
26592 | { | |
26593 | if (temp9) | |
26594 | delete arg9; | |
26595 | } | |
26596 | return NULL; | |
26597 | } | |
26598 | ||
26599 | ||
26600 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26601 | PyObject *resultobj; | |
26602 | wxGenericDirCtrl *result; | |
26603 | char *kwnames[] = { | |
26604 | NULL | |
26605 | }; | |
26606 | ||
26607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
26608 | { | |
26609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26610 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
26611 | ||
26612 | wxPyEndAllowThreads(__tstate); | |
26613 | if (PyErr_Occurred()) SWIG_fail; | |
26614 | } | |
26615 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
26616 | return resultobj; | |
26617 | fail: | |
26618 | return NULL; | |
26619 | } | |
26620 | ||
26621 | ||
26622 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26623 | PyObject *resultobj; | |
26624 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26625 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 26626 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
26627 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
26628 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
26629 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
26630 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
26631 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
26632 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
26633 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
26634 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
26635 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
26636 | int arg9 = (int) 0 ; | |
d03fd34d | 26637 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
26638 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
26639 | bool result; | |
423f194a | 26640 | bool temp4 = False ; |
d14a1e28 RD |
26641 | wxPoint temp5 ; |
26642 | wxSize temp6 ; | |
423f194a RD |
26643 | bool temp8 = False ; |
26644 | bool temp10 = False ; | |
d14a1e28 RD |
26645 | PyObject * obj0 = 0 ; |
26646 | PyObject * obj1 = 0 ; | |
8edf1c75 | 26647 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26648 | PyObject * obj3 = 0 ; |
26649 | PyObject * obj4 = 0 ; | |
26650 | PyObject * obj5 = 0 ; | |
8edf1c75 | 26651 | PyObject * obj6 = 0 ; |
d14a1e28 | 26652 | PyObject * obj7 = 0 ; |
8edf1c75 | 26653 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
26654 | PyObject * obj9 = 0 ; |
26655 | char *kwnames[] = { | |
26656 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
26657 | }; | |
26658 | ||
8edf1c75 | 26659 | 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 |
26660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26661 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
26662 | if (obj2) { |
26663 | { | |
26664 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
26665 | if (PyErr_Occurred()) SWIG_fail; | |
26666 | } | |
26667 | } | |
d14a1e28 RD |
26668 | if (obj3) { |
26669 | { | |
26670 | arg4 = wxString_in_helper(obj3); | |
26671 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 26672 | temp4 = True; |
d14a1e28 RD |
26673 | } |
26674 | } | |
26675 | if (obj4) { | |
26676 | { | |
26677 | arg5 = &temp5; | |
26678 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
26679 | } | |
26680 | } | |
26681 | if (obj5) { | |
26682 | { | |
26683 | arg6 = &temp6; | |
26684 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
26685 | } | |
26686 | } | |
8edf1c75 RD |
26687 | if (obj6) { |
26688 | { | |
26689 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
26690 | if (PyErr_Occurred()) SWIG_fail; | |
26691 | } | |
26692 | } | |
d14a1e28 RD |
26693 | if (obj7) { |
26694 | { | |
26695 | arg8 = wxString_in_helper(obj7); | |
26696 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 26697 | temp8 = True; |
d14a1e28 RD |
26698 | } |
26699 | } | |
8edf1c75 RD |
26700 | if (obj8) { |
26701 | { | |
26702 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
26703 | if (PyErr_Occurred()) SWIG_fail; | |
26704 | } | |
26705 | } | |
d14a1e28 RD |
26706 | if (obj9) { |
26707 | { | |
26708 | arg10 = wxString_in_helper(obj9); | |
26709 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 26710 | temp10 = True; |
d14a1e28 RD |
26711 | } |
26712 | } | |
26713 | { | |
26714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26715 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
26716 | ||
26717 | wxPyEndAllowThreads(__tstate); | |
26718 | if (PyErr_Occurred()) SWIG_fail; | |
26719 | } | |
4e760a36 | 26720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26721 | { |
26722 | if (temp4) | |
26723 | delete arg4; | |
26724 | } | |
26725 | { | |
26726 | if (temp8) | |
26727 | delete arg8; | |
26728 | } | |
26729 | { | |
26730 | if (temp10) | |
26731 | delete arg10; | |
26732 | } | |
26733 | return resultobj; | |
26734 | fail: | |
26735 | { | |
26736 | if (temp4) | |
26737 | delete arg4; | |
26738 | } | |
26739 | { | |
26740 | if (temp8) | |
26741 | delete arg8; | |
26742 | } | |
26743 | { | |
26744 | if (temp10) | |
26745 | delete arg10; | |
26746 | } | |
26747 | return NULL; | |
26748 | } | |
26749 | ||
26750 | ||
26751 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26752 | PyObject *resultobj; | |
26753 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26754 | wxString *arg2 = 0 ; | |
26755 | bool result; | |
423f194a | 26756 | bool temp2 = False ; |
d14a1e28 RD |
26757 | PyObject * obj0 = 0 ; |
26758 | PyObject * obj1 = 0 ; | |
26759 | char *kwnames[] = { | |
26760 | (char *) "self",(char *) "path", NULL | |
26761 | }; | |
26762 | ||
26763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
26764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26765 | { | |
26766 | arg2 = wxString_in_helper(obj1); | |
26767 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26768 | temp2 = True; |
d14a1e28 RD |
26769 | } |
26770 | { | |
26771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26772 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
26773 | ||
26774 | wxPyEndAllowThreads(__tstate); | |
26775 | if (PyErr_Occurred()) SWIG_fail; | |
26776 | } | |
4e760a36 | 26777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26778 | { |
26779 | if (temp2) | |
26780 | delete arg2; | |
26781 | } | |
26782 | return resultobj; | |
26783 | fail: | |
26784 | { | |
26785 | if (temp2) | |
26786 | delete arg2; | |
26787 | } | |
26788 | return NULL; | |
26789 | } | |
26790 | ||
26791 | ||
26792 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26793 | PyObject *resultobj; | |
26794 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26795 | wxString result; | |
26796 | PyObject * obj0 = 0 ; | |
26797 | char *kwnames[] = { | |
26798 | (char *) "self", NULL | |
26799 | }; | |
26800 | ||
26801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
26802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26803 | { | |
26804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26805 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
26806 | ||
26807 | wxPyEndAllowThreads(__tstate); | |
26808 | if (PyErr_Occurred()) SWIG_fail; | |
26809 | } | |
26810 | { | |
26811 | #if wxUSE_UNICODE | |
26812 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26813 | #else | |
26814 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26815 | #endif | |
26816 | } | |
26817 | return resultobj; | |
26818 | fail: | |
26819 | return NULL; | |
26820 | } | |
26821 | ||
26822 | ||
26823 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26824 | PyObject *resultobj; | |
26825 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26826 | wxString *arg2 = 0 ; | |
423f194a | 26827 | bool temp2 = False ; |
d14a1e28 RD |
26828 | PyObject * obj0 = 0 ; |
26829 | PyObject * obj1 = 0 ; | |
26830 | char *kwnames[] = { | |
26831 | (char *) "self",(char *) "path", NULL | |
26832 | }; | |
26833 | ||
26834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
26835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26836 | { | |
26837 | arg2 = wxString_in_helper(obj1); | |
26838 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26839 | temp2 = True; |
d14a1e28 RD |
26840 | } |
26841 | { | |
26842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26843 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
26844 | ||
26845 | wxPyEndAllowThreads(__tstate); | |
26846 | if (PyErr_Occurred()) SWIG_fail; | |
26847 | } | |
26848 | Py_INCREF(Py_None); resultobj = Py_None; | |
26849 | { | |
26850 | if (temp2) | |
26851 | delete arg2; | |
26852 | } | |
26853 | return resultobj; | |
26854 | fail: | |
26855 | { | |
26856 | if (temp2) | |
26857 | delete arg2; | |
26858 | } | |
26859 | return NULL; | |
26860 | } | |
26861 | ||
26862 | ||
26863 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26864 | PyObject *resultobj; | |
26865 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26866 | wxString result; | |
26867 | PyObject * obj0 = 0 ; | |
26868 | char *kwnames[] = { | |
26869 | (char *) "self", NULL | |
26870 | }; | |
26871 | ||
26872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
26873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26874 | { | |
26875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26876 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
26877 | ||
26878 | wxPyEndAllowThreads(__tstate); | |
26879 | if (PyErr_Occurred()) SWIG_fail; | |
26880 | } | |
26881 | { | |
26882 | #if wxUSE_UNICODE | |
26883 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26884 | #else | |
26885 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26886 | #endif | |
26887 | } | |
26888 | return resultobj; | |
26889 | fail: | |
26890 | return NULL; | |
26891 | } | |
26892 | ||
26893 | ||
26894 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26895 | PyObject *resultobj; | |
26896 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26897 | wxString result; | |
26898 | PyObject * obj0 = 0 ; | |
26899 | char *kwnames[] = { | |
26900 | (char *) "self", NULL | |
26901 | }; | |
26902 | ||
26903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
26904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26905 | { | |
26906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26907 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
26908 | ||
26909 | wxPyEndAllowThreads(__tstate); | |
26910 | if (PyErr_Occurred()) SWIG_fail; | |
26911 | } | |
26912 | { | |
26913 | #if wxUSE_UNICODE | |
26914 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26915 | #else | |
26916 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26917 | #endif | |
26918 | } | |
26919 | return resultobj; | |
26920 | fail: | |
26921 | return NULL; | |
26922 | } | |
26923 | ||
26924 | ||
26925 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26926 | PyObject *resultobj; | |
26927 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26928 | wxString *arg2 = 0 ; | |
423f194a | 26929 | bool temp2 = False ; |
d14a1e28 RD |
26930 | PyObject * obj0 = 0 ; |
26931 | PyObject * obj1 = 0 ; | |
26932 | char *kwnames[] = { | |
26933 | (char *) "self",(char *) "path", NULL | |
26934 | }; | |
26935 | ||
26936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
26937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26938 | { | |
26939 | arg2 = wxString_in_helper(obj1); | |
26940 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26941 | temp2 = True; |
d14a1e28 RD |
26942 | } |
26943 | { | |
26944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26945 | (arg1)->SetPath((wxString const &)*arg2); | |
26946 | ||
26947 | wxPyEndAllowThreads(__tstate); | |
26948 | if (PyErr_Occurred()) SWIG_fail; | |
26949 | } | |
26950 | Py_INCREF(Py_None); resultobj = Py_None; | |
26951 | { | |
26952 | if (temp2) | |
26953 | delete arg2; | |
26954 | } | |
26955 | return resultobj; | |
26956 | fail: | |
26957 | { | |
26958 | if (temp2) | |
26959 | delete arg2; | |
26960 | } | |
26961 | return NULL; | |
26962 | } | |
26963 | ||
26964 | ||
26965 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26966 | PyObject *resultobj; | |
26967 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26968 | bool arg2 ; | |
26969 | PyObject * obj0 = 0 ; | |
26970 | PyObject * obj1 = 0 ; | |
26971 | char *kwnames[] = { | |
26972 | (char *) "self",(char *) "show", NULL | |
26973 | }; | |
26974 | ||
26975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
26976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 26977 | { |
8edf1c75 | 26978 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
26979 | if (PyErr_Occurred()) SWIG_fail; |
26980 | } | |
d14a1e28 RD |
26981 | { |
26982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26983 | (arg1)->ShowHidden(arg2); | |
26984 | ||
26985 | wxPyEndAllowThreads(__tstate); | |
26986 | if (PyErr_Occurred()) SWIG_fail; | |
26987 | } | |
26988 | Py_INCREF(Py_None); resultobj = Py_None; | |
26989 | return resultobj; | |
26990 | fail: | |
26991 | return NULL; | |
26992 | } | |
26993 | ||
26994 | ||
26995 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26996 | PyObject *resultobj; | |
26997 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26998 | bool result; | |
26999 | PyObject * obj0 = 0 ; | |
27000 | char *kwnames[] = { | |
27001 | (char *) "self", NULL | |
27002 | }; | |
27003 | ||
27004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
27005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27006 | { | |
27007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27008 | result = (bool)(arg1)->GetShowHidden(); | |
27009 | ||
27010 | wxPyEndAllowThreads(__tstate); | |
27011 | if (PyErr_Occurred()) SWIG_fail; | |
27012 | } | |
4e760a36 | 27013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27014 | return resultobj; |
27015 | fail: | |
27016 | return NULL; | |
27017 | } | |
27018 | ||
27019 | ||
27020 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27021 | PyObject *resultobj; | |
27022 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27023 | wxString result; | |
27024 | PyObject * obj0 = 0 ; | |
27025 | char *kwnames[] = { | |
27026 | (char *) "self", NULL | |
27027 | }; | |
27028 | ||
27029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
27030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27031 | { | |
27032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27033 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
27034 | ||
27035 | wxPyEndAllowThreads(__tstate); | |
27036 | if (PyErr_Occurred()) SWIG_fail; | |
27037 | } | |
27038 | { | |
27039 | #if wxUSE_UNICODE | |
27040 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27041 | #else | |
27042 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27043 | #endif | |
27044 | } | |
27045 | return resultobj; | |
27046 | fail: | |
27047 | return NULL; | |
27048 | } | |
27049 | ||
27050 | ||
27051 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27052 | PyObject *resultobj; | |
27053 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27054 | wxString *arg2 = 0 ; | |
423f194a | 27055 | bool temp2 = False ; |
d14a1e28 RD |
27056 | PyObject * obj0 = 0 ; |
27057 | PyObject * obj1 = 0 ; | |
27058 | char *kwnames[] = { | |
27059 | (char *) "self",(char *) "filter", NULL | |
27060 | }; | |
27061 | ||
27062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
27063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27064 | { | |
27065 | arg2 = wxString_in_helper(obj1); | |
27066 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27067 | temp2 = True; |
d14a1e28 RD |
27068 | } |
27069 | { | |
27070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27071 | (arg1)->SetFilter((wxString const &)*arg2); | |
27072 | ||
27073 | wxPyEndAllowThreads(__tstate); | |
27074 | if (PyErr_Occurred()) SWIG_fail; | |
27075 | } | |
27076 | Py_INCREF(Py_None); resultobj = Py_None; | |
27077 | { | |
27078 | if (temp2) | |
27079 | delete arg2; | |
27080 | } | |
27081 | return resultobj; | |
27082 | fail: | |
27083 | { | |
27084 | if (temp2) | |
27085 | delete arg2; | |
27086 | } | |
27087 | return NULL; | |
27088 | } | |
27089 | ||
27090 | ||
27091 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27092 | PyObject *resultobj; | |
27093 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27094 | int result; | |
27095 | PyObject * obj0 = 0 ; | |
27096 | char *kwnames[] = { | |
27097 | (char *) "self", NULL | |
27098 | }; | |
27099 | ||
27100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
27101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27102 | { | |
27103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27104 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
27105 | ||
27106 | wxPyEndAllowThreads(__tstate); | |
27107 | if (PyErr_Occurred()) SWIG_fail; | |
27108 | } | |
8edf1c75 | 27109 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
27110 | return resultobj; |
27111 | fail: | |
27112 | return NULL; | |
27113 | } | |
27114 | ||
27115 | ||
27116 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27117 | PyObject *resultobj; | |
27118 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27119 | int arg2 ; | |
27120 | PyObject * obj0 = 0 ; | |
8edf1c75 | 27121 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27122 | char *kwnames[] = { |
27123 | (char *) "self",(char *) "n", NULL | |
27124 | }; | |
27125 | ||
8edf1c75 | 27126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 27127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27128 | { |
27129 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27130 | if (PyErr_Occurred()) SWIG_fail; | |
27131 | } | |
d14a1e28 RD |
27132 | { |
27133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27134 | (arg1)->SetFilterIndex(arg2); | |
27135 | ||
27136 | wxPyEndAllowThreads(__tstate); | |
27137 | if (PyErr_Occurred()) SWIG_fail; | |
27138 | } | |
27139 | Py_INCREF(Py_None); resultobj = Py_None; | |
27140 | return resultobj; | |
27141 | fail: | |
27142 | return NULL; | |
27143 | } | |
27144 | ||
27145 | ||
27146 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27147 | PyObject *resultobj; | |
27148 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27149 | wxTreeItemId result; | |
27150 | PyObject * obj0 = 0 ; | |
27151 | char *kwnames[] = { | |
27152 | (char *) "self", NULL | |
27153 | }; | |
27154 | ||
27155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
27156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27157 | { | |
27158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27159 | result = (arg1)->GetRootId(); | |
27160 | ||
27161 | wxPyEndAllowThreads(__tstate); | |
27162 | if (PyErr_Occurred()) SWIG_fail; | |
27163 | } | |
27164 | { | |
27165 | wxTreeItemId * resultptr; | |
27166 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27167 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
27168 | } | |
27169 | return resultobj; | |
27170 | fail: | |
27171 | return NULL; | |
27172 | } | |
27173 | ||
27174 | ||
27175 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27176 | PyObject *resultobj; | |
27177 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
d03fd34d | 27178 | wxPyTreeCtrl *result; |
d14a1e28 RD |
27179 | PyObject * obj0 = 0 ; |
27180 | char *kwnames[] = { | |
27181 | (char *) "self", NULL | |
27182 | }; | |
27183 | ||
27184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
27185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27186 | { | |
27187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d03fd34d | 27188 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
27189 | |
27190 | wxPyEndAllowThreads(__tstate); | |
27191 | if (PyErr_Occurred()) SWIG_fail; | |
27192 | } | |
27193 | { | |
27194 | resultobj = wxPyMake_wxObject(result); | |
27195 | } | |
27196 | return resultobj; | |
27197 | fail: | |
27198 | return NULL; | |
27199 | } | |
27200 | ||
27201 | ||
27202 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27203 | PyObject *resultobj; | |
27204 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27205 | wxDirFilterListCtrl *result; | |
27206 | PyObject * obj0 = 0 ; | |
27207 | char *kwnames[] = { | |
27208 | (char *) "self", NULL | |
27209 | }; | |
27210 | ||
27211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
27212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27213 | { | |
27214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27215 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
27216 | ||
27217 | wxPyEndAllowThreads(__tstate); | |
27218 | if (PyErr_Occurred()) SWIG_fail; | |
27219 | } | |
27220 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
27221 | return resultobj; | |
27222 | fail: | |
27223 | return NULL; | |
27224 | } | |
27225 | ||
27226 | ||
27227 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27228 | PyObject *resultobj; | |
27229 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27230 | wxTreeItemId arg2 ; | |
27231 | wxString *arg3 = 0 ; | |
27232 | bool *arg4 = 0 ; | |
27233 | wxTreeItemId result; | |
27234 | wxTreeItemId *argp2 ; | |
423f194a | 27235 | bool temp3 = False ; |
d14a1e28 RD |
27236 | bool temp4 ; |
27237 | PyObject * obj0 = 0 ; | |
27238 | PyObject * obj1 = 0 ; | |
27239 | PyObject * obj2 = 0 ; | |
27240 | char *kwnames[] = { | |
27241 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
27242 | }; | |
27243 | ||
27244 | arg4 = &temp4; | |
27245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27247 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
27248 | arg2 = *argp2; | |
27249 | { | |
27250 | arg3 = wxString_in_helper(obj2); | |
27251 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27252 | temp3 = True; |
d14a1e28 RD |
27253 | } |
27254 | { | |
27255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27256 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
27257 | ||
27258 | wxPyEndAllowThreads(__tstate); | |
27259 | if (PyErr_Occurred()) SWIG_fail; | |
27260 | } | |
27261 | { | |
27262 | wxTreeItemId * resultptr; | |
27263 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27264 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
27265 | } | |
27266 | { | |
27267 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
27268 | resultobj = t_output_helper(resultobj,o); | |
27269 | } | |
27270 | { | |
27271 | if (temp3) | |
27272 | delete arg3; | |
27273 | } | |
27274 | return resultobj; | |
27275 | fail: | |
27276 | { | |
27277 | if (temp3) | |
27278 | delete arg3; | |
27279 | } | |
27280 | return NULL; | |
27281 | } | |
27282 | ||
27283 | ||
27284 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27285 | PyObject *resultobj; | |
27286 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27287 | PyObject * obj0 = 0 ; | |
27288 | char *kwnames[] = { | |
27289 | (char *) "self", NULL | |
27290 | }; | |
27291 | ||
27292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
27293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27294 | { | |
27295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27296 | (arg1)->DoResize(); | |
27297 | ||
27298 | wxPyEndAllowThreads(__tstate); | |
27299 | if (PyErr_Occurred()) SWIG_fail; | |
27300 | } | |
27301 | Py_INCREF(Py_None); resultobj = Py_None; | |
27302 | return resultobj; | |
27303 | fail: | |
27304 | return NULL; | |
27305 | } | |
27306 | ||
27307 | ||
27308 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27309 | PyObject *resultobj; | |
27310 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27311 | PyObject * obj0 = 0 ; | |
27312 | char *kwnames[] = { | |
27313 | (char *) "self", NULL | |
27314 | }; | |
27315 | ||
27316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
27317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27318 | { | |
27319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27320 | (arg1)->ReCreateTree(); | |
27321 | ||
27322 | wxPyEndAllowThreads(__tstate); | |
27323 | if (PyErr_Occurred()) SWIG_fail; | |
27324 | } | |
27325 | Py_INCREF(Py_None); resultobj = Py_None; | |
27326 | return resultobj; | |
27327 | fail: | |
27328 | return NULL; | |
27329 | } | |
27330 | ||
27331 | ||
27332 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
27333 | PyObject *obj; | |
27334 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27335 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
27336 | Py_INCREF(obj); | |
27337 | return Py_BuildValue((char *)""); | |
27338 | } | |
27339 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27340 | PyObject *resultobj; | |
27341 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 27342 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
27343 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27344 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27345 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27346 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27347 | long arg5 = (long) 0 ; | |
27348 | wxDirFilterListCtrl *result; | |
27349 | wxPoint temp3 ; | |
27350 | wxSize temp4 ; | |
27351 | PyObject * obj0 = 0 ; | |
8edf1c75 | 27352 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27353 | PyObject * obj2 = 0 ; |
27354 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27355 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
27356 | char *kwnames[] = { |
27357 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
27358 | }; | |
27359 | ||
8edf1c75 | 27360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27362 | if (obj1) { |
27363 | { | |
27364 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
27365 | if (PyErr_Occurred()) SWIG_fail; | |
27366 | } | |
27367 | } | |
d14a1e28 RD |
27368 | if (obj2) { |
27369 | { | |
27370 | arg3 = &temp3; | |
27371 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27372 | } | |
27373 | } | |
27374 | if (obj3) { | |
27375 | { | |
27376 | arg4 = &temp4; | |
27377 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27378 | } | |
27379 | } | |
8edf1c75 RD |
27380 | if (obj4) { |
27381 | { | |
27382 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
27383 | if (PyErr_Occurred()) SWIG_fail; | |
27384 | } | |
27385 | } | |
d14a1e28 RD |
27386 | { |
27387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27388 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
27389 | ||
27390 | wxPyEndAllowThreads(__tstate); | |
27391 | if (PyErr_Occurred()) SWIG_fail; | |
27392 | } | |
27393 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
27394 | return resultobj; | |
27395 | fail: | |
27396 | return NULL; | |
27397 | } | |
27398 | ||
27399 | ||
27400 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27401 | PyObject *resultobj; | |
27402 | wxDirFilterListCtrl *result; | |
27403 | char *kwnames[] = { | |
27404 | NULL | |
27405 | }; | |
27406 | ||
27407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
27408 | { | |
27409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27410 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
27411 | ||
27412 | wxPyEndAllowThreads(__tstate); | |
27413 | if (PyErr_Occurred()) SWIG_fail; | |
27414 | } | |
27415 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
27416 | return resultobj; | |
27417 | fail: | |
27418 | return NULL; | |
27419 | } | |
27420 | ||
27421 | ||
27422 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27423 | PyObject *resultobj; | |
27424 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
27425 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 27426 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
27427 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
27428 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27429 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27430 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27431 | long arg6 = (long) 0 ; | |
27432 | bool result; | |
27433 | wxPoint temp4 ; | |
27434 | wxSize temp5 ; | |
27435 | PyObject * obj0 = 0 ; | |
27436 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27437 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27438 | PyObject * obj3 = 0 ; |
27439 | PyObject * obj4 = 0 ; | |
8edf1c75 | 27440 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
27441 | char *kwnames[] = { |
27442 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
27443 | }; | |
27444 | ||
8edf1c75 | 27445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
27446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
27447 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
27448 | if (obj2) { |
27449 | { | |
27450 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
27451 | if (PyErr_Occurred()) SWIG_fail; | |
27452 | } | |
27453 | } | |
d14a1e28 RD |
27454 | if (obj3) { |
27455 | { | |
27456 | arg4 = &temp4; | |
27457 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27458 | } | |
27459 | } | |
27460 | if (obj4) { | |
27461 | { | |
27462 | arg5 = &temp5; | |
27463 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27464 | } | |
27465 | } | |
8edf1c75 RD |
27466 | if (obj5) { |
27467 | { | |
27468 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
27469 | if (PyErr_Occurred()) SWIG_fail; | |
27470 | } | |
27471 | } | |
d14a1e28 RD |
27472 | { |
27473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27474 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
27475 | ||
27476 | wxPyEndAllowThreads(__tstate); | |
27477 | if (PyErr_Occurred()) SWIG_fail; | |
27478 | } | |
4e760a36 | 27479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27480 | return resultobj; |
27481 | fail: | |
27482 | return NULL; | |
27483 | } | |
27484 | ||
27485 | ||
27486 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27487 | PyObject *resultobj; | |
27488 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
27489 | wxString *arg2 = 0 ; | |
27490 | int arg3 ; | |
423f194a | 27491 | bool temp2 = False ; |
d14a1e28 RD |
27492 | PyObject * obj0 = 0 ; |
27493 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27494 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27495 | char *kwnames[] = { |
27496 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
27497 | }; | |
27498 | ||
8edf1c75 | 27499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
27500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
27501 | { | |
27502 | arg2 = wxString_in_helper(obj1); | |
27503 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27504 | temp2 = True; |
d14a1e28 | 27505 | } |
8edf1c75 RD |
27506 | { |
27507 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27508 | if (PyErr_Occurred()) SWIG_fail; | |
27509 | } | |
d14a1e28 RD |
27510 | { |
27511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27512 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
27513 | ||
27514 | wxPyEndAllowThreads(__tstate); | |
27515 | if (PyErr_Occurred()) SWIG_fail; | |
27516 | } | |
27517 | Py_INCREF(Py_None); resultobj = Py_None; | |
27518 | { | |
27519 | if (temp2) | |
27520 | delete arg2; | |
27521 | } | |
27522 | return resultobj; | |
27523 | fail: | |
27524 | { | |
27525 | if (temp2) | |
27526 | delete arg2; | |
27527 | } | |
27528 | return NULL; | |
27529 | } | |
27530 | ||
27531 | ||
27532 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
27533 | PyObject *obj; | |
27534 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27535 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
27536 | Py_INCREF(obj); | |
27537 | return Py_BuildValue((char *)""); | |
27538 | } | |
27539 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27540 | PyObject *resultobj; | |
27541 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 27542 | int arg2 ; |
d14a1e28 RD |
27543 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27544 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27545 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27546 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27547 | long arg5 = (long) 0 ; | |
27548 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
27549 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
27550 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
27551 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27552 | wxPyControl *result; | |
27553 | wxPoint temp3 ; | |
27554 | wxSize temp4 ; | |
423f194a | 27555 | bool temp7 = False ; |
d14a1e28 | 27556 | PyObject * obj0 = 0 ; |
8edf1c75 | 27557 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27558 | PyObject * obj2 = 0 ; |
27559 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27560 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
27561 | PyObject * obj5 = 0 ; |
27562 | PyObject * obj6 = 0 ; | |
27563 | char *kwnames[] = { | |
27564 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
27565 | }; | |
27566 | ||
8edf1c75 | 27567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 27568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27569 | { |
27570 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
27571 | if (PyErr_Occurred()) SWIG_fail; | |
27572 | } | |
d14a1e28 RD |
27573 | if (obj2) { |
27574 | { | |
27575 | arg3 = &temp3; | |
27576 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27577 | } | |
27578 | } | |
27579 | if (obj3) { | |
27580 | { | |
27581 | arg4 = &temp4; | |
27582 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27583 | } | |
27584 | } | |
8edf1c75 RD |
27585 | if (obj4) { |
27586 | { | |
27587 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
27588 | if (PyErr_Occurred()) SWIG_fail; | |
27589 | } | |
27590 | } | |
d14a1e28 RD |
27591 | if (obj5) { |
27592 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27593 | if (arg6 == NULL) { | |
27594 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
27595 | } | |
27596 | } | |
27597 | if (obj6) { | |
27598 | { | |
27599 | arg7 = wxString_in_helper(obj6); | |
27600 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 27601 | temp7 = True; |
d14a1e28 RD |
27602 | } |
27603 | } | |
27604 | { | |
27605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27606 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
27607 | ||
27608 | wxPyEndAllowThreads(__tstate); | |
27609 | if (PyErr_Occurred()) SWIG_fail; | |
27610 | } | |
27611 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControl, 1); | |
27612 | { | |
27613 | if (temp7) | |
27614 | delete arg7; | |
27615 | } | |
27616 | return resultobj; | |
27617 | fail: | |
27618 | { | |
27619 | if (temp7) | |
27620 | delete arg7; | |
27621 | } | |
27622 | return NULL; | |
27623 | } | |
27624 | ||
27625 | ||
27626 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27627 | PyObject *resultobj; | |
27628 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27629 | PyObject *arg2 = (PyObject *) 0 ; | |
27630 | PyObject *arg3 = (PyObject *) 0 ; | |
27631 | PyObject * obj0 = 0 ; | |
27632 | PyObject * obj1 = 0 ; | |
27633 | PyObject * obj2 = 0 ; | |
27634 | char *kwnames[] = { | |
27635 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27636 | }; | |
27637 | ||
27638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27640 | arg2 = obj1; | |
27641 | arg3 = obj2; | |
27642 | { | |
27643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27644 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27645 | ||
27646 | wxPyEndAllowThreads(__tstate); | |
27647 | if (PyErr_Occurred()) SWIG_fail; | |
27648 | } | |
27649 | Py_INCREF(Py_None); resultobj = Py_None; | |
27650 | return resultobj; | |
27651 | fail: | |
27652 | return NULL; | |
27653 | } | |
27654 | ||
27655 | ||
27656 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27657 | PyObject *resultobj; | |
27658 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27659 | int arg2 ; | |
27660 | int arg3 ; | |
27661 | int arg4 ; | |
27662 | int arg5 ; | |
27663 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27664 | PyObject * obj1 = 0 ; |
27665 | PyObject * obj2 = 0 ; | |
27666 | PyObject * obj3 = 0 ; | |
27667 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27668 | char *kwnames[] = { |
27669 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
27670 | }; | |
27671 | ||
8edf1c75 | 27672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27674 | { |
27675 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27676 | if (PyErr_Occurred()) SWIG_fail; | |
27677 | } | |
27678 | { | |
27679 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27680 | if (PyErr_Occurred()) SWIG_fail; | |
27681 | } | |
27682 | { | |
27683 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
27684 | if (PyErr_Occurred()) SWIG_fail; | |
27685 | } | |
27686 | { | |
27687 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
27688 | if (PyErr_Occurred()) SWIG_fail; | |
27689 | } | |
d14a1e28 RD |
27690 | { |
27691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27692 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
27693 | ||
27694 | wxPyEndAllowThreads(__tstate); | |
27695 | if (PyErr_Occurred()) SWIG_fail; | |
27696 | } | |
27697 | Py_INCREF(Py_None); resultobj = Py_None; | |
27698 | return resultobj; | |
27699 | fail: | |
27700 | return NULL; | |
27701 | } | |
27702 | ||
27703 | ||
27704 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27705 | PyObject *resultobj; | |
27706 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27707 | int arg2 ; | |
27708 | int arg3 ; | |
27709 | int arg4 ; | |
27710 | int arg5 ; | |
27711 | int arg6 = (int) wxSIZE_AUTO ; | |
27712 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27713 | PyObject * obj1 = 0 ; |
27714 | PyObject * obj2 = 0 ; | |
27715 | PyObject * obj3 = 0 ; | |
27716 | PyObject * obj4 = 0 ; | |
27717 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
27718 | char *kwnames[] = { |
27719 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
27720 | }; | |
27721 | ||
8edf1c75 | 27722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 27723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27724 | { |
27725 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27726 | if (PyErr_Occurred()) SWIG_fail; | |
27727 | } | |
27728 | { | |
27729 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27730 | if (PyErr_Occurred()) SWIG_fail; | |
27731 | } | |
27732 | { | |
27733 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
27734 | if (PyErr_Occurred()) SWIG_fail; | |
27735 | } | |
27736 | { | |
27737 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
27738 | if (PyErr_Occurred()) SWIG_fail; | |
27739 | } | |
27740 | if (obj5) { | |
27741 | { | |
27742 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
27743 | if (PyErr_Occurred()) SWIG_fail; | |
27744 | } | |
27745 | } | |
d14a1e28 RD |
27746 | { |
27747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27748 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
27749 | ||
27750 | wxPyEndAllowThreads(__tstate); | |
27751 | if (PyErr_Occurred()) SWIG_fail; | |
27752 | } | |
27753 | Py_INCREF(Py_None); resultobj = Py_None; | |
27754 | return resultobj; | |
27755 | fail: | |
27756 | return NULL; | |
27757 | } | |
27758 | ||
27759 | ||
27760 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27761 | PyObject *resultobj; | |
27762 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27763 | int arg2 ; | |
27764 | int arg3 ; | |
27765 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27766 | PyObject * obj1 = 0 ; |
27767 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27768 | char *kwnames[] = { |
27769 | (char *) "self",(char *) "width",(char *) "height", NULL | |
27770 | }; | |
27771 | ||
8edf1c75 | 27772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 27773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27774 | { |
27775 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27776 | if (PyErr_Occurred()) SWIG_fail; | |
27777 | } | |
27778 | { | |
27779 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27780 | if (PyErr_Occurred()) SWIG_fail; | |
27781 | } | |
d14a1e28 RD |
27782 | { |
27783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27784 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
27785 | ||
27786 | wxPyEndAllowThreads(__tstate); | |
27787 | if (PyErr_Occurred()) SWIG_fail; | |
27788 | } | |
27789 | Py_INCREF(Py_None); resultobj = Py_None; | |
27790 | return resultobj; | |
27791 | fail: | |
27792 | return NULL; | |
27793 | } | |
27794 | ||
27795 | ||
27796 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27797 | PyObject *resultobj; | |
27798 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27799 | int arg2 ; | |
27800 | int arg3 ; | |
27801 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
27802 | PyObject * obj1 = 0 ; |
27803 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27804 | char *kwnames[] = { |
27805 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27806 | }; | |
27807 | ||
8edf1c75 | 27808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 27809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27810 | { |
27811 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27812 | if (PyErr_Occurred()) SWIG_fail; | |
27813 | } | |
27814 | { | |
27815 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
27816 | if (PyErr_Occurred()) SWIG_fail; | |
27817 | } | |
d14a1e28 RD |
27818 | { |
27819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27820 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
27821 | ||
27822 | wxPyEndAllowThreads(__tstate); | |
27823 | if (PyErr_Occurred()) SWIG_fail; | |
27824 | } | |
27825 | Py_INCREF(Py_None); resultobj = Py_None; | |
27826 | return resultobj; | |
27827 | fail: | |
27828 | return NULL; | |
27829 | } | |
27830 | ||
27831 | ||
27832 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27833 | PyObject *resultobj; | |
27834 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27835 | int *arg2 = (int *) 0 ; | |
27836 | int *arg3 = (int *) 0 ; | |
27837 | int temp2 ; | |
27838 | int temp3 ; | |
27839 | PyObject * obj0 = 0 ; | |
27840 | char *kwnames[] = { | |
27841 | (char *) "self", NULL | |
27842 | }; | |
27843 | ||
27844 | arg2 = &temp2; | |
27845 | arg3 = &temp3; | |
27846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
27847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27848 | { | |
27849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27850 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
27851 | ||
27852 | wxPyEndAllowThreads(__tstate); | |
27853 | if (PyErr_Occurred()) SWIG_fail; | |
27854 | } | |
27855 | Py_INCREF(Py_None); resultobj = Py_None; | |
27856 | { | |
27857 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27858 | resultobj = t_output_helper(resultobj,o); | |
27859 | } | |
27860 | { | |
27861 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27862 | resultobj = t_output_helper(resultobj,o); | |
27863 | } | |
27864 | return resultobj; | |
27865 | fail: | |
27866 | return NULL; | |
27867 | } | |
27868 | ||
27869 | ||
27870 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27871 | PyObject *resultobj; | |
27872 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27873 | int *arg2 = (int *) 0 ; | |
27874 | int *arg3 = (int *) 0 ; | |
27875 | int temp2 ; | |
27876 | int temp3 ; | |
27877 | PyObject * obj0 = 0 ; | |
27878 | char *kwnames[] = { | |
27879 | (char *) "self", NULL | |
27880 | }; | |
27881 | ||
27882 | arg2 = &temp2; | |
27883 | arg3 = &temp3; | |
27884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
27885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27886 | { | |
27887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27888 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
27889 | ||
27890 | wxPyEndAllowThreads(__tstate); | |
27891 | if (PyErr_Occurred()) SWIG_fail; | |
27892 | } | |
27893 | Py_INCREF(Py_None); resultobj = Py_None; | |
27894 | { | |
27895 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27896 | resultobj = t_output_helper(resultobj,o); | |
27897 | } | |
27898 | { | |
27899 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27900 | resultobj = t_output_helper(resultobj,o); | |
27901 | } | |
27902 | return resultobj; | |
27903 | fail: | |
27904 | return NULL; | |
27905 | } | |
27906 | ||
27907 | ||
27908 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27909 | PyObject *resultobj; | |
27910 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27911 | int *arg2 = (int *) 0 ; | |
27912 | int *arg3 = (int *) 0 ; | |
27913 | int temp2 ; | |
27914 | int temp3 ; | |
27915 | PyObject * obj0 = 0 ; | |
27916 | char *kwnames[] = { | |
27917 | (char *) "self", NULL | |
27918 | }; | |
27919 | ||
27920 | arg2 = &temp2; | |
27921 | arg3 = &temp3; | |
27922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
27923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27924 | { | |
27925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27926 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
27927 | ||
27928 | wxPyEndAllowThreads(__tstate); | |
27929 | if (PyErr_Occurred()) SWIG_fail; | |
27930 | } | |
27931 | Py_INCREF(Py_None); resultobj = Py_None; | |
27932 | { | |
27933 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27934 | resultobj = t_output_helper(resultobj,o); | |
27935 | } | |
27936 | { | |
27937 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27938 | resultobj = t_output_helper(resultobj,o); | |
27939 | } | |
27940 | return resultobj; | |
27941 | fail: | |
27942 | return NULL; | |
27943 | } | |
27944 | ||
27945 | ||
27946 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27947 | PyObject *resultobj; | |
27948 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27949 | wxSize result; | |
27950 | PyObject * obj0 = 0 ; | |
27951 | char *kwnames[] = { | |
27952 | (char *) "self", NULL | |
27953 | }; | |
27954 | ||
27955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
27956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27957 | { | |
27958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27959 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
27960 | ||
27961 | wxPyEndAllowThreads(__tstate); | |
27962 | if (PyErr_Occurred()) SWIG_fail; | |
27963 | } | |
27964 | { | |
27965 | wxSize * resultptr; | |
27966 | resultptr = new wxSize((wxSize &) result); | |
27967 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27968 | } | |
27969 | return resultobj; | |
27970 | fail: | |
27971 | return NULL; | |
27972 | } | |
27973 | ||
27974 | ||
27975 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27976 | PyObject *resultobj; | |
27977 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27978 | wxSize result; | |
27979 | PyObject * obj0 = 0 ; | |
27980 | char *kwnames[] = { | |
27981 | (char *) "self", NULL | |
27982 | }; | |
27983 | ||
27984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
27985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27986 | { | |
27987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27988 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
27989 | ||
27990 | wxPyEndAllowThreads(__tstate); | |
27991 | if (PyErr_Occurred()) SWIG_fail; | |
27992 | } | |
27993 | { | |
27994 | wxSize * resultptr; | |
27995 | resultptr = new wxSize((wxSize &) result); | |
27996 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27997 | } | |
27998 | return resultobj; | |
27999 | fail: | |
28000 | return NULL; | |
28001 | } | |
28002 | ||
28003 | ||
28004 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28005 | PyObject *resultobj; | |
28006 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28007 | PyObject * obj0 = 0 ; | |
28008 | char *kwnames[] = { | |
28009 | (char *) "self", NULL | |
28010 | }; | |
28011 | ||
28012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
28013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28014 | { | |
28015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28016 | (arg1)->base_InitDialog(); | |
28017 | ||
28018 | wxPyEndAllowThreads(__tstate); | |
28019 | if (PyErr_Occurred()) SWIG_fail; | |
28020 | } | |
28021 | Py_INCREF(Py_None); resultobj = Py_None; | |
28022 | return resultobj; | |
28023 | fail: | |
28024 | return NULL; | |
28025 | } | |
28026 | ||
28027 | ||
28028 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28029 | PyObject *resultobj; | |
28030 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28031 | bool result; | |
28032 | PyObject * obj0 = 0 ; | |
28033 | char *kwnames[] = { | |
28034 | (char *) "self", NULL | |
28035 | }; | |
28036 | ||
28037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
28038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28039 | { | |
28040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28041 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
28042 | ||
28043 | wxPyEndAllowThreads(__tstate); | |
28044 | if (PyErr_Occurred()) SWIG_fail; | |
28045 | } | |
4e760a36 | 28046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28047 | return resultobj; |
28048 | fail: | |
28049 | return NULL; | |
28050 | } | |
28051 | ||
28052 | ||
28053 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28054 | PyObject *resultobj; | |
28055 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28056 | bool result; | |
28057 | PyObject * obj0 = 0 ; | |
28058 | char *kwnames[] = { | |
28059 | (char *) "self", NULL | |
28060 | }; | |
28061 | ||
28062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
28063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28064 | { | |
28065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28066 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
28067 | ||
28068 | wxPyEndAllowThreads(__tstate); | |
28069 | if (PyErr_Occurred()) SWIG_fail; | |
28070 | } | |
4e760a36 | 28071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28072 | return resultobj; |
28073 | fail: | |
28074 | return NULL; | |
28075 | } | |
28076 | ||
28077 | ||
28078 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28079 | PyObject *resultobj; | |
28080 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28081 | bool result; | |
28082 | PyObject * obj0 = 0 ; | |
28083 | char *kwnames[] = { | |
28084 | (char *) "self", NULL | |
28085 | }; | |
28086 | ||
28087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
28088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28089 | { | |
28090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28091 | result = (bool)(arg1)->base_Validate(); | |
28092 | ||
28093 | wxPyEndAllowThreads(__tstate); | |
28094 | if (PyErr_Occurred()) SWIG_fail; | |
28095 | } | |
4e760a36 | 28096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28097 | return resultobj; |
28098 | fail: | |
28099 | return NULL; | |
28100 | } | |
28101 | ||
28102 | ||
28103 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28104 | PyObject *resultobj; | |
28105 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28106 | bool result; | |
28107 | PyObject * obj0 = 0 ; | |
28108 | char *kwnames[] = { | |
28109 | (char *) "self", NULL | |
28110 | }; | |
28111 | ||
28112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
28113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28114 | { | |
28115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28116 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
28117 | ||
28118 | wxPyEndAllowThreads(__tstate); | |
28119 | if (PyErr_Occurred()) SWIG_fail; | |
28120 | } | |
4e760a36 | 28121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28122 | return resultobj; |
28123 | fail: | |
28124 | return NULL; | |
28125 | } | |
28126 | ||
28127 | ||
28128 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28129 | PyObject *resultobj; | |
28130 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28131 | bool result; | |
28132 | PyObject * obj0 = 0 ; | |
28133 | char *kwnames[] = { | |
28134 | (char *) "self", NULL | |
28135 | }; | |
28136 | ||
28137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
28138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28139 | { | |
28140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28141 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
28142 | ||
28143 | wxPyEndAllowThreads(__tstate); | |
28144 | if (PyErr_Occurred()) SWIG_fail; | |
28145 | } | |
4e760a36 | 28146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28147 | return resultobj; |
28148 | fail: | |
28149 | return NULL; | |
28150 | } | |
28151 | ||
28152 | ||
28153 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28154 | PyObject *resultobj; | |
28155 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28156 | wxSize result; | |
28157 | PyObject * obj0 = 0 ; | |
28158 | char *kwnames[] = { | |
28159 | (char *) "self", NULL | |
28160 | }; | |
28161 | ||
28162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
28163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28164 | { | |
28165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28166 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
28167 | ||
28168 | wxPyEndAllowThreads(__tstate); | |
28169 | if (PyErr_Occurred()) SWIG_fail; | |
28170 | } | |
28171 | { | |
28172 | wxSize * resultptr; | |
28173 | resultptr = new wxSize((wxSize &) result); | |
28174 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
28175 | } | |
28176 | return resultobj; | |
28177 | fail: | |
28178 | return NULL; | |
28179 | } | |
28180 | ||
28181 | ||
28182 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28183 | PyObject *resultobj; | |
28184 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28185 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28186 | PyObject * obj0 = 0 ; | |
28187 | PyObject * obj1 = 0 ; | |
28188 | char *kwnames[] = { | |
28189 | (char *) "self",(char *) "child", NULL | |
28190 | }; | |
28191 | ||
28192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
28193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28194 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28195 | { | |
28196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28197 | (arg1)->base_AddChild(arg2); | |
28198 | ||
28199 | wxPyEndAllowThreads(__tstate); | |
28200 | if (PyErr_Occurred()) SWIG_fail; | |
28201 | } | |
28202 | Py_INCREF(Py_None); resultobj = Py_None; | |
28203 | return resultobj; | |
28204 | fail: | |
28205 | return NULL; | |
28206 | } | |
28207 | ||
28208 | ||
28209 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28210 | PyObject *resultobj; | |
28211 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28212 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28213 | PyObject * obj0 = 0 ; | |
28214 | PyObject * obj1 = 0 ; | |
28215 | char *kwnames[] = { | |
28216 | (char *) "self",(char *) "child", NULL | |
28217 | }; | |
28218 | ||
28219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
28220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28221 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28222 | { | |
28223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28224 | (arg1)->base_RemoveChild(arg2); | |
28225 | ||
28226 | wxPyEndAllowThreads(__tstate); | |
28227 | if (PyErr_Occurred()) SWIG_fail; | |
28228 | } | |
28229 | Py_INCREF(Py_None); resultobj = Py_None; | |
28230 | return resultobj; | |
28231 | fail: | |
28232 | return NULL; | |
28233 | } | |
28234 | ||
28235 | ||
28236 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
28237 | PyObject *obj; | |
28238 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28239 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
28240 | Py_INCREF(obj); | |
28241 | return Py_BuildValue((char *)""); | |
28242 | } | |
28243 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28244 | PyObject *resultobj; | |
28245 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 28246 | int arg2 = (int) 0 ; |
d14a1e28 RD |
28247 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28248 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28249 | wxHelpEvent *result; | |
28250 | wxPoint temp3 ; | |
8edf1c75 RD |
28251 | PyObject * obj0 = 0 ; |
28252 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
28253 | PyObject * obj2 = 0 ; |
28254 | char *kwnames[] = { | |
28255 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
28256 | }; | |
28257 | ||
8edf1c75 RD |
28258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
28259 | if (obj0) { | |
28260 | { | |
28261 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
28262 | if (PyErr_Occurred()) SWIG_fail; | |
28263 | } | |
28264 | } | |
28265 | if (obj1) { | |
28266 | { | |
28267 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28268 | if (PyErr_Occurred()) SWIG_fail; | |
28269 | } | |
28270 | } | |
d14a1e28 RD |
28271 | if (obj2) { |
28272 | { | |
28273 | arg3 = &temp3; | |
28274 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28275 | } | |
28276 | } | |
28277 | { | |
28278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28279 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
28280 | ||
28281 | wxPyEndAllowThreads(__tstate); | |
28282 | if (PyErr_Occurred()) SWIG_fail; | |
28283 | } | |
28284 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpEvent, 1); | |
28285 | return resultobj; | |
28286 | fail: | |
28287 | return NULL; | |
28288 | } | |
28289 | ||
28290 | ||
28291 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28292 | PyObject *resultobj; | |
28293 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28294 | wxPoint *result; | |
28295 | PyObject * obj0 = 0 ; | |
28296 | char *kwnames[] = { | |
28297 | (char *) "self", NULL | |
28298 | }; | |
28299 | ||
28300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
28301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28302 | { | |
28303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28304 | { | |
28305 | wxPoint const &_result_ref = ((wxHelpEvent const *)arg1)->GetPosition(); | |
28306 | result = (wxPoint *) &_result_ref; | |
28307 | } | |
28308 | ||
28309 | wxPyEndAllowThreads(__tstate); | |
28310 | if (PyErr_Occurred()) SWIG_fail; | |
28311 | } | |
28312 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
28313 | return resultobj; | |
28314 | fail: | |
28315 | return NULL; | |
28316 | } | |
28317 | ||
28318 | ||
28319 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28320 | PyObject *resultobj; | |
28321 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28322 | wxPoint *arg2 = 0 ; | |
28323 | wxPoint temp2 ; | |
28324 | PyObject * obj0 = 0 ; | |
28325 | PyObject * obj1 = 0 ; | |
28326 | char *kwnames[] = { | |
28327 | (char *) "self",(char *) "pos", NULL | |
28328 | }; | |
28329 | ||
28330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
28331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28332 | { | |
28333 | arg2 = &temp2; | |
28334 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28335 | } | |
28336 | { | |
28337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28338 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
28339 | ||
28340 | wxPyEndAllowThreads(__tstate); | |
28341 | if (PyErr_Occurred()) SWIG_fail; | |
28342 | } | |
28343 | Py_INCREF(Py_None); resultobj = Py_None; | |
28344 | return resultobj; | |
28345 | fail: | |
28346 | return NULL; | |
28347 | } | |
28348 | ||
28349 | ||
28350 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28351 | PyObject *resultobj; | |
28352 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28353 | wxString *result; | |
28354 | PyObject * obj0 = 0 ; | |
28355 | char *kwnames[] = { | |
28356 | (char *) "self", NULL | |
28357 | }; | |
28358 | ||
28359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
28360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28361 | { | |
28362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28363 | { | |
28364 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
28365 | result = (wxString *) &_result_ref; | |
28366 | } | |
28367 | ||
28368 | wxPyEndAllowThreads(__tstate); | |
28369 | if (PyErr_Occurred()) SWIG_fail; | |
28370 | } | |
f0983263 RD |
28371 | { |
28372 | #if wxUSE_UNICODE | |
28373 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28374 | #else | |
28375 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28376 | #endif | |
28377 | } | |
d14a1e28 RD |
28378 | return resultobj; |
28379 | fail: | |
28380 | return NULL; | |
28381 | } | |
28382 | ||
28383 | ||
28384 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28385 | PyObject *resultobj; | |
28386 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28387 | wxString *arg2 = 0 ; | |
423f194a | 28388 | bool temp2 = False ; |
d14a1e28 RD |
28389 | PyObject * obj0 = 0 ; |
28390 | PyObject * obj1 = 0 ; | |
28391 | char *kwnames[] = { | |
28392 | (char *) "self",(char *) "link", NULL | |
28393 | }; | |
28394 | ||
28395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
28396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28397 | { | |
28398 | arg2 = wxString_in_helper(obj1); | |
28399 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28400 | temp2 = True; |
d14a1e28 RD |
28401 | } |
28402 | { | |
28403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28404 | (arg1)->SetLink((wxString const &)*arg2); | |
28405 | ||
28406 | wxPyEndAllowThreads(__tstate); | |
28407 | if (PyErr_Occurred()) SWIG_fail; | |
28408 | } | |
28409 | Py_INCREF(Py_None); resultobj = Py_None; | |
28410 | { | |
28411 | if (temp2) | |
28412 | delete arg2; | |
28413 | } | |
28414 | return resultobj; | |
28415 | fail: | |
28416 | { | |
28417 | if (temp2) | |
28418 | delete arg2; | |
28419 | } | |
28420 | return NULL; | |
28421 | } | |
28422 | ||
28423 | ||
28424 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28425 | PyObject *resultobj; | |
28426 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28427 | wxString *result; | |
28428 | PyObject * obj0 = 0 ; | |
28429 | char *kwnames[] = { | |
28430 | (char *) "self", NULL | |
28431 | }; | |
28432 | ||
28433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
28434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28435 | { | |
28436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28437 | { | |
28438 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
28439 | result = (wxString *) &_result_ref; | |
28440 | } | |
28441 | ||
28442 | wxPyEndAllowThreads(__tstate); | |
28443 | if (PyErr_Occurred()) SWIG_fail; | |
28444 | } | |
f0983263 RD |
28445 | { |
28446 | #if wxUSE_UNICODE | |
28447 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28448 | #else | |
28449 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28450 | #endif | |
28451 | } | |
d14a1e28 RD |
28452 | return resultobj; |
28453 | fail: | |
28454 | return NULL; | |
28455 | } | |
28456 | ||
28457 | ||
28458 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28459 | PyObject *resultobj; | |
28460 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28461 | wxString *arg2 = 0 ; | |
423f194a | 28462 | bool temp2 = False ; |
d14a1e28 RD |
28463 | PyObject * obj0 = 0 ; |
28464 | PyObject * obj1 = 0 ; | |
28465 | char *kwnames[] = { | |
28466 | (char *) "self",(char *) "target", NULL | |
28467 | }; | |
28468 | ||
28469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
28470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28471 | { | |
28472 | arg2 = wxString_in_helper(obj1); | |
28473 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28474 | temp2 = True; |
d14a1e28 RD |
28475 | } |
28476 | { | |
28477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28478 | (arg1)->SetTarget((wxString const &)*arg2); | |
28479 | ||
28480 | wxPyEndAllowThreads(__tstate); | |
28481 | if (PyErr_Occurred()) SWIG_fail; | |
28482 | } | |
28483 | Py_INCREF(Py_None); resultobj = Py_None; | |
28484 | { | |
28485 | if (temp2) | |
28486 | delete arg2; | |
28487 | } | |
28488 | return resultobj; | |
28489 | fail: | |
28490 | { | |
28491 | if (temp2) | |
28492 | delete arg2; | |
28493 | } | |
28494 | return NULL; | |
28495 | } | |
28496 | ||
28497 | ||
28498 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
28499 | PyObject *obj; | |
28500 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28501 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
28502 | Py_INCREF(obj); | |
28503 | return Py_BuildValue((char *)""); | |
28504 | } | |
28505 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28506 | PyObject *resultobj; | |
28507 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 28508 | bool arg2 = (bool) True ; |
d14a1e28 RD |
28509 | wxContextHelp *result; |
28510 | PyObject * obj0 = 0 ; | |
28511 | PyObject * obj1 = 0 ; | |
28512 | char *kwnames[] = { | |
28513 | (char *) "window",(char *) "doNow", NULL | |
28514 | }; | |
28515 | ||
28516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
28517 | if (obj0) { | |
28518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28519 | } | |
28520 | if (obj1) { | |
83448d71 | 28521 | { |
8edf1c75 | 28522 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
28523 | if (PyErr_Occurred()) SWIG_fail; |
28524 | } | |
d14a1e28 RD |
28525 | } |
28526 | { | |
28527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28528 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
28529 | ||
28530 | wxPyEndAllowThreads(__tstate); | |
28531 | if (PyErr_Occurred()) SWIG_fail; | |
28532 | } | |
28533 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelp, 1); | |
28534 | return resultobj; | |
28535 | fail: | |
28536 | return NULL; | |
28537 | } | |
28538 | ||
28539 | ||
28540 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28541 | PyObject *resultobj; | |
28542 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28543 | PyObject * obj0 = 0 ; | |
28544 | char *kwnames[] = { | |
28545 | (char *) "self", NULL | |
28546 | }; | |
28547 | ||
28548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
28549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28550 | { | |
28551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28552 | delete arg1; | |
28553 | ||
28554 | wxPyEndAllowThreads(__tstate); | |
28555 | if (PyErr_Occurred()) SWIG_fail; | |
28556 | } | |
28557 | Py_INCREF(Py_None); resultobj = Py_None; | |
28558 | return resultobj; | |
28559 | fail: | |
28560 | return NULL; | |
28561 | } | |
28562 | ||
28563 | ||
28564 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28565 | PyObject *resultobj; | |
28566 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28567 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28568 | bool result; | |
28569 | PyObject * obj0 = 0 ; | |
28570 | PyObject * obj1 = 0 ; | |
28571 | char *kwnames[] = { | |
28572 | (char *) "self",(char *) "window", NULL | |
28573 | }; | |
28574 | ||
28575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
28576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28577 | if (obj1) { | |
28578 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28579 | } | |
28580 | { | |
28581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28582 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
28583 | ||
28584 | wxPyEndAllowThreads(__tstate); | |
28585 | if (PyErr_Occurred()) SWIG_fail; | |
28586 | } | |
4e760a36 | 28587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28588 | return resultobj; |
28589 | fail: | |
28590 | return NULL; | |
28591 | } | |
28592 | ||
28593 | ||
28594 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28595 | PyObject *resultobj; | |
28596 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
28597 | bool result; | |
28598 | PyObject * obj0 = 0 ; | |
28599 | char *kwnames[] = { | |
28600 | (char *) "self", NULL | |
28601 | }; | |
28602 | ||
28603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
28604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28605 | { | |
28606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28607 | result = (bool)(arg1)->EndContextHelp(); | |
28608 | ||
28609 | wxPyEndAllowThreads(__tstate); | |
28610 | if (PyErr_Occurred()) SWIG_fail; | |
28611 | } | |
4e760a36 | 28612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28613 | return resultobj; |
28614 | fail: | |
28615 | return NULL; | |
28616 | } | |
28617 | ||
28618 | ||
28619 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
28620 | PyObject *obj; | |
28621 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28622 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
28623 | Py_INCREF(obj); | |
28624 | return Py_BuildValue((char *)""); | |
28625 | } | |
28626 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28627 | PyObject *resultobj; | |
28628 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 28629 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
28630 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28631 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28632 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28633 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28634 | long arg5 = (long) wxBU_AUTODRAW ; | |
28635 | wxContextHelpButton *result; | |
28636 | wxPoint temp3 ; | |
28637 | wxSize temp4 ; | |
28638 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28639 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28640 | PyObject * obj2 = 0 ; |
28641 | PyObject * obj3 = 0 ; | |
8edf1c75 | 28642 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28643 | char *kwnames[] = { |
28644 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28645 | }; | |
28646 | ||
8edf1c75 | 28647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 28648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28649 | if (obj1) { |
28650 | { | |
28651 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28652 | if (PyErr_Occurred()) SWIG_fail; | |
28653 | } | |
28654 | } | |
d14a1e28 RD |
28655 | if (obj2) { |
28656 | { | |
28657 | arg3 = &temp3; | |
28658 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28659 | } | |
28660 | } | |
28661 | if (obj3) { | |
28662 | { | |
28663 | arg4 = &temp4; | |
28664 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28665 | } | |
28666 | } | |
8edf1c75 RD |
28667 | if (obj4) { |
28668 | { | |
28669 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
28670 | if (PyErr_Occurred()) SWIG_fail; | |
28671 | } | |
28672 | } | |
d14a1e28 RD |
28673 | { |
28674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28675 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28676 | ||
28677 | wxPyEndAllowThreads(__tstate); | |
28678 | if (PyErr_Occurred()) SWIG_fail; | |
28679 | } | |
28680 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelpButton, 1); | |
28681 | return resultobj; | |
28682 | fail: | |
28683 | return NULL; | |
28684 | } | |
28685 | ||
28686 | ||
28687 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
28688 | PyObject *obj; | |
28689 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28690 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
28691 | Py_INCREF(obj); | |
28692 | return Py_BuildValue((char *)""); | |
28693 | } | |
28694 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28695 | PyObject *resultobj; | |
28696 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28697 | wxHelpProvider *result; | |
28698 | PyObject * obj0 = 0 ; | |
28699 | char *kwnames[] = { | |
28700 | (char *) "helpProvider", NULL | |
28701 | }; | |
28702 | ||
28703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
28704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28705 | { | |
28706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28707 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
28708 | ||
28709 | wxPyEndAllowThreads(__tstate); | |
28710 | if (PyErr_Occurred()) SWIG_fail; | |
28711 | } | |
28712 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
28713 | return resultobj; | |
28714 | fail: | |
28715 | return NULL; | |
28716 | } | |
28717 | ||
28718 | ||
28719 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28720 | PyObject *resultobj; | |
28721 | wxHelpProvider *result; | |
28722 | char *kwnames[] = { | |
28723 | NULL | |
28724 | }; | |
28725 | ||
28726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
28727 | { | |
28728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28729 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
28730 | ||
28731 | wxPyEndAllowThreads(__tstate); | |
28732 | if (PyErr_Occurred()) SWIG_fail; | |
28733 | } | |
28734 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
28735 | return resultobj; | |
28736 | fail: | |
28737 | return NULL; | |
28738 | } | |
28739 | ||
28740 | ||
28741 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28742 | PyObject *resultobj; | |
28743 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28744 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28745 | wxString result; | |
28746 | PyObject * obj0 = 0 ; | |
28747 | PyObject * obj1 = 0 ; | |
28748 | char *kwnames[] = { | |
28749 | (char *) "self",(char *) "window", NULL | |
28750 | }; | |
28751 | ||
28752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
28753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28754 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28755 | { | |
28756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28757 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
28758 | ||
28759 | wxPyEndAllowThreads(__tstate); | |
28760 | if (PyErr_Occurred()) SWIG_fail; | |
28761 | } | |
28762 | { | |
28763 | #if wxUSE_UNICODE | |
28764 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28765 | #else | |
28766 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28767 | #endif | |
28768 | } | |
28769 | return resultobj; | |
28770 | fail: | |
28771 | return NULL; | |
28772 | } | |
28773 | ||
28774 | ||
28775 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28776 | PyObject *resultobj; | |
28777 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28778 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28779 | bool result; | |
28780 | PyObject * obj0 = 0 ; | |
28781 | PyObject * obj1 = 0 ; | |
28782 | char *kwnames[] = { | |
28783 | (char *) "self",(char *) "window", NULL | |
28784 | }; | |
28785 | ||
28786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
28787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28788 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28789 | { | |
28790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28791 | result = (bool)(arg1)->ShowHelp(arg2); | |
28792 | ||
28793 | wxPyEndAllowThreads(__tstate); | |
28794 | if (PyErr_Occurred()) SWIG_fail; | |
28795 | } | |
4e760a36 | 28796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28797 | return resultobj; |
28798 | fail: | |
28799 | return NULL; | |
28800 | } | |
28801 | ||
28802 | ||
28803 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28804 | PyObject *resultobj; | |
28805 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28806 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28807 | wxString *arg3 = 0 ; | |
423f194a | 28808 | bool temp3 = False ; |
d14a1e28 RD |
28809 | PyObject * obj0 = 0 ; |
28810 | PyObject * obj1 = 0 ; | |
28811 | PyObject * obj2 = 0 ; | |
28812 | char *kwnames[] = { | |
28813 | (char *) "self",(char *) "window",(char *) "text", NULL | |
28814 | }; | |
28815 | ||
28816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28818 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28819 | { | |
28820 | arg3 = wxString_in_helper(obj2); | |
28821 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28822 | temp3 = True; |
d14a1e28 RD |
28823 | } |
28824 | { | |
28825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28826 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28827 | ||
28828 | wxPyEndAllowThreads(__tstate); | |
28829 | if (PyErr_Occurred()) SWIG_fail; | |
28830 | } | |
28831 | Py_INCREF(Py_None); resultobj = Py_None; | |
28832 | { | |
28833 | if (temp3) | |
28834 | delete arg3; | |
28835 | } | |
28836 | return resultobj; | |
28837 | fail: | |
28838 | { | |
28839 | if (temp3) | |
28840 | delete arg3; | |
28841 | } | |
28842 | return NULL; | |
28843 | } | |
28844 | ||
28845 | ||
28846 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28847 | PyObject *resultobj; | |
28848 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
423f194a | 28849 | int arg2 ; |
d14a1e28 | 28850 | wxString *arg3 = 0 ; |
423f194a | 28851 | bool temp3 = False ; |
d14a1e28 | 28852 | PyObject * obj0 = 0 ; |
8edf1c75 | 28853 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28854 | PyObject * obj2 = 0 ; |
28855 | char *kwnames[] = { | |
28856 | (char *) "self",(char *) "id",(char *) "text", NULL | |
28857 | }; | |
28858 | ||
8edf1c75 | 28859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28861 | { |
28862 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28863 | if (PyErr_Occurred()) SWIG_fail; | |
28864 | } | |
d14a1e28 RD |
28865 | { |
28866 | arg3 = wxString_in_helper(obj2); | |
28867 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28868 | temp3 = True; |
d14a1e28 RD |
28869 | } |
28870 | { | |
28871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28872 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28873 | ||
28874 | wxPyEndAllowThreads(__tstate); | |
28875 | if (PyErr_Occurred()) SWIG_fail; | |
28876 | } | |
28877 | Py_INCREF(Py_None); resultobj = Py_None; | |
28878 | { | |
28879 | if (temp3) | |
28880 | delete arg3; | |
28881 | } | |
28882 | return resultobj; | |
28883 | fail: | |
28884 | { | |
28885 | if (temp3) | |
28886 | delete arg3; | |
28887 | } | |
28888 | return NULL; | |
28889 | } | |
28890 | ||
28891 | ||
28892 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28893 | PyObject *resultobj; | |
28894 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28895 | PyObject * obj0 = 0 ; | |
28896 | char *kwnames[] = { | |
28897 | (char *) "self", NULL | |
28898 | }; | |
28899 | ||
28900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
28901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28902 | { | |
28903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28904 | wxHelpProvider_Destroy(arg1); | |
28905 | ||
28906 | wxPyEndAllowThreads(__tstate); | |
28907 | if (PyErr_Occurred()) SWIG_fail; | |
28908 | } | |
28909 | Py_INCREF(Py_None); resultobj = Py_None; | |
28910 | return resultobj; | |
28911 | fail: | |
28912 | return NULL; | |
28913 | } | |
28914 | ||
28915 | ||
28916 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
28917 | PyObject *obj; | |
28918 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28919 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
28920 | Py_INCREF(obj); | |
28921 | return Py_BuildValue((char *)""); | |
28922 | } | |
28923 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28924 | PyObject *resultobj; | |
28925 | wxSimpleHelpProvider *result; | |
28926 | char *kwnames[] = { | |
28927 | NULL | |
28928 | }; | |
28929 | ||
28930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
28931 | { | |
28932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28933 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
28934 | ||
28935 | wxPyEndAllowThreads(__tstate); | |
28936 | if (PyErr_Occurred()) SWIG_fail; | |
28937 | } | |
28938 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
28939 | return resultobj; | |
28940 | fail: | |
28941 | return NULL; | |
28942 | } | |
28943 | ||
28944 | ||
28945 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
28946 | PyObject *obj; | |
28947 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28948 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
28949 | Py_INCREF(obj); | |
28950 | return Py_BuildValue((char *)""); | |
28951 | } | |
423f194a RD |
28952 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
28953 | PyObject *resultobj; | |
28954 | wxBitmap *arg1 = 0 ; | |
28955 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28956 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28957 | wxGenericDragImage *result; | |
28958 | PyObject * obj0 = 0 ; | |
28959 | PyObject * obj1 = 0 ; | |
28960 | char *kwnames[] = { | |
28961 | (char *) "image",(char *) "cursor", NULL | |
28962 | }; | |
28963 | ||
28964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
28965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28966 | if (arg1 == NULL) { | |
28967 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28968 | } | |
28969 | if (obj1) { | |
28970 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28971 | if (arg2 == NULL) { | |
28972 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28973 | } | |
28974 | } | |
28975 | { | |
28976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28977 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
28978 | ||
28979 | wxPyEndAllowThreads(__tstate); | |
28980 | if (PyErr_Occurred()) SWIG_fail; | |
28981 | } | |
28982 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28983 | return resultobj; | |
28984 | fail: | |
28985 | return NULL; | |
28986 | } | |
28987 | ||
28988 | ||
28989 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28990 | PyObject *resultobj; | |
28991 | wxIcon *arg1 = 0 ; | |
28992 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28993 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28994 | wxGenericDragImage *result; | |
28995 | PyObject * obj0 = 0 ; | |
28996 | PyObject * obj1 = 0 ; | |
28997 | char *kwnames[] = { | |
28998 | (char *) "image",(char *) "cursor", NULL | |
28999 | }; | |
29000 | ||
29001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
29002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29003 | if (arg1 == NULL) { | |
29004 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29005 | } | |
29006 | if (obj1) { | |
29007 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29008 | if (arg2 == NULL) { | |
29009 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29010 | } | |
29011 | } | |
29012 | { | |
29013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29014 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
29015 | ||
29016 | wxPyEndAllowThreads(__tstate); | |
29017 | if (PyErr_Occurred()) SWIG_fail; | |
29018 | } | |
29019 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
29020 | return resultobj; | |
29021 | fail: | |
29022 | return NULL; | |
29023 | } | |
29024 | ||
29025 | ||
29026 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29027 | PyObject *resultobj; | |
29028 | wxString *arg1 = 0 ; | |
29029 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29030 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29031 | wxGenericDragImage *result; | |
29032 | bool temp1 = False ; | |
29033 | PyObject * obj0 = 0 ; | |
29034 | PyObject * obj1 = 0 ; | |
29035 | char *kwnames[] = { | |
29036 | (char *) "str",(char *) "cursor", NULL | |
29037 | }; | |
29038 | ||
29039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
29040 | { | |
29041 | arg1 = wxString_in_helper(obj0); | |
29042 | if (arg1 == NULL) SWIG_fail; | |
29043 | temp1 = True; | |
29044 | } | |
29045 | if (obj1) { | |
29046 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29047 | if (arg2 == NULL) { | |
29048 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29049 | } | |
29050 | } | |
29051 | { | |
29052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29053 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
29054 | ||
29055 | wxPyEndAllowThreads(__tstate); | |
29056 | if (PyErr_Occurred()) SWIG_fail; | |
29057 | } | |
29058 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
29059 | { | |
29060 | if (temp1) | |
29061 | delete arg1; | |
29062 | } | |
29063 | return resultobj; | |
29064 | fail: | |
29065 | { | |
29066 | if (temp1) | |
29067 | delete arg1; | |
29068 | } | |
29069 | return NULL; | |
29070 | } | |
29071 | ||
29072 | ||
29073 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29074 | PyObject *resultobj; | |
29075 | wxPyTreeCtrl *arg1 = 0 ; | |
29076 | wxTreeItemId *arg2 = 0 ; | |
29077 | wxGenericDragImage *result; | |
29078 | PyObject * obj0 = 0 ; | |
29079 | PyObject * obj1 = 0 ; | |
29080 | char *kwnames[] = { | |
29081 | (char *) "treeCtrl",(char *) "id", NULL | |
29082 | }; | |
29083 | ||
29084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
29085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29086 | if (arg1 == NULL) { | |
29087 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29088 | } | |
29089 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29090 | if (arg2 == NULL) { | |
29091 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29092 | } | |
29093 | { | |
29094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29095 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
29096 | ||
29097 | wxPyEndAllowThreads(__tstate); | |
29098 | if (PyErr_Occurred()) SWIG_fail; | |
29099 | } | |
29100 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
29101 | return resultobj; | |
29102 | fail: | |
29103 | return NULL; | |
29104 | } | |
29105 | ||
29106 | ||
29107 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29108 | PyObject *resultobj; | |
29109 | wxPyListCtrl *arg1 = 0 ; | |
29110 | long arg2 ; | |
29111 | wxGenericDragImage *result; | |
29112 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29113 | PyObject * obj1 = 0 ; |
423f194a RD |
29114 | char *kwnames[] = { |
29115 | (char *) "listCtrl",(char *) "id", NULL | |
29116 | }; | |
29117 | ||
8edf1c75 | 29118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
423f194a RD |
29119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
29120 | if (arg1 == NULL) { | |
29121 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29122 | } | |
8edf1c75 RD |
29123 | { |
29124 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
29125 | if (PyErr_Occurred()) SWIG_fail; | |
29126 | } | |
423f194a RD |
29127 | { |
29128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29129 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
29130 | ||
29131 | wxPyEndAllowThreads(__tstate); | |
29132 | if (PyErr_Occurred()) SWIG_fail; | |
29133 | } | |
29134 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
29135 | return resultobj; | |
29136 | fail: | |
29137 | return NULL; | |
29138 | } | |
29139 | ||
29140 | ||
29141 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29142 | PyObject *resultobj; | |
29143 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29144 | PyObject * obj0 = 0 ; | |
29145 | char *kwnames[] = { | |
29146 | (char *) "self", NULL | |
29147 | }; | |
29148 | ||
29149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
29150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29151 | { | |
29152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29153 | delete arg1; | |
29154 | ||
29155 | wxPyEndAllowThreads(__tstate); | |
29156 | if (PyErr_Occurred()) SWIG_fail; | |
29157 | } | |
29158 | Py_INCREF(Py_None); resultobj = Py_None; | |
29159 | return resultobj; | |
29160 | fail: | |
29161 | return NULL; | |
29162 | } | |
29163 | ||
29164 | ||
29165 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29166 | PyObject *resultobj; | |
29167 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29168 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
29169 | PyObject * obj0 = 0 ; | |
29170 | PyObject * obj1 = 0 ; | |
29171 | char *kwnames[] = { | |
29172 | (char *) "self",(char *) "bitmap", NULL | |
29173 | }; | |
29174 | ||
29175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
29176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29177 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29178 | { | |
29179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29180 | (arg1)->SetBackingBitmap(arg2); | |
29181 | ||
29182 | wxPyEndAllowThreads(__tstate); | |
29183 | if (PyErr_Occurred()) SWIG_fail; | |
29184 | } | |
29185 | Py_INCREF(Py_None); resultobj = Py_None; | |
29186 | return resultobj; | |
29187 | fail: | |
29188 | return NULL; | |
29189 | } | |
29190 | ||
29191 | ||
29192 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29193 | PyObject *resultobj; | |
29194 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29195 | wxPoint *arg2 = 0 ; | |
29196 | wxWindow *arg3 = (wxWindow *) 0 ; | |
29197 | bool arg4 = (bool) False ; | |
29198 | wxRect *arg5 = (wxRect *) NULL ; | |
29199 | bool result; | |
29200 | wxPoint temp2 ; | |
29201 | PyObject * obj0 = 0 ; | |
29202 | PyObject * obj1 = 0 ; | |
29203 | PyObject * obj2 = 0 ; | |
29204 | PyObject * obj3 = 0 ; | |
29205 | PyObject * obj4 = 0 ; | |
29206 | char *kwnames[] = { | |
29207 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
29208 | }; | |
29209 | ||
29210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29212 | { | |
29213 | arg2 = &temp2; | |
29214 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29215 | } | |
29216 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29217 | if (obj3) { | |
83448d71 | 29218 | { |
8edf1c75 | 29219 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
29220 | if (PyErr_Occurred()) SWIG_fail; |
29221 | } | |
423f194a RD |
29222 | } |
29223 | if (obj4) { | |
29224 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29225 | } | |
29226 | { | |
29227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29228 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
29229 | ||
29230 | wxPyEndAllowThreads(__tstate); | |
29231 | if (PyErr_Occurred()) SWIG_fail; | |
29232 | } | |
4e760a36 | 29233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29234 | return resultobj; |
29235 | fail: | |
29236 | return NULL; | |
29237 | } | |
29238 | ||
29239 | ||
29240 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29241 | PyObject *resultobj; | |
29242 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29243 | wxPoint *arg2 = 0 ; | |
29244 | wxWindow *arg3 = (wxWindow *) 0 ; | |
29245 | wxWindow *arg4 = (wxWindow *) 0 ; | |
29246 | bool result; | |
29247 | wxPoint temp2 ; | |
29248 | PyObject * obj0 = 0 ; | |
29249 | PyObject * obj1 = 0 ; | |
29250 | PyObject * obj2 = 0 ; | |
29251 | PyObject * obj3 = 0 ; | |
29252 | char *kwnames[] = { | |
29253 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
29254 | }; | |
29255 | ||
29256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29258 | { | |
29259 | arg2 = &temp2; | |
29260 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29261 | } | |
29262 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29263 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29264 | { | |
29265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29266 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
29267 | ||
29268 | wxPyEndAllowThreads(__tstate); | |
29269 | if (PyErr_Occurred()) SWIG_fail; | |
29270 | } | |
4e760a36 | 29271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29272 | return resultobj; |
29273 | fail: | |
29274 | return NULL; | |
29275 | } | |
29276 | ||
29277 | ||
29278 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29279 | PyObject *resultobj; | |
29280 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29281 | bool result; | |
29282 | PyObject * obj0 = 0 ; | |
29283 | char *kwnames[] = { | |
29284 | (char *) "self", NULL | |
29285 | }; | |
29286 | ||
29287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
29288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29289 | { | |
29290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29291 | result = (bool)(arg1)->EndDrag(); | |
29292 | ||
29293 | wxPyEndAllowThreads(__tstate); | |
29294 | if (PyErr_Occurred()) SWIG_fail; | |
29295 | } | |
4e760a36 | 29296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29297 | return resultobj; |
29298 | fail: | |
29299 | return NULL; | |
29300 | } | |
29301 | ||
29302 | ||
29303 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29304 | PyObject *resultobj; | |
29305 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29306 | wxPoint *arg2 = 0 ; | |
29307 | bool result; | |
29308 | wxPoint temp2 ; | |
29309 | PyObject * obj0 = 0 ; | |
29310 | PyObject * obj1 = 0 ; | |
29311 | char *kwnames[] = { | |
29312 | (char *) "self",(char *) "pt", NULL | |
29313 | }; | |
29314 | ||
29315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
29316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29317 | { | |
29318 | arg2 = &temp2; | |
29319 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29320 | } | |
29321 | { | |
29322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29323 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
29324 | ||
29325 | wxPyEndAllowThreads(__tstate); | |
29326 | if (PyErr_Occurred()) SWIG_fail; | |
29327 | } | |
4e760a36 | 29328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29329 | return resultobj; |
29330 | fail: | |
29331 | return NULL; | |
29332 | } | |
29333 | ||
29334 | ||
29335 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29336 | PyObject *resultobj; | |
29337 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29338 | bool result; | |
29339 | PyObject * obj0 = 0 ; | |
29340 | char *kwnames[] = { | |
29341 | (char *) "self", NULL | |
29342 | }; | |
29343 | ||
29344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
29345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29346 | { | |
29347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29348 | result = (bool)(arg1)->Show(); | |
29349 | ||
29350 | wxPyEndAllowThreads(__tstate); | |
29351 | if (PyErr_Occurred()) SWIG_fail; | |
29352 | } | |
4e760a36 | 29353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29354 | return resultobj; |
29355 | fail: | |
29356 | return NULL; | |
29357 | } | |
29358 | ||
29359 | ||
29360 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29361 | PyObject *resultobj; | |
29362 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29363 | bool result; | |
29364 | PyObject * obj0 = 0 ; | |
29365 | char *kwnames[] = { | |
29366 | (char *) "self", NULL | |
29367 | }; | |
29368 | ||
29369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
29370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29371 | { | |
29372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29373 | result = (bool)(arg1)->Hide(); | |
29374 | ||
29375 | wxPyEndAllowThreads(__tstate); | |
29376 | if (PyErr_Occurred()) SWIG_fail; | |
29377 | } | |
4e760a36 | 29378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29379 | return resultobj; |
29380 | fail: | |
29381 | return NULL; | |
29382 | } | |
29383 | ||
29384 | ||
29385 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29386 | PyObject *resultobj; | |
29387 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29388 | wxPoint *arg2 = 0 ; | |
29389 | wxRect result; | |
29390 | wxPoint temp2 ; | |
29391 | PyObject * obj0 = 0 ; | |
29392 | PyObject * obj1 = 0 ; | |
29393 | char *kwnames[] = { | |
29394 | (char *) "self",(char *) "pos", NULL | |
29395 | }; | |
29396 | ||
29397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
29398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29399 | { | |
29400 | arg2 = &temp2; | |
29401 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29402 | } | |
29403 | { | |
29404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29405 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
29406 | ||
29407 | wxPyEndAllowThreads(__tstate); | |
29408 | if (PyErr_Occurred()) SWIG_fail; | |
29409 | } | |
29410 | { | |
29411 | wxRect * resultptr; | |
29412 | resultptr = new wxRect((wxRect &) result); | |
29413 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
29414 | } | |
29415 | return resultobj; | |
29416 | fail: | |
29417 | return NULL; | |
29418 | } | |
29419 | ||
29420 | ||
29421 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29422 | PyObject *resultobj; | |
29423 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29424 | wxDC *arg2 = 0 ; | |
29425 | wxPoint *arg3 = 0 ; | |
29426 | bool result; | |
29427 | wxPoint temp3 ; | |
29428 | PyObject * obj0 = 0 ; | |
29429 | PyObject * obj1 = 0 ; | |
29430 | PyObject * obj2 = 0 ; | |
29431 | char *kwnames[] = { | |
29432 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
29433 | }; | |
29434 | ||
29435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29437 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29438 | if (arg2 == NULL) { | |
29439 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29440 | } | |
29441 | { | |
29442 | arg3 = &temp3; | |
29443 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29444 | } | |
29445 | { | |
29446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29447 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
29448 | ||
29449 | wxPyEndAllowThreads(__tstate); | |
29450 | if (PyErr_Occurred()) SWIG_fail; | |
29451 | } | |
4e760a36 | 29452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29453 | return resultobj; |
29454 | fail: | |
29455 | return NULL; | |
29456 | } | |
29457 | ||
29458 | ||
29459 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29460 | PyObject *resultobj; | |
29461 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29462 | wxDC *arg2 = 0 ; | |
29463 | wxMemoryDC *arg3 = 0 ; | |
29464 | wxRect *arg4 = 0 ; | |
29465 | wxRect *arg5 = 0 ; | |
29466 | bool result; | |
29467 | wxRect temp4 ; | |
29468 | wxRect temp5 ; | |
29469 | PyObject * obj0 = 0 ; | |
29470 | PyObject * obj1 = 0 ; | |
29471 | PyObject * obj2 = 0 ; | |
29472 | PyObject * obj3 = 0 ; | |
29473 | PyObject * obj4 = 0 ; | |
29474 | char *kwnames[] = { | |
29475 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
29476 | }; | |
29477 | ||
29478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29480 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29481 | if (arg2 == NULL) { | |
29482 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29483 | } | |
29484 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29485 | if (arg3 == NULL) { | |
29486 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
29487 | } | |
29488 | { | |
29489 | arg4 = &temp4; | |
29490 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
29491 | } | |
29492 | { | |
29493 | arg5 = &temp5; | |
29494 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
29495 | } | |
29496 | { | |
29497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29498 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
29499 | ||
29500 | wxPyEndAllowThreads(__tstate); | |
29501 | if (PyErr_Occurred()) SWIG_fail; | |
29502 | } | |
4e760a36 | 29503 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29504 | return resultobj; |
29505 | fail: | |
29506 | return NULL; | |
29507 | } | |
29508 | ||
29509 | ||
29510 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29511 | PyObject *resultobj; | |
29512 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29513 | wxPoint *arg2 = 0 ; | |
29514 | wxPoint *arg3 = 0 ; | |
29515 | bool arg4 ; | |
29516 | bool arg5 ; | |
29517 | bool result; | |
29518 | wxPoint temp2 ; | |
29519 | wxPoint temp3 ; | |
29520 | PyObject * obj0 = 0 ; | |
29521 | PyObject * obj1 = 0 ; | |
29522 | PyObject * obj2 = 0 ; | |
29523 | PyObject * obj3 = 0 ; | |
29524 | PyObject * obj4 = 0 ; | |
29525 | char *kwnames[] = { | |
29526 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
29527 | }; | |
29528 | ||
29529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29531 | { | |
29532 | arg2 = &temp2; | |
29533 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29534 | } | |
29535 | { | |
29536 | arg3 = &temp3; | |
29537 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29538 | } | |
83448d71 | 29539 | { |
8edf1c75 | 29540 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
29541 | if (PyErr_Occurred()) SWIG_fail; |
29542 | } | |
29543 | { | |
8edf1c75 | 29544 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
83448d71 RD |
29545 | if (PyErr_Occurred()) SWIG_fail; |
29546 | } | |
423f194a RD |
29547 | { |
29548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29549 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
29550 | ||
29551 | wxPyEndAllowThreads(__tstate); | |
29552 | if (PyErr_Occurred()) SWIG_fail; | |
29553 | } | |
4e760a36 | 29554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
423f194a RD |
29555 | return resultobj; |
29556 | fail: | |
29557 | return NULL; | |
29558 | } | |
29559 | ||
29560 | ||
29561 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
29562 | PyObject *obj; | |
29563 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29564 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
29565 | Py_INCREF(obj); | |
29566 | return Py_BuildValue((char *)""); | |
29567 | } | |
29568 | static PyMethodDef SwigMethods[] = { | |
29569 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
29570 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
29571 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
29572 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
29573 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, |
29574 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
29575 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
29576 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
29577 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29578 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
29579 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
29580 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
29581 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
29582 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
29583 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
29584 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
29585 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
29586 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29587 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
29588 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
29589 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
29590 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
29591 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
29592 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29593 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29594 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
29595 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29596 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
29597 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
29598 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
29599 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
29600 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
29601 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
29602 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
29603 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
29604 | { (char *)"Choice_GetColumns", (PyCFunction) _wrap_Choice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
29605 | { (char *)"Choice_SetColumns", (PyCFunction) _wrap_Choice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
29606 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29607 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29608 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
29609 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
29610 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
29611 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
29612 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29613 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29614 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29615 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
29616 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
29617 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
29618 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29619 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29620 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
29621 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
8a0b029b | 29622 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
29623 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
29624 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
29625 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
29626 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
29627 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
29628 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
29629 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
29630 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
29631 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29632 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29633 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29634 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29635 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29636 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
29637 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
29638 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
29639 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
29640 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
29641 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
29642 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
29643 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29644 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
29645 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
29646 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
29647 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
29648 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29649 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
29650 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
29651 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
29652 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
29653 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
29654 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
29655 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29656 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29657 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
29658 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29659 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29660 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
29661 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
29662 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
29663 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
29664 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29665 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
29666 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
29667 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
29668 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29669 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29670 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
29671 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
29672 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
29673 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29674 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
29675 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
29676 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
29677 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29678 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29679 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
0ffb2aa6 RD |
29680 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
29681 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29682 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
29683 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, |
29684 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
29685 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
29686 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29687 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
29688 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
29689 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
29690 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29691 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
29692 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
29693 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
8edf1c75 | 29694 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
29695 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, |
29696 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29697 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29698 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29699 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29700 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
29701 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29702 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29703 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
29704 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29705 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29706 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
29707 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29708 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
29709 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29710 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29711 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
29712 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29713 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29714 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29715 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
29716 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
29717 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
29718 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
29719 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
29720 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
29721 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
29722 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
29723 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29724 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29725 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29726 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29727 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29728 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29729 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
29730 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
29731 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
29732 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
29733 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
29734 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
29735 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
29736 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29737 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29738 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
29739 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
29740 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
29741 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
29742 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
29743 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
29744 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
29745 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
29746 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
29747 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
29748 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
29749 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29750 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29751 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
29752 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
29753 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
29754 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
29755 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
4e760a36 | 29756 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
423f194a | 29757 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29758 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, |
29759 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
29760 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
29761 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
29762 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
29763 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
29764 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
29765 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
29766 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
29767 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29768 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
29769 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
29770 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
29771 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29772 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
29773 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
29774 | { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
29775 | { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
29776 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
29777 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
29778 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
29779 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
29780 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
29781 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
29782 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
29783 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
29784 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
29785 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
29786 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
29787 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
29788 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
29789 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29790 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
29791 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29792 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
29793 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
29794 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
29795 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
29796 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
29797 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29798 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29799 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29800 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29801 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29802 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
29803 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
29804 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29805 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29806 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
29807 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29808 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29809 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29810 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29811 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29812 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
29813 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29814 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29815 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29816 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29817 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
eb9b6107 RD |
29818 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
29819 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29820 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29821 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
29822 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
29823 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
29824 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
29825 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29826 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29827 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29828 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29829 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
29830 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
29831 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
29832 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
29833 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
29834 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
29835 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
29836 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29837 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
29838 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
29839 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29840 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29841 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29842 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29843 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29844 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
29845 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
29846 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
29847 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
29848 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29849 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29850 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29851 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29852 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29853 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
29854 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
29855 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29856 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29857 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29858 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29859 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29860 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29861 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29862 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29863 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
29864 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
29865 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
29866 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
29867 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
29868 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29869 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
29870 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29871 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29872 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29873 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29874 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29875 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29876 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
29877 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
29878 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
29879 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29880 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29881 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29882 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29883 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29884 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29885 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29886 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29887 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29888 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29889 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
29890 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
29891 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
29892 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
29893 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
29894 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29895 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
29896 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
29897 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
29898 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29899 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29900 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29901 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29902 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
29903 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
29904 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29905 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29906 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29907 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
29908 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
29909 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29910 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29911 | { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
29912 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
29913 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29914 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
29915 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
29916 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
29917 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29918 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29919 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
29920 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29921 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
29922 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
29923 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29924 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29925 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
29926 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
29927 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
29928 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29929 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29930 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29931 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
29932 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29933 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
29934 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29935 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
29936 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
29937 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29938 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29939 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
29940 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
29941 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
29942 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
29943 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29944 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29945 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29946 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29947 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29948 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29949 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
29950 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
29951 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
29952 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29953 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29954 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29955 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29956 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29957 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
29958 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
29959 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
29960 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
29961 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
29962 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
29963 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
d03fd34d RD |
29964 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
29965 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
29966 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
29967 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
29968 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
29969 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29970 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29971 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
29972 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
29973 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
29974 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
29975 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
29976 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
29977 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
29978 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
29979 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
29980 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
29981 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
29982 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
29983 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
29984 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29985 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29986 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29987 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29988 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
29989 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29990 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
29991 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
29992 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
29993 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29994 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
29995 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
29996 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
29997 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
29998 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
29999 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
30000 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
30001 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
30002 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
30003 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
d03fd34d | 30004 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30005 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
30006 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
30007 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30008 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30009 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
30010 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
30011 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
30012 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
30013 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30014 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30015 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30016 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30017 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30018 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
30019 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30020 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30021 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30022 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30023 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
30024 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
30025 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
30026 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
30027 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30028 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
30029 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
30030 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30031 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
30032 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
30033 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
30034 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
30035 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
30036 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
30037 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
30038 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30039 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30040 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30041 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
30042 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30043 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30044 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
30045 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
30046 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
30047 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30048 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
30049 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
30050 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30051 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30052 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30053 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30054 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30055 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
30056 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
30057 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
30058 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
30059 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
30060 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
30061 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
30062 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
30063 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
30064 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
30065 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
30066 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
30067 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
30068 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
30069 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
30070 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
30071 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
30072 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
30073 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
30074 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
30075 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
30076 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
30077 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
30078 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
30079 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
30080 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
30081 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
30082 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
30083 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
30084 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
30085 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
30086 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
30087 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
30088 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
30089 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
30090 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30091 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30092 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30093 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
30094 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
30095 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30096 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
30097 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30098 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
30099 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
30100 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
30101 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
30102 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
30103 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30104 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30105 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30106 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30107 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30108 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30109 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30110 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30111 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
30112 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
30113 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
30114 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
30115 | { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
30116 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30117 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
30118 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30119 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
30120 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
30121 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30122 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30123 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30124 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30125 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30126 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
30127 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
30128 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
30129 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30130 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
30131 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30132 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30133 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30134 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30135 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
30136 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
30137 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
30138 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
30139 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30140 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30141 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
30142 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
30143 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
30144 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
30145 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
30146 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
30147 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
30148 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
30149 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
30150 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
30151 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30152 | { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30153 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30154 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
30155 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
30156 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
30157 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30158 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
30159 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30160 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
30161 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30162 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
30163 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
30164 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30165 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
30166 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30167 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30168 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30169 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30170 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
30171 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
30172 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
30173 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
30174 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
30175 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
30176 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
30177 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
30178 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
30179 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
30180 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
30181 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30182 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
30183 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
30184 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
30185 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
30186 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
30187 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
30188 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
30189 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
30190 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
30191 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
30192 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
30193 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
30194 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30195 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
30196 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30197 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
30198 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30199 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
30200 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
30201 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30202 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
30203 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
30204 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
30205 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30206 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30207 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
30208 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
30209 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
30210 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30211 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30212 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
30213 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 30214 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30215 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
30216 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30217 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30218 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30219 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30220 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
30221 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
30222 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
30223 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30224 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30225 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30226 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30227 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30228 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30229 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
30230 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30231 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30232 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30233 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30234 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
30235 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30236 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30237 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
30238 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30239 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30240 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30241 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
30242 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
30243 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
30244 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, | |
30245 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30246 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30247 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
30248 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
30249 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
30250 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
30251 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30252 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
30253 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
30254 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
30255 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30256 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
30257 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
30258 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
30259 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
30260 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
30261 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
30262 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
30263 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
30264 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
30265 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
30266 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
30267 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
30268 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
30269 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
30270 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
30271 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
30272 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
30273 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
30274 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
30275 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
30276 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
30277 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
30278 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 30279 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30280 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, |
30281 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 30282 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30283 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, |
30284 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
30285 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30286 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
30287 | { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30288 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
30289 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30290 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
30291 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
30292 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30293 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30294 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30295 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
30296 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
30297 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
30298 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
30299 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
30300 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
30301 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
30302 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
30303 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
30304 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
30305 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
30306 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
30307 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
30308 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30309 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30310 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
30311 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
30312 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
30313 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
30314 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30315 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30316 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30317 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
30318 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
30319 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
30320 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30321 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
30322 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
30323 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
30324 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
30325 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
30326 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
30327 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30328 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
30329 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
30330 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
30331 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
30332 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
30333 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
30334 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
30335 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
30336 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
30337 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
30338 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
30339 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
30340 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
30341 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30342 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30343 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
30344 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
30345 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
30346 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
30347 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
30348 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30349 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30350 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30351 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30352 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
30353 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
30354 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
30355 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
30356 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
30357 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
30358 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
30359 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
30360 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
30361 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30362 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
30363 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
30364 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
423f194a RD |
30365 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
30366 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
30367 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
30368 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
30369 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
30370 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
30371 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30372 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
30373 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
30374 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
30375 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
30376 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
30377 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
30378 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
30379 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
30380 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
30381 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
30382 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
30383 | { NULL, NULL } |
30384 | }; | |
30385 | ||
30386 | ||
30387 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
30388 | ||
30389 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
30390 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30391 | } | |
30392 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
30393 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30394 | } | |
30395 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
30396 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
30397 | } | |
30398 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
30399 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
30400 | } | |
30401 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
30402 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
30403 | } | |
30404 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
30405 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
30406 | } | |
30407 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
30408 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30409 | } | |
30410 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
30411 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
30412 | } | |
30413 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
30414 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
30415 | } | |
30416 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
30417 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
30418 | } | |
30419 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
30420 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30421 | } | |
30422 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
30423 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
30424 | } | |
30425 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
30426 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
30427 | } | |
30428 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
30429 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
30430 | } | |
30431 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
30432 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
30433 | } | |
30434 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
30435 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30436 | } | |
30437 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
30438 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
30439 | } | |
30440 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
30441 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
30442 | } | |
30443 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
30444 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
30445 | } | |
30446 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
30447 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30448 | } | |
30449 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
30450 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30451 | } | |
30452 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
30453 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
30454 | } | |
30455 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
30456 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30457 | } | |
30458 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
30459 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
30460 | } | |
30461 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
30462 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30463 | } | |
30464 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
30465 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30466 | } | |
30467 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
30468 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
30469 | } | |
30470 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
30471 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
30472 | } | |
30473 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
30474 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30475 | } | |
30476 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
30477 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30478 | } | |
30479 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
30480 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
30481 | } | |
30482 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
30483 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
30484 | } | |
30485 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
30486 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
30487 | } | |
30488 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
30489 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
30490 | } | |
30491 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
30492 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
30493 | } | |
30494 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
30495 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
30496 | } | |
30497 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
30498 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
30499 | } | |
30500 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
30501 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30502 | } | |
30503 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
30504 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30505 | } | |
30506 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
30507 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30508 | } | |
30509 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
30510 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30511 | } | |
30512 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
30513 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30514 | } | |
30515 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
30516 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
30517 | } | |
30518 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
30519 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
30520 | } | |
30521 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
30522 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30523 | } | |
30524 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
30525 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
30526 | } | |
30527 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
30528 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
30529 | } | |
30530 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
30531 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30532 | } | |
30533 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
30534 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30535 | } | |
30536 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
30537 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30538 | } | |
30539 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
30540 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
30541 | } | |
30542 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
30543 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
30544 | } | |
eb9b6107 RD |
30545 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
30546 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30547 | } | |
d14a1e28 RD |
30548 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
30549 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
30550 | } | |
30551 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
30552 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30553 | } | |
30554 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
30555 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
30556 | } | |
30557 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
30558 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
30559 | } | |
30560 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
30561 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
30562 | } | |
30563 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
30564 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30565 | } | |
30566 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
30567 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
30568 | } | |
30569 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
30570 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30571 | } | |
30572 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
30573 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
30574 | } | |
30575 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
30576 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
30577 | } | |
30578 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
30579 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
30580 | } | |
30581 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
30582 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
30583 | } | |
30584 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
30585 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
30586 | } | |
30587 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
30588 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
30589 | } | |
30590 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
30591 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
30592 | } | |
30593 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
30594 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
30595 | } | |
30596 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
30597 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
30598 | } | |
30599 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
30600 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30601 | } | |
30602 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
30603 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
30604 | } | |
30605 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
30606 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
30607 | } | |
30608 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
30609 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
30610 | } | |
30611 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
30612 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
30613 | } | |
30614 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
30615 | return (void *)((wxControl *) ((wxGauge *) x)); | |
30616 | } | |
30617 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
30618 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
30619 | } | |
30620 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
30621 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
30622 | } | |
30623 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
30624 | return (void *)((wxControl *) ((wxButton *) x)); | |
30625 | } | |
30626 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
30627 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
30628 | } | |
30629 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
30630 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30631 | } | |
30632 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
30633 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
30634 | } | |
30635 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
30636 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
30637 | } | |
30638 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
30639 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
30640 | } | |
30641 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
30642 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
30643 | } | |
30644 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
30645 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
30646 | } | |
30647 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
30648 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
30649 | } | |
30650 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
30651 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
30652 | } | |
30653 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
30654 | return (void *)((wxControl *) ((wxSlider *) x)); | |
30655 | } | |
30656 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
30657 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
30658 | } | |
30659 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
30660 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
30661 | } | |
30662 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
30663 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
30664 | } | |
30665 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
30666 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
30667 | } | |
30668 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
30669 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
30670 | } | |
30671 | static void *_p_wxComboBoxTo_p_wxChoice(void *x) { | |
30672 | return (void *)((wxChoice *) ((wxComboBox *) x)); | |
30673 | } | |
30674 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
30675 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30676 | } | |
30677 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
30678 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30679 | } | |
30680 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
30681 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30682 | } | |
30683 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
30684 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
30685 | } | |
eb9b6107 RD |
30686 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
30687 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30688 | } | |
d14a1e28 RD |
30689 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
30690 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30691 | } | |
30692 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
30693 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30694 | } | |
30695 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
30696 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
30697 | } | |
30698 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
30699 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
30700 | } | |
30701 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
30702 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
30703 | } | |
30704 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
30705 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
30706 | } | |
30707 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
30708 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30709 | } | |
30710 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
30711 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
30712 | } | |
30713 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
30714 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
30715 | } | |
30716 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
30717 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
30718 | } | |
30719 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
30720 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
30721 | } | |
30722 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
30723 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
30724 | } | |
30725 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
30726 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
30727 | } | |
30728 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
30729 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
30730 | } | |
30731 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
30732 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
30733 | } | |
30734 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
30735 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30736 | } | |
30737 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
30738 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
30739 | } | |
30740 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
30741 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
30742 | } | |
30743 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
30744 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
30745 | } | |
30746 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
30747 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
30748 | } | |
30749 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
30750 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30751 | } | |
30752 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
30753 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
30754 | } | |
30755 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
30756 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
30757 | } | |
30758 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
30759 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30760 | } | |
30761 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
30762 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
30763 | } | |
30764 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
30765 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
30766 | } | |
30767 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
30768 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
30769 | } | |
30770 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
30771 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30772 | } | |
30773 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
30774 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30775 | } | |
30776 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
30777 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30778 | } | |
30779 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
30780 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30781 | } | |
30782 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
30783 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
30784 | } | |
30785 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
30786 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30787 | } | |
30788 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
30789 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
30790 | } | |
30791 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
30792 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
30793 | } | |
30794 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
30795 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
30796 | } | |
30797 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
30798 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
30799 | } | |
30800 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
30801 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
30802 | } | |
30803 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
30804 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
30805 | } | |
30806 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
30807 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30808 | } | |
30809 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
30810 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30811 | } | |
30812 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
30813 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
30814 | } | |
30815 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
30816 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
30817 | } | |
30818 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
30819 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
30820 | } | |
30821 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
30822 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
30823 | } | |
30824 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
30825 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
30826 | } | |
30827 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
30828 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30829 | } | |
30830 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
30831 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30832 | } | |
30833 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
30834 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
30835 | } | |
30836 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
30837 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
30838 | } | |
30839 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
30840 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
30841 | } | |
30842 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
30843 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
30844 | } | |
30845 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
30846 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
30847 | } | |
30848 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
30849 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
30850 | } | |
30851 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
30852 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30853 | } | |
30854 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
30855 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30856 | } | |
30857 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
30858 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
30859 | } | |
30860 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
30861 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
30862 | } | |
30863 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
30864 | return (void *)((wxObject *) ((wxSizer *) x)); | |
30865 | } | |
30866 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
30867 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
30868 | } | |
30869 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
30870 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
30871 | } | |
30872 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
30873 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
30874 | } | |
30875 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
30876 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30877 | } | |
30878 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
30879 | return (void *)((wxObject *) ((wxEvent *) x)); | |
30880 | } | |
30881 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
30882 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30883 | } | |
30884 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
30885 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
30886 | } | |
30887 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
30888 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
30889 | } | |
30890 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
30891 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
30892 | } | |
30893 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
30894 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
30895 | } | |
30896 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
30897 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30898 | } | |
30899 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
30900 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
30901 | } | |
30902 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
30903 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
30904 | } | |
30905 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
30906 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30907 | } | |
30908 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
30909 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30910 | } | |
30911 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
30912 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30913 | } | |
30914 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
30915 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30916 | } | |
30917 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
30918 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
30919 | } | |
30920 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
30921 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
30922 | } | |
30923 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
30924 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
30925 | } | |
30926 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
30927 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
30928 | } | |
30929 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
30930 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
30931 | } | |
30932 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
30933 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
30934 | } | |
30935 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
30936 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
30937 | } | |
30938 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
30939 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
30940 | } | |
30941 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
30942 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30943 | } | |
30944 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
30945 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
30946 | } | |
30947 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
30948 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
30949 | } | |
30950 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
30951 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30952 | } | |
30953 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
30954 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
30955 | } | |
30956 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
30957 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30958 | } | |
30959 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
30960 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
30961 | } | |
30962 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
30963 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30964 | } | |
30965 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
30966 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30967 | } | |
30968 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
30969 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
30970 | } | |
30971 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
30972 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
30973 | } | |
30974 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
30975 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
30976 | } | |
30977 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
30978 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
30979 | } | |
30980 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
30981 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
30982 | } | |
30983 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
30984 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30985 | } | |
30986 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
30987 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30988 | } | |
30989 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
30990 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
30991 | } | |
30992 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
30993 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
30994 | } | |
30995 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
30996 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
30997 | } | |
30998 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
30999 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
31000 | } | |
31001 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
31002 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
31003 | } | |
31004 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
31005 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
31006 | } | |
31007 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
31008 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
31009 | } | |
31010 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
31011 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
31012 | } | |
31013 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
31014 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
31015 | } | |
31016 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
31017 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
31018 | } | |
31019 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
31020 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
31021 | } | |
31022 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
31023 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
31024 | } | |
31025 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
31026 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
31027 | } | |
31028 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
31029 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
31030 | } | |
31031 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
31032 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
31033 | } | |
31034 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
31035 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
31036 | } | |
31037 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
31038 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
31039 | } | |
31040 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
31041 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
31042 | } | |
31043 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
31044 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
31045 | } | |
31046 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
31047 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
31048 | } | |
31049 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
31050 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
31051 | } | |
31052 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
31053 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31054 | } | |
31055 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
31056 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31057 | } | |
31058 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
31059 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
31060 | } | |
d14a1e28 RD |
31061 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
31062 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
31063 | } | |
41f1cec7 RD |
31064 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
31065 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31066 | } | |
d14a1e28 RD |
31067 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
31068 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
31069 | } | |
31070 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
31071 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31072 | } | |
41f1cec7 RD |
31073 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
31074 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
31075 | } | |
d14a1e28 RD |
31076 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
31077 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
31078 | } | |
31079 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
31080 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
31081 | } | |
31082 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
31083 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31084 | } | |
31085 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
31086 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
31087 | } | |
31088 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
31089 | return (void *)((wxObject *) ((wxListItem *) x)); | |
31090 | } | |
31091 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
31092 | return (void *)((wxObject *) ((wxImage *) x)); | |
31093 | } | |
31094 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
31095 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
31096 | } | |
31097 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
31098 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
31099 | } | |
eb9b6107 RD |
31100 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
31101 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31102 | } | |
423f194a RD |
31103 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
31104 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
31105 | } | |
d14a1e28 RD |
31106 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
31107 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
31108 | } | |
31109 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
31110 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31111 | } | |
31112 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
31113 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31114 | } | |
31115 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
31116 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31117 | } | |
31118 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
31119 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31120 | } | |
31121 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
31122 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
31123 | } | |
31124 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
31125 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
31126 | } | |
31127 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
31128 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
31129 | } | |
31130 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
31131 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
31132 | } | |
31133 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
31134 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
31135 | } | |
31136 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
31137 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31138 | } | |
31139 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
31140 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
31141 | } | |
31142 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
31143 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
31144 | } | |
31145 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
31146 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
31147 | } | |
31148 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
31149 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
31150 | } | |
31151 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
31152 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
31153 | } | |
31154 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
31155 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31156 | } | |
31157 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
31158 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31159 | } | |
31160 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
31161 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
31162 | } | |
31163 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
31164 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
31165 | } | |
31166 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
31167 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
31168 | } | |
31169 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
31170 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
31171 | } | |
31172 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
31173 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31174 | } | |
31175 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
31176 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31177 | } | |
31178 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
31179 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
31180 | } | |
31181 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
31182 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31183 | } | |
31184 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
31185 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
31186 | } | |
31187 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
31188 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
31189 | } | |
31190 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
31191 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
31192 | } | |
31193 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
31194 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
31195 | } | |
31196 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
31197 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
31198 | } | |
31199 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
31200 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31201 | } | |
31202 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
31203 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
31204 | } | |
31205 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
31206 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
31207 | } | |
31208 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
31209 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
31210 | } | |
31211 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
31212 | return (void *)((wxWindow *) ((wxControl *) x)); | |
31213 | } | |
31214 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
31215 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
31216 | } | |
31217 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
31218 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31219 | } | |
31220 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
31221 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
31222 | } | |
31223 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
31224 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31225 | } | |
31226 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
31227 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
31228 | } | |
31229 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
31230 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
31231 | } | |
31232 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
31233 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
31234 | } | |
31235 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
31236 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
31237 | } | |
31238 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
31239 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
31240 | } | |
31241 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
31242 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31243 | } | |
31244 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
31245 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
31246 | } | |
31247 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
31248 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
31249 | } | |
31250 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
31251 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
31252 | } | |
31253 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
31254 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31255 | } | |
31256 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
31257 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31258 | } | |
31259 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
31260 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31261 | } | |
31262 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
31263 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31264 | } | |
31265 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
31266 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31267 | } | |
31268 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
31269 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
31270 | } | |
31271 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
31272 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
31273 | } | |
31274 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
31275 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
31276 | } | |
31277 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
31278 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
31279 | } | |
31280 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
31281 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
31282 | } | |
31283 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
31284 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
31285 | } | |
31286 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
31287 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
31288 | } | |
31289 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
31290 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31291 | } | |
31292 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
31293 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31294 | } | |
31295 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
31296 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
31297 | } | |
31298 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
31299 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31300 | } | |
31301 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
31302 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31303 | } | |
31304 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
31305 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31306 | } | |
31307 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
31308 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
31309 | } | |
31310 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
31311 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31312 | } | |
31313 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
31314 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31315 | } | |
31316 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
31317 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31318 | } | |
31319 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
31320 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31321 | } | |
31322 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
31323 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31324 | } | |
31325 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
31326 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
31327 | } | |
31328 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
31329 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31330 | } | |
31331 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
31332 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31333 | } | |
eb9b6107 RD |
31334 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
31335 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31336 | } | |
d14a1e28 RD |
31337 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
31338 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
31339 | } | |
31340 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
31341 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31342 | } | |
31343 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
31344 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31345 | } | |
31346 | static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) { | |
31347 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x)); | |
31348 | } | |
31349 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
31350 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31351 | } | |
31352 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
31353 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
31354 | } | |
31355 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
31356 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
31357 | } | |
31358 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
31359 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
31360 | } | |
31361 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
31362 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
31363 | } | |
31364 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0},{"_p_wxTextUrlEvent"},{0}}; | |
31365 | 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}}; | |
31366 | 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 |
31367 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0},{"_p_wxCheckBox"},{0}}; |
31368 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0},{"_p_wxPyTreeCtrl"},{0}}; | |
eb9b6107 | 31369 | 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 |
31370 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0},{"_p_wxGenericDirCtrl"},{0}}; |
31371 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}}; | |
31372 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0},{"_p_wxPyTreeItemData"},{0}}; | |
31373 | 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}}; | |
31374 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0},{"_p_wxDirFilterListCtrl"},{0}}; | |
31375 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0},{"_p_wxPyListCtrl"},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl},{0}}; | |
31376 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0},{"_p_wxStaticLine"},{0}}; | |
31377 | 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}}; | |
31378 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0},{"_p_wxPyControl"},{0}}; | |
31379 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0},{"_p_wxGauge"},{0}}; | |
31380 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0},{"_p_wxToolBarBase"},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase},{0}}; | |
31381 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
31382 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0},{"_p_wxToggleButton"},{0}}; | |
31383 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0},{"_p_wxRadioButton"},{0}}; | |
31384 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxChoice},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice},{"_p_wxChoice"},{0}}; | |
423f194a | 31385 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxMemoryDC"},{0}}; |
d14a1e28 | 31386 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0},{"_p_wxListItemAttr"},{0}}; |
58203fa6 | 31387 | static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0},{"_p_void"},{0}}; |
d14a1e28 RD |
31388 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
31389 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
423f194a | 31390 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; |
d14a1e28 RD |
31391 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0},{"_p_wxListView"},{0}}; |
31392 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
31393 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
31394 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0},{"_p_wxNotebook"},{0}}; | |
eb9b6107 | 31395 | 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 |
31396 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; |
31397 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0},{"_p_wxListbook"},{0}}; | |
31398 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0},{"_p_wxStaticBitmap"},{0}}; | |
31399 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0},{"_p_wxSlider"},{0}}; | |
31400 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
31401 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}}; | |
31402 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0},{"_p_wxContextHelp"},{0}}; | |
31403 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
31404 | 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}}; | |
31405 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0},{"_p_wxListEvent"},{0}}; | |
31406 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0},{"_p_wxListBox"},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox},{0}}; | |
31407 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0},{"_p_wxCheckListBox"},{0}}; | |
31408 | 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}}; | |
31409 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0},{"_p_wxSpinButton"},{0}}; | |
31410 | 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}}; | |
31411 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0},{"_p_wxBitmapButton"},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton},{0}}; | |
31412 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
31413 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0},{"_p_wxContextHelpButton"},{0}}; | |
31414 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0},{"_p_wxRadioBox"},{0}}; | |
31415 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0},{"_p_wxScrollBar"},{0}}; | |
8edf1c75 | 31416 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
31417 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}}; |
31418 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0},{"_p_wxComboBox"},{0}}; | |
31419 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0},{"_p_wxHelpEvent"},{0}}; | |
31420 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0},{"_p_wxListItem"},{0}}; | |
31421 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0},{"_p_wxNotebookSizer"},{0}}; | |
eb9b6107 | 31422 | static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0},{"_p_wxSpinEvent"},{0}}; |
423f194a | 31423 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}}; |
d14a1e28 RD |
31424 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0},{"_p_wxSpinCtrl"},{0}}; |
31425 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
31426 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0},{"_p_wxHelpProvider"},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider},{0}}; | |
31427 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0},{"_p_wxTextAttr"},{0}}; | |
31428 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0},{"_p_wxSimpleHelpProvider"},{0}}; | |
31429 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
31430 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0},{"_p_wxListbookEvent"},{0}}; | |
31431 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0},{"_p_wxNotebookEvent"},{0}}; | |
eb9b6107 | 31432 | 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 | 31433 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; |
d14a1e28 RD |
31434 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; |
31435 | 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}}; | |
31436 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
31437 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
31438 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0},{"_p_wxTreeEvent"},{0}}; | |
31439 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
eb9b6107 | 31440 | 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 |
31441 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0},{"_p_wxStaticText"},{0}}; |
31442 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControlWithItems},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems},{"_p_wxControlWithItems"},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems},{0}}; | |
31443 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0},{"_p_wxToolBarToolBase"},{0}}; | |
31444 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
31445 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}}; | |
31446 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0},{"_p_wxBookCtrlSizer"},{0}}; | |
31447 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
31448 | ||
31449 | static swig_type_info *swig_types_initial[] = { | |
31450 | _swigt__p_wxTextUrlEvent, | |
31451 | _swigt__p_wxBookCtrlEvent, | |
31452 | _swigt__p_wxSizer, | |
d14a1e28 RD |
31453 | _swigt__p_wxCheckBox, |
31454 | _swigt__p_wxPyTreeCtrl, | |
31455 | _swigt__p_wxEvent, | |
31456 | _swigt__p_wxGenericDirCtrl, | |
31457 | _swigt__p_bool, | |
31458 | _swigt__p_wxPyTreeItemData, | |
31459 | _swigt__p_wxItemContainer, | |
31460 | _swigt__p_wxDirFilterListCtrl, | |
31461 | _swigt__p_wxPyListCtrl, | |
31462 | _swigt__p_wxStaticLine, | |
31463 | _swigt__p_wxControl, | |
31464 | _swigt__p_wxPyControl, | |
31465 | _swigt__p_wxGauge, | |
31466 | _swigt__p_wxToolBarBase, | |
31467 | _swigt__p_wxFont, | |
31468 | _swigt__p_wxToggleButton, | |
31469 | _swigt__p_wxRadioButton, | |
31470 | _swigt__p_wxChoice, | |
423f194a | 31471 | _swigt__p_wxMemoryDC, |
d14a1e28 | 31472 | _swigt__p_wxListItemAttr, |
58203fa6 | 31473 | _swigt__p_void, |
d14a1e28 RD |
31474 | _swigt__p_int, |
31475 | _swigt__p_wxSize, | |
423f194a | 31476 | _swigt__p_wxDC, |
d14a1e28 RD |
31477 | _swigt__p_wxListView, |
31478 | _swigt__p_wxIcon, | |
31479 | _swigt__p_wxTextCtrl, | |
31480 | _swigt__p_wxNotebook, | |
31481 | _swigt__p_wxNotifyEvent, | |
31482 | _swigt__p_wxArrayString, | |
31483 | _swigt__p_wxListbook, | |
31484 | _swigt__p_wxStaticBitmap, | |
31485 | _swigt__p_wxSlider, | |
31486 | _swigt__p_wxStaticBox, | |
31487 | _swigt__p_wxArrayInt, | |
31488 | _swigt__p_wxContextHelp, | |
31489 | _swigt__p_long, | |
31490 | _swigt__p_wxEvtHandler, | |
31491 | _swigt__p_wxListEvent, | |
31492 | _swigt__p_wxListBox, | |
31493 | _swigt__p_wxCheckListBox, | |
31494 | _swigt__p_wxBookCtrl, | |
31495 | _swigt__p_wxSpinButton, | |
31496 | _swigt__p_wxButton, | |
31497 | _swigt__p_wxBitmapButton, | |
31498 | _swigt__p_wxRect, | |
31499 | _swigt__p_wxContextHelpButton, | |
31500 | _swigt__p_wxRadioBox, | |
31501 | _swigt__p_wxScrollBar, | |
8edf1c75 | 31502 | _swigt__p_char, |
d14a1e28 RD |
31503 | _swigt__p_wxTreeItemId, |
31504 | _swigt__p_wxComboBox, | |
31505 | _swigt__p_wxHelpEvent, | |
31506 | _swigt__p_wxListItem, | |
31507 | _swigt__p_wxNotebookSizer, | |
eb9b6107 | 31508 | _swigt__p_wxSpinEvent, |
423f194a | 31509 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
31510 | _swigt__p_wxSpinCtrl, |
31511 | _swigt__p_wxImageList, | |
31512 | _swigt__p_wxHelpProvider, | |
31513 | _swigt__p_wxTextAttr, | |
31514 | _swigt__p_wxSimpleHelpProvider, | |
31515 | _swigt__p_wxPoint, | |
31516 | _swigt__p_wxListbookEvent, | |
31517 | _swigt__p_wxNotebookEvent, | |
31518 | _swigt__p_wxObject, | |
423f194a | 31519 | _swigt__p_wxCursor, |
d14a1e28 RD |
31520 | _swigt__p_wxKeyEvent, |
31521 | _swigt__p_wxWindow, | |
31522 | _swigt__p_wxString, | |
31523 | _swigt__p_wxBitmap, | |
31524 | _swigt__p_wxTreeEvent, | |
31525 | _swigt__p_wxMouseEvent, | |
31526 | _swigt__p_wxCommandEvent, | |
31527 | _swigt__p_wxStaticText, | |
31528 | _swigt__p_wxControlWithItems, | |
31529 | _swigt__p_wxToolBarToolBase, | |
31530 | _swigt__p_wxColour, | |
31531 | _swigt__p_wxToolBar, | |
31532 | _swigt__p_wxBookCtrlSizer, | |
31533 | _swigt__p_wxValidator, | |
31534 | 0 | |
31535 | }; | |
31536 | ||
31537 | ||
31538 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
31539 | ||
31540 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
31541 | {0}}; |
31542 | ||
31543 | #ifdef __cplusplus | |
31544 | } | |
31545 | #endif | |
31546 | ||
31547 | #ifdef __cplusplus | |
31548 | extern "C" | |
31549 | #endif | |
31550 | SWIGEXPORT(void) SWIG_init(void) { | |
31551 | static PyObject *SWIG_globals = 0; | |
31552 | static int typeinit = 0; | |
31553 | PyObject *m, *d; | |
31554 | int i; | |
31555 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
31556 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
31557 | d = PyModule_GetDict(m); | |
31558 | ||
31559 | if (!typeinit) { | |
31560 | for (i = 0; swig_types_initial[i]; i++) { | |
31561 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
31562 | } | |
31563 | typeinit = 1; | |
31564 | } | |
31565 | SWIG_InstallConstants(d,swig_const_table); | |
31566 | ||
d03fd34d RD |
31567 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
31568 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
8edf1c75 RD |
31569 | PyDict_SetItemString(d,"BU_LEFT", SWIG_PyObj_FromInt((int)wxBU_LEFT)); |
31570 | PyDict_SetItemString(d,"BU_TOP", SWIG_PyObj_FromInt((int)wxBU_TOP)); | |
31571 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_PyObj_FromInt((int)wxBU_RIGHT)); | |
31572 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_PyObj_FromInt((int)wxBU_BOTTOM)); | |
31573 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_PyObj_FromInt((int)wxBU_EXACTFIT)); | |
31574 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_PyObj_FromInt((int)wxBU_AUTODRAW)); | |
d03fd34d | 31575 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
8edf1c75 RD |
31576 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_PyObj_FromInt((int)wxCHK_2STATE)); |
31577 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_PyObj_FromInt((int)wxCHK_3STATE)); | |
31578 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_PyObj_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
31579 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_PyObj_FromInt((int)wxCHK_UNCHECKED)); | |
31580 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_PyObj_FromInt((int)wxCHK_CHECKED)); | |
31581 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_PyObj_FromInt((int)wxCHK_UNDETERMINED)); | |
d03fd34d RD |
31582 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
31583 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
31584 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
8edf1c75 RD |
31585 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_PyObj_FromInt((int)wxGA_HORIZONTAL)); |
31586 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_PyObj_FromInt((int)wxGA_VERTICAL)); | |
31587 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_PyObj_FromInt((int)wxGA_SMOOTH)); | |
31588 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_PyObj_FromInt((int)wxGA_PROGRESSBAR)); | |
d03fd34d RD |
31589 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
31590 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
31591 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
31592 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
31593 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
8edf1c75 RD |
31594 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_PyObj_FromInt((int)wxTE_NO_VSCROLL)); |
31595 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_PyObj_FromInt((int)wxTE_AUTO_SCROLL)); | |
31596 | PyDict_SetItemString(d,"TE_READONLY", SWIG_PyObj_FromInt((int)wxTE_READONLY)); | |
31597 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_PyObj_FromInt((int)wxTE_MULTILINE)); | |
31598 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_PyObj_FromInt((int)wxTE_PROCESS_TAB)); | |
31599 | PyDict_SetItemString(d,"TE_LEFT", SWIG_PyObj_FromInt((int)wxTE_LEFT)); | |
31600 | PyDict_SetItemString(d,"TE_CENTER", SWIG_PyObj_FromInt((int)wxTE_CENTER)); | |
31601 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_PyObj_FromInt((int)wxTE_RIGHT)); | |
31602 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_PyObj_FromInt((int)wxTE_CENTRE)); | |
31603 | PyDict_SetItemString(d,"TE_RICH", SWIG_PyObj_FromInt((int)wxTE_RICH)); | |
31604 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_PyObj_FromInt((int)wxTE_PROCESS_ENTER)); | |
31605 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_PyObj_FromInt((int)wxTE_PASSWORD)); | |
31606 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_PyObj_FromInt((int)wxTE_AUTO_URL)); | |
31607 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_PyObj_FromInt((int)wxTE_NOHIDESEL)); | |
31608 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_PyObj_FromInt((int)wxTE_DONTWRAP)); | |
31609 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_PyObj_FromInt((int)wxTE_LINEWRAP)); | |
31610 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_PyObj_FromInt((int)wxTE_WORDWRAP)); | |
31611 | PyDict_SetItemString(d,"TE_RICH2", SWIG_PyObj_FromInt((int)wxTE_RICH2)); | |
31612 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
31613 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
31614 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
31615 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
31616 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
31617 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
31618 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
31619 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
31620 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
31621 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
31622 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
31623 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
31624 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
31625 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT)); | |
31626 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
31627 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
31628 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
31629 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TABS)); | |
4e760a36 RD |
31630 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_PyObj_FromInt((int)wxTE_HT_UNKNOWN)); |
31631 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_PyObj_FromInt((int)wxTE_HT_BEFORE)); | |
31632 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_PyObj_FromInt((int)wxTE_HT_ON_TEXT)); | |
31633 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_PyObj_FromInt((int)wxTE_HT_BELOW)); | |
31634 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_PyObj_FromInt((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
31635 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
31636 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
31637 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
31638 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
d03fd34d RD |
31639 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
31640 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
31641 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
8edf1c75 RD |
31642 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSP_HORIZONTAL)); |
31643 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_PyObj_FromInt((int)wxSP_VERTICAL)); | |
31644 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_PyObj_FromInt((int)wxSP_ARROW_KEYS)); | |
31645 | PyDict_SetItemString(d,"SP_WRAP", SWIG_PyObj_FromInt((int)wxSP_WRAP)); | |
d14a1e28 | 31646 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
d03fd34d RD |
31647 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
31648 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
31649 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
31650 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 31651 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
d03fd34d | 31652 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
8edf1c75 RD |
31653 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_PyObj_FromInt((int)wxNB_FIXEDWIDTH)); |
31654 | PyDict_SetItemString(d,"NB_TOP", SWIG_PyObj_FromInt((int)wxNB_TOP)); | |
31655 | PyDict_SetItemString(d,"NB_LEFT", SWIG_PyObj_FromInt((int)wxNB_LEFT)); | |
31656 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_PyObj_FromInt((int)wxNB_RIGHT)); | |
31657 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_PyObj_FromInt((int)wxNB_BOTTOM)); | |
31658 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_PyObj_FromInt((int)wxNB_MULTILINE)); | |
31659 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
31660 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONICON)); | |
31661 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
31662 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
31663 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
31664 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
8edf1c75 RD |
31665 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_PyObj_FromInt((int)wxLB_DEFAULT)); |
31666 | PyDict_SetItemString(d,"LB_TOP", SWIG_PyObj_FromInt((int)wxLB_TOP)); | |
31667 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_PyObj_FromInt((int)wxLB_BOTTOM)); | |
31668 | PyDict_SetItemString(d,"LB_LEFT", SWIG_PyObj_FromInt((int)wxLB_LEFT)); | |
31669 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_PyObj_FromInt((int)wxLB_RIGHT)); | |
31670 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_PyObj_FromInt((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
31671 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
31672 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
8edf1c75 RD |
31673 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_BUTTON)); |
31674 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
31675 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
31676 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_PyObj_FromInt((int)wxTB_HORIZONTAL)); | |
31677 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_PyObj_FromInt((int)wxTB_VERTICAL)); | |
31678 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_PyObj_FromInt((int)wxTB_3DBUTTONS)); | |
31679 | PyDict_SetItemString(d,"TB_FLAT", SWIG_PyObj_FromInt((int)wxTB_FLAT)); | |
31680 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_PyObj_FromInt((int)wxTB_DOCKABLE)); | |
31681 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_PyObj_FromInt((int)wxTB_NOICONS)); | |
31682 | PyDict_SetItemString(d,"TB_TEXT", SWIG_PyObj_FromInt((int)wxTB_TEXT)); | |
31683 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_PyObj_FromInt((int)wxTB_NODIVIDER)); | |
31684 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_PyObj_FromInt((int)wxTB_NOALIGN)); | |
31685 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_PyObj_FromInt((int)wxTB_HORZ_LAYOUT)); | |
31686 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_PyObj_FromInt((int)wxTB_HORZ_TEXT)); | |
d03fd34d | 31687 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
8edf1c75 RD |
31688 | PyDict_SetItemString(d,"LC_VRULES", SWIG_PyObj_FromInt((int)wxLC_VRULES)); |
31689 | PyDict_SetItemString(d,"LC_HRULES", SWIG_PyObj_FromInt((int)wxLC_HRULES)); | |
31690 | PyDict_SetItemString(d,"LC_ICON", SWIG_PyObj_FromInt((int)wxLC_ICON)); | |
31691 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_PyObj_FromInt((int)wxLC_SMALL_ICON)); | |
31692 | PyDict_SetItemString(d,"LC_LIST", SWIG_PyObj_FromInt((int)wxLC_LIST)); | |
31693 | PyDict_SetItemString(d,"LC_REPORT", SWIG_PyObj_FromInt((int)wxLC_REPORT)); | |
31694 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLC_ALIGN_TOP)); | |
31695 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLC_ALIGN_LEFT)); | |
31696 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_PyObj_FromInt((int)wxLC_AUTOARRANGE)); | |
31697 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_PyObj_FromInt((int)wxLC_VIRTUAL)); | |
31698 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxLC_EDIT_LABELS)); | |
31699 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_HEADER)); | |
31700 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_SORT_HEADER)); | |
31701 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_PyObj_FromInt((int)wxLC_SINGLE_SEL)); | |
31702 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_ASCENDING)); | |
31703 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_DESCENDING)); | |
31704 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_PyObj_FromInt((int)wxLC_MASK_TYPE)); | |
31705 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_PyObj_FromInt((int)wxLC_MASK_ALIGN)); | |
31706 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_PyObj_FromInt((int)wxLC_MASK_SORT)); | |
31707 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_PyObj_FromInt((int)wxLIST_MASK_STATE)); | |
31708 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_PyObj_FromInt((int)wxLIST_MASK_TEXT)); | |
31709 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_PyObj_FromInt((int)wxLIST_MASK_IMAGE)); | |
31710 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_PyObj_FromInt((int)wxLIST_MASK_DATA)); | |
31711 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_PyObj_FromInt((int)wxLIST_SET_ITEM)); | |
31712 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_PyObj_FromInt((int)wxLIST_MASK_WIDTH)); | |
31713 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_PyObj_FromInt((int)wxLIST_MASK_FORMAT)); | |
31714 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_PyObj_FromInt((int)wxLIST_STATE_DONTCARE)); | |
31715 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
31716 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FOCUSED)); | |
31717 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_PyObj_FromInt((int)wxLIST_STATE_SELECTED)); | |
31718 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_PyObj_FromInt((int)wxLIST_STATE_CUT)); | |
31719 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DISABLED)); | |
31720 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FILTERED)); | |
31721 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_PyObj_FromInt((int)wxLIST_STATE_INUSE)); | |
31722 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_PyObj_FromInt((int)wxLIST_STATE_PICKED)); | |
31723 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_PyObj_FromInt((int)wxLIST_STATE_SOURCE)); | |
31724 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
31725 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_BELOW)); | |
31726 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
31727 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
31728 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
31729 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
31730 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
31731 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
31732 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
31733 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
31734 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ABOVE)); | |
31735 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ALL)); | |
31736 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_PyObj_FromInt((int)wxLIST_NEXT_BELOW)); | |
31737 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_LEFT)); | |
31738 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_RIGHT)); | |
31739 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
31740 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_LEFT)); | |
31741 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_TOP)); | |
31742 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
31743 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_LEFT)); | |
31744 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
31745 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
31746 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTER)); | |
31747 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE)); | |
31748 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
31749 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_PyObj_FromInt((int)wxLIST_RECT_BOUNDS)); | |
31750 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_PyObj_FromInt((int)wxLIST_RECT_ICON)); | |
31751 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_PyObj_FromInt((int)wxLIST_RECT_LABEL)); | |
31752 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_PyObj_FromInt((int)wxLIST_FIND_UP)); | |
31753 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_PyObj_FromInt((int)wxLIST_FIND_DOWN)); | |
31754 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FIND_LEFT)); | |
31755 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
31756 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
31757 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
31758 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
31759 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
31760 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
31761 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
31762 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
31763 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
31764 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
31765 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
31766 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
31767 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
31768 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
31769 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
31770 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
31771 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
31772 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
31773 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
31774 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
31775 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
31776 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
31777 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
31778 | ||
31779 | // Map renamed classes back to their common name for OOR | |
31780 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
31781 | ||
d03fd34d | 31782 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
8edf1c75 RD |
31783 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_NO_BUTTONS)); |
31784 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_HAS_BUTTONS)); | |
31785 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_PyObj_FromInt((int)wxTR_NO_LINES)); | |
31786 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_PyObj_FromInt((int)wxTR_LINES_AT_ROOT)); | |
31787 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_PyObj_FromInt((int)wxTR_SINGLE)); | |
31788 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_PyObj_FromInt((int)wxTR_MULTIPLE)); | |
31789 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_PyObj_FromInt((int)wxTR_EXTENDED)); | |
31790 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_PyObj_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
31791 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxTR_EDIT_LABELS)); | |
31792 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_PyObj_FromInt((int)wxTR_HIDE_ROOT)); | |
31793 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_PyObj_FromInt((int)wxTR_ROW_LINES)); | |
31794 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_PyObj_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
31795 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_PyObj_FromInt((int)wxTR_DEFAULT_STYLE)); | |
31796 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_TWIST_BUTTONS)); | |
31797 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_MAC_BUTTONS)); | |
31798 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_AQUA_BUTTONS)); | |
31799 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Normal)); | |
31800 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Selected)); | |
31801 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Expanded)); | |
31802 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
31803 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Max)); | |
31804 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
31805 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_BELOW)); | |
31806 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
31807 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
31808 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
31809 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
31810 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
31811 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
31812 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
31813 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
31814 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
31815 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
31816 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
31817 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
31818 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
31819 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
31820 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
31821 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
31822 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
31823 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
31824 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
31825 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
31826 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
31827 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
31828 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
31829 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
31830 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
31831 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
31832 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
31833 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
31834 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
31835 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
31836 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
9fd4be55 | 31837 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
31838 | |
31839 | // Map renamed classes back to their common name for OOR | |
31840 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
31841 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
31842 | ||
d03fd34d | 31843 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
8edf1c75 RD |
31844 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_PyObj_FromInt((int)wxDIRCTRL_DIR_ONLY)); |
31845 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_PyObj_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
31846 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_PyObj_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
31847 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_PyObj_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
31848 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
31849 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
31850 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
31851 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
31852 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
423f194a RD |
31853 | |
31854 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
31855 | ||
d14a1e28 RD |
31856 | } |
31857 |