]>
Commit | Line | Data |
---|---|---|
1 | /* ---------------------------------------------------------------------------- | |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
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 | |
48 | #define SWIG_PackData SWIG_Python_PackData | |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
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 | ||
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 | |
82 | #else | |
83 | # define SWIGEXPORT(a) a | |
84 | # define SWIGIMPORT(a) a | |
85 | #endif | |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
89 | #else | |
90 | # define SWIGRUNTIME(a) static a | |
91 | #endif | |
92 | ||
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 { | |
101 | const char *name; | |
102 | swig_converter_func converter; | |
103 | const char *str; | |
104 | void *clientdata; | |
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 *); | |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
120 | ||
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | ||
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 | ||
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 | ||
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) | |
174 | ||
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) | |
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 | ||
187 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
188 | ||
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[]); | |
197 | ||
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); | |
219 | ||
220 | ||
221 | /* Contract support */ | |
222 | ||
223 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
224 | ||
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] | |
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] | |
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]; | |
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 | ||
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 | ||
367 | #include "wx/wxPython/wxPython.h" | |
368 | #include "wx/wxPython/pyclasses.h" | |
369 | ||
370 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
371 | static const wxString wxPyEmptyString(wxEmptyString); | |
372 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
373 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
374 | ||
375 | SWIGSTATIC(int) | |
376 | SWIG_PyObj_AsInt(PyObject *obj) | |
377 | { | |
378 | return numeric_cast(int, | |
379 | SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX)); | |
380 | } | |
381 | ||
382 | ||
383 | SWIGSTATIC(long) | |
384 | SWIG_PyObj_AsLong(PyObject * obj) | |
385 | { | |
386 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
387 | } | |
388 | ||
389 | ||
390 | SWIGSTATIC(PyObject*) | |
391 | SWIG_PyObj_FromBool(bool value) | |
392 | { | |
393 | PyObject *obj = value ? Py_True : Py_False; | |
394 | Py_INCREF(obj); | |
395 | return obj; | |
396 | } | |
397 | ||
398 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); | |
399 | ||
400 | SWIGSTATIC(bool) | |
401 | SWIG_PyObj_AsBool(PyObject *obj) | |
402 | { | |
403 | return PyObject_IsTrue(obj) ? true : false; | |
404 | } | |
405 | ||
406 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); | |
407 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
408 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
409 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
410 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
411 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
412 | ||
413 | #include <wx/checklst.h> | |
414 | ||
415 | ||
416 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); | |
417 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ | |
418 | if (clientData) { | |
419 | wxPyClientData* data = new wxPyClientData(clientData); | |
420 | self->Insert(item, pos, data); | |
421 | } else | |
422 | self->Insert(item, pos); | |
423 | } | |
424 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
425 | wxArrayInt lst; | |
426 | self->GetSelections(lst); | |
427 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
428 | for(size_t i=0; i<lst.GetCount(); i++) { | |
429 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
430 | } | |
431 | return tup; | |
432 | } | |
433 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); | |
434 | ||
435 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
436 | PyObject* o2; | |
437 | PyObject* o3; | |
438 | ||
439 | if (!target) { | |
440 | target = o; | |
441 | } else if (target == Py_None) { | |
442 | Py_DECREF(Py_None); | |
443 | target = o; | |
444 | } else { | |
445 | if (!PyTuple_Check(target)) { | |
446 | o2 = target; | |
447 | target = PyTuple_New(1); | |
448 | PyTuple_SetItem(target, 0, o2); | |
449 | } | |
450 | o3 = PyTuple_New(1); | |
451 | PyTuple_SetItem(o3, 0, o); | |
452 | ||
453 | o2 = target; | |
454 | target = PySequence_Concat(o2, o3); | |
455 | Py_DECREF(o2); | |
456 | Py_DECREF(o3); | |
457 | } | |
458 | return target; | |
459 | } | |
460 | ||
461 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
462 | self->AppendText(text); | |
463 | } | |
464 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
465 | return self->GetValue().Mid(from, to - from); | |
466 | } | |
467 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); | |
468 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
469 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); | |
470 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); | |
471 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
472 | ||
473 | #include <wx/slider.h> | |
474 | ||
475 | ||
476 | static const wxString wxPySliderNameStr(wxSliderNameStr); | |
477 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); | |
478 | ||
479 | #if defined(__WXMAC__) || defined(__WXX11__) | |
480 | // implement dummy classes and such for wxMac | |
481 | ||
482 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
483 | ||
484 | class wxToggleButton : public wxControl | |
485 | { | |
486 | public: | |
487 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
488 | const wxPoint&, const wxSize&, long, | |
489 | const wxValidator&, const wxString&) | |
490 | { wxPyRaiseNotImplemented(); } | |
491 | ||
492 | wxToggleButton() | |
493 | { wxPyRaiseNotImplemented(); } | |
494 | }; | |
495 | #endif | |
496 | ||
497 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); | |
498 | ||
499 | SWIGSTATIC(PyObject* ) | |
500 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
501 | { | |
502 | return (value > (unsigned long)(LONG_MAX)) ? | |
503 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
504 | } | |
505 | ||
506 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
507 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ | |
508 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
509 | if (udata) { | |
510 | Py_INCREF(udata->m_obj); | |
511 | return udata->m_obj; | |
512 | } else { | |
513 | Py_INCREF(Py_None); | |
514 | return Py_None; | |
515 | } | |
516 | } | |
517 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
518 | self->SetClientData(new wxPyUserData(clientData)); | |
519 | } | |
520 | 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){ | |
521 | wxPyUserData* udata = NULL; | |
522 | if (clientData && clientData != Py_None) | |
523 | udata = new wxPyUserData(clientData); | |
524 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
525 | shortHelp, longHelp, udata); | |
526 | } | |
527 | 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){ | |
528 | wxPyUserData* udata = NULL; | |
529 | if (clientData && clientData != Py_None) | |
530 | udata = new wxPyUserData(clientData); | |
531 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
532 | shortHelp, longHelp, udata); | |
533 | } | |
534 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
535 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
536 | if (udata) { | |
537 | Py_INCREF(udata->m_obj); | |
538 | return udata->m_obj; | |
539 | } else { | |
540 | Py_INCREF(Py_None); | |
541 | return Py_None; | |
542 | } | |
543 | } | |
544 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
545 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
546 | } | |
547 | ||
548 | #include <wx/listctrl.h> | |
549 | ||
550 | ||
551 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); | |
552 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } | |
553 | // Python aware sorting function for wxPyListCtrl | |
554 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
555 | int retval = 0; | |
556 | PyObject* func = (PyObject*)funcPtr; | |
557 | wxPyBeginBlockThreads(); | |
558 | ||
559 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
560 | PyObject* result = PyEval_CallObject(func, args); | |
561 | Py_DECREF(args); | |
562 | if (result) { | |
563 | retval = PyInt_AsLong(result); | |
564 | Py_DECREF(result); | |
565 | } | |
566 | ||
567 | wxPyEndBlockThreads(); | |
568 | return retval; | |
569 | } | |
570 | ||
571 | // C++ Version of a Python aware class | |
572 | class wxPyListCtrl : public wxListCtrl { | |
573 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
574 | public: | |
575 | wxPyListCtrl() : wxListCtrl() {} | |
576 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
577 | const wxPoint& pos, | |
578 | const wxSize& size, | |
579 | long style, | |
580 | const wxValidator& validator, | |
581 | const wxString& name) : | |
582 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
583 | ||
584 | bool Create(wxWindow* parent, wxWindowID id, | |
585 | const wxPoint& pos, | |
586 | const wxSize& size, | |
587 | long style, | |
588 | const wxValidator& validator, | |
589 | const wxString& name) { | |
590 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
591 | } | |
592 | ||
593 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
594 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
595 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
596 | ||
597 | PYPRIVATE; | |
598 | }; | |
599 | ||
600 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
601 | ||
602 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
603 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
604 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
605 | ||
606 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
607 | wxListItem item; | |
608 | item.SetMask( wxLIST_MASK_STATE | | |
609 | wxLIST_MASK_TEXT | | |
610 | wxLIST_MASK_IMAGE | | |
611 | wxLIST_MASK_DATA | | |
612 | wxLIST_SET_ITEM | | |
613 | wxLIST_MASK_WIDTH | | |
614 | wxLIST_MASK_FORMAT | |
615 | ); | |
616 | if (self->GetColumn(col, item)) | |
617 | return new wxListItem(item); | |
618 | else | |
619 | return NULL; | |
620 | } | |
621 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
622 | wxListItem* info = new wxListItem; | |
623 | info->m_itemId = itemId; | |
624 | info->m_col = col; | |
625 | info->m_mask = 0xFFFF; | |
626 | self->GetItem(*info); | |
627 | return info; | |
628 | } | |
629 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
630 | wxPoint pos; | |
631 | self->GetItemPosition(item, pos); | |
632 | return pos; | |
633 | } | |
634 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
635 | wxRect rect; | |
636 | self->GetItemRect(item, rect, code); | |
637 | return rect; | |
638 | } | |
639 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
640 | if (!PyCallable_Check(func)) | |
641 | return False; | |
642 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); | |
643 | } | |
644 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
645 | ||
646 | ||
647 | ||
648 | return (wxWindow*)self->m_mainWin; | |
649 | ||
650 | } | |
651 | ||
652 | #include <wx/treectrl.h> | |
653 | #include "wx/wxPython/pytree.h" | |
654 | ||
655 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); | |
656 | bool wxTreeItemId_operator_ee___(wxTreeItemId *self,wxTreeItemId const *other){ | |
657 | if (!other) return False; | |
658 | return *self == *other; | |
659 | } | |
660 | bool wxTreeItemId_operator_Ne___(wxTreeItemId *self,wxTreeItemId const *other){ | |
661 | if (!other) return True; | |
662 | return *self != *other; | |
663 | } | |
664 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
665 | // C++ version of Python aware wxTreeCtrl | |
666 | class wxPyTreeCtrl : public wxTreeCtrl { | |
667 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
668 | public: | |
669 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
670 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
671 | const wxPoint& pos, | |
672 | const wxSize& size, | |
673 | long style, | |
674 | const wxValidator& validator, | |
675 | const wxString& name) : | |
676 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
677 | ||
678 | bool Create(wxWindow *parent, wxWindowID id, | |
679 | const wxPoint& pos, | |
680 | const wxSize& size, | |
681 | long style, | |
682 | const wxValidator& validator, | |
683 | const wxString& name) { | |
684 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
685 | } | |
686 | ||
687 | ||
688 | int OnCompareItems(const wxTreeItemId& item1, | |
689 | const wxTreeItemId& item2) { | |
690 | int rval = 0; | |
691 | bool found; | |
692 | wxPyBeginBlockThreads(); | |
693 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
694 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); | |
695 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
696 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); | |
697 | Py_DECREF(o1); | |
698 | Py_DECREF(o2); | |
699 | } | |
700 | wxPyEndBlockThreads(); | |
701 | if (! found) | |
702 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
703 | return rval; | |
704 | } | |
705 | PYPRIVATE; | |
706 | }; | |
707 | ||
708 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
709 | ||
710 | ||
711 | ||
712 | #define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong | |
713 | ||
714 | ||
715 | SWIGSTATIC(unsigned int) | |
716 | SWIG_PyObj_AsUnsignedInt(PyObject *obj) | |
717 | { | |
718 | return numeric_cast(unsigned int, | |
719 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX)); | |
720 | } | |
721 | ||
722 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
723 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
724 | if (data == NULL) { | |
725 | data = new wxPyTreeItemData(); | |
726 | data->SetId(item); // set the id | |
727 | self->SetItemData(item, data); | |
728 | } | |
729 | return data; | |
730 | } | |
731 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
732 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
733 | if (data == NULL) { | |
734 | data = new wxPyTreeItemData(); | |
735 | data->SetId(item); // set the id | |
736 | self->SetItemData(item, data); | |
737 | } | |
738 | return data->GetData(); | |
739 | } | |
740 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
741 | data->SetId(item); // set the id | |
742 | self->SetItemData(item, data); | |
743 | } | |
744 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
745 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
746 | if (data == NULL) { | |
747 | data = new wxPyTreeItemData(obj); | |
748 | data->SetId(item); // set the id | |
749 | self->SetItemData(item, data); | |
750 | } else | |
751 | data->SetData(obj); | |
752 | } | |
753 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
754 | wxPyBeginBlockThreads(); | |
755 | PyObject* rval = PyList_New(0); | |
756 | wxArrayTreeItemIds array; | |
757 | size_t num, x; | |
758 | num = self->GetSelections(array); | |
759 | for (x=0; x < num; x++) { | |
760 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
761 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); | |
762 | PyList_Append(rval, item); | |
763 | } | |
764 | wxPyEndBlockThreads(); | |
765 | return rval; | |
766 | } | |
767 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
768 | void* cookie = 0; | |
769 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
770 | wxPyBeginBlockThreads(); | |
771 | PyObject* tup = PyTuple_New(2); | |
772 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); | |
773 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
774 | wxPyEndBlockThreads(); | |
775 | return tup; | |
776 | } | |
777 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ | |
778 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
779 | wxPyBeginBlockThreads(); | |
780 | PyObject* tup = PyTuple_New(2); | |
781 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); | |
782 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
783 | wxPyEndBlockThreads(); | |
784 | return tup; | |
785 | } | |
786 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
787 | wxRect rect; | |
788 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
789 | wxPyBeginBlockThreads(); | |
790 | wxRect* r = new wxRect(rect); | |
791 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); | |
792 | wxPyEndBlockThreads(); | |
793 | return val; | |
794 | } | |
795 | else | |
796 | RETURN_NONE(); | |
797 | } | |
798 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); | |
799 | // C++ version of Python aware wxControl | |
800 | class wxPyControl : public wxControl | |
801 | { | |
802 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
803 | public: | |
804 | wxPyControl() : wxControl() {} | |
805 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
806 | const wxPoint& pos = wxDefaultPosition, | |
807 | const wxSize& size = wxDefaultSize, | |
808 | long style = 0, | |
809 | const wxValidator& validator=wxDefaultValidator, | |
810 | const wxString& name = wxPyControlNameStr) | |
811 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
812 | ||
813 | ||
814 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
815 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
816 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
817 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
818 | ||
819 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
820 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
821 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
822 | ||
823 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
824 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
825 | ||
826 | DEC_PYCALLBACK__(InitDialog); | |
827 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
828 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
829 | DEC_PYCALLBACK_BOOL_(Validate); | |
830 | ||
831 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
832 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
833 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
834 | ||
835 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
836 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
837 | ||
838 | PYPRIVATE; | |
839 | }; | |
840 | ||
841 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
842 | ||
843 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
844 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
845 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
846 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
847 | ||
848 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
849 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
850 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
851 | ||
852 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
853 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
854 | ||
855 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
856 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
857 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
858 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
859 | ||
860 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
861 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
862 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
863 | ||
864 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
865 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
866 | ||
867 | ||
868 | ||
869 | ||
870 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
871 | ||
872 | #include <wx/generic/dragimgg.h> | |
873 | ||
874 | #ifdef __cplusplus | |
875 | extern "C" { | |
876 | #endif | |
877 | static int _wrap_ButtonNameStr_set(PyObject *) { | |
878 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); | |
879 | return 1; | |
880 | } | |
881 | ||
882 | ||
883 | static PyObject *_wrap_ButtonNameStr_get() { | |
884 | PyObject *pyobj; | |
885 | ||
886 | { | |
887 | #if wxUSE_UNICODE | |
888 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
889 | #else | |
890 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
891 | #endif | |
892 | } | |
893 | return pyobj; | |
894 | } | |
895 | ||
896 | ||
897 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
898 | PyObject *resultobj; | |
899 | wxWindow *arg1 = (wxWindow *) 0 ; | |
900 | int arg2 ; | |
901 | wxString *arg3 = 0 ; | |
902 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
903 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
904 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
905 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
906 | long arg6 = (long) 0 ; | |
907 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
908 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
909 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
910 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
911 | wxButton *result; | |
912 | bool temp3 = False ; | |
913 | wxPoint temp4 ; | |
914 | wxSize temp5 ; | |
915 | bool temp8 = False ; | |
916 | PyObject * obj0 = 0 ; | |
917 | PyObject * obj1 = 0 ; | |
918 | PyObject * obj2 = 0 ; | |
919 | PyObject * obj3 = 0 ; | |
920 | PyObject * obj4 = 0 ; | |
921 | PyObject * obj5 = 0 ; | |
922 | PyObject * obj6 = 0 ; | |
923 | PyObject * obj7 = 0 ; | |
924 | char *kwnames[] = { | |
925 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
926 | }; | |
927 | ||
928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
930 | { | |
931 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
932 | if (PyErr_Occurred()) SWIG_fail; | |
933 | } | |
934 | { | |
935 | arg3 = wxString_in_helper(obj2); | |
936 | if (arg3 == NULL) SWIG_fail; | |
937 | temp3 = True; | |
938 | } | |
939 | if (obj3) { | |
940 | { | |
941 | arg4 = &temp4; | |
942 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
943 | } | |
944 | } | |
945 | if (obj4) { | |
946 | { | |
947 | arg5 = &temp5; | |
948 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
949 | } | |
950 | } | |
951 | if (obj5) { | |
952 | { | |
953 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
954 | if (PyErr_Occurred()) SWIG_fail; | |
955 | } | |
956 | } | |
957 | if (obj6) { | |
958 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
959 | if (arg7 == NULL) { | |
960 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
961 | } | |
962 | } | |
963 | if (obj7) { | |
964 | { | |
965 | arg8 = wxString_in_helper(obj7); | |
966 | if (arg8 == NULL) SWIG_fail; | |
967 | temp8 = True; | |
968 | } | |
969 | } | |
970 | { | |
971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
972 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
973 | ||
974 | wxPyEndAllowThreads(__tstate); | |
975 | if (PyErr_Occurred()) SWIG_fail; | |
976 | } | |
977 | { | |
978 | resultobj = wxPyMake_wxObject(result); | |
979 | } | |
980 | { | |
981 | if (temp3) | |
982 | delete arg3; | |
983 | } | |
984 | { | |
985 | if (temp8) | |
986 | delete arg8; | |
987 | } | |
988 | return resultobj; | |
989 | fail: | |
990 | { | |
991 | if (temp3) | |
992 | delete arg3; | |
993 | } | |
994 | { | |
995 | if (temp8) | |
996 | delete arg8; | |
997 | } | |
998 | return NULL; | |
999 | } | |
1000 | ||
1001 | ||
1002 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1003 | PyObject *resultobj; | |
1004 | wxButton *result; | |
1005 | char *kwnames[] = { | |
1006 | NULL | |
1007 | }; | |
1008 | ||
1009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1010 | { | |
1011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1012 | result = (wxButton *)new wxButton(); | |
1013 | ||
1014 | wxPyEndAllowThreads(__tstate); | |
1015 | if (PyErr_Occurred()) SWIG_fail; | |
1016 | } | |
1017 | { | |
1018 | resultobj = wxPyMake_wxObject(result); | |
1019 | } | |
1020 | return resultobj; | |
1021 | fail: | |
1022 | return NULL; | |
1023 | } | |
1024 | ||
1025 | ||
1026 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1027 | PyObject *resultobj; | |
1028 | wxButton *arg1 = (wxButton *) 0 ; | |
1029 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1030 | int arg3 ; | |
1031 | wxString *arg4 = 0 ; | |
1032 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1033 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1034 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1035 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1036 | long arg7 = (long) 0 ; | |
1037 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1038 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1039 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1040 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1041 | bool result; | |
1042 | bool temp4 = False ; | |
1043 | wxPoint temp5 ; | |
1044 | wxSize temp6 ; | |
1045 | bool temp9 = False ; | |
1046 | PyObject * obj0 = 0 ; | |
1047 | PyObject * obj1 = 0 ; | |
1048 | PyObject * obj2 = 0 ; | |
1049 | PyObject * obj3 = 0 ; | |
1050 | PyObject * obj4 = 0 ; | |
1051 | PyObject * obj5 = 0 ; | |
1052 | PyObject * obj6 = 0 ; | |
1053 | PyObject * obj7 = 0 ; | |
1054 | PyObject * obj8 = 0 ; | |
1055 | char *kwnames[] = { | |
1056 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1057 | }; | |
1058 | ||
1059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
1060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1061 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1062 | { | |
1063 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1064 | if (PyErr_Occurred()) SWIG_fail; | |
1065 | } | |
1066 | { | |
1067 | arg4 = wxString_in_helper(obj3); | |
1068 | if (arg4 == NULL) SWIG_fail; | |
1069 | temp4 = True; | |
1070 | } | |
1071 | if (obj4) { | |
1072 | { | |
1073 | arg5 = &temp5; | |
1074 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1075 | } | |
1076 | } | |
1077 | if (obj5) { | |
1078 | { | |
1079 | arg6 = &temp6; | |
1080 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1081 | } | |
1082 | } | |
1083 | if (obj6) { | |
1084 | { | |
1085 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1086 | if (PyErr_Occurred()) SWIG_fail; | |
1087 | } | |
1088 | } | |
1089 | if (obj7) { | |
1090 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1091 | if (arg8 == NULL) { | |
1092 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1093 | } | |
1094 | } | |
1095 | if (obj8) { | |
1096 | { | |
1097 | arg9 = wxString_in_helper(obj8); | |
1098 | if (arg9 == NULL) SWIG_fail; | |
1099 | temp9 = True; | |
1100 | } | |
1101 | } | |
1102 | { | |
1103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1104 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1105 | ||
1106 | wxPyEndAllowThreads(__tstate); | |
1107 | if (PyErr_Occurred()) SWIG_fail; | |
1108 | } | |
1109 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
1110 | { | |
1111 | if (temp4) | |
1112 | delete arg4; | |
1113 | } | |
1114 | { | |
1115 | if (temp9) | |
1116 | delete arg9; | |
1117 | } | |
1118 | return resultobj; | |
1119 | fail: | |
1120 | { | |
1121 | if (temp4) | |
1122 | delete arg4; | |
1123 | } | |
1124 | { | |
1125 | if (temp9) | |
1126 | delete arg9; | |
1127 | } | |
1128 | return NULL; | |
1129 | } | |
1130 | ||
1131 | ||
1132 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1133 | PyObject *resultobj; | |
1134 | wxButton *arg1 = (wxButton *) 0 ; | |
1135 | PyObject * obj0 = 0 ; | |
1136 | char *kwnames[] = { | |
1137 | (char *) "self", NULL | |
1138 | }; | |
1139 | ||
1140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1142 | { | |
1143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1144 | (arg1)->SetDefault(); | |
1145 | ||
1146 | wxPyEndAllowThreads(__tstate); | |
1147 | if (PyErr_Occurred()) SWIG_fail; | |
1148 | } | |
1149 | Py_INCREF(Py_None); resultobj = Py_None; | |
1150 | return resultobj; | |
1151 | fail: | |
1152 | return NULL; | |
1153 | } | |
1154 | ||
1155 | ||
1156 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1157 | PyObject *resultobj; | |
1158 | wxSize result; | |
1159 | char *kwnames[] = { | |
1160 | NULL | |
1161 | }; | |
1162 | ||
1163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1164 | { | |
1165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1166 | result = wxButton::GetDefaultSize(); | |
1167 | ||
1168 | wxPyEndAllowThreads(__tstate); | |
1169 | if (PyErr_Occurred()) SWIG_fail; | |
1170 | } | |
1171 | { | |
1172 | wxSize * resultptr; | |
1173 | resultptr = new wxSize((wxSize &) result); | |
1174 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1175 | } | |
1176 | return resultobj; | |
1177 | fail: | |
1178 | return NULL; | |
1179 | } | |
1180 | ||
1181 | ||
1182 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { | |
1183 | PyObject *obj; | |
1184 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1185 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1186 | Py_INCREF(obj); | |
1187 | return Py_BuildValue((char *)""); | |
1188 | } | |
1189 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1190 | PyObject *resultobj; | |
1191 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1192 | int arg2 ; | |
1193 | wxBitmap *arg3 = 0 ; | |
1194 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1195 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1196 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1197 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1198 | long arg6 = (long) wxBU_AUTODRAW ; | |
1199 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1200 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1201 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1202 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1203 | wxBitmapButton *result; | |
1204 | wxPoint temp4 ; | |
1205 | wxSize temp5 ; | |
1206 | bool temp8 = False ; | |
1207 | PyObject * obj0 = 0 ; | |
1208 | PyObject * obj1 = 0 ; | |
1209 | PyObject * obj2 = 0 ; | |
1210 | PyObject * obj3 = 0 ; | |
1211 | PyObject * obj4 = 0 ; | |
1212 | PyObject * obj5 = 0 ; | |
1213 | PyObject * obj6 = 0 ; | |
1214 | PyObject * obj7 = 0 ; | |
1215 | char *kwnames[] = { | |
1216 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1217 | }; | |
1218 | ||
1219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1221 | { | |
1222 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1223 | if (PyErr_Occurred()) SWIG_fail; | |
1224 | } | |
1225 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1226 | if (arg3 == NULL) { | |
1227 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1228 | } | |
1229 | if (obj3) { | |
1230 | { | |
1231 | arg4 = &temp4; | |
1232 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1233 | } | |
1234 | } | |
1235 | if (obj4) { | |
1236 | { | |
1237 | arg5 = &temp5; | |
1238 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1239 | } | |
1240 | } | |
1241 | if (obj5) { | |
1242 | { | |
1243 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1244 | if (PyErr_Occurred()) SWIG_fail; | |
1245 | } | |
1246 | } | |
1247 | if (obj6) { | |
1248 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1249 | if (arg7 == NULL) { | |
1250 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1251 | } | |
1252 | } | |
1253 | if (obj7) { | |
1254 | { | |
1255 | arg8 = wxString_in_helper(obj7); | |
1256 | if (arg8 == NULL) SWIG_fail; | |
1257 | temp8 = True; | |
1258 | } | |
1259 | } | |
1260 | { | |
1261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1262 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1263 | ||
1264 | wxPyEndAllowThreads(__tstate); | |
1265 | if (PyErr_Occurred()) SWIG_fail; | |
1266 | } | |
1267 | { | |
1268 | resultobj = wxPyMake_wxObject(result); | |
1269 | } | |
1270 | { | |
1271 | if (temp8) | |
1272 | delete arg8; | |
1273 | } | |
1274 | return resultobj; | |
1275 | fail: | |
1276 | { | |
1277 | if (temp8) | |
1278 | delete arg8; | |
1279 | } | |
1280 | return NULL; | |
1281 | } | |
1282 | ||
1283 | ||
1284 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1285 | PyObject *resultobj; | |
1286 | wxBitmapButton *result; | |
1287 | char *kwnames[] = { | |
1288 | NULL | |
1289 | }; | |
1290 | ||
1291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1292 | { | |
1293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1294 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1295 | ||
1296 | wxPyEndAllowThreads(__tstate); | |
1297 | if (PyErr_Occurred()) SWIG_fail; | |
1298 | } | |
1299 | { | |
1300 | resultobj = wxPyMake_wxObject(result); | |
1301 | } | |
1302 | return resultobj; | |
1303 | fail: | |
1304 | return NULL; | |
1305 | } | |
1306 | ||
1307 | ||
1308 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1309 | PyObject *resultobj; | |
1310 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1311 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1312 | int arg3 ; | |
1313 | wxBitmap *arg4 = 0 ; | |
1314 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1315 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1316 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1317 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1318 | long arg7 = (long) wxBU_AUTODRAW ; | |
1319 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1320 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1321 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1322 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1323 | bool result; | |
1324 | wxPoint temp5 ; | |
1325 | wxSize temp6 ; | |
1326 | bool temp9 = False ; | |
1327 | PyObject * obj0 = 0 ; | |
1328 | PyObject * obj1 = 0 ; | |
1329 | PyObject * obj2 = 0 ; | |
1330 | PyObject * obj3 = 0 ; | |
1331 | PyObject * obj4 = 0 ; | |
1332 | PyObject * obj5 = 0 ; | |
1333 | PyObject * obj6 = 0 ; | |
1334 | PyObject * obj7 = 0 ; | |
1335 | PyObject * obj8 = 0 ; | |
1336 | char *kwnames[] = { | |
1337 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1338 | }; | |
1339 | ||
1340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
1341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1342 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1343 | { | |
1344 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1345 | if (PyErr_Occurred()) SWIG_fail; | |
1346 | } | |
1347 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1348 | if (arg4 == NULL) { | |
1349 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1350 | } | |
1351 | if (obj4) { | |
1352 | { | |
1353 | arg5 = &temp5; | |
1354 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1355 | } | |
1356 | } | |
1357 | if (obj5) { | |
1358 | { | |
1359 | arg6 = &temp6; | |
1360 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1361 | } | |
1362 | } | |
1363 | if (obj6) { | |
1364 | { | |
1365 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1366 | if (PyErr_Occurred()) SWIG_fail; | |
1367 | } | |
1368 | } | |
1369 | if (obj7) { | |
1370 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1371 | if (arg8 == NULL) { | |
1372 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1373 | } | |
1374 | } | |
1375 | if (obj8) { | |
1376 | { | |
1377 | arg9 = wxString_in_helper(obj8); | |
1378 | if (arg9 == NULL) SWIG_fail; | |
1379 | temp9 = True; | |
1380 | } | |
1381 | } | |
1382 | { | |
1383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1384 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1385 | ||
1386 | wxPyEndAllowThreads(__tstate); | |
1387 | if (PyErr_Occurred()) SWIG_fail; | |
1388 | } | |
1389 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
1390 | { | |
1391 | if (temp9) | |
1392 | delete arg9; | |
1393 | } | |
1394 | return resultobj; | |
1395 | fail: | |
1396 | { | |
1397 | if (temp9) | |
1398 | delete arg9; | |
1399 | } | |
1400 | return NULL; | |
1401 | } | |
1402 | ||
1403 | ||
1404 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1405 | PyObject *resultobj; | |
1406 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1407 | wxBitmap result; | |
1408 | PyObject * obj0 = 0 ; | |
1409 | char *kwnames[] = { | |
1410 | (char *) "self", NULL | |
1411 | }; | |
1412 | ||
1413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1415 | { | |
1416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1417 | result = (arg1)->GetBitmapLabel(); | |
1418 | ||
1419 | wxPyEndAllowThreads(__tstate); | |
1420 | if (PyErr_Occurred()) SWIG_fail; | |
1421 | } | |
1422 | { | |
1423 | wxBitmap * resultptr; | |
1424 | resultptr = new wxBitmap((wxBitmap &) result); | |
1425 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1426 | } | |
1427 | return resultobj; | |
1428 | fail: | |
1429 | return NULL; | |
1430 | } | |
1431 | ||
1432 | ||
1433 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1434 | PyObject *resultobj; | |
1435 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1436 | wxBitmap result; | |
1437 | PyObject * obj0 = 0 ; | |
1438 | char *kwnames[] = { | |
1439 | (char *) "self", NULL | |
1440 | }; | |
1441 | ||
1442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1444 | { | |
1445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1446 | result = (arg1)->GetBitmapDisabled(); | |
1447 | ||
1448 | wxPyEndAllowThreads(__tstate); | |
1449 | if (PyErr_Occurred()) SWIG_fail; | |
1450 | } | |
1451 | { | |
1452 | wxBitmap * resultptr; | |
1453 | resultptr = new wxBitmap((wxBitmap &) result); | |
1454 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1455 | } | |
1456 | return resultobj; | |
1457 | fail: | |
1458 | return NULL; | |
1459 | } | |
1460 | ||
1461 | ||
1462 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1463 | PyObject *resultobj; | |
1464 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1465 | wxBitmap result; | |
1466 | PyObject * obj0 = 0 ; | |
1467 | char *kwnames[] = { | |
1468 | (char *) "self", NULL | |
1469 | }; | |
1470 | ||
1471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1473 | { | |
1474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1475 | result = (arg1)->GetBitmapFocus(); | |
1476 | ||
1477 | wxPyEndAllowThreads(__tstate); | |
1478 | if (PyErr_Occurred()) SWIG_fail; | |
1479 | } | |
1480 | { | |
1481 | wxBitmap * resultptr; | |
1482 | resultptr = new wxBitmap((wxBitmap &) result); | |
1483 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1484 | } | |
1485 | return resultobj; | |
1486 | fail: | |
1487 | return NULL; | |
1488 | } | |
1489 | ||
1490 | ||
1491 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1492 | PyObject *resultobj; | |
1493 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1494 | wxBitmap result; | |
1495 | PyObject * obj0 = 0 ; | |
1496 | char *kwnames[] = { | |
1497 | (char *) "self", NULL | |
1498 | }; | |
1499 | ||
1500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1502 | { | |
1503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1504 | result = (arg1)->GetBitmapSelected(); | |
1505 | ||
1506 | wxPyEndAllowThreads(__tstate); | |
1507 | if (PyErr_Occurred()) SWIG_fail; | |
1508 | } | |
1509 | { | |
1510 | wxBitmap * resultptr; | |
1511 | resultptr = new wxBitmap((wxBitmap &) result); | |
1512 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1513 | } | |
1514 | return resultobj; | |
1515 | fail: | |
1516 | return NULL; | |
1517 | } | |
1518 | ||
1519 | ||
1520 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1521 | PyObject *resultobj; | |
1522 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1523 | wxBitmap *arg2 = 0 ; | |
1524 | PyObject * obj0 = 0 ; | |
1525 | PyObject * obj1 = 0 ; | |
1526 | char *kwnames[] = { | |
1527 | (char *) "self",(char *) "bitmap", NULL | |
1528 | }; | |
1529 | ||
1530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1532 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1533 | if (arg2 == NULL) { | |
1534 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1535 | } | |
1536 | { | |
1537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1538 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1539 | ||
1540 | wxPyEndAllowThreads(__tstate); | |
1541 | if (PyErr_Occurred()) SWIG_fail; | |
1542 | } | |
1543 | Py_INCREF(Py_None); resultobj = Py_None; | |
1544 | return resultobj; | |
1545 | fail: | |
1546 | return NULL; | |
1547 | } | |
1548 | ||
1549 | ||
1550 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1551 | PyObject *resultobj; | |
1552 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1553 | wxBitmap *arg2 = 0 ; | |
1554 | PyObject * obj0 = 0 ; | |
1555 | PyObject * obj1 = 0 ; | |
1556 | char *kwnames[] = { | |
1557 | (char *) "self",(char *) "bitmap", NULL | |
1558 | }; | |
1559 | ||
1560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1562 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1563 | if (arg2 == NULL) { | |
1564 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1565 | } | |
1566 | { | |
1567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1568 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1569 | ||
1570 | wxPyEndAllowThreads(__tstate); | |
1571 | if (PyErr_Occurred()) SWIG_fail; | |
1572 | } | |
1573 | Py_INCREF(Py_None); resultobj = Py_None; | |
1574 | return resultobj; | |
1575 | fail: | |
1576 | return NULL; | |
1577 | } | |
1578 | ||
1579 | ||
1580 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1581 | PyObject *resultobj; | |
1582 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1583 | wxBitmap *arg2 = 0 ; | |
1584 | PyObject * obj0 = 0 ; | |
1585 | PyObject * obj1 = 0 ; | |
1586 | char *kwnames[] = { | |
1587 | (char *) "self",(char *) "bitmap", NULL | |
1588 | }; | |
1589 | ||
1590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1592 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1593 | if (arg2 == NULL) { | |
1594 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1595 | } | |
1596 | { | |
1597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1598 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1599 | ||
1600 | wxPyEndAllowThreads(__tstate); | |
1601 | if (PyErr_Occurred()) SWIG_fail; | |
1602 | } | |
1603 | Py_INCREF(Py_None); resultobj = Py_None; | |
1604 | return resultobj; | |
1605 | fail: | |
1606 | return NULL; | |
1607 | } | |
1608 | ||
1609 | ||
1610 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1611 | PyObject *resultobj; | |
1612 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1613 | wxBitmap *arg2 = 0 ; | |
1614 | PyObject * obj0 = 0 ; | |
1615 | PyObject * obj1 = 0 ; | |
1616 | char *kwnames[] = { | |
1617 | (char *) "self",(char *) "bitmap", NULL | |
1618 | }; | |
1619 | ||
1620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1622 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1623 | if (arg2 == NULL) { | |
1624 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1625 | } | |
1626 | { | |
1627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1628 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1629 | ||
1630 | wxPyEndAllowThreads(__tstate); | |
1631 | if (PyErr_Occurred()) SWIG_fail; | |
1632 | } | |
1633 | Py_INCREF(Py_None); resultobj = Py_None; | |
1634 | return resultobj; | |
1635 | fail: | |
1636 | return NULL; | |
1637 | } | |
1638 | ||
1639 | ||
1640 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1641 | PyObject *resultobj; | |
1642 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1643 | int arg2 ; | |
1644 | int arg3 ; | |
1645 | PyObject * obj0 = 0 ; | |
1646 | PyObject * obj1 = 0 ; | |
1647 | PyObject * obj2 = 0 ; | |
1648 | char *kwnames[] = { | |
1649 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1650 | }; | |
1651 | ||
1652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1654 | { | |
1655 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1656 | if (PyErr_Occurred()) SWIG_fail; | |
1657 | } | |
1658 | { | |
1659 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1660 | if (PyErr_Occurred()) SWIG_fail; | |
1661 | } | |
1662 | { | |
1663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1664 | (arg1)->SetMargins(arg2,arg3); | |
1665 | ||
1666 | wxPyEndAllowThreads(__tstate); | |
1667 | if (PyErr_Occurred()) SWIG_fail; | |
1668 | } | |
1669 | Py_INCREF(Py_None); resultobj = Py_None; | |
1670 | return resultobj; | |
1671 | fail: | |
1672 | return NULL; | |
1673 | } | |
1674 | ||
1675 | ||
1676 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1677 | PyObject *resultobj; | |
1678 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1679 | int result; | |
1680 | PyObject * obj0 = 0 ; | |
1681 | char *kwnames[] = { | |
1682 | (char *) "self", NULL | |
1683 | }; | |
1684 | ||
1685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
1686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1687 | { | |
1688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1689 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1690 | ||
1691 | wxPyEndAllowThreads(__tstate); | |
1692 | if (PyErr_Occurred()) SWIG_fail; | |
1693 | } | |
1694 | resultobj = SWIG_PyObj_FromInt((int)result); | |
1695 | return resultobj; | |
1696 | fail: | |
1697 | return NULL; | |
1698 | } | |
1699 | ||
1700 | ||
1701 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1702 | PyObject *resultobj; | |
1703 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1704 | int result; | |
1705 | PyObject * obj0 = 0 ; | |
1706 | char *kwnames[] = { | |
1707 | (char *) "self", NULL | |
1708 | }; | |
1709 | ||
1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
1711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1712 | { | |
1713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1714 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1715 | ||
1716 | wxPyEndAllowThreads(__tstate); | |
1717 | if (PyErr_Occurred()) SWIG_fail; | |
1718 | } | |
1719 | resultobj = SWIG_PyObj_FromInt((int)result); | |
1720 | return resultobj; | |
1721 | fail: | |
1722 | return NULL; | |
1723 | } | |
1724 | ||
1725 | ||
1726 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1727 | PyObject *obj; | |
1728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1729 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1730 | Py_INCREF(obj); | |
1731 | return Py_BuildValue((char *)""); | |
1732 | } | |
1733 | static int _wrap_CheckBoxNameStr_set(PyObject *) { | |
1734 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); | |
1735 | return 1; | |
1736 | } | |
1737 | ||
1738 | ||
1739 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1740 | PyObject *pyobj; | |
1741 | ||
1742 | { | |
1743 | #if wxUSE_UNICODE | |
1744 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1745 | #else | |
1746 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1747 | #endif | |
1748 | } | |
1749 | return pyobj; | |
1750 | } | |
1751 | ||
1752 | ||
1753 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1754 | PyObject *resultobj; | |
1755 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1756 | int arg2 ; | |
1757 | wxString *arg3 = 0 ; | |
1758 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1759 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1760 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1761 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1762 | long arg6 = (long) 0 ; | |
1763 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1764 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1765 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1766 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1767 | wxCheckBox *result; | |
1768 | bool temp3 = False ; | |
1769 | wxPoint temp4 ; | |
1770 | wxSize temp5 ; | |
1771 | bool temp8 = False ; | |
1772 | PyObject * obj0 = 0 ; | |
1773 | PyObject * obj1 = 0 ; | |
1774 | PyObject * obj2 = 0 ; | |
1775 | PyObject * obj3 = 0 ; | |
1776 | PyObject * obj4 = 0 ; | |
1777 | PyObject * obj5 = 0 ; | |
1778 | PyObject * obj6 = 0 ; | |
1779 | PyObject * obj7 = 0 ; | |
1780 | char *kwnames[] = { | |
1781 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1782 | }; | |
1783 | ||
1784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1786 | { | |
1787 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1788 | if (PyErr_Occurred()) SWIG_fail; | |
1789 | } | |
1790 | { | |
1791 | arg3 = wxString_in_helper(obj2); | |
1792 | if (arg3 == NULL) SWIG_fail; | |
1793 | temp3 = True; | |
1794 | } | |
1795 | if (obj3) { | |
1796 | { | |
1797 | arg4 = &temp4; | |
1798 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1799 | } | |
1800 | } | |
1801 | if (obj4) { | |
1802 | { | |
1803 | arg5 = &temp5; | |
1804 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1805 | } | |
1806 | } | |
1807 | if (obj5) { | |
1808 | { | |
1809 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1810 | if (PyErr_Occurred()) SWIG_fail; | |
1811 | } | |
1812 | } | |
1813 | if (obj6) { | |
1814 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1815 | if (arg7 == NULL) { | |
1816 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1817 | } | |
1818 | } | |
1819 | if (obj7) { | |
1820 | { | |
1821 | arg8 = wxString_in_helper(obj7); | |
1822 | if (arg8 == NULL) SWIG_fail; | |
1823 | temp8 = True; | |
1824 | } | |
1825 | } | |
1826 | { | |
1827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1828 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1829 | ||
1830 | wxPyEndAllowThreads(__tstate); | |
1831 | if (PyErr_Occurred()) SWIG_fail; | |
1832 | } | |
1833 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1834 | { | |
1835 | if (temp3) | |
1836 | delete arg3; | |
1837 | } | |
1838 | { | |
1839 | if (temp8) | |
1840 | delete arg8; | |
1841 | } | |
1842 | return resultobj; | |
1843 | fail: | |
1844 | { | |
1845 | if (temp3) | |
1846 | delete arg3; | |
1847 | } | |
1848 | { | |
1849 | if (temp8) | |
1850 | delete arg8; | |
1851 | } | |
1852 | return NULL; | |
1853 | } | |
1854 | ||
1855 | ||
1856 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1857 | PyObject *resultobj; | |
1858 | wxCheckBox *result; | |
1859 | char *kwnames[] = { | |
1860 | NULL | |
1861 | }; | |
1862 | ||
1863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
1864 | { | |
1865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1866 | result = (wxCheckBox *)new wxCheckBox(); | |
1867 | ||
1868 | wxPyEndAllowThreads(__tstate); | |
1869 | if (PyErr_Occurred()) SWIG_fail; | |
1870 | } | |
1871 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1872 | return resultobj; | |
1873 | fail: | |
1874 | return NULL; | |
1875 | } | |
1876 | ||
1877 | ||
1878 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1879 | PyObject *resultobj; | |
1880 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1881 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1882 | int arg3 ; | |
1883 | wxString *arg4 = 0 ; | |
1884 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1885 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1886 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1887 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1888 | long arg7 = (long) 0 ; | |
1889 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1890 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1891 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
1892 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1893 | bool result; | |
1894 | bool temp4 = False ; | |
1895 | wxPoint temp5 ; | |
1896 | wxSize temp6 ; | |
1897 | bool temp9 = False ; | |
1898 | PyObject * obj0 = 0 ; | |
1899 | PyObject * obj1 = 0 ; | |
1900 | PyObject * obj2 = 0 ; | |
1901 | PyObject * obj3 = 0 ; | |
1902 | PyObject * obj4 = 0 ; | |
1903 | PyObject * obj5 = 0 ; | |
1904 | PyObject * obj6 = 0 ; | |
1905 | PyObject * obj7 = 0 ; | |
1906 | PyObject * obj8 = 0 ; | |
1907 | char *kwnames[] = { | |
1908 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1909 | }; | |
1910 | ||
1911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
1912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1913 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1914 | { | |
1915 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1916 | if (PyErr_Occurred()) SWIG_fail; | |
1917 | } | |
1918 | { | |
1919 | arg4 = wxString_in_helper(obj3); | |
1920 | if (arg4 == NULL) SWIG_fail; | |
1921 | temp4 = True; | |
1922 | } | |
1923 | if (obj4) { | |
1924 | { | |
1925 | arg5 = &temp5; | |
1926 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1927 | } | |
1928 | } | |
1929 | if (obj5) { | |
1930 | { | |
1931 | arg6 = &temp6; | |
1932 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1933 | } | |
1934 | } | |
1935 | if (obj6) { | |
1936 | { | |
1937 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
1938 | if (PyErr_Occurred()) SWIG_fail; | |
1939 | } | |
1940 | } | |
1941 | if (obj7) { | |
1942 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1943 | if (arg8 == NULL) { | |
1944 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1945 | } | |
1946 | } | |
1947 | if (obj8) { | |
1948 | { | |
1949 | arg9 = wxString_in_helper(obj8); | |
1950 | if (arg9 == NULL) SWIG_fail; | |
1951 | temp9 = True; | |
1952 | } | |
1953 | } | |
1954 | { | |
1955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1956 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1957 | ||
1958 | wxPyEndAllowThreads(__tstate); | |
1959 | if (PyErr_Occurred()) SWIG_fail; | |
1960 | } | |
1961 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
1962 | { | |
1963 | if (temp4) | |
1964 | delete arg4; | |
1965 | } | |
1966 | { | |
1967 | if (temp9) | |
1968 | delete arg9; | |
1969 | } | |
1970 | return resultobj; | |
1971 | fail: | |
1972 | { | |
1973 | if (temp4) | |
1974 | delete arg4; | |
1975 | } | |
1976 | { | |
1977 | if (temp9) | |
1978 | delete arg9; | |
1979 | } | |
1980 | return NULL; | |
1981 | } | |
1982 | ||
1983 | ||
1984 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1985 | PyObject *resultobj; | |
1986 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1987 | bool result; | |
1988 | PyObject * obj0 = 0 ; | |
1989 | char *kwnames[] = { | |
1990 | (char *) "self", NULL | |
1991 | }; | |
1992 | ||
1993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
1994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1995 | { | |
1996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1997 | result = (bool)(arg1)->GetValue(); | |
1998 | ||
1999 | wxPyEndAllowThreads(__tstate); | |
2000 | if (PyErr_Occurred()) SWIG_fail; | |
2001 | } | |
2002 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
2003 | return resultobj; | |
2004 | fail: | |
2005 | return NULL; | |
2006 | } | |
2007 | ||
2008 | ||
2009 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2010 | PyObject *resultobj; | |
2011 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2012 | bool result; | |
2013 | PyObject * obj0 = 0 ; | |
2014 | char *kwnames[] = { | |
2015 | (char *) "self", NULL | |
2016 | }; | |
2017 | ||
2018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2020 | { | |
2021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2022 | result = (bool)(arg1)->IsChecked(); | |
2023 | ||
2024 | wxPyEndAllowThreads(__tstate); | |
2025 | if (PyErr_Occurred()) SWIG_fail; | |
2026 | } | |
2027 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
2028 | return resultobj; | |
2029 | fail: | |
2030 | return NULL; | |
2031 | } | |
2032 | ||
2033 | ||
2034 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2035 | PyObject *resultobj; | |
2036 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2037 | bool arg2 ; | |
2038 | PyObject * obj0 = 0 ; | |
2039 | PyObject * obj1 = 0 ; | |
2040 | char *kwnames[] = { | |
2041 | (char *) "self",(char *) "state", NULL | |
2042 | }; | |
2043 | ||
2044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2046 | { | |
2047 | arg2 = (bool const) SWIG_PyObj_AsBool(obj1); | |
2048 | if (PyErr_Occurred()) SWIG_fail; | |
2049 | } | |
2050 | { | |
2051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2052 | (arg1)->SetValue(arg2); | |
2053 | ||
2054 | wxPyEndAllowThreads(__tstate); | |
2055 | if (PyErr_Occurred()) SWIG_fail; | |
2056 | } | |
2057 | Py_INCREF(Py_None); resultobj = Py_None; | |
2058 | return resultobj; | |
2059 | fail: | |
2060 | return NULL; | |
2061 | } | |
2062 | ||
2063 | ||
2064 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2065 | PyObject *resultobj; | |
2066 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2067 | int result; | |
2068 | PyObject * obj0 = 0 ; | |
2069 | char *kwnames[] = { | |
2070 | (char *) "self", NULL | |
2071 | }; | |
2072 | ||
2073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2075 | { | |
2076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2077 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2078 | ||
2079 | wxPyEndAllowThreads(__tstate); | |
2080 | if (PyErr_Occurred()) SWIG_fail; | |
2081 | } | |
2082 | resultobj = SWIG_PyObj_FromInt((int)result); | |
2083 | return resultobj; | |
2084 | fail: | |
2085 | return NULL; | |
2086 | } | |
2087 | ||
2088 | ||
2089 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2090 | PyObject *resultobj; | |
2091 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2092 | int arg2 ; | |
2093 | PyObject * obj0 = 0 ; | |
2094 | PyObject * obj1 = 0 ; | |
2095 | char *kwnames[] = { | |
2096 | (char *) "self",(char *) "state", NULL | |
2097 | }; | |
2098 | ||
2099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; | |
2100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2101 | { | |
2102 | arg2 = (wxCheckBoxState) SWIG_PyObj_AsInt(obj1); | |
2103 | if (PyErr_Occurred()) SWIG_fail; | |
2104 | } | |
2105 | { | |
2106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2107 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2108 | ||
2109 | wxPyEndAllowThreads(__tstate); | |
2110 | if (PyErr_Occurred()) SWIG_fail; | |
2111 | } | |
2112 | Py_INCREF(Py_None); resultobj = Py_None; | |
2113 | return resultobj; | |
2114 | fail: | |
2115 | return NULL; | |
2116 | } | |
2117 | ||
2118 | ||
2119 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2120 | PyObject *resultobj; | |
2121 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2122 | bool result; | |
2123 | PyObject * obj0 = 0 ; | |
2124 | char *kwnames[] = { | |
2125 | (char *) "self", NULL | |
2126 | }; | |
2127 | ||
2128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2130 | { | |
2131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2132 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2133 | ||
2134 | wxPyEndAllowThreads(__tstate); | |
2135 | if (PyErr_Occurred()) SWIG_fail; | |
2136 | } | |
2137 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
2138 | return resultobj; | |
2139 | fail: | |
2140 | return NULL; | |
2141 | } | |
2142 | ||
2143 | ||
2144 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2145 | PyObject *resultobj; | |
2146 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2147 | bool result; | |
2148 | PyObject * obj0 = 0 ; | |
2149 | char *kwnames[] = { | |
2150 | (char *) "self", NULL | |
2151 | }; | |
2152 | ||
2153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2155 | { | |
2156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2157 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2158 | ||
2159 | wxPyEndAllowThreads(__tstate); | |
2160 | if (PyErr_Occurred()) SWIG_fail; | |
2161 | } | |
2162 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
2163 | return resultobj; | |
2164 | fail: | |
2165 | return NULL; | |
2166 | } | |
2167 | ||
2168 | ||
2169 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { | |
2170 | PyObject *obj; | |
2171 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2172 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2173 | Py_INCREF(obj); | |
2174 | return Py_BuildValue((char *)""); | |
2175 | } | |
2176 | static int _wrap_ChoiceNameStr_set(PyObject *) { | |
2177 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); | |
2178 | return 1; | |
2179 | } | |
2180 | ||
2181 | ||
2182 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2183 | PyObject *pyobj; | |
2184 | ||
2185 | { | |
2186 | #if wxUSE_UNICODE | |
2187 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2188 | #else | |
2189 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2190 | #endif | |
2191 | } | |
2192 | return pyobj; | |
2193 | } | |
2194 | ||
2195 | ||
2196 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2197 | PyObject *resultobj; | |
2198 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2199 | int arg2 ; | |
2200 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
2201 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2202 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2203 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
2204 | int arg5 = (int) 0 ; | |
2205 | wxString *arg6 = (wxString *) NULL ; | |
2206 | long arg7 = (long) 0 ; | |
2207 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2208 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2209 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2210 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2211 | wxChoice *result; | |
2212 | wxPoint temp3 ; | |
2213 | wxSize temp4 ; | |
2214 | bool temp8 = False ; | |
2215 | PyObject * obj0 = 0 ; | |
2216 | PyObject * obj1 = 0 ; | |
2217 | PyObject * obj2 = 0 ; | |
2218 | PyObject * obj3 = 0 ; | |
2219 | PyObject * obj4 = 0 ; | |
2220 | PyObject * obj5 = 0 ; | |
2221 | PyObject * obj6 = 0 ; | |
2222 | PyObject * obj7 = 0 ; | |
2223 | char *kwnames[] = { | |
2224 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2225 | }; | |
2226 | ||
2227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
2228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2229 | { | |
2230 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2231 | if (PyErr_Occurred()) SWIG_fail; | |
2232 | } | |
2233 | if (obj2) { | |
2234 | { | |
2235 | arg3 = &temp3; | |
2236 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2237 | } | |
2238 | } | |
2239 | if (obj3) { | |
2240 | { | |
2241 | arg4 = &temp4; | |
2242 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2243 | } | |
2244 | } | |
2245 | if (obj4) { | |
2246 | { | |
2247 | arg5 = PyList_Size(obj4); | |
2248 | arg6 = wxString_LIST_helper(obj4); | |
2249 | if (arg6 == NULL) SWIG_fail; | |
2250 | } | |
2251 | } | |
2252 | if (obj5) { | |
2253 | { | |
2254 | arg7 = (long) SWIG_PyObj_AsLong(obj5); | |
2255 | if (PyErr_Occurred()) SWIG_fail; | |
2256 | } | |
2257 | } | |
2258 | if (obj6) { | |
2259 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2260 | if (arg8 == NULL) { | |
2261 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2262 | } | |
2263 | } | |
2264 | if (obj7) { | |
2265 | { | |
2266 | arg9 = wxString_in_helper(obj7); | |
2267 | if (arg9 == NULL) SWIG_fail; | |
2268 | temp8 = True; | |
2269 | } | |
2270 | } | |
2271 | { | |
2272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2273 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2274 | ||
2275 | wxPyEndAllowThreads(__tstate); | |
2276 | if (PyErr_Occurred()) SWIG_fail; | |
2277 | } | |
2278 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2279 | { | |
2280 | if (arg6) delete [] arg6; | |
2281 | } | |
2282 | { | |
2283 | if (temp8) | |
2284 | delete arg9; | |
2285 | } | |
2286 | return resultobj; | |
2287 | fail: | |
2288 | { | |
2289 | if (arg6) delete [] arg6; | |
2290 | } | |
2291 | { | |
2292 | if (temp8) | |
2293 | delete arg9; | |
2294 | } | |
2295 | return NULL; | |
2296 | } | |
2297 | ||
2298 | ||
2299 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2300 | PyObject *resultobj; | |
2301 | wxChoice *result; | |
2302 | char *kwnames[] = { | |
2303 | NULL | |
2304 | }; | |
2305 | ||
2306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2307 | { | |
2308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2309 | result = (wxChoice *)new wxChoice(); | |
2310 | ||
2311 | wxPyEndAllowThreads(__tstate); | |
2312 | if (PyErr_Occurred()) SWIG_fail; | |
2313 | } | |
2314 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2315 | return resultobj; | |
2316 | fail: | |
2317 | return NULL; | |
2318 | } | |
2319 | ||
2320 | ||
2321 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2322 | PyObject *resultobj; | |
2323 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2324 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2325 | int arg3 ; | |
2326 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2327 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2328 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2329 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2330 | int arg6 = (int) 0 ; | |
2331 | wxString *arg7 = (wxString *) NULL ; | |
2332 | long arg8 = (long) 0 ; | |
2333 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2334 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2335 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
2336 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
2337 | bool result; | |
2338 | wxPoint temp4 ; | |
2339 | wxSize temp5 ; | |
2340 | bool temp9 = False ; | |
2341 | PyObject * obj0 = 0 ; | |
2342 | PyObject * obj1 = 0 ; | |
2343 | PyObject * obj2 = 0 ; | |
2344 | PyObject * obj3 = 0 ; | |
2345 | PyObject * obj4 = 0 ; | |
2346 | PyObject * obj5 = 0 ; | |
2347 | PyObject * obj6 = 0 ; | |
2348 | PyObject * obj7 = 0 ; | |
2349 | PyObject * obj8 = 0 ; | |
2350 | char *kwnames[] = { | |
2351 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2352 | }; | |
2353 | ||
2354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2356 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2357 | { | |
2358 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2359 | if (PyErr_Occurred()) SWIG_fail; | |
2360 | } | |
2361 | if (obj3) { | |
2362 | { | |
2363 | arg4 = &temp4; | |
2364 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2365 | } | |
2366 | } | |
2367 | if (obj4) { | |
2368 | { | |
2369 | arg5 = &temp5; | |
2370 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2371 | } | |
2372 | } | |
2373 | if (obj5) { | |
2374 | { | |
2375 | arg6 = PyList_Size(obj5); | |
2376 | arg7 = wxString_LIST_helper(obj5); | |
2377 | if (arg7 == NULL) SWIG_fail; | |
2378 | } | |
2379 | } | |
2380 | if (obj6) { | |
2381 | { | |
2382 | arg8 = (long) SWIG_PyObj_AsLong(obj6); | |
2383 | if (PyErr_Occurred()) SWIG_fail; | |
2384 | } | |
2385 | } | |
2386 | if (obj7) { | |
2387 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2388 | if (arg9 == NULL) { | |
2389 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2390 | } | |
2391 | } | |
2392 | if (obj8) { | |
2393 | { | |
2394 | arg10 = wxString_in_helper(obj8); | |
2395 | if (arg10 == NULL) SWIG_fail; | |
2396 | temp9 = True; | |
2397 | } | |
2398 | } | |
2399 | { | |
2400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2401 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
2402 | ||
2403 | wxPyEndAllowThreads(__tstate); | |
2404 | if (PyErr_Occurred()) SWIG_fail; | |
2405 | } | |
2406 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
2407 | { | |
2408 | if (arg7) delete [] arg7; | |
2409 | } | |
2410 | { | |
2411 | if (temp9) | |
2412 | delete arg10; | |
2413 | } | |
2414 | return resultobj; | |
2415 | fail: | |
2416 | { | |
2417 | if (arg7) delete [] arg7; | |
2418 | } | |
2419 | { | |
2420 | if (temp9) | |
2421 | delete arg10; | |
2422 | } | |
2423 | return NULL; | |
2424 | } | |
2425 | ||
2426 | ||
2427 | static PyObject *_wrap_Choice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2428 | PyObject *resultobj; | |
2429 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2430 | int result; | |
2431 | PyObject * obj0 = 0 ; | |
2432 | char *kwnames[] = { | |
2433 | (char *) "self", NULL | |
2434 | }; | |
2435 | ||
2436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choice_GetColumns",kwnames,&obj0)) goto fail; | |
2437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2438 | { | |
2439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2440 | result = (int)(arg1)->GetColumns(); | |
2441 | ||
2442 | wxPyEndAllowThreads(__tstate); | |
2443 | if (PyErr_Occurred()) SWIG_fail; | |
2444 | } | |
2445 | resultobj = SWIG_PyObj_FromInt((int)result); | |
2446 | return resultobj; | |
2447 | fail: | |
2448 | return NULL; | |
2449 | } | |
2450 | ||
2451 | ||
2452 | static PyObject *_wrap_Choice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2453 | PyObject *resultobj; | |
2454 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2455 | int arg2 = (int) (int)1 ; | |
2456 | PyObject * obj0 = 0 ; | |
2457 | PyObject * obj1 = 0 ; | |
2458 | char *kwnames[] = { | |
2459 | (char *) "self",(char *) "n", NULL | |
2460 | }; | |
2461 | ||
2462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Choice_SetColumns",kwnames,&obj0,&obj1)) goto fail; | |
2463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2464 | if (obj1) { | |
2465 | { | |
2466 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
2467 | if (PyErr_Occurred()) SWIG_fail; | |
2468 | } | |
2469 | } | |
2470 | { | |
2471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2472 | (arg1)->SetColumns(arg2); | |
2473 | ||
2474 | wxPyEndAllowThreads(__tstate); | |
2475 | if (PyErr_Occurred()) SWIG_fail; | |
2476 | } | |
2477 | Py_INCREF(Py_None); resultobj = Py_None; | |
2478 | return resultobj; | |
2479 | fail: | |
2480 | return NULL; | |
2481 | } | |
2482 | ||
2483 | ||
2484 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2485 | PyObject *resultobj; | |
2486 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2487 | int arg2 ; | |
2488 | PyObject * obj0 = 0 ; | |
2489 | PyObject * obj1 = 0 ; | |
2490 | char *kwnames[] = { | |
2491 | (char *) "self",(char *) "n", NULL | |
2492 | }; | |
2493 | ||
2494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
2495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2496 | { | |
2497 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
2498 | if (PyErr_Occurred()) SWIG_fail; | |
2499 | } | |
2500 | { | |
2501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2502 | (arg1)->SetSelection(arg2); | |
2503 | ||
2504 | wxPyEndAllowThreads(__tstate); | |
2505 | if (PyErr_Occurred()) SWIG_fail; | |
2506 | } | |
2507 | Py_INCREF(Py_None); resultobj = Py_None; | |
2508 | return resultobj; | |
2509 | fail: | |
2510 | return NULL; | |
2511 | } | |
2512 | ||
2513 | ||
2514 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2515 | PyObject *resultobj; | |
2516 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2517 | wxString *arg2 = 0 ; | |
2518 | bool temp2 = False ; | |
2519 | PyObject * obj0 = 0 ; | |
2520 | PyObject * obj1 = 0 ; | |
2521 | char *kwnames[] = { | |
2522 | (char *) "self",(char *) "string", NULL | |
2523 | }; | |
2524 | ||
2525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2527 | { | |
2528 | arg2 = wxString_in_helper(obj1); | |
2529 | if (arg2 == NULL) SWIG_fail; | |
2530 | temp2 = True; | |
2531 | } | |
2532 | { | |
2533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2534 | (arg1)->SetStringSelection((wxString const &)*arg2); | |
2535 | ||
2536 | wxPyEndAllowThreads(__tstate); | |
2537 | if (PyErr_Occurred()) SWIG_fail; | |
2538 | } | |
2539 | Py_INCREF(Py_None); resultobj = Py_None; | |
2540 | { | |
2541 | if (temp2) | |
2542 | delete arg2; | |
2543 | } | |
2544 | return resultobj; | |
2545 | fail: | |
2546 | { | |
2547 | if (temp2) | |
2548 | delete arg2; | |
2549 | } | |
2550 | return NULL; | |
2551 | } | |
2552 | ||
2553 | ||
2554 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2555 | PyObject *resultobj; | |
2556 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2557 | int arg2 ; | |
2558 | wxString *arg3 = 0 ; | |
2559 | bool temp3 = False ; | |
2560 | PyObject * obj0 = 0 ; | |
2561 | PyObject * obj1 = 0 ; | |
2562 | PyObject * obj2 = 0 ; | |
2563 | char *kwnames[] = { | |
2564 | (char *) "self",(char *) "n",(char *) "s", NULL | |
2565 | }; | |
2566 | ||
2567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2569 | { | |
2570 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2571 | if (PyErr_Occurred()) SWIG_fail; | |
2572 | } | |
2573 | { | |
2574 | arg3 = wxString_in_helper(obj2); | |
2575 | if (arg3 == NULL) SWIG_fail; | |
2576 | temp3 = True; | |
2577 | } | |
2578 | { | |
2579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2580 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2581 | ||
2582 | wxPyEndAllowThreads(__tstate); | |
2583 | if (PyErr_Occurred()) SWIG_fail; | |
2584 | } | |
2585 | Py_INCREF(Py_None); resultobj = Py_None; | |
2586 | { | |
2587 | if (temp3) | |
2588 | delete arg3; | |
2589 | } | |
2590 | return resultobj; | |
2591 | fail: | |
2592 | { | |
2593 | if (temp3) | |
2594 | delete arg3; | |
2595 | } | |
2596 | return NULL; | |
2597 | } | |
2598 | ||
2599 | ||
2600 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2601 | PyObject *obj; | |
2602 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2603 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2604 | Py_INCREF(obj); | |
2605 | return Py_BuildValue((char *)""); | |
2606 | } | |
2607 | static int _wrap_ComboBoxNameStr_set(PyObject *) { | |
2608 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); | |
2609 | return 1; | |
2610 | } | |
2611 | ||
2612 | ||
2613 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2614 | PyObject *pyobj; | |
2615 | ||
2616 | { | |
2617 | #if wxUSE_UNICODE | |
2618 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2619 | #else | |
2620 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2621 | #endif | |
2622 | } | |
2623 | return pyobj; | |
2624 | } | |
2625 | ||
2626 | ||
2627 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2628 | PyObject *resultobj; | |
2629 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2630 | int arg2 ; | |
2631 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2632 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2633 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2634 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2635 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2636 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2637 | int arg6 = (int) 0 ; | |
2638 | wxString *arg7 = (wxString *) NULL ; | |
2639 | long arg8 = (long) 0 ; | |
2640 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2641 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2642 | wxString const &arg10_defvalue = wxPyComboBoxNameStr ; | |
2643 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
2644 | wxComboBox *result; | |
2645 | bool temp3 = False ; | |
2646 | wxPoint temp4 ; | |
2647 | wxSize temp5 ; | |
2648 | bool temp9 = False ; | |
2649 | PyObject * obj0 = 0 ; | |
2650 | PyObject * obj1 = 0 ; | |
2651 | PyObject * obj2 = 0 ; | |
2652 | PyObject * obj3 = 0 ; | |
2653 | PyObject * obj4 = 0 ; | |
2654 | PyObject * obj5 = 0 ; | |
2655 | PyObject * obj6 = 0 ; | |
2656 | PyObject * obj7 = 0 ; | |
2657 | PyObject * obj8 = 0 ; | |
2658 | char *kwnames[] = { | |
2659 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2660 | }; | |
2661 | ||
2662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2664 | { | |
2665 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2666 | if (PyErr_Occurred()) SWIG_fail; | |
2667 | } | |
2668 | if (obj2) { | |
2669 | { | |
2670 | arg3 = wxString_in_helper(obj2); | |
2671 | if (arg3 == NULL) SWIG_fail; | |
2672 | temp3 = True; | |
2673 | } | |
2674 | } | |
2675 | if (obj3) { | |
2676 | { | |
2677 | arg4 = &temp4; | |
2678 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2679 | } | |
2680 | } | |
2681 | if (obj4) { | |
2682 | { | |
2683 | arg5 = &temp5; | |
2684 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2685 | } | |
2686 | } | |
2687 | if (obj5) { | |
2688 | { | |
2689 | arg6 = PyList_Size(obj5); | |
2690 | arg7 = wxString_LIST_helper(obj5); | |
2691 | if (arg7 == NULL) SWIG_fail; | |
2692 | } | |
2693 | } | |
2694 | if (obj6) { | |
2695 | { | |
2696 | arg8 = (long) SWIG_PyObj_AsLong(obj6); | |
2697 | if (PyErr_Occurred()) SWIG_fail; | |
2698 | } | |
2699 | } | |
2700 | if (obj7) { | |
2701 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2702 | if (arg9 == NULL) { | |
2703 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2704 | } | |
2705 | } | |
2706 | if (obj8) { | |
2707 | { | |
2708 | arg10 = wxString_in_helper(obj8); | |
2709 | if (arg10 == NULL) SWIG_fail; | |
2710 | temp9 = True; | |
2711 | } | |
2712 | } | |
2713 | { | |
2714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2715 | result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
2716 | ||
2717 | wxPyEndAllowThreads(__tstate); | |
2718 | if (PyErr_Occurred()) SWIG_fail; | |
2719 | } | |
2720 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2721 | { | |
2722 | if (temp3) | |
2723 | delete arg3; | |
2724 | } | |
2725 | { | |
2726 | if (arg7) delete [] arg7; | |
2727 | } | |
2728 | { | |
2729 | if (temp9) | |
2730 | delete arg10; | |
2731 | } | |
2732 | return resultobj; | |
2733 | fail: | |
2734 | { | |
2735 | if (temp3) | |
2736 | delete arg3; | |
2737 | } | |
2738 | { | |
2739 | if (arg7) delete [] arg7; | |
2740 | } | |
2741 | { | |
2742 | if (temp9) | |
2743 | delete arg10; | |
2744 | } | |
2745 | return NULL; | |
2746 | } | |
2747 | ||
2748 | ||
2749 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2750 | PyObject *resultobj; | |
2751 | wxComboBox *result; | |
2752 | char *kwnames[] = { | |
2753 | NULL | |
2754 | }; | |
2755 | ||
2756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2757 | { | |
2758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2759 | result = (wxComboBox *)new wxComboBox(); | |
2760 | ||
2761 | wxPyEndAllowThreads(__tstate); | |
2762 | if (PyErr_Occurred()) SWIG_fail; | |
2763 | } | |
2764 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2765 | return resultobj; | |
2766 | fail: | |
2767 | return NULL; | |
2768 | } | |
2769 | ||
2770 | ||
2771 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2772 | PyObject *resultobj; | |
2773 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2774 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2775 | int arg3 ; | |
2776 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2777 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2778 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2779 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2780 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2781 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2782 | int arg7 = (int) 0 ; | |
2783 | wxString *arg8 = (wxString *) NULL ; | |
2784 | long arg9 = (long) 0 ; | |
2785 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
2786 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
2787 | wxString const &arg11_defvalue = wxPyComboBoxNameStr ; | |
2788 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
2789 | bool result; | |
2790 | bool temp4 = False ; | |
2791 | wxPoint temp5 ; | |
2792 | wxSize temp6 ; | |
2793 | bool temp10 = False ; | |
2794 | PyObject * obj0 = 0 ; | |
2795 | PyObject * obj1 = 0 ; | |
2796 | PyObject * obj2 = 0 ; | |
2797 | PyObject * obj3 = 0 ; | |
2798 | PyObject * obj4 = 0 ; | |
2799 | PyObject * obj5 = 0 ; | |
2800 | PyObject * obj6 = 0 ; | |
2801 | PyObject * obj7 = 0 ; | |
2802 | PyObject * obj8 = 0 ; | |
2803 | PyObject * obj9 = 0 ; | |
2804 | char *kwnames[] = { | |
2805 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2806 | }; | |
2807 | ||
2808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
2809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2810 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2811 | { | |
2812 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2813 | if (PyErr_Occurred()) SWIG_fail; | |
2814 | } | |
2815 | if (obj3) { | |
2816 | { | |
2817 | arg4 = wxString_in_helper(obj3); | |
2818 | if (arg4 == NULL) SWIG_fail; | |
2819 | temp4 = True; | |
2820 | } | |
2821 | } | |
2822 | if (obj4) { | |
2823 | { | |
2824 | arg5 = &temp5; | |
2825 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2826 | } | |
2827 | } | |
2828 | if (obj5) { | |
2829 | { | |
2830 | arg6 = &temp6; | |
2831 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2832 | } | |
2833 | } | |
2834 | if (obj6) { | |
2835 | { | |
2836 | arg7 = PyList_Size(obj6); | |
2837 | arg8 = wxString_LIST_helper(obj6); | |
2838 | if (arg8 == NULL) SWIG_fail; | |
2839 | } | |
2840 | } | |
2841 | if (obj7) { | |
2842 | { | |
2843 | arg9 = (long) SWIG_PyObj_AsLong(obj7); | |
2844 | if (PyErr_Occurred()) SWIG_fail; | |
2845 | } | |
2846 | } | |
2847 | if (obj8) { | |
2848 | if ((SWIG_ConvertPtr(obj8,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2849 | if (arg10 == NULL) { | |
2850 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2851 | } | |
2852 | } | |
2853 | if (obj9) { | |
2854 | { | |
2855 | arg11 = wxString_in_helper(obj9); | |
2856 | if (arg11 == NULL) SWIG_fail; | |
2857 | temp10 = True; | |
2858 | } | |
2859 | } | |
2860 | { | |
2861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2862 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
2863 | ||
2864 | wxPyEndAllowThreads(__tstate); | |
2865 | if (PyErr_Occurred()) SWIG_fail; | |
2866 | } | |
2867 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
2868 | { | |
2869 | if (temp4) | |
2870 | delete arg4; | |
2871 | } | |
2872 | { | |
2873 | if (arg8) delete [] arg8; | |
2874 | } | |
2875 | { | |
2876 | if (temp10) | |
2877 | delete arg11; | |
2878 | } | |
2879 | return resultobj; | |
2880 | fail: | |
2881 | { | |
2882 | if (temp4) | |
2883 | delete arg4; | |
2884 | } | |
2885 | { | |
2886 | if (arg8) delete [] arg8; | |
2887 | } | |
2888 | { | |
2889 | if (temp10) | |
2890 | delete arg11; | |
2891 | } | |
2892 | return NULL; | |
2893 | } | |
2894 | ||
2895 | ||
2896 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2897 | PyObject *resultobj; | |
2898 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2899 | wxString result; | |
2900 | PyObject * obj0 = 0 ; | |
2901 | char *kwnames[] = { | |
2902 | (char *) "self", NULL | |
2903 | }; | |
2904 | ||
2905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
2906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2907 | { | |
2908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2909 | result = ((wxComboBox const *)arg1)->GetValue(); | |
2910 | ||
2911 | wxPyEndAllowThreads(__tstate); | |
2912 | if (PyErr_Occurred()) SWIG_fail; | |
2913 | } | |
2914 | { | |
2915 | #if wxUSE_UNICODE | |
2916 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2917 | #else | |
2918 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2919 | #endif | |
2920 | } | |
2921 | return resultobj; | |
2922 | fail: | |
2923 | return NULL; | |
2924 | } | |
2925 | ||
2926 | ||
2927 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2928 | PyObject *resultobj; | |
2929 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2930 | wxString *arg2 = 0 ; | |
2931 | bool temp2 = False ; | |
2932 | PyObject * obj0 = 0 ; | |
2933 | PyObject * obj1 = 0 ; | |
2934 | char *kwnames[] = { | |
2935 | (char *) "self",(char *) "value", NULL | |
2936 | }; | |
2937 | ||
2938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2940 | { | |
2941 | arg2 = wxString_in_helper(obj1); | |
2942 | if (arg2 == NULL) SWIG_fail; | |
2943 | temp2 = True; | |
2944 | } | |
2945 | { | |
2946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2947 | (arg1)->SetValue((wxString const &)*arg2); | |
2948 | ||
2949 | wxPyEndAllowThreads(__tstate); | |
2950 | if (PyErr_Occurred()) SWIG_fail; | |
2951 | } | |
2952 | Py_INCREF(Py_None); resultobj = Py_None; | |
2953 | { | |
2954 | if (temp2) | |
2955 | delete arg2; | |
2956 | } | |
2957 | return resultobj; | |
2958 | fail: | |
2959 | { | |
2960 | if (temp2) | |
2961 | delete arg2; | |
2962 | } | |
2963 | return NULL; | |
2964 | } | |
2965 | ||
2966 | ||
2967 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2968 | PyObject *resultobj; | |
2969 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2970 | PyObject * obj0 = 0 ; | |
2971 | char *kwnames[] = { | |
2972 | (char *) "self", NULL | |
2973 | }; | |
2974 | ||
2975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
2976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2977 | { | |
2978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2979 | (arg1)->Copy(); | |
2980 | ||
2981 | wxPyEndAllowThreads(__tstate); | |
2982 | if (PyErr_Occurred()) SWIG_fail; | |
2983 | } | |
2984 | Py_INCREF(Py_None); resultobj = Py_None; | |
2985 | return resultobj; | |
2986 | fail: | |
2987 | return NULL; | |
2988 | } | |
2989 | ||
2990 | ||
2991 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2992 | PyObject *resultobj; | |
2993 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2994 | PyObject * obj0 = 0 ; | |
2995 | char *kwnames[] = { | |
2996 | (char *) "self", NULL | |
2997 | }; | |
2998 | ||
2999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
3000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3001 | { | |
3002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3003 | (arg1)->Cut(); | |
3004 | ||
3005 | wxPyEndAllowThreads(__tstate); | |
3006 | if (PyErr_Occurred()) SWIG_fail; | |
3007 | } | |
3008 | Py_INCREF(Py_None); resultobj = Py_None; | |
3009 | return resultobj; | |
3010 | fail: | |
3011 | return NULL; | |
3012 | } | |
3013 | ||
3014 | ||
3015 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3016 | PyObject *resultobj; | |
3017 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3018 | PyObject * obj0 = 0 ; | |
3019 | char *kwnames[] = { | |
3020 | (char *) "self", NULL | |
3021 | }; | |
3022 | ||
3023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
3024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3025 | { | |
3026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3027 | (arg1)->Paste(); | |
3028 | ||
3029 | wxPyEndAllowThreads(__tstate); | |
3030 | if (PyErr_Occurred()) SWIG_fail; | |
3031 | } | |
3032 | Py_INCREF(Py_None); resultobj = Py_None; | |
3033 | return resultobj; | |
3034 | fail: | |
3035 | return NULL; | |
3036 | } | |
3037 | ||
3038 | ||
3039 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3040 | PyObject *resultobj; | |
3041 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3042 | long arg2 ; | |
3043 | PyObject * obj0 = 0 ; | |
3044 | PyObject * obj1 = 0 ; | |
3045 | char *kwnames[] = { | |
3046 | (char *) "self",(char *) "pos", NULL | |
3047 | }; | |
3048 | ||
3049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
3050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3051 | { | |
3052 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3053 | if (PyErr_Occurred()) SWIG_fail; | |
3054 | } | |
3055 | { | |
3056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3057 | (arg1)->SetInsertionPoint(arg2); | |
3058 | ||
3059 | wxPyEndAllowThreads(__tstate); | |
3060 | if (PyErr_Occurred()) SWIG_fail; | |
3061 | } | |
3062 | Py_INCREF(Py_None); resultobj = Py_None; | |
3063 | return resultobj; | |
3064 | fail: | |
3065 | return NULL; | |
3066 | } | |
3067 | ||
3068 | ||
3069 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3070 | PyObject *resultobj; | |
3071 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3072 | long result; | |
3073 | PyObject * obj0 = 0 ; | |
3074 | char *kwnames[] = { | |
3075 | (char *) "self", NULL | |
3076 | }; | |
3077 | ||
3078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
3079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3080 | { | |
3081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3082 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3083 | ||
3084 | wxPyEndAllowThreads(__tstate); | |
3085 | if (PyErr_Occurred()) SWIG_fail; | |
3086 | } | |
3087 | resultobj = SWIG_PyObj_FromLong((long)result); | |
3088 | return resultobj; | |
3089 | fail: | |
3090 | return NULL; | |
3091 | } | |
3092 | ||
3093 | ||
3094 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3095 | PyObject *resultobj; | |
3096 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3097 | long result; | |
3098 | PyObject * obj0 = 0 ; | |
3099 | char *kwnames[] = { | |
3100 | (char *) "self", NULL | |
3101 | }; | |
3102 | ||
3103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
3104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3105 | { | |
3106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3107 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3108 | ||
3109 | wxPyEndAllowThreads(__tstate); | |
3110 | if (PyErr_Occurred()) SWIG_fail; | |
3111 | } | |
3112 | resultobj = SWIG_PyObj_FromLong((long)result); | |
3113 | return resultobj; | |
3114 | fail: | |
3115 | return NULL; | |
3116 | } | |
3117 | ||
3118 | ||
3119 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3120 | PyObject *resultobj; | |
3121 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3122 | long arg2 ; | |
3123 | long arg3 ; | |
3124 | wxString *arg4 = 0 ; | |
3125 | bool temp4 = False ; | |
3126 | PyObject * obj0 = 0 ; | |
3127 | PyObject * obj1 = 0 ; | |
3128 | PyObject * obj2 = 0 ; | |
3129 | PyObject * obj3 = 0 ; | |
3130 | char *kwnames[] = { | |
3131 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3132 | }; | |
3133 | ||
3134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3136 | { | |
3137 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3138 | if (PyErr_Occurred()) SWIG_fail; | |
3139 | } | |
3140 | { | |
3141 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3142 | if (PyErr_Occurred()) SWIG_fail; | |
3143 | } | |
3144 | { | |
3145 | arg4 = wxString_in_helper(obj3); | |
3146 | if (arg4 == NULL) SWIG_fail; | |
3147 | temp4 = True; | |
3148 | } | |
3149 | { | |
3150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3151 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3152 | ||
3153 | wxPyEndAllowThreads(__tstate); | |
3154 | if (PyErr_Occurred()) SWIG_fail; | |
3155 | } | |
3156 | Py_INCREF(Py_None); resultobj = Py_None; | |
3157 | { | |
3158 | if (temp4) | |
3159 | delete arg4; | |
3160 | } | |
3161 | return resultobj; | |
3162 | fail: | |
3163 | { | |
3164 | if (temp4) | |
3165 | delete arg4; | |
3166 | } | |
3167 | return NULL; | |
3168 | } | |
3169 | ||
3170 | ||
3171 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3172 | PyObject *resultobj; | |
3173 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3174 | int arg2 ; | |
3175 | PyObject * obj0 = 0 ; | |
3176 | PyObject * obj1 = 0 ; | |
3177 | char *kwnames[] = { | |
3178 | (char *) "self",(char *) "n", NULL | |
3179 | }; | |
3180 | ||
3181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
3182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3183 | { | |
3184 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3185 | if (PyErr_Occurred()) SWIG_fail; | |
3186 | } | |
3187 | { | |
3188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3189 | (arg1)->SetSelection(arg2); | |
3190 | ||
3191 | wxPyEndAllowThreads(__tstate); | |
3192 | if (PyErr_Occurred()) SWIG_fail; | |
3193 | } | |
3194 | Py_INCREF(Py_None); resultobj = Py_None; | |
3195 | return resultobj; | |
3196 | fail: | |
3197 | return NULL; | |
3198 | } | |
3199 | ||
3200 | ||
3201 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3202 | PyObject *resultobj; | |
3203 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3204 | long arg2 ; | |
3205 | long arg3 ; | |
3206 | PyObject * obj0 = 0 ; | |
3207 | PyObject * obj1 = 0 ; | |
3208 | PyObject * obj2 = 0 ; | |
3209 | char *kwnames[] = { | |
3210 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3211 | }; | |
3212 | ||
3213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3215 | { | |
3216 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3217 | if (PyErr_Occurred()) SWIG_fail; | |
3218 | } | |
3219 | { | |
3220 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3221 | if (PyErr_Occurred()) SWIG_fail; | |
3222 | } | |
3223 | { | |
3224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3225 | (arg1)->SetSelection(arg2,arg3); | |
3226 | ||
3227 | wxPyEndAllowThreads(__tstate); | |
3228 | if (PyErr_Occurred()) SWIG_fail; | |
3229 | } | |
3230 | Py_INCREF(Py_None); resultobj = Py_None; | |
3231 | return resultobj; | |
3232 | fail: | |
3233 | return NULL; | |
3234 | } | |
3235 | ||
3236 | ||
3237 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3238 | PyObject *resultobj; | |
3239 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3240 | bool arg2 ; | |
3241 | PyObject * obj0 = 0 ; | |
3242 | PyObject * obj1 = 0 ; | |
3243 | char *kwnames[] = { | |
3244 | (char *) "self",(char *) "editable", NULL | |
3245 | }; | |
3246 | ||
3247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
3248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3249 | { | |
3250 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
3251 | if (PyErr_Occurred()) SWIG_fail; | |
3252 | } | |
3253 | { | |
3254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3255 | (arg1)->SetEditable(arg2); | |
3256 | ||
3257 | wxPyEndAllowThreads(__tstate); | |
3258 | if (PyErr_Occurred()) SWIG_fail; | |
3259 | } | |
3260 | Py_INCREF(Py_None); resultobj = Py_None; | |
3261 | return resultobj; | |
3262 | fail: | |
3263 | return NULL; | |
3264 | } | |
3265 | ||
3266 | ||
3267 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3268 | PyObject *resultobj; | |
3269 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3270 | PyObject * obj0 = 0 ; | |
3271 | char *kwnames[] = { | |
3272 | (char *) "self", NULL | |
3273 | }; | |
3274 | ||
3275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
3276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3277 | { | |
3278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3279 | (arg1)->SetInsertionPointEnd(); | |
3280 | ||
3281 | wxPyEndAllowThreads(__tstate); | |
3282 | if (PyErr_Occurred()) SWIG_fail; | |
3283 | } | |
3284 | Py_INCREF(Py_None); resultobj = Py_None; | |
3285 | return resultobj; | |
3286 | fail: | |
3287 | return NULL; | |
3288 | } | |
3289 | ||
3290 | ||
3291 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3292 | PyObject *resultobj; | |
3293 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3294 | long arg2 ; | |
3295 | long arg3 ; | |
3296 | PyObject * obj0 = 0 ; | |
3297 | PyObject * obj1 = 0 ; | |
3298 | PyObject * obj2 = 0 ; | |
3299 | char *kwnames[] = { | |
3300 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3301 | }; | |
3302 | ||
3303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3305 | { | |
3306 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3307 | if (PyErr_Occurred()) SWIG_fail; | |
3308 | } | |
3309 | { | |
3310 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3311 | if (PyErr_Occurred()) SWIG_fail; | |
3312 | } | |
3313 | { | |
3314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3315 | (arg1)->Remove(arg2,arg3); | |
3316 | ||
3317 | wxPyEndAllowThreads(__tstate); | |
3318 | if (PyErr_Occurred()) SWIG_fail; | |
3319 | } | |
3320 | Py_INCREF(Py_None); resultobj = Py_None; | |
3321 | return resultobj; | |
3322 | fail: | |
3323 | return NULL; | |
3324 | } | |
3325 | ||
3326 | ||
3327 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
3328 | PyObject *obj; | |
3329 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3330 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3331 | Py_INCREF(obj); | |
3332 | return Py_BuildValue((char *)""); | |
3333 | } | |
3334 | static int _wrap_GaugeNameStr_set(PyObject *) { | |
3335 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); | |
3336 | return 1; | |
3337 | } | |
3338 | ||
3339 | ||
3340 | static PyObject *_wrap_GaugeNameStr_get() { | |
3341 | PyObject *pyobj; | |
3342 | ||
3343 | { | |
3344 | #if wxUSE_UNICODE | |
3345 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3346 | #else | |
3347 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3348 | #endif | |
3349 | } | |
3350 | return pyobj; | |
3351 | } | |
3352 | ||
3353 | ||
3354 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3355 | PyObject *resultobj; | |
3356 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3357 | int arg2 ; | |
3358 | int arg3 ; | |
3359 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3360 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3361 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3362 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3363 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3364 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3365 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3366 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3367 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3368 | wxGauge *result; | |
3369 | wxPoint temp4 ; | |
3370 | wxSize temp5 ; | |
3371 | bool temp8 = False ; | |
3372 | PyObject * obj0 = 0 ; | |
3373 | PyObject * obj1 = 0 ; | |
3374 | PyObject * obj2 = 0 ; | |
3375 | PyObject * obj3 = 0 ; | |
3376 | PyObject * obj4 = 0 ; | |
3377 | PyObject * obj5 = 0 ; | |
3378 | PyObject * obj6 = 0 ; | |
3379 | PyObject * obj7 = 0 ; | |
3380 | char *kwnames[] = { | |
3381 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3382 | }; | |
3383 | ||
3384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3386 | { | |
3387 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3388 | if (PyErr_Occurred()) SWIG_fail; | |
3389 | } | |
3390 | { | |
3391 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3392 | if (PyErr_Occurred()) SWIG_fail; | |
3393 | } | |
3394 | if (obj3) { | |
3395 | { | |
3396 | arg4 = &temp4; | |
3397 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3398 | } | |
3399 | } | |
3400 | if (obj4) { | |
3401 | { | |
3402 | arg5 = &temp5; | |
3403 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3404 | } | |
3405 | } | |
3406 | if (obj5) { | |
3407 | { | |
3408 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3409 | if (PyErr_Occurred()) SWIG_fail; | |
3410 | } | |
3411 | } | |
3412 | if (obj6) { | |
3413 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3414 | if (arg7 == NULL) { | |
3415 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3416 | } | |
3417 | } | |
3418 | if (obj7) { | |
3419 | { | |
3420 | arg8 = wxString_in_helper(obj7); | |
3421 | if (arg8 == NULL) SWIG_fail; | |
3422 | temp8 = True; | |
3423 | } | |
3424 | } | |
3425 | { | |
3426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3427 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3428 | ||
3429 | wxPyEndAllowThreads(__tstate); | |
3430 | if (PyErr_Occurred()) SWIG_fail; | |
3431 | } | |
3432 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3433 | { | |
3434 | if (temp8) | |
3435 | delete arg8; | |
3436 | } | |
3437 | return resultobj; | |
3438 | fail: | |
3439 | { | |
3440 | if (temp8) | |
3441 | delete arg8; | |
3442 | } | |
3443 | return NULL; | |
3444 | } | |
3445 | ||
3446 | ||
3447 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3448 | PyObject *resultobj; | |
3449 | wxGauge *result; | |
3450 | char *kwnames[] = { | |
3451 | NULL | |
3452 | }; | |
3453 | ||
3454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3455 | { | |
3456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3457 | result = (wxGauge *)new wxGauge(); | |
3458 | ||
3459 | wxPyEndAllowThreads(__tstate); | |
3460 | if (PyErr_Occurred()) SWIG_fail; | |
3461 | } | |
3462 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3463 | return resultobj; | |
3464 | fail: | |
3465 | return NULL; | |
3466 | } | |
3467 | ||
3468 | ||
3469 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3470 | PyObject *resultobj; | |
3471 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3472 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3473 | int arg3 ; | |
3474 | int arg4 ; | |
3475 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3476 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3477 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3478 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3479 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3480 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3481 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3482 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3483 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3484 | bool result; | |
3485 | wxPoint temp5 ; | |
3486 | wxSize temp6 ; | |
3487 | bool temp9 = False ; | |
3488 | PyObject * obj0 = 0 ; | |
3489 | PyObject * obj1 = 0 ; | |
3490 | PyObject * obj2 = 0 ; | |
3491 | PyObject * obj3 = 0 ; | |
3492 | PyObject * obj4 = 0 ; | |
3493 | PyObject * obj5 = 0 ; | |
3494 | PyObject * obj6 = 0 ; | |
3495 | PyObject * obj7 = 0 ; | |
3496 | PyObject * obj8 = 0 ; | |
3497 | char *kwnames[] = { | |
3498 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3499 | }; | |
3500 | ||
3501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3503 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3504 | { | |
3505 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3506 | if (PyErr_Occurred()) SWIG_fail; | |
3507 | } | |
3508 | { | |
3509 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
3510 | if (PyErr_Occurred()) SWIG_fail; | |
3511 | } | |
3512 | if (obj4) { | |
3513 | { | |
3514 | arg5 = &temp5; | |
3515 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3516 | } | |
3517 | } | |
3518 | if (obj5) { | |
3519 | { | |
3520 | arg6 = &temp6; | |
3521 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3522 | } | |
3523 | } | |
3524 | if (obj6) { | |
3525 | { | |
3526 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
3527 | if (PyErr_Occurred()) SWIG_fail; | |
3528 | } | |
3529 | } | |
3530 | if (obj7) { | |
3531 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3532 | if (arg8 == NULL) { | |
3533 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3534 | } | |
3535 | } | |
3536 | if (obj8) { | |
3537 | { | |
3538 | arg9 = wxString_in_helper(obj8); | |
3539 | if (arg9 == NULL) SWIG_fail; | |
3540 | temp9 = True; | |
3541 | } | |
3542 | } | |
3543 | { | |
3544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3545 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3546 | ||
3547 | wxPyEndAllowThreads(__tstate); | |
3548 | if (PyErr_Occurred()) SWIG_fail; | |
3549 | } | |
3550 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
3551 | { | |
3552 | if (temp9) | |
3553 | delete arg9; | |
3554 | } | |
3555 | return resultobj; | |
3556 | fail: | |
3557 | { | |
3558 | if (temp9) | |
3559 | delete arg9; | |
3560 | } | |
3561 | return NULL; | |
3562 | } | |
3563 | ||
3564 | ||
3565 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3566 | PyObject *resultobj; | |
3567 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3568 | int arg2 ; | |
3569 | PyObject * obj0 = 0 ; | |
3570 | PyObject * obj1 = 0 ; | |
3571 | char *kwnames[] = { | |
3572 | (char *) "self",(char *) "range", NULL | |
3573 | }; | |
3574 | ||
3575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; | |
3576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3577 | { | |
3578 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3579 | if (PyErr_Occurred()) SWIG_fail; | |
3580 | } | |
3581 | { | |
3582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3583 | (arg1)->SetRange(arg2); | |
3584 | ||
3585 | wxPyEndAllowThreads(__tstate); | |
3586 | if (PyErr_Occurred()) SWIG_fail; | |
3587 | } | |
3588 | Py_INCREF(Py_None); resultobj = Py_None; | |
3589 | return resultobj; | |
3590 | fail: | |
3591 | return NULL; | |
3592 | } | |
3593 | ||
3594 | ||
3595 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3596 | PyObject *resultobj; | |
3597 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3598 | int result; | |
3599 | PyObject * obj0 = 0 ; | |
3600 | char *kwnames[] = { | |
3601 | (char *) "self", NULL | |
3602 | }; | |
3603 | ||
3604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
3605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3606 | { | |
3607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3608 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3609 | ||
3610 | wxPyEndAllowThreads(__tstate); | |
3611 | if (PyErr_Occurred()) SWIG_fail; | |
3612 | } | |
3613 | resultobj = SWIG_PyObj_FromInt((int)result); | |
3614 | return resultobj; | |
3615 | fail: | |
3616 | return NULL; | |
3617 | } | |
3618 | ||
3619 | ||
3620 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3621 | PyObject *resultobj; | |
3622 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3623 | int arg2 ; | |
3624 | PyObject * obj0 = 0 ; | |
3625 | PyObject * obj1 = 0 ; | |
3626 | char *kwnames[] = { | |
3627 | (char *) "self",(char *) "pos", NULL | |
3628 | }; | |
3629 | ||
3630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
3631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3632 | { | |
3633 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3634 | if (PyErr_Occurred()) SWIG_fail; | |
3635 | } | |
3636 | { | |
3637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3638 | (arg1)->SetValue(arg2); | |
3639 | ||
3640 | wxPyEndAllowThreads(__tstate); | |
3641 | if (PyErr_Occurred()) SWIG_fail; | |
3642 | } | |
3643 | Py_INCREF(Py_None); resultobj = Py_None; | |
3644 | return resultobj; | |
3645 | fail: | |
3646 | return NULL; | |
3647 | } | |
3648 | ||
3649 | ||
3650 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3651 | PyObject *resultobj; | |
3652 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3653 | int result; | |
3654 | PyObject * obj0 = 0 ; | |
3655 | char *kwnames[] = { | |
3656 | (char *) "self", NULL | |
3657 | }; | |
3658 | ||
3659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
3660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3661 | { | |
3662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3663 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3664 | ||
3665 | wxPyEndAllowThreads(__tstate); | |
3666 | if (PyErr_Occurred()) SWIG_fail; | |
3667 | } | |
3668 | resultobj = SWIG_PyObj_FromInt((int)result); | |
3669 | return resultobj; | |
3670 | fail: | |
3671 | return NULL; | |
3672 | } | |
3673 | ||
3674 | ||
3675 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3676 | PyObject *resultobj; | |
3677 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3678 | bool result; | |
3679 | PyObject * obj0 = 0 ; | |
3680 | char *kwnames[] = { | |
3681 | (char *) "self", NULL | |
3682 | }; | |
3683 | ||
3684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
3685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3686 | { | |
3687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3688 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3689 | ||
3690 | wxPyEndAllowThreads(__tstate); | |
3691 | if (PyErr_Occurred()) SWIG_fail; | |
3692 | } | |
3693 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
3694 | return resultobj; | |
3695 | fail: | |
3696 | return NULL; | |
3697 | } | |
3698 | ||
3699 | ||
3700 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3701 | PyObject *resultobj; | |
3702 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3703 | int arg2 ; | |
3704 | PyObject * obj0 = 0 ; | |
3705 | PyObject * obj1 = 0 ; | |
3706 | char *kwnames[] = { | |
3707 | (char *) "self",(char *) "w", NULL | |
3708 | }; | |
3709 | ||
3710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; | |
3711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3712 | { | |
3713 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3714 | if (PyErr_Occurred()) SWIG_fail; | |
3715 | } | |
3716 | { | |
3717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3718 | (arg1)->SetShadowWidth(arg2); | |
3719 | ||
3720 | wxPyEndAllowThreads(__tstate); | |
3721 | if (PyErr_Occurred()) SWIG_fail; | |
3722 | } | |
3723 | Py_INCREF(Py_None); resultobj = Py_None; | |
3724 | return resultobj; | |
3725 | fail: | |
3726 | return NULL; | |
3727 | } | |
3728 | ||
3729 | ||
3730 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3731 | PyObject *resultobj; | |
3732 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3733 | int result; | |
3734 | PyObject * obj0 = 0 ; | |
3735 | char *kwnames[] = { | |
3736 | (char *) "self", NULL | |
3737 | }; | |
3738 | ||
3739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
3740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3741 | { | |
3742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3743 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3744 | ||
3745 | wxPyEndAllowThreads(__tstate); | |
3746 | if (PyErr_Occurred()) SWIG_fail; | |
3747 | } | |
3748 | resultobj = SWIG_PyObj_FromInt((int)result); | |
3749 | return resultobj; | |
3750 | fail: | |
3751 | return NULL; | |
3752 | } | |
3753 | ||
3754 | ||
3755 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3756 | PyObject *resultobj; | |
3757 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3758 | int arg2 ; | |
3759 | PyObject * obj0 = 0 ; | |
3760 | PyObject * obj1 = 0 ; | |
3761 | char *kwnames[] = { | |
3762 | (char *) "self",(char *) "w", NULL | |
3763 | }; | |
3764 | ||
3765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; | |
3766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3767 | { | |
3768 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3769 | if (PyErr_Occurred()) SWIG_fail; | |
3770 | } | |
3771 | { | |
3772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3773 | (arg1)->SetBezelFace(arg2); | |
3774 | ||
3775 | wxPyEndAllowThreads(__tstate); | |
3776 | if (PyErr_Occurred()) SWIG_fail; | |
3777 | } | |
3778 | Py_INCREF(Py_None); resultobj = Py_None; | |
3779 | return resultobj; | |
3780 | fail: | |
3781 | return NULL; | |
3782 | } | |
3783 | ||
3784 | ||
3785 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3786 | PyObject *resultobj; | |
3787 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3788 | int result; | |
3789 | PyObject * obj0 = 0 ; | |
3790 | char *kwnames[] = { | |
3791 | (char *) "self", NULL | |
3792 | }; | |
3793 | ||
3794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
3795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3796 | { | |
3797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3798 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3799 | ||
3800 | wxPyEndAllowThreads(__tstate); | |
3801 | if (PyErr_Occurred()) SWIG_fail; | |
3802 | } | |
3803 | resultobj = SWIG_PyObj_FromInt((int)result); | |
3804 | return resultobj; | |
3805 | fail: | |
3806 | return NULL; | |
3807 | } | |
3808 | ||
3809 | ||
3810 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
3811 | PyObject *obj; | |
3812 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3813 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
3814 | Py_INCREF(obj); | |
3815 | return Py_BuildValue((char *)""); | |
3816 | } | |
3817 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { | |
3818 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); | |
3819 | return 1; | |
3820 | } | |
3821 | ||
3822 | ||
3823 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
3824 | PyObject *pyobj; | |
3825 | ||
3826 | { | |
3827 | #if wxUSE_UNICODE | |
3828 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3829 | #else | |
3830 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3831 | #endif | |
3832 | } | |
3833 | return pyobj; | |
3834 | } | |
3835 | ||
3836 | ||
3837 | static int _wrap_StaticBoxNameStr_set(PyObject *) { | |
3838 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); | |
3839 | return 1; | |
3840 | } | |
3841 | ||
3842 | ||
3843 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
3844 | PyObject *pyobj; | |
3845 | ||
3846 | { | |
3847 | #if wxUSE_UNICODE | |
3848 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3849 | #else | |
3850 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3851 | #endif | |
3852 | } | |
3853 | return pyobj; | |
3854 | } | |
3855 | ||
3856 | ||
3857 | static int _wrap_StaticTextNameStr_set(PyObject *) { | |
3858 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); | |
3859 | return 1; | |
3860 | } | |
3861 | ||
3862 | ||
3863 | static PyObject *_wrap_StaticTextNameStr_get() { | |
3864 | PyObject *pyobj; | |
3865 | ||
3866 | { | |
3867 | #if wxUSE_UNICODE | |
3868 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3869 | #else | |
3870 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3871 | #endif | |
3872 | } | |
3873 | return pyobj; | |
3874 | } | |
3875 | ||
3876 | ||
3877 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3878 | PyObject *resultobj; | |
3879 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3880 | int arg2 ; | |
3881 | wxString *arg3 = 0 ; | |
3882 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3883 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3884 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3885 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3886 | long arg6 = (long) 0 ; | |
3887 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
3888 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3889 | wxStaticBox *result; | |
3890 | bool temp3 = False ; | |
3891 | wxPoint temp4 ; | |
3892 | wxSize temp5 ; | |
3893 | bool temp7 = False ; | |
3894 | PyObject * obj0 = 0 ; | |
3895 | PyObject * obj1 = 0 ; | |
3896 | PyObject * obj2 = 0 ; | |
3897 | PyObject * obj3 = 0 ; | |
3898 | PyObject * obj4 = 0 ; | |
3899 | PyObject * obj5 = 0 ; | |
3900 | PyObject * obj6 = 0 ; | |
3901 | char *kwnames[] = { | |
3902 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3903 | }; | |
3904 | ||
3905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3907 | { | |
3908 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3909 | if (PyErr_Occurred()) SWIG_fail; | |
3910 | } | |
3911 | { | |
3912 | arg3 = wxString_in_helper(obj2); | |
3913 | if (arg3 == NULL) SWIG_fail; | |
3914 | temp3 = True; | |
3915 | } | |
3916 | if (obj3) { | |
3917 | { | |
3918 | arg4 = &temp4; | |
3919 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3920 | } | |
3921 | } | |
3922 | if (obj4) { | |
3923 | { | |
3924 | arg5 = &temp5; | |
3925 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3926 | } | |
3927 | } | |
3928 | if (obj5) { | |
3929 | { | |
3930 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3931 | if (PyErr_Occurred()) SWIG_fail; | |
3932 | } | |
3933 | } | |
3934 | if (obj6) { | |
3935 | { | |
3936 | arg7 = wxString_in_helper(obj6); | |
3937 | if (arg7 == NULL) SWIG_fail; | |
3938 | temp7 = True; | |
3939 | } | |
3940 | } | |
3941 | { | |
3942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3943 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3944 | ||
3945 | wxPyEndAllowThreads(__tstate); | |
3946 | if (PyErr_Occurred()) SWIG_fail; | |
3947 | } | |
3948 | { | |
3949 | resultobj = wxPyMake_wxObject(result); | |
3950 | } | |
3951 | { | |
3952 | if (temp3) | |
3953 | delete arg3; | |
3954 | } | |
3955 | { | |
3956 | if (temp7) | |
3957 | delete arg7; | |
3958 | } | |
3959 | return resultobj; | |
3960 | fail: | |
3961 | { | |
3962 | if (temp3) | |
3963 | delete arg3; | |
3964 | } | |
3965 | { | |
3966 | if (temp7) | |
3967 | delete arg7; | |
3968 | } | |
3969 | return NULL; | |
3970 | } | |
3971 | ||
3972 | ||
3973 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3974 | PyObject *resultobj; | |
3975 | wxStaticBox *result; | |
3976 | char *kwnames[] = { | |
3977 | NULL | |
3978 | }; | |
3979 | ||
3980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
3981 | { | |
3982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3983 | result = (wxStaticBox *)new wxStaticBox(); | |
3984 | ||
3985 | wxPyEndAllowThreads(__tstate); | |
3986 | if (PyErr_Occurred()) SWIG_fail; | |
3987 | } | |
3988 | { | |
3989 | resultobj = wxPyMake_wxObject(result); | |
3990 | } | |
3991 | return resultobj; | |
3992 | fail: | |
3993 | return NULL; | |
3994 | } | |
3995 | ||
3996 | ||
3997 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3998 | PyObject *resultobj; | |
3999 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4000 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4001 | int arg3 ; | |
4002 | wxString *arg4 = 0 ; | |
4003 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4004 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4005 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4006 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4007 | long arg7 = (long) 0 ; | |
4008 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4009 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4010 | bool result; | |
4011 | bool temp4 = False ; | |
4012 | wxPoint temp5 ; | |
4013 | wxSize temp6 ; | |
4014 | bool temp8 = False ; | |
4015 | PyObject * obj0 = 0 ; | |
4016 | PyObject * obj1 = 0 ; | |
4017 | PyObject * obj2 = 0 ; | |
4018 | PyObject * obj3 = 0 ; | |
4019 | PyObject * obj4 = 0 ; | |
4020 | PyObject * obj5 = 0 ; | |
4021 | PyObject * obj6 = 0 ; | |
4022 | PyObject * obj7 = 0 ; | |
4023 | char *kwnames[] = { | |
4024 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4025 | }; | |
4026 | ||
4027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4029 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4030 | { | |
4031 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4032 | if (PyErr_Occurred()) SWIG_fail; | |
4033 | } | |
4034 | { | |
4035 | arg4 = wxString_in_helper(obj3); | |
4036 | if (arg4 == NULL) SWIG_fail; | |
4037 | temp4 = True; | |
4038 | } | |
4039 | if (obj4) { | |
4040 | { | |
4041 | arg5 = &temp5; | |
4042 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4043 | } | |
4044 | } | |
4045 | if (obj5) { | |
4046 | { | |
4047 | arg6 = &temp6; | |
4048 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4049 | } | |
4050 | } | |
4051 | if (obj6) { | |
4052 | { | |
4053 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4054 | if (PyErr_Occurred()) SWIG_fail; | |
4055 | } | |
4056 | } | |
4057 | if (obj7) { | |
4058 | { | |
4059 | arg8 = wxString_in_helper(obj7); | |
4060 | if (arg8 == NULL) SWIG_fail; | |
4061 | temp8 = True; | |
4062 | } | |
4063 | } | |
4064 | { | |
4065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4066 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4067 | ||
4068 | wxPyEndAllowThreads(__tstate); | |
4069 | if (PyErr_Occurred()) SWIG_fail; | |
4070 | } | |
4071 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
4072 | { | |
4073 | if (temp4) | |
4074 | delete arg4; | |
4075 | } | |
4076 | { | |
4077 | if (temp8) | |
4078 | delete arg8; | |
4079 | } | |
4080 | return resultobj; | |
4081 | fail: | |
4082 | { | |
4083 | if (temp4) | |
4084 | delete arg4; | |
4085 | } | |
4086 | { | |
4087 | if (temp8) | |
4088 | delete arg8; | |
4089 | } | |
4090 | return NULL; | |
4091 | } | |
4092 | ||
4093 | ||
4094 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
4095 | PyObject *obj; | |
4096 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4097 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4098 | Py_INCREF(obj); | |
4099 | return Py_BuildValue((char *)""); | |
4100 | } | |
4101 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4102 | PyObject *resultobj; | |
4103 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4104 | int arg2 ; | |
4105 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
4106 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4107 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4108 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4109 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4110 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4111 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4112 | wxStaticLine *result; | |
4113 | wxPoint temp3 ; | |
4114 | wxSize temp4 ; | |
4115 | bool temp6 = False ; | |
4116 | PyObject * obj0 = 0 ; | |
4117 | PyObject * obj1 = 0 ; | |
4118 | PyObject * obj2 = 0 ; | |
4119 | PyObject * obj3 = 0 ; | |
4120 | PyObject * obj4 = 0 ; | |
4121 | PyObject * obj5 = 0 ; | |
4122 | char *kwnames[] = { | |
4123 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4124 | }; | |
4125 | ||
4126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4128 | { | |
4129 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4130 | if (PyErr_Occurred()) SWIG_fail; | |
4131 | } | |
4132 | if (obj2) { | |
4133 | { | |
4134 | arg3 = &temp3; | |
4135 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4136 | } | |
4137 | } | |
4138 | if (obj3) { | |
4139 | { | |
4140 | arg4 = &temp4; | |
4141 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4142 | } | |
4143 | } | |
4144 | if (obj4) { | |
4145 | { | |
4146 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
4147 | if (PyErr_Occurred()) SWIG_fail; | |
4148 | } | |
4149 | } | |
4150 | if (obj5) { | |
4151 | { | |
4152 | arg6 = wxString_in_helper(obj5); | |
4153 | if (arg6 == NULL) SWIG_fail; | |
4154 | temp6 = True; | |
4155 | } | |
4156 | } | |
4157 | { | |
4158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4159 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4160 | ||
4161 | wxPyEndAllowThreads(__tstate); | |
4162 | if (PyErr_Occurred()) SWIG_fail; | |
4163 | } | |
4164 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
4165 | { | |
4166 | if (temp6) | |
4167 | delete arg6; | |
4168 | } | |
4169 | return resultobj; | |
4170 | fail: | |
4171 | { | |
4172 | if (temp6) | |
4173 | delete arg6; | |
4174 | } | |
4175 | return NULL; | |
4176 | } | |
4177 | ||
4178 | ||
4179 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4180 | PyObject *resultobj; | |
4181 | wxStaticLine *result; | |
4182 | char *kwnames[] = { | |
4183 | NULL | |
4184 | }; | |
4185 | ||
4186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4187 | { | |
4188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4189 | result = (wxStaticLine *)new wxStaticLine(); | |
4190 | ||
4191 | wxPyEndAllowThreads(__tstate); | |
4192 | if (PyErr_Occurred()) SWIG_fail; | |
4193 | } | |
4194 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
4195 | return resultobj; | |
4196 | fail: | |
4197 | return NULL; | |
4198 | } | |
4199 | ||
4200 | ||
4201 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4202 | PyObject *resultobj; | |
4203 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4204 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4205 | int arg3 ; | |
4206 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4207 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4208 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4209 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4210 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4211 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4212 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4213 | bool result; | |
4214 | wxPoint temp4 ; | |
4215 | wxSize temp5 ; | |
4216 | bool temp7 = False ; | |
4217 | PyObject * obj0 = 0 ; | |
4218 | PyObject * obj1 = 0 ; | |
4219 | PyObject * obj2 = 0 ; | |
4220 | PyObject * obj3 = 0 ; | |
4221 | PyObject * obj4 = 0 ; | |
4222 | PyObject * obj5 = 0 ; | |
4223 | PyObject * obj6 = 0 ; | |
4224 | char *kwnames[] = { | |
4225 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4226 | }; | |
4227 | ||
4228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4230 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4231 | { | |
4232 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4233 | if (PyErr_Occurred()) SWIG_fail; | |
4234 | } | |
4235 | if (obj3) { | |
4236 | { | |
4237 | arg4 = &temp4; | |
4238 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4239 | } | |
4240 | } | |
4241 | if (obj4) { | |
4242 | { | |
4243 | arg5 = &temp5; | |
4244 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4245 | } | |
4246 | } | |
4247 | if (obj5) { | |
4248 | { | |
4249 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4250 | if (PyErr_Occurred()) SWIG_fail; | |
4251 | } | |
4252 | } | |
4253 | if (obj6) { | |
4254 | { | |
4255 | arg7 = wxString_in_helper(obj6); | |
4256 | if (arg7 == NULL) SWIG_fail; | |
4257 | temp7 = True; | |
4258 | } | |
4259 | } | |
4260 | { | |
4261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4262 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4263 | ||
4264 | wxPyEndAllowThreads(__tstate); | |
4265 | if (PyErr_Occurred()) SWIG_fail; | |
4266 | } | |
4267 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
4268 | { | |
4269 | if (temp7) | |
4270 | delete arg7; | |
4271 | } | |
4272 | return resultobj; | |
4273 | fail: | |
4274 | { | |
4275 | if (temp7) | |
4276 | delete arg7; | |
4277 | } | |
4278 | return NULL; | |
4279 | } | |
4280 | ||
4281 | ||
4282 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4283 | PyObject *resultobj; | |
4284 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4285 | bool result; | |
4286 | PyObject * obj0 = 0 ; | |
4287 | char *kwnames[] = { | |
4288 | (char *) "self", NULL | |
4289 | }; | |
4290 | ||
4291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
4292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4293 | { | |
4294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4295 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4296 | ||
4297 | wxPyEndAllowThreads(__tstate); | |
4298 | if (PyErr_Occurred()) SWIG_fail; | |
4299 | } | |
4300 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
4301 | return resultobj; | |
4302 | fail: | |
4303 | return NULL; | |
4304 | } | |
4305 | ||
4306 | ||
4307 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4308 | PyObject *resultobj; | |
4309 | int result; | |
4310 | char *kwnames[] = { | |
4311 | NULL | |
4312 | }; | |
4313 | ||
4314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4315 | { | |
4316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4317 | result = (int)wxStaticLine::GetDefaultSize(); | |
4318 | ||
4319 | wxPyEndAllowThreads(__tstate); | |
4320 | if (PyErr_Occurred()) SWIG_fail; | |
4321 | } | |
4322 | resultobj = SWIG_PyObj_FromInt((int)result); | |
4323 | return resultobj; | |
4324 | fail: | |
4325 | return NULL; | |
4326 | } | |
4327 | ||
4328 | ||
4329 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
4330 | PyObject *obj; | |
4331 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4332 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4333 | Py_INCREF(obj); | |
4334 | return Py_BuildValue((char *)""); | |
4335 | } | |
4336 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4337 | PyObject *resultobj; | |
4338 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4339 | int arg2 ; | |
4340 | wxString *arg3 = 0 ; | |
4341 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4342 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4343 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4344 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4345 | long arg6 = (long) 0 ; | |
4346 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4347 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4348 | wxStaticText *result; | |
4349 | bool temp3 = False ; | |
4350 | wxPoint temp4 ; | |
4351 | wxSize temp5 ; | |
4352 | bool temp7 = False ; | |
4353 | PyObject * obj0 = 0 ; | |
4354 | PyObject * obj1 = 0 ; | |
4355 | PyObject * obj2 = 0 ; | |
4356 | PyObject * obj3 = 0 ; | |
4357 | PyObject * obj4 = 0 ; | |
4358 | PyObject * obj5 = 0 ; | |
4359 | PyObject * obj6 = 0 ; | |
4360 | char *kwnames[] = { | |
4361 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4362 | }; | |
4363 | ||
4364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4366 | { | |
4367 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4368 | if (PyErr_Occurred()) SWIG_fail; | |
4369 | } | |
4370 | { | |
4371 | arg3 = wxString_in_helper(obj2); | |
4372 | if (arg3 == NULL) SWIG_fail; | |
4373 | temp3 = True; | |
4374 | } | |
4375 | if (obj3) { | |
4376 | { | |
4377 | arg4 = &temp4; | |
4378 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4379 | } | |
4380 | } | |
4381 | if (obj4) { | |
4382 | { | |
4383 | arg5 = &temp5; | |
4384 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4385 | } | |
4386 | } | |
4387 | if (obj5) { | |
4388 | { | |
4389 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4390 | if (PyErr_Occurred()) SWIG_fail; | |
4391 | } | |
4392 | } | |
4393 | if (obj6) { | |
4394 | { | |
4395 | arg7 = wxString_in_helper(obj6); | |
4396 | if (arg7 == NULL) SWIG_fail; | |
4397 | temp7 = True; | |
4398 | } | |
4399 | } | |
4400 | { | |
4401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4402 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4403 | ||
4404 | wxPyEndAllowThreads(__tstate); | |
4405 | if (PyErr_Occurred()) SWIG_fail; | |
4406 | } | |
4407 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4408 | { | |
4409 | if (temp3) | |
4410 | delete arg3; | |
4411 | } | |
4412 | { | |
4413 | if (temp7) | |
4414 | delete arg7; | |
4415 | } | |
4416 | return resultobj; | |
4417 | fail: | |
4418 | { | |
4419 | if (temp3) | |
4420 | delete arg3; | |
4421 | } | |
4422 | { | |
4423 | if (temp7) | |
4424 | delete arg7; | |
4425 | } | |
4426 | return NULL; | |
4427 | } | |
4428 | ||
4429 | ||
4430 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4431 | PyObject *resultobj; | |
4432 | wxStaticText *result; | |
4433 | char *kwnames[] = { | |
4434 | NULL | |
4435 | }; | |
4436 | ||
4437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4438 | { | |
4439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4440 | result = (wxStaticText *)new wxStaticText(); | |
4441 | ||
4442 | wxPyEndAllowThreads(__tstate); | |
4443 | if (PyErr_Occurred()) SWIG_fail; | |
4444 | } | |
4445 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4446 | return resultobj; | |
4447 | fail: | |
4448 | return NULL; | |
4449 | } | |
4450 | ||
4451 | ||
4452 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4453 | PyObject *resultobj; | |
4454 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4455 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4456 | int arg3 ; | |
4457 | wxString *arg4 = 0 ; | |
4458 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4459 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4460 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4461 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4462 | long arg7 = (long) 0 ; | |
4463 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4464 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4465 | bool result; | |
4466 | bool temp4 = False ; | |
4467 | wxPoint temp5 ; | |
4468 | wxSize temp6 ; | |
4469 | bool temp8 = False ; | |
4470 | PyObject * obj0 = 0 ; | |
4471 | PyObject * obj1 = 0 ; | |
4472 | PyObject * obj2 = 0 ; | |
4473 | PyObject * obj3 = 0 ; | |
4474 | PyObject * obj4 = 0 ; | |
4475 | PyObject * obj5 = 0 ; | |
4476 | PyObject * obj6 = 0 ; | |
4477 | PyObject * obj7 = 0 ; | |
4478 | char *kwnames[] = { | |
4479 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4480 | }; | |
4481 | ||
4482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticText,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4484 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4485 | { | |
4486 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4487 | if (PyErr_Occurred()) SWIG_fail; | |
4488 | } | |
4489 | { | |
4490 | arg4 = wxString_in_helper(obj3); | |
4491 | if (arg4 == NULL) SWIG_fail; | |
4492 | temp4 = True; | |
4493 | } | |
4494 | if (obj4) { | |
4495 | { | |
4496 | arg5 = &temp5; | |
4497 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4498 | } | |
4499 | } | |
4500 | if (obj5) { | |
4501 | { | |
4502 | arg6 = &temp6; | |
4503 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4504 | } | |
4505 | } | |
4506 | if (obj6) { | |
4507 | { | |
4508 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4509 | if (PyErr_Occurred()) SWIG_fail; | |
4510 | } | |
4511 | } | |
4512 | if (obj7) { | |
4513 | { | |
4514 | arg8 = wxString_in_helper(obj7); | |
4515 | if (arg8 == NULL) SWIG_fail; | |
4516 | temp8 = True; | |
4517 | } | |
4518 | } | |
4519 | { | |
4520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4521 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4522 | ||
4523 | wxPyEndAllowThreads(__tstate); | |
4524 | if (PyErr_Occurred()) SWIG_fail; | |
4525 | } | |
4526 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
4527 | { | |
4528 | if (temp4) | |
4529 | delete arg4; | |
4530 | } | |
4531 | { | |
4532 | if (temp8) | |
4533 | delete arg8; | |
4534 | } | |
4535 | return resultobj; | |
4536 | fail: | |
4537 | { | |
4538 | if (temp4) | |
4539 | delete arg4; | |
4540 | } | |
4541 | { | |
4542 | if (temp8) | |
4543 | delete arg8; | |
4544 | } | |
4545 | return NULL; | |
4546 | } | |
4547 | ||
4548 | ||
4549 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4550 | PyObject *obj; | |
4551 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4552 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4553 | Py_INCREF(obj); | |
4554 | return Py_BuildValue((char *)""); | |
4555 | } | |
4556 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4557 | PyObject *resultobj; | |
4558 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4559 | int arg2 ; | |
4560 | wxBitmap *arg3 = 0 ; | |
4561 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4562 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4563 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4564 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4565 | long arg6 = (long) 0 ; | |
4566 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4567 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4568 | wxStaticBitmap *result; | |
4569 | wxPoint temp4 ; | |
4570 | wxSize temp5 ; | |
4571 | bool temp7 = False ; | |
4572 | PyObject * obj0 = 0 ; | |
4573 | PyObject * obj1 = 0 ; | |
4574 | PyObject * obj2 = 0 ; | |
4575 | PyObject * obj3 = 0 ; | |
4576 | PyObject * obj4 = 0 ; | |
4577 | PyObject * obj5 = 0 ; | |
4578 | PyObject * obj6 = 0 ; | |
4579 | char *kwnames[] = { | |
4580 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4581 | }; | |
4582 | ||
4583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4585 | { | |
4586 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4587 | if (PyErr_Occurred()) SWIG_fail; | |
4588 | } | |
4589 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4590 | if (arg3 == NULL) { | |
4591 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4592 | } | |
4593 | if (obj3) { | |
4594 | { | |
4595 | arg4 = &temp4; | |
4596 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4597 | } | |
4598 | } | |
4599 | if (obj4) { | |
4600 | { | |
4601 | arg5 = &temp5; | |
4602 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4603 | } | |
4604 | } | |
4605 | if (obj5) { | |
4606 | { | |
4607 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4608 | if (PyErr_Occurred()) SWIG_fail; | |
4609 | } | |
4610 | } | |
4611 | if (obj6) { | |
4612 | { | |
4613 | arg7 = wxString_in_helper(obj6); | |
4614 | if (arg7 == NULL) SWIG_fail; | |
4615 | temp7 = True; | |
4616 | } | |
4617 | } | |
4618 | { | |
4619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4620 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4621 | ||
4622 | wxPyEndAllowThreads(__tstate); | |
4623 | if (PyErr_Occurred()) SWIG_fail; | |
4624 | } | |
4625 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4626 | { | |
4627 | if (temp7) | |
4628 | delete arg7; | |
4629 | } | |
4630 | return resultobj; | |
4631 | fail: | |
4632 | { | |
4633 | if (temp7) | |
4634 | delete arg7; | |
4635 | } | |
4636 | return NULL; | |
4637 | } | |
4638 | ||
4639 | ||
4640 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4641 | PyObject *resultobj; | |
4642 | wxStaticBitmap *result; | |
4643 | char *kwnames[] = { | |
4644 | NULL | |
4645 | }; | |
4646 | ||
4647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4648 | { | |
4649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4650 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4651 | ||
4652 | wxPyEndAllowThreads(__tstate); | |
4653 | if (PyErr_Occurred()) SWIG_fail; | |
4654 | } | |
4655 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4656 | return resultobj; | |
4657 | fail: | |
4658 | return NULL; | |
4659 | } | |
4660 | ||
4661 | ||
4662 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4663 | PyObject *resultobj; | |
4664 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4665 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4666 | int arg3 ; | |
4667 | wxBitmap *arg4 = 0 ; | |
4668 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4669 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4670 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4671 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4672 | long arg7 = (long) 0 ; | |
4673 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4674 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4675 | bool result; | |
4676 | wxPoint temp5 ; | |
4677 | wxSize temp6 ; | |
4678 | bool temp8 = False ; | |
4679 | PyObject * obj0 = 0 ; | |
4680 | PyObject * obj1 = 0 ; | |
4681 | PyObject * obj2 = 0 ; | |
4682 | PyObject * obj3 = 0 ; | |
4683 | PyObject * obj4 = 0 ; | |
4684 | PyObject * obj5 = 0 ; | |
4685 | PyObject * obj6 = 0 ; | |
4686 | PyObject * obj7 = 0 ; | |
4687 | char *kwnames[] = { | |
4688 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4689 | }; | |
4690 | ||
4691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4693 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4694 | { | |
4695 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4696 | if (PyErr_Occurred()) SWIG_fail; | |
4697 | } | |
4698 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4699 | if (arg4 == NULL) { | |
4700 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4701 | } | |
4702 | if (obj4) { | |
4703 | { | |
4704 | arg5 = &temp5; | |
4705 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4706 | } | |
4707 | } | |
4708 | if (obj5) { | |
4709 | { | |
4710 | arg6 = &temp6; | |
4711 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4712 | } | |
4713 | } | |
4714 | if (obj6) { | |
4715 | { | |
4716 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4717 | if (PyErr_Occurred()) SWIG_fail; | |
4718 | } | |
4719 | } | |
4720 | if (obj7) { | |
4721 | { | |
4722 | arg8 = wxString_in_helper(obj7); | |
4723 | if (arg8 == NULL) SWIG_fail; | |
4724 | temp8 = True; | |
4725 | } | |
4726 | } | |
4727 | { | |
4728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4729 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4730 | ||
4731 | wxPyEndAllowThreads(__tstate); | |
4732 | if (PyErr_Occurred()) SWIG_fail; | |
4733 | } | |
4734 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
4735 | { | |
4736 | if (temp8) | |
4737 | delete arg8; | |
4738 | } | |
4739 | return resultobj; | |
4740 | fail: | |
4741 | { | |
4742 | if (temp8) | |
4743 | delete arg8; | |
4744 | } | |
4745 | return NULL; | |
4746 | } | |
4747 | ||
4748 | ||
4749 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4750 | PyObject *resultobj; | |
4751 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4752 | wxBitmap result; | |
4753 | PyObject * obj0 = 0 ; | |
4754 | char *kwnames[] = { | |
4755 | (char *) "self", NULL | |
4756 | }; | |
4757 | ||
4758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
4759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4760 | { | |
4761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4762 | result = (arg1)->GetBitmap(); | |
4763 | ||
4764 | wxPyEndAllowThreads(__tstate); | |
4765 | if (PyErr_Occurred()) SWIG_fail; | |
4766 | } | |
4767 | { | |
4768 | wxBitmap * resultptr; | |
4769 | resultptr = new wxBitmap((wxBitmap &) result); | |
4770 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
4771 | } | |
4772 | return resultobj; | |
4773 | fail: | |
4774 | return NULL; | |
4775 | } | |
4776 | ||
4777 | ||
4778 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4779 | PyObject *resultobj; | |
4780 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4781 | wxBitmap *arg2 = 0 ; | |
4782 | PyObject * obj0 = 0 ; | |
4783 | PyObject * obj1 = 0 ; | |
4784 | char *kwnames[] = { | |
4785 | (char *) "self",(char *) "bitmap", NULL | |
4786 | }; | |
4787 | ||
4788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4790 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4791 | if (arg2 == NULL) { | |
4792 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4793 | } | |
4794 | { | |
4795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4796 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4797 | ||
4798 | wxPyEndAllowThreads(__tstate); | |
4799 | if (PyErr_Occurred()) SWIG_fail; | |
4800 | } | |
4801 | Py_INCREF(Py_None); resultobj = Py_None; | |
4802 | return resultobj; | |
4803 | fail: | |
4804 | return NULL; | |
4805 | } | |
4806 | ||
4807 | ||
4808 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4809 | PyObject *resultobj; | |
4810 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4811 | wxIcon *arg2 = 0 ; | |
4812 | PyObject * obj0 = 0 ; | |
4813 | PyObject * obj1 = 0 ; | |
4814 | char *kwnames[] = { | |
4815 | (char *) "self",(char *) "icon", NULL | |
4816 | }; | |
4817 | ||
4818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4820 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4821 | if (arg2 == NULL) { | |
4822 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4823 | } | |
4824 | { | |
4825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4826 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
4827 | ||
4828 | wxPyEndAllowThreads(__tstate); | |
4829 | if (PyErr_Occurred()) SWIG_fail; | |
4830 | } | |
4831 | Py_INCREF(Py_None); resultobj = Py_None; | |
4832 | return resultobj; | |
4833 | fail: | |
4834 | return NULL; | |
4835 | } | |
4836 | ||
4837 | ||
4838 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
4839 | PyObject *obj; | |
4840 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4841 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
4842 | Py_INCREF(obj); | |
4843 | return Py_BuildValue((char *)""); | |
4844 | } | |
4845 | static int _wrap_ListBoxNameStr_set(PyObject *) { | |
4846 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); | |
4847 | return 1; | |
4848 | } | |
4849 | ||
4850 | ||
4851 | static PyObject *_wrap_ListBoxNameStr_get() { | |
4852 | PyObject *pyobj; | |
4853 | ||
4854 | { | |
4855 | #if wxUSE_UNICODE | |
4856 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4857 | #else | |
4858 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4859 | #endif | |
4860 | } | |
4861 | return pyobj; | |
4862 | } | |
4863 | ||
4864 | ||
4865 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4866 | PyObject *resultobj; | |
4867 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4868 | int arg2 ; | |
4869 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
4870 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4871 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4872 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4873 | int arg5 = (int) 0 ; | |
4874 | wxString *arg6 = (wxString *) NULL ; | |
4875 | long arg7 = (long) 0 ; | |
4876 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4877 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4878 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
4879 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4880 | wxListBox *result; | |
4881 | wxPoint temp3 ; | |
4882 | wxSize temp4 ; | |
4883 | bool temp8 = False ; | |
4884 | PyObject * obj0 = 0 ; | |
4885 | PyObject * obj1 = 0 ; | |
4886 | PyObject * obj2 = 0 ; | |
4887 | PyObject * obj3 = 0 ; | |
4888 | PyObject * obj4 = 0 ; | |
4889 | PyObject * obj5 = 0 ; | |
4890 | PyObject * obj6 = 0 ; | |
4891 | PyObject * obj7 = 0 ; | |
4892 | char *kwnames[] = { | |
4893 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4894 | }; | |
4895 | ||
4896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4898 | { | |
4899 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4900 | if (PyErr_Occurred()) SWIG_fail; | |
4901 | } | |
4902 | if (obj2) { | |
4903 | { | |
4904 | arg3 = &temp3; | |
4905 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4906 | } | |
4907 | } | |
4908 | if (obj3) { | |
4909 | { | |
4910 | arg4 = &temp4; | |
4911 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4912 | } | |
4913 | } | |
4914 | if (obj4) { | |
4915 | { | |
4916 | arg5 = PyList_Size(obj4); | |
4917 | arg6 = wxString_LIST_helper(obj4); | |
4918 | if (arg6 == NULL) SWIG_fail; | |
4919 | } | |
4920 | } | |
4921 | if (obj5) { | |
4922 | { | |
4923 | arg7 = (long) SWIG_PyObj_AsLong(obj5); | |
4924 | if (PyErr_Occurred()) SWIG_fail; | |
4925 | } | |
4926 | } | |
4927 | if (obj6) { | |
4928 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4929 | if (arg8 == NULL) { | |
4930 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4931 | } | |
4932 | } | |
4933 | if (obj7) { | |
4934 | { | |
4935 | arg9 = wxString_in_helper(obj7); | |
4936 | if (arg9 == NULL) SWIG_fail; | |
4937 | temp8 = True; | |
4938 | } | |
4939 | } | |
4940 | { | |
4941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4942 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4943 | ||
4944 | wxPyEndAllowThreads(__tstate); | |
4945 | if (PyErr_Occurred()) SWIG_fail; | |
4946 | } | |
4947 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
4948 | { | |
4949 | if (arg6) delete [] arg6; | |
4950 | } | |
4951 | { | |
4952 | if (temp8) | |
4953 | delete arg9; | |
4954 | } | |
4955 | return resultobj; | |
4956 | fail: | |
4957 | { | |
4958 | if (arg6) delete [] arg6; | |
4959 | } | |
4960 | { | |
4961 | if (temp8) | |
4962 | delete arg9; | |
4963 | } | |
4964 | return NULL; | |
4965 | } | |
4966 | ||
4967 | ||
4968 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4969 | PyObject *resultobj; | |
4970 | wxListBox *result; | |
4971 | char *kwnames[] = { | |
4972 | NULL | |
4973 | }; | |
4974 | ||
4975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
4976 | { | |
4977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4978 | result = (wxListBox *)new wxListBox(); | |
4979 | ||
4980 | wxPyEndAllowThreads(__tstate); | |
4981 | if (PyErr_Occurred()) SWIG_fail; | |
4982 | } | |
4983 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
4984 | return resultobj; | |
4985 | fail: | |
4986 | return NULL; | |
4987 | } | |
4988 | ||
4989 | ||
4990 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4991 | PyObject *resultobj; | |
4992 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4993 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4994 | int arg3 ; | |
4995 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4996 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4997 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4998 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4999 | int arg6 = (int) 0 ; | |
5000 | wxString *arg7 = (wxString *) NULL ; | |
5001 | long arg8 = (long) 0 ; | |
5002 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
5003 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
5004 | wxString const &arg10_defvalue = wxPyListBoxNameStr ; | |
5005 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
5006 | bool result; | |
5007 | wxPoint temp4 ; | |
5008 | wxSize temp5 ; | |
5009 | bool temp9 = False ; | |
5010 | PyObject * obj0 = 0 ; | |
5011 | PyObject * obj1 = 0 ; | |
5012 | PyObject * obj2 = 0 ; | |
5013 | PyObject * obj3 = 0 ; | |
5014 | PyObject * obj4 = 0 ; | |
5015 | PyObject * obj5 = 0 ; | |
5016 | PyObject * obj6 = 0 ; | |
5017 | PyObject * obj7 = 0 ; | |
5018 | PyObject * obj8 = 0 ; | |
5019 | char *kwnames[] = { | |
5020 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5021 | }; | |
5022 | ||
5023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
5024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5025 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5026 | { | |
5027 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5028 | if (PyErr_Occurred()) SWIG_fail; | |
5029 | } | |
5030 | if (obj3) { | |
5031 | { | |
5032 | arg4 = &temp4; | |
5033 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5034 | } | |
5035 | } | |
5036 | if (obj4) { | |
5037 | { | |
5038 | arg5 = &temp5; | |
5039 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5040 | } | |
5041 | } | |
5042 | if (obj5) { | |
5043 | { | |
5044 | arg6 = PyList_Size(obj5); | |
5045 | arg7 = wxString_LIST_helper(obj5); | |
5046 | if (arg7 == NULL) SWIG_fail; | |
5047 | } | |
5048 | } | |
5049 | if (obj6) { | |
5050 | { | |
5051 | arg8 = (long) SWIG_PyObj_AsLong(obj6); | |
5052 | if (PyErr_Occurred()) SWIG_fail; | |
5053 | } | |
5054 | } | |
5055 | if (obj7) { | |
5056 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5057 | if (arg9 == NULL) { | |
5058 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5059 | } | |
5060 | } | |
5061 | if (obj8) { | |
5062 | { | |
5063 | arg10 = wxString_in_helper(obj8); | |
5064 | if (arg10 == NULL) SWIG_fail; | |
5065 | temp9 = True; | |
5066 | } | |
5067 | } | |
5068 | { | |
5069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5070 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
5071 | ||
5072 | wxPyEndAllowThreads(__tstate); | |
5073 | if (PyErr_Occurred()) SWIG_fail; | |
5074 | } | |
5075 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
5076 | { | |
5077 | if (arg7) delete [] arg7; | |
5078 | } | |
5079 | { | |
5080 | if (temp9) | |
5081 | delete arg10; | |
5082 | } | |
5083 | return resultobj; | |
5084 | fail: | |
5085 | { | |
5086 | if (arg7) delete [] arg7; | |
5087 | } | |
5088 | { | |
5089 | if (temp9) | |
5090 | delete arg10; | |
5091 | } | |
5092 | return NULL; | |
5093 | } | |
5094 | ||
5095 | ||
5096 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5097 | PyObject *resultobj; | |
5098 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5099 | wxString *arg2 = 0 ; | |
5100 | int arg3 ; | |
5101 | PyObject *arg4 = (PyObject *) NULL ; | |
5102 | bool temp2 = False ; | |
5103 | PyObject * obj0 = 0 ; | |
5104 | PyObject * obj1 = 0 ; | |
5105 | PyObject * obj2 = 0 ; | |
5106 | PyObject * obj3 = 0 ; | |
5107 | char *kwnames[] = { | |
5108 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5109 | }; | |
5110 | ||
5111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5113 | { | |
5114 | arg2 = wxString_in_helper(obj1); | |
5115 | if (arg2 == NULL) SWIG_fail; | |
5116 | temp2 = True; | |
5117 | } | |
5118 | { | |
5119 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5120 | if (PyErr_Occurred()) SWIG_fail; | |
5121 | } | |
5122 | if (obj3) { | |
5123 | arg4 = obj3; | |
5124 | } | |
5125 | { | |
5126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5127 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5128 | ||
5129 | wxPyEndAllowThreads(__tstate); | |
5130 | if (PyErr_Occurred()) SWIG_fail; | |
5131 | } | |
5132 | Py_INCREF(Py_None); resultobj = Py_None; | |
5133 | { | |
5134 | if (temp2) | |
5135 | delete arg2; | |
5136 | } | |
5137 | return resultobj; | |
5138 | fail: | |
5139 | { | |
5140 | if (temp2) | |
5141 | delete arg2; | |
5142 | } | |
5143 | return NULL; | |
5144 | } | |
5145 | ||
5146 | ||
5147 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5148 | PyObject *resultobj; | |
5149 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5150 | wxArrayString *arg2 = 0 ; | |
5151 | int arg3 ; | |
5152 | PyObject * obj0 = 0 ; | |
5153 | PyObject * obj1 = 0 ; | |
5154 | PyObject * obj2 = 0 ; | |
5155 | char *kwnames[] = { | |
5156 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5157 | }; | |
5158 | ||
5159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5161 | { | |
5162 | if (! PySequence_Check(obj1)) { | |
5163 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5164 | SWIG_fail; | |
5165 | } | |
5166 | arg2 = new wxArrayString; | |
5167 | int i, len=PySequence_Length(obj1); | |
5168 | for (i=0; i<len; i++) { | |
5169 | PyObject* item = PySequence_GetItem(obj1, i); | |
5170 | #if wxUSE_UNICODE | |
5171 | PyObject* str = PyObject_Unicode(item); | |
5172 | #else | |
5173 | PyObject* str = PyObject_Str(item); | |
5174 | #endif | |
5175 | arg2->Add(Py2wxString(str)); | |
5176 | Py_DECREF(item); | |
5177 | Py_DECREF(str); | |
5178 | } | |
5179 | } | |
5180 | { | |
5181 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5182 | if (PyErr_Occurred()) SWIG_fail; | |
5183 | } | |
5184 | { | |
5185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5186 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5187 | ||
5188 | wxPyEndAllowThreads(__tstate); | |
5189 | if (PyErr_Occurred()) SWIG_fail; | |
5190 | } | |
5191 | Py_INCREF(Py_None); resultobj = Py_None; | |
5192 | { | |
5193 | if (arg2) delete arg2; | |
5194 | } | |
5195 | return resultobj; | |
5196 | fail: | |
5197 | { | |
5198 | if (arg2) delete arg2; | |
5199 | } | |
5200 | return NULL; | |
5201 | } | |
5202 | ||
5203 | ||
5204 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5205 | PyObject *resultobj; | |
5206 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5207 | wxArrayString *arg2 = 0 ; | |
5208 | PyObject * obj0 = 0 ; | |
5209 | PyObject * obj1 = 0 ; | |
5210 | char *kwnames[] = { | |
5211 | (char *) "self",(char *) "items", NULL | |
5212 | }; | |
5213 | ||
5214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
5215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5216 | { | |
5217 | if (! PySequence_Check(obj1)) { | |
5218 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5219 | SWIG_fail; | |
5220 | } | |
5221 | arg2 = new wxArrayString; | |
5222 | int i, len=PySequence_Length(obj1); | |
5223 | for (i=0; i<len; i++) { | |
5224 | PyObject* item = PySequence_GetItem(obj1, i); | |
5225 | #if wxUSE_UNICODE | |
5226 | PyObject* str = PyObject_Unicode(item); | |
5227 | #else | |
5228 | PyObject* str = PyObject_Str(item); | |
5229 | #endif | |
5230 | arg2->Add(Py2wxString(str)); | |
5231 | Py_DECREF(item); | |
5232 | Py_DECREF(str); | |
5233 | } | |
5234 | } | |
5235 | { | |
5236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5237 | (arg1)->Set((wxArrayString const &)*arg2); | |
5238 | ||
5239 | wxPyEndAllowThreads(__tstate); | |
5240 | if (PyErr_Occurred()) SWIG_fail; | |
5241 | } | |
5242 | Py_INCREF(Py_None); resultobj = Py_None; | |
5243 | { | |
5244 | if (arg2) delete arg2; | |
5245 | } | |
5246 | return resultobj; | |
5247 | fail: | |
5248 | { | |
5249 | if (arg2) delete arg2; | |
5250 | } | |
5251 | return NULL; | |
5252 | } | |
5253 | ||
5254 | ||
5255 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5256 | PyObject *resultobj; | |
5257 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5258 | int arg2 ; | |
5259 | bool result; | |
5260 | PyObject * obj0 = 0 ; | |
5261 | PyObject * obj1 = 0 ; | |
5262 | char *kwnames[] = { | |
5263 | (char *) "self",(char *) "n", NULL | |
5264 | }; | |
5265 | ||
5266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
5267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5268 | { | |
5269 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5270 | if (PyErr_Occurred()) SWIG_fail; | |
5271 | } | |
5272 | { | |
5273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5274 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
5275 | ||
5276 | wxPyEndAllowThreads(__tstate); | |
5277 | if (PyErr_Occurred()) SWIG_fail; | |
5278 | } | |
5279 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
5280 | return resultobj; | |
5281 | fail: | |
5282 | return NULL; | |
5283 | } | |
5284 | ||
5285 | ||
5286 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5287 | PyObject *resultobj; | |
5288 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5289 | int arg2 ; | |
5290 | bool arg3 = (bool) True ; | |
5291 | PyObject * obj0 = 0 ; | |
5292 | PyObject * obj1 = 0 ; | |
5293 | PyObject * obj2 = 0 ; | |
5294 | char *kwnames[] = { | |
5295 | (char *) "self",(char *) "n",(char *) "select", NULL | |
5296 | }; | |
5297 | ||
5298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5300 | { | |
5301 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5302 | if (PyErr_Occurred()) SWIG_fail; | |
5303 | } | |
5304 | if (obj2) { | |
5305 | { | |
5306 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
5307 | if (PyErr_Occurred()) SWIG_fail; | |
5308 | } | |
5309 | } | |
5310 | { | |
5311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5312 | (arg1)->SetSelection(arg2,arg3); | |
5313 | ||
5314 | wxPyEndAllowThreads(__tstate); | |
5315 | if (PyErr_Occurred()) SWIG_fail; | |
5316 | } | |
5317 | Py_INCREF(Py_None); resultobj = Py_None; | |
5318 | return resultobj; | |
5319 | fail: | |
5320 | return NULL; | |
5321 | } | |
5322 | ||
5323 | ||
5324 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5325 | PyObject *resultobj; | |
5326 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5327 | int arg2 ; | |
5328 | PyObject * obj0 = 0 ; | |
5329 | PyObject * obj1 = 0 ; | |
5330 | char *kwnames[] = { | |
5331 | (char *) "self",(char *) "n", NULL | |
5332 | }; | |
5333 | ||
5334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; | |
5335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5336 | { | |
5337 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5338 | if (PyErr_Occurred()) SWIG_fail; | |
5339 | } | |
5340 | { | |
5341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5342 | (arg1)->Select(arg2); | |
5343 | ||
5344 | wxPyEndAllowThreads(__tstate); | |
5345 | if (PyErr_Occurred()) SWIG_fail; | |
5346 | } | |
5347 | Py_INCREF(Py_None); resultobj = Py_None; | |
5348 | return resultobj; | |
5349 | fail: | |
5350 | return NULL; | |
5351 | } | |
5352 | ||
5353 | ||
5354 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5355 | PyObject *resultobj; | |
5356 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5357 | int arg2 ; | |
5358 | PyObject * obj0 = 0 ; | |
5359 | PyObject * obj1 = 0 ; | |
5360 | char *kwnames[] = { | |
5361 | (char *) "self",(char *) "n", NULL | |
5362 | }; | |
5363 | ||
5364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; | |
5365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5366 | { | |
5367 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5368 | if (PyErr_Occurred()) SWIG_fail; | |
5369 | } | |
5370 | { | |
5371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5372 | (arg1)->Deselect(arg2); | |
5373 | ||
5374 | wxPyEndAllowThreads(__tstate); | |
5375 | if (PyErr_Occurred()) SWIG_fail; | |
5376 | } | |
5377 | Py_INCREF(Py_None); resultobj = Py_None; | |
5378 | return resultobj; | |
5379 | fail: | |
5380 | return NULL; | |
5381 | } | |
5382 | ||
5383 | ||
5384 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5385 | PyObject *resultobj; | |
5386 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5387 | int arg2 = (int) -1 ; | |
5388 | PyObject * obj0 = 0 ; | |
5389 | PyObject * obj1 = 0 ; | |
5390 | char *kwnames[] = { | |
5391 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
5392 | }; | |
5393 | ||
5394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; | |
5395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5396 | if (obj1) { | |
5397 | { | |
5398 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5399 | if (PyErr_Occurred()) SWIG_fail; | |
5400 | } | |
5401 | } | |
5402 | { | |
5403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5404 | (arg1)->DeselectAll(arg2); | |
5405 | ||
5406 | wxPyEndAllowThreads(__tstate); | |
5407 | if (PyErr_Occurred()) SWIG_fail; | |
5408 | } | |
5409 | Py_INCREF(Py_None); resultobj = Py_None; | |
5410 | return resultobj; | |
5411 | fail: | |
5412 | return NULL; | |
5413 | } | |
5414 | ||
5415 | ||
5416 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5417 | PyObject *resultobj; | |
5418 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5419 | wxString *arg2 = 0 ; | |
5420 | bool arg3 = (bool) True ; | |
5421 | bool result; | |
5422 | bool temp2 = False ; | |
5423 | PyObject * obj0 = 0 ; | |
5424 | PyObject * obj1 = 0 ; | |
5425 | PyObject * obj2 = 0 ; | |
5426 | char *kwnames[] = { | |
5427 | (char *) "self",(char *) "s",(char *) "select", NULL | |
5428 | }; | |
5429 | ||
5430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5432 | { | |
5433 | arg2 = wxString_in_helper(obj1); | |
5434 | if (arg2 == NULL) SWIG_fail; | |
5435 | temp2 = True; | |
5436 | } | |
5437 | if (obj2) { | |
5438 | { | |
5439 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
5440 | if (PyErr_Occurred()) SWIG_fail; | |
5441 | } | |
5442 | } | |
5443 | { | |
5444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5445 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
5446 | ||
5447 | wxPyEndAllowThreads(__tstate); | |
5448 | if (PyErr_Occurred()) SWIG_fail; | |
5449 | } | |
5450 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
5451 | { | |
5452 | if (temp2) | |
5453 | delete arg2; | |
5454 | } | |
5455 | return resultobj; | |
5456 | fail: | |
5457 | { | |
5458 | if (temp2) | |
5459 | delete arg2; | |
5460 | } | |
5461 | return NULL; | |
5462 | } | |
5463 | ||
5464 | ||
5465 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5466 | PyObject *resultobj; | |
5467 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5468 | PyObject *result; | |
5469 | PyObject * obj0 = 0 ; | |
5470 | char *kwnames[] = { | |
5471 | (char *) "self", NULL | |
5472 | }; | |
5473 | ||
5474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
5475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5476 | { | |
5477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5478 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
5479 | ||
5480 | wxPyEndAllowThreads(__tstate); | |
5481 | if (PyErr_Occurred()) SWIG_fail; | |
5482 | } | |
5483 | resultobj = result; | |
5484 | return resultobj; | |
5485 | fail: | |
5486 | return NULL; | |
5487 | } | |
5488 | ||
5489 | ||
5490 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5491 | PyObject *resultobj; | |
5492 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5493 | int arg2 ; | |
5494 | PyObject * obj0 = 0 ; | |
5495 | PyObject * obj1 = 0 ; | |
5496 | char *kwnames[] = { | |
5497 | (char *) "self",(char *) "n", NULL | |
5498 | }; | |
5499 | ||
5500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; | |
5501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5502 | { | |
5503 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5504 | if (PyErr_Occurred()) SWIG_fail; | |
5505 | } | |
5506 | { | |
5507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5508 | (arg1)->SetFirstItem(arg2); | |
5509 | ||
5510 | wxPyEndAllowThreads(__tstate); | |
5511 | if (PyErr_Occurred()) SWIG_fail; | |
5512 | } | |
5513 | Py_INCREF(Py_None); resultobj = Py_None; | |
5514 | return resultobj; | |
5515 | fail: | |
5516 | return NULL; | |
5517 | } | |
5518 | ||
5519 | ||
5520 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5521 | PyObject *resultobj; | |
5522 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5523 | wxString *arg2 = 0 ; | |
5524 | bool temp2 = False ; | |
5525 | PyObject * obj0 = 0 ; | |
5526 | PyObject * obj1 = 0 ; | |
5527 | char *kwnames[] = { | |
5528 | (char *) "self",(char *) "s", NULL | |
5529 | }; | |
5530 | ||
5531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
5532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5533 | { | |
5534 | arg2 = wxString_in_helper(obj1); | |
5535 | if (arg2 == NULL) SWIG_fail; | |
5536 | temp2 = True; | |
5537 | } | |
5538 | { | |
5539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5540 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
5541 | ||
5542 | wxPyEndAllowThreads(__tstate); | |
5543 | if (PyErr_Occurred()) SWIG_fail; | |
5544 | } | |
5545 | Py_INCREF(Py_None); resultobj = Py_None; | |
5546 | { | |
5547 | if (temp2) | |
5548 | delete arg2; | |
5549 | } | |
5550 | return resultobj; | |
5551 | fail: | |
5552 | { | |
5553 | if (temp2) | |
5554 | delete arg2; | |
5555 | } | |
5556 | return NULL; | |
5557 | } | |
5558 | ||
5559 | ||
5560 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5561 | PyObject *resultobj; | |
5562 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5563 | int arg2 ; | |
5564 | PyObject * obj0 = 0 ; | |
5565 | PyObject * obj1 = 0 ; | |
5566 | char *kwnames[] = { | |
5567 | (char *) "self",(char *) "n", NULL | |
5568 | }; | |
5569 | ||
5570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
5571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5572 | { | |
5573 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5574 | if (PyErr_Occurred()) SWIG_fail; | |
5575 | } | |
5576 | { | |
5577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5578 | (arg1)->EnsureVisible(arg2); | |
5579 | ||
5580 | wxPyEndAllowThreads(__tstate); | |
5581 | if (PyErr_Occurred()) SWIG_fail; | |
5582 | } | |
5583 | Py_INCREF(Py_None); resultobj = Py_None; | |
5584 | return resultobj; | |
5585 | fail: | |
5586 | return NULL; | |
5587 | } | |
5588 | ||
5589 | ||
5590 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5591 | PyObject *resultobj; | |
5592 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5593 | wxString *arg2 = 0 ; | |
5594 | bool temp2 = False ; | |
5595 | PyObject * obj0 = 0 ; | |
5596 | PyObject * obj1 = 0 ; | |
5597 | char *kwnames[] = { | |
5598 | (char *) "self",(char *) "s", NULL | |
5599 | }; | |
5600 | ||
5601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
5602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5603 | { | |
5604 | arg2 = wxString_in_helper(obj1); | |
5605 | if (arg2 == NULL) SWIG_fail; | |
5606 | temp2 = True; | |
5607 | } | |
5608 | { | |
5609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5610 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
5611 | ||
5612 | wxPyEndAllowThreads(__tstate); | |
5613 | if (PyErr_Occurred()) SWIG_fail; | |
5614 | } | |
5615 | Py_INCREF(Py_None); resultobj = Py_None; | |
5616 | { | |
5617 | if (temp2) | |
5618 | delete arg2; | |
5619 | } | |
5620 | return resultobj; | |
5621 | fail: | |
5622 | { | |
5623 | if (temp2) | |
5624 | delete arg2; | |
5625 | } | |
5626 | return NULL; | |
5627 | } | |
5628 | ||
5629 | ||
5630 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5631 | PyObject *resultobj; | |
5632 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5633 | bool result; | |
5634 | PyObject * obj0 = 0 ; | |
5635 | char *kwnames[] = { | |
5636 | (char *) "self", NULL | |
5637 | }; | |
5638 | ||
5639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
5640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5641 | { | |
5642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5643 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
5644 | ||
5645 | wxPyEndAllowThreads(__tstate); | |
5646 | if (PyErr_Occurred()) SWIG_fail; | |
5647 | } | |
5648 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
5649 | return resultobj; | |
5650 | fail: | |
5651 | return NULL; | |
5652 | } | |
5653 | ||
5654 | ||
5655 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { | |
5656 | PyObject *obj; | |
5657 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5658 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
5659 | Py_INCREF(obj); | |
5660 | return Py_BuildValue((char *)""); | |
5661 | } | |
5662 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5663 | PyObject *resultobj; | |
5664 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5665 | int arg2 ; | |
5666 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5667 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5668 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5669 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5670 | int arg5 = (int) 0 ; | |
5671 | wxString *arg6 = (wxString *) NULL ; | |
5672 | long arg7 = (long) 0 ; | |
5673 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5674 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5675 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5676 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5677 | wxCheckListBox *result; | |
5678 | wxPoint temp3 ; | |
5679 | wxSize temp4 ; | |
5680 | bool temp8 = False ; | |
5681 | PyObject * obj0 = 0 ; | |
5682 | PyObject * obj1 = 0 ; | |
5683 | PyObject * obj2 = 0 ; | |
5684 | PyObject * obj3 = 0 ; | |
5685 | PyObject * obj4 = 0 ; | |
5686 | PyObject * obj5 = 0 ; | |
5687 | PyObject * obj6 = 0 ; | |
5688 | PyObject * obj7 = 0 ; | |
5689 | char *kwnames[] = { | |
5690 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5691 | }; | |
5692 | ||
5693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
5694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5695 | { | |
5696 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5697 | if (PyErr_Occurred()) SWIG_fail; | |
5698 | } | |
5699 | if (obj2) { | |
5700 | { | |
5701 | arg3 = &temp3; | |
5702 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5703 | } | |
5704 | } | |
5705 | if (obj3) { | |
5706 | { | |
5707 | arg4 = &temp4; | |
5708 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5709 | } | |
5710 | } | |
5711 | if (obj4) { | |
5712 | { | |
5713 | arg5 = PyList_Size(obj4); | |
5714 | arg6 = wxString_LIST_helper(obj4); | |
5715 | if (arg6 == NULL) SWIG_fail; | |
5716 | } | |
5717 | } | |
5718 | if (obj5) { | |
5719 | { | |
5720 | arg7 = (long) SWIG_PyObj_AsLong(obj5); | |
5721 | if (PyErr_Occurred()) SWIG_fail; | |
5722 | } | |
5723 | } | |
5724 | if (obj6) { | |
5725 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5726 | if (arg8 == NULL) { | |
5727 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5728 | } | |
5729 | } | |
5730 | if (obj7) { | |
5731 | { | |
5732 | arg9 = wxString_in_helper(obj7); | |
5733 | if (arg9 == NULL) SWIG_fail; | |
5734 | temp8 = True; | |
5735 | } | |
5736 | } | |
5737 | { | |
5738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5739 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5740 | ||
5741 | wxPyEndAllowThreads(__tstate); | |
5742 | if (PyErr_Occurred()) SWIG_fail; | |
5743 | } | |
5744 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5745 | { | |
5746 | if (arg6) delete [] arg6; | |
5747 | } | |
5748 | { | |
5749 | if (temp8) | |
5750 | delete arg9; | |
5751 | } | |
5752 | return resultobj; | |
5753 | fail: | |
5754 | { | |
5755 | if (arg6) delete [] arg6; | |
5756 | } | |
5757 | { | |
5758 | if (temp8) | |
5759 | delete arg9; | |
5760 | } | |
5761 | return NULL; | |
5762 | } | |
5763 | ||
5764 | ||
5765 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5766 | PyObject *resultobj; | |
5767 | wxCheckListBox *result; | |
5768 | char *kwnames[] = { | |
5769 | NULL | |
5770 | }; | |
5771 | ||
5772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
5773 | { | |
5774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5775 | result = (wxCheckListBox *)new wxCheckListBox(); | |
5776 | ||
5777 | wxPyEndAllowThreads(__tstate); | |
5778 | if (PyErr_Occurred()) SWIG_fail; | |
5779 | } | |
5780 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5781 | return resultobj; | |
5782 | fail: | |
5783 | return NULL; | |
5784 | } | |
5785 | ||
5786 | ||
5787 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5788 | PyObject *resultobj; | |
5789 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5790 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5791 | int arg3 ; | |
5792 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5793 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5794 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5795 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5796 | int arg6 = (int) 0 ; | |
5797 | wxString *arg7 = (wxString *) NULL ; | |
5798 | long arg8 = (long) 0 ; | |
5799 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
5800 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
5801 | wxString const &arg10_defvalue = wxPyListBoxNameStr ; | |
5802 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
5803 | bool result; | |
5804 | wxPoint temp4 ; | |
5805 | wxSize temp5 ; | |
5806 | bool temp9 = False ; | |
5807 | PyObject * obj0 = 0 ; | |
5808 | PyObject * obj1 = 0 ; | |
5809 | PyObject * obj2 = 0 ; | |
5810 | PyObject * obj3 = 0 ; | |
5811 | PyObject * obj4 = 0 ; | |
5812 | PyObject * obj5 = 0 ; | |
5813 | PyObject * obj6 = 0 ; | |
5814 | PyObject * obj7 = 0 ; | |
5815 | PyObject * obj8 = 0 ; | |
5816 | char *kwnames[] = { | |
5817 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5818 | }; | |
5819 | ||
5820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
5821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5822 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5823 | { | |
5824 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5825 | if (PyErr_Occurred()) SWIG_fail; | |
5826 | } | |
5827 | if (obj3) { | |
5828 | { | |
5829 | arg4 = &temp4; | |
5830 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5831 | } | |
5832 | } | |
5833 | if (obj4) { | |
5834 | { | |
5835 | arg5 = &temp5; | |
5836 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5837 | } | |
5838 | } | |
5839 | if (obj5) { | |
5840 | { | |
5841 | arg6 = PyList_Size(obj5); | |
5842 | arg7 = wxString_LIST_helper(obj5); | |
5843 | if (arg7 == NULL) SWIG_fail; | |
5844 | } | |
5845 | } | |
5846 | if (obj6) { | |
5847 | { | |
5848 | arg8 = (long) SWIG_PyObj_AsLong(obj6); | |
5849 | if (PyErr_Occurred()) SWIG_fail; | |
5850 | } | |
5851 | } | |
5852 | if (obj7) { | |
5853 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5854 | if (arg9 == NULL) { | |
5855 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5856 | } | |
5857 | } | |
5858 | if (obj8) { | |
5859 | { | |
5860 | arg10 = wxString_in_helper(obj8); | |
5861 | if (arg10 == NULL) SWIG_fail; | |
5862 | temp9 = True; | |
5863 | } | |
5864 | } | |
5865 | { | |
5866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5867 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
5868 | ||
5869 | wxPyEndAllowThreads(__tstate); | |
5870 | if (PyErr_Occurred()) SWIG_fail; | |
5871 | } | |
5872 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
5873 | { | |
5874 | if (arg7) delete [] arg7; | |
5875 | } | |
5876 | { | |
5877 | if (temp9) | |
5878 | delete arg10; | |
5879 | } | |
5880 | return resultobj; | |
5881 | fail: | |
5882 | { | |
5883 | if (arg7) delete [] arg7; | |
5884 | } | |
5885 | { | |
5886 | if (temp9) | |
5887 | delete arg10; | |
5888 | } | |
5889 | return NULL; | |
5890 | } | |
5891 | ||
5892 | ||
5893 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5894 | PyObject *resultobj; | |
5895 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5896 | int arg2 ; | |
5897 | bool result; | |
5898 | PyObject * obj0 = 0 ; | |
5899 | PyObject * obj1 = 0 ; | |
5900 | char *kwnames[] = { | |
5901 | (char *) "self",(char *) "index", NULL | |
5902 | }; | |
5903 | ||
5904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
5905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5906 | { | |
5907 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5908 | if (PyErr_Occurred()) SWIG_fail; | |
5909 | } | |
5910 | { | |
5911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5912 | result = (bool)(arg1)->IsChecked(arg2); | |
5913 | ||
5914 | wxPyEndAllowThreads(__tstate); | |
5915 | if (PyErr_Occurred()) SWIG_fail; | |
5916 | } | |
5917 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
5918 | return resultobj; | |
5919 | fail: | |
5920 | return NULL; | |
5921 | } | |
5922 | ||
5923 | ||
5924 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5925 | PyObject *resultobj; | |
5926 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5927 | int arg2 ; | |
5928 | int arg3 = (int) True ; | |
5929 | PyObject * obj0 = 0 ; | |
5930 | PyObject * obj1 = 0 ; | |
5931 | PyObject * obj2 = 0 ; | |
5932 | char *kwnames[] = { | |
5933 | (char *) "self",(char *) "index",(char *) "check", NULL | |
5934 | }; | |
5935 | ||
5936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5938 | { | |
5939 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5940 | if (PyErr_Occurred()) SWIG_fail; | |
5941 | } | |
5942 | if (obj2) { | |
5943 | { | |
5944 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5945 | if (PyErr_Occurred()) SWIG_fail; | |
5946 | } | |
5947 | } | |
5948 | { | |
5949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5950 | (arg1)->Check(arg2,arg3); | |
5951 | ||
5952 | wxPyEndAllowThreads(__tstate); | |
5953 | if (PyErr_Occurred()) SWIG_fail; | |
5954 | } | |
5955 | Py_INCREF(Py_None); resultobj = Py_None; | |
5956 | return resultobj; | |
5957 | fail: | |
5958 | return NULL; | |
5959 | } | |
5960 | ||
5961 | ||
5962 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5963 | PyObject *resultobj; | |
5964 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5965 | wxPoint *arg2 = 0 ; | |
5966 | int result; | |
5967 | wxPoint temp2 ; | |
5968 | PyObject * obj0 = 0 ; | |
5969 | PyObject * obj1 = 0 ; | |
5970 | char *kwnames[] = { | |
5971 | (char *) "self",(char *) "pt", NULL | |
5972 | }; | |
5973 | ||
5974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
5975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5976 | { | |
5977 | arg2 = &temp2; | |
5978 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5979 | } | |
5980 | { | |
5981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5982 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
5983 | ||
5984 | wxPyEndAllowThreads(__tstate); | |
5985 | if (PyErr_Occurred()) SWIG_fail; | |
5986 | } | |
5987 | resultobj = SWIG_PyObj_FromInt((int)result); | |
5988 | return resultobj; | |
5989 | fail: | |
5990 | return NULL; | |
5991 | } | |
5992 | ||
5993 | ||
5994 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5995 | PyObject *resultobj; | |
5996 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5997 | int arg2 ; | |
5998 | int arg3 ; | |
5999 | int result; | |
6000 | PyObject * obj0 = 0 ; | |
6001 | PyObject * obj1 = 0 ; | |
6002 | PyObject * obj2 = 0 ; | |
6003 | char *kwnames[] = { | |
6004 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6005 | }; | |
6006 | ||
6007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6009 | { | |
6010 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6011 | if (PyErr_Occurred()) SWIG_fail; | |
6012 | } | |
6013 | { | |
6014 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6015 | if (PyErr_Occurred()) SWIG_fail; | |
6016 | } | |
6017 | { | |
6018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6019 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6020 | ||
6021 | wxPyEndAllowThreads(__tstate); | |
6022 | if (PyErr_Occurred()) SWIG_fail; | |
6023 | } | |
6024 | resultobj = SWIG_PyObj_FromInt((int)result); | |
6025 | return resultobj; | |
6026 | fail: | |
6027 | return NULL; | |
6028 | } | |
6029 | ||
6030 | ||
6031 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6032 | PyObject *obj; | |
6033 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6034 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6035 | Py_INCREF(obj); | |
6036 | return Py_BuildValue((char *)""); | |
6037 | } | |
6038 | static int _wrap_TextCtrlNameStr_set(PyObject *) { | |
6039 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); | |
6040 | return 1; | |
6041 | } | |
6042 | ||
6043 | ||
6044 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6045 | PyObject *pyobj; | |
6046 | ||
6047 | { | |
6048 | #if wxUSE_UNICODE | |
6049 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6050 | #else | |
6051 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6052 | #endif | |
6053 | } | |
6054 | return pyobj; | |
6055 | } | |
6056 | ||
6057 | ||
6058 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { | |
6059 | PyObject *resultobj; | |
6060 | wxTextAttr *result; | |
6061 | ||
6062 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
6063 | { | |
6064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6065 | result = (wxTextAttr *)new wxTextAttr(); | |
6066 | ||
6067 | wxPyEndAllowThreads(__tstate); | |
6068 | if (PyErr_Occurred()) SWIG_fail; | |
6069 | } | |
6070 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6071 | return resultobj; | |
6072 | fail: | |
6073 | return NULL; | |
6074 | } | |
6075 | ||
6076 | ||
6077 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
6078 | PyObject *resultobj; | |
6079 | wxColour *arg1 = 0 ; | |
6080 | wxColour const &arg2_defvalue = wxNullColour ; | |
6081 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6082 | wxFont const &arg3_defvalue = wxNullFont ; | |
6083 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6084 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6085 | wxTextAttr *result; | |
6086 | wxColour temp1 ; | |
6087 | wxColour temp2 ; | |
6088 | PyObject * obj0 = 0 ; | |
6089 | PyObject * obj1 = 0 ; | |
6090 | PyObject * obj2 = 0 ; | |
6091 | PyObject * obj3 = 0 ; | |
6092 | ||
6093 | if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6094 | { | |
6095 | arg1 = &temp1; | |
6096 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
6097 | } | |
6098 | if (obj1) { | |
6099 | { | |
6100 | arg2 = &temp2; | |
6101 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6102 | } | |
6103 | } | |
6104 | if (obj2) { | |
6105 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6106 | if (arg3 == NULL) { | |
6107 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6108 | } | |
6109 | } | |
6110 | if (obj3) { | |
6111 | { | |
6112 | arg4 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj3); | |
6113 | if (PyErr_Occurred()) SWIG_fail; | |
6114 | } | |
6115 | } | |
6116 | { | |
6117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6118 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
6119 | ||
6120 | wxPyEndAllowThreads(__tstate); | |
6121 | if (PyErr_Occurred()) SWIG_fail; | |
6122 | } | |
6123 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
6124 | return resultobj; | |
6125 | fail: | |
6126 | return NULL; | |
6127 | } | |
6128 | ||
6129 | ||
6130 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
6131 | int argc; | |
6132 | PyObject *argv[5]; | |
6133 | int ii; | |
6134 | ||
6135 | argc = PyObject_Length(args); | |
6136 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
6137 | argv[ii] = PyTuple_GetItem(args,ii); | |
6138 | } | |
6139 | if (argc == 0) { | |
6140 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
6141 | } | |
6142 | if ((argc >= 1) && (argc <= 4)) { | |
6143 | int _v; | |
6144 | { | |
6145 | _v = wxColour_typecheck(argv[0]); | |
6146 | } | |
6147 | if (_v) { | |
6148 | if (argc <= 1) { | |
6149 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6150 | } | |
6151 | { | |
6152 | _v = wxColour_typecheck(argv[1]); | |
6153 | } | |
6154 | if (_v) { | |
6155 | if (argc <= 2) { | |
6156 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6157 | } | |
6158 | { | |
6159 | void *ptr; | |
6160 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxFont, 0) == -1) { | |
6161 | _v = 0; | |
6162 | PyErr_Clear(); | |
6163 | } else { | |
6164 | _v = 1; | |
6165 | } | |
6166 | } | |
6167 | if (_v) { | |
6168 | if (argc <= 3) { | |
6169 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6170 | } | |
6171 | { | |
6172 | SWIG_PyObj_AsInt(argv[3]); | |
6173 | if (PyErr_Occurred()) { | |
6174 | _v = 0; | |
6175 | PyErr_Clear(); | |
6176 | } else { | |
6177 | _v = 1; | |
6178 | } | |
6179 | } | |
6180 | if (_v) { | |
6181 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6182 | } | |
6183 | } | |
6184 | } | |
6185 | } | |
6186 | } | |
6187 | ||
6188 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
6189 | return NULL; | |
6190 | } | |
6191 | ||
6192 | ||
6193 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6194 | PyObject *resultobj; | |
6195 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6196 | PyObject * obj0 = 0 ; | |
6197 | char *kwnames[] = { | |
6198 | (char *) "self", NULL | |
6199 | }; | |
6200 | ||
6201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
6202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6203 | { | |
6204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6205 | delete arg1; | |
6206 | ||
6207 | wxPyEndAllowThreads(__tstate); | |
6208 | if (PyErr_Occurred()) SWIG_fail; | |
6209 | } | |
6210 | Py_INCREF(Py_None); resultobj = Py_None; | |
6211 | return resultobj; | |
6212 | fail: | |
6213 | return NULL; | |
6214 | } | |
6215 | ||
6216 | ||
6217 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6218 | PyObject *resultobj; | |
6219 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6220 | PyObject * obj0 = 0 ; | |
6221 | char *kwnames[] = { | |
6222 | (char *) "self", NULL | |
6223 | }; | |
6224 | ||
6225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
6226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6227 | { | |
6228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6229 | (arg1)->Init(); | |
6230 | ||
6231 | wxPyEndAllowThreads(__tstate); | |
6232 | if (PyErr_Occurred()) SWIG_fail; | |
6233 | } | |
6234 | Py_INCREF(Py_None); resultobj = Py_None; | |
6235 | return resultobj; | |
6236 | fail: | |
6237 | return NULL; | |
6238 | } | |
6239 | ||
6240 | ||
6241 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6242 | PyObject *resultobj; | |
6243 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6244 | wxColour *arg2 = 0 ; | |
6245 | wxColour temp2 ; | |
6246 | PyObject * obj0 = 0 ; | |
6247 | PyObject * obj1 = 0 ; | |
6248 | char *kwnames[] = { | |
6249 | (char *) "self",(char *) "colText", NULL | |
6250 | }; | |
6251 | ||
6252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
6253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6254 | { | |
6255 | arg2 = &temp2; | |
6256 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6257 | } | |
6258 | { | |
6259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6260 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
6261 | ||
6262 | wxPyEndAllowThreads(__tstate); | |
6263 | if (PyErr_Occurred()) SWIG_fail; | |
6264 | } | |
6265 | Py_INCREF(Py_None); resultobj = Py_None; | |
6266 | return resultobj; | |
6267 | fail: | |
6268 | return NULL; | |
6269 | } | |
6270 | ||
6271 | ||
6272 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6273 | PyObject *resultobj; | |
6274 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6275 | wxColour *arg2 = 0 ; | |
6276 | wxColour temp2 ; | |
6277 | PyObject * obj0 = 0 ; | |
6278 | PyObject * obj1 = 0 ; | |
6279 | char *kwnames[] = { | |
6280 | (char *) "self",(char *) "colBack", NULL | |
6281 | }; | |
6282 | ||
6283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
6284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6285 | { | |
6286 | arg2 = &temp2; | |
6287 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6288 | } | |
6289 | { | |
6290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6291 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
6292 | ||
6293 | wxPyEndAllowThreads(__tstate); | |
6294 | if (PyErr_Occurred()) SWIG_fail; | |
6295 | } | |
6296 | Py_INCREF(Py_None); resultobj = Py_None; | |
6297 | return resultobj; | |
6298 | fail: | |
6299 | return NULL; | |
6300 | } | |
6301 | ||
6302 | ||
6303 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6304 | PyObject *resultobj; | |
6305 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6306 | wxFont *arg2 = 0 ; | |
6307 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
6308 | PyObject * obj0 = 0 ; | |
6309 | PyObject * obj1 = 0 ; | |
6310 | PyObject * obj2 = 0 ; | |
6311 | char *kwnames[] = { | |
6312 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
6313 | }; | |
6314 | ||
6315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6317 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6318 | if (arg2 == NULL) { | |
6319 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6320 | } | |
6321 | if (obj2) { | |
6322 | { | |
6323 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
6324 | if (PyErr_Occurred()) SWIG_fail; | |
6325 | } | |
6326 | } | |
6327 | { | |
6328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6329 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
6330 | ||
6331 | wxPyEndAllowThreads(__tstate); | |
6332 | if (PyErr_Occurred()) SWIG_fail; | |
6333 | } | |
6334 | Py_INCREF(Py_None); resultobj = Py_None; | |
6335 | return resultobj; | |
6336 | fail: | |
6337 | return NULL; | |
6338 | } | |
6339 | ||
6340 | ||
6341 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6342 | PyObject *resultobj; | |
6343 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6344 | int arg2 ; | |
6345 | PyObject * obj0 = 0 ; | |
6346 | PyObject * obj1 = 0 ; | |
6347 | char *kwnames[] = { | |
6348 | (char *) "self",(char *) "alignment", NULL | |
6349 | }; | |
6350 | ||
6351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
6352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6353 | { | |
6354 | arg2 = (wxTextAttrAlignment) SWIG_PyObj_AsInt(obj1); | |
6355 | if (PyErr_Occurred()) SWIG_fail; | |
6356 | } | |
6357 | { | |
6358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6359 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
6360 | ||
6361 | wxPyEndAllowThreads(__tstate); | |
6362 | if (PyErr_Occurred()) SWIG_fail; | |
6363 | } | |
6364 | Py_INCREF(Py_None); resultobj = Py_None; | |
6365 | return resultobj; | |
6366 | fail: | |
6367 | return NULL; | |
6368 | } | |
6369 | ||
6370 | ||
6371 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6372 | PyObject *resultobj; | |
6373 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6374 | wxArrayInt *arg2 = 0 ; | |
6375 | PyObject * obj0 = 0 ; | |
6376 | PyObject * obj1 = 0 ; | |
6377 | char *kwnames[] = { | |
6378 | (char *) "self",(char *) "tabs", NULL | |
6379 | }; | |
6380 | ||
6381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
6382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6383 | { | |
6384 | if (! PySequence_Check(obj1)) { | |
6385 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
6386 | SWIG_fail; | |
6387 | } | |
6388 | arg2 = new wxArrayInt; | |
6389 | int i, len=PySequence_Length(obj1); | |
6390 | for (i=0; i<len; i++) { | |
6391 | PyObject* item = PySequence_GetItem(obj1, i); | |
6392 | PyObject* number = PyNumber_Int(item); | |
6393 | arg2->Add(PyInt_AS_LONG(number)); | |
6394 | Py_DECREF(item); | |
6395 | Py_DECREF(number); | |
6396 | } | |
6397 | } | |
6398 | { | |
6399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6400 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
6401 | ||
6402 | wxPyEndAllowThreads(__tstate); | |
6403 | if (PyErr_Occurred()) SWIG_fail; | |
6404 | } | |
6405 | Py_INCREF(Py_None); resultobj = Py_None; | |
6406 | { | |
6407 | if (arg2) delete arg2; | |
6408 | } | |
6409 | return resultobj; | |
6410 | fail: | |
6411 | { | |
6412 | if (arg2) delete arg2; | |
6413 | } | |
6414 | return NULL; | |
6415 | } | |
6416 | ||
6417 | ||
6418 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6419 | PyObject *resultobj; | |
6420 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6421 | int arg2 ; | |
6422 | PyObject * obj0 = 0 ; | |
6423 | PyObject * obj1 = 0 ; | |
6424 | char *kwnames[] = { | |
6425 | (char *) "self",(char *) "indent", NULL | |
6426 | }; | |
6427 | ||
6428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; | |
6429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6430 | { | |
6431 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6432 | if (PyErr_Occurred()) SWIG_fail; | |
6433 | } | |
6434 | { | |
6435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6436 | (arg1)->SetLeftIndent(arg2); | |
6437 | ||
6438 | wxPyEndAllowThreads(__tstate); | |
6439 | if (PyErr_Occurred()) SWIG_fail; | |
6440 | } | |
6441 | Py_INCREF(Py_None); resultobj = Py_None; | |
6442 | return resultobj; | |
6443 | fail: | |
6444 | return NULL; | |
6445 | } | |
6446 | ||
6447 | ||
6448 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6449 | PyObject *resultobj; | |
6450 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6451 | int arg2 ; | |
6452 | PyObject * obj0 = 0 ; | |
6453 | PyObject * obj1 = 0 ; | |
6454 | char *kwnames[] = { | |
6455 | (char *) "self",(char *) "indent", NULL | |
6456 | }; | |
6457 | ||
6458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; | |
6459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6460 | { | |
6461 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6462 | if (PyErr_Occurred()) SWIG_fail; | |
6463 | } | |
6464 | { | |
6465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6466 | (arg1)->SetRightIndent(arg2); | |
6467 | ||
6468 | wxPyEndAllowThreads(__tstate); | |
6469 | if (PyErr_Occurred()) SWIG_fail; | |
6470 | } | |
6471 | Py_INCREF(Py_None); resultobj = Py_None; | |
6472 | return resultobj; | |
6473 | fail: | |
6474 | return NULL; | |
6475 | } | |
6476 | ||
6477 | ||
6478 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6479 | PyObject *resultobj; | |
6480 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6481 | long arg2 ; | |
6482 | PyObject * obj0 = 0 ; | |
6483 | PyObject * obj1 = 0 ; | |
6484 | char *kwnames[] = { | |
6485 | (char *) "self",(char *) "flags", NULL | |
6486 | }; | |
6487 | ||
6488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
6489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6490 | { | |
6491 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
6492 | if (PyErr_Occurred()) SWIG_fail; | |
6493 | } | |
6494 | { | |
6495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6496 | (arg1)->SetFlags(arg2); | |
6497 | ||
6498 | wxPyEndAllowThreads(__tstate); | |
6499 | if (PyErr_Occurred()) SWIG_fail; | |
6500 | } | |
6501 | Py_INCREF(Py_None); resultobj = Py_None; | |
6502 | return resultobj; | |
6503 | fail: | |
6504 | return NULL; | |
6505 | } | |
6506 | ||
6507 | ||
6508 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6509 | PyObject *resultobj; | |
6510 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6511 | bool result; | |
6512 | PyObject * obj0 = 0 ; | |
6513 | char *kwnames[] = { | |
6514 | (char *) "self", NULL | |
6515 | }; | |
6516 | ||
6517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
6518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6519 | { | |
6520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6521 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
6522 | ||
6523 | wxPyEndAllowThreads(__tstate); | |
6524 | if (PyErr_Occurred()) SWIG_fail; | |
6525 | } | |
6526 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
6527 | return resultobj; | |
6528 | fail: | |
6529 | return NULL; | |
6530 | } | |
6531 | ||
6532 | ||
6533 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6534 | PyObject *resultobj; | |
6535 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6536 | bool result; | |
6537 | PyObject * obj0 = 0 ; | |
6538 | char *kwnames[] = { | |
6539 | (char *) "self", NULL | |
6540 | }; | |
6541 | ||
6542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
6543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6544 | { | |
6545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6546 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
6547 | ||
6548 | wxPyEndAllowThreads(__tstate); | |
6549 | if (PyErr_Occurred()) SWIG_fail; | |
6550 | } | |
6551 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
6552 | return resultobj; | |
6553 | fail: | |
6554 | return NULL; | |
6555 | } | |
6556 | ||
6557 | ||
6558 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6559 | PyObject *resultobj; | |
6560 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6561 | bool result; | |
6562 | PyObject * obj0 = 0 ; | |
6563 | char *kwnames[] = { | |
6564 | (char *) "self", NULL | |
6565 | }; | |
6566 | ||
6567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
6568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6569 | { | |
6570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6571 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
6572 | ||
6573 | wxPyEndAllowThreads(__tstate); | |
6574 | if (PyErr_Occurred()) SWIG_fail; | |
6575 | } | |
6576 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
6577 | return resultobj; | |
6578 | fail: | |
6579 | return NULL; | |
6580 | } | |
6581 | ||
6582 | ||
6583 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6584 | PyObject *resultobj; | |
6585 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6586 | bool result; | |
6587 | PyObject * obj0 = 0 ; | |
6588 | char *kwnames[] = { | |
6589 | (char *) "self", NULL | |
6590 | }; | |
6591 | ||
6592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
6593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6594 | { | |
6595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6596 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
6597 | ||
6598 | wxPyEndAllowThreads(__tstate); | |
6599 | if (PyErr_Occurred()) SWIG_fail; | |
6600 | } | |
6601 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
6602 | return resultobj; | |
6603 | fail: | |
6604 | return NULL; | |
6605 | } | |
6606 | ||
6607 | ||
6608 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6609 | PyObject *resultobj; | |
6610 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6611 | bool result; | |
6612 | PyObject * obj0 = 0 ; | |
6613 | char *kwnames[] = { | |
6614 | (char *) "self", NULL | |
6615 | }; | |
6616 | ||
6617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
6618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6619 | { | |
6620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6621 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
6622 | ||
6623 | wxPyEndAllowThreads(__tstate); | |
6624 | if (PyErr_Occurred()) SWIG_fail; | |
6625 | } | |
6626 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
6627 | return resultobj; | |
6628 | fail: | |
6629 | return NULL; | |
6630 | } | |
6631 | ||
6632 | ||
6633 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6634 | PyObject *resultobj; | |
6635 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6636 | bool result; | |
6637 | PyObject * obj0 = 0 ; | |
6638 | char *kwnames[] = { | |
6639 | (char *) "self", NULL | |
6640 | }; | |
6641 | ||
6642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
6643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6644 | { | |
6645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6646 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
6647 | ||
6648 | wxPyEndAllowThreads(__tstate); | |
6649 | if (PyErr_Occurred()) SWIG_fail; | |
6650 | } | |
6651 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
6652 | return resultobj; | |
6653 | fail: | |
6654 | return NULL; | |
6655 | } | |
6656 | ||
6657 | ||
6658 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6659 | PyObject *resultobj; | |
6660 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6661 | bool result; | |
6662 | PyObject * obj0 = 0 ; | |
6663 | char *kwnames[] = { | |
6664 | (char *) "self", NULL | |
6665 | }; | |
6666 | ||
6667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
6668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6669 | { | |
6670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6671 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
6672 | ||
6673 | wxPyEndAllowThreads(__tstate); | |
6674 | if (PyErr_Occurred()) SWIG_fail; | |
6675 | } | |
6676 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
6677 | return resultobj; | |
6678 | fail: | |
6679 | return NULL; | |
6680 | } | |
6681 | ||
6682 | ||
6683 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6684 | PyObject *resultobj; | |
6685 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6686 | long arg2 ; | |
6687 | bool result; | |
6688 | PyObject * obj0 = 0 ; | |
6689 | PyObject * obj1 = 0 ; | |
6690 | char *kwnames[] = { | |
6691 | (char *) "self",(char *) "flag", NULL | |
6692 | }; | |
6693 | ||
6694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
6695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6696 | { | |
6697 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
6698 | if (PyErr_Occurred()) SWIG_fail; | |
6699 | } | |
6700 | { | |
6701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6702 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
6703 | ||
6704 | wxPyEndAllowThreads(__tstate); | |
6705 | if (PyErr_Occurred()) SWIG_fail; | |
6706 | } | |
6707 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
6708 | return resultobj; | |
6709 | fail: | |
6710 | return NULL; | |
6711 | } | |
6712 | ||
6713 | ||
6714 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6715 | PyObject *resultobj; | |
6716 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6717 | wxColour *result; | |
6718 | PyObject * obj0 = 0 ; | |
6719 | char *kwnames[] = { | |
6720 | (char *) "self", NULL | |
6721 | }; | |
6722 | ||
6723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
6724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6725 | { | |
6726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6727 | { | |
6728 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
6729 | result = (wxColour *) &_result_ref; | |
6730 | } | |
6731 | ||
6732 | wxPyEndAllowThreads(__tstate); | |
6733 | if (PyErr_Occurred()) SWIG_fail; | |
6734 | } | |
6735 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6736 | return resultobj; | |
6737 | fail: | |
6738 | return NULL; | |
6739 | } | |
6740 | ||
6741 | ||
6742 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6743 | PyObject *resultobj; | |
6744 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6745 | wxColour *result; | |
6746 | PyObject * obj0 = 0 ; | |
6747 | char *kwnames[] = { | |
6748 | (char *) "self", NULL | |
6749 | }; | |
6750 | ||
6751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
6752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6753 | { | |
6754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6755 | { | |
6756 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
6757 | result = (wxColour *) &_result_ref; | |
6758 | } | |
6759 | ||
6760 | wxPyEndAllowThreads(__tstate); | |
6761 | if (PyErr_Occurred()) SWIG_fail; | |
6762 | } | |
6763 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6764 | return resultobj; | |
6765 | fail: | |
6766 | return NULL; | |
6767 | } | |
6768 | ||
6769 | ||
6770 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6771 | PyObject *resultobj; | |
6772 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6773 | wxFont *result; | |
6774 | PyObject * obj0 = 0 ; | |
6775 | char *kwnames[] = { | |
6776 | (char *) "self", NULL | |
6777 | }; | |
6778 | ||
6779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
6780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6781 | { | |
6782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6783 | { | |
6784 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
6785 | result = (wxFont *) &_result_ref; | |
6786 | } | |
6787 | ||
6788 | wxPyEndAllowThreads(__tstate); | |
6789 | if (PyErr_Occurred()) SWIG_fail; | |
6790 | } | |
6791 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
6792 | return resultobj; | |
6793 | fail: | |
6794 | return NULL; | |
6795 | } | |
6796 | ||
6797 | ||
6798 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6799 | PyObject *resultobj; | |
6800 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6801 | int result; | |
6802 | PyObject * obj0 = 0 ; | |
6803 | char *kwnames[] = { | |
6804 | (char *) "self", NULL | |
6805 | }; | |
6806 | ||
6807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
6808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6809 | { | |
6810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6811 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
6812 | ||
6813 | wxPyEndAllowThreads(__tstate); | |
6814 | if (PyErr_Occurred()) SWIG_fail; | |
6815 | } | |
6816 | resultobj = SWIG_PyObj_FromInt((int)result); | |
6817 | return resultobj; | |
6818 | fail: | |
6819 | return NULL; | |
6820 | } | |
6821 | ||
6822 | ||
6823 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6824 | PyObject *resultobj; | |
6825 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6826 | wxArrayInt *result; | |
6827 | PyObject * obj0 = 0 ; | |
6828 | char *kwnames[] = { | |
6829 | (char *) "self", NULL | |
6830 | }; | |
6831 | ||
6832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
6833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6834 | { | |
6835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6836 | { | |
6837 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
6838 | result = (wxArrayInt *) &_result_ref; | |
6839 | } | |
6840 | ||
6841 | wxPyEndAllowThreads(__tstate); | |
6842 | if (PyErr_Occurred()) SWIG_fail; | |
6843 | } | |
6844 | { | |
6845 | resultobj = PyList_New(0); | |
6846 | size_t idx; | |
6847 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
6848 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
6849 | PyList_Append(resultobj, val); | |
6850 | Py_DECREF(val); | |
6851 | } | |
6852 | } | |
6853 | return resultobj; | |
6854 | fail: | |
6855 | return NULL; | |
6856 | } | |
6857 | ||
6858 | ||
6859 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6860 | PyObject *resultobj; | |
6861 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6862 | long result; | |
6863 | PyObject * obj0 = 0 ; | |
6864 | char *kwnames[] = { | |
6865 | (char *) "self", NULL | |
6866 | }; | |
6867 | ||
6868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
6869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6870 | { | |
6871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6872 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
6873 | ||
6874 | wxPyEndAllowThreads(__tstate); | |
6875 | if (PyErr_Occurred()) SWIG_fail; | |
6876 | } | |
6877 | resultobj = SWIG_PyObj_FromLong((long)result); | |
6878 | return resultobj; | |
6879 | fail: | |
6880 | return NULL; | |
6881 | } | |
6882 | ||
6883 | ||
6884 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6885 | PyObject *resultobj; | |
6886 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6887 | long result; | |
6888 | PyObject * obj0 = 0 ; | |
6889 | char *kwnames[] = { | |
6890 | (char *) "self", NULL | |
6891 | }; | |
6892 | ||
6893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
6894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6895 | { | |
6896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6897 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
6898 | ||
6899 | wxPyEndAllowThreads(__tstate); | |
6900 | if (PyErr_Occurred()) SWIG_fail; | |
6901 | } | |
6902 | resultobj = SWIG_PyObj_FromLong((long)result); | |
6903 | return resultobj; | |
6904 | fail: | |
6905 | return NULL; | |
6906 | } | |
6907 | ||
6908 | ||
6909 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6910 | PyObject *resultobj; | |
6911 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6912 | long result; | |
6913 | PyObject * obj0 = 0 ; | |
6914 | char *kwnames[] = { | |
6915 | (char *) "self", NULL | |
6916 | }; | |
6917 | ||
6918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
6919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6920 | { | |
6921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6922 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
6923 | ||
6924 | wxPyEndAllowThreads(__tstate); | |
6925 | if (PyErr_Occurred()) SWIG_fail; | |
6926 | } | |
6927 | resultobj = SWIG_PyObj_FromLong((long)result); | |
6928 | return resultobj; | |
6929 | fail: | |
6930 | return NULL; | |
6931 | } | |
6932 | ||
6933 | ||
6934 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6935 | PyObject *resultobj; | |
6936 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6937 | bool result; | |
6938 | PyObject * obj0 = 0 ; | |
6939 | char *kwnames[] = { | |
6940 | (char *) "self", NULL | |
6941 | }; | |
6942 | ||
6943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
6944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6945 | { | |
6946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6947 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
6948 | ||
6949 | wxPyEndAllowThreads(__tstate); | |
6950 | if (PyErr_Occurred()) SWIG_fail; | |
6951 | } | |
6952 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
6953 | return resultobj; | |
6954 | fail: | |
6955 | return NULL; | |
6956 | } | |
6957 | ||
6958 | ||
6959 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6960 | PyObject *resultobj; | |
6961 | wxTextAttr *arg1 = 0 ; | |
6962 | wxTextAttr *arg2 = 0 ; | |
6963 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
6964 | wxTextAttr result; | |
6965 | PyObject * obj0 = 0 ; | |
6966 | PyObject * obj1 = 0 ; | |
6967 | PyObject * obj2 = 0 ; | |
6968 | char *kwnames[] = { | |
6969 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
6970 | }; | |
6971 | ||
6972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6974 | if (arg1 == NULL) { | |
6975 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6976 | } | |
6977 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6978 | if (arg2 == NULL) { | |
6979 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6980 | } | |
6981 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6982 | { | |
6983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6984 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
6985 | ||
6986 | wxPyEndAllowThreads(__tstate); | |
6987 | if (PyErr_Occurred()) SWIG_fail; | |
6988 | } | |
6989 | { | |
6990 | wxTextAttr * resultptr; | |
6991 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
6992 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTextAttr, 1); | |
6993 | } | |
6994 | return resultobj; | |
6995 | fail: | |
6996 | return NULL; | |
6997 | } | |
6998 | ||
6999 | ||
7000 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7001 | PyObject *obj; | |
7002 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7003 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7004 | Py_INCREF(obj); | |
7005 | return Py_BuildValue((char *)""); | |
7006 | } | |
7007 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7008 | PyObject *resultobj; | |
7009 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7010 | int arg2 ; | |
7011 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7012 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7013 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7014 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7015 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7016 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7017 | long arg6 = (long) 0 ; | |
7018 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7019 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7020 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7021 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7022 | wxTextCtrl *result; | |
7023 | bool temp3 = False ; | |
7024 | wxPoint temp4 ; | |
7025 | wxSize temp5 ; | |
7026 | bool temp8 = False ; | |
7027 | PyObject * obj0 = 0 ; | |
7028 | PyObject * obj1 = 0 ; | |
7029 | PyObject * obj2 = 0 ; | |
7030 | PyObject * obj3 = 0 ; | |
7031 | PyObject * obj4 = 0 ; | |
7032 | PyObject * obj5 = 0 ; | |
7033 | PyObject * obj6 = 0 ; | |
7034 | PyObject * obj7 = 0 ; | |
7035 | char *kwnames[] = { | |
7036 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7037 | }; | |
7038 | ||
7039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
7040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7041 | { | |
7042 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7043 | if (PyErr_Occurred()) SWIG_fail; | |
7044 | } | |
7045 | if (obj2) { | |
7046 | { | |
7047 | arg3 = wxString_in_helper(obj2); | |
7048 | if (arg3 == NULL) SWIG_fail; | |
7049 | temp3 = True; | |
7050 | } | |
7051 | } | |
7052 | if (obj3) { | |
7053 | { | |
7054 | arg4 = &temp4; | |
7055 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7056 | } | |
7057 | } | |
7058 | if (obj4) { | |
7059 | { | |
7060 | arg5 = &temp5; | |
7061 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7062 | } | |
7063 | } | |
7064 | if (obj5) { | |
7065 | { | |
7066 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
7067 | if (PyErr_Occurred()) SWIG_fail; | |
7068 | } | |
7069 | } | |
7070 | if (obj6) { | |
7071 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7072 | if (arg7 == NULL) { | |
7073 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7074 | } | |
7075 | } | |
7076 | if (obj7) { | |
7077 | { | |
7078 | arg8 = wxString_in_helper(obj7); | |
7079 | if (arg8 == NULL) SWIG_fail; | |
7080 | temp8 = True; | |
7081 | } | |
7082 | } | |
7083 | { | |
7084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7085 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7086 | ||
7087 | wxPyEndAllowThreads(__tstate); | |
7088 | if (PyErr_Occurred()) SWIG_fail; | |
7089 | } | |
7090 | { | |
7091 | resultobj = wxPyMake_wxObject(result); | |
7092 | } | |
7093 | { | |
7094 | if (temp3) | |
7095 | delete arg3; | |
7096 | } | |
7097 | { | |
7098 | if (temp8) | |
7099 | delete arg8; | |
7100 | } | |
7101 | return resultobj; | |
7102 | fail: | |
7103 | { | |
7104 | if (temp3) | |
7105 | delete arg3; | |
7106 | } | |
7107 | { | |
7108 | if (temp8) | |
7109 | delete arg8; | |
7110 | } | |
7111 | return NULL; | |
7112 | } | |
7113 | ||
7114 | ||
7115 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7116 | PyObject *resultobj; | |
7117 | wxTextCtrl *result; | |
7118 | char *kwnames[] = { | |
7119 | NULL | |
7120 | }; | |
7121 | ||
7122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
7123 | { | |
7124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7125 | result = (wxTextCtrl *)new wxTextCtrl(); | |
7126 | ||
7127 | wxPyEndAllowThreads(__tstate); | |
7128 | if (PyErr_Occurred()) SWIG_fail; | |
7129 | } | |
7130 | { | |
7131 | resultobj = wxPyMake_wxObject(result); | |
7132 | } | |
7133 | return resultobj; | |
7134 | fail: | |
7135 | return NULL; | |
7136 | } | |
7137 | ||
7138 | ||
7139 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7140 | PyObject *resultobj; | |
7141 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7142 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7143 | int arg3 ; | |
7144 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7145 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7146 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7147 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7148 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7149 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7150 | long arg7 = (long) 0 ; | |
7151 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7152 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7153 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
7154 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7155 | bool result; | |
7156 | bool temp4 = False ; | |
7157 | wxPoint temp5 ; | |
7158 | wxSize temp6 ; | |
7159 | bool temp9 = False ; | |
7160 | PyObject * obj0 = 0 ; | |
7161 | PyObject * obj1 = 0 ; | |
7162 | PyObject * obj2 = 0 ; | |
7163 | PyObject * obj3 = 0 ; | |
7164 | PyObject * obj4 = 0 ; | |
7165 | PyObject * obj5 = 0 ; | |
7166 | PyObject * obj6 = 0 ; | |
7167 | PyObject * obj7 = 0 ; | |
7168 | PyObject * obj8 = 0 ; | |
7169 | char *kwnames[] = { | |
7170 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7171 | }; | |
7172 | ||
7173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
7174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7175 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7176 | { | |
7177 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7178 | if (PyErr_Occurred()) SWIG_fail; | |
7179 | } | |
7180 | if (obj3) { | |
7181 | { | |
7182 | arg4 = wxString_in_helper(obj3); | |
7183 | if (arg4 == NULL) SWIG_fail; | |
7184 | temp4 = True; | |
7185 | } | |
7186 | } | |
7187 | if (obj4) { | |
7188 | { | |
7189 | arg5 = &temp5; | |
7190 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
7191 | } | |
7192 | } | |
7193 | if (obj5) { | |
7194 | { | |
7195 | arg6 = &temp6; | |
7196 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7197 | } | |
7198 | } | |
7199 | if (obj6) { | |
7200 | { | |
7201 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
7202 | if (PyErr_Occurred()) SWIG_fail; | |
7203 | } | |
7204 | } | |
7205 | if (obj7) { | |
7206 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7207 | if (arg8 == NULL) { | |
7208 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7209 | } | |
7210 | } | |
7211 | if (obj8) { | |
7212 | { | |
7213 | arg9 = wxString_in_helper(obj8); | |
7214 | if (arg9 == NULL) SWIG_fail; | |
7215 | temp9 = True; | |
7216 | } | |
7217 | } | |
7218 | { | |
7219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7220 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7221 | ||
7222 | wxPyEndAllowThreads(__tstate); | |
7223 | if (PyErr_Occurred()) SWIG_fail; | |
7224 | } | |
7225 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
7226 | { | |
7227 | if (temp4) | |
7228 | delete arg4; | |
7229 | } | |
7230 | { | |
7231 | if (temp9) | |
7232 | delete arg9; | |
7233 | } | |
7234 | return resultobj; | |
7235 | fail: | |
7236 | { | |
7237 | if (temp4) | |
7238 | delete arg4; | |
7239 | } | |
7240 | { | |
7241 | if (temp9) | |
7242 | delete arg9; | |
7243 | } | |
7244 | return NULL; | |
7245 | } | |
7246 | ||
7247 | ||
7248 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7249 | PyObject *resultobj; | |
7250 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7251 | wxString result; | |
7252 | PyObject * obj0 = 0 ; | |
7253 | char *kwnames[] = { | |
7254 | (char *) "self", NULL | |
7255 | }; | |
7256 | ||
7257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
7258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7259 | { | |
7260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7261 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
7262 | ||
7263 | wxPyEndAllowThreads(__tstate); | |
7264 | if (PyErr_Occurred()) SWIG_fail; | |
7265 | } | |
7266 | { | |
7267 | #if wxUSE_UNICODE | |
7268 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7269 | #else | |
7270 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7271 | #endif | |
7272 | } | |
7273 | return resultobj; | |
7274 | fail: | |
7275 | return NULL; | |
7276 | } | |
7277 | ||
7278 | ||
7279 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7280 | PyObject *resultobj; | |
7281 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7282 | wxString *arg2 = 0 ; | |
7283 | bool temp2 = False ; | |
7284 | PyObject * obj0 = 0 ; | |
7285 | PyObject * obj1 = 0 ; | |
7286 | char *kwnames[] = { | |
7287 | (char *) "self",(char *) "value", NULL | |
7288 | }; | |
7289 | ||
7290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
7291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7292 | { | |
7293 | arg2 = wxString_in_helper(obj1); | |
7294 | if (arg2 == NULL) SWIG_fail; | |
7295 | temp2 = True; | |
7296 | } | |
7297 | { | |
7298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7299 | (arg1)->SetValue((wxString const &)*arg2); | |
7300 | ||
7301 | wxPyEndAllowThreads(__tstate); | |
7302 | if (PyErr_Occurred()) SWIG_fail; | |
7303 | } | |
7304 | Py_INCREF(Py_None); resultobj = Py_None; | |
7305 | { | |
7306 | if (temp2) | |
7307 | delete arg2; | |
7308 | } | |
7309 | return resultobj; | |
7310 | fail: | |
7311 | { | |
7312 | if (temp2) | |
7313 | delete arg2; | |
7314 | } | |
7315 | return NULL; | |
7316 | } | |
7317 | ||
7318 | ||
7319 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7320 | PyObject *resultobj; | |
7321 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7322 | long arg2 ; | |
7323 | long arg3 ; | |
7324 | wxString result; | |
7325 | PyObject * obj0 = 0 ; | |
7326 | PyObject * obj1 = 0 ; | |
7327 | PyObject * obj2 = 0 ; | |
7328 | char *kwnames[] = { | |
7329 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7330 | }; | |
7331 | ||
7332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7334 | { | |
7335 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7336 | if (PyErr_Occurred()) SWIG_fail; | |
7337 | } | |
7338 | { | |
7339 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7340 | if (PyErr_Occurred()) SWIG_fail; | |
7341 | } | |
7342 | { | |
7343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7344 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
7345 | ||
7346 | wxPyEndAllowThreads(__tstate); | |
7347 | if (PyErr_Occurred()) SWIG_fail; | |
7348 | } | |
7349 | { | |
7350 | #if wxUSE_UNICODE | |
7351 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7352 | #else | |
7353 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7354 | #endif | |
7355 | } | |
7356 | return resultobj; | |
7357 | fail: | |
7358 | return NULL; | |
7359 | } | |
7360 | ||
7361 | ||
7362 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7363 | PyObject *resultobj; | |
7364 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7365 | long arg2 ; | |
7366 | int result; | |
7367 | PyObject * obj0 = 0 ; | |
7368 | PyObject * obj1 = 0 ; | |
7369 | char *kwnames[] = { | |
7370 | (char *) "self",(char *) "lineNo", NULL | |
7371 | }; | |
7372 | ||
7373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; | |
7374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7375 | { | |
7376 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7377 | if (PyErr_Occurred()) SWIG_fail; | |
7378 | } | |
7379 | { | |
7380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7381 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
7382 | ||
7383 | wxPyEndAllowThreads(__tstate); | |
7384 | if (PyErr_Occurred()) SWIG_fail; | |
7385 | } | |
7386 | resultobj = SWIG_PyObj_FromInt((int)result); | |
7387 | return resultobj; | |
7388 | fail: | |
7389 | return NULL; | |
7390 | } | |
7391 | ||
7392 | ||
7393 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7394 | PyObject *resultobj; | |
7395 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7396 | long arg2 ; | |
7397 | wxString result; | |
7398 | PyObject * obj0 = 0 ; | |
7399 | PyObject * obj1 = 0 ; | |
7400 | char *kwnames[] = { | |
7401 | (char *) "self",(char *) "lineNo", NULL | |
7402 | }; | |
7403 | ||
7404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; | |
7405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7406 | { | |
7407 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7408 | if (PyErr_Occurred()) SWIG_fail; | |
7409 | } | |
7410 | { | |
7411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7412 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
7413 | ||
7414 | wxPyEndAllowThreads(__tstate); | |
7415 | if (PyErr_Occurred()) SWIG_fail; | |
7416 | } | |
7417 | { | |
7418 | #if wxUSE_UNICODE | |
7419 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7420 | #else | |
7421 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7422 | #endif | |
7423 | } | |
7424 | return resultobj; | |
7425 | fail: | |
7426 | return NULL; | |
7427 | } | |
7428 | ||
7429 | ||
7430 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7431 | PyObject *resultobj; | |
7432 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7433 | int result; | |
7434 | PyObject * obj0 = 0 ; | |
7435 | char *kwnames[] = { | |
7436 | (char *) "self", NULL | |
7437 | }; | |
7438 | ||
7439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
7440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7441 | { | |
7442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7443 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
7444 | ||
7445 | wxPyEndAllowThreads(__tstate); | |
7446 | if (PyErr_Occurred()) SWIG_fail; | |
7447 | } | |
7448 | resultobj = SWIG_PyObj_FromInt((int)result); | |
7449 | return resultobj; | |
7450 | fail: | |
7451 | return NULL; | |
7452 | } | |
7453 | ||
7454 | ||
7455 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7456 | PyObject *resultobj; | |
7457 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7458 | bool result; | |
7459 | PyObject * obj0 = 0 ; | |
7460 | char *kwnames[] = { | |
7461 | (char *) "self", NULL | |
7462 | }; | |
7463 | ||
7464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
7465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7466 | { | |
7467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7468 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
7469 | ||
7470 | wxPyEndAllowThreads(__tstate); | |
7471 | if (PyErr_Occurred()) SWIG_fail; | |
7472 | } | |
7473 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
7474 | return resultobj; | |
7475 | fail: | |
7476 | return NULL; | |
7477 | } | |
7478 | ||
7479 | ||
7480 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7481 | PyObject *resultobj; | |
7482 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7483 | bool result; | |
7484 | PyObject * obj0 = 0 ; | |
7485 | char *kwnames[] = { | |
7486 | (char *) "self", NULL | |
7487 | }; | |
7488 | ||
7489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
7490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7491 | { | |
7492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7493 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
7494 | ||
7495 | wxPyEndAllowThreads(__tstate); | |
7496 | if (PyErr_Occurred()) SWIG_fail; | |
7497 | } | |
7498 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
7499 | return resultobj; | |
7500 | fail: | |
7501 | return NULL; | |
7502 | } | |
7503 | ||
7504 | ||
7505 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7506 | PyObject *resultobj; | |
7507 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7508 | bool result; | |
7509 | PyObject * obj0 = 0 ; | |
7510 | char *kwnames[] = { | |
7511 | (char *) "self", NULL | |
7512 | }; | |
7513 | ||
7514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
7515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7516 | { | |
7517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7518 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
7519 | ||
7520 | wxPyEndAllowThreads(__tstate); | |
7521 | if (PyErr_Occurred()) SWIG_fail; | |
7522 | } | |
7523 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
7524 | return resultobj; | |
7525 | fail: | |
7526 | return NULL; | |
7527 | } | |
7528 | ||
7529 | ||
7530 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7531 | PyObject *resultobj; | |
7532 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7533 | bool result; | |
7534 | PyObject * obj0 = 0 ; | |
7535 | char *kwnames[] = { | |
7536 | (char *) "self", NULL | |
7537 | }; | |
7538 | ||
7539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
7540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7541 | { | |
7542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7543 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
7544 | ||
7545 | wxPyEndAllowThreads(__tstate); | |
7546 | if (PyErr_Occurred()) SWIG_fail; | |
7547 | } | |
7548 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
7549 | return resultobj; | |
7550 | fail: | |
7551 | return NULL; | |
7552 | } | |
7553 | ||
7554 | ||
7555 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7556 | PyObject *resultobj; | |
7557 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7558 | long *arg2 = (long *) 0 ; | |
7559 | long *arg3 = (long *) 0 ; | |
7560 | long temp2 ; | |
7561 | long temp3 ; | |
7562 | PyObject * obj0 = 0 ; | |
7563 | char *kwnames[] = { | |
7564 | (char *) "self", NULL | |
7565 | }; | |
7566 | ||
7567 | arg2 = &temp2; | |
7568 | arg3 = &temp3; | |
7569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
7570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7571 | { | |
7572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7573 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
7574 | ||
7575 | wxPyEndAllowThreads(__tstate); | |
7576 | if (PyErr_Occurred()) SWIG_fail; | |
7577 | } | |
7578 | Py_INCREF(Py_None); resultobj = Py_None; | |
7579 | { | |
7580 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
7581 | resultobj = t_output_helper(resultobj,o); | |
7582 | } | |
7583 | { | |
7584 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7585 | resultobj = t_output_helper(resultobj,o); | |
7586 | } | |
7587 | return resultobj; | |
7588 | fail: | |
7589 | return NULL; | |
7590 | } | |
7591 | ||
7592 | ||
7593 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7594 | PyObject *resultobj; | |
7595 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7596 | wxString result; | |
7597 | PyObject * obj0 = 0 ; | |
7598 | char *kwnames[] = { | |
7599 | (char *) "self", NULL | |
7600 | }; | |
7601 | ||
7602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
7603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7604 | { | |
7605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7606 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
7607 | ||
7608 | wxPyEndAllowThreads(__tstate); | |
7609 | if (PyErr_Occurred()) SWIG_fail; | |
7610 | } | |
7611 | { | |
7612 | #if wxUSE_UNICODE | |
7613 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7614 | #else | |
7615 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7616 | #endif | |
7617 | } | |
7618 | return resultobj; | |
7619 | fail: | |
7620 | return NULL; | |
7621 | } | |
7622 | ||
7623 | ||
7624 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7625 | PyObject *resultobj; | |
7626 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7627 | PyObject * obj0 = 0 ; | |
7628 | char *kwnames[] = { | |
7629 | (char *) "self", NULL | |
7630 | }; | |
7631 | ||
7632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
7633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7634 | { | |
7635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7636 | (arg1)->Clear(); | |
7637 | ||
7638 | wxPyEndAllowThreads(__tstate); | |
7639 | if (PyErr_Occurred()) SWIG_fail; | |
7640 | } | |
7641 | Py_INCREF(Py_None); resultobj = Py_None; | |
7642 | return resultobj; | |
7643 | fail: | |
7644 | return NULL; | |
7645 | } | |
7646 | ||
7647 | ||
7648 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7649 | PyObject *resultobj; | |
7650 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7651 | long arg2 ; | |
7652 | long arg3 ; | |
7653 | wxString *arg4 = 0 ; | |
7654 | bool temp4 = False ; | |
7655 | PyObject * obj0 = 0 ; | |
7656 | PyObject * obj1 = 0 ; | |
7657 | PyObject * obj2 = 0 ; | |
7658 | PyObject * obj3 = 0 ; | |
7659 | char *kwnames[] = { | |
7660 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
7661 | }; | |
7662 | ||
7663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7665 | { | |
7666 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7667 | if (PyErr_Occurred()) SWIG_fail; | |
7668 | } | |
7669 | { | |
7670 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7671 | if (PyErr_Occurred()) SWIG_fail; | |
7672 | } | |
7673 | { | |
7674 | arg4 = wxString_in_helper(obj3); | |
7675 | if (arg4 == NULL) SWIG_fail; | |
7676 | temp4 = True; | |
7677 | } | |
7678 | { | |
7679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7680 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
7681 | ||
7682 | wxPyEndAllowThreads(__tstate); | |
7683 | if (PyErr_Occurred()) SWIG_fail; | |
7684 | } | |
7685 | Py_INCREF(Py_None); resultobj = Py_None; | |
7686 | { | |
7687 | if (temp4) | |
7688 | delete arg4; | |
7689 | } | |
7690 | return resultobj; | |
7691 | fail: | |
7692 | { | |
7693 | if (temp4) | |
7694 | delete arg4; | |
7695 | } | |
7696 | return NULL; | |
7697 | } | |
7698 | ||
7699 | ||
7700 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7701 | PyObject *resultobj; | |
7702 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7703 | long arg2 ; | |
7704 | long arg3 ; | |
7705 | PyObject * obj0 = 0 ; | |
7706 | PyObject * obj1 = 0 ; | |
7707 | PyObject * obj2 = 0 ; | |
7708 | char *kwnames[] = { | |
7709 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7710 | }; | |
7711 | ||
7712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7714 | { | |
7715 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7716 | if (PyErr_Occurred()) SWIG_fail; | |
7717 | } | |
7718 | { | |
7719 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7720 | if (PyErr_Occurred()) SWIG_fail; | |
7721 | } | |
7722 | { | |
7723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7724 | (arg1)->Remove(arg2,arg3); | |
7725 | ||
7726 | wxPyEndAllowThreads(__tstate); | |
7727 | if (PyErr_Occurred()) SWIG_fail; | |
7728 | } | |
7729 | Py_INCREF(Py_None); resultobj = Py_None; | |
7730 | return resultobj; | |
7731 | fail: | |
7732 | return NULL; | |
7733 | } | |
7734 | ||
7735 | ||
7736 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7737 | PyObject *resultobj; | |
7738 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7739 | wxString *arg2 = 0 ; | |
7740 | bool result; | |
7741 | bool temp2 = False ; | |
7742 | PyObject * obj0 = 0 ; | |
7743 | PyObject * obj1 = 0 ; | |
7744 | char *kwnames[] = { | |
7745 | (char *) "self",(char *) "file", NULL | |
7746 | }; | |
7747 | ||
7748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
7749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7750 | { | |
7751 | arg2 = wxString_in_helper(obj1); | |
7752 | if (arg2 == NULL) SWIG_fail; | |
7753 | temp2 = True; | |
7754 | } | |
7755 | { | |
7756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7757 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
7758 | ||
7759 | wxPyEndAllowThreads(__tstate); | |
7760 | if (PyErr_Occurred()) SWIG_fail; | |
7761 | } | |
7762 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
7763 | { | |
7764 | if (temp2) | |
7765 | delete arg2; | |
7766 | } | |
7767 | return resultobj; | |
7768 | fail: | |
7769 | { | |
7770 | if (temp2) | |
7771 | delete arg2; | |
7772 | } | |
7773 | return NULL; | |
7774 | } | |
7775 | ||
7776 | ||
7777 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7778 | PyObject *resultobj; | |
7779 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7780 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
7781 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7782 | bool result; | |
7783 | bool temp2 = False ; | |
7784 | PyObject * obj0 = 0 ; | |
7785 | PyObject * obj1 = 0 ; | |
7786 | char *kwnames[] = { | |
7787 | (char *) "self",(char *) "file", NULL | |
7788 | }; | |
7789 | ||
7790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
7791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7792 | if (obj1) { | |
7793 | { | |
7794 | arg2 = wxString_in_helper(obj1); | |
7795 | if (arg2 == NULL) SWIG_fail; | |
7796 | temp2 = True; | |
7797 | } | |
7798 | } | |
7799 | { | |
7800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7801 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
7802 | ||
7803 | wxPyEndAllowThreads(__tstate); | |
7804 | if (PyErr_Occurred()) SWIG_fail; | |
7805 | } | |
7806 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
7807 | { | |
7808 | if (temp2) | |
7809 | delete arg2; | |
7810 | } | |
7811 | return resultobj; | |
7812 | fail: | |
7813 | { | |
7814 | if (temp2) | |
7815 | delete arg2; | |
7816 | } | |
7817 | return NULL; | |
7818 | } | |
7819 | ||
7820 | ||
7821 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7822 | PyObject *resultobj; | |
7823 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7824 | PyObject * obj0 = 0 ; | |
7825 | char *kwnames[] = { | |
7826 | (char *) "self", NULL | |
7827 | }; | |
7828 | ||
7829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
7830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7831 | { | |
7832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7833 | (arg1)->MarkDirty(); | |
7834 | ||
7835 | wxPyEndAllowThreads(__tstate); | |
7836 | if (PyErr_Occurred()) SWIG_fail; | |
7837 | } | |
7838 | Py_INCREF(Py_None); resultobj = Py_None; | |
7839 | return resultobj; | |
7840 | fail: | |
7841 | return NULL; | |
7842 | } | |
7843 | ||
7844 | ||
7845 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7846 | PyObject *resultobj; | |
7847 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7848 | PyObject * obj0 = 0 ; | |
7849 | char *kwnames[] = { | |
7850 | (char *) "self", NULL | |
7851 | }; | |
7852 | ||
7853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
7854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7855 | { | |
7856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7857 | (arg1)->DiscardEdits(); | |
7858 | ||
7859 | wxPyEndAllowThreads(__tstate); | |
7860 | if (PyErr_Occurred()) SWIG_fail; | |
7861 | } | |
7862 | Py_INCREF(Py_None); resultobj = Py_None; | |
7863 | return resultobj; | |
7864 | fail: | |
7865 | return NULL; | |
7866 | } | |
7867 | ||
7868 | ||
7869 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7870 | PyObject *resultobj; | |
7871 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7872 | unsigned long arg2 ; | |
7873 | PyObject * obj0 = 0 ; | |
7874 | PyObject * obj1 = 0 ; | |
7875 | char *kwnames[] = { | |
7876 | (char *) "self",(char *) "len", NULL | |
7877 | }; | |
7878 | ||
7879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
7880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7881 | { | |
7882 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); | |
7883 | if (PyErr_Occurred()) SWIG_fail; | |
7884 | } | |
7885 | { | |
7886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7887 | (arg1)->SetMaxLength(arg2); | |
7888 | ||
7889 | wxPyEndAllowThreads(__tstate); | |
7890 | if (PyErr_Occurred()) SWIG_fail; | |
7891 | } | |
7892 | Py_INCREF(Py_None); resultobj = Py_None; | |
7893 | return resultobj; | |
7894 | fail: | |
7895 | return NULL; | |
7896 | } | |
7897 | ||
7898 | ||
7899 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7900 | PyObject *resultobj; | |
7901 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7902 | wxString *arg2 = 0 ; | |
7903 | bool temp2 = False ; | |
7904 | PyObject * obj0 = 0 ; | |
7905 | PyObject * obj1 = 0 ; | |
7906 | char *kwnames[] = { | |
7907 | (char *) "self",(char *) "text", NULL | |
7908 | }; | |
7909 | ||
7910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
7911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7912 | { | |
7913 | arg2 = wxString_in_helper(obj1); | |
7914 | if (arg2 == NULL) SWIG_fail; | |
7915 | temp2 = True; | |
7916 | } | |
7917 | { | |
7918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7919 | (arg1)->WriteText((wxString const &)*arg2); | |
7920 | ||
7921 | wxPyEndAllowThreads(__tstate); | |
7922 | if (PyErr_Occurred()) SWIG_fail; | |
7923 | } | |
7924 | Py_INCREF(Py_None); resultobj = Py_None; | |
7925 | { | |
7926 | if (temp2) | |
7927 | delete arg2; | |
7928 | } | |
7929 | return resultobj; | |
7930 | fail: | |
7931 | { | |
7932 | if (temp2) | |
7933 | delete arg2; | |
7934 | } | |
7935 | return NULL; | |
7936 | } | |
7937 | ||
7938 | ||
7939 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7940 | PyObject *resultobj; | |
7941 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7942 | wxString *arg2 = 0 ; | |
7943 | bool temp2 = False ; | |
7944 | PyObject * obj0 = 0 ; | |
7945 | PyObject * obj1 = 0 ; | |
7946 | char *kwnames[] = { | |
7947 | (char *) "self",(char *) "text", NULL | |
7948 | }; | |
7949 | ||
7950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
7951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7952 | { | |
7953 | arg2 = wxString_in_helper(obj1); | |
7954 | if (arg2 == NULL) SWIG_fail; | |
7955 | temp2 = True; | |
7956 | } | |
7957 | { | |
7958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7959 | (arg1)->AppendText((wxString const &)*arg2); | |
7960 | ||
7961 | wxPyEndAllowThreads(__tstate); | |
7962 | if (PyErr_Occurred()) SWIG_fail; | |
7963 | } | |
7964 | Py_INCREF(Py_None); resultobj = Py_None; | |
7965 | { | |
7966 | if (temp2) | |
7967 | delete arg2; | |
7968 | } | |
7969 | return resultobj; | |
7970 | fail: | |
7971 | { | |
7972 | if (temp2) | |
7973 | delete arg2; | |
7974 | } | |
7975 | return NULL; | |
7976 | } | |
7977 | ||
7978 | ||
7979 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7980 | PyObject *resultobj; | |
7981 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7982 | wxKeyEvent *arg2 = 0 ; | |
7983 | bool result; | |
7984 | PyObject * obj0 = 0 ; | |
7985 | PyObject * obj1 = 0 ; | |
7986 | char *kwnames[] = { | |
7987 | (char *) "self",(char *) "event", NULL | |
7988 | }; | |
7989 | ||
7990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
7991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7992 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7993 | if (arg2 == NULL) { | |
7994 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7995 | } | |
7996 | { | |
7997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7998 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
7999 | ||
8000 | wxPyEndAllowThreads(__tstate); | |
8001 | if (PyErr_Occurred()) SWIG_fail; | |
8002 | } | |
8003 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
8004 | return resultobj; | |
8005 | fail: | |
8006 | return NULL; | |
8007 | } | |
8008 | ||
8009 | ||
8010 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8011 | PyObject *resultobj; | |
8012 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8013 | long arg2 ; | |
8014 | long arg3 ; | |
8015 | wxTextAttr *arg4 = 0 ; | |
8016 | bool result; | |
8017 | PyObject * obj0 = 0 ; | |
8018 | PyObject * obj1 = 0 ; | |
8019 | PyObject * obj2 = 0 ; | |
8020 | PyObject * obj3 = 0 ; | |
8021 | char *kwnames[] = { | |
8022 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8023 | }; | |
8024 | ||
8025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8027 | { | |
8028 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8029 | if (PyErr_Occurred()) SWIG_fail; | |
8030 | } | |
8031 | { | |
8032 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8033 | if (PyErr_Occurred()) SWIG_fail; | |
8034 | } | |
8035 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8036 | if (arg4 == NULL) { | |
8037 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8038 | } | |
8039 | { | |
8040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8041 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
8042 | ||
8043 | wxPyEndAllowThreads(__tstate); | |
8044 | if (PyErr_Occurred()) SWIG_fail; | |
8045 | } | |
8046 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
8047 | return resultobj; | |
8048 | fail: | |
8049 | return NULL; | |
8050 | } | |
8051 | ||
8052 | ||
8053 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8054 | PyObject *resultobj; | |
8055 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8056 | long arg2 ; | |
8057 | wxTextAttr *arg3 = 0 ; | |
8058 | bool result; | |
8059 | PyObject * obj0 = 0 ; | |
8060 | PyObject * obj1 = 0 ; | |
8061 | PyObject * obj2 = 0 ; | |
8062 | char *kwnames[] = { | |
8063 | (char *) "self",(char *) "position",(char *) "style", NULL | |
8064 | }; | |
8065 | ||
8066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8068 | { | |
8069 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8070 | if (PyErr_Occurred()) SWIG_fail; | |
8071 | } | |
8072 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8073 | if (arg3 == NULL) { | |
8074 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8075 | } | |
8076 | { | |
8077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8078 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
8079 | ||
8080 | wxPyEndAllowThreads(__tstate); | |
8081 | if (PyErr_Occurred()) SWIG_fail; | |
8082 | } | |
8083 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
8084 | return resultobj; | |
8085 | fail: | |
8086 | return NULL; | |
8087 | } | |
8088 | ||
8089 | ||
8090 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8091 | PyObject *resultobj; | |
8092 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8093 | wxTextAttr *arg2 = 0 ; | |
8094 | bool result; | |
8095 | PyObject * obj0 = 0 ; | |
8096 | PyObject * obj1 = 0 ; | |
8097 | char *kwnames[] = { | |
8098 | (char *) "self",(char *) "style", NULL | |
8099 | }; | |
8100 | ||
8101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
8102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8103 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8104 | if (arg2 == NULL) { | |
8105 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8106 | } | |
8107 | { | |
8108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8109 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
8110 | ||
8111 | wxPyEndAllowThreads(__tstate); | |
8112 | if (PyErr_Occurred()) SWIG_fail; | |
8113 | } | |
8114 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
8115 | return resultobj; | |
8116 | fail: | |
8117 | return NULL; | |
8118 | } | |
8119 | ||
8120 | ||
8121 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8122 | PyObject *resultobj; | |
8123 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8124 | wxTextAttr *result; | |
8125 | PyObject * obj0 = 0 ; | |
8126 | char *kwnames[] = { | |
8127 | (char *) "self", NULL | |
8128 | }; | |
8129 | ||
8130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
8131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8132 | { | |
8133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8134 | { | |
8135 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
8136 | result = (wxTextAttr *) &_result_ref; | |
8137 | } | |
8138 | ||
8139 | wxPyEndAllowThreads(__tstate); | |
8140 | if (PyErr_Occurred()) SWIG_fail; | |
8141 | } | |
8142 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 0); | |
8143 | return resultobj; | |
8144 | fail: | |
8145 | return NULL; | |
8146 | } | |
8147 | ||
8148 | ||
8149 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8150 | PyObject *resultobj; | |
8151 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8152 | long arg2 ; | |
8153 | long arg3 ; | |
8154 | long result; | |
8155 | PyObject * obj0 = 0 ; | |
8156 | PyObject * obj1 = 0 ; | |
8157 | PyObject * obj2 = 0 ; | |
8158 | char *kwnames[] = { | |
8159 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8160 | }; | |
8161 | ||
8162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8164 | { | |
8165 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8166 | if (PyErr_Occurred()) SWIG_fail; | |
8167 | } | |
8168 | { | |
8169 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8170 | if (PyErr_Occurred()) SWIG_fail; | |
8171 | } | |
8172 | { | |
8173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8174 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
8175 | ||
8176 | wxPyEndAllowThreads(__tstate); | |
8177 | if (PyErr_Occurred()) SWIG_fail; | |
8178 | } | |
8179 | resultobj = SWIG_PyObj_FromLong((long)result); | |
8180 | return resultobj; | |
8181 | fail: | |
8182 | return NULL; | |
8183 | } | |
8184 | ||
8185 | ||
8186 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8187 | PyObject *resultobj; | |
8188 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8189 | long arg2 ; | |
8190 | long *arg3 = (long *) 0 ; | |
8191 | long *arg4 = (long *) 0 ; | |
8192 | long temp3 ; | |
8193 | long temp4 ; | |
8194 | PyObject * obj0 = 0 ; | |
8195 | PyObject * obj1 = 0 ; | |
8196 | char *kwnames[] = { | |
8197 | (char *) "self",(char *) "pos", NULL | |
8198 | }; | |
8199 | ||
8200 | arg3 = &temp3; | |
8201 | arg4 = &temp4; | |
8202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; | |
8203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8204 | { | |
8205 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8206 | if (PyErr_Occurred()) SWIG_fail; | |
8207 | } | |
8208 | { | |
8209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8210 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
8211 | ||
8212 | wxPyEndAllowThreads(__tstate); | |
8213 | if (PyErr_Occurred()) SWIG_fail; | |
8214 | } | |
8215 | Py_INCREF(Py_None); resultobj = Py_None; | |
8216 | { | |
8217 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8218 | resultobj = t_output_helper(resultobj,o); | |
8219 | } | |
8220 | { | |
8221 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8222 | resultobj = t_output_helper(resultobj,o); | |
8223 | } | |
8224 | return resultobj; | |
8225 | fail: | |
8226 | return NULL; | |
8227 | } | |
8228 | ||
8229 | ||
8230 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8231 | PyObject *resultobj; | |
8232 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8233 | long arg2 ; | |
8234 | PyObject * obj0 = 0 ; | |
8235 | PyObject * obj1 = 0 ; | |
8236 | char *kwnames[] = { | |
8237 | (char *) "self",(char *) "pos", NULL | |
8238 | }; | |
8239 | ||
8240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; | |
8241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8242 | { | |
8243 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8244 | if (PyErr_Occurred()) SWIG_fail; | |
8245 | } | |
8246 | { | |
8247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8248 | (arg1)->ShowPosition(arg2); | |
8249 | ||
8250 | wxPyEndAllowThreads(__tstate); | |
8251 | if (PyErr_Occurred()) SWIG_fail; | |
8252 | } | |
8253 | Py_INCREF(Py_None); resultobj = Py_None; | |
8254 | return resultobj; | |
8255 | fail: | |
8256 | return NULL; | |
8257 | } | |
8258 | ||
8259 | ||
8260 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8261 | PyObject *resultobj; | |
8262 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8263 | PyObject * obj0 = 0 ; | |
8264 | char *kwnames[] = { | |
8265 | (char *) "self", NULL | |
8266 | }; | |
8267 | ||
8268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
8269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8270 | { | |
8271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8272 | (arg1)->Copy(); | |
8273 | ||
8274 | wxPyEndAllowThreads(__tstate); | |
8275 | if (PyErr_Occurred()) SWIG_fail; | |
8276 | } | |
8277 | Py_INCREF(Py_None); resultobj = Py_None; | |
8278 | return resultobj; | |
8279 | fail: | |
8280 | return NULL; | |
8281 | } | |
8282 | ||
8283 | ||
8284 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8285 | PyObject *resultobj; | |
8286 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8287 | PyObject * obj0 = 0 ; | |
8288 | char *kwnames[] = { | |
8289 | (char *) "self", NULL | |
8290 | }; | |
8291 | ||
8292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
8293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8294 | { | |
8295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8296 | (arg1)->Cut(); | |
8297 | ||
8298 | wxPyEndAllowThreads(__tstate); | |
8299 | if (PyErr_Occurred()) SWIG_fail; | |
8300 | } | |
8301 | Py_INCREF(Py_None); resultobj = Py_None; | |
8302 | return resultobj; | |
8303 | fail: | |
8304 | return NULL; | |
8305 | } | |
8306 | ||
8307 | ||
8308 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8309 | PyObject *resultobj; | |
8310 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8311 | PyObject * obj0 = 0 ; | |
8312 | char *kwnames[] = { | |
8313 | (char *) "self", NULL | |
8314 | }; | |
8315 | ||
8316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
8317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8318 | { | |
8319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8320 | (arg1)->Paste(); | |
8321 | ||
8322 | wxPyEndAllowThreads(__tstate); | |
8323 | if (PyErr_Occurred()) SWIG_fail; | |
8324 | } | |
8325 | Py_INCREF(Py_None); resultobj = Py_None; | |
8326 | return resultobj; | |
8327 | fail: | |
8328 | return NULL; | |
8329 | } | |
8330 | ||
8331 | ||
8332 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8333 | PyObject *resultobj; | |
8334 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8335 | bool result; | |
8336 | PyObject * obj0 = 0 ; | |
8337 | char *kwnames[] = { | |
8338 | (char *) "self", NULL | |
8339 | }; | |
8340 | ||
8341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
8342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8343 | { | |
8344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8345 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
8346 | ||
8347 | wxPyEndAllowThreads(__tstate); | |
8348 | if (PyErr_Occurred()) SWIG_fail; | |
8349 | } | |
8350 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
8351 | return resultobj; | |
8352 | fail: | |
8353 | return NULL; | |
8354 | } | |
8355 | ||
8356 | ||
8357 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8358 | PyObject *resultobj; | |
8359 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8360 | bool result; | |
8361 | PyObject * obj0 = 0 ; | |
8362 | char *kwnames[] = { | |
8363 | (char *) "self", NULL | |
8364 | }; | |
8365 | ||
8366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
8367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8368 | { | |
8369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8370 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
8371 | ||
8372 | wxPyEndAllowThreads(__tstate); | |
8373 | if (PyErr_Occurred()) SWIG_fail; | |
8374 | } | |
8375 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
8376 | return resultobj; | |
8377 | fail: | |
8378 | return NULL; | |
8379 | } | |
8380 | ||
8381 | ||
8382 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8383 | PyObject *resultobj; | |
8384 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8385 | bool result; | |
8386 | PyObject * obj0 = 0 ; | |
8387 | char *kwnames[] = { | |
8388 | (char *) "self", NULL | |
8389 | }; | |
8390 | ||
8391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
8392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8393 | { | |
8394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8395 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
8396 | ||
8397 | wxPyEndAllowThreads(__tstate); | |
8398 | if (PyErr_Occurred()) SWIG_fail; | |
8399 | } | |
8400 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
8401 | return resultobj; | |
8402 | fail: | |
8403 | return NULL; | |
8404 | } | |
8405 | ||
8406 | ||
8407 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8408 | PyObject *resultobj; | |
8409 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8410 | PyObject * obj0 = 0 ; | |
8411 | char *kwnames[] = { | |
8412 | (char *) "self", NULL | |
8413 | }; | |
8414 | ||
8415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
8416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8417 | { | |
8418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8419 | (arg1)->Undo(); | |
8420 | ||
8421 | wxPyEndAllowThreads(__tstate); | |
8422 | if (PyErr_Occurred()) SWIG_fail; | |
8423 | } | |
8424 | Py_INCREF(Py_None); resultobj = Py_None; | |
8425 | return resultobj; | |
8426 | fail: | |
8427 | return NULL; | |
8428 | } | |
8429 | ||
8430 | ||
8431 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8432 | PyObject *resultobj; | |
8433 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8434 | PyObject * obj0 = 0 ; | |
8435 | char *kwnames[] = { | |
8436 | (char *) "self", NULL | |
8437 | }; | |
8438 | ||
8439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
8440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8441 | { | |
8442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8443 | (arg1)->Redo(); | |
8444 | ||
8445 | wxPyEndAllowThreads(__tstate); | |
8446 | if (PyErr_Occurred()) SWIG_fail; | |
8447 | } | |
8448 | Py_INCREF(Py_None); resultobj = Py_None; | |
8449 | return resultobj; | |
8450 | fail: | |
8451 | return NULL; | |
8452 | } | |
8453 | ||
8454 | ||
8455 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8456 | PyObject *resultobj; | |
8457 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8458 | bool result; | |
8459 | PyObject * obj0 = 0 ; | |
8460 | char *kwnames[] = { | |
8461 | (char *) "self", NULL | |
8462 | }; | |
8463 | ||
8464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
8465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8466 | { | |
8467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8468 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
8469 | ||
8470 | wxPyEndAllowThreads(__tstate); | |
8471 | if (PyErr_Occurred()) SWIG_fail; | |
8472 | } | |
8473 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
8474 | return resultobj; | |
8475 | fail: | |
8476 | return NULL; | |
8477 | } | |
8478 | ||
8479 | ||
8480 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8481 | PyObject *resultobj; | |
8482 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8483 | bool result; | |
8484 | PyObject * obj0 = 0 ; | |
8485 | char *kwnames[] = { | |
8486 | (char *) "self", NULL | |
8487 | }; | |
8488 | ||
8489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
8490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8491 | { | |
8492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8493 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
8494 | ||
8495 | wxPyEndAllowThreads(__tstate); | |
8496 | if (PyErr_Occurred()) SWIG_fail; | |
8497 | } | |
8498 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
8499 | return resultobj; | |
8500 | fail: | |
8501 | return NULL; | |
8502 | } | |
8503 | ||
8504 | ||
8505 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8506 | PyObject *resultobj; | |
8507 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8508 | long arg2 ; | |
8509 | PyObject * obj0 = 0 ; | |
8510 | PyObject * obj1 = 0 ; | |
8511 | char *kwnames[] = { | |
8512 | (char *) "self",(char *) "pos", NULL | |
8513 | }; | |
8514 | ||
8515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
8516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8517 | { | |
8518 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8519 | if (PyErr_Occurred()) SWIG_fail; | |
8520 | } | |
8521 | { | |
8522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8523 | (arg1)->SetInsertionPoint(arg2); | |
8524 | ||
8525 | wxPyEndAllowThreads(__tstate); | |
8526 | if (PyErr_Occurred()) SWIG_fail; | |
8527 | } | |
8528 | Py_INCREF(Py_None); resultobj = Py_None; | |
8529 | return resultobj; | |
8530 | fail: | |
8531 | return NULL; | |
8532 | } | |
8533 | ||
8534 | ||
8535 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8536 | PyObject *resultobj; | |
8537 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8538 | PyObject * obj0 = 0 ; | |
8539 | char *kwnames[] = { | |
8540 | (char *) "self", NULL | |
8541 | }; | |
8542 | ||
8543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
8544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8545 | { | |
8546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8547 | (arg1)->SetInsertionPointEnd(); | |
8548 | ||
8549 | wxPyEndAllowThreads(__tstate); | |
8550 | if (PyErr_Occurred()) SWIG_fail; | |
8551 | } | |
8552 | Py_INCREF(Py_None); resultobj = Py_None; | |
8553 | return resultobj; | |
8554 | fail: | |
8555 | return NULL; | |
8556 | } | |
8557 | ||
8558 | ||
8559 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8560 | PyObject *resultobj; | |
8561 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8562 | long result; | |
8563 | PyObject * obj0 = 0 ; | |
8564 | char *kwnames[] = { | |
8565 | (char *) "self", NULL | |
8566 | }; | |
8567 | ||
8568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
8569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8570 | { | |
8571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8572 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
8573 | ||
8574 | wxPyEndAllowThreads(__tstate); | |
8575 | if (PyErr_Occurred()) SWIG_fail; | |
8576 | } | |
8577 | resultobj = SWIG_PyObj_FromLong((long)result); | |
8578 | return resultobj; | |
8579 | fail: | |
8580 | return NULL; | |
8581 | } | |
8582 | ||
8583 | ||
8584 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8585 | PyObject *resultobj; | |
8586 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8587 | long result; | |
8588 | PyObject * obj0 = 0 ; | |
8589 | char *kwnames[] = { | |
8590 | (char *) "self", NULL | |
8591 | }; | |
8592 | ||
8593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
8594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8595 | { | |
8596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8597 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
8598 | ||
8599 | wxPyEndAllowThreads(__tstate); | |
8600 | if (PyErr_Occurred()) SWIG_fail; | |
8601 | } | |
8602 | resultobj = SWIG_PyObj_FromLong((long)result); | |
8603 | return resultobj; | |
8604 | fail: | |
8605 | return NULL; | |
8606 | } | |
8607 | ||
8608 | ||
8609 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8610 | PyObject *resultobj; | |
8611 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8612 | long arg2 ; | |
8613 | long arg3 ; | |
8614 | PyObject * obj0 = 0 ; | |
8615 | PyObject * obj1 = 0 ; | |
8616 | PyObject * obj2 = 0 ; | |
8617 | char *kwnames[] = { | |
8618 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8619 | }; | |
8620 | ||
8621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8623 | { | |
8624 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8625 | if (PyErr_Occurred()) SWIG_fail; | |
8626 | } | |
8627 | { | |
8628 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8629 | if (PyErr_Occurred()) SWIG_fail; | |
8630 | } | |
8631 | { | |
8632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8633 | (arg1)->SetSelection(arg2,arg3); | |
8634 | ||
8635 | wxPyEndAllowThreads(__tstate); | |
8636 | if (PyErr_Occurred()) SWIG_fail; | |
8637 | } | |
8638 | Py_INCREF(Py_None); resultobj = Py_None; | |
8639 | return resultobj; | |
8640 | fail: | |
8641 | return NULL; | |
8642 | } | |
8643 | ||
8644 | ||
8645 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8646 | PyObject *resultobj; | |
8647 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8648 | PyObject * obj0 = 0 ; | |
8649 | char *kwnames[] = { | |
8650 | (char *) "self", NULL | |
8651 | }; | |
8652 | ||
8653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
8654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8655 | { | |
8656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8657 | (arg1)->SelectAll(); | |
8658 | ||
8659 | wxPyEndAllowThreads(__tstate); | |
8660 | if (PyErr_Occurred()) SWIG_fail; | |
8661 | } | |
8662 | Py_INCREF(Py_None); resultobj = Py_None; | |
8663 | return resultobj; | |
8664 | fail: | |
8665 | return NULL; | |
8666 | } | |
8667 | ||
8668 | ||
8669 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8670 | PyObject *resultobj; | |
8671 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8672 | bool arg2 ; | |
8673 | PyObject * obj0 = 0 ; | |
8674 | PyObject * obj1 = 0 ; | |
8675 | char *kwnames[] = { | |
8676 | (char *) "self",(char *) "editable", NULL | |
8677 | }; | |
8678 | ||
8679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
8680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8681 | { | |
8682 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
8683 | if (PyErr_Occurred()) SWIG_fail; | |
8684 | } | |
8685 | { | |
8686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8687 | (arg1)->SetEditable(arg2); | |
8688 | ||
8689 | wxPyEndAllowThreads(__tstate); | |
8690 | if (PyErr_Occurred()) SWIG_fail; | |
8691 | } | |
8692 | Py_INCREF(Py_None); resultobj = Py_None; | |
8693 | return resultobj; | |
8694 | fail: | |
8695 | return NULL; | |
8696 | } | |
8697 | ||
8698 | ||
8699 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8700 | PyObject *resultobj; | |
8701 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8702 | wxString *arg2 = 0 ; | |
8703 | bool temp2 = False ; | |
8704 | PyObject * obj0 = 0 ; | |
8705 | PyObject * obj1 = 0 ; | |
8706 | char *kwnames[] = { | |
8707 | (char *) "self",(char *) "text", NULL | |
8708 | }; | |
8709 | ||
8710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
8711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8712 | { | |
8713 | arg2 = wxString_in_helper(obj1); | |
8714 | if (arg2 == NULL) SWIG_fail; | |
8715 | temp2 = True; | |
8716 | } | |
8717 | { | |
8718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8719 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
8720 | ||
8721 | wxPyEndAllowThreads(__tstate); | |
8722 | if (PyErr_Occurred()) SWIG_fail; | |
8723 | } | |
8724 | Py_INCREF(Py_None); resultobj = Py_None; | |
8725 | { | |
8726 | if (temp2) | |
8727 | delete arg2; | |
8728 | } | |
8729 | return resultobj; | |
8730 | fail: | |
8731 | { | |
8732 | if (temp2) | |
8733 | delete arg2; | |
8734 | } | |
8735 | return NULL; | |
8736 | } | |
8737 | ||
8738 | ||
8739 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8740 | PyObject *resultobj; | |
8741 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8742 | long arg2 ; | |
8743 | long arg3 ; | |
8744 | wxString result; | |
8745 | PyObject * obj0 = 0 ; | |
8746 | PyObject * obj1 = 0 ; | |
8747 | PyObject * obj2 = 0 ; | |
8748 | char *kwnames[] = { | |
8749 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8750 | }; | |
8751 | ||
8752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8754 | { | |
8755 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8756 | if (PyErr_Occurred()) SWIG_fail; | |
8757 | } | |
8758 | { | |
8759 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8760 | if (PyErr_Occurred()) SWIG_fail; | |
8761 | } | |
8762 | { | |
8763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8764 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
8765 | ||
8766 | wxPyEndAllowThreads(__tstate); | |
8767 | if (PyErr_Occurred()) SWIG_fail; | |
8768 | } | |
8769 | { | |
8770 | #if wxUSE_UNICODE | |
8771 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8772 | #else | |
8773 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8774 | #endif | |
8775 | } | |
8776 | return resultobj; | |
8777 | fail: | |
8778 | return NULL; | |
8779 | } | |
8780 | ||
8781 | ||
8782 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
8783 | PyObject *obj; | |
8784 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8785 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
8786 | Py_INCREF(obj); | |
8787 | return Py_BuildValue((char *)""); | |
8788 | } | |
8789 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8790 | PyObject *resultobj; | |
8791 | int arg1 ; | |
8792 | wxMouseEvent *arg2 = 0 ; | |
8793 | long arg3 ; | |
8794 | long arg4 ; | |
8795 | wxTextUrlEvent *result; | |
8796 | PyObject * obj0 = 0 ; | |
8797 | PyObject * obj1 = 0 ; | |
8798 | PyObject * obj2 = 0 ; | |
8799 | PyObject * obj3 = 0 ; | |
8800 | char *kwnames[] = { | |
8801 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
8802 | }; | |
8803 | ||
8804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8805 | { | |
8806 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8807 | if (PyErr_Occurred()) SWIG_fail; | |
8808 | } | |
8809 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8810 | if (arg2 == NULL) { | |
8811 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8812 | } | |
8813 | { | |
8814 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
8815 | if (PyErr_Occurred()) SWIG_fail; | |
8816 | } | |
8817 | { | |
8818 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
8819 | if (PyErr_Occurred()) SWIG_fail; | |
8820 | } | |
8821 | { | |
8822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8823 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
8824 | ||
8825 | wxPyEndAllowThreads(__tstate); | |
8826 | if (PyErr_Occurred()) SWIG_fail; | |
8827 | } | |
8828 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextUrlEvent, 1); | |
8829 | return resultobj; | |
8830 | fail: | |
8831 | return NULL; | |
8832 | } | |
8833 | ||
8834 | ||
8835 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8836 | PyObject *resultobj; | |
8837 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
8838 | wxMouseEvent *result; | |
8839 | PyObject * obj0 = 0 ; | |
8840 | char *kwnames[] = { | |
8841 | (char *) "self", NULL | |
8842 | }; | |
8843 | ||
8844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
8845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8846 | { | |
8847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8848 | { | |
8849 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
8850 | result = (wxMouseEvent *) &_result_ref; | |
8851 | } | |
8852 | ||
8853 | wxPyEndAllowThreads(__tstate); | |
8854 | if (PyErr_Occurred()) SWIG_fail; | |
8855 | } | |
8856 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseEvent, 0); | |
8857 | return resultobj; | |
8858 | fail: | |
8859 | return NULL; | |
8860 | } | |
8861 | ||
8862 | ||
8863 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8864 | PyObject *resultobj; | |
8865 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
8866 | long result; | |
8867 | PyObject * obj0 = 0 ; | |
8868 | char *kwnames[] = { | |
8869 | (char *) "self", NULL | |
8870 | }; | |
8871 | ||
8872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
8873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8874 | { | |
8875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8876 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
8877 | ||
8878 | wxPyEndAllowThreads(__tstate); | |
8879 | if (PyErr_Occurred()) SWIG_fail; | |
8880 | } | |
8881 | resultobj = SWIG_PyObj_FromLong((long)result); | |
8882 | return resultobj; | |
8883 | fail: | |
8884 | return NULL; | |
8885 | } | |
8886 | ||
8887 | ||
8888 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8889 | PyObject *resultobj; | |
8890 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
8891 | long result; | |
8892 | PyObject * obj0 = 0 ; | |
8893 | char *kwnames[] = { | |
8894 | (char *) "self", NULL | |
8895 | }; | |
8896 | ||
8897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
8898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8899 | { | |
8900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8901 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
8902 | ||
8903 | wxPyEndAllowThreads(__tstate); | |
8904 | if (PyErr_Occurred()) SWIG_fail; | |
8905 | } | |
8906 | resultobj = SWIG_PyObj_FromLong((long)result); | |
8907 | return resultobj; | |
8908 | fail: | |
8909 | return NULL; | |
8910 | } | |
8911 | ||
8912 | ||
8913 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
8914 | PyObject *obj; | |
8915 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8916 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
8917 | Py_INCREF(obj); | |
8918 | return Py_BuildValue((char *)""); | |
8919 | } | |
8920 | static int _wrap_ScrollBarNameStr_set(PyObject *) { | |
8921 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); | |
8922 | return 1; | |
8923 | } | |
8924 | ||
8925 | ||
8926 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
8927 | PyObject *pyobj; | |
8928 | ||
8929 | { | |
8930 | #if wxUSE_UNICODE | |
8931 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
8932 | #else | |
8933 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
8934 | #endif | |
8935 | } | |
8936 | return pyobj; | |
8937 | } | |
8938 | ||
8939 | ||
8940 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8941 | PyObject *resultobj; | |
8942 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8943 | int arg2 = (int) -1 ; | |
8944 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8945 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8946 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8947 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8948 | long arg5 = (long) wxSB_HORIZONTAL ; | |
8949 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
8950 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
8951 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
8952 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8953 | wxScrollBar *result; | |
8954 | wxPoint temp3 ; | |
8955 | wxSize temp4 ; | |
8956 | bool temp7 = False ; | |
8957 | PyObject * obj0 = 0 ; | |
8958 | PyObject * obj1 = 0 ; | |
8959 | PyObject * obj2 = 0 ; | |
8960 | PyObject * obj3 = 0 ; | |
8961 | PyObject * obj4 = 0 ; | |
8962 | PyObject * obj5 = 0 ; | |
8963 | PyObject * obj6 = 0 ; | |
8964 | char *kwnames[] = { | |
8965 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8966 | }; | |
8967 | ||
8968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8970 | if (obj1) { | |
8971 | { | |
8972 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8973 | if (PyErr_Occurred()) SWIG_fail; | |
8974 | } | |
8975 | } | |
8976 | if (obj2) { | |
8977 | { | |
8978 | arg3 = &temp3; | |
8979 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8980 | } | |
8981 | } | |
8982 | if (obj3) { | |
8983 | { | |
8984 | arg4 = &temp4; | |
8985 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8986 | } | |
8987 | } | |
8988 | if (obj4) { | |
8989 | { | |
8990 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
8991 | if (PyErr_Occurred()) SWIG_fail; | |
8992 | } | |
8993 | } | |
8994 | if (obj5) { | |
8995 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8996 | if (arg6 == NULL) { | |
8997 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8998 | } | |
8999 | } | |
9000 | if (obj6) { | |
9001 | { | |
9002 | arg7 = wxString_in_helper(obj6); | |
9003 | if (arg7 == NULL) SWIG_fail; | |
9004 | temp7 = True; | |
9005 | } | |
9006 | } | |
9007 | { | |
9008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9009 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
9010 | ||
9011 | wxPyEndAllowThreads(__tstate); | |
9012 | if (PyErr_Occurred()) SWIG_fail; | |
9013 | } | |
9014 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9015 | { | |
9016 | if (temp7) | |
9017 | delete arg7; | |
9018 | } | |
9019 | return resultobj; | |
9020 | fail: | |
9021 | { | |
9022 | if (temp7) | |
9023 | delete arg7; | |
9024 | } | |
9025 | return NULL; | |
9026 | } | |
9027 | ||
9028 | ||
9029 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9030 | PyObject *resultobj; | |
9031 | wxScrollBar *result; | |
9032 | char *kwnames[] = { | |
9033 | NULL | |
9034 | }; | |
9035 | ||
9036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
9037 | { | |
9038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9039 | result = (wxScrollBar *)new wxScrollBar(); | |
9040 | ||
9041 | wxPyEndAllowThreads(__tstate); | |
9042 | if (PyErr_Occurred()) SWIG_fail; | |
9043 | } | |
9044 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
9045 | return resultobj; | |
9046 | fail: | |
9047 | return NULL; | |
9048 | } | |
9049 | ||
9050 | ||
9051 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9052 | PyObject *resultobj; | |
9053 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9054 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9055 | int arg3 = (int) -1 ; | |
9056 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9057 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9058 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9059 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9060 | long arg6 = (long) wxSB_HORIZONTAL ; | |
9061 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9062 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9063 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
9064 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9065 | bool result; | |
9066 | wxPoint temp4 ; | |
9067 | wxSize temp5 ; | |
9068 | bool temp8 = False ; | |
9069 | PyObject * obj0 = 0 ; | |
9070 | PyObject * obj1 = 0 ; | |
9071 | PyObject * obj2 = 0 ; | |
9072 | PyObject * obj3 = 0 ; | |
9073 | PyObject * obj4 = 0 ; | |
9074 | PyObject * obj5 = 0 ; | |
9075 | PyObject * obj6 = 0 ; | |
9076 | PyObject * obj7 = 0 ; | |
9077 | char *kwnames[] = { | |
9078 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9079 | }; | |
9080 | ||
9081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
9082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9083 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9084 | if (obj2) { | |
9085 | { | |
9086 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9087 | if (PyErr_Occurred()) SWIG_fail; | |
9088 | } | |
9089 | } | |
9090 | if (obj3) { | |
9091 | { | |
9092 | arg4 = &temp4; | |
9093 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9094 | } | |
9095 | } | |
9096 | if (obj4) { | |
9097 | { | |
9098 | arg5 = &temp5; | |
9099 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9100 | } | |
9101 | } | |
9102 | if (obj5) { | |
9103 | { | |
9104 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9105 | if (PyErr_Occurred()) SWIG_fail; | |
9106 | } | |
9107 | } | |
9108 | if (obj6) { | |
9109 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9110 | if (arg7 == NULL) { | |
9111 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9112 | } | |
9113 | } | |
9114 | if (obj7) { | |
9115 | { | |
9116 | arg8 = wxString_in_helper(obj7); | |
9117 | if (arg8 == NULL) SWIG_fail; | |
9118 | temp8 = True; | |
9119 | } | |
9120 | } | |
9121 | { | |
9122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9123 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9124 | ||
9125 | wxPyEndAllowThreads(__tstate); | |
9126 | if (PyErr_Occurred()) SWIG_fail; | |
9127 | } | |
9128 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
9129 | { | |
9130 | if (temp8) | |
9131 | delete arg8; | |
9132 | } | |
9133 | return resultobj; | |
9134 | fail: | |
9135 | { | |
9136 | if (temp8) | |
9137 | delete arg8; | |
9138 | } | |
9139 | return NULL; | |
9140 | } | |
9141 | ||
9142 | ||
9143 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9144 | PyObject *resultobj; | |
9145 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9146 | int result; | |
9147 | PyObject * obj0 = 0 ; | |
9148 | char *kwnames[] = { | |
9149 | (char *) "self", NULL | |
9150 | }; | |
9151 | ||
9152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
9153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9154 | { | |
9155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9156 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
9157 | ||
9158 | wxPyEndAllowThreads(__tstate); | |
9159 | if (PyErr_Occurred()) SWIG_fail; | |
9160 | } | |
9161 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9162 | return resultobj; | |
9163 | fail: | |
9164 | return NULL; | |
9165 | } | |
9166 | ||
9167 | ||
9168 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9169 | PyObject *resultobj; | |
9170 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9171 | int result; | |
9172 | PyObject * obj0 = 0 ; | |
9173 | char *kwnames[] = { | |
9174 | (char *) "self", NULL | |
9175 | }; | |
9176 | ||
9177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
9178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9179 | { | |
9180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9181 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
9182 | ||
9183 | wxPyEndAllowThreads(__tstate); | |
9184 | if (PyErr_Occurred()) SWIG_fail; | |
9185 | } | |
9186 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9187 | return resultobj; | |
9188 | fail: | |
9189 | return NULL; | |
9190 | } | |
9191 | ||
9192 | ||
9193 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9194 | PyObject *resultobj; | |
9195 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9196 | int result; | |
9197 | PyObject * obj0 = 0 ; | |
9198 | char *kwnames[] = { | |
9199 | (char *) "self", NULL | |
9200 | }; | |
9201 | ||
9202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
9203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9204 | { | |
9205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9206 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
9207 | ||
9208 | wxPyEndAllowThreads(__tstate); | |
9209 | if (PyErr_Occurred()) SWIG_fail; | |
9210 | } | |
9211 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9212 | return resultobj; | |
9213 | fail: | |
9214 | return NULL; | |
9215 | } | |
9216 | ||
9217 | ||
9218 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9219 | PyObject *resultobj; | |
9220 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9221 | int result; | |
9222 | PyObject * obj0 = 0 ; | |
9223 | char *kwnames[] = { | |
9224 | (char *) "self", NULL | |
9225 | }; | |
9226 | ||
9227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
9228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9229 | { | |
9230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9231 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
9232 | ||
9233 | wxPyEndAllowThreads(__tstate); | |
9234 | if (PyErr_Occurred()) SWIG_fail; | |
9235 | } | |
9236 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9237 | return resultobj; | |
9238 | fail: | |
9239 | return NULL; | |
9240 | } | |
9241 | ||
9242 | ||
9243 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9244 | PyObject *resultobj; | |
9245 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9246 | bool result; | |
9247 | PyObject * obj0 = 0 ; | |
9248 | char *kwnames[] = { | |
9249 | (char *) "self", NULL | |
9250 | }; | |
9251 | ||
9252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
9253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9254 | { | |
9255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9256 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
9257 | ||
9258 | wxPyEndAllowThreads(__tstate); | |
9259 | if (PyErr_Occurred()) SWIG_fail; | |
9260 | } | |
9261 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
9262 | return resultobj; | |
9263 | fail: | |
9264 | return NULL; | |
9265 | } | |
9266 | ||
9267 | ||
9268 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9269 | PyObject *resultobj; | |
9270 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9271 | int arg2 ; | |
9272 | PyObject * obj0 = 0 ; | |
9273 | PyObject * obj1 = 0 ; | |
9274 | char *kwnames[] = { | |
9275 | (char *) "self",(char *) "viewStart", NULL | |
9276 | }; | |
9277 | ||
9278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; | |
9279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9280 | { | |
9281 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9282 | if (PyErr_Occurred()) SWIG_fail; | |
9283 | } | |
9284 | { | |
9285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9286 | (arg1)->SetThumbPosition(arg2); | |
9287 | ||
9288 | wxPyEndAllowThreads(__tstate); | |
9289 | if (PyErr_Occurred()) SWIG_fail; | |
9290 | } | |
9291 | Py_INCREF(Py_None); resultobj = Py_None; | |
9292 | return resultobj; | |
9293 | fail: | |
9294 | return NULL; | |
9295 | } | |
9296 | ||
9297 | ||
9298 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9299 | PyObject *resultobj; | |
9300 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9301 | int arg2 ; | |
9302 | int arg3 ; | |
9303 | int arg4 ; | |
9304 | int arg5 ; | |
9305 | bool arg6 = (bool) True ; | |
9306 | PyObject * obj0 = 0 ; | |
9307 | PyObject * obj1 = 0 ; | |
9308 | PyObject * obj2 = 0 ; | |
9309 | PyObject * obj3 = 0 ; | |
9310 | PyObject * obj4 = 0 ; | |
9311 | PyObject * obj5 = 0 ; | |
9312 | char *kwnames[] = { | |
9313 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
9314 | }; | |
9315 | ||
9316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9318 | { | |
9319 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9320 | if (PyErr_Occurred()) SWIG_fail; | |
9321 | } | |
9322 | { | |
9323 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9324 | if (PyErr_Occurred()) SWIG_fail; | |
9325 | } | |
9326 | { | |
9327 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9328 | if (PyErr_Occurred()) SWIG_fail; | |
9329 | } | |
9330 | { | |
9331 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
9332 | if (PyErr_Occurred()) SWIG_fail; | |
9333 | } | |
9334 | if (obj5) { | |
9335 | { | |
9336 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); | |
9337 | if (PyErr_Occurred()) SWIG_fail; | |
9338 | } | |
9339 | } | |
9340 | { | |
9341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9342 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
9343 | ||
9344 | wxPyEndAllowThreads(__tstate); | |
9345 | if (PyErr_Occurred()) SWIG_fail; | |
9346 | } | |
9347 | Py_INCREF(Py_None); resultobj = Py_None; | |
9348 | return resultobj; | |
9349 | fail: | |
9350 | return NULL; | |
9351 | } | |
9352 | ||
9353 | ||
9354 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
9355 | PyObject *obj; | |
9356 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9357 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
9358 | Py_INCREF(obj); | |
9359 | return Py_BuildValue((char *)""); | |
9360 | } | |
9361 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { | |
9362 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
9363 | return 1; | |
9364 | } | |
9365 | ||
9366 | ||
9367 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
9368 | PyObject *pyobj; | |
9369 | ||
9370 | { | |
9371 | #if wxUSE_UNICODE | |
9372 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9373 | #else | |
9374 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9375 | #endif | |
9376 | } | |
9377 | return pyobj; | |
9378 | } | |
9379 | ||
9380 | ||
9381 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { | |
9382 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); | |
9383 | return 1; | |
9384 | } | |
9385 | ||
9386 | ||
9387 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
9388 | PyObject *pyobj; | |
9389 | ||
9390 | { | |
9391 | #if wxUSE_UNICODE | |
9392 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9393 | #else | |
9394 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9395 | #endif | |
9396 | } | |
9397 | return pyobj; | |
9398 | } | |
9399 | ||
9400 | ||
9401 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9402 | PyObject *resultobj; | |
9403 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9404 | int arg2 = (int) -1 ; | |
9405 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9406 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9407 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9408 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9409 | long arg5 = (long) wxSP_HORIZONTAL ; | |
9410 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
9411 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9412 | wxSpinButton *result; | |
9413 | wxPoint temp3 ; | |
9414 | wxSize temp4 ; | |
9415 | bool temp6 = False ; | |
9416 | PyObject * obj0 = 0 ; | |
9417 | PyObject * obj1 = 0 ; | |
9418 | PyObject * obj2 = 0 ; | |
9419 | PyObject * obj3 = 0 ; | |
9420 | PyObject * obj4 = 0 ; | |
9421 | PyObject * obj5 = 0 ; | |
9422 | char *kwnames[] = { | |
9423 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9424 | }; | |
9425 | ||
9426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9428 | if (obj1) { | |
9429 | { | |
9430 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9431 | if (PyErr_Occurred()) SWIG_fail; | |
9432 | } | |
9433 | } | |
9434 | if (obj2) { | |
9435 | { | |
9436 | arg3 = &temp3; | |
9437 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9438 | } | |
9439 | } | |
9440 | if (obj3) { | |
9441 | { | |
9442 | arg4 = &temp4; | |
9443 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9444 | } | |
9445 | } | |
9446 | if (obj4) { | |
9447 | { | |
9448 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9449 | if (PyErr_Occurred()) SWIG_fail; | |
9450 | } | |
9451 | } | |
9452 | if (obj5) { | |
9453 | { | |
9454 | arg6 = wxString_in_helper(obj5); | |
9455 | if (arg6 == NULL) SWIG_fail; | |
9456 | temp6 = True; | |
9457 | } | |
9458 | } | |
9459 | { | |
9460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9461 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9462 | ||
9463 | wxPyEndAllowThreads(__tstate); | |
9464 | if (PyErr_Occurred()) SWIG_fail; | |
9465 | } | |
9466 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9467 | { | |
9468 | if (temp6) | |
9469 | delete arg6; | |
9470 | } | |
9471 | return resultobj; | |
9472 | fail: | |
9473 | { | |
9474 | if (temp6) | |
9475 | delete arg6; | |
9476 | } | |
9477 | return NULL; | |
9478 | } | |
9479 | ||
9480 | ||
9481 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9482 | PyObject *resultobj; | |
9483 | wxSpinButton *result; | |
9484 | char *kwnames[] = { | |
9485 | NULL | |
9486 | }; | |
9487 | ||
9488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
9489 | { | |
9490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9491 | result = (wxSpinButton *)new wxSpinButton(); | |
9492 | ||
9493 | wxPyEndAllowThreads(__tstate); | |
9494 | if (PyErr_Occurred()) SWIG_fail; | |
9495 | } | |
9496 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
9497 | return resultobj; | |
9498 | fail: | |
9499 | return NULL; | |
9500 | } | |
9501 | ||
9502 | ||
9503 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9504 | PyObject *resultobj; | |
9505 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9506 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9507 | int arg3 = (int) -1 ; | |
9508 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9509 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9510 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9511 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9512 | long arg6 = (long) wxSP_HORIZONTAL ; | |
9513 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
9514 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9515 | bool result; | |
9516 | wxPoint temp4 ; | |
9517 | wxSize temp5 ; | |
9518 | bool temp7 = False ; | |
9519 | PyObject * obj0 = 0 ; | |
9520 | PyObject * obj1 = 0 ; | |
9521 | PyObject * obj2 = 0 ; | |
9522 | PyObject * obj3 = 0 ; | |
9523 | PyObject * obj4 = 0 ; | |
9524 | PyObject * obj5 = 0 ; | |
9525 | PyObject * obj6 = 0 ; | |
9526 | char *kwnames[] = { | |
9527 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9528 | }; | |
9529 | ||
9530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9532 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9533 | if (obj2) { | |
9534 | { | |
9535 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9536 | if (PyErr_Occurred()) SWIG_fail; | |
9537 | } | |
9538 | } | |
9539 | if (obj3) { | |
9540 | { | |
9541 | arg4 = &temp4; | |
9542 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9543 | } | |
9544 | } | |
9545 | if (obj4) { | |
9546 | { | |
9547 | arg5 = &temp5; | |
9548 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9549 | } | |
9550 | } | |
9551 | if (obj5) { | |
9552 | { | |
9553 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9554 | if (PyErr_Occurred()) SWIG_fail; | |
9555 | } | |
9556 | } | |
9557 | if (obj6) { | |
9558 | { | |
9559 | arg7 = wxString_in_helper(obj6); | |
9560 | if (arg7 == NULL) SWIG_fail; | |
9561 | temp7 = True; | |
9562 | } | |
9563 | } | |
9564 | { | |
9565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9566 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9567 | ||
9568 | wxPyEndAllowThreads(__tstate); | |
9569 | if (PyErr_Occurred()) SWIG_fail; | |
9570 | } | |
9571 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
9572 | { | |
9573 | if (temp7) | |
9574 | delete arg7; | |
9575 | } | |
9576 | return resultobj; | |
9577 | fail: | |
9578 | { | |
9579 | if (temp7) | |
9580 | delete arg7; | |
9581 | } | |
9582 | return NULL; | |
9583 | } | |
9584 | ||
9585 | ||
9586 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9587 | PyObject *resultobj; | |
9588 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9589 | int result; | |
9590 | PyObject * obj0 = 0 ; | |
9591 | char *kwnames[] = { | |
9592 | (char *) "self", NULL | |
9593 | }; | |
9594 | ||
9595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
9596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9597 | { | |
9598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9599 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
9600 | ||
9601 | wxPyEndAllowThreads(__tstate); | |
9602 | if (PyErr_Occurred()) SWIG_fail; | |
9603 | } | |
9604 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9605 | return resultobj; | |
9606 | fail: | |
9607 | return NULL; | |
9608 | } | |
9609 | ||
9610 | ||
9611 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9612 | PyObject *resultobj; | |
9613 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9614 | int result; | |
9615 | PyObject * obj0 = 0 ; | |
9616 | char *kwnames[] = { | |
9617 | (char *) "self", NULL | |
9618 | }; | |
9619 | ||
9620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
9621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9622 | { | |
9623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9624 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
9625 | ||
9626 | wxPyEndAllowThreads(__tstate); | |
9627 | if (PyErr_Occurred()) SWIG_fail; | |
9628 | } | |
9629 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9630 | return resultobj; | |
9631 | fail: | |
9632 | return NULL; | |
9633 | } | |
9634 | ||
9635 | ||
9636 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9637 | PyObject *resultobj; | |
9638 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9639 | int result; | |
9640 | PyObject * obj0 = 0 ; | |
9641 | char *kwnames[] = { | |
9642 | (char *) "self", NULL | |
9643 | }; | |
9644 | ||
9645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
9646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9647 | { | |
9648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9649 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
9650 | ||
9651 | wxPyEndAllowThreads(__tstate); | |
9652 | if (PyErr_Occurred()) SWIG_fail; | |
9653 | } | |
9654 | resultobj = SWIG_PyObj_FromInt((int)result); | |
9655 | return resultobj; | |
9656 | fail: | |
9657 | return NULL; | |
9658 | } | |
9659 | ||
9660 | ||
9661 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9662 | PyObject *resultobj; | |
9663 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9664 | int arg2 ; | |
9665 | PyObject * obj0 = 0 ; | |
9666 | PyObject * obj1 = 0 ; | |
9667 | char *kwnames[] = { | |
9668 | (char *) "self",(char *) "val", NULL | |
9669 | }; | |
9670 | ||
9671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
9672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9673 | { | |
9674 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9675 | if (PyErr_Occurred()) SWIG_fail; | |
9676 | } | |
9677 | { | |
9678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9679 | (arg1)->SetValue(arg2); | |
9680 | ||
9681 | wxPyEndAllowThreads(__tstate); | |
9682 | if (PyErr_Occurred()) SWIG_fail; | |
9683 | } | |
9684 | Py_INCREF(Py_None); resultobj = Py_None; | |
9685 | return resultobj; | |
9686 | fail: | |
9687 | return NULL; | |
9688 | } | |
9689 | ||
9690 | ||
9691 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9692 | PyObject *resultobj; | |
9693 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9694 | int arg2 ; | |
9695 | PyObject * obj0 = 0 ; | |
9696 | PyObject * obj1 = 0 ; | |
9697 | char *kwnames[] = { | |
9698 | (char *) "self",(char *) "minVal", NULL | |
9699 | }; | |
9700 | ||
9701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
9702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9703 | { | |
9704 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9705 | if (PyErr_Occurred()) SWIG_fail; | |
9706 | } | |
9707 | { | |
9708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9709 | (arg1)->SetMin(arg2); | |
9710 | ||
9711 | wxPyEndAllowThreads(__tstate); | |
9712 | if (PyErr_Occurred()) SWIG_fail; | |
9713 | } | |
9714 | Py_INCREF(Py_None); resultobj = Py_None; | |
9715 | return resultobj; | |
9716 | fail: | |
9717 | return NULL; | |
9718 | } | |
9719 | ||
9720 | ||
9721 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9722 | PyObject *resultobj; | |
9723 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9724 | int arg2 ; | |
9725 | PyObject * obj0 = 0 ; | |
9726 | PyObject * obj1 = 0 ; | |
9727 | char *kwnames[] = { | |
9728 | (char *) "self",(char *) "maxVal", NULL | |
9729 | }; | |
9730 | ||
9731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
9732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9733 | { | |
9734 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9735 | if (PyErr_Occurred()) SWIG_fail; | |
9736 | } | |
9737 | { | |
9738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9739 | (arg1)->SetMax(arg2); | |
9740 | ||
9741 | wxPyEndAllowThreads(__tstate); | |
9742 | if (PyErr_Occurred()) SWIG_fail; | |
9743 | } | |
9744 | Py_INCREF(Py_None); resultobj = Py_None; | |
9745 | return resultobj; | |
9746 | fail: | |
9747 | return NULL; | |
9748 | } | |
9749 | ||
9750 | ||
9751 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9752 | PyObject *resultobj; | |
9753 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9754 | int arg2 ; | |
9755 | int arg3 ; | |
9756 | PyObject * obj0 = 0 ; | |
9757 | PyObject * obj1 = 0 ; | |
9758 | PyObject * obj2 = 0 ; | |
9759 | char *kwnames[] = { | |
9760 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
9761 | }; | |
9762 | ||
9763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9765 | { | |
9766 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9767 | if (PyErr_Occurred()) SWIG_fail; | |
9768 | } | |
9769 | { | |
9770 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9771 | if (PyErr_Occurred()) SWIG_fail; | |
9772 | } | |
9773 | { | |
9774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9775 | (arg1)->SetRange(arg2,arg3); | |
9776 | ||
9777 | wxPyEndAllowThreads(__tstate); | |
9778 | if (PyErr_Occurred()) SWIG_fail; | |
9779 | } | |
9780 | Py_INCREF(Py_None); resultobj = Py_None; | |
9781 | return resultobj; | |
9782 | fail: | |
9783 | return NULL; | |
9784 | } | |
9785 | ||
9786 | ||
9787 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9788 | PyObject *resultobj; | |
9789 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9790 | bool result; | |
9791 | PyObject * obj0 = 0 ; | |
9792 | char *kwnames[] = { | |
9793 | (char *) "self", NULL | |
9794 | }; | |
9795 | ||
9796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
9797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9798 | { | |
9799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9800 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
9801 | ||
9802 | wxPyEndAllowThreads(__tstate); | |
9803 | if (PyErr_Occurred()) SWIG_fail; | |
9804 | } | |
9805 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
9806 | return resultobj; | |
9807 | fail: | |
9808 | return NULL; | |
9809 | } | |
9810 | ||
9811 | ||
9812 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
9813 | PyObject *obj; | |
9814 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9815 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
9816 | Py_INCREF(obj); | |
9817 | return Py_BuildValue((char *)""); | |
9818 | } | |
9819 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9820 | PyObject *resultobj; | |
9821 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9822 | int arg2 = (int) -1 ; | |
9823 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9824 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9825 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9826 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9827 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9828 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9829 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
9830 | int arg7 = (int) 0 ; | |
9831 | int arg8 = (int) 100 ; | |
9832 | int arg9 = (int) 0 ; | |
9833 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
9834 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
9835 | wxSpinCtrl *result; | |
9836 | bool temp3 = False ; | |
9837 | wxPoint temp4 ; | |
9838 | wxSize temp5 ; | |
9839 | bool temp10 = False ; | |
9840 | PyObject * obj0 = 0 ; | |
9841 | PyObject * obj1 = 0 ; | |
9842 | PyObject * obj2 = 0 ; | |
9843 | PyObject * obj3 = 0 ; | |
9844 | PyObject * obj4 = 0 ; | |
9845 | PyObject * obj5 = 0 ; | |
9846 | PyObject * obj6 = 0 ; | |
9847 | PyObject * obj7 = 0 ; | |
9848 | PyObject * obj8 = 0 ; | |
9849 | PyObject * obj9 = 0 ; | |
9850 | char *kwnames[] = { | |
9851 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
9852 | }; | |
9853 | ||
9854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
9855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9856 | if (obj1) { | |
9857 | { | |
9858 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9859 | if (PyErr_Occurred()) SWIG_fail; | |
9860 | } | |
9861 | } | |
9862 | if (obj2) { | |
9863 | { | |
9864 | arg3 = wxString_in_helper(obj2); | |
9865 | if (arg3 == NULL) SWIG_fail; | |
9866 | temp3 = True; | |
9867 | } | |
9868 | } | |
9869 | if (obj3) { | |
9870 | { | |
9871 | arg4 = &temp4; | |
9872 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9873 | } | |
9874 | } | |
9875 | if (obj4) { | |
9876 | { | |
9877 | arg5 = &temp5; | |
9878 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9879 | } | |
9880 | } | |
9881 | if (obj5) { | |
9882 | { | |
9883 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9884 | if (PyErr_Occurred()) SWIG_fail; | |
9885 | } | |
9886 | } | |
9887 | if (obj6) { | |
9888 | { | |
9889 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
9890 | if (PyErr_Occurred()) SWIG_fail; | |
9891 | } | |
9892 | } | |
9893 | if (obj7) { | |
9894 | { | |
9895 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
9896 | if (PyErr_Occurred()) SWIG_fail; | |
9897 | } | |
9898 | } | |
9899 | if (obj8) { | |
9900 | { | |
9901 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
9902 | if (PyErr_Occurred()) SWIG_fail; | |
9903 | } | |
9904 | } | |
9905 | if (obj9) { | |
9906 | { | |
9907 | arg10 = wxString_in_helper(obj9); | |
9908 | if (arg10 == NULL) SWIG_fail; | |
9909 | temp10 = True; | |
9910 | } | |
9911 | } | |
9912 | { | |
9913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9914 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
9915 | ||
9916 | wxPyEndAllowThreads(__tstate); | |
9917 | if (PyErr_Occurred()) SWIG_fail; | |
9918 | } | |
9919 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
9920 | { | |
9921 | if (temp3) | |
9922 | delete arg3; | |
9923 | } | |
9924 | { | |
9925 | if (temp10) | |
9926 | delete arg10; | |
9927 | } | |
9928 | return resultobj; | |
9929 | fail: | |
9930 | { | |
9931 | if (temp3) | |
9932 | delete arg3; | |
9933 | } | |
9934 | { | |
9935 | if (temp10) | |
9936 | delete arg10; | |
9937 | } | |
9938 | return NULL; | |
9939 | } | |
9940 | ||
9941 | ||
9942 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9943 | PyObject *resultobj; | |
9944 | wxSpinCtrl *result; | |
9945 | char *kwnames[] = { | |
9946 | NULL | |
9947 | }; | |
9948 | ||
9949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
9950 | { | |
9951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9952 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
9953 | ||
9954 | wxPyEndAllowThreads(__tstate); | |
9955 | if (PyErr_Occurred()) SWIG_fail; | |
9956 | } | |
9957 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
9958 | return resultobj; | |
9959 | fail: | |
9960 | return NULL; | |
9961 | } | |
9962 | ||
9963 | ||
9964 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9965 | PyObject *resultobj; | |
9966 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9967 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9968 | int arg3 = (int) -1 ; | |
9969 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9970 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9971 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9972 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9973 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9974 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9975 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
9976 | int arg8 = (int) 0 ; | |
9977 | int arg9 = (int) 100 ; | |
9978 | int arg10 = (int) 0 ; | |
9979 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
9980 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
9981 | bool result; | |
9982 | bool temp4 = False ; | |
9983 | wxPoint temp5 ; | |
9984 | wxSize temp6 ; | |
9985 | bool temp11 = False ; | |
9986 | PyObject * obj0 = 0 ; | |
9987 | PyObject * obj1 = 0 ; | |
9988 | PyObject * obj2 = 0 ; | |
9989 | PyObject * obj3 = 0 ; | |
9990 | PyObject * obj4 = 0 ; | |
9991 | PyObject * obj5 = 0 ; | |
9992 | PyObject * obj6 = 0 ; | |
9993 | PyObject * obj7 = 0 ; | |
9994 | PyObject * obj8 = 0 ; | |
9995 | PyObject * obj9 = 0 ; | |
9996 | PyObject * obj10 = 0 ; | |
9997 | char *kwnames[] = { | |
9998 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
9999 | }; | |
10000 | ||
10001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
10002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10003 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10004 | if (obj2) { | |
10005 | { | |
10006 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10007 | if (PyErr_Occurred()) SWIG_fail; | |
10008 | } | |
10009 | } | |
10010 | if (obj3) { | |
10011 | { | |
10012 | arg4 = wxString_in_helper(obj3); | |
10013 | if (arg4 == NULL) SWIG_fail; | |
10014 | temp4 = True; | |
10015 | } | |
10016 | } | |
10017 | if (obj4) { | |
10018 | { | |
10019 | arg5 = &temp5; | |
10020 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10021 | } | |
10022 | } | |
10023 | if (obj5) { | |
10024 | { | |
10025 | arg6 = &temp6; | |
10026 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10027 | } | |
10028 | } | |
10029 | if (obj6) { | |
10030 | { | |
10031 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
10032 | if (PyErr_Occurred()) SWIG_fail; | |
10033 | } | |
10034 | } | |
10035 | if (obj7) { | |
10036 | { | |
10037 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
10038 | if (PyErr_Occurred()) SWIG_fail; | |
10039 | } | |
10040 | } | |
10041 | if (obj8) { | |
10042 | { | |
10043 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
10044 | if (PyErr_Occurred()) SWIG_fail; | |
10045 | } | |
10046 | } | |
10047 | if (obj9) { | |
10048 | { | |
10049 | arg10 = (int) SWIG_PyObj_AsInt(obj9); | |
10050 | if (PyErr_Occurred()) SWIG_fail; | |
10051 | } | |
10052 | } | |
10053 | if (obj10) { | |
10054 | { | |
10055 | arg11 = wxString_in_helper(obj10); | |
10056 | if (arg11 == NULL) SWIG_fail; | |
10057 | temp11 = True; | |
10058 | } | |
10059 | } | |
10060 | { | |
10061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10062 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
10063 | ||
10064 | wxPyEndAllowThreads(__tstate); | |
10065 | if (PyErr_Occurred()) SWIG_fail; | |
10066 | } | |
10067 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
10068 | { | |
10069 | if (temp4) | |
10070 | delete arg4; | |
10071 | } | |
10072 | { | |
10073 | if (temp11) | |
10074 | delete arg11; | |
10075 | } | |
10076 | return resultobj; | |
10077 | fail: | |
10078 | { | |
10079 | if (temp4) | |
10080 | delete arg4; | |
10081 | } | |
10082 | { | |
10083 | if (temp11) | |
10084 | delete arg11; | |
10085 | } | |
10086 | return NULL; | |
10087 | } | |
10088 | ||
10089 | ||
10090 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10091 | PyObject *resultobj; | |
10092 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10093 | int result; | |
10094 | PyObject * obj0 = 0 ; | |
10095 | char *kwnames[] = { | |
10096 | (char *) "self", NULL | |
10097 | }; | |
10098 | ||
10099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
10100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10101 | { | |
10102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10103 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
10104 | ||
10105 | wxPyEndAllowThreads(__tstate); | |
10106 | if (PyErr_Occurred()) SWIG_fail; | |
10107 | } | |
10108 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10109 | return resultobj; | |
10110 | fail: | |
10111 | return NULL; | |
10112 | } | |
10113 | ||
10114 | ||
10115 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10116 | PyObject *resultobj; | |
10117 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10118 | int arg2 ; | |
10119 | PyObject * obj0 = 0 ; | |
10120 | PyObject * obj1 = 0 ; | |
10121 | char *kwnames[] = { | |
10122 | (char *) "self",(char *) "value", NULL | |
10123 | }; | |
10124 | ||
10125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
10126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10127 | { | |
10128 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10129 | if (PyErr_Occurred()) SWIG_fail; | |
10130 | } | |
10131 | { | |
10132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10133 | (arg1)->SetValue(arg2); | |
10134 | ||
10135 | wxPyEndAllowThreads(__tstate); | |
10136 | if (PyErr_Occurred()) SWIG_fail; | |
10137 | } | |
10138 | Py_INCREF(Py_None); resultobj = Py_None; | |
10139 | return resultobj; | |
10140 | fail: | |
10141 | return NULL; | |
10142 | } | |
10143 | ||
10144 | ||
10145 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10146 | PyObject *resultobj; | |
10147 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10148 | wxString *arg2 = 0 ; | |
10149 | bool temp2 = False ; | |
10150 | PyObject * obj0 = 0 ; | |
10151 | PyObject * obj1 = 0 ; | |
10152 | char *kwnames[] = { | |
10153 | (char *) "self",(char *) "text", NULL | |
10154 | }; | |
10155 | ||
10156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
10157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10158 | { | |
10159 | arg2 = wxString_in_helper(obj1); | |
10160 | if (arg2 == NULL) SWIG_fail; | |
10161 | temp2 = True; | |
10162 | } | |
10163 | { | |
10164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10165 | (arg1)->SetValue((wxString const &)*arg2); | |
10166 | ||
10167 | wxPyEndAllowThreads(__tstate); | |
10168 | if (PyErr_Occurred()) SWIG_fail; | |
10169 | } | |
10170 | Py_INCREF(Py_None); resultobj = Py_None; | |
10171 | { | |
10172 | if (temp2) | |
10173 | delete arg2; | |
10174 | } | |
10175 | return resultobj; | |
10176 | fail: | |
10177 | { | |
10178 | if (temp2) | |
10179 | delete arg2; | |
10180 | } | |
10181 | return NULL; | |
10182 | } | |
10183 | ||
10184 | ||
10185 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10186 | PyObject *resultobj; | |
10187 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10188 | int arg2 ; | |
10189 | int arg3 ; | |
10190 | PyObject * obj0 = 0 ; | |
10191 | PyObject * obj1 = 0 ; | |
10192 | PyObject * obj2 = 0 ; | |
10193 | char *kwnames[] = { | |
10194 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10195 | }; | |
10196 | ||
10197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10199 | { | |
10200 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10201 | if (PyErr_Occurred()) SWIG_fail; | |
10202 | } | |
10203 | { | |
10204 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10205 | if (PyErr_Occurred()) SWIG_fail; | |
10206 | } | |
10207 | { | |
10208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10209 | (arg1)->SetRange(arg2,arg3); | |
10210 | ||
10211 | wxPyEndAllowThreads(__tstate); | |
10212 | if (PyErr_Occurred()) SWIG_fail; | |
10213 | } | |
10214 | Py_INCREF(Py_None); resultobj = Py_None; | |
10215 | return resultobj; | |
10216 | fail: | |
10217 | return NULL; | |
10218 | } | |
10219 | ||
10220 | ||
10221 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10222 | PyObject *resultobj; | |
10223 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10224 | int result; | |
10225 | PyObject * obj0 = 0 ; | |
10226 | char *kwnames[] = { | |
10227 | (char *) "self", NULL | |
10228 | }; | |
10229 | ||
10230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
10231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10232 | { | |
10233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10234 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
10235 | ||
10236 | wxPyEndAllowThreads(__tstate); | |
10237 | if (PyErr_Occurred()) SWIG_fail; | |
10238 | } | |
10239 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10240 | return resultobj; | |
10241 | fail: | |
10242 | return NULL; | |
10243 | } | |
10244 | ||
10245 | ||
10246 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10247 | PyObject *resultobj; | |
10248 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10249 | int result; | |
10250 | PyObject * obj0 = 0 ; | |
10251 | char *kwnames[] = { | |
10252 | (char *) "self", NULL | |
10253 | }; | |
10254 | ||
10255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
10256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10257 | { | |
10258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10259 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
10260 | ||
10261 | wxPyEndAllowThreads(__tstate); | |
10262 | if (PyErr_Occurred()) SWIG_fail; | |
10263 | } | |
10264 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10265 | return resultobj; | |
10266 | fail: | |
10267 | return NULL; | |
10268 | } | |
10269 | ||
10270 | ||
10271 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10272 | PyObject *resultobj; | |
10273 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10274 | long arg2 ; | |
10275 | long arg3 ; | |
10276 | PyObject * obj0 = 0 ; | |
10277 | PyObject * obj1 = 0 ; | |
10278 | PyObject * obj2 = 0 ; | |
10279 | char *kwnames[] = { | |
10280 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10281 | }; | |
10282 | ||
10283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10285 | { | |
10286 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
10287 | if (PyErr_Occurred()) SWIG_fail; | |
10288 | } | |
10289 | { | |
10290 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
10291 | if (PyErr_Occurred()) SWIG_fail; | |
10292 | } | |
10293 | { | |
10294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10295 | (arg1)->SetSelection(arg2,arg3); | |
10296 | ||
10297 | wxPyEndAllowThreads(__tstate); | |
10298 | if (PyErr_Occurred()) SWIG_fail; | |
10299 | } | |
10300 | Py_INCREF(Py_None); resultobj = Py_None; | |
10301 | return resultobj; | |
10302 | fail: | |
10303 | return NULL; | |
10304 | } | |
10305 | ||
10306 | ||
10307 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
10308 | PyObject *obj; | |
10309 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10310 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
10311 | Py_INCREF(obj); | |
10312 | return Py_BuildValue((char *)""); | |
10313 | } | |
10314 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10315 | PyObject *resultobj; | |
10316 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10317 | int arg2 = (int) 0 ; | |
10318 | wxSpinEvent *result; | |
10319 | PyObject * obj0 = 0 ; | |
10320 | PyObject * obj1 = 0 ; | |
10321 | char *kwnames[] = { | |
10322 | (char *) "commandType",(char *) "winid", NULL | |
10323 | }; | |
10324 | ||
10325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; | |
10326 | if (obj0) { | |
10327 | { | |
10328 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
10329 | if (PyErr_Occurred()) SWIG_fail; | |
10330 | } | |
10331 | } | |
10332 | if (obj1) { | |
10333 | { | |
10334 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10335 | if (PyErr_Occurred()) SWIG_fail; | |
10336 | } | |
10337 | } | |
10338 | { | |
10339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10340 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
10341 | ||
10342 | wxPyEndAllowThreads(__tstate); | |
10343 | if (PyErr_Occurred()) SWIG_fail; | |
10344 | } | |
10345 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinEvent, 1); | |
10346 | return resultobj; | |
10347 | fail: | |
10348 | return NULL; | |
10349 | } | |
10350 | ||
10351 | ||
10352 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10353 | PyObject *resultobj; | |
10354 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10355 | int result; | |
10356 | PyObject * obj0 = 0 ; | |
10357 | char *kwnames[] = { | |
10358 | (char *) "self", NULL | |
10359 | }; | |
10360 | ||
10361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10363 | { | |
10364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10365 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
10366 | ||
10367 | wxPyEndAllowThreads(__tstate); | |
10368 | if (PyErr_Occurred()) SWIG_fail; | |
10369 | } | |
10370 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10371 | return resultobj; | |
10372 | fail: | |
10373 | return NULL; | |
10374 | } | |
10375 | ||
10376 | ||
10377 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10378 | PyObject *resultobj; | |
10379 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10380 | int arg2 ; | |
10381 | PyObject * obj0 = 0 ; | |
10382 | PyObject * obj1 = 0 ; | |
10383 | char *kwnames[] = { | |
10384 | (char *) "self",(char *) "pos", NULL | |
10385 | }; | |
10386 | ||
10387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
10388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10389 | { | |
10390 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10391 | if (PyErr_Occurred()) SWIG_fail; | |
10392 | } | |
10393 | { | |
10394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10395 | (arg1)->SetPosition(arg2); | |
10396 | ||
10397 | wxPyEndAllowThreads(__tstate); | |
10398 | if (PyErr_Occurred()) SWIG_fail; | |
10399 | } | |
10400 | Py_INCREF(Py_None); resultobj = Py_None; | |
10401 | return resultobj; | |
10402 | fail: | |
10403 | return NULL; | |
10404 | } | |
10405 | ||
10406 | ||
10407 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
10408 | PyObject *obj; | |
10409 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10410 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
10411 | Py_INCREF(obj); | |
10412 | return Py_BuildValue((char *)""); | |
10413 | } | |
10414 | static int _wrap_RadioBoxNameStr_set(PyObject *) { | |
10415 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); | |
10416 | return 1; | |
10417 | } | |
10418 | ||
10419 | ||
10420 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
10421 | PyObject *pyobj; | |
10422 | ||
10423 | { | |
10424 | #if wxUSE_UNICODE | |
10425 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10426 | #else | |
10427 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10428 | #endif | |
10429 | } | |
10430 | return pyobj; | |
10431 | } | |
10432 | ||
10433 | ||
10434 | static int _wrap_RadioButtonNameStr_set(PyObject *) { | |
10435 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); | |
10436 | return 1; | |
10437 | } | |
10438 | ||
10439 | ||
10440 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
10441 | PyObject *pyobj; | |
10442 | ||
10443 | { | |
10444 | #if wxUSE_UNICODE | |
10445 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10446 | #else | |
10447 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
10448 | #endif | |
10449 | } | |
10450 | return pyobj; | |
10451 | } | |
10452 | ||
10453 | ||
10454 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10455 | PyObject *resultobj; | |
10456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10457 | int arg2 ; | |
10458 | wxString *arg3 = 0 ; | |
10459 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10460 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10461 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10462 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10463 | int arg6 = (int) 0 ; | |
10464 | wxString *arg7 = (wxString *) NULL ; | |
10465 | int arg8 = (int) 0 ; | |
10466 | long arg9 = (long) wxRA_HORIZONTAL ; | |
10467 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
10468 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
10469 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
10470 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10471 | wxRadioBox *result; | |
10472 | bool temp3 = False ; | |
10473 | wxPoint temp4 ; | |
10474 | wxSize temp5 ; | |
10475 | bool temp10 = False ; | |
10476 | PyObject * obj0 = 0 ; | |
10477 | PyObject * obj1 = 0 ; | |
10478 | PyObject * obj2 = 0 ; | |
10479 | PyObject * obj3 = 0 ; | |
10480 | PyObject * obj4 = 0 ; | |
10481 | PyObject * obj5 = 0 ; | |
10482 | PyObject * obj6 = 0 ; | |
10483 | PyObject * obj7 = 0 ; | |
10484 | PyObject * obj8 = 0 ; | |
10485 | PyObject * obj9 = 0 ; | |
10486 | char *kwnames[] = { | |
10487 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10488 | }; | |
10489 | ||
10490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
10491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10492 | { | |
10493 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10494 | if (PyErr_Occurred()) SWIG_fail; | |
10495 | } | |
10496 | { | |
10497 | arg3 = wxString_in_helper(obj2); | |
10498 | if (arg3 == NULL) SWIG_fail; | |
10499 | temp3 = True; | |
10500 | } | |
10501 | if (obj3) { | |
10502 | { | |
10503 | arg4 = &temp4; | |
10504 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10505 | } | |
10506 | } | |
10507 | if (obj4) { | |
10508 | { | |
10509 | arg5 = &temp5; | |
10510 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10511 | } | |
10512 | } | |
10513 | if (obj5) { | |
10514 | { | |
10515 | arg6 = PyList_Size(obj5); | |
10516 | arg7 = wxString_LIST_helper(obj5); | |
10517 | if (arg7 == NULL) SWIG_fail; | |
10518 | } | |
10519 | } | |
10520 | if (obj6) { | |
10521 | { | |
10522 | arg8 = (int) SWIG_PyObj_AsInt(obj6); | |
10523 | if (PyErr_Occurred()) SWIG_fail; | |
10524 | } | |
10525 | } | |
10526 | if (obj7) { | |
10527 | { | |
10528 | arg9 = (long) SWIG_PyObj_AsLong(obj7); | |
10529 | if (PyErr_Occurred()) SWIG_fail; | |
10530 | } | |
10531 | } | |
10532 | if (obj8) { | |
10533 | if ((SWIG_ConvertPtr(obj8,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10534 | if (arg10 == NULL) { | |
10535 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10536 | } | |
10537 | } | |
10538 | if (obj9) { | |
10539 | { | |
10540 | arg11 = wxString_in_helper(obj9); | |
10541 | if (arg11 == NULL) SWIG_fail; | |
10542 | temp10 = True; | |
10543 | } | |
10544 | } | |
10545 | { | |
10546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10547 | result = (wxRadioBox *)new wxRadioBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
10548 | ||
10549 | wxPyEndAllowThreads(__tstate); | |
10550 | if (PyErr_Occurred()) SWIG_fail; | |
10551 | } | |
10552 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
10553 | { | |
10554 | if (temp3) | |
10555 | delete arg3; | |
10556 | } | |
10557 | { | |
10558 | if (arg7) delete [] arg7; | |
10559 | } | |
10560 | { | |
10561 | if (temp10) | |
10562 | delete arg11; | |
10563 | } | |
10564 | return resultobj; | |
10565 | fail: | |
10566 | { | |
10567 | if (temp3) | |
10568 | delete arg3; | |
10569 | } | |
10570 | { | |
10571 | if (arg7) delete [] arg7; | |
10572 | } | |
10573 | { | |
10574 | if (temp10) | |
10575 | delete arg11; | |
10576 | } | |
10577 | return NULL; | |
10578 | } | |
10579 | ||
10580 | ||
10581 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10582 | PyObject *resultobj; | |
10583 | wxRadioBox *result; | |
10584 | char *kwnames[] = { | |
10585 | NULL | |
10586 | }; | |
10587 | ||
10588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
10589 | { | |
10590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10591 | result = (wxRadioBox *)new wxRadioBox(); | |
10592 | ||
10593 | wxPyEndAllowThreads(__tstate); | |
10594 | if (PyErr_Occurred()) SWIG_fail; | |
10595 | } | |
10596 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
10597 | return resultobj; | |
10598 | fail: | |
10599 | return NULL; | |
10600 | } | |
10601 | ||
10602 | ||
10603 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10604 | PyObject *resultobj; | |
10605 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10606 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10607 | int arg3 ; | |
10608 | wxString *arg4 = 0 ; | |
10609 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10610 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10611 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10612 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10613 | int arg7 = (int) 0 ; | |
10614 | wxString *arg8 = (wxString *) NULL ; | |
10615 | int arg9 = (int) 0 ; | |
10616 | long arg10 = (long) wxRA_HORIZONTAL ; | |
10617 | wxValidator const &arg11_defvalue = wxDefaultValidator ; | |
10618 | wxValidator *arg11 = (wxValidator *) &arg11_defvalue ; | |
10619 | wxString const &arg12_defvalue = wxPyRadioBoxNameStr ; | |
10620 | wxString *arg12 = (wxString *) &arg12_defvalue ; | |
10621 | bool result; | |
10622 | bool temp4 = False ; | |
10623 | wxPoint temp5 ; | |
10624 | wxSize temp6 ; | |
10625 | bool temp11 = False ; | |
10626 | PyObject * obj0 = 0 ; | |
10627 | PyObject * obj1 = 0 ; | |
10628 | PyObject * obj2 = 0 ; | |
10629 | PyObject * obj3 = 0 ; | |
10630 | PyObject * obj4 = 0 ; | |
10631 | PyObject * obj5 = 0 ; | |
10632 | PyObject * obj6 = 0 ; | |
10633 | PyObject * obj7 = 0 ; | |
10634 | PyObject * obj8 = 0 ; | |
10635 | PyObject * obj9 = 0 ; | |
10636 | PyObject * obj10 = 0 ; | |
10637 | char *kwnames[] = { | |
10638 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10639 | }; | |
10640 | ||
10641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
10642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10643 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10644 | { | |
10645 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10646 | if (PyErr_Occurred()) SWIG_fail; | |
10647 | } | |
10648 | { | |
10649 | arg4 = wxString_in_helper(obj3); | |
10650 | if (arg4 == NULL) SWIG_fail; | |
10651 | temp4 = True; | |
10652 | } | |
10653 | if (obj4) { | |
10654 | { | |
10655 | arg5 = &temp5; | |
10656 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10657 | } | |
10658 | } | |
10659 | if (obj5) { | |
10660 | { | |
10661 | arg6 = &temp6; | |
10662 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10663 | } | |
10664 | } | |
10665 | if (obj6) { | |
10666 | { | |
10667 | arg7 = PyList_Size(obj6); | |
10668 | arg8 = wxString_LIST_helper(obj6); | |
10669 | if (arg8 == NULL) SWIG_fail; | |
10670 | } | |
10671 | } | |
10672 | if (obj7) { | |
10673 | { | |
10674 | arg9 = (int) SWIG_PyObj_AsInt(obj7); | |
10675 | if (PyErr_Occurred()) SWIG_fail; | |
10676 | } | |
10677 | } | |
10678 | if (obj8) { | |
10679 | { | |
10680 | arg10 = (long) SWIG_PyObj_AsLong(obj8); | |
10681 | if (PyErr_Occurred()) SWIG_fail; | |
10682 | } | |
10683 | } | |
10684 | if (obj9) { | |
10685 | if ((SWIG_ConvertPtr(obj9,(void **) &arg11, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10686 | if (arg11 == NULL) { | |
10687 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10688 | } | |
10689 | } | |
10690 | if (obj10) { | |
10691 | { | |
10692 | arg12 = wxString_in_helper(obj10); | |
10693 | if (arg12 == NULL) SWIG_fail; | |
10694 | temp11 = True; | |
10695 | } | |
10696 | } | |
10697 | { | |
10698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10699 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxValidator const &)*arg11,(wxString const &)*arg12); | |
10700 | ||
10701 | wxPyEndAllowThreads(__tstate); | |
10702 | if (PyErr_Occurred()) SWIG_fail; | |
10703 | } | |
10704 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
10705 | { | |
10706 | if (temp4) | |
10707 | delete arg4; | |
10708 | } | |
10709 | { | |
10710 | if (arg8) delete [] arg8; | |
10711 | } | |
10712 | { | |
10713 | if (temp11) | |
10714 | delete arg12; | |
10715 | } | |
10716 | return resultobj; | |
10717 | fail: | |
10718 | { | |
10719 | if (temp4) | |
10720 | delete arg4; | |
10721 | } | |
10722 | { | |
10723 | if (arg8) delete [] arg8; | |
10724 | } | |
10725 | { | |
10726 | if (temp11) | |
10727 | delete arg12; | |
10728 | } | |
10729 | return NULL; | |
10730 | } | |
10731 | ||
10732 | ||
10733 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10734 | PyObject *resultobj; | |
10735 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10736 | int arg2 ; | |
10737 | PyObject * obj0 = 0 ; | |
10738 | PyObject * obj1 = 0 ; | |
10739 | char *kwnames[] = { | |
10740 | (char *) "self",(char *) "n", NULL | |
10741 | }; | |
10742 | ||
10743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
10744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10745 | { | |
10746 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10747 | if (PyErr_Occurred()) SWIG_fail; | |
10748 | } | |
10749 | { | |
10750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10751 | (arg1)->SetSelection(arg2); | |
10752 | ||
10753 | wxPyEndAllowThreads(__tstate); | |
10754 | if (PyErr_Occurred()) SWIG_fail; | |
10755 | } | |
10756 | Py_INCREF(Py_None); resultobj = Py_None; | |
10757 | return resultobj; | |
10758 | fail: | |
10759 | return NULL; | |
10760 | } | |
10761 | ||
10762 | ||
10763 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10764 | PyObject *resultobj; | |
10765 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10766 | int result; | |
10767 | PyObject * obj0 = 0 ; | |
10768 | char *kwnames[] = { | |
10769 | (char *) "self", NULL | |
10770 | }; | |
10771 | ||
10772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
10773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10774 | { | |
10775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10776 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
10777 | ||
10778 | wxPyEndAllowThreads(__tstate); | |
10779 | if (PyErr_Occurred()) SWIG_fail; | |
10780 | } | |
10781 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10782 | return resultobj; | |
10783 | fail: | |
10784 | return NULL; | |
10785 | } | |
10786 | ||
10787 | ||
10788 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10789 | PyObject *resultobj; | |
10790 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10791 | wxString result; | |
10792 | PyObject * obj0 = 0 ; | |
10793 | char *kwnames[] = { | |
10794 | (char *) "self", NULL | |
10795 | }; | |
10796 | ||
10797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
10798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10799 | { | |
10800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10801 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
10802 | ||
10803 | wxPyEndAllowThreads(__tstate); | |
10804 | if (PyErr_Occurred()) SWIG_fail; | |
10805 | } | |
10806 | { | |
10807 | #if wxUSE_UNICODE | |
10808 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10809 | #else | |
10810 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10811 | #endif | |
10812 | } | |
10813 | return resultobj; | |
10814 | fail: | |
10815 | return NULL; | |
10816 | } | |
10817 | ||
10818 | ||
10819 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10820 | PyObject *resultobj; | |
10821 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10822 | wxString *arg2 = 0 ; | |
10823 | bool result; | |
10824 | bool temp2 = False ; | |
10825 | PyObject * obj0 = 0 ; | |
10826 | PyObject * obj1 = 0 ; | |
10827 | char *kwnames[] = { | |
10828 | (char *) "self",(char *) "s", NULL | |
10829 | }; | |
10830 | ||
10831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
10832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10833 | { | |
10834 | arg2 = wxString_in_helper(obj1); | |
10835 | if (arg2 == NULL) SWIG_fail; | |
10836 | temp2 = True; | |
10837 | } | |
10838 | { | |
10839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10840 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
10841 | ||
10842 | wxPyEndAllowThreads(__tstate); | |
10843 | if (PyErr_Occurred()) SWIG_fail; | |
10844 | } | |
10845 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
10846 | { | |
10847 | if (temp2) | |
10848 | delete arg2; | |
10849 | } | |
10850 | return resultobj; | |
10851 | fail: | |
10852 | { | |
10853 | if (temp2) | |
10854 | delete arg2; | |
10855 | } | |
10856 | return NULL; | |
10857 | } | |
10858 | ||
10859 | ||
10860 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10861 | PyObject *resultobj; | |
10862 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10863 | int result; | |
10864 | PyObject * obj0 = 0 ; | |
10865 | char *kwnames[] = { | |
10866 | (char *) "self", NULL | |
10867 | }; | |
10868 | ||
10869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
10870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10871 | { | |
10872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10873 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
10874 | ||
10875 | wxPyEndAllowThreads(__tstate); | |
10876 | if (PyErr_Occurred()) SWIG_fail; | |
10877 | } | |
10878 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10879 | return resultobj; | |
10880 | fail: | |
10881 | return NULL; | |
10882 | } | |
10883 | ||
10884 | ||
10885 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10886 | PyObject *resultobj; | |
10887 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10888 | wxString *arg2 = 0 ; | |
10889 | int result; | |
10890 | bool temp2 = False ; | |
10891 | PyObject * obj0 = 0 ; | |
10892 | PyObject * obj1 = 0 ; | |
10893 | char *kwnames[] = { | |
10894 | (char *) "self",(char *) "s", NULL | |
10895 | }; | |
10896 | ||
10897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
10898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10899 | { | |
10900 | arg2 = wxString_in_helper(obj1); | |
10901 | if (arg2 == NULL) SWIG_fail; | |
10902 | temp2 = True; | |
10903 | } | |
10904 | { | |
10905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10906 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
10907 | ||
10908 | wxPyEndAllowThreads(__tstate); | |
10909 | if (PyErr_Occurred()) SWIG_fail; | |
10910 | } | |
10911 | resultobj = SWIG_PyObj_FromInt((int)result); | |
10912 | { | |
10913 | if (temp2) | |
10914 | delete arg2; | |
10915 | } | |
10916 | return resultobj; | |
10917 | fail: | |
10918 | { | |
10919 | if (temp2) | |
10920 | delete arg2; | |
10921 | } | |
10922 | return NULL; | |
10923 | } | |
10924 | ||
10925 | ||
10926 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10927 | PyObject *resultobj; | |
10928 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10929 | int arg2 ; | |
10930 | wxString result; | |
10931 | PyObject * obj0 = 0 ; | |
10932 | PyObject * obj1 = 0 ; | |
10933 | char *kwnames[] = { | |
10934 | (char *) "self",(char *) "n", NULL | |
10935 | }; | |
10936 | ||
10937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; | |
10938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10939 | { | |
10940 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10941 | if (PyErr_Occurred()) SWIG_fail; | |
10942 | } | |
10943 | { | |
10944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10945 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
10946 | ||
10947 | wxPyEndAllowThreads(__tstate); | |
10948 | if (PyErr_Occurred()) SWIG_fail; | |
10949 | } | |
10950 | { | |
10951 | #if wxUSE_UNICODE | |
10952 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10953 | #else | |
10954 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10955 | #endif | |
10956 | } | |
10957 | return resultobj; | |
10958 | fail: | |
10959 | return NULL; | |
10960 | } | |
10961 | ||
10962 | ||
10963 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10964 | PyObject *resultobj; | |
10965 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10966 | int arg2 ; | |
10967 | wxString *arg3 = 0 ; | |
10968 | bool temp3 = False ; | |
10969 | PyObject * obj0 = 0 ; | |
10970 | PyObject * obj1 = 0 ; | |
10971 | PyObject * obj2 = 0 ; | |
10972 | char *kwnames[] = { | |
10973 | (char *) "self",(char *) "n",(char *) "label", NULL | |
10974 | }; | |
10975 | ||
10976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10978 | { | |
10979 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10980 | if (PyErr_Occurred()) SWIG_fail; | |
10981 | } | |
10982 | { | |
10983 | arg3 = wxString_in_helper(obj2); | |
10984 | if (arg3 == NULL) SWIG_fail; | |
10985 | temp3 = True; | |
10986 | } | |
10987 | { | |
10988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10989 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
10990 | ||
10991 | wxPyEndAllowThreads(__tstate); | |
10992 | if (PyErr_Occurred()) SWIG_fail; | |
10993 | } | |
10994 | Py_INCREF(Py_None); resultobj = Py_None; | |
10995 | { | |
10996 | if (temp3) | |
10997 | delete arg3; | |
10998 | } | |
10999 | return resultobj; | |
11000 | fail: | |
11001 | { | |
11002 | if (temp3) | |
11003 | delete arg3; | |
11004 | } | |
11005 | return NULL; | |
11006 | } | |
11007 | ||
11008 | ||
11009 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11010 | PyObject *resultobj; | |
11011 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11012 | int arg2 ; | |
11013 | bool arg3 = (bool) True ; | |
11014 | PyObject * obj0 = 0 ; | |
11015 | PyObject * obj1 = 0 ; | |
11016 | PyObject * obj2 = 0 ; | |
11017 | char *kwnames[] = { | |
11018 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
11019 | }; | |
11020 | ||
11021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11023 | { | |
11024 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11025 | if (PyErr_Occurred()) SWIG_fail; | |
11026 | } | |
11027 | if (obj2) { | |
11028 | { | |
11029 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
11030 | if (PyErr_Occurred()) SWIG_fail; | |
11031 | } | |
11032 | } | |
11033 | { | |
11034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11035 | (arg1)->Enable(arg2,arg3); | |
11036 | ||
11037 | wxPyEndAllowThreads(__tstate); | |
11038 | if (PyErr_Occurred()) SWIG_fail; | |
11039 | } | |
11040 | Py_INCREF(Py_None); resultobj = Py_None; | |
11041 | return resultobj; | |
11042 | fail: | |
11043 | return NULL; | |
11044 | } | |
11045 | ||
11046 | ||
11047 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11048 | PyObject *resultobj; | |
11049 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11050 | int arg2 ; | |
11051 | bool arg3 = (bool) True ; | |
11052 | PyObject * obj0 = 0 ; | |
11053 | PyObject * obj1 = 0 ; | |
11054 | PyObject * obj2 = 0 ; | |
11055 | char *kwnames[] = { | |
11056 | (char *) "self",(char *) "n",(char *) "show", NULL | |
11057 | }; | |
11058 | ||
11059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11061 | { | |
11062 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11063 | if (PyErr_Occurred()) SWIG_fail; | |
11064 | } | |
11065 | if (obj2) { | |
11066 | { | |
11067 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
11068 | if (PyErr_Occurred()) SWIG_fail; | |
11069 | } | |
11070 | } | |
11071 | { | |
11072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11073 | (arg1)->Show(arg2,arg3); | |
11074 | ||
11075 | wxPyEndAllowThreads(__tstate); | |
11076 | if (PyErr_Occurred()) SWIG_fail; | |
11077 | } | |
11078 | Py_INCREF(Py_None); resultobj = Py_None; | |
11079 | return resultobj; | |
11080 | fail: | |
11081 | return NULL; | |
11082 | } | |
11083 | ||
11084 | ||
11085 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11086 | PyObject *resultobj; | |
11087 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11088 | int result; | |
11089 | PyObject * obj0 = 0 ; | |
11090 | char *kwnames[] = { | |
11091 | (char *) "self", NULL | |
11092 | }; | |
11093 | ||
11094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
11095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11096 | { | |
11097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11098 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
11099 | ||
11100 | wxPyEndAllowThreads(__tstate); | |
11101 | if (PyErr_Occurred()) SWIG_fail; | |
11102 | } | |
11103 | resultobj = SWIG_PyObj_FromInt((int)result); | |
11104 | return resultobj; | |
11105 | fail: | |
11106 | return NULL; | |
11107 | } | |
11108 | ||
11109 | ||
11110 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11111 | PyObject *resultobj; | |
11112 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11113 | int result; | |
11114 | PyObject * obj0 = 0 ; | |
11115 | char *kwnames[] = { | |
11116 | (char *) "self", NULL | |
11117 | }; | |
11118 | ||
11119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
11120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11121 | { | |
11122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11123 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
11124 | ||
11125 | wxPyEndAllowThreads(__tstate); | |
11126 | if (PyErr_Occurred()) SWIG_fail; | |
11127 | } | |
11128 | resultobj = SWIG_PyObj_FromInt((int)result); | |
11129 | return resultobj; | |
11130 | fail: | |
11131 | return NULL; | |
11132 | } | |
11133 | ||
11134 | ||
11135 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11136 | PyObject *resultobj; | |
11137 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11138 | int arg2 ; | |
11139 | int arg3 ; | |
11140 | long arg4 ; | |
11141 | int result; | |
11142 | PyObject * obj0 = 0 ; | |
11143 | PyObject * obj1 = 0 ; | |
11144 | PyObject * obj2 = 0 ; | |
11145 | PyObject * obj3 = 0 ; | |
11146 | char *kwnames[] = { | |
11147 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
11148 | }; | |
11149 | ||
11150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11152 | { | |
11153 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11154 | if (PyErr_Occurred()) SWIG_fail; | |
11155 | } | |
11156 | { | |
11157 | arg3 = (wxDirection) SWIG_PyObj_AsInt(obj2); | |
11158 | if (PyErr_Occurred()) SWIG_fail; | |
11159 | } | |
11160 | { | |
11161 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
11162 | if (PyErr_Occurred()) SWIG_fail; | |
11163 | } | |
11164 | { | |
11165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11166 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
11167 | ||
11168 | wxPyEndAllowThreads(__tstate); | |
11169 | if (PyErr_Occurred()) SWIG_fail; | |
11170 | } | |
11171 | resultobj = SWIG_PyObj_FromInt((int)result); | |
11172 | return resultobj; | |
11173 | fail: | |
11174 | return NULL; | |
11175 | } | |
11176 | ||
11177 | ||
11178 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
11179 | PyObject *obj; | |
11180 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11181 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
11182 | Py_INCREF(obj); | |
11183 | return Py_BuildValue((char *)""); | |
11184 | } | |
11185 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11186 | PyObject *resultobj; | |
11187 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11188 | int arg2 ; | |
11189 | wxString *arg3 = 0 ; | |
11190 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11191 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11192 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11193 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11194 | long arg6 = (long) 0 ; | |
11195 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11196 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11197 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
11198 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11199 | wxRadioButton *result; | |
11200 | bool temp3 = False ; | |
11201 | wxPoint temp4 ; | |
11202 | wxSize temp5 ; | |
11203 | bool temp8 = False ; | |
11204 | PyObject * obj0 = 0 ; | |
11205 | PyObject * obj1 = 0 ; | |
11206 | PyObject * obj2 = 0 ; | |
11207 | PyObject * obj3 = 0 ; | |
11208 | PyObject * obj4 = 0 ; | |
11209 | PyObject * obj5 = 0 ; | |
11210 | PyObject * obj6 = 0 ; | |
11211 | PyObject * obj7 = 0 ; | |
11212 | char *kwnames[] = { | |
11213 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11214 | }; | |
11215 | ||
11216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
11217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11218 | { | |
11219 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11220 | if (PyErr_Occurred()) SWIG_fail; | |
11221 | } | |
11222 | { | |
11223 | arg3 = wxString_in_helper(obj2); | |
11224 | if (arg3 == NULL) SWIG_fail; | |
11225 | temp3 = True; | |
11226 | } | |
11227 | if (obj3) { | |
11228 | { | |
11229 | arg4 = &temp4; | |
11230 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11231 | } | |
11232 | } | |
11233 | if (obj4) { | |
11234 | { | |
11235 | arg5 = &temp5; | |
11236 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11237 | } | |
11238 | } | |
11239 | if (obj5) { | |
11240 | { | |
11241 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
11242 | if (PyErr_Occurred()) SWIG_fail; | |
11243 | } | |
11244 | } | |
11245 | if (obj6) { | |
11246 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11247 | if (arg7 == NULL) { | |
11248 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11249 | } | |
11250 | } | |
11251 | if (obj7) { | |
11252 | { | |
11253 | arg8 = wxString_in_helper(obj7); | |
11254 | if (arg8 == NULL) SWIG_fail; | |
11255 | temp8 = True; | |
11256 | } | |
11257 | } | |
11258 | { | |
11259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11260 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11261 | ||
11262 | wxPyEndAllowThreads(__tstate); | |
11263 | if (PyErr_Occurred()) SWIG_fail; | |
11264 | } | |
11265 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11266 | { | |
11267 | if (temp3) | |
11268 | delete arg3; | |
11269 | } | |
11270 | { | |
11271 | if (temp8) | |
11272 | delete arg8; | |
11273 | } | |
11274 | return resultobj; | |
11275 | fail: | |
11276 | { | |
11277 | if (temp3) | |
11278 | delete arg3; | |
11279 | } | |
11280 | { | |
11281 | if (temp8) | |
11282 | delete arg8; | |
11283 | } | |
11284 | return NULL; | |
11285 | } | |
11286 | ||
11287 | ||
11288 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11289 | PyObject *resultobj; | |
11290 | wxRadioButton *result; | |
11291 | char *kwnames[] = { | |
11292 | NULL | |
11293 | }; | |
11294 | ||
11295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
11296 | { | |
11297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11298 | result = (wxRadioButton *)new wxRadioButton(); | |
11299 | ||
11300 | wxPyEndAllowThreads(__tstate); | |
11301 | if (PyErr_Occurred()) SWIG_fail; | |
11302 | } | |
11303 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
11304 | return resultobj; | |
11305 | fail: | |
11306 | return NULL; | |
11307 | } | |
11308 | ||
11309 | ||
11310 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11311 | PyObject *resultobj; | |
11312 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11313 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11314 | int arg3 ; | |
11315 | wxString *arg4 = 0 ; | |
11316 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11317 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11318 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11319 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11320 | long arg7 = (long) 0 ; | |
11321 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11322 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11323 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
11324 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11325 | bool result; | |
11326 | bool temp4 = False ; | |
11327 | wxPoint temp5 ; | |
11328 | wxSize temp6 ; | |
11329 | bool temp9 = False ; | |
11330 | PyObject * obj0 = 0 ; | |
11331 | PyObject * obj1 = 0 ; | |
11332 | PyObject * obj2 = 0 ; | |
11333 | PyObject * obj3 = 0 ; | |
11334 | PyObject * obj4 = 0 ; | |
11335 | PyObject * obj5 = 0 ; | |
11336 | PyObject * obj6 = 0 ; | |
11337 | PyObject * obj7 = 0 ; | |
11338 | PyObject * obj8 = 0 ; | |
11339 | char *kwnames[] = { | |
11340 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11341 | }; | |
11342 | ||
11343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
11344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11345 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11346 | { | |
11347 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11348 | if (PyErr_Occurred()) SWIG_fail; | |
11349 | } | |
11350 | { | |
11351 | arg4 = wxString_in_helper(obj3); | |
11352 | if (arg4 == NULL) SWIG_fail; | |
11353 | temp4 = True; | |
11354 | } | |
11355 | if (obj4) { | |
11356 | { | |
11357 | arg5 = &temp5; | |
11358 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11359 | } | |
11360 | } | |
11361 | if (obj5) { | |
11362 | { | |
11363 | arg6 = &temp6; | |
11364 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11365 | } | |
11366 | } | |
11367 | if (obj6) { | |
11368 | { | |
11369 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
11370 | if (PyErr_Occurred()) SWIG_fail; | |
11371 | } | |
11372 | } | |
11373 | if (obj7) { | |
11374 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11375 | if (arg8 == NULL) { | |
11376 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11377 | } | |
11378 | } | |
11379 | if (obj8) { | |
11380 | { | |
11381 | arg9 = wxString_in_helper(obj8); | |
11382 | if (arg9 == NULL) SWIG_fail; | |
11383 | temp9 = True; | |
11384 | } | |
11385 | } | |
11386 | { | |
11387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11388 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11389 | ||
11390 | wxPyEndAllowThreads(__tstate); | |
11391 | if (PyErr_Occurred()) SWIG_fail; | |
11392 | } | |
11393 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
11394 | { | |
11395 | if (temp4) | |
11396 | delete arg4; | |
11397 | } | |
11398 | { | |
11399 | if (temp9) | |
11400 | delete arg9; | |
11401 | } | |
11402 | return resultobj; | |
11403 | fail: | |
11404 | { | |
11405 | if (temp4) | |
11406 | delete arg4; | |
11407 | } | |
11408 | { | |
11409 | if (temp9) | |
11410 | delete arg9; | |
11411 | } | |
11412 | return NULL; | |
11413 | } | |
11414 | ||
11415 | ||
11416 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11417 | PyObject *resultobj; | |
11418 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11419 | bool result; | |
11420 | PyObject * obj0 = 0 ; | |
11421 | char *kwnames[] = { | |
11422 | (char *) "self", NULL | |
11423 | }; | |
11424 | ||
11425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
11426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11427 | { | |
11428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11429 | result = (bool)(arg1)->GetValue(); | |
11430 | ||
11431 | wxPyEndAllowThreads(__tstate); | |
11432 | if (PyErr_Occurred()) SWIG_fail; | |
11433 | } | |
11434 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
11435 | return resultobj; | |
11436 | fail: | |
11437 | return NULL; | |
11438 | } | |
11439 | ||
11440 | ||
11441 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11442 | PyObject *resultobj; | |
11443 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11444 | bool arg2 ; | |
11445 | PyObject * obj0 = 0 ; | |
11446 | PyObject * obj1 = 0 ; | |
11447 | char *kwnames[] = { | |
11448 | (char *) "self",(char *) "value", NULL | |
11449 | }; | |
11450 | ||
11451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11453 | { | |
11454 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
11455 | if (PyErr_Occurred()) SWIG_fail; | |
11456 | } | |
11457 | { | |
11458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11459 | (arg1)->SetValue(arg2); | |
11460 | ||
11461 | wxPyEndAllowThreads(__tstate); | |
11462 | if (PyErr_Occurred()) SWIG_fail; | |
11463 | } | |
11464 | Py_INCREF(Py_None); resultobj = Py_None; | |
11465 | return resultobj; | |
11466 | fail: | |
11467 | return NULL; | |
11468 | } | |
11469 | ||
11470 | ||
11471 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
11472 | PyObject *obj; | |
11473 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11474 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
11475 | Py_INCREF(obj); | |
11476 | return Py_BuildValue((char *)""); | |
11477 | } | |
11478 | static int _wrap_SliderNameStr_set(PyObject *) { | |
11479 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); | |
11480 | return 1; | |
11481 | } | |
11482 | ||
11483 | ||
11484 | static PyObject *_wrap_SliderNameStr_get() { | |
11485 | PyObject *pyobj; | |
11486 | ||
11487 | { | |
11488 | #if wxUSE_UNICODE | |
11489 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11490 | #else | |
11491 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
11492 | #endif | |
11493 | } | |
11494 | return pyobj; | |
11495 | } | |
11496 | ||
11497 | ||
11498 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11499 | PyObject *resultobj; | |
11500 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11501 | int arg2 ; | |
11502 | int arg3 ; | |
11503 | int arg4 ; | |
11504 | int arg5 ; | |
11505 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
11506 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
11507 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
11508 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
11509 | long arg8 = (long) wxSL_HORIZONTAL ; | |
11510 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11511 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11512 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
11513 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11514 | wxSlider *result; | |
11515 | wxPoint temp6 ; | |
11516 | wxSize temp7 ; | |
11517 | bool temp10 = False ; | |
11518 | PyObject * obj0 = 0 ; | |
11519 | PyObject * obj1 = 0 ; | |
11520 | PyObject * obj2 = 0 ; | |
11521 | PyObject * obj3 = 0 ; | |
11522 | PyObject * obj4 = 0 ; | |
11523 | PyObject * obj5 = 0 ; | |
11524 | PyObject * obj6 = 0 ; | |
11525 | PyObject * obj7 = 0 ; | |
11526 | PyObject * obj8 = 0 ; | |
11527 | PyObject * obj9 = 0 ; | |
11528 | char *kwnames[] = { | |
11529 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11530 | }; | |
11531 | ||
11532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
11533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11534 | { | |
11535 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11536 | if (PyErr_Occurred()) SWIG_fail; | |
11537 | } | |
11538 | { | |
11539 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11540 | if (PyErr_Occurred()) SWIG_fail; | |
11541 | } | |
11542 | { | |
11543 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11544 | if (PyErr_Occurred()) SWIG_fail; | |
11545 | } | |
11546 | { | |
11547 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11548 | if (PyErr_Occurred()) SWIG_fail; | |
11549 | } | |
11550 | if (obj5) { | |
11551 | { | |
11552 | arg6 = &temp6; | |
11553 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
11554 | } | |
11555 | } | |
11556 | if (obj6) { | |
11557 | { | |
11558 | arg7 = &temp7; | |
11559 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
11560 | } | |
11561 | } | |
11562 | if (obj7) { | |
11563 | { | |
11564 | arg8 = (long) SWIG_PyObj_AsLong(obj7); | |
11565 | if (PyErr_Occurred()) SWIG_fail; | |
11566 | } | |
11567 | } | |
11568 | if (obj8) { | |
11569 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11570 | if (arg9 == NULL) { | |
11571 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11572 | } | |
11573 | } | |
11574 | if (obj9) { | |
11575 | { | |
11576 | arg10 = wxString_in_helper(obj9); | |
11577 | if (arg10 == NULL) SWIG_fail; | |
11578 | temp10 = True; | |
11579 | } | |
11580 | } | |
11581 | { | |
11582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11583 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
11584 | ||
11585 | wxPyEndAllowThreads(__tstate); | |
11586 | if (PyErr_Occurred()) SWIG_fail; | |
11587 | } | |
11588 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
11589 | { | |
11590 | if (temp10) | |
11591 | delete arg10; | |
11592 | } | |
11593 | return resultobj; | |
11594 | fail: | |
11595 | { | |
11596 | if (temp10) | |
11597 | delete arg10; | |
11598 | } | |
11599 | return NULL; | |
11600 | } | |
11601 | ||
11602 | ||
11603 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11604 | PyObject *resultobj; | |
11605 | wxSlider *result; | |
11606 | char *kwnames[] = { | |
11607 | NULL | |
11608 | }; | |
11609 | ||
11610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
11611 | { | |
11612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11613 | result = (wxSlider *)new wxSlider(); | |
11614 | ||
11615 | wxPyEndAllowThreads(__tstate); | |
11616 | if (PyErr_Occurred()) SWIG_fail; | |
11617 | } | |
11618 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
11619 | return resultobj; | |
11620 | fail: | |
11621 | return NULL; | |
11622 | } | |
11623 | ||
11624 | ||
11625 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11626 | PyObject *resultobj; | |
11627 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11628 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11629 | int arg3 ; | |
11630 | int arg4 ; | |
11631 | int arg5 ; | |
11632 | int arg6 ; | |
11633 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11634 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11635 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
11636 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
11637 | long arg9 = (long) wxSL_HORIZONTAL ; | |
11638 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11639 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11640 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
11641 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11642 | bool result; | |
11643 | wxPoint temp7 ; | |
11644 | wxSize temp8 ; | |
11645 | bool temp11 = False ; | |
11646 | PyObject * obj0 = 0 ; | |
11647 | PyObject * obj1 = 0 ; | |
11648 | PyObject * obj2 = 0 ; | |
11649 | PyObject * obj3 = 0 ; | |
11650 | PyObject * obj4 = 0 ; | |
11651 | PyObject * obj5 = 0 ; | |
11652 | PyObject * obj6 = 0 ; | |
11653 | PyObject * obj7 = 0 ; | |
11654 | PyObject * obj8 = 0 ; | |
11655 | PyObject * obj9 = 0 ; | |
11656 | PyObject * obj10 = 0 ; | |
11657 | char *kwnames[] = { | |
11658 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11659 | }; | |
11660 | ||
11661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
11662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11663 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11664 | { | |
11665 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11666 | if (PyErr_Occurred()) SWIG_fail; | |
11667 | } | |
11668 | { | |
11669 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11670 | if (PyErr_Occurred()) SWIG_fail; | |
11671 | } | |
11672 | { | |
11673 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11674 | if (PyErr_Occurred()) SWIG_fail; | |
11675 | } | |
11676 | { | |
11677 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
11678 | if (PyErr_Occurred()) SWIG_fail; | |
11679 | } | |
11680 | if (obj6) { | |
11681 | { | |
11682 | arg7 = &temp7; | |
11683 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
11684 | } | |
11685 | } | |
11686 | if (obj7) { | |
11687 | { | |
11688 | arg8 = &temp8; | |
11689 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
11690 | } | |
11691 | } | |
11692 | if (obj8) { | |
11693 | { | |
11694 | arg9 = (long) SWIG_PyObj_AsLong(obj8); | |
11695 | if (PyErr_Occurred()) SWIG_fail; | |
11696 | } | |
11697 | } | |
11698 | if (obj9) { | |
11699 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11700 | if (arg10 == NULL) { | |
11701 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11702 | } | |
11703 | } | |
11704 | if (obj10) { | |
11705 | { | |
11706 | arg11 = wxString_in_helper(obj10); | |
11707 | if (arg11 == NULL) SWIG_fail; | |
11708 | temp11 = True; | |
11709 | } | |
11710 | } | |
11711 | { | |
11712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11713 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
11714 | ||
11715 | wxPyEndAllowThreads(__tstate); | |
11716 | if (PyErr_Occurred()) SWIG_fail; | |
11717 | } | |
11718 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
11719 | { | |
11720 | if (temp11) | |
11721 | delete arg11; | |
11722 | } | |
11723 | return resultobj; | |
11724 | fail: | |
11725 | { | |
11726 | if (temp11) | |
11727 | delete arg11; | |
11728 | } | |
11729 | return NULL; | |
11730 | } | |
11731 | ||
11732 | ||
11733 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11734 | PyObject *resultobj; | |
11735 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11736 | int result; | |
11737 | PyObject * obj0 = 0 ; | |
11738 | char *kwnames[] = { | |
11739 | (char *) "self", NULL | |
11740 | }; | |
11741 | ||
11742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
11743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11744 | { | |
11745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11746 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
11747 | ||
11748 | wxPyEndAllowThreads(__tstate); | |
11749 | if (PyErr_Occurred()) SWIG_fail; | |
11750 | } | |
11751 | resultobj = SWIG_PyObj_FromInt((int)result); | |
11752 | return resultobj; | |
11753 | fail: | |
11754 | return NULL; | |
11755 | } | |
11756 | ||
11757 | ||
11758 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11759 | PyObject *resultobj; | |
11760 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11761 | int arg2 ; | |
11762 | PyObject * obj0 = 0 ; | |
11763 | PyObject * obj1 = 0 ; | |
11764 | char *kwnames[] = { | |
11765 | (char *) "self",(char *) "value", NULL | |
11766 | }; | |
11767 | ||
11768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11770 | { | |
11771 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11772 | if (PyErr_Occurred()) SWIG_fail; | |
11773 | } | |
11774 | { | |
11775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11776 | (arg1)->SetValue(arg2); | |
11777 | ||
11778 | wxPyEndAllowThreads(__tstate); | |
11779 | if (PyErr_Occurred()) SWIG_fail; | |
11780 | } | |
11781 | Py_INCREF(Py_None); resultobj = Py_None; | |
11782 | return resultobj; | |
11783 | fail: | |
11784 | return NULL; | |
11785 | } | |
11786 | ||
11787 | ||
11788 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11789 | PyObject *resultobj; | |
11790 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11791 | int arg2 ; | |
11792 | int arg3 ; | |
11793 | PyObject * obj0 = 0 ; | |
11794 | PyObject * obj1 = 0 ; | |
11795 | PyObject * obj2 = 0 ; | |
11796 | char *kwnames[] = { | |
11797 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
11798 | }; | |
11799 | ||
11800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11802 | { | |
11803 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11804 | if (PyErr_Occurred()) SWIG_fail; | |
11805 | } | |
11806 | { | |
11807 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11808 | if (PyErr_Occurred()) SWIG_fail; | |
11809 | } | |
11810 | { | |
11811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11812 | (arg1)->SetRange(arg2,arg3); | |
11813 | ||
11814 | wxPyEndAllowThreads(__tstate); | |
11815 | if (PyErr_Occurred()) SWIG_fail; | |
11816 | } | |
11817 | Py_INCREF(Py_None); resultobj = Py_None; | |
11818 | return resultobj; | |
11819 | fail: | |
11820 | return NULL; | |
11821 | } | |
11822 | ||
11823 | ||
11824 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11825 | PyObject *resultobj; | |
11826 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11827 | int result; | |
11828 | PyObject * obj0 = 0 ; | |
11829 | char *kwnames[] = { | |
11830 | (char *) "self", NULL | |
11831 | }; | |
11832 | ||
11833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
11834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11835 | { | |
11836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11837 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
11838 | ||
11839 | wxPyEndAllowThreads(__tstate); | |
11840 | if (PyErr_Occurred()) SWIG_fail; | |
11841 | } | |
11842 | resultobj = SWIG_PyObj_FromInt((int)result); | |
11843 | return resultobj; | |
11844 | fail: | |
11845 | return NULL; | |
11846 | } | |
11847 | ||
11848 | ||
11849 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11850 | PyObject *resultobj; | |
11851 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11852 | int result; | |
11853 | PyObject * obj0 = 0 ; | |
11854 | char *kwnames[] = { | |
11855 | (char *) "self", NULL | |
11856 | }; | |
11857 | ||
11858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
11859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11860 | { | |
11861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11862 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
11863 | ||
11864 | wxPyEndAllowThreads(__tstate); | |
11865 | if (PyErr_Occurred()) SWIG_fail; | |
11866 | } | |
11867 | resultobj = SWIG_PyObj_FromInt((int)result); | |
11868 | return resultobj; | |
11869 | fail: | |
11870 | return NULL; | |
11871 | } | |
11872 | ||
11873 | ||
11874 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11875 | PyObject *resultobj; | |
11876 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11877 | int arg2 ; | |
11878 | PyObject * obj0 = 0 ; | |
11879 | PyObject * obj1 = 0 ; | |
11880 | char *kwnames[] = { | |
11881 | (char *) "self",(char *) "minValue", NULL | |
11882 | }; | |
11883 | ||
11884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
11885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11886 | { | |
11887 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11888 | if (PyErr_Occurred()) SWIG_fail; | |
11889 | } | |
11890 | { | |
11891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11892 | (arg1)->SetMin(arg2); | |
11893 | ||
11894 | wxPyEndAllowThreads(__tstate); | |
11895 | if (PyErr_Occurred()) SWIG_fail; | |
11896 | } | |
11897 | Py_INCREF(Py_None); resultobj = Py_None; | |
11898 | return resultobj; | |
11899 | fail: | |
11900 | return NULL; | |
11901 | } | |
11902 | ||
11903 | ||
11904 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11905 | PyObject *resultobj; | |
11906 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11907 | int arg2 ; | |
11908 | PyObject * obj0 = 0 ; | |
11909 | PyObject * obj1 = 0 ; | |
11910 | char *kwnames[] = { | |
11911 | (char *) "self",(char *) "maxValue", NULL | |
11912 | }; | |
11913 | ||
11914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
11915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11916 | { | |
11917 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11918 | if (PyErr_Occurred()) SWIG_fail; | |
11919 | } | |
11920 | { | |
11921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11922 | (arg1)->SetMax(arg2); | |
11923 | ||
11924 | wxPyEndAllowThreads(__tstate); | |
11925 | if (PyErr_Occurred()) SWIG_fail; | |
11926 | } | |
11927 | Py_INCREF(Py_None); resultobj = Py_None; | |
11928 | return resultobj; | |
11929 | fail: | |
11930 | return NULL; | |
11931 | } | |
11932 | ||
11933 | ||
11934 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11935 | PyObject *resultobj; | |
11936 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11937 | int arg2 ; | |
11938 | PyObject * obj0 = 0 ; | |
11939 | PyObject * obj1 = 0 ; | |
11940 | char *kwnames[] = { | |
11941 | (char *) "self",(char *) "lineSize", NULL | |
11942 | }; | |
11943 | ||
11944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; | |
11945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11946 | { | |
11947 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11948 | if (PyErr_Occurred()) SWIG_fail; | |
11949 | } | |
11950 | { | |
11951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11952 | (arg1)->SetLineSize(arg2); | |
11953 | ||
11954 | wxPyEndAllowThreads(__tstate); | |
11955 | if (PyErr_Occurred()) SWIG_fail; | |
11956 | } | |
11957 | Py_INCREF(Py_None); resultobj = Py_None; | |
11958 | return resultobj; | |
11959 | fail: | |
11960 | return NULL; | |
11961 | } | |
11962 | ||
11963 | ||
11964 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11965 | PyObject *resultobj; | |
11966 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11967 | int arg2 ; | |
11968 | PyObject * obj0 = 0 ; | |
11969 | PyObject * obj1 = 0 ; | |
11970 | char *kwnames[] = { | |
11971 | (char *) "self",(char *) "pageSize", NULL | |
11972 | }; | |
11973 | ||
11974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
11975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11976 | { | |
11977 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11978 | if (PyErr_Occurred()) SWIG_fail; | |
11979 | } | |
11980 | { | |
11981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11982 | (arg1)->SetPageSize(arg2); | |
11983 | ||
11984 | wxPyEndAllowThreads(__tstate); | |
11985 | if (PyErr_Occurred()) SWIG_fail; | |
11986 | } | |
11987 | Py_INCREF(Py_None); resultobj = Py_None; | |
11988 | return resultobj; | |
11989 | fail: | |
11990 | return NULL; | |
11991 | } | |
11992 | ||
11993 | ||
11994 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11995 | PyObject *resultobj; | |
11996 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11997 | int result; | |
11998 | PyObject * obj0 = 0 ; | |
11999 | char *kwnames[] = { | |
12000 | (char *) "self", NULL | |
12001 | }; | |
12002 | ||
12003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
12004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12005 | { | |
12006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12007 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
12008 | ||
12009 | wxPyEndAllowThreads(__tstate); | |
12010 | if (PyErr_Occurred()) SWIG_fail; | |
12011 | } | |
12012 | resultobj = SWIG_PyObj_FromInt((int)result); | |
12013 | return resultobj; | |
12014 | fail: | |
12015 | return NULL; | |
12016 | } | |
12017 | ||
12018 | ||
12019 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12020 | PyObject *resultobj; | |
12021 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12022 | int result; | |
12023 | PyObject * obj0 = 0 ; | |
12024 | char *kwnames[] = { | |
12025 | (char *) "self", NULL | |
12026 | }; | |
12027 | ||
12028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
12029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12030 | { | |
12031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12032 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
12033 | ||
12034 | wxPyEndAllowThreads(__tstate); | |
12035 | if (PyErr_Occurred()) SWIG_fail; | |
12036 | } | |
12037 | resultobj = SWIG_PyObj_FromInt((int)result); | |
12038 | return resultobj; | |
12039 | fail: | |
12040 | return NULL; | |
12041 | } | |
12042 | ||
12043 | ||
12044 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12045 | PyObject *resultobj; | |
12046 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12047 | int arg2 ; | |
12048 | PyObject * obj0 = 0 ; | |
12049 | PyObject * obj1 = 0 ; | |
12050 | char *kwnames[] = { | |
12051 | (char *) "self",(char *) "lenPixels", NULL | |
12052 | }; | |
12053 | ||
12054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; | |
12055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12056 | { | |
12057 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12058 | if (PyErr_Occurred()) SWIG_fail; | |
12059 | } | |
12060 | { | |
12061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12062 | (arg1)->SetThumbLength(arg2); | |
12063 | ||
12064 | wxPyEndAllowThreads(__tstate); | |
12065 | if (PyErr_Occurred()) SWIG_fail; | |
12066 | } | |
12067 | Py_INCREF(Py_None); resultobj = Py_None; | |
12068 | return resultobj; | |
12069 | fail: | |
12070 | return NULL; | |
12071 | } | |
12072 | ||
12073 | ||
12074 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12075 | PyObject *resultobj; | |
12076 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12077 | int result; | |
12078 | PyObject * obj0 = 0 ; | |
12079 | char *kwnames[] = { | |
12080 | (char *) "self", NULL | |
12081 | }; | |
12082 | ||
12083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
12084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12085 | { | |
12086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12087 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
12088 | ||
12089 | wxPyEndAllowThreads(__tstate); | |
12090 | if (PyErr_Occurred()) SWIG_fail; | |
12091 | } | |
12092 | resultobj = SWIG_PyObj_FromInt((int)result); | |
12093 | return resultobj; | |
12094 | fail: | |
12095 | return NULL; | |
12096 | } | |
12097 | ||
12098 | ||
12099 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12100 | PyObject *resultobj; | |
12101 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12102 | int arg2 ; | |
12103 | int arg3 = (int) 1 ; | |
12104 | PyObject * obj0 = 0 ; | |
12105 | PyObject * obj1 = 0 ; | |
12106 | PyObject * obj2 = 0 ; | |
12107 | char *kwnames[] = { | |
12108 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
12109 | }; | |
12110 | ||
12111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12113 | { | |
12114 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12115 | if (PyErr_Occurred()) SWIG_fail; | |
12116 | } | |
12117 | if (obj2) { | |
12118 | { | |
12119 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12120 | if (PyErr_Occurred()) SWIG_fail; | |
12121 | } | |
12122 | } | |
12123 | { | |
12124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12125 | (arg1)->SetTickFreq(arg2,arg3); | |
12126 | ||
12127 | wxPyEndAllowThreads(__tstate); | |
12128 | if (PyErr_Occurred()) SWIG_fail; | |
12129 | } | |
12130 | Py_INCREF(Py_None); resultobj = Py_None; | |
12131 | return resultobj; | |
12132 | fail: | |
12133 | return NULL; | |
12134 | } | |
12135 | ||
12136 | ||
12137 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12138 | PyObject *resultobj; | |
12139 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12140 | int result; | |
12141 | PyObject * obj0 = 0 ; | |
12142 | char *kwnames[] = { | |
12143 | (char *) "self", NULL | |
12144 | }; | |
12145 | ||
12146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
12147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12148 | { | |
12149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12150 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
12151 | ||
12152 | wxPyEndAllowThreads(__tstate); | |
12153 | if (PyErr_Occurred()) SWIG_fail; | |
12154 | } | |
12155 | resultobj = SWIG_PyObj_FromInt((int)result); | |
12156 | return resultobj; | |
12157 | fail: | |
12158 | return NULL; | |
12159 | } | |
12160 | ||
12161 | ||
12162 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12163 | PyObject *resultobj; | |
12164 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12165 | PyObject * obj0 = 0 ; | |
12166 | char *kwnames[] = { | |
12167 | (char *) "self", NULL | |
12168 | }; | |
12169 | ||
12170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
12171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12172 | { | |
12173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12174 | (arg1)->ClearTicks(); | |
12175 | ||
12176 | wxPyEndAllowThreads(__tstate); | |
12177 | if (PyErr_Occurred()) SWIG_fail; | |
12178 | } | |
12179 | Py_INCREF(Py_None); resultobj = Py_None; | |
12180 | return resultobj; | |
12181 | fail: | |
12182 | return NULL; | |
12183 | } | |
12184 | ||
12185 | ||
12186 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12187 | PyObject *resultobj; | |
12188 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12189 | int arg2 ; | |
12190 | PyObject * obj0 = 0 ; | |
12191 | PyObject * obj1 = 0 ; | |
12192 | char *kwnames[] = { | |
12193 | (char *) "self",(char *) "tickPos", NULL | |
12194 | }; | |
12195 | ||
12196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; | |
12197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12198 | { | |
12199 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12200 | if (PyErr_Occurred()) SWIG_fail; | |
12201 | } | |
12202 | { | |
12203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12204 | (arg1)->SetTick(arg2); | |
12205 | ||
12206 | wxPyEndAllowThreads(__tstate); | |
12207 | if (PyErr_Occurred()) SWIG_fail; | |
12208 | } | |
12209 | Py_INCREF(Py_None); resultobj = Py_None; | |
12210 | return resultobj; | |
12211 | fail: | |
12212 | return NULL; | |
12213 | } | |
12214 | ||
12215 | ||
12216 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12217 | PyObject *resultobj; | |
12218 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12219 | PyObject * obj0 = 0 ; | |
12220 | char *kwnames[] = { | |
12221 | (char *) "self", NULL | |
12222 | }; | |
12223 | ||
12224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
12225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12226 | { | |
12227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12228 | (arg1)->ClearSel(); | |
12229 | ||
12230 | wxPyEndAllowThreads(__tstate); | |
12231 | if (PyErr_Occurred()) SWIG_fail; | |
12232 | } | |
12233 | Py_INCREF(Py_None); resultobj = Py_None; | |
12234 | return resultobj; | |
12235 | fail: | |
12236 | return NULL; | |
12237 | } | |
12238 | ||
12239 | ||
12240 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12241 | PyObject *resultobj; | |
12242 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12243 | int result; | |
12244 | PyObject * obj0 = 0 ; | |
12245 | char *kwnames[] = { | |
12246 | (char *) "self", NULL | |
12247 | }; | |
12248 | ||
12249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
12250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12251 | { | |
12252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12253 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
12254 | ||
12255 | wxPyEndAllowThreads(__tstate); | |
12256 | if (PyErr_Occurred()) SWIG_fail; | |
12257 | } | |
12258 | resultobj = SWIG_PyObj_FromInt((int)result); | |
12259 | return resultobj; | |
12260 | fail: | |
12261 | return NULL; | |
12262 | } | |
12263 | ||
12264 | ||
12265 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12266 | PyObject *resultobj; | |
12267 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12268 | int result; | |
12269 | PyObject * obj0 = 0 ; | |
12270 | char *kwnames[] = { | |
12271 | (char *) "self", NULL | |
12272 | }; | |
12273 | ||
12274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
12275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12276 | { | |
12277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12278 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
12279 | ||
12280 | wxPyEndAllowThreads(__tstate); | |
12281 | if (PyErr_Occurred()) SWIG_fail; | |
12282 | } | |
12283 | resultobj = SWIG_PyObj_FromInt((int)result); | |
12284 | return resultobj; | |
12285 | fail: | |
12286 | return NULL; | |
12287 | } | |
12288 | ||
12289 | ||
12290 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12291 | PyObject *resultobj; | |
12292 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12293 | int arg2 ; | |
12294 | int arg3 ; | |
12295 | PyObject * obj0 = 0 ; | |
12296 | PyObject * obj1 = 0 ; | |
12297 | PyObject * obj2 = 0 ; | |
12298 | char *kwnames[] = { | |
12299 | (char *) "self",(char *) "min",(char *) "max", NULL | |
12300 | }; | |
12301 | ||
12302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12304 | { | |
12305 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12306 | if (PyErr_Occurred()) SWIG_fail; | |
12307 | } | |
12308 | { | |
12309 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12310 | if (PyErr_Occurred()) SWIG_fail; | |
12311 | } | |
12312 | { | |
12313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12314 | (arg1)->SetSelection(arg2,arg3); | |
12315 | ||
12316 | wxPyEndAllowThreads(__tstate); | |
12317 | if (PyErr_Occurred()) SWIG_fail; | |
12318 | } | |
12319 | Py_INCREF(Py_None); resultobj = Py_None; | |
12320 | return resultobj; | |
12321 | fail: | |
12322 | return NULL; | |
12323 | } | |
12324 | ||
12325 | ||
12326 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
12327 | PyObject *obj; | |
12328 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12329 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
12330 | Py_INCREF(obj); | |
12331 | return Py_BuildValue((char *)""); | |
12332 | } | |
12333 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { | |
12334 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); | |
12335 | return 1; | |
12336 | } | |
12337 | ||
12338 | ||
12339 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
12340 | PyObject *pyobj; | |
12341 | ||
12342 | { | |
12343 | #if wxUSE_UNICODE | |
12344 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12345 | #else | |
12346 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12347 | #endif | |
12348 | } | |
12349 | return pyobj; | |
12350 | } | |
12351 | ||
12352 | ||
12353 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12354 | PyObject *resultobj; | |
12355 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12356 | int arg2 ; | |
12357 | wxString *arg3 = 0 ; | |
12358 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12359 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12360 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12361 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12362 | long arg6 = (long) 0 ; | |
12363 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12364 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12365 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
12366 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12367 | wxToggleButton *result; | |
12368 | bool temp3 = False ; | |
12369 | wxPoint temp4 ; | |
12370 | wxSize temp5 ; | |
12371 | bool temp8 = False ; | |
12372 | PyObject * obj0 = 0 ; | |
12373 | PyObject * obj1 = 0 ; | |
12374 | PyObject * obj2 = 0 ; | |
12375 | PyObject * obj3 = 0 ; | |
12376 | PyObject * obj4 = 0 ; | |
12377 | PyObject * obj5 = 0 ; | |
12378 | PyObject * obj6 = 0 ; | |
12379 | PyObject * obj7 = 0 ; | |
12380 | char *kwnames[] = { | |
12381 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12382 | }; | |
12383 | ||
12384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
12385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12386 | { | |
12387 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12388 | if (PyErr_Occurred()) SWIG_fail; | |
12389 | } | |
12390 | { | |
12391 | arg3 = wxString_in_helper(obj2); | |
12392 | if (arg3 == NULL) SWIG_fail; | |
12393 | temp3 = True; | |
12394 | } | |
12395 | if (obj3) { | |
12396 | { | |
12397 | arg4 = &temp4; | |
12398 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12399 | } | |
12400 | } | |
12401 | if (obj4) { | |
12402 | { | |
12403 | arg5 = &temp5; | |
12404 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12405 | } | |
12406 | } | |
12407 | if (obj5) { | |
12408 | { | |
12409 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
12410 | if (PyErr_Occurred()) SWIG_fail; | |
12411 | } | |
12412 | } | |
12413 | if (obj6) { | |
12414 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12415 | if (arg7 == NULL) { | |
12416 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12417 | } | |
12418 | } | |
12419 | if (obj7) { | |
12420 | { | |
12421 | arg8 = wxString_in_helper(obj7); | |
12422 | if (arg8 == NULL) SWIG_fail; | |
12423 | temp8 = True; | |
12424 | } | |
12425 | } | |
12426 | { | |
12427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12428 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12429 | ||
12430 | wxPyEndAllowThreads(__tstate); | |
12431 | if (PyErr_Occurred()) SWIG_fail; | |
12432 | } | |
12433 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12434 | { | |
12435 | if (temp3) | |
12436 | delete arg3; | |
12437 | } | |
12438 | { | |
12439 | if (temp8) | |
12440 | delete arg8; | |
12441 | } | |
12442 | return resultobj; | |
12443 | fail: | |
12444 | { | |
12445 | if (temp3) | |
12446 | delete arg3; | |
12447 | } | |
12448 | { | |
12449 | if (temp8) | |
12450 | delete arg8; | |
12451 | } | |
12452 | return NULL; | |
12453 | } | |
12454 | ||
12455 | ||
12456 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12457 | PyObject *resultobj; | |
12458 | wxToggleButton *result; | |
12459 | char *kwnames[] = { | |
12460 | NULL | |
12461 | }; | |
12462 | ||
12463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
12464 | { | |
12465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12466 | result = (wxToggleButton *)new wxToggleButton(); | |
12467 | ||
12468 | wxPyEndAllowThreads(__tstate); | |
12469 | if (PyErr_Occurred()) SWIG_fail; | |
12470 | } | |
12471 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
12472 | return resultobj; | |
12473 | fail: | |
12474 | return NULL; | |
12475 | } | |
12476 | ||
12477 | ||
12478 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
12479 | PyObject *obj; | |
12480 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12481 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
12482 | Py_INCREF(obj); | |
12483 | return Py_BuildValue((char *)""); | |
12484 | } | |
12485 | static int _wrap_NOTEBOOK_NAME_set(PyObject *) { | |
12486 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); | |
12487 | return 1; | |
12488 | } | |
12489 | ||
12490 | ||
12491 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
12492 | PyObject *pyobj; | |
12493 | ||
12494 | { | |
12495 | #if wxUSE_UNICODE | |
12496 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
12497 | #else | |
12498 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
12499 | #endif | |
12500 | } | |
12501 | return pyobj; | |
12502 | } | |
12503 | ||
12504 | ||
12505 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12506 | PyObject *resultobj; | |
12507 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12508 | size_t result; | |
12509 | PyObject * obj0 = 0 ; | |
12510 | char *kwnames[] = { | |
12511 | (char *) "self", NULL | |
12512 | }; | |
12513 | ||
12514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
12515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12516 | { | |
12517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12518 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
12519 | ||
12520 | wxPyEndAllowThreads(__tstate); | |
12521 | if (PyErr_Occurred()) SWIG_fail; | |
12522 | } | |
12523 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); | |
12524 | return resultobj; | |
12525 | fail: | |
12526 | return NULL; | |
12527 | } | |
12528 | ||
12529 | ||
12530 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12531 | PyObject *resultobj; | |
12532 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12533 | size_t arg2 ; | |
12534 | wxWindow *result; | |
12535 | PyObject * obj0 = 0 ; | |
12536 | PyObject * obj1 = 0 ; | |
12537 | char *kwnames[] = { | |
12538 | (char *) "self",(char *) "n", NULL | |
12539 | }; | |
12540 | ||
12541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
12542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12543 | { | |
12544 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
12545 | if (PyErr_Occurred()) SWIG_fail; | |
12546 | } | |
12547 | { | |
12548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12549 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
12550 | ||
12551 | wxPyEndAllowThreads(__tstate); | |
12552 | if (PyErr_Occurred()) SWIG_fail; | |
12553 | } | |
12554 | { | |
12555 | resultobj = wxPyMake_wxObject(result); | |
12556 | } | |
12557 | return resultobj; | |
12558 | fail: | |
12559 | return NULL; | |
12560 | } | |
12561 | ||
12562 | ||
12563 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12564 | PyObject *resultobj; | |
12565 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12566 | int result; | |
12567 | PyObject * obj0 = 0 ; | |
12568 | char *kwnames[] = { | |
12569 | (char *) "self", NULL | |
12570 | }; | |
12571 | ||
12572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
12573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12574 | { | |
12575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12576 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
12577 | ||
12578 | wxPyEndAllowThreads(__tstate); | |
12579 | if (PyErr_Occurred()) SWIG_fail; | |
12580 | } | |
12581 | resultobj = SWIG_PyObj_FromInt((int)result); | |
12582 | return resultobj; | |
12583 | fail: | |
12584 | return NULL; | |
12585 | } | |
12586 | ||
12587 | ||
12588 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12589 | PyObject *resultobj; | |
12590 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12591 | size_t arg2 ; | |
12592 | wxString *arg3 = 0 ; | |
12593 | bool result; | |
12594 | bool temp3 = False ; | |
12595 | PyObject * obj0 = 0 ; | |
12596 | PyObject * obj1 = 0 ; | |
12597 | PyObject * obj2 = 0 ; | |
12598 | char *kwnames[] = { | |
12599 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
12600 | }; | |
12601 | ||
12602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12604 | { | |
12605 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
12606 | if (PyErr_Occurred()) SWIG_fail; | |
12607 | } | |
12608 | { | |
12609 | arg3 = wxString_in_helper(obj2); | |
12610 | if (arg3 == NULL) SWIG_fail; | |
12611 | temp3 = True; | |
12612 | } | |
12613 | { | |
12614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12615 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
12616 | ||
12617 | wxPyEndAllowThreads(__tstate); | |
12618 | if (PyErr_Occurred()) SWIG_fail; | |
12619 | } | |
12620 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
12621 | { | |
12622 | if (temp3) | |
12623 | delete arg3; | |
12624 | } | |
12625 | return resultobj; | |
12626 | fail: | |
12627 | { | |
12628 | if (temp3) | |
12629 | delete arg3; | |
12630 | } | |
12631 | return NULL; | |
12632 | } | |
12633 | ||
12634 | ||
12635 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12636 | PyObject *resultobj; | |
12637 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12638 | size_t arg2 ; | |
12639 | wxString result; | |
12640 | PyObject * obj0 = 0 ; | |
12641 | PyObject * obj1 = 0 ; | |
12642 | char *kwnames[] = { | |
12643 | (char *) "self",(char *) "n", NULL | |
12644 | }; | |
12645 | ||
12646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
12647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12648 | { | |
12649 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
12650 | if (PyErr_Occurred()) SWIG_fail; | |
12651 | } | |
12652 | { | |
12653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12654 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
12655 | ||
12656 | wxPyEndAllowThreads(__tstate); | |
12657 | if (PyErr_Occurred()) SWIG_fail; | |
12658 | } | |
12659 | { | |
12660 | #if wxUSE_UNICODE | |
12661 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12662 | #else | |
12663 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12664 | #endif | |
12665 | } | |
12666 | return resultobj; | |
12667 | fail: | |
12668 | return NULL; | |
12669 | } | |
12670 | ||
12671 | ||
12672 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12673 | PyObject *resultobj; | |
12674 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12675 | wxImageList *arg2 = (wxImageList *) 0 ; | |
12676 | PyObject * obj0 = 0 ; | |
12677 | PyObject * obj1 = 0 ; | |
12678 | char *kwnames[] = { | |
12679 | (char *) "self",(char *) "imageList", NULL | |
12680 | }; | |
12681 | ||
12682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
12683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12684 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12685 | { | |
12686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12687 | (arg1)->SetImageList(arg2); | |
12688 | ||
12689 | wxPyEndAllowThreads(__tstate); | |
12690 | if (PyErr_Occurred()) SWIG_fail; | |
12691 | } | |
12692 | Py_INCREF(Py_None); resultobj = Py_None; | |
12693 | return resultobj; | |
12694 | fail: | |
12695 | return NULL; | |
12696 | } | |
12697 | ||
12698 | ||
12699 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12700 | PyObject *resultobj; | |
12701 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12702 | wxImageList *arg2 = (wxImageList *) 0 ; | |
12703 | PyObject * obj0 = 0 ; | |
12704 | PyObject * obj1 = 0 ; | |
12705 | char *kwnames[] = { | |
12706 | (char *) "self",(char *) "imageList", NULL | |
12707 | }; | |
12708 | ||
12709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
12710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12711 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
12712 | { | |
12713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12714 | (arg1)->AssignImageList(arg2); | |
12715 | ||
12716 | wxPyEndAllowThreads(__tstate); | |
12717 | if (PyErr_Occurred()) SWIG_fail; | |
12718 | } | |
12719 | Py_INCREF(Py_None); resultobj = Py_None; | |
12720 | return resultobj; | |
12721 | fail: | |
12722 | return NULL; | |
12723 | } | |
12724 | ||
12725 | ||
12726 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12727 | PyObject *resultobj; | |
12728 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12729 | wxImageList *result; | |
12730 | PyObject * obj0 = 0 ; | |
12731 | char *kwnames[] = { | |
12732 | (char *) "self", NULL | |
12733 | }; | |
12734 | ||
12735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
12736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12737 | { | |
12738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12739 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
12740 | ||
12741 | wxPyEndAllowThreads(__tstate); | |
12742 | if (PyErr_Occurred()) SWIG_fail; | |
12743 | } | |
12744 | { | |
12745 | resultobj = wxPyMake_wxObject(result); | |
12746 | } | |
12747 | return resultobj; | |
12748 | fail: | |
12749 | return NULL; | |
12750 | } | |
12751 | ||
12752 | ||
12753 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12754 | PyObject *resultobj; | |
12755 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12756 | size_t arg2 ; | |
12757 | int result; | |
12758 | PyObject * obj0 = 0 ; | |
12759 | PyObject * obj1 = 0 ; | |
12760 | char *kwnames[] = { | |
12761 | (char *) "self",(char *) "n", NULL | |
12762 | }; | |
12763 | ||
12764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
12765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12766 | { | |
12767 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
12768 | if (PyErr_Occurred()) SWIG_fail; | |
12769 | } | |
12770 | { | |
12771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12772 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
12773 | ||
12774 | wxPyEndAllowThreads(__tstate); | |
12775 | if (PyErr_Occurred()) SWIG_fail; | |
12776 | } | |
12777 | resultobj = SWIG_PyObj_FromInt((int)result); | |
12778 | return resultobj; | |
12779 | fail: | |
12780 | return NULL; | |
12781 | } | |
12782 | ||
12783 | ||
12784 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12785 | PyObject *resultobj; | |
12786 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12787 | size_t arg2 ; | |
12788 | int arg3 ; | |
12789 | bool result; | |
12790 | PyObject * obj0 = 0 ; | |
12791 | PyObject * obj1 = 0 ; | |
12792 | PyObject * obj2 = 0 ; | |
12793 | char *kwnames[] = { | |
12794 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
12795 | }; | |
12796 | ||
12797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12799 | { | |
12800 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
12801 | if (PyErr_Occurred()) SWIG_fail; | |
12802 | } | |
12803 | { | |
12804 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12805 | if (PyErr_Occurred()) SWIG_fail; | |
12806 | } | |
12807 | { | |
12808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12809 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
12810 | ||
12811 | wxPyEndAllowThreads(__tstate); | |
12812 | if (PyErr_Occurred()) SWIG_fail; | |
12813 | } | |
12814 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
12815 | return resultobj; | |
12816 | fail: | |
12817 | return NULL; | |
12818 | } | |
12819 | ||
12820 | ||
12821 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12822 | PyObject *resultobj; | |
12823 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12824 | wxSize *arg2 = 0 ; | |
12825 | wxSize temp2 ; | |
12826 | PyObject * obj0 = 0 ; | |
12827 | PyObject * obj1 = 0 ; | |
12828 | char *kwnames[] = { | |
12829 | (char *) "self",(char *) "size", NULL | |
12830 | }; | |
12831 | ||
12832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
12833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12834 | { | |
12835 | arg2 = &temp2; | |
12836 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12837 | } | |
12838 | { | |
12839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12840 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
12841 | ||
12842 | wxPyEndAllowThreads(__tstate); | |
12843 | if (PyErr_Occurred()) SWIG_fail; | |
12844 | } | |
12845 | Py_INCREF(Py_None); resultobj = Py_None; | |
12846 | return resultobj; | |
12847 | fail: | |
12848 | return NULL; | |
12849 | } | |
12850 | ||
12851 | ||
12852 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12853 | PyObject *resultobj; | |
12854 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12855 | wxSize *arg2 = 0 ; | |
12856 | wxSize result; | |
12857 | wxSize temp2 ; | |
12858 | PyObject * obj0 = 0 ; | |
12859 | PyObject * obj1 = 0 ; | |
12860 | char *kwnames[] = { | |
12861 | (char *) "self",(char *) "sizePage", NULL | |
12862 | }; | |
12863 | ||
12864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
12865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12866 | { | |
12867 | arg2 = &temp2; | |
12868 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12869 | } | |
12870 | { | |
12871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12872 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
12873 | ||
12874 | wxPyEndAllowThreads(__tstate); | |
12875 | if (PyErr_Occurred()) SWIG_fail; | |
12876 | } | |
12877 | { | |
12878 | wxSize * resultptr; | |
12879 | resultptr = new wxSize((wxSize &) result); | |
12880 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12881 | } | |
12882 | return resultobj; | |
12883 | fail: | |
12884 | return NULL; | |
12885 | } | |
12886 | ||
12887 | ||
12888 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12889 | PyObject *resultobj; | |
12890 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12891 | size_t arg2 ; | |
12892 | bool result; | |
12893 | PyObject * obj0 = 0 ; | |
12894 | PyObject * obj1 = 0 ; | |
12895 | char *kwnames[] = { | |
12896 | (char *) "self",(char *) "n", NULL | |
12897 | }; | |
12898 | ||
12899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
12900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12901 | { | |
12902 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
12903 | if (PyErr_Occurred()) SWIG_fail; | |
12904 | } | |
12905 | { | |
12906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12907 | result = (bool)(arg1)->DeletePage(arg2); | |
12908 | ||
12909 | wxPyEndAllowThreads(__tstate); | |
12910 | if (PyErr_Occurred()) SWIG_fail; | |
12911 | } | |
12912 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
12913 | return resultobj; | |
12914 | fail: | |
12915 | return NULL; | |
12916 | } | |
12917 | ||
12918 | ||
12919 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12920 | PyObject *resultobj; | |
12921 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12922 | size_t arg2 ; | |
12923 | bool result; | |
12924 | PyObject * obj0 = 0 ; | |
12925 | PyObject * obj1 = 0 ; | |
12926 | char *kwnames[] = { | |
12927 | (char *) "self",(char *) "n", NULL | |
12928 | }; | |
12929 | ||
12930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
12931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12932 | { | |
12933 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
12934 | if (PyErr_Occurred()) SWIG_fail; | |
12935 | } | |
12936 | { | |
12937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12938 | result = (bool)(arg1)->RemovePage(arg2); | |
12939 | ||
12940 | wxPyEndAllowThreads(__tstate); | |
12941 | if (PyErr_Occurred()) SWIG_fail; | |
12942 | } | |
12943 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
12944 | return resultobj; | |
12945 | fail: | |
12946 | return NULL; | |
12947 | } | |
12948 | ||
12949 | ||
12950 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12951 | PyObject *resultobj; | |
12952 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12953 | bool result; | |
12954 | PyObject * obj0 = 0 ; | |
12955 | char *kwnames[] = { | |
12956 | (char *) "self", NULL | |
12957 | }; | |
12958 | ||
12959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
12960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12961 | { | |
12962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12963 | result = (bool)(arg1)->DeleteAllPages(); | |
12964 | ||
12965 | wxPyEndAllowThreads(__tstate); | |
12966 | if (PyErr_Occurred()) SWIG_fail; | |
12967 | } | |
12968 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
12969 | return resultobj; | |
12970 | fail: | |
12971 | return NULL; | |
12972 | } | |
12973 | ||
12974 | ||
12975 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12976 | PyObject *resultobj; | |
12977 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12978 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12979 | wxString *arg3 = 0 ; | |
12980 | bool arg4 = (bool) False ; | |
12981 | int arg5 = (int) -1 ; | |
12982 | bool result; | |
12983 | bool temp3 = False ; | |
12984 | PyObject * obj0 = 0 ; | |
12985 | PyObject * obj1 = 0 ; | |
12986 | PyObject * obj2 = 0 ; | |
12987 | PyObject * obj3 = 0 ; | |
12988 | PyObject * obj4 = 0 ; | |
12989 | char *kwnames[] = { | |
12990 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
12991 | }; | |
12992 | ||
12993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12995 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12996 | { | |
12997 | arg3 = wxString_in_helper(obj2); | |
12998 | if (arg3 == NULL) SWIG_fail; | |
12999 | temp3 = True; | |
13000 | } | |
13001 | if (obj3) { | |
13002 | { | |
13003 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
13004 | if (PyErr_Occurred()) SWIG_fail; | |
13005 | } | |
13006 | } | |
13007 | if (obj4) { | |
13008 | { | |
13009 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
13010 | if (PyErr_Occurred()) SWIG_fail; | |
13011 | } | |
13012 | } | |
13013 | { | |
13014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13015 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
13016 | ||
13017 | wxPyEndAllowThreads(__tstate); | |
13018 | if (PyErr_Occurred()) SWIG_fail; | |
13019 | } | |
13020 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
13021 | { | |
13022 | if (temp3) | |
13023 | delete arg3; | |
13024 | } | |
13025 | return resultobj; | |
13026 | fail: | |
13027 | { | |
13028 | if (temp3) | |
13029 | delete arg3; | |
13030 | } | |
13031 | return NULL; | |
13032 | } | |
13033 | ||
13034 | ||
13035 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13036 | PyObject *resultobj; | |
13037 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13038 | size_t arg2 ; | |
13039 | wxWindow *arg3 = (wxWindow *) 0 ; | |
13040 | wxString *arg4 = 0 ; | |
13041 | bool arg5 = (bool) False ; | |
13042 | int arg6 = (int) -1 ; | |
13043 | bool result; | |
13044 | bool temp4 = False ; | |
13045 | PyObject * obj0 = 0 ; | |
13046 | PyObject * obj1 = 0 ; | |
13047 | PyObject * obj2 = 0 ; | |
13048 | PyObject * obj3 = 0 ; | |
13049 | PyObject * obj4 = 0 ; | |
13050 | PyObject * obj5 = 0 ; | |
13051 | char *kwnames[] = { | |
13052 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13053 | }; | |
13054 | ||
13055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
13056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13057 | { | |
13058 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
13059 | if (PyErr_Occurred()) SWIG_fail; | |
13060 | } | |
13061 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13062 | { | |
13063 | arg4 = wxString_in_helper(obj3); | |
13064 | if (arg4 == NULL) SWIG_fail; | |
13065 | temp4 = True; | |
13066 | } | |
13067 | if (obj4) { | |
13068 | { | |
13069 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); | |
13070 | if (PyErr_Occurred()) SWIG_fail; | |
13071 | } | |
13072 | } | |
13073 | if (obj5) { | |
13074 | { | |
13075 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
13076 | if (PyErr_Occurred()) SWIG_fail; | |
13077 | } | |
13078 | } | |
13079 | { | |
13080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13081 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
13082 | ||
13083 | wxPyEndAllowThreads(__tstate); | |
13084 | if (PyErr_Occurred()) SWIG_fail; | |
13085 | } | |
13086 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
13087 | { | |
13088 | if (temp4) | |
13089 | delete arg4; | |
13090 | } | |
13091 | return resultobj; | |
13092 | fail: | |
13093 | { | |
13094 | if (temp4) | |
13095 | delete arg4; | |
13096 | } | |
13097 | return NULL; | |
13098 | } | |
13099 | ||
13100 | ||
13101 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13102 | PyObject *resultobj; | |
13103 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13104 | size_t arg2 ; | |
13105 | int result; | |
13106 | PyObject * obj0 = 0 ; | |
13107 | PyObject * obj1 = 0 ; | |
13108 | char *kwnames[] = { | |
13109 | (char *) "self",(char *) "n", NULL | |
13110 | }; | |
13111 | ||
13112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
13113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13114 | { | |
13115 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
13116 | if (PyErr_Occurred()) SWIG_fail; | |
13117 | } | |
13118 | { | |
13119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13120 | result = (int)(arg1)->SetSelection(arg2); | |
13121 | ||
13122 | wxPyEndAllowThreads(__tstate); | |
13123 | if (PyErr_Occurred()) SWIG_fail; | |
13124 | } | |
13125 | resultobj = SWIG_PyObj_FromInt((int)result); | |
13126 | return resultobj; | |
13127 | fail: | |
13128 | return NULL; | |
13129 | } | |
13130 | ||
13131 | ||
13132 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13133 | PyObject *resultobj; | |
13134 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13135 | bool arg2 = (bool) True ; | |
13136 | PyObject * obj0 = 0 ; | |
13137 | PyObject * obj1 = 0 ; | |
13138 | char *kwnames[] = { | |
13139 | (char *) "self",(char *) "forward", NULL | |
13140 | }; | |
13141 | ||
13142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
13143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13144 | if (obj1) { | |
13145 | { | |
13146 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
13147 | if (PyErr_Occurred()) SWIG_fail; | |
13148 | } | |
13149 | } | |
13150 | { | |
13151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13152 | (arg1)->AdvanceSelection(arg2); | |
13153 | ||
13154 | wxPyEndAllowThreads(__tstate); | |
13155 | if (PyErr_Occurred()) SWIG_fail; | |
13156 | } | |
13157 | Py_INCREF(Py_None); resultobj = Py_None; | |
13158 | return resultobj; | |
13159 | fail: | |
13160 | return NULL; | |
13161 | } | |
13162 | ||
13163 | ||
13164 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
13165 | PyObject *obj; | |
13166 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13167 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
13168 | Py_INCREF(obj); | |
13169 | return Py_BuildValue((char *)""); | |
13170 | } | |
13171 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13172 | PyObject *resultobj; | |
13173 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13174 | int arg2 = (int) 0 ; | |
13175 | int arg3 = (int) -1 ; | |
13176 | int arg4 = (int) -1 ; | |
13177 | wxBookCtrlEvent *result; | |
13178 | PyObject * obj0 = 0 ; | |
13179 | PyObject * obj1 = 0 ; | |
13180 | PyObject * obj2 = 0 ; | |
13181 | PyObject * obj3 = 0 ; | |
13182 | char *kwnames[] = { | |
13183 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13184 | }; | |
13185 | ||
13186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13187 | if (obj0) { | |
13188 | { | |
13189 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13190 | if (PyErr_Occurred()) SWIG_fail; | |
13191 | } | |
13192 | } | |
13193 | if (obj1) { | |
13194 | { | |
13195 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13196 | if (PyErr_Occurred()) SWIG_fail; | |
13197 | } | |
13198 | } | |
13199 | if (obj2) { | |
13200 | { | |
13201 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13202 | if (PyErr_Occurred()) SWIG_fail; | |
13203 | } | |
13204 | } | |
13205 | if (obj3) { | |
13206 | { | |
13207 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
13208 | if (PyErr_Occurred()) SWIG_fail; | |
13209 | } | |
13210 | } | |
13211 | { | |
13212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13213 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
13214 | ||
13215 | wxPyEndAllowThreads(__tstate); | |
13216 | if (PyErr_Occurred()) SWIG_fail; | |
13217 | } | |
13218 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlEvent, 1); | |
13219 | return resultobj; | |
13220 | fail: | |
13221 | return NULL; | |
13222 | } | |
13223 | ||
13224 | ||
13225 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13226 | PyObject *resultobj; | |
13227 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13228 | int result; | |
13229 | PyObject * obj0 = 0 ; | |
13230 | char *kwnames[] = { | |
13231 | (char *) "self", NULL | |
13232 | }; | |
13233 | ||
13234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
13235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13236 | { | |
13237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13238 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
13239 | ||
13240 | wxPyEndAllowThreads(__tstate); | |
13241 | if (PyErr_Occurred()) SWIG_fail; | |
13242 | } | |
13243 | resultobj = SWIG_PyObj_FromInt((int)result); | |
13244 | return resultobj; | |
13245 | fail: | |
13246 | return NULL; | |
13247 | } | |
13248 | ||
13249 | ||
13250 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13251 | PyObject *resultobj; | |
13252 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13253 | int arg2 ; | |
13254 | PyObject * obj0 = 0 ; | |
13255 | PyObject * obj1 = 0 ; | |
13256 | char *kwnames[] = { | |
13257 | (char *) "self",(char *) "nSel", NULL | |
13258 | }; | |
13259 | ||
13260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
13261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13262 | { | |
13263 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13264 | if (PyErr_Occurred()) SWIG_fail; | |
13265 | } | |
13266 | { | |
13267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13268 | (arg1)->SetSelection(arg2); | |
13269 | ||
13270 | wxPyEndAllowThreads(__tstate); | |
13271 | if (PyErr_Occurred()) SWIG_fail; | |
13272 | } | |
13273 | Py_INCREF(Py_None); resultobj = Py_None; | |
13274 | return resultobj; | |
13275 | fail: | |
13276 | return NULL; | |
13277 | } | |
13278 | ||
13279 | ||
13280 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13281 | PyObject *resultobj; | |
13282 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13283 | int result; | |
13284 | PyObject * obj0 = 0 ; | |
13285 | char *kwnames[] = { | |
13286 | (char *) "self", NULL | |
13287 | }; | |
13288 | ||
13289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
13290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13291 | { | |
13292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13293 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
13294 | ||
13295 | wxPyEndAllowThreads(__tstate); | |
13296 | if (PyErr_Occurred()) SWIG_fail; | |
13297 | } | |
13298 | resultobj = SWIG_PyObj_FromInt((int)result); | |
13299 | return resultobj; | |
13300 | fail: | |
13301 | return NULL; | |
13302 | } | |
13303 | ||
13304 | ||
13305 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13306 | PyObject *resultobj; | |
13307 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
13308 | int arg2 ; | |
13309 | PyObject * obj0 = 0 ; | |
13310 | PyObject * obj1 = 0 ; | |
13311 | char *kwnames[] = { | |
13312 | (char *) "self",(char *) "nOldSel", NULL | |
13313 | }; | |
13314 | ||
13315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; | |
13316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13317 | { | |
13318 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13319 | if (PyErr_Occurred()) SWIG_fail; | |
13320 | } | |
13321 | { | |
13322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13323 | (arg1)->SetOldSelection(arg2); | |
13324 | ||
13325 | wxPyEndAllowThreads(__tstate); | |
13326 | if (PyErr_Occurred()) SWIG_fail; | |
13327 | } | |
13328 | Py_INCREF(Py_None); resultobj = Py_None; | |
13329 | return resultobj; | |
13330 | fail: | |
13331 | return NULL; | |
13332 | } | |
13333 | ||
13334 | ||
13335 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
13336 | PyObject *obj; | |
13337 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13338 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
13339 | Py_INCREF(obj); | |
13340 | return Py_BuildValue((char *)""); | |
13341 | } | |
13342 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13343 | PyObject *resultobj; | |
13344 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13345 | int arg2 ; | |
13346 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
13347 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13348 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13349 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13350 | long arg5 = (long) 0 ; | |
13351 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
13352 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13353 | wxNotebook *result; | |
13354 | wxPoint temp3 ; | |
13355 | wxSize temp4 ; | |
13356 | bool temp6 = False ; | |
13357 | PyObject * obj0 = 0 ; | |
13358 | PyObject * obj1 = 0 ; | |
13359 | PyObject * obj2 = 0 ; | |
13360 | PyObject * obj3 = 0 ; | |
13361 | PyObject * obj4 = 0 ; | |
13362 | PyObject * obj5 = 0 ; | |
13363 | char *kwnames[] = { | |
13364 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13365 | }; | |
13366 | ||
13367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
13368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13369 | { | |
13370 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13371 | if (PyErr_Occurred()) SWIG_fail; | |
13372 | } | |
13373 | if (obj2) { | |
13374 | { | |
13375 | arg3 = &temp3; | |
13376 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13377 | } | |
13378 | } | |
13379 | if (obj3) { | |
13380 | { | |
13381 | arg4 = &temp4; | |
13382 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
13383 | } | |
13384 | } | |
13385 | if (obj4) { | |
13386 | { | |
13387 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
13388 | if (PyErr_Occurred()) SWIG_fail; | |
13389 | } | |
13390 | } | |
13391 | if (obj5) { | |
13392 | { | |
13393 | arg6 = wxString_in_helper(obj5); | |
13394 | if (arg6 == NULL) SWIG_fail; | |
13395 | temp6 = True; | |
13396 | } | |
13397 | } | |
13398 | { | |
13399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13400 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
13401 | ||
13402 | wxPyEndAllowThreads(__tstate); | |
13403 | if (PyErr_Occurred()) SWIG_fail; | |
13404 | } | |
13405 | { | |
13406 | resultobj = wxPyMake_wxObject(result); | |
13407 | } | |
13408 | { | |
13409 | if (temp6) | |
13410 | delete arg6; | |
13411 | } | |
13412 | return resultobj; | |
13413 | fail: | |
13414 | { | |
13415 | if (temp6) | |
13416 | delete arg6; | |
13417 | } | |
13418 | return NULL; | |
13419 | } | |
13420 | ||
13421 | ||
13422 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13423 | PyObject *resultobj; | |
13424 | wxNotebook *result; | |
13425 | char *kwnames[] = { | |
13426 | NULL | |
13427 | }; | |
13428 | ||
13429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
13430 | { | |
13431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13432 | result = (wxNotebook *)new wxNotebook(); | |
13433 | ||
13434 | wxPyEndAllowThreads(__tstate); | |
13435 | if (PyErr_Occurred()) SWIG_fail; | |
13436 | } | |
13437 | { | |
13438 | resultobj = wxPyMake_wxObject(result); | |
13439 | } | |
13440 | return resultobj; | |
13441 | fail: | |
13442 | return NULL; | |
13443 | } | |
13444 | ||
13445 | ||
13446 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13447 | PyObject *resultobj; | |
13448 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13449 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13450 | int arg3 ; | |
13451 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13452 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13453 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13454 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13455 | long arg6 = (long) 0 ; | |
13456 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
13457 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13458 | bool result; | |
13459 | wxPoint temp4 ; | |
13460 | wxSize temp5 ; | |
13461 | bool temp7 = False ; | |
13462 | PyObject * obj0 = 0 ; | |
13463 | PyObject * obj1 = 0 ; | |
13464 | PyObject * obj2 = 0 ; | |
13465 | PyObject * obj3 = 0 ; | |
13466 | PyObject * obj4 = 0 ; | |
13467 | PyObject * obj5 = 0 ; | |
13468 | PyObject * obj6 = 0 ; | |
13469 | char *kwnames[] = { | |
13470 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13471 | }; | |
13472 | ||
13473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
13474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13475 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13476 | { | |
13477 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13478 | if (PyErr_Occurred()) SWIG_fail; | |
13479 | } | |
13480 | if (obj3) { | |
13481 | { | |
13482 | arg4 = &temp4; | |
13483 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13484 | } | |
13485 | } | |
13486 | if (obj4) { | |
13487 | { | |
13488 | arg5 = &temp5; | |
13489 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13490 | } | |
13491 | } | |
13492 | if (obj5) { | |
13493 | { | |
13494 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
13495 | if (PyErr_Occurred()) SWIG_fail; | |
13496 | } | |
13497 | } | |
13498 | if (obj6) { | |
13499 | { | |
13500 | arg7 = wxString_in_helper(obj6); | |
13501 | if (arg7 == NULL) SWIG_fail; | |
13502 | temp7 = True; | |
13503 | } | |
13504 | } | |
13505 | { | |
13506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13507 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
13508 | ||
13509 | wxPyEndAllowThreads(__tstate); | |
13510 | if (PyErr_Occurred()) SWIG_fail; | |
13511 | } | |
13512 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
13513 | { | |
13514 | if (temp7) | |
13515 | delete arg7; | |
13516 | } | |
13517 | return resultobj; | |
13518 | fail: | |
13519 | { | |
13520 | if (temp7) | |
13521 | delete arg7; | |
13522 | } | |
13523 | return NULL; | |
13524 | } | |
13525 | ||
13526 | ||
13527 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13528 | PyObject *resultobj; | |
13529 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13530 | int result; | |
13531 | PyObject * obj0 = 0 ; | |
13532 | char *kwnames[] = { | |
13533 | (char *) "self", NULL | |
13534 | }; | |
13535 | ||
13536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
13537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13538 | { | |
13539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13540 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
13541 | ||
13542 | wxPyEndAllowThreads(__tstate); | |
13543 | if (PyErr_Occurred()) SWIG_fail; | |
13544 | } | |
13545 | resultobj = SWIG_PyObj_FromInt((int)result); | |
13546 | return resultobj; | |
13547 | fail: | |
13548 | return NULL; | |
13549 | } | |
13550 | ||
13551 | ||
13552 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13553 | PyObject *resultobj; | |
13554 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13555 | wxSize *arg2 = 0 ; | |
13556 | wxSize temp2 ; | |
13557 | PyObject * obj0 = 0 ; | |
13558 | PyObject * obj1 = 0 ; | |
13559 | char *kwnames[] = { | |
13560 | (char *) "self",(char *) "padding", NULL | |
13561 | }; | |
13562 | ||
13563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
13564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13565 | { | |
13566 | arg2 = &temp2; | |
13567 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13568 | } | |
13569 | { | |
13570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13571 | (arg1)->SetPadding((wxSize const &)*arg2); | |
13572 | ||
13573 | wxPyEndAllowThreads(__tstate); | |
13574 | if (PyErr_Occurred()) SWIG_fail; | |
13575 | } | |
13576 | Py_INCREF(Py_None); resultobj = Py_None; | |
13577 | return resultobj; | |
13578 | fail: | |
13579 | return NULL; | |
13580 | } | |
13581 | ||
13582 | ||
13583 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13584 | PyObject *resultobj; | |
13585 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13586 | wxSize *arg2 = 0 ; | |
13587 | wxSize temp2 ; | |
13588 | PyObject * obj0 = 0 ; | |
13589 | PyObject * obj1 = 0 ; | |
13590 | char *kwnames[] = { | |
13591 | (char *) "self",(char *) "sz", NULL | |
13592 | }; | |
13593 | ||
13594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
13595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13596 | { | |
13597 | arg2 = &temp2; | |
13598 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13599 | } | |
13600 | { | |
13601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13602 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
13603 | ||
13604 | wxPyEndAllowThreads(__tstate); | |
13605 | if (PyErr_Occurred()) SWIG_fail; | |
13606 | } | |
13607 | Py_INCREF(Py_None); resultobj = Py_None; | |
13608 | return resultobj; | |
13609 | fail: | |
13610 | return NULL; | |
13611 | } | |
13612 | ||
13613 | ||
13614 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13615 | PyObject *resultobj; | |
13616 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13617 | wxPoint *arg2 = 0 ; | |
13618 | long *arg3 = (long *) 0 ; | |
13619 | int result; | |
13620 | wxPoint temp2 ; | |
13621 | long temp3 ; | |
13622 | PyObject * obj0 = 0 ; | |
13623 | PyObject * obj1 = 0 ; | |
13624 | char *kwnames[] = { | |
13625 | (char *) "self",(char *) "pt", NULL | |
13626 | }; | |
13627 | ||
13628 | arg3 = &temp3; | |
13629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
13630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13631 | { | |
13632 | arg2 = &temp2; | |
13633 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13634 | } | |
13635 | { | |
13636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13637 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
13638 | ||
13639 | wxPyEndAllowThreads(__tstate); | |
13640 | if (PyErr_Occurred()) SWIG_fail; | |
13641 | } | |
13642 | resultobj = SWIG_PyObj_FromInt((int)result); | |
13643 | { | |
13644 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13645 | resultobj = t_output_helper(resultobj,o); | |
13646 | } | |
13647 | return resultobj; | |
13648 | fail: | |
13649 | return NULL; | |
13650 | } | |
13651 | ||
13652 | ||
13653 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13654 | PyObject *resultobj; | |
13655 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13656 | wxSize *arg2 = 0 ; | |
13657 | wxSize result; | |
13658 | wxSize temp2 ; | |
13659 | PyObject * obj0 = 0 ; | |
13660 | PyObject * obj1 = 0 ; | |
13661 | char *kwnames[] = { | |
13662 | (char *) "self",(char *) "sizePage", NULL | |
13663 | }; | |
13664 | ||
13665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
13666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13667 | { | |
13668 | arg2 = &temp2; | |
13669 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13670 | } | |
13671 | { | |
13672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13673 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13674 | ||
13675 | wxPyEndAllowThreads(__tstate); | |
13676 | if (PyErr_Occurred()) SWIG_fail; | |
13677 | } | |
13678 | { | |
13679 | wxSize * resultptr; | |
13680 | resultptr = new wxSize((wxSize &) result); | |
13681 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13682 | } | |
13683 | return resultobj; | |
13684 | fail: | |
13685 | return NULL; | |
13686 | } | |
13687 | ||
13688 | ||
13689 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
13690 | PyObject *obj; | |
13691 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13692 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
13693 | Py_INCREF(obj); | |
13694 | return Py_BuildValue((char *)""); | |
13695 | } | |
13696 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13697 | PyObject *resultobj; | |
13698 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13699 | int arg2 = (int) 0 ; | |
13700 | int arg3 = (int) -1 ; | |
13701 | int arg4 = (int) -1 ; | |
13702 | wxNotebookEvent *result; | |
13703 | PyObject * obj0 = 0 ; | |
13704 | PyObject * obj1 = 0 ; | |
13705 | PyObject * obj2 = 0 ; | |
13706 | PyObject * obj3 = 0 ; | |
13707 | char *kwnames[] = { | |
13708 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13709 | }; | |
13710 | ||
13711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13712 | if (obj0) { | |
13713 | { | |
13714 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13715 | if (PyErr_Occurred()) SWIG_fail; | |
13716 | } | |
13717 | } | |
13718 | if (obj1) { | |
13719 | { | |
13720 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13721 | if (PyErr_Occurred()) SWIG_fail; | |
13722 | } | |
13723 | } | |
13724 | if (obj2) { | |
13725 | { | |
13726 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13727 | if (PyErr_Occurred()) SWIG_fail; | |
13728 | } | |
13729 | } | |
13730 | if (obj3) { | |
13731 | { | |
13732 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
13733 | if (PyErr_Occurred()) SWIG_fail; | |
13734 | } | |
13735 | } | |
13736 | { | |
13737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13738 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
13739 | ||
13740 | wxPyEndAllowThreads(__tstate); | |
13741 | if (PyErr_Occurred()) SWIG_fail; | |
13742 | } | |
13743 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookEvent, 1); | |
13744 | return resultobj; | |
13745 | fail: | |
13746 | return NULL; | |
13747 | } | |
13748 | ||
13749 | ||
13750 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
13751 | PyObject *obj; | |
13752 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13753 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
13754 | Py_INCREF(obj); | |
13755 | return Py_BuildValue((char *)""); | |
13756 | } | |
13757 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13758 | PyObject *resultobj; | |
13759 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13760 | int arg2 ; | |
13761 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
13762 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13763 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13764 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13765 | long arg5 = (long) 0 ; | |
13766 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
13767 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13768 | wxListbook *result; | |
13769 | wxPoint temp3 ; | |
13770 | wxSize temp4 ; | |
13771 | bool temp6 = False ; | |
13772 | PyObject * obj0 = 0 ; | |
13773 | PyObject * obj1 = 0 ; | |
13774 | PyObject * obj2 = 0 ; | |
13775 | PyObject * obj3 = 0 ; | |
13776 | PyObject * obj4 = 0 ; | |
13777 | PyObject * obj5 = 0 ; | |
13778 | char *kwnames[] = { | |
13779 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13780 | }; | |
13781 | ||
13782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
13783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13784 | { | |
13785 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13786 | if (PyErr_Occurred()) SWIG_fail; | |
13787 | } | |
13788 | if (obj2) { | |
13789 | { | |
13790 | arg3 = &temp3; | |
13791 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13792 | } | |
13793 | } | |
13794 | if (obj3) { | |
13795 | { | |
13796 | arg4 = &temp4; | |
13797 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
13798 | } | |
13799 | } | |
13800 | if (obj4) { | |
13801 | { | |
13802 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
13803 | if (PyErr_Occurred()) SWIG_fail; | |
13804 | } | |
13805 | } | |
13806 | if (obj5) { | |
13807 | { | |
13808 | arg6 = wxString_in_helper(obj5); | |
13809 | if (arg6 == NULL) SWIG_fail; | |
13810 | temp6 = True; | |
13811 | } | |
13812 | } | |
13813 | { | |
13814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13815 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
13816 | ||
13817 | wxPyEndAllowThreads(__tstate); | |
13818 | if (PyErr_Occurred()) SWIG_fail; | |
13819 | } | |
13820 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
13821 | { | |
13822 | if (temp6) | |
13823 | delete arg6; | |
13824 | } | |
13825 | return resultobj; | |
13826 | fail: | |
13827 | { | |
13828 | if (temp6) | |
13829 | delete arg6; | |
13830 | } | |
13831 | return NULL; | |
13832 | } | |
13833 | ||
13834 | ||
13835 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13836 | PyObject *resultobj; | |
13837 | wxListbook *result; | |
13838 | char *kwnames[] = { | |
13839 | NULL | |
13840 | }; | |
13841 | ||
13842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
13843 | { | |
13844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13845 | result = (wxListbook *)new wxListbook(); | |
13846 | ||
13847 | wxPyEndAllowThreads(__tstate); | |
13848 | if (PyErr_Occurred()) SWIG_fail; | |
13849 | } | |
13850 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
13851 | return resultobj; | |
13852 | fail: | |
13853 | return NULL; | |
13854 | } | |
13855 | ||
13856 | ||
13857 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13858 | PyObject *resultobj; | |
13859 | wxListbook *arg1 = (wxListbook *) 0 ; | |
13860 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13861 | int arg3 ; | |
13862 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13863 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13864 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13865 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13866 | long arg6 = (long) 0 ; | |
13867 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
13868 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13869 | bool result; | |
13870 | wxPoint temp4 ; | |
13871 | wxSize temp5 ; | |
13872 | bool temp7 = False ; | |
13873 | PyObject * obj0 = 0 ; | |
13874 | PyObject * obj1 = 0 ; | |
13875 | PyObject * obj2 = 0 ; | |
13876 | PyObject * obj3 = 0 ; | |
13877 | PyObject * obj4 = 0 ; | |
13878 | PyObject * obj5 = 0 ; | |
13879 | PyObject * obj6 = 0 ; | |
13880 | char *kwnames[] = { | |
13881 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13882 | }; | |
13883 | ||
13884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
13885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13886 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13887 | { | |
13888 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13889 | if (PyErr_Occurred()) SWIG_fail; | |
13890 | } | |
13891 | if (obj3) { | |
13892 | { | |
13893 | arg4 = &temp4; | |
13894 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13895 | } | |
13896 | } | |
13897 | if (obj4) { | |
13898 | { | |
13899 | arg5 = &temp5; | |
13900 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13901 | } | |
13902 | } | |
13903 | if (obj5) { | |
13904 | { | |
13905 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
13906 | if (PyErr_Occurred()) SWIG_fail; | |
13907 | } | |
13908 | } | |
13909 | if (obj6) { | |
13910 | { | |
13911 | arg7 = wxString_in_helper(obj6); | |
13912 | if (arg7 == NULL) SWIG_fail; | |
13913 | temp7 = True; | |
13914 | } | |
13915 | } | |
13916 | { | |
13917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13918 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
13919 | ||
13920 | wxPyEndAllowThreads(__tstate); | |
13921 | if (PyErr_Occurred()) SWIG_fail; | |
13922 | } | |
13923 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
13924 | { | |
13925 | if (temp7) | |
13926 | delete arg7; | |
13927 | } | |
13928 | return resultobj; | |
13929 | fail: | |
13930 | { | |
13931 | if (temp7) | |
13932 | delete arg7; | |
13933 | } | |
13934 | return NULL; | |
13935 | } | |
13936 | ||
13937 | ||
13938 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13939 | PyObject *resultobj; | |
13940 | wxListbook *arg1 = (wxListbook *) 0 ; | |
13941 | bool result; | |
13942 | PyObject * obj0 = 0 ; | |
13943 | char *kwnames[] = { | |
13944 | (char *) "self", NULL | |
13945 | }; | |
13946 | ||
13947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
13948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13949 | { | |
13950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13951 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
13952 | ||
13953 | wxPyEndAllowThreads(__tstate); | |
13954 | if (PyErr_Occurred()) SWIG_fail; | |
13955 | } | |
13956 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
13957 | return resultobj; | |
13958 | fail: | |
13959 | return NULL; | |
13960 | } | |
13961 | ||
13962 | ||
13963 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
13964 | PyObject *obj; | |
13965 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13966 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
13967 | Py_INCREF(obj); | |
13968 | return Py_BuildValue((char *)""); | |
13969 | } | |
13970 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13971 | PyObject *resultobj; | |
13972 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13973 | int arg2 = (int) 0 ; | |
13974 | int arg3 = (int) -1 ; | |
13975 | int arg4 = (int) -1 ; | |
13976 | wxListbookEvent *result; | |
13977 | PyObject * obj0 = 0 ; | |
13978 | PyObject * obj1 = 0 ; | |
13979 | PyObject * obj2 = 0 ; | |
13980 | PyObject * obj3 = 0 ; | |
13981 | char *kwnames[] = { | |
13982 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13983 | }; | |
13984 | ||
13985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13986 | if (obj0) { | |
13987 | { | |
13988 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13989 | if (PyErr_Occurred()) SWIG_fail; | |
13990 | } | |
13991 | } | |
13992 | if (obj1) { | |
13993 | { | |
13994 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13995 | if (PyErr_Occurred()) SWIG_fail; | |
13996 | } | |
13997 | } | |
13998 | if (obj2) { | |
13999 | { | |
14000 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14001 | if (PyErr_Occurred()) SWIG_fail; | |
14002 | } | |
14003 | } | |
14004 | if (obj3) { | |
14005 | { | |
14006 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
14007 | if (PyErr_Occurred()) SWIG_fail; | |
14008 | } | |
14009 | } | |
14010 | { | |
14011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14012 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
14013 | ||
14014 | wxPyEndAllowThreads(__tstate); | |
14015 | if (PyErr_Occurred()) SWIG_fail; | |
14016 | } | |
14017 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbookEvent, 1); | |
14018 | return resultobj; | |
14019 | fail: | |
14020 | return NULL; | |
14021 | } | |
14022 | ||
14023 | ||
14024 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
14025 | PyObject *obj; | |
14026 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14027 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
14028 | Py_INCREF(obj); | |
14029 | return Py_BuildValue((char *)""); | |
14030 | } | |
14031 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14032 | PyObject *resultobj; | |
14033 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14034 | wxBookCtrlSizer *result; | |
14035 | PyObject * obj0 = 0 ; | |
14036 | char *kwnames[] = { | |
14037 | (char *) "nb", NULL | |
14038 | }; | |
14039 | ||
14040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
14041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14042 | { | |
14043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14044 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
14045 | ||
14046 | wxPyEndAllowThreads(__tstate); | |
14047 | if (PyErr_Occurred()) SWIG_fail; | |
14048 | } | |
14049 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlSizer, 1); | |
14050 | return resultobj; | |
14051 | fail: | |
14052 | return NULL; | |
14053 | } | |
14054 | ||
14055 | ||
14056 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14057 | PyObject *resultobj; | |
14058 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14059 | PyObject * obj0 = 0 ; | |
14060 | char *kwnames[] = { | |
14061 | (char *) "self", NULL | |
14062 | }; | |
14063 | ||
14064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14066 | { | |
14067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14068 | (arg1)->RecalcSizes(); | |
14069 | ||
14070 | wxPyEndAllowThreads(__tstate); | |
14071 | if (PyErr_Occurred()) SWIG_fail; | |
14072 | } | |
14073 | Py_INCREF(Py_None); resultobj = Py_None; | |
14074 | return resultobj; | |
14075 | fail: | |
14076 | return NULL; | |
14077 | } | |
14078 | ||
14079 | ||
14080 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14081 | PyObject *resultobj; | |
14082 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14083 | wxSize result; | |
14084 | PyObject * obj0 = 0 ; | |
14085 | char *kwnames[] = { | |
14086 | (char *) "self", NULL | |
14087 | }; | |
14088 | ||
14089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14091 | { | |
14092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14093 | result = (arg1)->CalcMin(); | |
14094 | ||
14095 | wxPyEndAllowThreads(__tstate); | |
14096 | if (PyErr_Occurred()) SWIG_fail; | |
14097 | } | |
14098 | { | |
14099 | wxSize * resultptr; | |
14100 | resultptr = new wxSize((wxSize &) result); | |
14101 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14102 | } | |
14103 | return resultobj; | |
14104 | fail: | |
14105 | return NULL; | |
14106 | } | |
14107 | ||
14108 | ||
14109 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14110 | PyObject *resultobj; | |
14111 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14112 | wxBookCtrl *result; | |
14113 | PyObject * obj0 = 0 ; | |
14114 | char *kwnames[] = { | |
14115 | (char *) "self", NULL | |
14116 | }; | |
14117 | ||
14118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
14119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14120 | { | |
14121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14122 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
14123 | ||
14124 | wxPyEndAllowThreads(__tstate); | |
14125 | if (PyErr_Occurred()) SWIG_fail; | |
14126 | } | |
14127 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrl, 0); | |
14128 | return resultobj; | |
14129 | fail: | |
14130 | return NULL; | |
14131 | } | |
14132 | ||
14133 | ||
14134 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
14135 | PyObject *obj; | |
14136 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14137 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
14138 | Py_INCREF(obj); | |
14139 | return Py_BuildValue((char *)""); | |
14140 | } | |
14141 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14142 | PyObject *resultobj; | |
14143 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14144 | wxNotebookSizer *result; | |
14145 | PyObject * obj0 = 0 ; | |
14146 | char *kwnames[] = { | |
14147 | (char *) "nb", NULL | |
14148 | }; | |
14149 | ||
14150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
14151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14152 | { | |
14153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14154 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
14155 | ||
14156 | wxPyEndAllowThreads(__tstate); | |
14157 | if (PyErr_Occurred()) SWIG_fail; | |
14158 | } | |
14159 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookSizer, 1); | |
14160 | return resultobj; | |
14161 | fail: | |
14162 | return NULL; | |
14163 | } | |
14164 | ||
14165 | ||
14166 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14167 | PyObject *resultobj; | |
14168 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14169 | PyObject * obj0 = 0 ; | |
14170 | char *kwnames[] = { | |
14171 | (char *) "self", NULL | |
14172 | }; | |
14173 | ||
14174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
14175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14176 | { | |
14177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14178 | (arg1)->RecalcSizes(); | |
14179 | ||
14180 | wxPyEndAllowThreads(__tstate); | |
14181 | if (PyErr_Occurred()) SWIG_fail; | |
14182 | } | |
14183 | Py_INCREF(Py_None); resultobj = Py_None; | |
14184 | return resultobj; | |
14185 | fail: | |
14186 | return NULL; | |
14187 | } | |
14188 | ||
14189 | ||
14190 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14191 | PyObject *resultobj; | |
14192 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14193 | wxSize result; | |
14194 | PyObject * obj0 = 0 ; | |
14195 | char *kwnames[] = { | |
14196 | (char *) "self", NULL | |
14197 | }; | |
14198 | ||
14199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
14200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14201 | { | |
14202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14203 | result = (arg1)->CalcMin(); | |
14204 | ||
14205 | wxPyEndAllowThreads(__tstate); | |
14206 | if (PyErr_Occurred()) SWIG_fail; | |
14207 | } | |
14208 | { | |
14209 | wxSize * resultptr; | |
14210 | resultptr = new wxSize((wxSize &) result); | |
14211 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14212 | } | |
14213 | return resultobj; | |
14214 | fail: | |
14215 | return NULL; | |
14216 | } | |
14217 | ||
14218 | ||
14219 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14220 | PyObject *resultobj; | |
14221 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14222 | wxNotebook *result; | |
14223 | PyObject * obj0 = 0 ; | |
14224 | char *kwnames[] = { | |
14225 | (char *) "self", NULL | |
14226 | }; | |
14227 | ||
14228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
14229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14230 | { | |
14231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14232 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
14233 | ||
14234 | wxPyEndAllowThreads(__tstate); | |
14235 | if (PyErr_Occurred()) SWIG_fail; | |
14236 | } | |
14237 | { | |
14238 | resultobj = wxPyMake_wxObject(result); | |
14239 | } | |
14240 | return resultobj; | |
14241 | fail: | |
14242 | return NULL; | |
14243 | } | |
14244 | ||
14245 | ||
14246 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
14247 | PyObject *obj; | |
14248 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14249 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
14250 | Py_INCREF(obj); | |
14251 | return Py_BuildValue((char *)""); | |
14252 | } | |
14253 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14254 | PyObject *resultobj; | |
14255 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14256 | int result; | |
14257 | PyObject * obj0 = 0 ; | |
14258 | char *kwnames[] = { | |
14259 | (char *) "self", NULL | |
14260 | }; | |
14261 | ||
14262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
14263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14264 | { | |
14265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14266 | result = (int)(arg1)->GetId(); | |
14267 | ||
14268 | wxPyEndAllowThreads(__tstate); | |
14269 | if (PyErr_Occurred()) SWIG_fail; | |
14270 | } | |
14271 | resultobj = SWIG_PyObj_FromInt((int)result); | |
14272 | return resultobj; | |
14273 | fail: | |
14274 | return NULL; | |
14275 | } | |
14276 | ||
14277 | ||
14278 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14279 | PyObject *resultobj; | |
14280 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14281 | wxControl *result; | |
14282 | PyObject * obj0 = 0 ; | |
14283 | char *kwnames[] = { | |
14284 | (char *) "self", NULL | |
14285 | }; | |
14286 | ||
14287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
14288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14289 | { | |
14290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14291 | result = (wxControl *)(arg1)->GetControl(); | |
14292 | ||
14293 | wxPyEndAllowThreads(__tstate); | |
14294 | if (PyErr_Occurred()) SWIG_fail; | |
14295 | } | |
14296 | { | |
14297 | resultobj = wxPyMake_wxObject(result); | |
14298 | } | |
14299 | return resultobj; | |
14300 | fail: | |
14301 | return NULL; | |
14302 | } | |
14303 | ||
14304 | ||
14305 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14306 | PyObject *resultobj; | |
14307 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14308 | wxToolBarBase *result; | |
14309 | PyObject * obj0 = 0 ; | |
14310 | char *kwnames[] = { | |
14311 | (char *) "self", NULL | |
14312 | }; | |
14313 | ||
14314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
14315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14316 | { | |
14317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14318 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
14319 | ||
14320 | wxPyEndAllowThreads(__tstate); | |
14321 | if (PyErr_Occurred()) SWIG_fail; | |
14322 | } | |
14323 | { | |
14324 | resultobj = wxPyMake_wxObject(result); | |
14325 | } | |
14326 | return resultobj; | |
14327 | fail: | |
14328 | return NULL; | |
14329 | } | |
14330 | ||
14331 | ||
14332 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14333 | PyObject *resultobj; | |
14334 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14335 | int result; | |
14336 | PyObject * obj0 = 0 ; | |
14337 | char *kwnames[] = { | |
14338 | (char *) "self", NULL | |
14339 | }; | |
14340 | ||
14341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
14342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14343 | { | |
14344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14345 | result = (int)(arg1)->IsButton(); | |
14346 | ||
14347 | wxPyEndAllowThreads(__tstate); | |
14348 | if (PyErr_Occurred()) SWIG_fail; | |
14349 | } | |
14350 | resultobj = SWIG_PyObj_FromInt((int)result); | |
14351 | return resultobj; | |
14352 | fail: | |
14353 | return NULL; | |
14354 | } | |
14355 | ||
14356 | ||
14357 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14358 | PyObject *resultobj; | |
14359 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14360 | int result; | |
14361 | PyObject * obj0 = 0 ; | |
14362 | char *kwnames[] = { | |
14363 | (char *) "self", NULL | |
14364 | }; | |
14365 | ||
14366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
14367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14368 | { | |
14369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14370 | result = (int)(arg1)->IsControl(); | |
14371 | ||
14372 | wxPyEndAllowThreads(__tstate); | |
14373 | if (PyErr_Occurred()) SWIG_fail; | |
14374 | } | |
14375 | resultobj = SWIG_PyObj_FromInt((int)result); | |
14376 | return resultobj; | |
14377 | fail: | |
14378 | return NULL; | |
14379 | } | |
14380 | ||
14381 | ||
14382 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14383 | PyObject *resultobj; | |
14384 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14385 | int result; | |
14386 | PyObject * obj0 = 0 ; | |
14387 | char *kwnames[] = { | |
14388 | (char *) "self", NULL | |
14389 | }; | |
14390 | ||
14391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
14392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14393 | { | |
14394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14395 | result = (int)(arg1)->IsSeparator(); | |
14396 | ||
14397 | wxPyEndAllowThreads(__tstate); | |
14398 | if (PyErr_Occurred()) SWIG_fail; | |
14399 | } | |
14400 | resultobj = SWIG_PyObj_FromInt((int)result); | |
14401 | return resultobj; | |
14402 | fail: | |
14403 | return NULL; | |
14404 | } | |
14405 | ||
14406 | ||
14407 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14408 | PyObject *resultobj; | |
14409 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14410 | int result; | |
14411 | PyObject * obj0 = 0 ; | |
14412 | char *kwnames[] = { | |
14413 | (char *) "self", NULL | |
14414 | }; | |
14415 | ||
14416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
14417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14418 | { | |
14419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14420 | result = (int)(arg1)->GetStyle(); | |
14421 | ||
14422 | wxPyEndAllowThreads(__tstate); | |
14423 | if (PyErr_Occurred()) SWIG_fail; | |
14424 | } | |
14425 | resultobj = SWIG_PyObj_FromInt((int)result); | |
14426 | return resultobj; | |
14427 | fail: | |
14428 | return NULL; | |
14429 | } | |
14430 | ||
14431 | ||
14432 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14433 | PyObject *resultobj; | |
14434 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14435 | int result; | |
14436 | PyObject * obj0 = 0 ; | |
14437 | char *kwnames[] = { | |
14438 | (char *) "self", NULL | |
14439 | }; | |
14440 | ||
14441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
14442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14443 | { | |
14444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14445 | result = (int)(arg1)->GetKind(); | |
14446 | ||
14447 | wxPyEndAllowThreads(__tstate); | |
14448 | if (PyErr_Occurred()) SWIG_fail; | |
14449 | } | |
14450 | resultobj = SWIG_PyObj_FromInt((int)result); | |
14451 | return resultobj; | |
14452 | fail: | |
14453 | return NULL; | |
14454 | } | |
14455 | ||
14456 | ||
14457 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14458 | PyObject *resultobj; | |
14459 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14460 | bool result; | |
14461 | PyObject * obj0 = 0 ; | |
14462 | char *kwnames[] = { | |
14463 | (char *) "self", NULL | |
14464 | }; | |
14465 | ||
14466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
14467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14468 | { | |
14469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14470 | result = (bool)(arg1)->IsEnabled(); | |
14471 | ||
14472 | wxPyEndAllowThreads(__tstate); | |
14473 | if (PyErr_Occurred()) SWIG_fail; | |
14474 | } | |
14475 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14476 | return resultobj; | |
14477 | fail: | |
14478 | return NULL; | |
14479 | } | |
14480 | ||
14481 | ||
14482 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14483 | PyObject *resultobj; | |
14484 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14485 | bool result; | |
14486 | PyObject * obj0 = 0 ; | |
14487 | char *kwnames[] = { | |
14488 | (char *) "self", NULL | |
14489 | }; | |
14490 | ||
14491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
14492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14493 | { | |
14494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14495 | result = (bool)(arg1)->IsToggled(); | |
14496 | ||
14497 | wxPyEndAllowThreads(__tstate); | |
14498 | if (PyErr_Occurred()) SWIG_fail; | |
14499 | } | |
14500 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14501 | return resultobj; | |
14502 | fail: | |
14503 | return NULL; | |
14504 | } | |
14505 | ||
14506 | ||
14507 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14508 | PyObject *resultobj; | |
14509 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14510 | bool result; | |
14511 | PyObject * obj0 = 0 ; | |
14512 | char *kwnames[] = { | |
14513 | (char *) "self", NULL | |
14514 | }; | |
14515 | ||
14516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
14517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14518 | { | |
14519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14520 | result = (bool)(arg1)->CanBeToggled(); | |
14521 | ||
14522 | wxPyEndAllowThreads(__tstate); | |
14523 | if (PyErr_Occurred()) SWIG_fail; | |
14524 | } | |
14525 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14526 | return resultobj; | |
14527 | fail: | |
14528 | return NULL; | |
14529 | } | |
14530 | ||
14531 | ||
14532 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14533 | PyObject *resultobj; | |
14534 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14535 | wxBitmap *result; | |
14536 | PyObject * obj0 = 0 ; | |
14537 | char *kwnames[] = { | |
14538 | (char *) "self", NULL | |
14539 | }; | |
14540 | ||
14541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
14542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14543 | { | |
14544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14545 | { | |
14546 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
14547 | result = (wxBitmap *) &_result_ref; | |
14548 | } | |
14549 | ||
14550 | wxPyEndAllowThreads(__tstate); | |
14551 | if (PyErr_Occurred()) SWIG_fail; | |
14552 | } | |
14553 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
14554 | return resultobj; | |
14555 | fail: | |
14556 | return NULL; | |
14557 | } | |
14558 | ||
14559 | ||
14560 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14561 | PyObject *resultobj; | |
14562 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14563 | wxBitmap *result; | |
14564 | PyObject * obj0 = 0 ; | |
14565 | char *kwnames[] = { | |
14566 | (char *) "self", NULL | |
14567 | }; | |
14568 | ||
14569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
14570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14571 | { | |
14572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14573 | { | |
14574 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
14575 | result = (wxBitmap *) &_result_ref; | |
14576 | } | |
14577 | ||
14578 | wxPyEndAllowThreads(__tstate); | |
14579 | if (PyErr_Occurred()) SWIG_fail; | |
14580 | } | |
14581 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
14582 | return resultobj; | |
14583 | fail: | |
14584 | return NULL; | |
14585 | } | |
14586 | ||
14587 | ||
14588 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14589 | PyObject *resultobj; | |
14590 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14591 | wxBitmap result; | |
14592 | PyObject * obj0 = 0 ; | |
14593 | char *kwnames[] = { | |
14594 | (char *) "self", NULL | |
14595 | }; | |
14596 | ||
14597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
14598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14599 | { | |
14600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14601 | result = (arg1)->GetBitmap(); | |
14602 | ||
14603 | wxPyEndAllowThreads(__tstate); | |
14604 | if (PyErr_Occurred()) SWIG_fail; | |
14605 | } | |
14606 | { | |
14607 | wxBitmap * resultptr; | |
14608 | resultptr = new wxBitmap((wxBitmap &) result); | |
14609 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
14610 | } | |
14611 | return resultobj; | |
14612 | fail: | |
14613 | return NULL; | |
14614 | } | |
14615 | ||
14616 | ||
14617 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14618 | PyObject *resultobj; | |
14619 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14620 | wxString result; | |
14621 | PyObject * obj0 = 0 ; | |
14622 | char *kwnames[] = { | |
14623 | (char *) "self", NULL | |
14624 | }; | |
14625 | ||
14626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
14627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14628 | { | |
14629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14630 | result = (arg1)->GetLabel(); | |
14631 | ||
14632 | wxPyEndAllowThreads(__tstate); | |
14633 | if (PyErr_Occurred()) SWIG_fail; | |
14634 | } | |
14635 | { | |
14636 | #if wxUSE_UNICODE | |
14637 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14638 | #else | |
14639 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14640 | #endif | |
14641 | } | |
14642 | return resultobj; | |
14643 | fail: | |
14644 | return NULL; | |
14645 | } | |
14646 | ||
14647 | ||
14648 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14649 | PyObject *resultobj; | |
14650 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14651 | wxString result; | |
14652 | PyObject * obj0 = 0 ; | |
14653 | char *kwnames[] = { | |
14654 | (char *) "self", NULL | |
14655 | }; | |
14656 | ||
14657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
14658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14659 | { | |
14660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14661 | result = (arg1)->GetShortHelp(); | |
14662 | ||
14663 | wxPyEndAllowThreads(__tstate); | |
14664 | if (PyErr_Occurred()) SWIG_fail; | |
14665 | } | |
14666 | { | |
14667 | #if wxUSE_UNICODE | |
14668 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14669 | #else | |
14670 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14671 | #endif | |
14672 | } | |
14673 | return resultobj; | |
14674 | fail: | |
14675 | return NULL; | |
14676 | } | |
14677 | ||
14678 | ||
14679 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14680 | PyObject *resultobj; | |
14681 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14682 | wxString result; | |
14683 | PyObject * obj0 = 0 ; | |
14684 | char *kwnames[] = { | |
14685 | (char *) "self", NULL | |
14686 | }; | |
14687 | ||
14688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
14689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14690 | { | |
14691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14692 | result = (arg1)->GetLongHelp(); | |
14693 | ||
14694 | wxPyEndAllowThreads(__tstate); | |
14695 | if (PyErr_Occurred()) SWIG_fail; | |
14696 | } | |
14697 | { | |
14698 | #if wxUSE_UNICODE | |
14699 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14700 | #else | |
14701 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14702 | #endif | |
14703 | } | |
14704 | return resultobj; | |
14705 | fail: | |
14706 | return NULL; | |
14707 | } | |
14708 | ||
14709 | ||
14710 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14711 | PyObject *resultobj; | |
14712 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14713 | bool arg2 ; | |
14714 | bool result; | |
14715 | PyObject * obj0 = 0 ; | |
14716 | PyObject * obj1 = 0 ; | |
14717 | char *kwnames[] = { | |
14718 | (char *) "self",(char *) "enable", NULL | |
14719 | }; | |
14720 | ||
14721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
14722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14723 | { | |
14724 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
14725 | if (PyErr_Occurred()) SWIG_fail; | |
14726 | } | |
14727 | { | |
14728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14729 | result = (bool)(arg1)->Enable(arg2); | |
14730 | ||
14731 | wxPyEndAllowThreads(__tstate); | |
14732 | if (PyErr_Occurred()) SWIG_fail; | |
14733 | } | |
14734 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14735 | return resultobj; | |
14736 | fail: | |
14737 | return NULL; | |
14738 | } | |
14739 | ||
14740 | ||
14741 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14742 | PyObject *resultobj; | |
14743 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14744 | PyObject * obj0 = 0 ; | |
14745 | char *kwnames[] = { | |
14746 | (char *) "self", NULL | |
14747 | }; | |
14748 | ||
14749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
14750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14751 | { | |
14752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14753 | (arg1)->Toggle(); | |
14754 | ||
14755 | wxPyEndAllowThreads(__tstate); | |
14756 | if (PyErr_Occurred()) SWIG_fail; | |
14757 | } | |
14758 | Py_INCREF(Py_None); resultobj = Py_None; | |
14759 | return resultobj; | |
14760 | fail: | |
14761 | return NULL; | |
14762 | } | |
14763 | ||
14764 | ||
14765 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14766 | PyObject *resultobj; | |
14767 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14768 | bool arg2 ; | |
14769 | bool result; | |
14770 | PyObject * obj0 = 0 ; | |
14771 | PyObject * obj1 = 0 ; | |
14772 | char *kwnames[] = { | |
14773 | (char *) "self",(char *) "toggle", NULL | |
14774 | }; | |
14775 | ||
14776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
14777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14778 | { | |
14779 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
14780 | if (PyErr_Occurred()) SWIG_fail; | |
14781 | } | |
14782 | { | |
14783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14784 | result = (bool)(arg1)->SetToggle(arg2); | |
14785 | ||
14786 | wxPyEndAllowThreads(__tstate); | |
14787 | if (PyErr_Occurred()) SWIG_fail; | |
14788 | } | |
14789 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14790 | return resultobj; | |
14791 | fail: | |
14792 | return NULL; | |
14793 | } | |
14794 | ||
14795 | ||
14796 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14797 | PyObject *resultobj; | |
14798 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14799 | wxString *arg2 = 0 ; | |
14800 | bool result; | |
14801 | bool temp2 = False ; | |
14802 | PyObject * obj0 = 0 ; | |
14803 | PyObject * obj1 = 0 ; | |
14804 | char *kwnames[] = { | |
14805 | (char *) "self",(char *) "help", NULL | |
14806 | }; | |
14807 | ||
14808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
14809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14810 | { | |
14811 | arg2 = wxString_in_helper(obj1); | |
14812 | if (arg2 == NULL) SWIG_fail; | |
14813 | temp2 = True; | |
14814 | } | |
14815 | { | |
14816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14817 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
14818 | ||
14819 | wxPyEndAllowThreads(__tstate); | |
14820 | if (PyErr_Occurred()) SWIG_fail; | |
14821 | } | |
14822 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14823 | { | |
14824 | if (temp2) | |
14825 | delete arg2; | |
14826 | } | |
14827 | return resultobj; | |
14828 | fail: | |
14829 | { | |
14830 | if (temp2) | |
14831 | delete arg2; | |
14832 | } | |
14833 | return NULL; | |
14834 | } | |
14835 | ||
14836 | ||
14837 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14838 | PyObject *resultobj; | |
14839 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14840 | wxString *arg2 = 0 ; | |
14841 | bool result; | |
14842 | bool temp2 = False ; | |
14843 | PyObject * obj0 = 0 ; | |
14844 | PyObject * obj1 = 0 ; | |
14845 | char *kwnames[] = { | |
14846 | (char *) "self",(char *) "help", NULL | |
14847 | }; | |
14848 | ||
14849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
14850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14851 | { | |
14852 | arg2 = wxString_in_helper(obj1); | |
14853 | if (arg2 == NULL) SWIG_fail; | |
14854 | temp2 = True; | |
14855 | } | |
14856 | { | |
14857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14858 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
14859 | ||
14860 | wxPyEndAllowThreads(__tstate); | |
14861 | if (PyErr_Occurred()) SWIG_fail; | |
14862 | } | |
14863 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
14864 | { | |
14865 | if (temp2) | |
14866 | delete arg2; | |
14867 | } | |
14868 | return resultobj; | |
14869 | fail: | |
14870 | { | |
14871 | if (temp2) | |
14872 | delete arg2; | |
14873 | } | |
14874 | return NULL; | |
14875 | } | |
14876 | ||
14877 | ||
14878 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14879 | PyObject *resultobj; | |
14880 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14881 | wxBitmap *arg2 = 0 ; | |
14882 | PyObject * obj0 = 0 ; | |
14883 | PyObject * obj1 = 0 ; | |
14884 | char *kwnames[] = { | |
14885 | (char *) "self",(char *) "bmp", NULL | |
14886 | }; | |
14887 | ||
14888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
14889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14890 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14891 | if (arg2 == NULL) { | |
14892 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14893 | } | |
14894 | { | |
14895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14896 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
14897 | ||
14898 | wxPyEndAllowThreads(__tstate); | |
14899 | if (PyErr_Occurred()) SWIG_fail; | |
14900 | } | |
14901 | Py_INCREF(Py_None); resultobj = Py_None; | |
14902 | return resultobj; | |
14903 | fail: | |
14904 | return NULL; | |
14905 | } | |
14906 | ||
14907 | ||
14908 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14909 | PyObject *resultobj; | |
14910 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14911 | wxBitmap *arg2 = 0 ; | |
14912 | PyObject * obj0 = 0 ; | |
14913 | PyObject * obj1 = 0 ; | |
14914 | char *kwnames[] = { | |
14915 | (char *) "self",(char *) "bmp", NULL | |
14916 | }; | |
14917 | ||
14918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
14919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14920 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14921 | if (arg2 == NULL) { | |
14922 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14923 | } | |
14924 | { | |
14925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14926 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
14927 | ||
14928 | wxPyEndAllowThreads(__tstate); | |
14929 | if (PyErr_Occurred()) SWIG_fail; | |
14930 | } | |
14931 | Py_INCREF(Py_None); resultobj = Py_None; | |
14932 | return resultobj; | |
14933 | fail: | |
14934 | return NULL; | |
14935 | } | |
14936 | ||
14937 | ||
14938 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14939 | PyObject *resultobj; | |
14940 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14941 | wxString *arg2 = 0 ; | |
14942 | bool temp2 = False ; | |
14943 | PyObject * obj0 = 0 ; | |
14944 | PyObject * obj1 = 0 ; | |
14945 | char *kwnames[] = { | |
14946 | (char *) "self",(char *) "label", NULL | |
14947 | }; | |
14948 | ||
14949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
14950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14951 | { | |
14952 | arg2 = wxString_in_helper(obj1); | |
14953 | if (arg2 == NULL) SWIG_fail; | |
14954 | temp2 = True; | |
14955 | } | |
14956 | { | |
14957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14958 | (arg1)->SetLabel((wxString const &)*arg2); | |
14959 | ||
14960 | wxPyEndAllowThreads(__tstate); | |
14961 | if (PyErr_Occurred()) SWIG_fail; | |
14962 | } | |
14963 | Py_INCREF(Py_None); resultobj = Py_None; | |
14964 | { | |
14965 | if (temp2) | |
14966 | delete arg2; | |
14967 | } | |
14968 | return resultobj; | |
14969 | fail: | |
14970 | { | |
14971 | if (temp2) | |
14972 | delete arg2; | |
14973 | } | |
14974 | return NULL; | |
14975 | } | |
14976 | ||
14977 | ||
14978 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14979 | PyObject *resultobj; | |
14980 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14981 | PyObject * obj0 = 0 ; | |
14982 | char *kwnames[] = { | |
14983 | (char *) "self", NULL | |
14984 | }; | |
14985 | ||
14986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
14987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14988 | { | |
14989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14990 | (arg1)->Detach(); | |
14991 | ||
14992 | wxPyEndAllowThreads(__tstate); | |
14993 | if (PyErr_Occurred()) SWIG_fail; | |
14994 | } | |
14995 | Py_INCREF(Py_None); resultobj = Py_None; | |
14996 | return resultobj; | |
14997 | fail: | |
14998 | return NULL; | |
14999 | } | |
15000 | ||
15001 | ||
15002 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15003 | PyObject *resultobj; | |
15004 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15005 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
15006 | PyObject * obj0 = 0 ; | |
15007 | PyObject * obj1 = 0 ; | |
15008 | char *kwnames[] = { | |
15009 | (char *) "self",(char *) "tbar", NULL | |
15010 | }; | |
15011 | ||
15012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15014 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15015 | { | |
15016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15017 | (arg1)->Attach(arg2); | |
15018 | ||
15019 | wxPyEndAllowThreads(__tstate); | |
15020 | if (PyErr_Occurred()) SWIG_fail; | |
15021 | } | |
15022 | Py_INCREF(Py_None); resultobj = Py_None; | |
15023 | return resultobj; | |
15024 | fail: | |
15025 | return NULL; | |
15026 | } | |
15027 | ||
15028 | ||
15029 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15030 | PyObject *resultobj; | |
15031 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15032 | PyObject *result; | |
15033 | PyObject * obj0 = 0 ; | |
15034 | char *kwnames[] = { | |
15035 | (char *) "self", NULL | |
15036 | }; | |
15037 | ||
15038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15040 | { | |
15041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15042 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
15043 | ||
15044 | wxPyEndAllowThreads(__tstate); | |
15045 | if (PyErr_Occurred()) SWIG_fail; | |
15046 | } | |
15047 | resultobj = result; | |
15048 | return resultobj; | |
15049 | fail: | |
15050 | return NULL; | |
15051 | } | |
15052 | ||
15053 | ||
15054 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15055 | PyObject *resultobj; | |
15056 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15057 | PyObject *arg2 = (PyObject *) 0 ; | |
15058 | PyObject * obj0 = 0 ; | |
15059 | PyObject * obj1 = 0 ; | |
15060 | char *kwnames[] = { | |
15061 | (char *) "self",(char *) "clientData", NULL | |
15062 | }; | |
15063 | ||
15064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15066 | arg2 = obj1; | |
15067 | { | |
15068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15069 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
15070 | ||
15071 | wxPyEndAllowThreads(__tstate); | |
15072 | if (PyErr_Occurred()) SWIG_fail; | |
15073 | } | |
15074 | Py_INCREF(Py_None); resultobj = Py_None; | |
15075 | return resultobj; | |
15076 | fail: | |
15077 | return NULL; | |
15078 | } | |
15079 | ||
15080 | ||
15081 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
15082 | PyObject *obj; | |
15083 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15084 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
15085 | Py_INCREF(obj); | |
15086 | return Py_BuildValue((char *)""); | |
15087 | } | |
15088 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15089 | PyObject *resultobj; | |
15090 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15091 | int arg2 ; | |
15092 | wxString *arg3 = 0 ; | |
15093 | wxBitmap *arg4 = 0 ; | |
15094 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
15095 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
15096 | int arg6 = (int) wxITEM_NORMAL ; | |
15097 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15098 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15099 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15100 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15101 | PyObject *arg9 = (PyObject *) NULL ; | |
15102 | wxToolBarToolBase *result; | |
15103 | bool temp3 = False ; | |
15104 | bool temp7 = False ; | |
15105 | bool temp8 = False ; | |
15106 | PyObject * obj0 = 0 ; | |
15107 | PyObject * obj1 = 0 ; | |
15108 | PyObject * obj2 = 0 ; | |
15109 | PyObject * obj3 = 0 ; | |
15110 | PyObject * obj4 = 0 ; | |
15111 | PyObject * obj5 = 0 ; | |
15112 | PyObject * obj6 = 0 ; | |
15113 | PyObject * obj7 = 0 ; | |
15114 | PyObject * obj8 = 0 ; | |
15115 | char *kwnames[] = { | |
15116 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15117 | }; | |
15118 | ||
15119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
15120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15121 | { | |
15122 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15123 | if (PyErr_Occurred()) SWIG_fail; | |
15124 | } | |
15125 | { | |
15126 | arg3 = wxString_in_helper(obj2); | |
15127 | if (arg3 == NULL) SWIG_fail; | |
15128 | temp3 = True; | |
15129 | } | |
15130 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15131 | if (arg4 == NULL) { | |
15132 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15133 | } | |
15134 | if (obj4) { | |
15135 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15136 | if (arg5 == NULL) { | |
15137 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15138 | } | |
15139 | } | |
15140 | if (obj5) { | |
15141 | { | |
15142 | arg6 = (wxItemKind) SWIG_PyObj_AsInt(obj5); | |
15143 | if (PyErr_Occurred()) SWIG_fail; | |
15144 | } | |
15145 | } | |
15146 | if (obj6) { | |
15147 | { | |
15148 | arg7 = wxString_in_helper(obj6); | |
15149 | if (arg7 == NULL) SWIG_fail; | |
15150 | temp7 = True; | |
15151 | } | |
15152 | } | |
15153 | if (obj7) { | |
15154 | { | |
15155 | arg8 = wxString_in_helper(obj7); | |
15156 | if (arg8 == NULL) SWIG_fail; | |
15157 | temp8 = True; | |
15158 | } | |
15159 | } | |
15160 | if (obj8) { | |
15161 | arg9 = obj8; | |
15162 | } | |
15163 | { | |
15164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15165 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
15166 | ||
15167 | wxPyEndAllowThreads(__tstate); | |
15168 | if (PyErr_Occurred()) SWIG_fail; | |
15169 | } | |
15170 | { | |
15171 | resultobj = wxPyMake_wxObject(result); | |
15172 | } | |
15173 | { | |
15174 | if (temp3) | |
15175 | delete arg3; | |
15176 | } | |
15177 | { | |
15178 | if (temp7) | |
15179 | delete arg7; | |
15180 | } | |
15181 | { | |
15182 | if (temp8) | |
15183 | delete arg8; | |
15184 | } | |
15185 | return resultobj; | |
15186 | fail: | |
15187 | { | |
15188 | if (temp3) | |
15189 | delete arg3; | |
15190 | } | |
15191 | { | |
15192 | if (temp7) | |
15193 | delete arg7; | |
15194 | } | |
15195 | { | |
15196 | if (temp8) | |
15197 | delete arg8; | |
15198 | } | |
15199 | return NULL; | |
15200 | } | |
15201 | ||
15202 | ||
15203 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15204 | PyObject *resultobj; | |
15205 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15206 | size_t arg2 ; | |
15207 | int arg3 ; | |
15208 | wxString *arg4 = 0 ; | |
15209 | wxBitmap *arg5 = 0 ; | |
15210 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
15211 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
15212 | int arg7 = (int) wxITEM_NORMAL ; | |
15213 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15214 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15215 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
15216 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
15217 | PyObject *arg10 = (PyObject *) NULL ; | |
15218 | wxToolBarToolBase *result; | |
15219 | bool temp4 = False ; | |
15220 | bool temp8 = False ; | |
15221 | bool temp9 = False ; | |
15222 | PyObject * obj0 = 0 ; | |
15223 | PyObject * obj1 = 0 ; | |
15224 | PyObject * obj2 = 0 ; | |
15225 | PyObject * obj3 = 0 ; | |
15226 | PyObject * obj4 = 0 ; | |
15227 | PyObject * obj5 = 0 ; | |
15228 | PyObject * obj6 = 0 ; | |
15229 | PyObject * obj7 = 0 ; | |
15230 | PyObject * obj8 = 0 ; | |
15231 | PyObject * obj9 = 0 ; | |
15232 | char *kwnames[] = { | |
15233 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15234 | }; | |
15235 | ||
15236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
15237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15238 | { | |
15239 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
15240 | if (PyErr_Occurred()) SWIG_fail; | |
15241 | } | |
15242 | { | |
15243 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15244 | if (PyErr_Occurred()) SWIG_fail; | |
15245 | } | |
15246 | { | |
15247 | arg4 = wxString_in_helper(obj3); | |
15248 | if (arg4 == NULL) SWIG_fail; | |
15249 | temp4 = True; | |
15250 | } | |
15251 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15252 | if (arg5 == NULL) { | |
15253 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15254 | } | |
15255 | if (obj5) { | |
15256 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15257 | if (arg6 == NULL) { | |
15258 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15259 | } | |
15260 | } | |
15261 | if (obj6) { | |
15262 | { | |
15263 | arg7 = (wxItemKind) SWIG_PyObj_AsInt(obj6); | |
15264 | if (PyErr_Occurred()) SWIG_fail; | |
15265 | } | |
15266 | } | |
15267 | if (obj7) { | |
15268 | { | |
15269 | arg8 = wxString_in_helper(obj7); | |
15270 | if (arg8 == NULL) SWIG_fail; | |
15271 | temp8 = True; | |
15272 | } | |
15273 | } | |
15274 | if (obj8) { | |
15275 | { | |
15276 | arg9 = wxString_in_helper(obj8); | |
15277 | if (arg9 == NULL) SWIG_fail; | |
15278 | temp9 = True; | |
15279 | } | |
15280 | } | |
15281 | if (obj9) { | |
15282 | arg10 = obj9; | |
15283 | } | |
15284 | { | |
15285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15286 | 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); | |
15287 | ||
15288 | wxPyEndAllowThreads(__tstate); | |
15289 | if (PyErr_Occurred()) SWIG_fail; | |
15290 | } | |
15291 | { | |
15292 | resultobj = wxPyMake_wxObject(result); | |
15293 | } | |
15294 | { | |
15295 | if (temp4) | |
15296 | delete arg4; | |
15297 | } | |
15298 | { | |
15299 | if (temp8) | |
15300 | delete arg8; | |
15301 | } | |
15302 | { | |
15303 | if (temp9) | |
15304 | delete arg9; | |
15305 | } | |
15306 | return resultobj; | |
15307 | fail: | |
15308 | { | |
15309 | if (temp4) | |
15310 | delete arg4; | |
15311 | } | |
15312 | { | |
15313 | if (temp8) | |
15314 | delete arg8; | |
15315 | } | |
15316 | { | |
15317 | if (temp9) | |
15318 | delete arg9; | |
15319 | } | |
15320 | return NULL; | |
15321 | } | |
15322 | ||
15323 | ||
15324 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15325 | PyObject *resultobj; | |
15326 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15327 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
15328 | wxToolBarToolBase *result; | |
15329 | PyObject * obj0 = 0 ; | |
15330 | PyObject * obj1 = 0 ; | |
15331 | char *kwnames[] = { | |
15332 | (char *) "self",(char *) "tool", NULL | |
15333 | }; | |
15334 | ||
15335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
15336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15337 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15338 | { | |
15339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15340 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
15341 | ||
15342 | wxPyEndAllowThreads(__tstate); | |
15343 | if (PyErr_Occurred()) SWIG_fail; | |
15344 | } | |
15345 | { | |
15346 | resultobj = wxPyMake_wxObject(result); | |
15347 | } | |
15348 | return resultobj; | |
15349 | fail: | |
15350 | return NULL; | |
15351 | } | |
15352 | ||
15353 | ||
15354 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15355 | PyObject *resultobj; | |
15356 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15357 | size_t arg2 ; | |
15358 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
15359 | wxToolBarToolBase *result; | |
15360 | PyObject * obj0 = 0 ; | |
15361 | PyObject * obj1 = 0 ; | |
15362 | PyObject * obj2 = 0 ; | |
15363 | char *kwnames[] = { | |
15364 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
15365 | }; | |
15366 | ||
15367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15369 | { | |
15370 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
15371 | if (PyErr_Occurred()) SWIG_fail; | |
15372 | } | |
15373 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15374 | { | |
15375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15376 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
15377 | ||
15378 | wxPyEndAllowThreads(__tstate); | |
15379 | if (PyErr_Occurred()) SWIG_fail; | |
15380 | } | |
15381 | { | |
15382 | resultobj = wxPyMake_wxObject(result); | |
15383 | } | |
15384 | return resultobj; | |
15385 | fail: | |
15386 | return NULL; | |
15387 | } | |
15388 | ||
15389 | ||
15390 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15391 | PyObject *resultobj; | |
15392 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15393 | wxControl *arg2 = (wxControl *) 0 ; | |
15394 | wxToolBarToolBase *result; | |
15395 | PyObject * obj0 = 0 ; | |
15396 | PyObject * obj1 = 0 ; | |
15397 | char *kwnames[] = { | |
15398 | (char *) "self",(char *) "control", NULL | |
15399 | }; | |
15400 | ||
15401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
15402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15403 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15404 | { | |
15405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15406 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
15407 | ||
15408 | wxPyEndAllowThreads(__tstate); | |
15409 | if (PyErr_Occurred()) SWIG_fail; | |
15410 | } | |
15411 | { | |
15412 | resultobj = wxPyMake_wxObject(result); | |
15413 | } | |
15414 | return resultobj; | |
15415 | fail: | |
15416 | return NULL; | |
15417 | } | |
15418 | ||
15419 | ||
15420 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15421 | PyObject *resultobj; | |
15422 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15423 | size_t arg2 ; | |
15424 | wxControl *arg3 = (wxControl *) 0 ; | |
15425 | wxToolBarToolBase *result; | |
15426 | PyObject * obj0 = 0 ; | |
15427 | PyObject * obj1 = 0 ; | |
15428 | PyObject * obj2 = 0 ; | |
15429 | char *kwnames[] = { | |
15430 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
15431 | }; | |
15432 | ||
15433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15435 | { | |
15436 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
15437 | if (PyErr_Occurred()) SWIG_fail; | |
15438 | } | |
15439 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15440 | { | |
15441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15442 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
15443 | ||
15444 | wxPyEndAllowThreads(__tstate); | |
15445 | if (PyErr_Occurred()) SWIG_fail; | |
15446 | } | |
15447 | { | |
15448 | resultobj = wxPyMake_wxObject(result); | |
15449 | } | |
15450 | return resultobj; | |
15451 | fail: | |
15452 | return NULL; | |
15453 | } | |
15454 | ||
15455 | ||
15456 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15457 | PyObject *resultobj; | |
15458 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15459 | int arg2 ; | |
15460 | wxControl *result; | |
15461 | PyObject * obj0 = 0 ; | |
15462 | PyObject * obj1 = 0 ; | |
15463 | char *kwnames[] = { | |
15464 | (char *) "self",(char *) "id", NULL | |
15465 | }; | |
15466 | ||
15467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; | |
15468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15469 | { | |
15470 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15471 | if (PyErr_Occurred()) SWIG_fail; | |
15472 | } | |
15473 | { | |
15474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15475 | result = (wxControl *)(arg1)->FindControl(arg2); | |
15476 | ||
15477 | wxPyEndAllowThreads(__tstate); | |
15478 | if (PyErr_Occurred()) SWIG_fail; | |
15479 | } | |
15480 | { | |
15481 | resultobj = wxPyMake_wxObject(result); | |
15482 | } | |
15483 | return resultobj; | |
15484 | fail: | |
15485 | return NULL; | |
15486 | } | |
15487 | ||
15488 | ||
15489 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15490 | PyObject *resultobj; | |
15491 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15492 | wxToolBarToolBase *result; | |
15493 | PyObject * obj0 = 0 ; | |
15494 | char *kwnames[] = { | |
15495 | (char *) "self", NULL | |
15496 | }; | |
15497 | ||
15498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
15499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15500 | { | |
15501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15502 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
15503 | ||
15504 | wxPyEndAllowThreads(__tstate); | |
15505 | if (PyErr_Occurred()) SWIG_fail; | |
15506 | } | |
15507 | { | |
15508 | resultobj = wxPyMake_wxObject(result); | |
15509 | } | |
15510 | return resultobj; | |
15511 | fail: | |
15512 | return NULL; | |
15513 | } | |
15514 | ||
15515 | ||
15516 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15517 | PyObject *resultobj; | |
15518 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15519 | size_t arg2 ; | |
15520 | wxToolBarToolBase *result; | |
15521 | PyObject * obj0 = 0 ; | |
15522 | PyObject * obj1 = 0 ; | |
15523 | char *kwnames[] = { | |
15524 | (char *) "self",(char *) "pos", NULL | |
15525 | }; | |
15526 | ||
15527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15529 | { | |
15530 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
15531 | if (PyErr_Occurred()) SWIG_fail; | |
15532 | } | |
15533 | { | |
15534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15535 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
15536 | ||
15537 | wxPyEndAllowThreads(__tstate); | |
15538 | if (PyErr_Occurred()) SWIG_fail; | |
15539 | } | |
15540 | { | |
15541 | resultobj = wxPyMake_wxObject(result); | |
15542 | } | |
15543 | return resultobj; | |
15544 | fail: | |
15545 | return NULL; | |
15546 | } | |
15547 | ||
15548 | ||
15549 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15550 | PyObject *resultobj; | |
15551 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15552 | int arg2 ; | |
15553 | wxToolBarToolBase *result; | |
15554 | PyObject * obj0 = 0 ; | |
15555 | PyObject * obj1 = 0 ; | |
15556 | char *kwnames[] = { | |
15557 | (char *) "self",(char *) "id", NULL | |
15558 | }; | |
15559 | ||
15560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; | |
15561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15562 | { | |
15563 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15564 | if (PyErr_Occurred()) SWIG_fail; | |
15565 | } | |
15566 | { | |
15567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15568 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
15569 | ||
15570 | wxPyEndAllowThreads(__tstate); | |
15571 | if (PyErr_Occurred()) SWIG_fail; | |
15572 | } | |
15573 | { | |
15574 | resultobj = wxPyMake_wxObject(result); | |
15575 | } | |
15576 | return resultobj; | |
15577 | fail: | |
15578 | return NULL; | |
15579 | } | |
15580 | ||
15581 | ||
15582 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15583 | PyObject *resultobj; | |
15584 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15585 | size_t arg2 ; | |
15586 | bool result; | |
15587 | PyObject * obj0 = 0 ; | |
15588 | PyObject * obj1 = 0 ; | |
15589 | char *kwnames[] = { | |
15590 | (char *) "self",(char *) "pos", NULL | |
15591 | }; | |
15592 | ||
15593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
15594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15595 | { | |
15596 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); | |
15597 | if (PyErr_Occurred()) SWIG_fail; | |
15598 | } | |
15599 | { | |
15600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15601 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
15602 | ||
15603 | wxPyEndAllowThreads(__tstate); | |
15604 | if (PyErr_Occurred()) SWIG_fail; | |
15605 | } | |
15606 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
15607 | return resultobj; | |
15608 | fail: | |
15609 | return NULL; | |
15610 | } | |
15611 | ||
15612 | ||
15613 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15614 | PyObject *resultobj; | |
15615 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15616 | int arg2 ; | |
15617 | bool result; | |
15618 | PyObject * obj0 = 0 ; | |
15619 | PyObject * obj1 = 0 ; | |
15620 | char *kwnames[] = { | |
15621 | (char *) "self",(char *) "id", NULL | |
15622 | }; | |
15623 | ||
15624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; | |
15625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15626 | { | |
15627 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15628 | if (PyErr_Occurred()) SWIG_fail; | |
15629 | } | |
15630 | { | |
15631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15632 | result = (bool)(arg1)->DeleteTool(arg2); | |
15633 | ||
15634 | wxPyEndAllowThreads(__tstate); | |
15635 | if (PyErr_Occurred()) SWIG_fail; | |
15636 | } | |
15637 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
15638 | return resultobj; | |
15639 | fail: | |
15640 | return NULL; | |
15641 | } | |
15642 | ||
15643 | ||
15644 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15645 | PyObject *resultobj; | |
15646 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15647 | PyObject * obj0 = 0 ; | |
15648 | char *kwnames[] = { | |
15649 | (char *) "self", NULL | |
15650 | }; | |
15651 | ||
15652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
15653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15654 | { | |
15655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15656 | (arg1)->ClearTools(); | |
15657 | ||
15658 | wxPyEndAllowThreads(__tstate); | |
15659 | if (PyErr_Occurred()) SWIG_fail; | |
15660 | } | |
15661 | Py_INCREF(Py_None); resultobj = Py_None; | |
15662 | return resultobj; | |
15663 | fail: | |
15664 | return NULL; | |
15665 | } | |
15666 | ||
15667 | ||
15668 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15669 | PyObject *resultobj; | |
15670 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15671 | bool result; | |
15672 | PyObject * obj0 = 0 ; | |
15673 | char *kwnames[] = { | |
15674 | (char *) "self", NULL | |
15675 | }; | |
15676 | ||
15677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
15678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15679 | { | |
15680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15681 | result = (bool)(arg1)->Realize(); | |
15682 | ||
15683 | wxPyEndAllowThreads(__tstate); | |
15684 | if (PyErr_Occurred()) SWIG_fail; | |
15685 | } | |
15686 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
15687 | return resultobj; | |
15688 | fail: | |
15689 | return NULL; | |
15690 | } | |
15691 | ||
15692 | ||
15693 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15694 | PyObject *resultobj; | |
15695 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15696 | int arg2 ; | |
15697 | bool arg3 ; | |
15698 | PyObject * obj0 = 0 ; | |
15699 | PyObject * obj1 = 0 ; | |
15700 | PyObject * obj2 = 0 ; | |
15701 | char *kwnames[] = { | |
15702 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
15703 | }; | |
15704 | ||
15705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15707 | { | |
15708 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15709 | if (PyErr_Occurred()) SWIG_fail; | |
15710 | } | |
15711 | { | |
15712 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
15713 | if (PyErr_Occurred()) SWIG_fail; | |
15714 | } | |
15715 | { | |
15716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15717 | (arg1)->EnableTool(arg2,arg3); | |
15718 | ||
15719 | wxPyEndAllowThreads(__tstate); | |
15720 | if (PyErr_Occurred()) SWIG_fail; | |
15721 | } | |
15722 | Py_INCREF(Py_None); resultobj = Py_None; | |
15723 | return resultobj; | |
15724 | fail: | |
15725 | return NULL; | |
15726 | } | |
15727 | ||
15728 | ||
15729 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15730 | PyObject *resultobj; | |
15731 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15732 | int arg2 ; | |
15733 | bool arg3 ; | |
15734 | PyObject * obj0 = 0 ; | |
15735 | PyObject * obj1 = 0 ; | |
15736 | PyObject * obj2 = 0 ; | |
15737 | char *kwnames[] = { | |
15738 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
15739 | }; | |
15740 | ||
15741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15743 | { | |
15744 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15745 | if (PyErr_Occurred()) SWIG_fail; | |
15746 | } | |
15747 | { | |
15748 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
15749 | if (PyErr_Occurred()) SWIG_fail; | |
15750 | } | |
15751 | { | |
15752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15753 | (arg1)->ToggleTool(arg2,arg3); | |
15754 | ||
15755 | wxPyEndAllowThreads(__tstate); | |
15756 | if (PyErr_Occurred()) SWIG_fail; | |
15757 | } | |
15758 | Py_INCREF(Py_None); resultobj = Py_None; | |
15759 | return resultobj; | |
15760 | fail: | |
15761 | return NULL; | |
15762 | } | |
15763 | ||
15764 | ||
15765 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15766 | PyObject *resultobj; | |
15767 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15768 | int arg2 ; | |
15769 | bool arg3 ; | |
15770 | PyObject * obj0 = 0 ; | |
15771 | PyObject * obj1 = 0 ; | |
15772 | PyObject * obj2 = 0 ; | |
15773 | char *kwnames[] = { | |
15774 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
15775 | }; | |
15776 | ||
15777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15779 | { | |
15780 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15781 | if (PyErr_Occurred()) SWIG_fail; | |
15782 | } | |
15783 | { | |
15784 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
15785 | if (PyErr_Occurred()) SWIG_fail; | |
15786 | } | |
15787 | { | |
15788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15789 | (arg1)->SetToggle(arg2,arg3); | |
15790 | ||
15791 | wxPyEndAllowThreads(__tstate); | |
15792 | if (PyErr_Occurred()) SWIG_fail; | |
15793 | } | |
15794 | Py_INCREF(Py_None); resultobj = Py_None; | |
15795 | return resultobj; | |
15796 | fail: | |
15797 | return NULL; | |
15798 | } | |
15799 | ||
15800 | ||
15801 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15802 | PyObject *resultobj; | |
15803 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15804 | int arg2 ; | |
15805 | PyObject *result; | |
15806 | PyObject * obj0 = 0 ; | |
15807 | PyObject * obj1 = 0 ; | |
15808 | char *kwnames[] = { | |
15809 | (char *) "self",(char *) "id", NULL | |
15810 | }; | |
15811 | ||
15812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; | |
15813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15814 | { | |
15815 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15816 | if (PyErr_Occurred()) SWIG_fail; | |
15817 | } | |
15818 | { | |
15819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15820 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
15821 | ||
15822 | wxPyEndAllowThreads(__tstate); | |
15823 | if (PyErr_Occurred()) SWIG_fail; | |
15824 | } | |
15825 | resultobj = result; | |
15826 | return resultobj; | |
15827 | fail: | |
15828 | return NULL; | |
15829 | } | |
15830 | ||
15831 | ||
15832 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15833 | PyObject *resultobj; | |
15834 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15835 | int arg2 ; | |
15836 | PyObject *arg3 = (PyObject *) 0 ; | |
15837 | PyObject * obj0 = 0 ; | |
15838 | PyObject * obj1 = 0 ; | |
15839 | PyObject * obj2 = 0 ; | |
15840 | char *kwnames[] = { | |
15841 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
15842 | }; | |
15843 | ||
15844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15846 | { | |
15847 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15848 | if (PyErr_Occurred()) SWIG_fail; | |
15849 | } | |
15850 | arg3 = obj2; | |
15851 | { | |
15852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15853 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
15854 | ||
15855 | wxPyEndAllowThreads(__tstate); | |
15856 | if (PyErr_Occurred()) SWIG_fail; | |
15857 | } | |
15858 | Py_INCREF(Py_None); resultobj = Py_None; | |
15859 | return resultobj; | |
15860 | fail: | |
15861 | return NULL; | |
15862 | } | |
15863 | ||
15864 | ||
15865 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15866 | PyObject *resultobj; | |
15867 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15868 | int arg2 ; | |
15869 | int result; | |
15870 | PyObject * obj0 = 0 ; | |
15871 | PyObject * obj1 = 0 ; | |
15872 | char *kwnames[] = { | |
15873 | (char *) "self",(char *) "id", NULL | |
15874 | }; | |
15875 | ||
15876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; | |
15877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15878 | { | |
15879 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15880 | if (PyErr_Occurred()) SWIG_fail; | |
15881 | } | |
15882 | { | |
15883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15884 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
15885 | ||
15886 | wxPyEndAllowThreads(__tstate); | |
15887 | if (PyErr_Occurred()) SWIG_fail; | |
15888 | } | |
15889 | resultobj = SWIG_PyObj_FromInt((int)result); | |
15890 | return resultobj; | |
15891 | fail: | |
15892 | return NULL; | |
15893 | } | |
15894 | ||
15895 | ||
15896 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15897 | PyObject *resultobj; | |
15898 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15899 | int arg2 ; | |
15900 | bool result; | |
15901 | PyObject * obj0 = 0 ; | |
15902 | PyObject * obj1 = 0 ; | |
15903 | char *kwnames[] = { | |
15904 | (char *) "self",(char *) "id", NULL | |
15905 | }; | |
15906 | ||
15907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; | |
15908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15909 | { | |
15910 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15911 | if (PyErr_Occurred()) SWIG_fail; | |
15912 | } | |
15913 | { | |
15914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15915 | result = (bool)(arg1)->GetToolState(arg2); | |
15916 | ||
15917 | wxPyEndAllowThreads(__tstate); | |
15918 | if (PyErr_Occurred()) SWIG_fail; | |
15919 | } | |
15920 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
15921 | return resultobj; | |
15922 | fail: | |
15923 | return NULL; | |
15924 | } | |
15925 | ||
15926 | ||
15927 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15928 | PyObject *resultobj; | |
15929 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15930 | int arg2 ; | |
15931 | bool result; | |
15932 | PyObject * obj0 = 0 ; | |
15933 | PyObject * obj1 = 0 ; | |
15934 | char *kwnames[] = { | |
15935 | (char *) "self",(char *) "id", NULL | |
15936 | }; | |
15937 | ||
15938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; | |
15939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15940 | { | |
15941 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15942 | if (PyErr_Occurred()) SWIG_fail; | |
15943 | } | |
15944 | { | |
15945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15946 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
15947 | ||
15948 | wxPyEndAllowThreads(__tstate); | |
15949 | if (PyErr_Occurred()) SWIG_fail; | |
15950 | } | |
15951 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
15952 | return resultobj; | |
15953 | fail: | |
15954 | return NULL; | |
15955 | } | |
15956 | ||
15957 | ||
15958 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15959 | PyObject *resultobj; | |
15960 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15961 | int arg2 ; | |
15962 | wxString *arg3 = 0 ; | |
15963 | bool temp3 = False ; | |
15964 | PyObject * obj0 = 0 ; | |
15965 | PyObject * obj1 = 0 ; | |
15966 | PyObject * obj2 = 0 ; | |
15967 | char *kwnames[] = { | |
15968 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
15969 | }; | |
15970 | ||
15971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15973 | { | |
15974 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15975 | if (PyErr_Occurred()) SWIG_fail; | |
15976 | } | |
15977 | { | |
15978 | arg3 = wxString_in_helper(obj2); | |
15979 | if (arg3 == NULL) SWIG_fail; | |
15980 | temp3 = True; | |
15981 | } | |
15982 | { | |
15983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15984 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
15985 | ||
15986 | wxPyEndAllowThreads(__tstate); | |
15987 | if (PyErr_Occurred()) SWIG_fail; | |
15988 | } | |
15989 | Py_INCREF(Py_None); resultobj = Py_None; | |
15990 | { | |
15991 | if (temp3) | |
15992 | delete arg3; | |
15993 | } | |
15994 | return resultobj; | |
15995 | fail: | |
15996 | { | |
15997 | if (temp3) | |
15998 | delete arg3; | |
15999 | } | |
16000 | return NULL; | |
16001 | } | |
16002 | ||
16003 | ||
16004 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16005 | PyObject *resultobj; | |
16006 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16007 | int arg2 ; | |
16008 | wxString result; | |
16009 | PyObject * obj0 = 0 ; | |
16010 | PyObject * obj1 = 0 ; | |
16011 | char *kwnames[] = { | |
16012 | (char *) "self",(char *) "id", NULL | |
16013 | }; | |
16014 | ||
16015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
16016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16017 | { | |
16018 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16019 | if (PyErr_Occurred()) SWIG_fail; | |
16020 | } | |
16021 | { | |
16022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16023 | result = (arg1)->GetToolShortHelp(arg2); | |
16024 | ||
16025 | wxPyEndAllowThreads(__tstate); | |
16026 | if (PyErr_Occurred()) SWIG_fail; | |
16027 | } | |
16028 | { | |
16029 | #if wxUSE_UNICODE | |
16030 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16031 | #else | |
16032 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16033 | #endif | |
16034 | } | |
16035 | return resultobj; | |
16036 | fail: | |
16037 | return NULL; | |
16038 | } | |
16039 | ||
16040 | ||
16041 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16042 | PyObject *resultobj; | |
16043 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16044 | int arg2 ; | |
16045 | wxString *arg3 = 0 ; | |
16046 | bool temp3 = False ; | |
16047 | PyObject * obj0 = 0 ; | |
16048 | PyObject * obj1 = 0 ; | |
16049 | PyObject * obj2 = 0 ; | |
16050 | char *kwnames[] = { | |
16051 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16052 | }; | |
16053 | ||
16054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16056 | { | |
16057 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16058 | if (PyErr_Occurred()) SWIG_fail; | |
16059 | } | |
16060 | { | |
16061 | arg3 = wxString_in_helper(obj2); | |
16062 | if (arg3 == NULL) SWIG_fail; | |
16063 | temp3 = True; | |
16064 | } | |
16065 | { | |
16066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16067 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
16068 | ||
16069 | wxPyEndAllowThreads(__tstate); | |
16070 | if (PyErr_Occurred()) SWIG_fail; | |
16071 | } | |
16072 | Py_INCREF(Py_None); resultobj = Py_None; | |
16073 | { | |
16074 | if (temp3) | |
16075 | delete arg3; | |
16076 | } | |
16077 | return resultobj; | |
16078 | fail: | |
16079 | { | |
16080 | if (temp3) | |
16081 | delete arg3; | |
16082 | } | |
16083 | return NULL; | |
16084 | } | |
16085 | ||
16086 | ||
16087 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16088 | PyObject *resultobj; | |
16089 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16090 | int arg2 ; | |
16091 | wxString result; | |
16092 | PyObject * obj0 = 0 ; | |
16093 | PyObject * obj1 = 0 ; | |
16094 | char *kwnames[] = { | |
16095 | (char *) "self",(char *) "id", NULL | |
16096 | }; | |
16097 | ||
16098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
16099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16100 | { | |
16101 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16102 | if (PyErr_Occurred()) SWIG_fail; | |
16103 | } | |
16104 | { | |
16105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16106 | result = (arg1)->GetToolLongHelp(arg2); | |
16107 | ||
16108 | wxPyEndAllowThreads(__tstate); | |
16109 | if (PyErr_Occurred()) SWIG_fail; | |
16110 | } | |
16111 | { | |
16112 | #if wxUSE_UNICODE | |
16113 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16114 | #else | |
16115 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16116 | #endif | |
16117 | } | |
16118 | return resultobj; | |
16119 | fail: | |
16120 | return NULL; | |
16121 | } | |
16122 | ||
16123 | ||
16124 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16125 | PyObject *resultobj; | |
16126 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16127 | int arg2 ; | |
16128 | int arg3 ; | |
16129 | PyObject * obj0 = 0 ; | |
16130 | PyObject * obj1 = 0 ; | |
16131 | PyObject * obj2 = 0 ; | |
16132 | char *kwnames[] = { | |
16133 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16134 | }; | |
16135 | ||
16136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16138 | { | |
16139 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16140 | if (PyErr_Occurred()) SWIG_fail; | |
16141 | } | |
16142 | { | |
16143 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16144 | if (PyErr_Occurred()) SWIG_fail; | |
16145 | } | |
16146 | { | |
16147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16148 | (arg1)->SetMargins(arg2,arg3); | |
16149 | ||
16150 | wxPyEndAllowThreads(__tstate); | |
16151 | if (PyErr_Occurred()) SWIG_fail; | |
16152 | } | |
16153 | Py_INCREF(Py_None); resultobj = Py_None; | |
16154 | return resultobj; | |
16155 | fail: | |
16156 | return NULL; | |
16157 | } | |
16158 | ||
16159 | ||
16160 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16161 | PyObject *resultobj; | |
16162 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16163 | wxSize *arg2 = 0 ; | |
16164 | wxSize temp2 ; | |
16165 | PyObject * obj0 = 0 ; | |
16166 | PyObject * obj1 = 0 ; | |
16167 | char *kwnames[] = { | |
16168 | (char *) "self",(char *) "size", NULL | |
16169 | }; | |
16170 | ||
16171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
16172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16173 | { | |
16174 | arg2 = &temp2; | |
16175 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16176 | } | |
16177 | { | |
16178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16179 | (arg1)->SetMargins((wxSize const &)*arg2); | |
16180 | ||
16181 | wxPyEndAllowThreads(__tstate); | |
16182 | if (PyErr_Occurred()) SWIG_fail; | |
16183 | } | |
16184 | Py_INCREF(Py_None); resultobj = Py_None; | |
16185 | return resultobj; | |
16186 | fail: | |
16187 | return NULL; | |
16188 | } | |
16189 | ||
16190 | ||
16191 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16192 | PyObject *resultobj; | |
16193 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16194 | int arg2 ; | |
16195 | PyObject * obj0 = 0 ; | |
16196 | PyObject * obj1 = 0 ; | |
16197 | char *kwnames[] = { | |
16198 | (char *) "self",(char *) "packing", NULL | |
16199 | }; | |
16200 | ||
16201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; | |
16202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16203 | { | |
16204 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16205 | if (PyErr_Occurred()) SWIG_fail; | |
16206 | } | |
16207 | { | |
16208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16209 | (arg1)->SetToolPacking(arg2); | |
16210 | ||
16211 | wxPyEndAllowThreads(__tstate); | |
16212 | if (PyErr_Occurred()) SWIG_fail; | |
16213 | } | |
16214 | Py_INCREF(Py_None); resultobj = Py_None; | |
16215 | return resultobj; | |
16216 | fail: | |
16217 | return NULL; | |
16218 | } | |
16219 | ||
16220 | ||
16221 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16222 | PyObject *resultobj; | |
16223 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16224 | int arg2 ; | |
16225 | PyObject * obj0 = 0 ; | |
16226 | PyObject * obj1 = 0 ; | |
16227 | char *kwnames[] = { | |
16228 | (char *) "self",(char *) "separation", NULL | |
16229 | }; | |
16230 | ||
16231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; | |
16232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16233 | { | |
16234 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16235 | if (PyErr_Occurred()) SWIG_fail; | |
16236 | } | |
16237 | { | |
16238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16239 | (arg1)->SetToolSeparation(arg2); | |
16240 | ||
16241 | wxPyEndAllowThreads(__tstate); | |
16242 | if (PyErr_Occurred()) SWIG_fail; | |
16243 | } | |
16244 | Py_INCREF(Py_None); resultobj = Py_None; | |
16245 | return resultobj; | |
16246 | fail: | |
16247 | return NULL; | |
16248 | } | |
16249 | ||
16250 | ||
16251 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16252 | PyObject *resultobj; | |
16253 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16254 | wxSize result; | |
16255 | PyObject * obj0 = 0 ; | |
16256 | char *kwnames[] = { | |
16257 | (char *) "self", NULL | |
16258 | }; | |
16259 | ||
16260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
16261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16262 | { | |
16263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16264 | result = (arg1)->GetToolMargins(); | |
16265 | ||
16266 | wxPyEndAllowThreads(__tstate); | |
16267 | if (PyErr_Occurred()) SWIG_fail; | |
16268 | } | |
16269 | { | |
16270 | wxSize * resultptr; | |
16271 | resultptr = new wxSize((wxSize &) result); | |
16272 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16273 | } | |
16274 | return resultobj; | |
16275 | fail: | |
16276 | return NULL; | |
16277 | } | |
16278 | ||
16279 | ||
16280 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16281 | PyObject *resultobj; | |
16282 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16283 | wxSize result; | |
16284 | PyObject * obj0 = 0 ; | |
16285 | char *kwnames[] = { | |
16286 | (char *) "self", NULL | |
16287 | }; | |
16288 | ||
16289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
16290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16291 | { | |
16292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16293 | result = (arg1)->GetMargins(); | |
16294 | ||
16295 | wxPyEndAllowThreads(__tstate); | |
16296 | if (PyErr_Occurred()) SWIG_fail; | |
16297 | } | |
16298 | { | |
16299 | wxSize * resultptr; | |
16300 | resultptr = new wxSize((wxSize &) result); | |
16301 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16302 | } | |
16303 | return resultobj; | |
16304 | fail: | |
16305 | return NULL; | |
16306 | } | |
16307 | ||
16308 | ||
16309 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16310 | PyObject *resultobj; | |
16311 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16312 | int result; | |
16313 | PyObject * obj0 = 0 ; | |
16314 | char *kwnames[] = { | |
16315 | (char *) "self", NULL | |
16316 | }; | |
16317 | ||
16318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
16319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16320 | { | |
16321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16322 | result = (int)(arg1)->GetToolPacking(); | |
16323 | ||
16324 | wxPyEndAllowThreads(__tstate); | |
16325 | if (PyErr_Occurred()) SWIG_fail; | |
16326 | } | |
16327 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16328 | return resultobj; | |
16329 | fail: | |
16330 | return NULL; | |
16331 | } | |
16332 | ||
16333 | ||
16334 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16335 | PyObject *resultobj; | |
16336 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16337 | int result; | |
16338 | PyObject * obj0 = 0 ; | |
16339 | char *kwnames[] = { | |
16340 | (char *) "self", NULL | |
16341 | }; | |
16342 | ||
16343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
16344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16345 | { | |
16346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16347 | result = (int)(arg1)->GetToolSeparation(); | |
16348 | ||
16349 | wxPyEndAllowThreads(__tstate); | |
16350 | if (PyErr_Occurred()) SWIG_fail; | |
16351 | } | |
16352 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16353 | return resultobj; | |
16354 | fail: | |
16355 | return NULL; | |
16356 | } | |
16357 | ||
16358 | ||
16359 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16360 | PyObject *resultobj; | |
16361 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16362 | int arg2 ; | |
16363 | PyObject * obj0 = 0 ; | |
16364 | PyObject * obj1 = 0 ; | |
16365 | char *kwnames[] = { | |
16366 | (char *) "self",(char *) "nRows", NULL | |
16367 | }; | |
16368 | ||
16369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
16370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16371 | { | |
16372 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16373 | if (PyErr_Occurred()) SWIG_fail; | |
16374 | } | |
16375 | { | |
16376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16377 | (arg1)->SetRows(arg2); | |
16378 | ||
16379 | wxPyEndAllowThreads(__tstate); | |
16380 | if (PyErr_Occurred()) SWIG_fail; | |
16381 | } | |
16382 | Py_INCREF(Py_None); resultobj = Py_None; | |
16383 | return resultobj; | |
16384 | fail: | |
16385 | return NULL; | |
16386 | } | |
16387 | ||
16388 | ||
16389 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16390 | PyObject *resultobj; | |
16391 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16392 | int arg2 ; | |
16393 | int arg3 ; | |
16394 | PyObject * obj0 = 0 ; | |
16395 | PyObject * obj1 = 0 ; | |
16396 | PyObject * obj2 = 0 ; | |
16397 | char *kwnames[] = { | |
16398 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
16399 | }; | |
16400 | ||
16401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16403 | { | |
16404 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16405 | if (PyErr_Occurred()) SWIG_fail; | |
16406 | } | |
16407 | { | |
16408 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16409 | if (PyErr_Occurred()) SWIG_fail; | |
16410 | } | |
16411 | { | |
16412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16413 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
16414 | ||
16415 | wxPyEndAllowThreads(__tstate); | |
16416 | if (PyErr_Occurred()) SWIG_fail; | |
16417 | } | |
16418 | Py_INCREF(Py_None); resultobj = Py_None; | |
16419 | return resultobj; | |
16420 | fail: | |
16421 | return NULL; | |
16422 | } | |
16423 | ||
16424 | ||
16425 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16426 | PyObject *resultobj; | |
16427 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16428 | int result; | |
16429 | PyObject * obj0 = 0 ; | |
16430 | char *kwnames[] = { | |
16431 | (char *) "self", NULL | |
16432 | }; | |
16433 | ||
16434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
16435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16436 | { | |
16437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16438 | result = (int)(arg1)->GetMaxRows(); | |
16439 | ||
16440 | wxPyEndAllowThreads(__tstate); | |
16441 | if (PyErr_Occurred()) SWIG_fail; | |
16442 | } | |
16443 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16444 | return resultobj; | |
16445 | fail: | |
16446 | return NULL; | |
16447 | } | |
16448 | ||
16449 | ||
16450 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16451 | PyObject *resultobj; | |
16452 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16453 | int result; | |
16454 | PyObject * obj0 = 0 ; | |
16455 | char *kwnames[] = { | |
16456 | (char *) "self", NULL | |
16457 | }; | |
16458 | ||
16459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
16460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16461 | { | |
16462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16463 | result = (int)(arg1)->GetMaxCols(); | |
16464 | ||
16465 | wxPyEndAllowThreads(__tstate); | |
16466 | if (PyErr_Occurred()) SWIG_fail; | |
16467 | } | |
16468 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16469 | return resultobj; | |
16470 | fail: | |
16471 | return NULL; | |
16472 | } | |
16473 | ||
16474 | ||
16475 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16476 | PyObject *resultobj; | |
16477 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16478 | wxSize *arg2 = 0 ; | |
16479 | wxSize temp2 ; | |
16480 | PyObject * obj0 = 0 ; | |
16481 | PyObject * obj1 = 0 ; | |
16482 | char *kwnames[] = { | |
16483 | (char *) "self",(char *) "size", NULL | |
16484 | }; | |
16485 | ||
16486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
16487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16488 | { | |
16489 | arg2 = &temp2; | |
16490 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16491 | } | |
16492 | { | |
16493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16494 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
16495 | ||
16496 | wxPyEndAllowThreads(__tstate); | |
16497 | if (PyErr_Occurred()) SWIG_fail; | |
16498 | } | |
16499 | Py_INCREF(Py_None); resultobj = Py_None; | |
16500 | return resultobj; | |
16501 | fail: | |
16502 | return NULL; | |
16503 | } | |
16504 | ||
16505 | ||
16506 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16507 | PyObject *resultobj; | |
16508 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16509 | wxSize result; | |
16510 | PyObject * obj0 = 0 ; | |
16511 | char *kwnames[] = { | |
16512 | (char *) "self", NULL | |
16513 | }; | |
16514 | ||
16515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
16516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16517 | { | |
16518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16519 | result = (arg1)->GetToolBitmapSize(); | |
16520 | ||
16521 | wxPyEndAllowThreads(__tstate); | |
16522 | if (PyErr_Occurred()) SWIG_fail; | |
16523 | } | |
16524 | { | |
16525 | wxSize * resultptr; | |
16526 | resultptr = new wxSize((wxSize &) result); | |
16527 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16528 | } | |
16529 | return resultobj; | |
16530 | fail: | |
16531 | return NULL; | |
16532 | } | |
16533 | ||
16534 | ||
16535 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16536 | PyObject *resultobj; | |
16537 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16538 | wxSize result; | |
16539 | PyObject * obj0 = 0 ; | |
16540 | char *kwnames[] = { | |
16541 | (char *) "self", NULL | |
16542 | }; | |
16543 | ||
16544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
16545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16546 | { | |
16547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16548 | result = (arg1)->GetToolSize(); | |
16549 | ||
16550 | wxPyEndAllowThreads(__tstate); | |
16551 | if (PyErr_Occurred()) SWIG_fail; | |
16552 | } | |
16553 | { | |
16554 | wxSize * resultptr; | |
16555 | resultptr = new wxSize((wxSize &) result); | |
16556 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16557 | } | |
16558 | return resultobj; | |
16559 | fail: | |
16560 | return NULL; | |
16561 | } | |
16562 | ||
16563 | ||
16564 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16565 | PyObject *resultobj; | |
16566 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16567 | int arg2 ; | |
16568 | int arg3 ; | |
16569 | wxToolBarToolBase *result; | |
16570 | PyObject * obj0 = 0 ; | |
16571 | PyObject * obj1 = 0 ; | |
16572 | PyObject * obj2 = 0 ; | |
16573 | char *kwnames[] = { | |
16574 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16575 | }; | |
16576 | ||
16577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16579 | { | |
16580 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16581 | if (PyErr_Occurred()) SWIG_fail; | |
16582 | } | |
16583 | { | |
16584 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16585 | if (PyErr_Occurred()) SWIG_fail; | |
16586 | } | |
16587 | { | |
16588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16589 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
16590 | ||
16591 | wxPyEndAllowThreads(__tstate); | |
16592 | if (PyErr_Occurred()) SWIG_fail; | |
16593 | } | |
16594 | { | |
16595 | resultobj = wxPyMake_wxObject(result); | |
16596 | } | |
16597 | return resultobj; | |
16598 | fail: | |
16599 | return NULL; | |
16600 | } | |
16601 | ||
16602 | ||
16603 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16604 | PyObject *resultobj; | |
16605 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16606 | int arg2 ; | |
16607 | wxToolBarToolBase *result; | |
16608 | PyObject * obj0 = 0 ; | |
16609 | PyObject * obj1 = 0 ; | |
16610 | char *kwnames[] = { | |
16611 | (char *) "self",(char *) "toolid", NULL | |
16612 | }; | |
16613 | ||
16614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; | |
16615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16616 | { | |
16617 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16618 | if (PyErr_Occurred()) SWIG_fail; | |
16619 | } | |
16620 | { | |
16621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16622 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
16623 | ||
16624 | wxPyEndAllowThreads(__tstate); | |
16625 | if (PyErr_Occurred()) SWIG_fail; | |
16626 | } | |
16627 | { | |
16628 | resultobj = wxPyMake_wxObject(result); | |
16629 | } | |
16630 | return resultobj; | |
16631 | fail: | |
16632 | return NULL; | |
16633 | } | |
16634 | ||
16635 | ||
16636 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16637 | PyObject *resultobj; | |
16638 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16639 | bool result; | |
16640 | PyObject * obj0 = 0 ; | |
16641 | char *kwnames[] = { | |
16642 | (char *) "self", NULL | |
16643 | }; | |
16644 | ||
16645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
16646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16647 | { | |
16648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16649 | result = (bool)(arg1)->IsVertical(); | |
16650 | ||
16651 | wxPyEndAllowThreads(__tstate); | |
16652 | if (PyErr_Occurred()) SWIG_fail; | |
16653 | } | |
16654 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
16655 | return resultobj; | |
16656 | fail: | |
16657 | return NULL; | |
16658 | } | |
16659 | ||
16660 | ||
16661 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
16662 | PyObject *obj; | |
16663 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16664 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
16665 | Py_INCREF(obj); | |
16666 | return Py_BuildValue((char *)""); | |
16667 | } | |
16668 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16669 | PyObject *resultobj; | |
16670 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16671 | int arg2 ; | |
16672 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
16673 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16674 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
16675 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
16676 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
16677 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
16678 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
16679 | wxToolBar *result; | |
16680 | wxPoint temp3 ; | |
16681 | wxSize temp4 ; | |
16682 | bool temp6 = False ; | |
16683 | PyObject * obj0 = 0 ; | |
16684 | PyObject * obj1 = 0 ; | |
16685 | PyObject * obj2 = 0 ; | |
16686 | PyObject * obj3 = 0 ; | |
16687 | PyObject * obj4 = 0 ; | |
16688 | PyObject * obj5 = 0 ; | |
16689 | char *kwnames[] = { | |
16690 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16691 | }; | |
16692 | ||
16693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16695 | { | |
16696 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16697 | if (PyErr_Occurred()) SWIG_fail; | |
16698 | } | |
16699 | if (obj2) { | |
16700 | { | |
16701 | arg3 = &temp3; | |
16702 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16703 | } | |
16704 | } | |
16705 | if (obj3) { | |
16706 | { | |
16707 | arg4 = &temp4; | |
16708 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
16709 | } | |
16710 | } | |
16711 | if (obj4) { | |
16712 | { | |
16713 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
16714 | if (PyErr_Occurred()) SWIG_fail; | |
16715 | } | |
16716 | } | |
16717 | if (obj5) { | |
16718 | { | |
16719 | arg6 = wxString_in_helper(obj5); | |
16720 | if (arg6 == NULL) SWIG_fail; | |
16721 | temp6 = True; | |
16722 | } | |
16723 | } | |
16724 | { | |
16725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16726 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
16727 | ||
16728 | wxPyEndAllowThreads(__tstate); | |
16729 | if (PyErr_Occurred()) SWIG_fail; | |
16730 | } | |
16731 | { | |
16732 | resultobj = wxPyMake_wxObject(result); | |
16733 | } | |
16734 | { | |
16735 | if (temp6) | |
16736 | delete arg6; | |
16737 | } | |
16738 | return resultobj; | |
16739 | fail: | |
16740 | { | |
16741 | if (temp6) | |
16742 | delete arg6; | |
16743 | } | |
16744 | return NULL; | |
16745 | } | |
16746 | ||
16747 | ||
16748 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16749 | PyObject *resultobj; | |
16750 | wxToolBar *result; | |
16751 | char *kwnames[] = { | |
16752 | NULL | |
16753 | }; | |
16754 | ||
16755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
16756 | { | |
16757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16758 | result = (wxToolBar *)new wxToolBar(); | |
16759 | ||
16760 | wxPyEndAllowThreads(__tstate); | |
16761 | if (PyErr_Occurred()) SWIG_fail; | |
16762 | } | |
16763 | { | |
16764 | resultobj = wxPyMake_wxObject(result); | |
16765 | } | |
16766 | return resultobj; | |
16767 | fail: | |
16768 | return NULL; | |
16769 | } | |
16770 | ||
16771 | ||
16772 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16773 | PyObject *resultobj; | |
16774 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
16775 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16776 | int arg3 ; | |
16777 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
16778 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
16779 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
16780 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
16781 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
16782 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
16783 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16784 | bool result; | |
16785 | wxPoint temp4 ; | |
16786 | wxSize temp5 ; | |
16787 | bool temp7 = False ; | |
16788 | PyObject * obj0 = 0 ; | |
16789 | PyObject * obj1 = 0 ; | |
16790 | PyObject * obj2 = 0 ; | |
16791 | PyObject * obj3 = 0 ; | |
16792 | PyObject * obj4 = 0 ; | |
16793 | PyObject * obj5 = 0 ; | |
16794 | PyObject * obj6 = 0 ; | |
16795 | char *kwnames[] = { | |
16796 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16797 | }; | |
16798 | ||
16799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
16800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16801 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16802 | { | |
16803 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16804 | if (PyErr_Occurred()) SWIG_fail; | |
16805 | } | |
16806 | if (obj3) { | |
16807 | { | |
16808 | arg4 = &temp4; | |
16809 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
16810 | } | |
16811 | } | |
16812 | if (obj4) { | |
16813 | { | |
16814 | arg5 = &temp5; | |
16815 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
16816 | } | |
16817 | } | |
16818 | if (obj5) { | |
16819 | { | |
16820 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
16821 | if (PyErr_Occurred()) SWIG_fail; | |
16822 | } | |
16823 | } | |
16824 | if (obj6) { | |
16825 | { | |
16826 | arg7 = wxString_in_helper(obj6); | |
16827 | if (arg7 == NULL) SWIG_fail; | |
16828 | temp7 = True; | |
16829 | } | |
16830 | } | |
16831 | { | |
16832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16833 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
16834 | ||
16835 | wxPyEndAllowThreads(__tstate); | |
16836 | if (PyErr_Occurred()) SWIG_fail; | |
16837 | } | |
16838 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
16839 | { | |
16840 | if (temp7) | |
16841 | delete arg7; | |
16842 | } | |
16843 | return resultobj; | |
16844 | fail: | |
16845 | { | |
16846 | if (temp7) | |
16847 | delete arg7; | |
16848 | } | |
16849 | return NULL; | |
16850 | } | |
16851 | ||
16852 | ||
16853 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16854 | PyObject *resultobj; | |
16855 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
16856 | int arg2 ; | |
16857 | int arg3 ; | |
16858 | wxToolBarToolBase *result; | |
16859 | PyObject * obj0 = 0 ; | |
16860 | PyObject * obj1 = 0 ; | |
16861 | PyObject * obj2 = 0 ; | |
16862 | char *kwnames[] = { | |
16863 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16864 | }; | |
16865 | ||
16866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16868 | { | |
16869 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16870 | if (PyErr_Occurred()) SWIG_fail; | |
16871 | } | |
16872 | { | |
16873 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16874 | if (PyErr_Occurred()) SWIG_fail; | |
16875 | } | |
16876 | { | |
16877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16878 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
16879 | ||
16880 | wxPyEndAllowThreads(__tstate); | |
16881 | if (PyErr_Occurred()) SWIG_fail; | |
16882 | } | |
16883 | { | |
16884 | resultobj = wxPyMake_wxObject(result); | |
16885 | } | |
16886 | return resultobj; | |
16887 | fail: | |
16888 | return NULL; | |
16889 | } | |
16890 | ||
16891 | ||
16892 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
16893 | PyObject *obj; | |
16894 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16895 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
16896 | Py_INCREF(obj); | |
16897 | return Py_BuildValue((char *)""); | |
16898 | } | |
16899 | static int _wrap_ListCtrlNameStr_set(PyObject *) { | |
16900 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); | |
16901 | return 1; | |
16902 | } | |
16903 | ||
16904 | ||
16905 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
16906 | PyObject *pyobj; | |
16907 | ||
16908 | { | |
16909 | #if wxUSE_UNICODE | |
16910 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
16911 | #else | |
16912 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
16913 | #endif | |
16914 | } | |
16915 | return pyobj; | |
16916 | } | |
16917 | ||
16918 | ||
16919 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16920 | PyObject *resultobj; | |
16921 | wxColour const &arg1_defvalue = wxNullColour ; | |
16922 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
16923 | wxColour const &arg2_defvalue = wxNullColour ; | |
16924 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
16925 | wxFont const &arg3_defvalue = wxNullFont ; | |
16926 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
16927 | wxListItemAttr *result; | |
16928 | wxColour temp1 ; | |
16929 | wxColour temp2 ; | |
16930 | PyObject * obj0 = 0 ; | |
16931 | PyObject * obj1 = 0 ; | |
16932 | PyObject * obj2 = 0 ; | |
16933 | char *kwnames[] = { | |
16934 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
16935 | }; | |
16936 | ||
16937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16938 | if (obj0) { | |
16939 | { | |
16940 | arg1 = &temp1; | |
16941 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
16942 | } | |
16943 | } | |
16944 | if (obj1) { | |
16945 | { | |
16946 | arg2 = &temp2; | |
16947 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16948 | } | |
16949 | } | |
16950 | if (obj2) { | |
16951 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16952 | if (arg3 == NULL) { | |
16953 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16954 | } | |
16955 | } | |
16956 | { | |
16957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16958 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
16959 | ||
16960 | wxPyEndAllowThreads(__tstate); | |
16961 | if (PyErr_Occurred()) SWIG_fail; | |
16962 | } | |
16963 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 1); | |
16964 | return resultobj; | |
16965 | fail: | |
16966 | return NULL; | |
16967 | } | |
16968 | ||
16969 | ||
16970 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16971 | PyObject *resultobj; | |
16972 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
16973 | wxColour *arg2 = 0 ; | |
16974 | wxColour temp2 ; | |
16975 | PyObject * obj0 = 0 ; | |
16976 | PyObject * obj1 = 0 ; | |
16977 | char *kwnames[] = { | |
16978 | (char *) "self",(char *) "colText", NULL | |
16979 | }; | |
16980 | ||
16981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
16982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16983 | { | |
16984 | arg2 = &temp2; | |
16985 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16986 | } | |
16987 | { | |
16988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16989 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
16990 | ||
16991 | wxPyEndAllowThreads(__tstate); | |
16992 | if (PyErr_Occurred()) SWIG_fail; | |
16993 | } | |
16994 | Py_INCREF(Py_None); resultobj = Py_None; | |
16995 | return resultobj; | |
16996 | fail: | |
16997 | return NULL; | |
16998 | } | |
16999 | ||
17000 | ||
17001 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17002 | PyObject *resultobj; | |
17003 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17004 | wxColour *arg2 = 0 ; | |
17005 | wxColour temp2 ; | |
17006 | PyObject * obj0 = 0 ; | |
17007 | PyObject * obj1 = 0 ; | |
17008 | char *kwnames[] = { | |
17009 | (char *) "self",(char *) "colBack", NULL | |
17010 | }; | |
17011 | ||
17012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17014 | { | |
17015 | arg2 = &temp2; | |
17016 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17017 | } | |
17018 | { | |
17019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17020 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17021 | ||
17022 | wxPyEndAllowThreads(__tstate); | |
17023 | if (PyErr_Occurred()) SWIG_fail; | |
17024 | } | |
17025 | Py_INCREF(Py_None); resultobj = Py_None; | |
17026 | return resultobj; | |
17027 | fail: | |
17028 | return NULL; | |
17029 | } | |
17030 | ||
17031 | ||
17032 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17033 | PyObject *resultobj; | |
17034 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17035 | wxFont *arg2 = 0 ; | |
17036 | PyObject * obj0 = 0 ; | |
17037 | PyObject * obj1 = 0 ; | |
17038 | char *kwnames[] = { | |
17039 | (char *) "self",(char *) "font", NULL | |
17040 | }; | |
17041 | ||
17042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
17043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17044 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17045 | if (arg2 == NULL) { | |
17046 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17047 | } | |
17048 | { | |
17049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17050 | (arg1)->SetFont((wxFont const &)*arg2); | |
17051 | ||
17052 | wxPyEndAllowThreads(__tstate); | |
17053 | if (PyErr_Occurred()) SWIG_fail; | |
17054 | } | |
17055 | Py_INCREF(Py_None); resultobj = Py_None; | |
17056 | return resultobj; | |
17057 | fail: | |
17058 | return NULL; | |
17059 | } | |
17060 | ||
17061 | ||
17062 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17063 | PyObject *resultobj; | |
17064 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17065 | bool result; | |
17066 | PyObject * obj0 = 0 ; | |
17067 | char *kwnames[] = { | |
17068 | (char *) "self", NULL | |
17069 | }; | |
17070 | ||
17071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
17072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17073 | { | |
17074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17075 | result = (bool)(arg1)->HasTextColour(); | |
17076 | ||
17077 | wxPyEndAllowThreads(__tstate); | |
17078 | if (PyErr_Occurred()) SWIG_fail; | |
17079 | } | |
17080 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
17081 | return resultobj; | |
17082 | fail: | |
17083 | return NULL; | |
17084 | } | |
17085 | ||
17086 | ||
17087 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17088 | PyObject *resultobj; | |
17089 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17090 | bool result; | |
17091 | PyObject * obj0 = 0 ; | |
17092 | char *kwnames[] = { | |
17093 | (char *) "self", NULL | |
17094 | }; | |
17095 | ||
17096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
17097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17098 | { | |
17099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17100 | result = (bool)(arg1)->HasBackgroundColour(); | |
17101 | ||
17102 | wxPyEndAllowThreads(__tstate); | |
17103 | if (PyErr_Occurred()) SWIG_fail; | |
17104 | } | |
17105 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
17106 | return resultobj; | |
17107 | fail: | |
17108 | return NULL; | |
17109 | } | |
17110 | ||
17111 | ||
17112 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17113 | PyObject *resultobj; | |
17114 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17115 | bool result; | |
17116 | PyObject * obj0 = 0 ; | |
17117 | char *kwnames[] = { | |
17118 | (char *) "self", NULL | |
17119 | }; | |
17120 | ||
17121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
17122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17123 | { | |
17124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17125 | result = (bool)(arg1)->HasFont(); | |
17126 | ||
17127 | wxPyEndAllowThreads(__tstate); | |
17128 | if (PyErr_Occurred()) SWIG_fail; | |
17129 | } | |
17130 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
17131 | return resultobj; | |
17132 | fail: | |
17133 | return NULL; | |
17134 | } | |
17135 | ||
17136 | ||
17137 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17138 | PyObject *resultobj; | |
17139 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17140 | wxColour result; | |
17141 | PyObject * obj0 = 0 ; | |
17142 | char *kwnames[] = { | |
17143 | (char *) "self", NULL | |
17144 | }; | |
17145 | ||
17146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
17147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17148 | { | |
17149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17150 | result = (arg1)->GetTextColour(); | |
17151 | ||
17152 | wxPyEndAllowThreads(__tstate); | |
17153 | if (PyErr_Occurred()) SWIG_fail; | |
17154 | } | |
17155 | { | |
17156 | wxColour * resultptr; | |
17157 | resultptr = new wxColour((wxColour &) result); | |
17158 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17159 | } | |
17160 | return resultobj; | |
17161 | fail: | |
17162 | return NULL; | |
17163 | } | |
17164 | ||
17165 | ||
17166 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17167 | PyObject *resultobj; | |
17168 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17169 | wxColour result; | |
17170 | PyObject * obj0 = 0 ; | |
17171 | char *kwnames[] = { | |
17172 | (char *) "self", NULL | |
17173 | }; | |
17174 | ||
17175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
17176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17177 | { | |
17178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17179 | result = (arg1)->GetBackgroundColour(); | |
17180 | ||
17181 | wxPyEndAllowThreads(__tstate); | |
17182 | if (PyErr_Occurred()) SWIG_fail; | |
17183 | } | |
17184 | { | |
17185 | wxColour * resultptr; | |
17186 | resultptr = new wxColour((wxColour &) result); | |
17187 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17188 | } | |
17189 | return resultobj; | |
17190 | fail: | |
17191 | return NULL; | |
17192 | } | |
17193 | ||
17194 | ||
17195 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17196 | PyObject *resultobj; | |
17197 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17198 | wxFont result; | |
17199 | PyObject * obj0 = 0 ; | |
17200 | char *kwnames[] = { | |
17201 | (char *) "self", NULL | |
17202 | }; | |
17203 | ||
17204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
17205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17206 | { | |
17207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17208 | result = (arg1)->GetFont(); | |
17209 | ||
17210 | wxPyEndAllowThreads(__tstate); | |
17211 | if (PyErr_Occurred()) SWIG_fail; | |
17212 | } | |
17213 | { | |
17214 | wxFont * resultptr; | |
17215 | resultptr = new wxFont((wxFont &) result); | |
17216 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
17217 | } | |
17218 | return resultobj; | |
17219 | fail: | |
17220 | return NULL; | |
17221 | } | |
17222 | ||
17223 | ||
17224 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17225 | PyObject *resultobj; | |
17226 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17227 | PyObject * obj0 = 0 ; | |
17228 | char *kwnames[] = { | |
17229 | (char *) "self", NULL | |
17230 | }; | |
17231 | ||
17232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
17233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17234 | { | |
17235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17236 | wxListItemAttr_Destroy(arg1); | |
17237 | ||
17238 | wxPyEndAllowThreads(__tstate); | |
17239 | if (PyErr_Occurred()) SWIG_fail; | |
17240 | } | |
17241 | Py_INCREF(Py_None); resultobj = Py_None; | |
17242 | return resultobj; | |
17243 | fail: | |
17244 | return NULL; | |
17245 | } | |
17246 | ||
17247 | ||
17248 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
17249 | PyObject *obj; | |
17250 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17251 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
17252 | Py_INCREF(obj); | |
17253 | return Py_BuildValue((char *)""); | |
17254 | } | |
17255 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17256 | PyObject *resultobj; | |
17257 | wxListItem *result; | |
17258 | char *kwnames[] = { | |
17259 | NULL | |
17260 | }; | |
17261 | ||
17262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
17263 | { | |
17264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17265 | result = (wxListItem *)new wxListItem(); | |
17266 | ||
17267 | wxPyEndAllowThreads(__tstate); | |
17268 | if (PyErr_Occurred()) SWIG_fail; | |
17269 | } | |
17270 | { | |
17271 | resultobj = wxPyMake_wxObject(result); | |
17272 | } | |
17273 | return resultobj; | |
17274 | fail: | |
17275 | return NULL; | |
17276 | } | |
17277 | ||
17278 | ||
17279 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17280 | PyObject *resultobj; | |
17281 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17282 | PyObject * obj0 = 0 ; | |
17283 | char *kwnames[] = { | |
17284 | (char *) "self", NULL | |
17285 | }; | |
17286 | ||
17287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
17288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17289 | { | |
17290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17291 | delete arg1; | |
17292 | ||
17293 | wxPyEndAllowThreads(__tstate); | |
17294 | if (PyErr_Occurred()) SWIG_fail; | |
17295 | } | |
17296 | Py_INCREF(Py_None); resultobj = Py_None; | |
17297 | return resultobj; | |
17298 | fail: | |
17299 | return NULL; | |
17300 | } | |
17301 | ||
17302 | ||
17303 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17304 | PyObject *resultobj; | |
17305 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17306 | PyObject * obj0 = 0 ; | |
17307 | char *kwnames[] = { | |
17308 | (char *) "self", NULL | |
17309 | }; | |
17310 | ||
17311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
17312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17313 | { | |
17314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17315 | (arg1)->Clear(); | |
17316 | ||
17317 | wxPyEndAllowThreads(__tstate); | |
17318 | if (PyErr_Occurred()) SWIG_fail; | |
17319 | } | |
17320 | Py_INCREF(Py_None); resultobj = Py_None; | |
17321 | return resultobj; | |
17322 | fail: | |
17323 | return NULL; | |
17324 | } | |
17325 | ||
17326 | ||
17327 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17328 | PyObject *resultobj; | |
17329 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17330 | PyObject * obj0 = 0 ; | |
17331 | char *kwnames[] = { | |
17332 | (char *) "self", NULL | |
17333 | }; | |
17334 | ||
17335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
17336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17337 | { | |
17338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17339 | (arg1)->ClearAttributes(); | |
17340 | ||
17341 | wxPyEndAllowThreads(__tstate); | |
17342 | if (PyErr_Occurred()) SWIG_fail; | |
17343 | } | |
17344 | Py_INCREF(Py_None); resultobj = Py_None; | |
17345 | return resultobj; | |
17346 | fail: | |
17347 | return NULL; | |
17348 | } | |
17349 | ||
17350 | ||
17351 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17352 | PyObject *resultobj; | |
17353 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17354 | long arg2 ; | |
17355 | PyObject * obj0 = 0 ; | |
17356 | PyObject * obj1 = 0 ; | |
17357 | char *kwnames[] = { | |
17358 | (char *) "self",(char *) "mask", NULL | |
17359 | }; | |
17360 | ||
17361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
17362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17363 | { | |
17364 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17365 | if (PyErr_Occurred()) SWIG_fail; | |
17366 | } | |
17367 | { | |
17368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17369 | (arg1)->SetMask(arg2); | |
17370 | ||
17371 | wxPyEndAllowThreads(__tstate); | |
17372 | if (PyErr_Occurred()) SWIG_fail; | |
17373 | } | |
17374 | Py_INCREF(Py_None); resultobj = Py_None; | |
17375 | return resultobj; | |
17376 | fail: | |
17377 | return NULL; | |
17378 | } | |
17379 | ||
17380 | ||
17381 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17382 | PyObject *resultobj; | |
17383 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17384 | long arg2 ; | |
17385 | PyObject * obj0 = 0 ; | |
17386 | PyObject * obj1 = 0 ; | |
17387 | char *kwnames[] = { | |
17388 | (char *) "self",(char *) "id", NULL | |
17389 | }; | |
17390 | ||
17391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
17392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17393 | { | |
17394 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17395 | if (PyErr_Occurred()) SWIG_fail; | |
17396 | } | |
17397 | { | |
17398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17399 | (arg1)->SetId(arg2); | |
17400 | ||
17401 | wxPyEndAllowThreads(__tstate); | |
17402 | if (PyErr_Occurred()) SWIG_fail; | |
17403 | } | |
17404 | Py_INCREF(Py_None); resultobj = Py_None; | |
17405 | return resultobj; | |
17406 | fail: | |
17407 | return NULL; | |
17408 | } | |
17409 | ||
17410 | ||
17411 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17412 | PyObject *resultobj; | |
17413 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17414 | int arg2 ; | |
17415 | PyObject * obj0 = 0 ; | |
17416 | PyObject * obj1 = 0 ; | |
17417 | char *kwnames[] = { | |
17418 | (char *) "self",(char *) "col", NULL | |
17419 | }; | |
17420 | ||
17421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; | |
17422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17423 | { | |
17424 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17425 | if (PyErr_Occurred()) SWIG_fail; | |
17426 | } | |
17427 | { | |
17428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17429 | (arg1)->SetColumn(arg2); | |
17430 | ||
17431 | wxPyEndAllowThreads(__tstate); | |
17432 | if (PyErr_Occurred()) SWIG_fail; | |
17433 | } | |
17434 | Py_INCREF(Py_None); resultobj = Py_None; | |
17435 | return resultobj; | |
17436 | fail: | |
17437 | return NULL; | |
17438 | } | |
17439 | ||
17440 | ||
17441 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17442 | PyObject *resultobj; | |
17443 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17444 | long arg2 ; | |
17445 | PyObject * obj0 = 0 ; | |
17446 | PyObject * obj1 = 0 ; | |
17447 | char *kwnames[] = { | |
17448 | (char *) "self",(char *) "state", NULL | |
17449 | }; | |
17450 | ||
17451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; | |
17452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17453 | { | |
17454 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17455 | if (PyErr_Occurred()) SWIG_fail; | |
17456 | } | |
17457 | { | |
17458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17459 | (arg1)->SetState(arg2); | |
17460 | ||
17461 | wxPyEndAllowThreads(__tstate); | |
17462 | if (PyErr_Occurred()) SWIG_fail; | |
17463 | } | |
17464 | Py_INCREF(Py_None); resultobj = Py_None; | |
17465 | return resultobj; | |
17466 | fail: | |
17467 | return NULL; | |
17468 | } | |
17469 | ||
17470 | ||
17471 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17472 | PyObject *resultobj; | |
17473 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17474 | long arg2 ; | |
17475 | PyObject * obj0 = 0 ; | |
17476 | PyObject * obj1 = 0 ; | |
17477 | char *kwnames[] = { | |
17478 | (char *) "self",(char *) "stateMask", NULL | |
17479 | }; | |
17480 | ||
17481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; | |
17482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17483 | { | |
17484 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17485 | if (PyErr_Occurred()) SWIG_fail; | |
17486 | } | |
17487 | { | |
17488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17489 | (arg1)->SetStateMask(arg2); | |
17490 | ||
17491 | wxPyEndAllowThreads(__tstate); | |
17492 | if (PyErr_Occurred()) SWIG_fail; | |
17493 | } | |
17494 | Py_INCREF(Py_None); resultobj = Py_None; | |
17495 | return resultobj; | |
17496 | fail: | |
17497 | return NULL; | |
17498 | } | |
17499 | ||
17500 | ||
17501 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17502 | PyObject *resultobj; | |
17503 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17504 | wxString *arg2 = 0 ; | |
17505 | bool temp2 = False ; | |
17506 | PyObject * obj0 = 0 ; | |
17507 | PyObject * obj1 = 0 ; | |
17508 | char *kwnames[] = { | |
17509 | (char *) "self",(char *) "text", NULL | |
17510 | }; | |
17511 | ||
17512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
17513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17514 | { | |
17515 | arg2 = wxString_in_helper(obj1); | |
17516 | if (arg2 == NULL) SWIG_fail; | |
17517 | temp2 = True; | |
17518 | } | |
17519 | { | |
17520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17521 | (arg1)->SetText((wxString const &)*arg2); | |
17522 | ||
17523 | wxPyEndAllowThreads(__tstate); | |
17524 | if (PyErr_Occurred()) SWIG_fail; | |
17525 | } | |
17526 | Py_INCREF(Py_None); resultobj = Py_None; | |
17527 | { | |
17528 | if (temp2) | |
17529 | delete arg2; | |
17530 | } | |
17531 | return resultobj; | |
17532 | fail: | |
17533 | { | |
17534 | if (temp2) | |
17535 | delete arg2; | |
17536 | } | |
17537 | return NULL; | |
17538 | } | |
17539 | ||
17540 | ||
17541 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17542 | PyObject *resultobj; | |
17543 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17544 | int arg2 ; | |
17545 | PyObject * obj0 = 0 ; | |
17546 | PyObject * obj1 = 0 ; | |
17547 | char *kwnames[] = { | |
17548 | (char *) "self",(char *) "image", NULL | |
17549 | }; | |
17550 | ||
17551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; | |
17552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17553 | { | |
17554 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17555 | if (PyErr_Occurred()) SWIG_fail; | |
17556 | } | |
17557 | { | |
17558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17559 | (arg1)->SetImage(arg2); | |
17560 | ||
17561 | wxPyEndAllowThreads(__tstate); | |
17562 | if (PyErr_Occurred()) SWIG_fail; | |
17563 | } | |
17564 | Py_INCREF(Py_None); resultobj = Py_None; | |
17565 | return resultobj; | |
17566 | fail: | |
17567 | return NULL; | |
17568 | } | |
17569 | ||
17570 | ||
17571 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17572 | PyObject *resultobj; | |
17573 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17574 | long arg2 ; | |
17575 | PyObject * obj0 = 0 ; | |
17576 | PyObject * obj1 = 0 ; | |
17577 | char *kwnames[] = { | |
17578 | (char *) "self",(char *) "data", NULL | |
17579 | }; | |
17580 | ||
17581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; | |
17582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17583 | { | |
17584 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17585 | if (PyErr_Occurred()) SWIG_fail; | |
17586 | } | |
17587 | { | |
17588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17589 | (arg1)->SetData(arg2); | |
17590 | ||
17591 | wxPyEndAllowThreads(__tstate); | |
17592 | if (PyErr_Occurred()) SWIG_fail; | |
17593 | } | |
17594 | Py_INCREF(Py_None); resultobj = Py_None; | |
17595 | return resultobj; | |
17596 | fail: | |
17597 | return NULL; | |
17598 | } | |
17599 | ||
17600 | ||
17601 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17602 | PyObject *resultobj; | |
17603 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17604 | int arg2 ; | |
17605 | PyObject * obj0 = 0 ; | |
17606 | PyObject * obj1 = 0 ; | |
17607 | char *kwnames[] = { | |
17608 | (char *) "self",(char *) "width", NULL | |
17609 | }; | |
17610 | ||
17611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
17612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17613 | { | |
17614 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17615 | if (PyErr_Occurred()) SWIG_fail; | |
17616 | } | |
17617 | { | |
17618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17619 | (arg1)->SetWidth(arg2); | |
17620 | ||
17621 | wxPyEndAllowThreads(__tstate); | |
17622 | if (PyErr_Occurred()) SWIG_fail; | |
17623 | } | |
17624 | Py_INCREF(Py_None); resultobj = Py_None; | |
17625 | return resultobj; | |
17626 | fail: | |
17627 | return NULL; | |
17628 | } | |
17629 | ||
17630 | ||
17631 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17632 | PyObject *resultobj; | |
17633 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17634 | int arg2 ; | |
17635 | PyObject * obj0 = 0 ; | |
17636 | PyObject * obj1 = 0 ; | |
17637 | char *kwnames[] = { | |
17638 | (char *) "self",(char *) "align", NULL | |
17639 | }; | |
17640 | ||
17641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; | |
17642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17643 | { | |
17644 | arg2 = (wxListColumnFormat) SWIG_PyObj_AsInt(obj1); | |
17645 | if (PyErr_Occurred()) SWIG_fail; | |
17646 | } | |
17647 | { | |
17648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17649 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
17650 | ||
17651 | wxPyEndAllowThreads(__tstate); | |
17652 | if (PyErr_Occurred()) SWIG_fail; | |
17653 | } | |
17654 | Py_INCREF(Py_None); resultobj = Py_None; | |
17655 | return resultobj; | |
17656 | fail: | |
17657 | return NULL; | |
17658 | } | |
17659 | ||
17660 | ||
17661 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17662 | PyObject *resultobj; | |
17663 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17664 | wxColour *arg2 = 0 ; | |
17665 | wxColour temp2 ; | |
17666 | PyObject * obj0 = 0 ; | |
17667 | PyObject * obj1 = 0 ; | |
17668 | char *kwnames[] = { | |
17669 | (char *) "self",(char *) "colText", NULL | |
17670 | }; | |
17671 | ||
17672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
17673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17674 | { | |
17675 | arg2 = &temp2; | |
17676 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17677 | } | |
17678 | { | |
17679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17680 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
17681 | ||
17682 | wxPyEndAllowThreads(__tstate); | |
17683 | if (PyErr_Occurred()) SWIG_fail; | |
17684 | } | |
17685 | Py_INCREF(Py_None); resultobj = Py_None; | |
17686 | return resultobj; | |
17687 | fail: | |
17688 | return NULL; | |
17689 | } | |
17690 | ||
17691 | ||
17692 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17693 | PyObject *resultobj; | |
17694 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17695 | wxColour *arg2 = 0 ; | |
17696 | wxColour temp2 ; | |
17697 | PyObject * obj0 = 0 ; | |
17698 | PyObject * obj1 = 0 ; | |
17699 | char *kwnames[] = { | |
17700 | (char *) "self",(char *) "colBack", NULL | |
17701 | }; | |
17702 | ||
17703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17705 | { | |
17706 | arg2 = &temp2; | |
17707 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17708 | } | |
17709 | { | |
17710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17711 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17712 | ||
17713 | wxPyEndAllowThreads(__tstate); | |
17714 | if (PyErr_Occurred()) SWIG_fail; | |
17715 | } | |
17716 | Py_INCREF(Py_None); resultobj = Py_None; | |
17717 | return resultobj; | |
17718 | fail: | |
17719 | return NULL; | |
17720 | } | |
17721 | ||
17722 | ||
17723 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17724 | PyObject *resultobj; | |
17725 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17726 | wxFont *arg2 = 0 ; | |
17727 | PyObject * obj0 = 0 ; | |
17728 | PyObject * obj1 = 0 ; | |
17729 | char *kwnames[] = { | |
17730 | (char *) "self",(char *) "font", NULL | |
17731 | }; | |
17732 | ||
17733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
17734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17735 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17736 | if (arg2 == NULL) { | |
17737 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17738 | } | |
17739 | { | |
17740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17741 | (arg1)->SetFont((wxFont const &)*arg2); | |
17742 | ||
17743 | wxPyEndAllowThreads(__tstate); | |
17744 | if (PyErr_Occurred()) SWIG_fail; | |
17745 | } | |
17746 | Py_INCREF(Py_None); resultobj = Py_None; | |
17747 | return resultobj; | |
17748 | fail: | |
17749 | return NULL; | |
17750 | } | |
17751 | ||
17752 | ||
17753 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17754 | PyObject *resultobj; | |
17755 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17756 | long result; | |
17757 | PyObject * obj0 = 0 ; | |
17758 | char *kwnames[] = { | |
17759 | (char *) "self", NULL | |
17760 | }; | |
17761 | ||
17762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
17763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17764 | { | |
17765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17766 | result = (long)(arg1)->GetMask(); | |
17767 | ||
17768 | wxPyEndAllowThreads(__tstate); | |
17769 | if (PyErr_Occurred()) SWIG_fail; | |
17770 | } | |
17771 | resultobj = SWIG_PyObj_FromLong((long)result); | |
17772 | return resultobj; | |
17773 | fail: | |
17774 | return NULL; | |
17775 | } | |
17776 | ||
17777 | ||
17778 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17779 | PyObject *resultobj; | |
17780 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17781 | long result; | |
17782 | PyObject * obj0 = 0 ; | |
17783 | char *kwnames[] = { | |
17784 | (char *) "self", NULL | |
17785 | }; | |
17786 | ||
17787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
17788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17789 | { | |
17790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17791 | result = (long)(arg1)->GetId(); | |
17792 | ||
17793 | wxPyEndAllowThreads(__tstate); | |
17794 | if (PyErr_Occurred()) SWIG_fail; | |
17795 | } | |
17796 | resultobj = SWIG_PyObj_FromLong((long)result); | |
17797 | return resultobj; | |
17798 | fail: | |
17799 | return NULL; | |
17800 | } | |
17801 | ||
17802 | ||
17803 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17804 | PyObject *resultobj; | |
17805 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17806 | int result; | |
17807 | PyObject * obj0 = 0 ; | |
17808 | char *kwnames[] = { | |
17809 | (char *) "self", NULL | |
17810 | }; | |
17811 | ||
17812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
17813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17814 | { | |
17815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17816 | result = (int)(arg1)->GetColumn(); | |
17817 | ||
17818 | wxPyEndAllowThreads(__tstate); | |
17819 | if (PyErr_Occurred()) SWIG_fail; | |
17820 | } | |
17821 | resultobj = SWIG_PyObj_FromInt((int)result); | |
17822 | return resultobj; | |
17823 | fail: | |
17824 | return NULL; | |
17825 | } | |
17826 | ||
17827 | ||
17828 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17829 | PyObject *resultobj; | |
17830 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17831 | long result; | |
17832 | PyObject * obj0 = 0 ; | |
17833 | char *kwnames[] = { | |
17834 | (char *) "self", NULL | |
17835 | }; | |
17836 | ||
17837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
17838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17839 | { | |
17840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17841 | result = (long)(arg1)->GetState(); | |
17842 | ||
17843 | wxPyEndAllowThreads(__tstate); | |
17844 | if (PyErr_Occurred()) SWIG_fail; | |
17845 | } | |
17846 | resultobj = SWIG_PyObj_FromLong((long)result); | |
17847 | return resultobj; | |
17848 | fail: | |
17849 | return NULL; | |
17850 | } | |
17851 | ||
17852 | ||
17853 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17854 | PyObject *resultobj; | |
17855 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17856 | wxString *result; | |
17857 | PyObject * obj0 = 0 ; | |
17858 | char *kwnames[] = { | |
17859 | (char *) "self", NULL | |
17860 | }; | |
17861 | ||
17862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
17863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17864 | { | |
17865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17866 | { | |
17867 | wxString const &_result_ref = (arg1)->GetText(); | |
17868 | result = (wxString *) &_result_ref; | |
17869 | } | |
17870 | ||
17871 | wxPyEndAllowThreads(__tstate); | |
17872 | if (PyErr_Occurred()) SWIG_fail; | |
17873 | } | |
17874 | { | |
17875 | #if wxUSE_UNICODE | |
17876 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17877 | #else | |
17878 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17879 | #endif | |
17880 | } | |
17881 | return resultobj; | |
17882 | fail: | |
17883 | return NULL; | |
17884 | } | |
17885 | ||
17886 | ||
17887 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17888 | PyObject *resultobj; | |
17889 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17890 | int result; | |
17891 | PyObject * obj0 = 0 ; | |
17892 | char *kwnames[] = { | |
17893 | (char *) "self", NULL | |
17894 | }; | |
17895 | ||
17896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
17897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17898 | { | |
17899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17900 | result = (int)(arg1)->GetImage(); | |
17901 | ||
17902 | wxPyEndAllowThreads(__tstate); | |
17903 | if (PyErr_Occurred()) SWIG_fail; | |
17904 | } | |
17905 | resultobj = SWIG_PyObj_FromInt((int)result); | |
17906 | return resultobj; | |
17907 | fail: | |
17908 | return NULL; | |
17909 | } | |
17910 | ||
17911 | ||
17912 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17913 | PyObject *resultobj; | |
17914 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17915 | long result; | |
17916 | PyObject * obj0 = 0 ; | |
17917 | char *kwnames[] = { | |
17918 | (char *) "self", NULL | |
17919 | }; | |
17920 | ||
17921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
17922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17923 | { | |
17924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17925 | result = (long)(arg1)->GetData(); | |
17926 | ||
17927 | wxPyEndAllowThreads(__tstate); | |
17928 | if (PyErr_Occurred()) SWIG_fail; | |
17929 | } | |
17930 | resultobj = SWIG_PyObj_FromLong((long)result); | |
17931 | return resultobj; | |
17932 | fail: | |
17933 | return NULL; | |
17934 | } | |
17935 | ||
17936 | ||
17937 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17938 | PyObject *resultobj; | |
17939 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17940 | int result; | |
17941 | PyObject * obj0 = 0 ; | |
17942 | char *kwnames[] = { | |
17943 | (char *) "self", NULL | |
17944 | }; | |
17945 | ||
17946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
17947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17948 | { | |
17949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17950 | result = (int)(arg1)->GetWidth(); | |
17951 | ||
17952 | wxPyEndAllowThreads(__tstate); | |
17953 | if (PyErr_Occurred()) SWIG_fail; | |
17954 | } | |
17955 | resultobj = SWIG_PyObj_FromInt((int)result); | |
17956 | return resultobj; | |
17957 | fail: | |
17958 | return NULL; | |
17959 | } | |
17960 | ||
17961 | ||
17962 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17963 | PyObject *resultobj; | |
17964 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17965 | int result; | |
17966 | PyObject * obj0 = 0 ; | |
17967 | char *kwnames[] = { | |
17968 | (char *) "self", NULL | |
17969 | }; | |
17970 | ||
17971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
17972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17973 | { | |
17974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17975 | result = (int)(arg1)->GetAlign(); | |
17976 | ||
17977 | wxPyEndAllowThreads(__tstate); | |
17978 | if (PyErr_Occurred()) SWIG_fail; | |
17979 | } | |
17980 | resultobj = SWIG_PyObj_FromInt((int)result); | |
17981 | return resultobj; | |
17982 | fail: | |
17983 | return NULL; | |
17984 | } | |
17985 | ||
17986 | ||
17987 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17988 | PyObject *resultobj; | |
17989 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17990 | wxListItemAttr *result; | |
17991 | PyObject * obj0 = 0 ; | |
17992 | char *kwnames[] = { | |
17993 | (char *) "self", NULL | |
17994 | }; | |
17995 | ||
17996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
17997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17998 | { | |
17999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18000 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
18001 | ||
18002 | wxPyEndAllowThreads(__tstate); | |
18003 | if (PyErr_Occurred()) SWIG_fail; | |
18004 | } | |
18005 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 0); | |
18006 | return resultobj; | |
18007 | fail: | |
18008 | return NULL; | |
18009 | } | |
18010 | ||
18011 | ||
18012 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18013 | PyObject *resultobj; | |
18014 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18015 | bool result; | |
18016 | PyObject * obj0 = 0 ; | |
18017 | char *kwnames[] = { | |
18018 | (char *) "self", NULL | |
18019 | }; | |
18020 | ||
18021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
18022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18023 | { | |
18024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18025 | result = (bool)(arg1)->HasAttributes(); | |
18026 | ||
18027 | wxPyEndAllowThreads(__tstate); | |
18028 | if (PyErr_Occurred()) SWIG_fail; | |
18029 | } | |
18030 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
18031 | return resultobj; | |
18032 | fail: | |
18033 | return NULL; | |
18034 | } | |
18035 | ||
18036 | ||
18037 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18038 | PyObject *resultobj; | |
18039 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18040 | wxColour result; | |
18041 | PyObject * obj0 = 0 ; | |
18042 | char *kwnames[] = { | |
18043 | (char *) "self", NULL | |
18044 | }; | |
18045 | ||
18046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
18047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18048 | { | |
18049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18050 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
18051 | ||
18052 | wxPyEndAllowThreads(__tstate); | |
18053 | if (PyErr_Occurred()) SWIG_fail; | |
18054 | } | |
18055 | { | |
18056 | wxColour * resultptr; | |
18057 | resultptr = new wxColour((wxColour &) result); | |
18058 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18059 | } | |
18060 | return resultobj; | |
18061 | fail: | |
18062 | return NULL; | |
18063 | } | |
18064 | ||
18065 | ||
18066 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18067 | PyObject *resultobj; | |
18068 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18069 | wxColour result; | |
18070 | PyObject * obj0 = 0 ; | |
18071 | char *kwnames[] = { | |
18072 | (char *) "self", NULL | |
18073 | }; | |
18074 | ||
18075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
18076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18077 | { | |
18078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18079 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
18080 | ||
18081 | wxPyEndAllowThreads(__tstate); | |
18082 | if (PyErr_Occurred()) SWIG_fail; | |
18083 | } | |
18084 | { | |
18085 | wxColour * resultptr; | |
18086 | resultptr = new wxColour((wxColour &) result); | |
18087 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18088 | } | |
18089 | return resultobj; | |
18090 | fail: | |
18091 | return NULL; | |
18092 | } | |
18093 | ||
18094 | ||
18095 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18096 | PyObject *resultobj; | |
18097 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18098 | wxFont result; | |
18099 | PyObject * obj0 = 0 ; | |
18100 | char *kwnames[] = { | |
18101 | (char *) "self", NULL | |
18102 | }; | |
18103 | ||
18104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
18105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18106 | { | |
18107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18108 | result = ((wxListItem const *)arg1)->GetFont(); | |
18109 | ||
18110 | wxPyEndAllowThreads(__tstate); | |
18111 | if (PyErr_Occurred()) SWIG_fail; | |
18112 | } | |
18113 | { | |
18114 | wxFont * resultptr; | |
18115 | resultptr = new wxFont((wxFont &) result); | |
18116 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
18117 | } | |
18118 | return resultobj; | |
18119 | fail: | |
18120 | return NULL; | |
18121 | } | |
18122 | ||
18123 | ||
18124 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18125 | PyObject *resultobj; | |
18126 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18127 | long arg2 ; | |
18128 | PyObject * obj0 = 0 ; | |
18129 | PyObject * obj1 = 0 ; | |
18130 | char *kwnames[] = { | |
18131 | (char *) "self",(char *) "m_mask", NULL | |
18132 | }; | |
18133 | ||
18134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; | |
18135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18136 | { | |
18137 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18138 | if (PyErr_Occurred()) SWIG_fail; | |
18139 | } | |
18140 | if (arg1) (arg1)->m_mask = arg2; | |
18141 | ||
18142 | Py_INCREF(Py_None); resultobj = Py_None; | |
18143 | return resultobj; | |
18144 | fail: | |
18145 | return NULL; | |
18146 | } | |
18147 | ||
18148 | ||
18149 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18150 | PyObject *resultobj; | |
18151 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18152 | long result; | |
18153 | PyObject * obj0 = 0 ; | |
18154 | char *kwnames[] = { | |
18155 | (char *) "self", NULL | |
18156 | }; | |
18157 | ||
18158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
18159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18160 | result = (long) ((arg1)->m_mask); | |
18161 | ||
18162 | resultobj = SWIG_PyObj_FromLong((long)result); | |
18163 | return resultobj; | |
18164 | fail: | |
18165 | return NULL; | |
18166 | } | |
18167 | ||
18168 | ||
18169 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18170 | PyObject *resultobj; | |
18171 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18172 | long arg2 ; | |
18173 | PyObject * obj0 = 0 ; | |
18174 | PyObject * obj1 = 0 ; | |
18175 | char *kwnames[] = { | |
18176 | (char *) "self",(char *) "m_itemId", NULL | |
18177 | }; | |
18178 | ||
18179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; | |
18180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18181 | { | |
18182 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18183 | if (PyErr_Occurred()) SWIG_fail; | |
18184 | } | |
18185 | if (arg1) (arg1)->m_itemId = arg2; | |
18186 | ||
18187 | Py_INCREF(Py_None); resultobj = Py_None; | |
18188 | return resultobj; | |
18189 | fail: | |
18190 | return NULL; | |
18191 | } | |
18192 | ||
18193 | ||
18194 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18195 | PyObject *resultobj; | |
18196 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18197 | long result; | |
18198 | PyObject * obj0 = 0 ; | |
18199 | char *kwnames[] = { | |
18200 | (char *) "self", NULL | |
18201 | }; | |
18202 | ||
18203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
18204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18205 | result = (long) ((arg1)->m_itemId); | |
18206 | ||
18207 | resultobj = SWIG_PyObj_FromLong((long)result); | |
18208 | return resultobj; | |
18209 | fail: | |
18210 | return NULL; | |
18211 | } | |
18212 | ||
18213 | ||
18214 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18215 | PyObject *resultobj; | |
18216 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18217 | int arg2 ; | |
18218 | PyObject * obj0 = 0 ; | |
18219 | PyObject * obj1 = 0 ; | |
18220 | char *kwnames[] = { | |
18221 | (char *) "self",(char *) "m_col", NULL | |
18222 | }; | |
18223 | ||
18224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
18225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18226 | { | |
18227 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18228 | if (PyErr_Occurred()) SWIG_fail; | |
18229 | } | |
18230 | if (arg1) (arg1)->m_col = arg2; | |
18231 | ||
18232 | Py_INCREF(Py_None); resultobj = Py_None; | |
18233 | return resultobj; | |
18234 | fail: | |
18235 | return NULL; | |
18236 | } | |
18237 | ||
18238 | ||
18239 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18240 | PyObject *resultobj; | |
18241 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18242 | int result; | |
18243 | PyObject * obj0 = 0 ; | |
18244 | char *kwnames[] = { | |
18245 | (char *) "self", NULL | |
18246 | }; | |
18247 | ||
18248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
18249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18250 | result = (int) ((arg1)->m_col); | |
18251 | ||
18252 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18253 | return resultobj; | |
18254 | fail: | |
18255 | return NULL; | |
18256 | } | |
18257 | ||
18258 | ||
18259 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18260 | PyObject *resultobj; | |
18261 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18262 | long arg2 ; | |
18263 | PyObject * obj0 = 0 ; | |
18264 | PyObject * obj1 = 0 ; | |
18265 | char *kwnames[] = { | |
18266 | (char *) "self",(char *) "m_state", NULL | |
18267 | }; | |
18268 | ||
18269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; | |
18270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18271 | { | |
18272 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18273 | if (PyErr_Occurred()) SWIG_fail; | |
18274 | } | |
18275 | if (arg1) (arg1)->m_state = arg2; | |
18276 | ||
18277 | Py_INCREF(Py_None); resultobj = Py_None; | |
18278 | return resultobj; | |
18279 | fail: | |
18280 | return NULL; | |
18281 | } | |
18282 | ||
18283 | ||
18284 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18285 | PyObject *resultobj; | |
18286 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18287 | long result; | |
18288 | PyObject * obj0 = 0 ; | |
18289 | char *kwnames[] = { | |
18290 | (char *) "self", NULL | |
18291 | }; | |
18292 | ||
18293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
18294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18295 | result = (long) ((arg1)->m_state); | |
18296 | ||
18297 | resultobj = SWIG_PyObj_FromLong((long)result); | |
18298 | return resultobj; | |
18299 | fail: | |
18300 | return NULL; | |
18301 | } | |
18302 | ||
18303 | ||
18304 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18305 | PyObject *resultobj; | |
18306 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18307 | long arg2 ; | |
18308 | PyObject * obj0 = 0 ; | |
18309 | PyObject * obj1 = 0 ; | |
18310 | char *kwnames[] = { | |
18311 | (char *) "self",(char *) "m_stateMask", NULL | |
18312 | }; | |
18313 | ||
18314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; | |
18315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18316 | { | |
18317 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18318 | if (PyErr_Occurred()) SWIG_fail; | |
18319 | } | |
18320 | if (arg1) (arg1)->m_stateMask = arg2; | |
18321 | ||
18322 | Py_INCREF(Py_None); resultobj = Py_None; | |
18323 | return resultobj; | |
18324 | fail: | |
18325 | return NULL; | |
18326 | } | |
18327 | ||
18328 | ||
18329 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18330 | PyObject *resultobj; | |
18331 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18332 | long result; | |
18333 | PyObject * obj0 = 0 ; | |
18334 | char *kwnames[] = { | |
18335 | (char *) "self", NULL | |
18336 | }; | |
18337 | ||
18338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
18339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18340 | result = (long) ((arg1)->m_stateMask); | |
18341 | ||
18342 | resultobj = SWIG_PyObj_FromLong((long)result); | |
18343 | return resultobj; | |
18344 | fail: | |
18345 | return NULL; | |
18346 | } | |
18347 | ||
18348 | ||
18349 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18350 | PyObject *resultobj; | |
18351 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18352 | wxString *arg2 = (wxString *) 0 ; | |
18353 | bool temp2 = False ; | |
18354 | PyObject * obj0 = 0 ; | |
18355 | PyObject * obj1 = 0 ; | |
18356 | char *kwnames[] = { | |
18357 | (char *) "self",(char *) "m_text", NULL | |
18358 | }; | |
18359 | ||
18360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
18361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18362 | { | |
18363 | arg2 = wxString_in_helper(obj1); | |
18364 | if (arg2 == NULL) SWIG_fail; | |
18365 | temp2 = True; | |
18366 | } | |
18367 | if (arg1) (arg1)->m_text = *arg2; | |
18368 | ||
18369 | Py_INCREF(Py_None); resultobj = Py_None; | |
18370 | { | |
18371 | if (temp2) | |
18372 | delete arg2; | |
18373 | } | |
18374 | return resultobj; | |
18375 | fail: | |
18376 | { | |
18377 | if (temp2) | |
18378 | delete arg2; | |
18379 | } | |
18380 | return NULL; | |
18381 | } | |
18382 | ||
18383 | ||
18384 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18385 | PyObject *resultobj; | |
18386 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18387 | wxString *result; | |
18388 | PyObject * obj0 = 0 ; | |
18389 | char *kwnames[] = { | |
18390 | (char *) "self", NULL | |
18391 | }; | |
18392 | ||
18393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
18394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18395 | result = (wxString *)& ((arg1)->m_text); | |
18396 | ||
18397 | { | |
18398 | #if wxUSE_UNICODE | |
18399 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18400 | #else | |
18401 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18402 | #endif | |
18403 | } | |
18404 | return resultobj; | |
18405 | fail: | |
18406 | return NULL; | |
18407 | } | |
18408 | ||
18409 | ||
18410 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18411 | PyObject *resultobj; | |
18412 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18413 | int arg2 ; | |
18414 | PyObject * obj0 = 0 ; | |
18415 | PyObject * obj1 = 0 ; | |
18416 | char *kwnames[] = { | |
18417 | (char *) "self",(char *) "m_image", NULL | |
18418 | }; | |
18419 | ||
18420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; | |
18421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18422 | { | |
18423 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18424 | if (PyErr_Occurred()) SWIG_fail; | |
18425 | } | |
18426 | if (arg1) (arg1)->m_image = arg2; | |
18427 | ||
18428 | Py_INCREF(Py_None); resultobj = Py_None; | |
18429 | return resultobj; | |
18430 | fail: | |
18431 | return NULL; | |
18432 | } | |
18433 | ||
18434 | ||
18435 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18436 | PyObject *resultobj; | |
18437 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18438 | int result; | |
18439 | PyObject * obj0 = 0 ; | |
18440 | char *kwnames[] = { | |
18441 | (char *) "self", NULL | |
18442 | }; | |
18443 | ||
18444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
18445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18446 | result = (int) ((arg1)->m_image); | |
18447 | ||
18448 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18449 | return resultobj; | |
18450 | fail: | |
18451 | return NULL; | |
18452 | } | |
18453 | ||
18454 | ||
18455 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18456 | PyObject *resultobj; | |
18457 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18458 | long arg2 ; | |
18459 | PyObject * obj0 = 0 ; | |
18460 | PyObject * obj1 = 0 ; | |
18461 | char *kwnames[] = { | |
18462 | (char *) "self",(char *) "m_data", NULL | |
18463 | }; | |
18464 | ||
18465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; | |
18466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18467 | { | |
18468 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18469 | if (PyErr_Occurred()) SWIG_fail; | |
18470 | } | |
18471 | if (arg1) (arg1)->m_data = arg2; | |
18472 | ||
18473 | Py_INCREF(Py_None); resultobj = Py_None; | |
18474 | return resultobj; | |
18475 | fail: | |
18476 | return NULL; | |
18477 | } | |
18478 | ||
18479 | ||
18480 | static PyObject *_wrap_ListItem_m_data_get(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_m_data_get",kwnames,&obj0)) goto fail; | |
18490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18491 | result = (long) ((arg1)->m_data); | |
18492 | ||
18493 | resultobj = SWIG_PyObj_FromLong((long)result); | |
18494 | return resultobj; | |
18495 | fail: | |
18496 | return NULL; | |
18497 | } | |
18498 | ||
18499 | ||
18500 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18501 | PyObject *resultobj; | |
18502 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18503 | int arg2 ; | |
18504 | PyObject * obj0 = 0 ; | |
18505 | PyObject * obj1 = 0 ; | |
18506 | char *kwnames[] = { | |
18507 | (char *) "self",(char *) "m_format", NULL | |
18508 | }; | |
18509 | ||
18510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; | |
18511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18512 | { | |
18513 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18514 | if (PyErr_Occurred()) SWIG_fail; | |
18515 | } | |
18516 | if (arg1) (arg1)->m_format = arg2; | |
18517 | ||
18518 | Py_INCREF(Py_None); resultobj = Py_None; | |
18519 | return resultobj; | |
18520 | fail: | |
18521 | return NULL; | |
18522 | } | |
18523 | ||
18524 | ||
18525 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18526 | PyObject *resultobj; | |
18527 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18528 | int result; | |
18529 | PyObject * obj0 = 0 ; | |
18530 | char *kwnames[] = { | |
18531 | (char *) "self", NULL | |
18532 | }; | |
18533 | ||
18534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
18535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18536 | result = (int) ((arg1)->m_format); | |
18537 | ||
18538 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18539 | return resultobj; | |
18540 | fail: | |
18541 | return NULL; | |
18542 | } | |
18543 | ||
18544 | ||
18545 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18546 | PyObject *resultobj; | |
18547 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18548 | int arg2 ; | |
18549 | PyObject * obj0 = 0 ; | |
18550 | PyObject * obj1 = 0 ; | |
18551 | char *kwnames[] = { | |
18552 | (char *) "self",(char *) "m_width", NULL | |
18553 | }; | |
18554 | ||
18555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; | |
18556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18557 | { | |
18558 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18559 | if (PyErr_Occurred()) SWIG_fail; | |
18560 | } | |
18561 | if (arg1) (arg1)->m_width = arg2; | |
18562 | ||
18563 | Py_INCREF(Py_None); resultobj = Py_None; | |
18564 | return resultobj; | |
18565 | fail: | |
18566 | return NULL; | |
18567 | } | |
18568 | ||
18569 | ||
18570 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18571 | PyObject *resultobj; | |
18572 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18573 | int result; | |
18574 | PyObject * obj0 = 0 ; | |
18575 | char *kwnames[] = { | |
18576 | (char *) "self", NULL | |
18577 | }; | |
18578 | ||
18579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
18580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18581 | result = (int) ((arg1)->m_width); | |
18582 | ||
18583 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18584 | return resultobj; | |
18585 | fail: | |
18586 | return NULL; | |
18587 | } | |
18588 | ||
18589 | ||
18590 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
18591 | PyObject *obj; | |
18592 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18593 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
18594 | Py_INCREF(obj); | |
18595 | return Py_BuildValue((char *)""); | |
18596 | } | |
18597 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18598 | PyObject *resultobj; | |
18599 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18600 | int arg2 = (int) 0 ; | |
18601 | wxListEvent *result; | |
18602 | PyObject * obj0 = 0 ; | |
18603 | PyObject * obj1 = 0 ; | |
18604 | char *kwnames[] = { | |
18605 | (char *) "commandType",(char *) "id", NULL | |
18606 | }; | |
18607 | ||
18608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; | |
18609 | if (obj0) { | |
18610 | { | |
18611 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
18612 | if (PyErr_Occurred()) SWIG_fail; | |
18613 | } | |
18614 | } | |
18615 | if (obj1) { | |
18616 | { | |
18617 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18618 | if (PyErr_Occurred()) SWIG_fail; | |
18619 | } | |
18620 | } | |
18621 | { | |
18622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18623 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
18624 | ||
18625 | wxPyEndAllowThreads(__tstate); | |
18626 | if (PyErr_Occurred()) SWIG_fail; | |
18627 | } | |
18628 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListEvent, 1); | |
18629 | return resultobj; | |
18630 | fail: | |
18631 | return NULL; | |
18632 | } | |
18633 | ||
18634 | ||
18635 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18636 | PyObject *resultobj; | |
18637 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18638 | int arg2 ; | |
18639 | PyObject * obj0 = 0 ; | |
18640 | PyObject * obj1 = 0 ; | |
18641 | char *kwnames[] = { | |
18642 | (char *) "self",(char *) "m_code", NULL | |
18643 | }; | |
18644 | ||
18645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; | |
18646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18647 | { | |
18648 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18649 | if (PyErr_Occurred()) SWIG_fail; | |
18650 | } | |
18651 | if (arg1) (arg1)->m_code = arg2; | |
18652 | ||
18653 | Py_INCREF(Py_None); resultobj = Py_None; | |
18654 | return resultobj; | |
18655 | fail: | |
18656 | return NULL; | |
18657 | } | |
18658 | ||
18659 | ||
18660 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18661 | PyObject *resultobj; | |
18662 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18663 | int result; | |
18664 | PyObject * obj0 = 0 ; | |
18665 | char *kwnames[] = { | |
18666 | (char *) "self", NULL | |
18667 | }; | |
18668 | ||
18669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
18670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18671 | result = (int) ((arg1)->m_code); | |
18672 | ||
18673 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18674 | return resultobj; | |
18675 | fail: | |
18676 | return NULL; | |
18677 | } | |
18678 | ||
18679 | ||
18680 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18681 | PyObject *resultobj; | |
18682 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18683 | long arg2 ; | |
18684 | PyObject * obj0 = 0 ; | |
18685 | PyObject * obj1 = 0 ; | |
18686 | char *kwnames[] = { | |
18687 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
18688 | }; | |
18689 | ||
18690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
18691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18692 | { | |
18693 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18694 | if (PyErr_Occurred()) SWIG_fail; | |
18695 | } | |
18696 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
18697 | ||
18698 | Py_INCREF(Py_None); resultobj = Py_None; | |
18699 | return resultobj; | |
18700 | fail: | |
18701 | return NULL; | |
18702 | } | |
18703 | ||
18704 | ||
18705 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18706 | PyObject *resultobj; | |
18707 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18708 | long result; | |
18709 | PyObject * obj0 = 0 ; | |
18710 | char *kwnames[] = { | |
18711 | (char *) "self", NULL | |
18712 | }; | |
18713 | ||
18714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
18715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18716 | result = (long) ((arg1)->m_oldItemIndex); | |
18717 | ||
18718 | resultobj = SWIG_PyObj_FromLong((long)result); | |
18719 | return resultobj; | |
18720 | fail: | |
18721 | return NULL; | |
18722 | } | |
18723 | ||
18724 | ||
18725 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18726 | PyObject *resultobj; | |
18727 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18728 | long arg2 ; | |
18729 | PyObject * obj0 = 0 ; | |
18730 | PyObject * obj1 = 0 ; | |
18731 | char *kwnames[] = { | |
18732 | (char *) "self",(char *) "m_itemIndex", NULL | |
18733 | }; | |
18734 | ||
18735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
18736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18737 | { | |
18738 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
18739 | if (PyErr_Occurred()) SWIG_fail; | |
18740 | } | |
18741 | if (arg1) (arg1)->m_itemIndex = arg2; | |
18742 | ||
18743 | Py_INCREF(Py_None); resultobj = Py_None; | |
18744 | return resultobj; | |
18745 | fail: | |
18746 | return NULL; | |
18747 | } | |
18748 | ||
18749 | ||
18750 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18751 | PyObject *resultobj; | |
18752 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18753 | long result; | |
18754 | PyObject * obj0 = 0 ; | |
18755 | char *kwnames[] = { | |
18756 | (char *) "self", NULL | |
18757 | }; | |
18758 | ||
18759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
18760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18761 | result = (long) ((arg1)->m_itemIndex); | |
18762 | ||
18763 | resultobj = SWIG_PyObj_FromLong((long)result); | |
18764 | return resultobj; | |
18765 | fail: | |
18766 | return NULL; | |
18767 | } | |
18768 | ||
18769 | ||
18770 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18771 | PyObject *resultobj; | |
18772 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18773 | int arg2 ; | |
18774 | PyObject * obj0 = 0 ; | |
18775 | PyObject * obj1 = 0 ; | |
18776 | char *kwnames[] = { | |
18777 | (char *) "self",(char *) "m_col", NULL | |
18778 | }; | |
18779 | ||
18780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
18781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18782 | { | |
18783 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18784 | if (PyErr_Occurred()) SWIG_fail; | |
18785 | } | |
18786 | if (arg1) (arg1)->m_col = arg2; | |
18787 | ||
18788 | Py_INCREF(Py_None); resultobj = Py_None; | |
18789 | return resultobj; | |
18790 | fail: | |
18791 | return NULL; | |
18792 | } | |
18793 | ||
18794 | ||
18795 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18796 | PyObject *resultobj; | |
18797 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18798 | int result; | |
18799 | PyObject * obj0 = 0 ; | |
18800 | char *kwnames[] = { | |
18801 | (char *) "self", NULL | |
18802 | }; | |
18803 | ||
18804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
18805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18806 | result = (int) ((arg1)->m_col); | |
18807 | ||
18808 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18809 | return resultobj; | |
18810 | fail: | |
18811 | return NULL; | |
18812 | } | |
18813 | ||
18814 | ||
18815 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18816 | PyObject *resultobj; | |
18817 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18818 | wxPoint *arg2 = (wxPoint *) 0 ; | |
18819 | PyObject * obj0 = 0 ; | |
18820 | PyObject * obj1 = 0 ; | |
18821 | char *kwnames[] = { | |
18822 | (char *) "self",(char *) "m_pointDrag", NULL | |
18823 | }; | |
18824 | ||
18825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
18826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18827 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18828 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
18829 | ||
18830 | Py_INCREF(Py_None); resultobj = Py_None; | |
18831 | return resultobj; | |
18832 | fail: | |
18833 | return NULL; | |
18834 | } | |
18835 | ||
18836 | ||
18837 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18838 | PyObject *resultobj; | |
18839 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18840 | wxPoint *result; | |
18841 | PyObject * obj0 = 0 ; | |
18842 | char *kwnames[] = { | |
18843 | (char *) "self", NULL | |
18844 | }; | |
18845 | ||
18846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
18847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18848 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
18849 | ||
18850 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
18851 | return resultobj; | |
18852 | fail: | |
18853 | return NULL; | |
18854 | } | |
18855 | ||
18856 | ||
18857 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18858 | PyObject *resultobj; | |
18859 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18860 | wxListItem *result; | |
18861 | PyObject * obj0 = 0 ; | |
18862 | char *kwnames[] = { | |
18863 | (char *) "self", NULL | |
18864 | }; | |
18865 | ||
18866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
18867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18868 | result = (wxListItem *)& ((arg1)->m_item); | |
18869 | ||
18870 | { | |
18871 | resultobj = wxPyMake_wxObject(result); | |
18872 | } | |
18873 | return resultobj; | |
18874 | fail: | |
18875 | return NULL; | |
18876 | } | |
18877 | ||
18878 | ||
18879 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18880 | PyObject *resultobj; | |
18881 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18882 | int result; | |
18883 | PyObject * obj0 = 0 ; | |
18884 | char *kwnames[] = { | |
18885 | (char *) "self", NULL | |
18886 | }; | |
18887 | ||
18888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
18889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18890 | { | |
18891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18892 | result = (int)(arg1)->GetKeyCode(); | |
18893 | ||
18894 | wxPyEndAllowThreads(__tstate); | |
18895 | if (PyErr_Occurred()) SWIG_fail; | |
18896 | } | |
18897 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18898 | return resultobj; | |
18899 | fail: | |
18900 | return NULL; | |
18901 | } | |
18902 | ||
18903 | ||
18904 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18905 | PyObject *resultobj; | |
18906 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18907 | long result; | |
18908 | PyObject * obj0 = 0 ; | |
18909 | char *kwnames[] = { | |
18910 | (char *) "self", NULL | |
18911 | }; | |
18912 | ||
18913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
18914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18915 | { | |
18916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18917 | result = (long)(arg1)->GetIndex(); | |
18918 | ||
18919 | wxPyEndAllowThreads(__tstate); | |
18920 | if (PyErr_Occurred()) SWIG_fail; | |
18921 | } | |
18922 | resultobj = SWIG_PyObj_FromLong((long)result); | |
18923 | return resultobj; | |
18924 | fail: | |
18925 | return NULL; | |
18926 | } | |
18927 | ||
18928 | ||
18929 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18930 | PyObject *resultobj; | |
18931 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18932 | int result; | |
18933 | PyObject * obj0 = 0 ; | |
18934 | char *kwnames[] = { | |
18935 | (char *) "self", NULL | |
18936 | }; | |
18937 | ||
18938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
18939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18940 | { | |
18941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18942 | result = (int)(arg1)->GetColumn(); | |
18943 | ||
18944 | wxPyEndAllowThreads(__tstate); | |
18945 | if (PyErr_Occurred()) SWIG_fail; | |
18946 | } | |
18947 | resultobj = SWIG_PyObj_FromInt((int)result); | |
18948 | return resultobj; | |
18949 | fail: | |
18950 | return NULL; | |
18951 | } | |
18952 | ||
18953 | ||
18954 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18955 | PyObject *resultobj; | |
18956 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18957 | wxPoint result; | |
18958 | PyObject * obj0 = 0 ; | |
18959 | char *kwnames[] = { | |
18960 | (char *) "self", NULL | |
18961 | }; | |
18962 | ||
18963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
18964 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18965 | { | |
18966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18967 | result = (arg1)->GetPoint(); | |
18968 | ||
18969 | wxPyEndAllowThreads(__tstate); | |
18970 | if (PyErr_Occurred()) SWIG_fail; | |
18971 | } | |
18972 | { | |
18973 | wxPoint * resultptr; | |
18974 | resultptr = new wxPoint((wxPoint &) result); | |
18975 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
18976 | } | |
18977 | return resultobj; | |
18978 | fail: | |
18979 | return NULL; | |
18980 | } | |
18981 | ||
18982 | ||
18983 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18984 | PyObject *resultobj; | |
18985 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
18986 | wxString *result; | |
18987 | PyObject * obj0 = 0 ; | |
18988 | char *kwnames[] = { | |
18989 | (char *) "self", NULL | |
18990 | }; | |
18991 | ||
18992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
18993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18994 | { | |
18995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18996 | { | |
18997 | wxString const &_result_ref = (arg1)->GetLabel(); | |
18998 | result = (wxString *) &_result_ref; | |
18999 | } | |
19000 | ||
19001 | wxPyEndAllowThreads(__tstate); | |
19002 | if (PyErr_Occurred()) SWIG_fail; | |
19003 | } | |
19004 | { | |
19005 | #if wxUSE_UNICODE | |
19006 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19007 | #else | |
19008 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19009 | #endif | |
19010 | } | |
19011 | return resultobj; | |
19012 | fail: | |
19013 | return NULL; | |
19014 | } | |
19015 | ||
19016 | ||
19017 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19018 | PyObject *resultobj; | |
19019 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19020 | wxString *result; | |
19021 | PyObject * obj0 = 0 ; | |
19022 | char *kwnames[] = { | |
19023 | (char *) "self", NULL | |
19024 | }; | |
19025 | ||
19026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
19027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19028 | { | |
19029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19030 | { | |
19031 | wxString const &_result_ref = (arg1)->GetText(); | |
19032 | result = (wxString *) &_result_ref; | |
19033 | } | |
19034 | ||
19035 | wxPyEndAllowThreads(__tstate); | |
19036 | if (PyErr_Occurred()) SWIG_fail; | |
19037 | } | |
19038 | { | |
19039 | #if wxUSE_UNICODE | |
19040 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19041 | #else | |
19042 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19043 | #endif | |
19044 | } | |
19045 | return resultobj; | |
19046 | fail: | |
19047 | return NULL; | |
19048 | } | |
19049 | ||
19050 | ||
19051 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19052 | PyObject *resultobj; | |
19053 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19054 | int result; | |
19055 | PyObject * obj0 = 0 ; | |
19056 | char *kwnames[] = { | |
19057 | (char *) "self", NULL | |
19058 | }; | |
19059 | ||
19060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
19061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19062 | { | |
19063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19064 | result = (int)(arg1)->GetImage(); | |
19065 | ||
19066 | wxPyEndAllowThreads(__tstate); | |
19067 | if (PyErr_Occurred()) SWIG_fail; | |
19068 | } | |
19069 | resultobj = SWIG_PyObj_FromInt((int)result); | |
19070 | return resultobj; | |
19071 | fail: | |
19072 | return NULL; | |
19073 | } | |
19074 | ||
19075 | ||
19076 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19077 | PyObject *resultobj; | |
19078 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19079 | long result; | |
19080 | PyObject * obj0 = 0 ; | |
19081 | char *kwnames[] = { | |
19082 | (char *) "self", NULL | |
19083 | }; | |
19084 | ||
19085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
19086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19087 | { | |
19088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19089 | result = (long)(arg1)->GetData(); | |
19090 | ||
19091 | wxPyEndAllowThreads(__tstate); | |
19092 | if (PyErr_Occurred()) SWIG_fail; | |
19093 | } | |
19094 | resultobj = SWIG_PyObj_FromLong((long)result); | |
19095 | return resultobj; | |
19096 | fail: | |
19097 | return NULL; | |
19098 | } | |
19099 | ||
19100 | ||
19101 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19102 | PyObject *resultobj; | |
19103 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19104 | long result; | |
19105 | PyObject * obj0 = 0 ; | |
19106 | char *kwnames[] = { | |
19107 | (char *) "self", NULL | |
19108 | }; | |
19109 | ||
19110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
19111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19112 | { | |
19113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19114 | result = (long)(arg1)->GetMask(); | |
19115 | ||
19116 | wxPyEndAllowThreads(__tstate); | |
19117 | if (PyErr_Occurred()) SWIG_fail; | |
19118 | } | |
19119 | resultobj = SWIG_PyObj_FromLong((long)result); | |
19120 | return resultobj; | |
19121 | fail: | |
19122 | return NULL; | |
19123 | } | |
19124 | ||
19125 | ||
19126 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19127 | PyObject *resultobj; | |
19128 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19129 | wxListItem *result; | |
19130 | PyObject * obj0 = 0 ; | |
19131 | char *kwnames[] = { | |
19132 | (char *) "self", NULL | |
19133 | }; | |
19134 | ||
19135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
19136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19137 | { | |
19138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19139 | { | |
19140 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
19141 | result = (wxListItem *) &_result_ref; | |
19142 | } | |
19143 | ||
19144 | wxPyEndAllowThreads(__tstate); | |
19145 | if (PyErr_Occurred()) SWIG_fail; | |
19146 | } | |
19147 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItem, 0); | |
19148 | return resultobj; | |
19149 | fail: | |
19150 | return NULL; | |
19151 | } | |
19152 | ||
19153 | ||
19154 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19155 | PyObject *resultobj; | |
19156 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19157 | long result; | |
19158 | PyObject * obj0 = 0 ; | |
19159 | char *kwnames[] = { | |
19160 | (char *) "self", NULL | |
19161 | }; | |
19162 | ||
19163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
19164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19165 | { | |
19166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19167 | result = (long)(arg1)->GetCacheFrom(); | |
19168 | ||
19169 | wxPyEndAllowThreads(__tstate); | |
19170 | if (PyErr_Occurred()) SWIG_fail; | |
19171 | } | |
19172 | resultobj = SWIG_PyObj_FromLong((long)result); | |
19173 | return resultobj; | |
19174 | fail: | |
19175 | return NULL; | |
19176 | } | |
19177 | ||
19178 | ||
19179 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19180 | PyObject *resultobj; | |
19181 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19182 | long result; | |
19183 | PyObject * obj0 = 0 ; | |
19184 | char *kwnames[] = { | |
19185 | (char *) "self", NULL | |
19186 | }; | |
19187 | ||
19188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
19189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19190 | { | |
19191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19192 | result = (long)(arg1)->GetCacheTo(); | |
19193 | ||
19194 | wxPyEndAllowThreads(__tstate); | |
19195 | if (PyErr_Occurred()) SWIG_fail; | |
19196 | } | |
19197 | resultobj = SWIG_PyObj_FromLong((long)result); | |
19198 | return resultobj; | |
19199 | fail: | |
19200 | return NULL; | |
19201 | } | |
19202 | ||
19203 | ||
19204 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19205 | PyObject *resultobj; | |
19206 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19207 | bool result; | |
19208 | PyObject * obj0 = 0 ; | |
19209 | char *kwnames[] = { | |
19210 | (char *) "self", NULL | |
19211 | }; | |
19212 | ||
19213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
19214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19215 | { | |
19216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19217 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
19218 | ||
19219 | wxPyEndAllowThreads(__tstate); | |
19220 | if (PyErr_Occurred()) SWIG_fail; | |
19221 | } | |
19222 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19223 | return resultobj; | |
19224 | fail: | |
19225 | return NULL; | |
19226 | } | |
19227 | ||
19228 | ||
19229 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19230 | PyObject *resultobj; | |
19231 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19232 | bool arg2 ; | |
19233 | PyObject * obj0 = 0 ; | |
19234 | PyObject * obj1 = 0 ; | |
19235 | char *kwnames[] = { | |
19236 | (char *) "self",(char *) "editCancelled", NULL | |
19237 | }; | |
19238 | ||
19239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
19240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19241 | { | |
19242 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
19243 | if (PyErr_Occurred()) SWIG_fail; | |
19244 | } | |
19245 | { | |
19246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19247 | (arg1)->SetEditCanceled(arg2); | |
19248 | ||
19249 | wxPyEndAllowThreads(__tstate); | |
19250 | if (PyErr_Occurred()) SWIG_fail; | |
19251 | } | |
19252 | Py_INCREF(Py_None); resultobj = Py_None; | |
19253 | return resultobj; | |
19254 | fail: | |
19255 | return NULL; | |
19256 | } | |
19257 | ||
19258 | ||
19259 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
19260 | PyObject *obj; | |
19261 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19262 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
19263 | Py_INCREF(obj); | |
19264 | return Py_BuildValue((char *)""); | |
19265 | } | |
19266 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19267 | PyObject *resultobj; | |
19268 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19269 | int arg2 = (int) -1 ; | |
19270 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
19271 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19272 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19273 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19274 | long arg5 = (long) wxLC_ICON ; | |
19275 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
19276 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
19277 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
19278 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19279 | wxPyListCtrl *result; | |
19280 | wxPoint temp3 ; | |
19281 | wxSize temp4 ; | |
19282 | bool temp7 = False ; | |
19283 | PyObject * obj0 = 0 ; | |
19284 | PyObject * obj1 = 0 ; | |
19285 | PyObject * obj2 = 0 ; | |
19286 | PyObject * obj3 = 0 ; | |
19287 | PyObject * obj4 = 0 ; | |
19288 | PyObject * obj5 = 0 ; | |
19289 | PyObject * obj6 = 0 ; | |
19290 | char *kwnames[] = { | |
19291 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19292 | }; | |
19293 | ||
19294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
19295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19296 | if (obj1) { | |
19297 | { | |
19298 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19299 | if (PyErr_Occurred()) SWIG_fail; | |
19300 | } | |
19301 | } | |
19302 | if (obj2) { | |
19303 | { | |
19304 | arg3 = &temp3; | |
19305 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19306 | } | |
19307 | } | |
19308 | if (obj3) { | |
19309 | { | |
19310 | arg4 = &temp4; | |
19311 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19312 | } | |
19313 | } | |
19314 | if (obj4) { | |
19315 | { | |
19316 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
19317 | if (PyErr_Occurred()) SWIG_fail; | |
19318 | } | |
19319 | } | |
19320 | if (obj5) { | |
19321 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19322 | if (arg6 == NULL) { | |
19323 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19324 | } | |
19325 | } | |
19326 | if (obj6) { | |
19327 | { | |
19328 | arg7 = wxString_in_helper(obj6); | |
19329 | if (arg7 == NULL) SWIG_fail; | |
19330 | temp7 = True; | |
19331 | } | |
19332 | } | |
19333 | { | |
19334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19335 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
19336 | ||
19337 | wxPyEndAllowThreads(__tstate); | |
19338 | if (PyErr_Occurred()) SWIG_fail; | |
19339 | } | |
19340 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
19341 | { | |
19342 | if (temp7) | |
19343 | delete arg7; | |
19344 | } | |
19345 | return resultobj; | |
19346 | fail: | |
19347 | { | |
19348 | if (temp7) | |
19349 | delete arg7; | |
19350 | } | |
19351 | return NULL; | |
19352 | } | |
19353 | ||
19354 | ||
19355 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19356 | PyObject *resultobj; | |
19357 | wxPyListCtrl *result; | |
19358 | char *kwnames[] = { | |
19359 | NULL | |
19360 | }; | |
19361 | ||
19362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
19363 | { | |
19364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19365 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
19366 | ||
19367 | wxPyEndAllowThreads(__tstate); | |
19368 | if (PyErr_Occurred()) SWIG_fail; | |
19369 | } | |
19370 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
19371 | return resultobj; | |
19372 | fail: | |
19373 | return NULL; | |
19374 | } | |
19375 | ||
19376 | ||
19377 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19378 | PyObject *resultobj; | |
19379 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19380 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19381 | int arg3 = (int) -1 ; | |
19382 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
19383 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19384 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19385 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19386 | long arg6 = (long) wxLC_ICON ; | |
19387 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
19388 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
19389 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
19390 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19391 | bool result; | |
19392 | wxPoint temp4 ; | |
19393 | wxSize temp5 ; | |
19394 | bool temp8 = False ; | |
19395 | PyObject * obj0 = 0 ; | |
19396 | PyObject * obj1 = 0 ; | |
19397 | PyObject * obj2 = 0 ; | |
19398 | PyObject * obj3 = 0 ; | |
19399 | PyObject * obj4 = 0 ; | |
19400 | PyObject * obj5 = 0 ; | |
19401 | PyObject * obj6 = 0 ; | |
19402 | PyObject * obj7 = 0 ; | |
19403 | char *kwnames[] = { | |
19404 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19405 | }; | |
19406 | ||
19407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
19408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19409 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19410 | if (obj2) { | |
19411 | { | |
19412 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
19413 | if (PyErr_Occurred()) SWIG_fail; | |
19414 | } | |
19415 | } | |
19416 | if (obj3) { | |
19417 | { | |
19418 | arg4 = &temp4; | |
19419 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
19420 | } | |
19421 | } | |
19422 | if (obj4) { | |
19423 | { | |
19424 | arg5 = &temp5; | |
19425 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
19426 | } | |
19427 | } | |
19428 | if (obj5) { | |
19429 | { | |
19430 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
19431 | if (PyErr_Occurred()) SWIG_fail; | |
19432 | } | |
19433 | } | |
19434 | if (obj6) { | |
19435 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19436 | if (arg7 == NULL) { | |
19437 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19438 | } | |
19439 | } | |
19440 | if (obj7) { | |
19441 | { | |
19442 | arg8 = wxString_in_helper(obj7); | |
19443 | if (arg8 == NULL) SWIG_fail; | |
19444 | temp8 = True; | |
19445 | } | |
19446 | } | |
19447 | { | |
19448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19449 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
19450 | ||
19451 | wxPyEndAllowThreads(__tstate); | |
19452 | if (PyErr_Occurred()) SWIG_fail; | |
19453 | } | |
19454 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19455 | { | |
19456 | if (temp8) | |
19457 | delete arg8; | |
19458 | } | |
19459 | return resultobj; | |
19460 | fail: | |
19461 | { | |
19462 | if (temp8) | |
19463 | delete arg8; | |
19464 | } | |
19465 | return NULL; | |
19466 | } | |
19467 | ||
19468 | ||
19469 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19470 | PyObject *resultobj; | |
19471 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19472 | PyObject *arg2 = (PyObject *) 0 ; | |
19473 | PyObject *arg3 = (PyObject *) 0 ; | |
19474 | PyObject * obj0 = 0 ; | |
19475 | PyObject * obj1 = 0 ; | |
19476 | PyObject * obj2 = 0 ; | |
19477 | char *kwnames[] = { | |
19478 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19479 | }; | |
19480 | ||
19481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19483 | arg2 = obj1; | |
19484 | arg3 = obj2; | |
19485 | { | |
19486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19487 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19488 | ||
19489 | wxPyEndAllowThreads(__tstate); | |
19490 | if (PyErr_Occurred()) SWIG_fail; | |
19491 | } | |
19492 | Py_INCREF(Py_None); resultobj = Py_None; | |
19493 | return resultobj; | |
19494 | fail: | |
19495 | return NULL; | |
19496 | } | |
19497 | ||
19498 | ||
19499 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19500 | PyObject *resultobj; | |
19501 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19502 | wxColour *arg2 = 0 ; | |
19503 | bool result; | |
19504 | wxColour temp2 ; | |
19505 | PyObject * obj0 = 0 ; | |
19506 | PyObject * obj1 = 0 ; | |
19507 | char *kwnames[] = { | |
19508 | (char *) "self",(char *) "col", NULL | |
19509 | }; | |
19510 | ||
19511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
19512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19513 | { | |
19514 | arg2 = &temp2; | |
19515 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19516 | } | |
19517 | { | |
19518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19519 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
19520 | ||
19521 | wxPyEndAllowThreads(__tstate); | |
19522 | if (PyErr_Occurred()) SWIG_fail; | |
19523 | } | |
19524 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19525 | return resultobj; | |
19526 | fail: | |
19527 | return NULL; | |
19528 | } | |
19529 | ||
19530 | ||
19531 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19532 | PyObject *resultobj; | |
19533 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19534 | wxColour *arg2 = 0 ; | |
19535 | bool result; | |
19536 | wxColour temp2 ; | |
19537 | PyObject * obj0 = 0 ; | |
19538 | PyObject * obj1 = 0 ; | |
19539 | char *kwnames[] = { | |
19540 | (char *) "self",(char *) "col", NULL | |
19541 | }; | |
19542 | ||
19543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
19544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19545 | { | |
19546 | arg2 = &temp2; | |
19547 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19548 | } | |
19549 | { | |
19550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19551 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19552 | ||
19553 | wxPyEndAllowThreads(__tstate); | |
19554 | if (PyErr_Occurred()) SWIG_fail; | |
19555 | } | |
19556 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19557 | return resultobj; | |
19558 | fail: | |
19559 | return NULL; | |
19560 | } | |
19561 | ||
19562 | ||
19563 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19564 | PyObject *resultobj; | |
19565 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19566 | int arg2 ; | |
19567 | wxListItem *result; | |
19568 | PyObject * obj0 = 0 ; | |
19569 | PyObject * obj1 = 0 ; | |
19570 | char *kwnames[] = { | |
19571 | (char *) "self",(char *) "col", NULL | |
19572 | }; | |
19573 | ||
19574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; | |
19575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19576 | { | |
19577 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19578 | if (PyErr_Occurred()) SWIG_fail; | |
19579 | } | |
19580 | { | |
19581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19582 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
19583 | ||
19584 | wxPyEndAllowThreads(__tstate); | |
19585 | if (PyErr_Occurred()) SWIG_fail; | |
19586 | } | |
19587 | { | |
19588 | resultobj = wxPyMake_wxObject(result); | |
19589 | } | |
19590 | return resultobj; | |
19591 | fail: | |
19592 | return NULL; | |
19593 | } | |
19594 | ||
19595 | ||
19596 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19597 | PyObject *resultobj; | |
19598 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19599 | int arg2 ; | |
19600 | wxListItem *arg3 = 0 ; | |
19601 | bool result; | |
19602 | PyObject * obj0 = 0 ; | |
19603 | PyObject * obj1 = 0 ; | |
19604 | PyObject * obj2 = 0 ; | |
19605 | char *kwnames[] = { | |
19606 | (char *) "self",(char *) "col",(char *) "item", NULL | |
19607 | }; | |
19608 | ||
19609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19611 | { | |
19612 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19613 | if (PyErr_Occurred()) SWIG_fail; | |
19614 | } | |
19615 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19616 | if (arg3 == NULL) { | |
19617 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19618 | } | |
19619 | { | |
19620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19621 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
19622 | ||
19623 | wxPyEndAllowThreads(__tstate); | |
19624 | if (PyErr_Occurred()) SWIG_fail; | |
19625 | } | |
19626 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19627 | return resultobj; | |
19628 | fail: | |
19629 | return NULL; | |
19630 | } | |
19631 | ||
19632 | ||
19633 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19634 | PyObject *resultobj; | |
19635 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19636 | int arg2 ; | |
19637 | int result; | |
19638 | PyObject * obj0 = 0 ; | |
19639 | PyObject * obj1 = 0 ; | |
19640 | char *kwnames[] = { | |
19641 | (char *) "self",(char *) "col", NULL | |
19642 | }; | |
19643 | ||
19644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; | |
19645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19646 | { | |
19647 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19648 | if (PyErr_Occurred()) SWIG_fail; | |
19649 | } | |
19650 | { | |
19651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19652 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
19653 | ||
19654 | wxPyEndAllowThreads(__tstate); | |
19655 | if (PyErr_Occurred()) SWIG_fail; | |
19656 | } | |
19657 | resultobj = SWIG_PyObj_FromInt((int)result); | |
19658 | return resultobj; | |
19659 | fail: | |
19660 | return NULL; | |
19661 | } | |
19662 | ||
19663 | ||
19664 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19665 | PyObject *resultobj; | |
19666 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19667 | int arg2 ; | |
19668 | int arg3 ; | |
19669 | bool result; | |
19670 | PyObject * obj0 = 0 ; | |
19671 | PyObject * obj1 = 0 ; | |
19672 | PyObject * obj2 = 0 ; | |
19673 | char *kwnames[] = { | |
19674 | (char *) "self",(char *) "col",(char *) "width", NULL | |
19675 | }; | |
19676 | ||
19677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19679 | { | |
19680 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19681 | if (PyErr_Occurred()) SWIG_fail; | |
19682 | } | |
19683 | { | |
19684 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
19685 | if (PyErr_Occurred()) SWIG_fail; | |
19686 | } | |
19687 | { | |
19688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19689 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
19690 | ||
19691 | wxPyEndAllowThreads(__tstate); | |
19692 | if (PyErr_Occurred()) SWIG_fail; | |
19693 | } | |
19694 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19695 | return resultobj; | |
19696 | fail: | |
19697 | return NULL; | |
19698 | } | |
19699 | ||
19700 | ||
19701 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19702 | PyObject *resultobj; | |
19703 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19704 | int result; | |
19705 | PyObject * obj0 = 0 ; | |
19706 | char *kwnames[] = { | |
19707 | (char *) "self", NULL | |
19708 | }; | |
19709 | ||
19710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
19711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19712 | { | |
19713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19714 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
19715 | ||
19716 | wxPyEndAllowThreads(__tstate); | |
19717 | if (PyErr_Occurred()) SWIG_fail; | |
19718 | } | |
19719 | resultobj = SWIG_PyObj_FromInt((int)result); | |
19720 | return resultobj; | |
19721 | fail: | |
19722 | return NULL; | |
19723 | } | |
19724 | ||
19725 | ||
19726 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19727 | PyObject *resultobj; | |
19728 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19729 | wxRect result; | |
19730 | PyObject * obj0 = 0 ; | |
19731 | char *kwnames[] = { | |
19732 | (char *) "self", NULL | |
19733 | }; | |
19734 | ||
19735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
19736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19737 | { | |
19738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19739 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
19740 | ||
19741 | wxPyEndAllowThreads(__tstate); | |
19742 | if (PyErr_Occurred()) SWIG_fail; | |
19743 | } | |
19744 | { | |
19745 | wxRect * resultptr; | |
19746 | resultptr = new wxRect((wxRect &) result); | |
19747 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
19748 | } | |
19749 | return resultobj; | |
19750 | fail: | |
19751 | return NULL; | |
19752 | } | |
19753 | ||
19754 | ||
19755 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19756 | PyObject *resultobj; | |
19757 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19758 | long arg2 ; | |
19759 | int arg3 = (int) 0 ; | |
19760 | wxListItem *result; | |
19761 | PyObject * obj0 = 0 ; | |
19762 | PyObject * obj1 = 0 ; | |
19763 | PyObject * obj2 = 0 ; | |
19764 | char *kwnames[] = { | |
19765 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
19766 | }; | |
19767 | ||
19768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19770 | { | |
19771 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19772 | if (PyErr_Occurred()) SWIG_fail; | |
19773 | } | |
19774 | if (obj2) { | |
19775 | { | |
19776 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
19777 | if (PyErr_Occurred()) SWIG_fail; | |
19778 | } | |
19779 | } | |
19780 | { | |
19781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19782 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
19783 | ||
19784 | wxPyEndAllowThreads(__tstate); | |
19785 | if (PyErr_Occurred()) SWIG_fail; | |
19786 | } | |
19787 | { | |
19788 | resultobj = wxPyMake_wxObject(result); | |
19789 | } | |
19790 | return resultobj; | |
19791 | fail: | |
19792 | return NULL; | |
19793 | } | |
19794 | ||
19795 | ||
19796 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19797 | PyObject *resultobj; | |
19798 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19799 | wxListItem *arg2 = 0 ; | |
19800 | bool result; | |
19801 | PyObject * obj0 = 0 ; | |
19802 | PyObject * obj1 = 0 ; | |
19803 | char *kwnames[] = { | |
19804 | (char *) "self",(char *) "info", NULL | |
19805 | }; | |
19806 | ||
19807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
19808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19809 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19810 | if (arg2 == NULL) { | |
19811 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19812 | } | |
19813 | { | |
19814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19815 | result = (bool)(arg1)->SetItem(*arg2); | |
19816 | ||
19817 | wxPyEndAllowThreads(__tstate); | |
19818 | if (PyErr_Occurred()) SWIG_fail; | |
19819 | } | |
19820 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19821 | return resultobj; | |
19822 | fail: | |
19823 | return NULL; | |
19824 | } | |
19825 | ||
19826 | ||
19827 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19828 | PyObject *resultobj; | |
19829 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19830 | long arg2 ; | |
19831 | int arg3 ; | |
19832 | wxString *arg4 = 0 ; | |
19833 | int arg5 = (int) -1 ; | |
19834 | long result; | |
19835 | bool temp4 = False ; | |
19836 | PyObject * obj0 = 0 ; | |
19837 | PyObject * obj1 = 0 ; | |
19838 | PyObject * obj2 = 0 ; | |
19839 | PyObject * obj3 = 0 ; | |
19840 | PyObject * obj4 = 0 ; | |
19841 | char *kwnames[] = { | |
19842 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
19843 | }; | |
19844 | ||
19845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
19846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19847 | { | |
19848 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19849 | if (PyErr_Occurred()) SWIG_fail; | |
19850 | } | |
19851 | { | |
19852 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
19853 | if (PyErr_Occurred()) SWIG_fail; | |
19854 | } | |
19855 | { | |
19856 | arg4 = wxString_in_helper(obj3); | |
19857 | if (arg4 == NULL) SWIG_fail; | |
19858 | temp4 = True; | |
19859 | } | |
19860 | if (obj4) { | |
19861 | { | |
19862 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
19863 | if (PyErr_Occurred()) SWIG_fail; | |
19864 | } | |
19865 | } | |
19866 | { | |
19867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19868 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
19869 | ||
19870 | wxPyEndAllowThreads(__tstate); | |
19871 | if (PyErr_Occurred()) SWIG_fail; | |
19872 | } | |
19873 | resultobj = SWIG_PyObj_FromLong((long)result); | |
19874 | { | |
19875 | if (temp4) | |
19876 | delete arg4; | |
19877 | } | |
19878 | return resultobj; | |
19879 | fail: | |
19880 | { | |
19881 | if (temp4) | |
19882 | delete arg4; | |
19883 | } | |
19884 | return NULL; | |
19885 | } | |
19886 | ||
19887 | ||
19888 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19889 | PyObject *resultobj; | |
19890 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19891 | long arg2 ; | |
19892 | long arg3 ; | |
19893 | int result; | |
19894 | PyObject * obj0 = 0 ; | |
19895 | PyObject * obj1 = 0 ; | |
19896 | PyObject * obj2 = 0 ; | |
19897 | char *kwnames[] = { | |
19898 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
19899 | }; | |
19900 | ||
19901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19903 | { | |
19904 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19905 | if (PyErr_Occurred()) SWIG_fail; | |
19906 | } | |
19907 | { | |
19908 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
19909 | if (PyErr_Occurred()) SWIG_fail; | |
19910 | } | |
19911 | { | |
19912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19913 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
19914 | ||
19915 | wxPyEndAllowThreads(__tstate); | |
19916 | if (PyErr_Occurred()) SWIG_fail; | |
19917 | } | |
19918 | resultobj = SWIG_PyObj_FromInt((int)result); | |
19919 | return resultobj; | |
19920 | fail: | |
19921 | return NULL; | |
19922 | } | |
19923 | ||
19924 | ||
19925 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19926 | PyObject *resultobj; | |
19927 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19928 | long arg2 ; | |
19929 | long arg3 ; | |
19930 | long arg4 ; | |
19931 | bool result; | |
19932 | PyObject * obj0 = 0 ; | |
19933 | PyObject * obj1 = 0 ; | |
19934 | PyObject * obj2 = 0 ; | |
19935 | PyObject * obj3 = 0 ; | |
19936 | char *kwnames[] = { | |
19937 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
19938 | }; | |
19939 | ||
19940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19942 | { | |
19943 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19944 | if (PyErr_Occurred()) SWIG_fail; | |
19945 | } | |
19946 | { | |
19947 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
19948 | if (PyErr_Occurred()) SWIG_fail; | |
19949 | } | |
19950 | { | |
19951 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
19952 | if (PyErr_Occurred()) SWIG_fail; | |
19953 | } | |
19954 | { | |
19955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19956 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
19957 | ||
19958 | wxPyEndAllowThreads(__tstate); | |
19959 | if (PyErr_Occurred()) SWIG_fail; | |
19960 | } | |
19961 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
19962 | return resultobj; | |
19963 | fail: | |
19964 | return NULL; | |
19965 | } | |
19966 | ||
19967 | ||
19968 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19969 | PyObject *resultobj; | |
19970 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19971 | long arg2 ; | |
19972 | int arg3 ; | |
19973 | int arg4 ; | |
19974 | bool result; | |
19975 | PyObject * obj0 = 0 ; | |
19976 | PyObject * obj1 = 0 ; | |
19977 | PyObject * obj2 = 0 ; | |
19978 | PyObject * obj3 = 0 ; | |
19979 | char *kwnames[] = { | |
19980 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
19981 | }; | |
19982 | ||
19983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19985 | { | |
19986 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
19987 | if (PyErr_Occurred()) SWIG_fail; | |
19988 | } | |
19989 | { | |
19990 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
19991 | if (PyErr_Occurred()) SWIG_fail; | |
19992 | } | |
19993 | { | |
19994 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
19995 | if (PyErr_Occurred()) SWIG_fail; | |
19996 | } | |
19997 | { | |
19998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19999 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
20000 | ||
20001 | wxPyEndAllowThreads(__tstate); | |
20002 | if (PyErr_Occurred()) SWIG_fail; | |
20003 | } | |
20004 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
20005 | return resultobj; | |
20006 | fail: | |
20007 | return NULL; | |
20008 | } | |
20009 | ||
20010 | ||
20011 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20012 | PyObject *resultobj; | |
20013 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20014 | long arg2 ; | |
20015 | wxString result; | |
20016 | PyObject * obj0 = 0 ; | |
20017 | PyObject * obj1 = 0 ; | |
20018 | char *kwnames[] = { | |
20019 | (char *) "self",(char *) "item", NULL | |
20020 | }; | |
20021 | ||
20022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
20023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20024 | { | |
20025 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20026 | if (PyErr_Occurred()) SWIG_fail; | |
20027 | } | |
20028 | { | |
20029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20030 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
20031 | ||
20032 | wxPyEndAllowThreads(__tstate); | |
20033 | if (PyErr_Occurred()) SWIG_fail; | |
20034 | } | |
20035 | { | |
20036 | #if wxUSE_UNICODE | |
20037 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20038 | #else | |
20039 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20040 | #endif | |
20041 | } | |
20042 | return resultobj; | |
20043 | fail: | |
20044 | return NULL; | |
20045 | } | |
20046 | ||
20047 | ||
20048 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20049 | PyObject *resultobj; | |
20050 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20051 | long arg2 ; | |
20052 | wxString *arg3 = 0 ; | |
20053 | bool temp3 = False ; | |
20054 | PyObject * obj0 = 0 ; | |
20055 | PyObject * obj1 = 0 ; | |
20056 | PyObject * obj2 = 0 ; | |
20057 | char *kwnames[] = { | |
20058 | (char *) "self",(char *) "item",(char *) "str", NULL | |
20059 | }; | |
20060 | ||
20061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20063 | { | |
20064 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20065 | if (PyErr_Occurred()) SWIG_fail; | |
20066 | } | |
20067 | { | |
20068 | arg3 = wxString_in_helper(obj2); | |
20069 | if (arg3 == NULL) SWIG_fail; | |
20070 | temp3 = True; | |
20071 | } | |
20072 | { | |
20073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20074 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
20075 | ||
20076 | wxPyEndAllowThreads(__tstate); | |
20077 | if (PyErr_Occurred()) SWIG_fail; | |
20078 | } | |
20079 | Py_INCREF(Py_None); resultobj = Py_None; | |
20080 | { | |
20081 | if (temp3) | |
20082 | delete arg3; | |
20083 | } | |
20084 | return resultobj; | |
20085 | fail: | |
20086 | { | |
20087 | if (temp3) | |
20088 | delete arg3; | |
20089 | } | |
20090 | return NULL; | |
20091 | } | |
20092 | ||
20093 | ||
20094 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20095 | PyObject *resultobj; | |
20096 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20097 | long arg2 ; | |
20098 | long result; | |
20099 | PyObject * obj0 = 0 ; | |
20100 | PyObject * obj1 = 0 ; | |
20101 | char *kwnames[] = { | |
20102 | (char *) "self",(char *) "item", NULL | |
20103 | }; | |
20104 | ||
20105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
20106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20107 | { | |
20108 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20109 | if (PyErr_Occurred()) SWIG_fail; | |
20110 | } | |
20111 | { | |
20112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20113 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
20114 | ||
20115 | wxPyEndAllowThreads(__tstate); | |
20116 | if (PyErr_Occurred()) SWIG_fail; | |
20117 | } | |
20118 | resultobj = SWIG_PyObj_FromLong((long)result); | |
20119 | return resultobj; | |
20120 | fail: | |
20121 | return NULL; | |
20122 | } | |
20123 | ||
20124 | ||
20125 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20126 | PyObject *resultobj; | |
20127 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20128 | long arg2 ; | |
20129 | long arg3 ; | |
20130 | bool result; | |
20131 | PyObject * obj0 = 0 ; | |
20132 | PyObject * obj1 = 0 ; | |
20133 | PyObject * obj2 = 0 ; | |
20134 | char *kwnames[] = { | |
20135 | (char *) "self",(char *) "item",(char *) "data", NULL | |
20136 | }; | |
20137 | ||
20138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20140 | { | |
20141 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20142 | if (PyErr_Occurred()) SWIG_fail; | |
20143 | } | |
20144 | { | |
20145 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20146 | if (PyErr_Occurred()) SWIG_fail; | |
20147 | } | |
20148 | { | |
20149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20150 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
20151 | ||
20152 | wxPyEndAllowThreads(__tstate); | |
20153 | if (PyErr_Occurred()) SWIG_fail; | |
20154 | } | |
20155 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
20156 | return resultobj; | |
20157 | fail: | |
20158 | return NULL; | |
20159 | } | |
20160 | ||
20161 | ||
20162 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20163 | PyObject *resultobj; | |
20164 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20165 | long arg2 ; | |
20166 | wxPoint result; | |
20167 | PyObject * obj0 = 0 ; | |
20168 | PyObject * obj1 = 0 ; | |
20169 | char *kwnames[] = { | |
20170 | (char *) "self",(char *) "item", NULL | |
20171 | }; | |
20172 | ||
20173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; | |
20174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20175 | { | |
20176 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20177 | if (PyErr_Occurred()) SWIG_fail; | |
20178 | } | |
20179 | { | |
20180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20181 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
20182 | ||
20183 | wxPyEndAllowThreads(__tstate); | |
20184 | if (PyErr_Occurred()) SWIG_fail; | |
20185 | } | |
20186 | { | |
20187 | wxPoint * resultptr; | |
20188 | resultptr = new wxPoint((wxPoint &) result); | |
20189 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20190 | } | |
20191 | return resultobj; | |
20192 | fail: | |
20193 | return NULL; | |
20194 | } | |
20195 | ||
20196 | ||
20197 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20198 | PyObject *resultobj; | |
20199 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20200 | long arg2 ; | |
20201 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
20202 | wxRect result; | |
20203 | PyObject * obj0 = 0 ; | |
20204 | PyObject * obj1 = 0 ; | |
20205 | PyObject * obj2 = 0 ; | |
20206 | char *kwnames[] = { | |
20207 | (char *) "self",(char *) "item",(char *) "code", NULL | |
20208 | }; | |
20209 | ||
20210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20212 | { | |
20213 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20214 | if (PyErr_Occurred()) SWIG_fail; | |
20215 | } | |
20216 | if (obj2) { | |
20217 | { | |
20218 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20219 | if (PyErr_Occurred()) SWIG_fail; | |
20220 | } | |
20221 | } | |
20222 | { | |
20223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20224 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
20225 | ||
20226 | wxPyEndAllowThreads(__tstate); | |
20227 | if (PyErr_Occurred()) SWIG_fail; | |
20228 | } | |
20229 | { | |
20230 | wxRect * resultptr; | |
20231 | resultptr = new wxRect((wxRect &) result); | |
20232 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20233 | } | |
20234 | return resultobj; | |
20235 | fail: | |
20236 | return NULL; | |
20237 | } | |
20238 | ||
20239 | ||
20240 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20241 | PyObject *resultobj; | |
20242 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20243 | long arg2 ; | |
20244 | wxPoint *arg3 = 0 ; | |
20245 | bool result; | |
20246 | wxPoint temp3 ; | |
20247 | PyObject * obj0 = 0 ; | |
20248 | PyObject * obj1 = 0 ; | |
20249 | PyObject * obj2 = 0 ; | |
20250 | char *kwnames[] = { | |
20251 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
20252 | }; | |
20253 | ||
20254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20256 | { | |
20257 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20258 | if (PyErr_Occurred()) SWIG_fail; | |
20259 | } | |
20260 | { | |
20261 | arg3 = &temp3; | |
20262 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20263 | } | |
20264 | { | |
20265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20266 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
20267 | ||
20268 | wxPyEndAllowThreads(__tstate); | |
20269 | if (PyErr_Occurred()) SWIG_fail; | |
20270 | } | |
20271 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
20272 | return resultobj; | |
20273 | fail: | |
20274 | return NULL; | |
20275 | } | |
20276 | ||
20277 | ||
20278 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20279 | PyObject *resultobj; | |
20280 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20281 | int result; | |
20282 | PyObject * obj0 = 0 ; | |
20283 | char *kwnames[] = { | |
20284 | (char *) "self", NULL | |
20285 | }; | |
20286 | ||
20287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
20288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20289 | { | |
20290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20291 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
20292 | ||
20293 | wxPyEndAllowThreads(__tstate); | |
20294 | if (PyErr_Occurred()) SWIG_fail; | |
20295 | } | |
20296 | resultobj = SWIG_PyObj_FromInt((int)result); | |
20297 | return resultobj; | |
20298 | fail: | |
20299 | return NULL; | |
20300 | } | |
20301 | ||
20302 | ||
20303 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20304 | PyObject *resultobj; | |
20305 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20306 | int result; | |
20307 | PyObject * obj0 = 0 ; | |
20308 | char *kwnames[] = { | |
20309 | (char *) "self", NULL | |
20310 | }; | |
20311 | ||
20312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
20313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20314 | { | |
20315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20316 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
20317 | ||
20318 | wxPyEndAllowThreads(__tstate); | |
20319 | if (PyErr_Occurred()) SWIG_fail; | |
20320 | } | |
20321 | resultobj = SWIG_PyObj_FromInt((int)result); | |
20322 | return resultobj; | |
20323 | fail: | |
20324 | return NULL; | |
20325 | } | |
20326 | ||
20327 | ||
20328 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20329 | PyObject *resultobj; | |
20330 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20331 | wxSize result; | |
20332 | PyObject * obj0 = 0 ; | |
20333 | char *kwnames[] = { | |
20334 | (char *) "self", NULL | |
20335 | }; | |
20336 | ||
20337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
20338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20339 | { | |
20340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20341 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
20342 | ||
20343 | wxPyEndAllowThreads(__tstate); | |
20344 | if (PyErr_Occurred()) SWIG_fail; | |
20345 | } | |
20346 | { | |
20347 | wxSize * resultptr; | |
20348 | resultptr = new wxSize((wxSize &) result); | |
20349 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20350 | } | |
20351 | return resultobj; | |
20352 | fail: | |
20353 | return NULL; | |
20354 | } | |
20355 | ||
20356 | ||
20357 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20358 | PyObject *resultobj; | |
20359 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20360 | int arg2 ; | |
20361 | bool arg3 = (bool) False ; | |
20362 | PyObject * obj0 = 0 ; | |
20363 | PyObject * obj1 = 0 ; | |
20364 | PyObject * obj2 = 0 ; | |
20365 | char *kwnames[] = { | |
20366 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
20367 | }; | |
20368 | ||
20369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20371 | { | |
20372 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20373 | if (PyErr_Occurred()) SWIG_fail; | |
20374 | } | |
20375 | if (obj2) { | |
20376 | { | |
20377 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
20378 | if (PyErr_Occurred()) SWIG_fail; | |
20379 | } | |
20380 | } | |
20381 | { | |
20382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20383 | (arg1)->SetItemSpacing(arg2,arg3); | |
20384 | ||
20385 | wxPyEndAllowThreads(__tstate); | |
20386 | if (PyErr_Occurred()) SWIG_fail; | |
20387 | } | |
20388 | Py_INCREF(Py_None); resultobj = Py_None; | |
20389 | return resultobj; | |
20390 | fail: | |
20391 | return NULL; | |
20392 | } | |
20393 | ||
20394 | ||
20395 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20396 | PyObject *resultobj; | |
20397 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20398 | int result; | |
20399 | PyObject * obj0 = 0 ; | |
20400 | char *kwnames[] = { | |
20401 | (char *) "self", NULL | |
20402 | }; | |
20403 | ||
20404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
20405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20406 | { | |
20407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20408 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
20409 | ||
20410 | wxPyEndAllowThreads(__tstate); | |
20411 | if (PyErr_Occurred()) SWIG_fail; | |
20412 | } | |
20413 | resultobj = SWIG_PyObj_FromInt((int)result); | |
20414 | return resultobj; | |
20415 | fail: | |
20416 | return NULL; | |
20417 | } | |
20418 | ||
20419 | ||
20420 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20421 | PyObject *resultobj; | |
20422 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20423 | wxColour result; | |
20424 | PyObject * obj0 = 0 ; | |
20425 | char *kwnames[] = { | |
20426 | (char *) "self", NULL | |
20427 | }; | |
20428 | ||
20429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
20430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20431 | { | |
20432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20433 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
20434 | ||
20435 | wxPyEndAllowThreads(__tstate); | |
20436 | if (PyErr_Occurred()) SWIG_fail; | |
20437 | } | |
20438 | { | |
20439 | wxColour * resultptr; | |
20440 | resultptr = new wxColour((wxColour &) result); | |
20441 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
20442 | } | |
20443 | return resultobj; | |
20444 | fail: | |
20445 | return NULL; | |
20446 | } | |
20447 | ||
20448 | ||
20449 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20450 | PyObject *resultobj; | |
20451 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20452 | wxColour *arg2 = 0 ; | |
20453 | wxColour temp2 ; | |
20454 | PyObject * obj0 = 0 ; | |
20455 | PyObject * obj1 = 0 ; | |
20456 | char *kwnames[] = { | |
20457 | (char *) "self",(char *) "col", NULL | |
20458 | }; | |
20459 | ||
20460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
20461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20462 | { | |
20463 | arg2 = &temp2; | |
20464 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20465 | } | |
20466 | { | |
20467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20468 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
20469 | ||
20470 | wxPyEndAllowThreads(__tstate); | |
20471 | if (PyErr_Occurred()) SWIG_fail; | |
20472 | } | |
20473 | Py_INCREF(Py_None); resultobj = Py_None; | |
20474 | return resultobj; | |
20475 | fail: | |
20476 | return NULL; | |
20477 | } | |
20478 | ||
20479 | ||
20480 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20481 | PyObject *resultobj; | |
20482 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20483 | long result; | |
20484 | PyObject * obj0 = 0 ; | |
20485 | char *kwnames[] = { | |
20486 | (char *) "self", NULL | |
20487 | }; | |
20488 | ||
20489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
20490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20491 | { | |
20492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20493 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
20494 | ||
20495 | wxPyEndAllowThreads(__tstate); | |
20496 | if (PyErr_Occurred()) SWIG_fail; | |
20497 | } | |
20498 | resultobj = SWIG_PyObj_FromLong((long)result); | |
20499 | return resultobj; | |
20500 | fail: | |
20501 | return NULL; | |
20502 | } | |
20503 | ||
20504 | ||
20505 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20506 | PyObject *resultobj; | |
20507 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20508 | long arg2 ; | |
20509 | bool arg3 = (bool) True ; | |
20510 | PyObject * obj0 = 0 ; | |
20511 | PyObject * obj1 = 0 ; | |
20512 | PyObject * obj2 = 0 ; | |
20513 | char *kwnames[] = { | |
20514 | (char *) "self",(char *) "style",(char *) "add", NULL | |
20515 | }; | |
20516 | ||
20517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20519 | { | |
20520 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20521 | if (PyErr_Occurred()) SWIG_fail; | |
20522 | } | |
20523 | if (obj2) { | |
20524 | { | |
20525 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
20526 | if (PyErr_Occurred()) SWIG_fail; | |
20527 | } | |
20528 | } | |
20529 | { | |
20530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20531 | (arg1)->SetSingleStyle(arg2,arg3); | |
20532 | ||
20533 | wxPyEndAllowThreads(__tstate); | |
20534 | if (PyErr_Occurred()) SWIG_fail; | |
20535 | } | |
20536 | Py_INCREF(Py_None); resultobj = Py_None; | |
20537 | return resultobj; | |
20538 | fail: | |
20539 | return NULL; | |
20540 | } | |
20541 | ||
20542 | ||
20543 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20544 | PyObject *resultobj; | |
20545 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20546 | long arg2 ; | |
20547 | PyObject * obj0 = 0 ; | |
20548 | PyObject * obj1 = 0 ; | |
20549 | char *kwnames[] = { | |
20550 | (char *) "self",(char *) "style", NULL | |
20551 | }; | |
20552 | ||
20553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
20554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20555 | { | |
20556 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20557 | if (PyErr_Occurred()) SWIG_fail; | |
20558 | } | |
20559 | { | |
20560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20561 | (arg1)->SetWindowStyleFlag(arg2); | |
20562 | ||
20563 | wxPyEndAllowThreads(__tstate); | |
20564 | if (PyErr_Occurred()) SWIG_fail; | |
20565 | } | |
20566 | Py_INCREF(Py_None); resultobj = Py_None; | |
20567 | return resultobj; | |
20568 | fail: | |
20569 | return NULL; | |
20570 | } | |
20571 | ||
20572 | ||
20573 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20574 | PyObject *resultobj; | |
20575 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20576 | long arg2 ; | |
20577 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
20578 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
20579 | long result; | |
20580 | PyObject * obj0 = 0 ; | |
20581 | PyObject * obj1 = 0 ; | |
20582 | PyObject * obj2 = 0 ; | |
20583 | PyObject * obj3 = 0 ; | |
20584 | char *kwnames[] = { | |
20585 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
20586 | }; | |
20587 | ||
20588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
20589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20590 | { | |
20591 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20592 | if (PyErr_Occurred()) SWIG_fail; | |
20593 | } | |
20594 | if (obj2) { | |
20595 | { | |
20596 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20597 | if (PyErr_Occurred()) SWIG_fail; | |
20598 | } | |
20599 | } | |
20600 | if (obj3) { | |
20601 | { | |
20602 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
20603 | if (PyErr_Occurred()) SWIG_fail; | |
20604 | } | |
20605 | } | |
20606 | { | |
20607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20608 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
20609 | ||
20610 | wxPyEndAllowThreads(__tstate); | |
20611 | if (PyErr_Occurred()) SWIG_fail; | |
20612 | } | |
20613 | resultobj = SWIG_PyObj_FromLong((long)result); | |
20614 | return resultobj; | |
20615 | fail: | |
20616 | return NULL; | |
20617 | } | |
20618 | ||
20619 | ||
20620 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20621 | PyObject *resultobj; | |
20622 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20623 | int arg2 ; | |
20624 | wxImageList *result; | |
20625 | PyObject * obj0 = 0 ; | |
20626 | PyObject * obj1 = 0 ; | |
20627 | char *kwnames[] = { | |
20628 | (char *) "self",(char *) "which", NULL | |
20629 | }; | |
20630 | ||
20631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; | |
20632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20633 | { | |
20634 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20635 | if (PyErr_Occurred()) SWIG_fail; | |
20636 | } | |
20637 | { | |
20638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20639 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
20640 | ||
20641 | wxPyEndAllowThreads(__tstate); | |
20642 | if (PyErr_Occurred()) SWIG_fail; | |
20643 | } | |
20644 | { | |
20645 | resultobj = wxPyMake_wxObject(result); | |
20646 | } | |
20647 | return resultobj; | |
20648 | fail: | |
20649 | return NULL; | |
20650 | } | |
20651 | ||
20652 | ||
20653 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20654 | PyObject *resultobj; | |
20655 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20656 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20657 | int arg3 ; | |
20658 | PyObject * obj0 = 0 ; | |
20659 | PyObject * obj1 = 0 ; | |
20660 | PyObject * obj2 = 0 ; | |
20661 | char *kwnames[] = { | |
20662 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
20663 | }; | |
20664 | ||
20665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20667 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20668 | { | |
20669 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20670 | if (PyErr_Occurred()) SWIG_fail; | |
20671 | } | |
20672 | { | |
20673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20674 | (arg1)->SetImageList(arg2,arg3); | |
20675 | ||
20676 | wxPyEndAllowThreads(__tstate); | |
20677 | if (PyErr_Occurred()) SWIG_fail; | |
20678 | } | |
20679 | Py_INCREF(Py_None); resultobj = Py_None; | |
20680 | return resultobj; | |
20681 | fail: | |
20682 | return NULL; | |
20683 | } | |
20684 | ||
20685 | ||
20686 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20687 | PyObject *resultobj; | |
20688 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20689 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20690 | int arg3 ; | |
20691 | PyObject * obj0 = 0 ; | |
20692 | PyObject * obj1 = 0 ; | |
20693 | PyObject * obj2 = 0 ; | |
20694 | char *kwnames[] = { | |
20695 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
20696 | }; | |
20697 | ||
20698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20700 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
20701 | { | |
20702 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20703 | if (PyErr_Occurred()) SWIG_fail; | |
20704 | } | |
20705 | { | |
20706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20707 | (arg1)->AssignImageList(arg2,arg3); | |
20708 | ||
20709 | wxPyEndAllowThreads(__tstate); | |
20710 | if (PyErr_Occurred()) SWIG_fail; | |
20711 | } | |
20712 | Py_INCREF(Py_None); resultobj = Py_None; | |
20713 | return resultobj; | |
20714 | fail: | |
20715 | return NULL; | |
20716 | } | |
20717 | ||
20718 | ||
20719 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20720 | PyObject *resultobj; | |
20721 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20722 | bool result; | |
20723 | PyObject * obj0 = 0 ; | |
20724 | char *kwnames[] = { | |
20725 | (char *) "self", NULL | |
20726 | }; | |
20727 | ||
20728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
20729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20730 | { | |
20731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20732 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
20733 | ||
20734 | wxPyEndAllowThreads(__tstate); | |
20735 | if (PyErr_Occurred()) SWIG_fail; | |
20736 | } | |
20737 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
20738 | return resultobj; | |
20739 | fail: | |
20740 | return NULL; | |
20741 | } | |
20742 | ||
20743 | ||
20744 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20745 | PyObject *resultobj; | |
20746 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20747 | long arg2 ; | |
20748 | PyObject * obj0 = 0 ; | |
20749 | PyObject * obj1 = 0 ; | |
20750 | char *kwnames[] = { | |
20751 | (char *) "self",(char *) "item", NULL | |
20752 | }; | |
20753 | ||
20754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; | |
20755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20756 | { | |
20757 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20758 | if (PyErr_Occurred()) SWIG_fail; | |
20759 | } | |
20760 | { | |
20761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20762 | (arg1)->RefreshItem(arg2); | |
20763 | ||
20764 | wxPyEndAllowThreads(__tstate); | |
20765 | if (PyErr_Occurred()) SWIG_fail; | |
20766 | } | |
20767 | Py_INCREF(Py_None); resultobj = Py_None; | |
20768 | return resultobj; | |
20769 | fail: | |
20770 | return NULL; | |
20771 | } | |
20772 | ||
20773 | ||
20774 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20775 | PyObject *resultobj; | |
20776 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20777 | long arg2 ; | |
20778 | long arg3 ; | |
20779 | PyObject * obj0 = 0 ; | |
20780 | PyObject * obj1 = 0 ; | |
20781 | PyObject * obj2 = 0 ; | |
20782 | char *kwnames[] = { | |
20783 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
20784 | }; | |
20785 | ||
20786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20788 | { | |
20789 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20790 | if (PyErr_Occurred()) SWIG_fail; | |
20791 | } | |
20792 | { | |
20793 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
20794 | if (PyErr_Occurred()) SWIG_fail; | |
20795 | } | |
20796 | { | |
20797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20798 | (arg1)->RefreshItems(arg2,arg3); | |
20799 | ||
20800 | wxPyEndAllowThreads(__tstate); | |
20801 | if (PyErr_Occurred()) SWIG_fail; | |
20802 | } | |
20803 | Py_INCREF(Py_None); resultobj = Py_None; | |
20804 | return resultobj; | |
20805 | fail: | |
20806 | return NULL; | |
20807 | } | |
20808 | ||
20809 | ||
20810 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20811 | PyObject *resultobj; | |
20812 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20813 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
20814 | bool result; | |
20815 | PyObject * obj0 = 0 ; | |
20816 | PyObject * obj1 = 0 ; | |
20817 | char *kwnames[] = { | |
20818 | (char *) "self",(char *) "flag", NULL | |
20819 | }; | |
20820 | ||
20821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; | |
20822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20823 | if (obj1) { | |
20824 | { | |
20825 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20826 | if (PyErr_Occurred()) SWIG_fail; | |
20827 | } | |
20828 | } | |
20829 | { | |
20830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20831 | result = (bool)(arg1)->Arrange(arg2); | |
20832 | ||
20833 | wxPyEndAllowThreads(__tstate); | |
20834 | if (PyErr_Occurred()) SWIG_fail; | |
20835 | } | |
20836 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
20837 | return resultobj; | |
20838 | fail: | |
20839 | return NULL; | |
20840 | } | |
20841 | ||
20842 | ||
20843 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20844 | PyObject *resultobj; | |
20845 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20846 | long arg2 ; | |
20847 | bool result; | |
20848 | PyObject * obj0 = 0 ; | |
20849 | PyObject * obj1 = 0 ; | |
20850 | char *kwnames[] = { | |
20851 | (char *) "self",(char *) "item", NULL | |
20852 | }; | |
20853 | ||
20854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
20855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20856 | { | |
20857 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20858 | if (PyErr_Occurred()) SWIG_fail; | |
20859 | } | |
20860 | { | |
20861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20862 | result = (bool)(arg1)->DeleteItem(arg2); | |
20863 | ||
20864 | wxPyEndAllowThreads(__tstate); | |
20865 | if (PyErr_Occurred()) SWIG_fail; | |
20866 | } | |
20867 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
20868 | return resultobj; | |
20869 | fail: | |
20870 | return NULL; | |
20871 | } | |
20872 | ||
20873 | ||
20874 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20875 | PyObject *resultobj; | |
20876 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20877 | bool result; | |
20878 | PyObject * obj0 = 0 ; | |
20879 | char *kwnames[] = { | |
20880 | (char *) "self", NULL | |
20881 | }; | |
20882 | ||
20883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
20884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20885 | { | |
20886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20887 | result = (bool)(arg1)->DeleteAllItems(); | |
20888 | ||
20889 | wxPyEndAllowThreads(__tstate); | |
20890 | if (PyErr_Occurred()) SWIG_fail; | |
20891 | } | |
20892 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
20893 | return resultobj; | |
20894 | fail: | |
20895 | return NULL; | |
20896 | } | |
20897 | ||
20898 | ||
20899 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20900 | PyObject *resultobj; | |
20901 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20902 | int arg2 ; | |
20903 | bool result; | |
20904 | PyObject * obj0 = 0 ; | |
20905 | PyObject * obj1 = 0 ; | |
20906 | char *kwnames[] = { | |
20907 | (char *) "self",(char *) "col", NULL | |
20908 | }; | |
20909 | ||
20910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; | |
20911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20912 | { | |
20913 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20914 | if (PyErr_Occurred()) SWIG_fail; | |
20915 | } | |
20916 | { | |
20917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20918 | result = (bool)(arg1)->DeleteColumn(arg2); | |
20919 | ||
20920 | wxPyEndAllowThreads(__tstate); | |
20921 | if (PyErr_Occurred()) SWIG_fail; | |
20922 | } | |
20923 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
20924 | return resultobj; | |
20925 | fail: | |
20926 | return NULL; | |
20927 | } | |
20928 | ||
20929 | ||
20930 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20931 | PyObject *resultobj; | |
20932 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20933 | bool result; | |
20934 | PyObject * obj0 = 0 ; | |
20935 | char *kwnames[] = { | |
20936 | (char *) "self", NULL | |
20937 | }; | |
20938 | ||
20939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
20940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20941 | { | |
20942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20943 | result = (bool)(arg1)->DeleteAllColumns(); | |
20944 | ||
20945 | wxPyEndAllowThreads(__tstate); | |
20946 | if (PyErr_Occurred()) SWIG_fail; | |
20947 | } | |
20948 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
20949 | return resultobj; | |
20950 | fail: | |
20951 | return NULL; | |
20952 | } | |
20953 | ||
20954 | ||
20955 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20956 | PyObject *resultobj; | |
20957 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20958 | PyObject * obj0 = 0 ; | |
20959 | char *kwnames[] = { | |
20960 | (char *) "self", NULL | |
20961 | }; | |
20962 | ||
20963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
20964 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20965 | { | |
20966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20967 | (arg1)->ClearAll(); | |
20968 | ||
20969 | wxPyEndAllowThreads(__tstate); | |
20970 | if (PyErr_Occurred()) SWIG_fail; | |
20971 | } | |
20972 | Py_INCREF(Py_None); resultobj = Py_None; | |
20973 | return resultobj; | |
20974 | fail: | |
20975 | return NULL; | |
20976 | } | |
20977 | ||
20978 | ||
20979 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20980 | PyObject *resultobj; | |
20981 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20982 | long arg2 ; | |
20983 | PyObject * obj0 = 0 ; | |
20984 | PyObject * obj1 = 0 ; | |
20985 | char *kwnames[] = { | |
20986 | (char *) "self",(char *) "item", NULL | |
20987 | }; | |
20988 | ||
20989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
20990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20991 | { | |
20992 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20993 | if (PyErr_Occurred()) SWIG_fail; | |
20994 | } | |
20995 | { | |
20996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20997 | (arg1)->EditLabel(arg2); | |
20998 | ||
20999 | wxPyEndAllowThreads(__tstate); | |
21000 | if (PyErr_Occurred()) SWIG_fail; | |
21001 | } | |
21002 | Py_INCREF(Py_None); resultobj = Py_None; | |
21003 | return resultobj; | |
21004 | fail: | |
21005 | return NULL; | |
21006 | } | |
21007 | ||
21008 | ||
21009 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21010 | PyObject *resultobj; | |
21011 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21012 | long arg2 ; | |
21013 | bool result; | |
21014 | PyObject * obj0 = 0 ; | |
21015 | PyObject * obj1 = 0 ; | |
21016 | char *kwnames[] = { | |
21017 | (char *) "self",(char *) "item", NULL | |
21018 | }; | |
21019 | ||
21020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
21021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21022 | { | |
21023 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21024 | if (PyErr_Occurred()) SWIG_fail; | |
21025 | } | |
21026 | { | |
21027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21028 | result = (bool)(arg1)->EnsureVisible(arg2); | |
21029 | ||
21030 | wxPyEndAllowThreads(__tstate); | |
21031 | if (PyErr_Occurred()) SWIG_fail; | |
21032 | } | |
21033 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21034 | return resultobj; | |
21035 | fail: | |
21036 | return NULL; | |
21037 | } | |
21038 | ||
21039 | ||
21040 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21041 | PyObject *resultobj; | |
21042 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21043 | long arg2 ; | |
21044 | wxString *arg3 = 0 ; | |
21045 | bool arg4 = (bool) False ; | |
21046 | long result; | |
21047 | bool temp3 = False ; | |
21048 | PyObject * obj0 = 0 ; | |
21049 | PyObject * obj1 = 0 ; | |
21050 | PyObject * obj2 = 0 ; | |
21051 | PyObject * obj3 = 0 ; | |
21052 | char *kwnames[] = { | |
21053 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
21054 | }; | |
21055 | ||
21056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21058 | { | |
21059 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21060 | if (PyErr_Occurred()) SWIG_fail; | |
21061 | } | |
21062 | { | |
21063 | arg3 = wxString_in_helper(obj2); | |
21064 | if (arg3 == NULL) SWIG_fail; | |
21065 | temp3 = True; | |
21066 | } | |
21067 | if (obj3) { | |
21068 | { | |
21069 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
21070 | if (PyErr_Occurred()) SWIG_fail; | |
21071 | } | |
21072 | } | |
21073 | { | |
21074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21075 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
21076 | ||
21077 | wxPyEndAllowThreads(__tstate); | |
21078 | if (PyErr_Occurred()) SWIG_fail; | |
21079 | } | |
21080 | resultobj = SWIG_PyObj_FromLong((long)result); | |
21081 | { | |
21082 | if (temp3) | |
21083 | delete arg3; | |
21084 | } | |
21085 | return resultobj; | |
21086 | fail: | |
21087 | { | |
21088 | if (temp3) | |
21089 | delete arg3; | |
21090 | } | |
21091 | return NULL; | |
21092 | } | |
21093 | ||
21094 | ||
21095 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21096 | PyObject *resultobj; | |
21097 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21098 | long arg2 ; | |
21099 | long arg3 ; | |
21100 | long result; | |
21101 | PyObject * obj0 = 0 ; | |
21102 | PyObject * obj1 = 0 ; | |
21103 | PyObject * obj2 = 0 ; | |
21104 | char *kwnames[] = { | |
21105 | (char *) "self",(char *) "start",(char *) "data", NULL | |
21106 | }; | |
21107 | ||
21108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21110 | { | |
21111 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21112 | if (PyErr_Occurred()) SWIG_fail; | |
21113 | } | |
21114 | { | |
21115 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21116 | if (PyErr_Occurred()) SWIG_fail; | |
21117 | } | |
21118 | { | |
21119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21120 | result = (long)(arg1)->FindItem(arg2,arg3); | |
21121 | ||
21122 | wxPyEndAllowThreads(__tstate); | |
21123 | if (PyErr_Occurred()) SWIG_fail; | |
21124 | } | |
21125 | resultobj = SWIG_PyObj_FromLong((long)result); | |
21126 | return resultobj; | |
21127 | fail: | |
21128 | return NULL; | |
21129 | } | |
21130 | ||
21131 | ||
21132 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21133 | PyObject *resultobj; | |
21134 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21135 | long arg2 ; | |
21136 | wxPoint *arg3 = 0 ; | |
21137 | int arg4 ; | |
21138 | long result; | |
21139 | wxPoint temp3 ; | |
21140 | PyObject * obj0 = 0 ; | |
21141 | PyObject * obj1 = 0 ; | |
21142 | PyObject * obj2 = 0 ; | |
21143 | PyObject * obj3 = 0 ; | |
21144 | char *kwnames[] = { | |
21145 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
21146 | }; | |
21147 | ||
21148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21150 | { | |
21151 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21152 | if (PyErr_Occurred()) SWIG_fail; | |
21153 | } | |
21154 | { | |
21155 | arg3 = &temp3; | |
21156 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21157 | } | |
21158 | { | |
21159 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21160 | if (PyErr_Occurred()) SWIG_fail; | |
21161 | } | |
21162 | { | |
21163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21164 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
21165 | ||
21166 | wxPyEndAllowThreads(__tstate); | |
21167 | if (PyErr_Occurred()) SWIG_fail; | |
21168 | } | |
21169 | resultobj = SWIG_PyObj_FromLong((long)result); | |
21170 | return resultobj; | |
21171 | fail: | |
21172 | return NULL; | |
21173 | } | |
21174 | ||
21175 | ||
21176 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21177 | PyObject *resultobj; | |
21178 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21179 | wxPoint *arg2 = 0 ; | |
21180 | int *arg3 = 0 ; | |
21181 | long result; | |
21182 | wxPoint temp2 ; | |
21183 | int temp3 ; | |
21184 | PyObject * obj0 = 0 ; | |
21185 | PyObject * obj1 = 0 ; | |
21186 | char *kwnames[] = { | |
21187 | (char *) "self",(char *) "point", NULL | |
21188 | }; | |
21189 | ||
21190 | arg3 = &temp3; | |
21191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
21192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21193 | { | |
21194 | arg2 = &temp2; | |
21195 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21196 | } | |
21197 | { | |
21198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21199 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
21200 | ||
21201 | wxPyEndAllowThreads(__tstate); | |
21202 | if (PyErr_Occurred()) SWIG_fail; | |
21203 | } | |
21204 | resultobj = SWIG_PyObj_FromLong((long)result); | |
21205 | { | |
21206 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21207 | resultobj = t_output_helper(resultobj,o); | |
21208 | } | |
21209 | return resultobj; | |
21210 | fail: | |
21211 | return NULL; | |
21212 | } | |
21213 | ||
21214 | ||
21215 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21216 | PyObject *resultobj; | |
21217 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21218 | wxListItem *arg2 = 0 ; | |
21219 | long result; | |
21220 | PyObject * obj0 = 0 ; | |
21221 | PyObject * obj1 = 0 ; | |
21222 | char *kwnames[] = { | |
21223 | (char *) "self",(char *) "info", NULL | |
21224 | }; | |
21225 | ||
21226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
21227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21228 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21229 | if (arg2 == NULL) { | |
21230 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21231 | } | |
21232 | { | |
21233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21234 | result = (long)(arg1)->InsertItem(*arg2); | |
21235 | ||
21236 | wxPyEndAllowThreads(__tstate); | |
21237 | if (PyErr_Occurred()) SWIG_fail; | |
21238 | } | |
21239 | resultobj = SWIG_PyObj_FromLong((long)result); | |
21240 | return resultobj; | |
21241 | fail: | |
21242 | return NULL; | |
21243 | } | |
21244 | ||
21245 | ||
21246 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21247 | PyObject *resultobj; | |
21248 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21249 | long arg2 ; | |
21250 | wxString *arg3 = 0 ; | |
21251 | long result; | |
21252 | bool temp3 = False ; | |
21253 | PyObject * obj0 = 0 ; | |
21254 | PyObject * obj1 = 0 ; | |
21255 | PyObject * obj2 = 0 ; | |
21256 | char *kwnames[] = { | |
21257 | (char *) "self",(char *) "index",(char *) "label", NULL | |
21258 | }; | |
21259 | ||
21260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21262 | { | |
21263 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21264 | if (PyErr_Occurred()) SWIG_fail; | |
21265 | } | |
21266 | { | |
21267 | arg3 = wxString_in_helper(obj2); | |
21268 | if (arg3 == NULL) SWIG_fail; | |
21269 | temp3 = True; | |
21270 | } | |
21271 | { | |
21272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21273 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
21274 | ||
21275 | wxPyEndAllowThreads(__tstate); | |
21276 | if (PyErr_Occurred()) SWIG_fail; | |
21277 | } | |
21278 | resultobj = SWIG_PyObj_FromLong((long)result); | |
21279 | { | |
21280 | if (temp3) | |
21281 | delete arg3; | |
21282 | } | |
21283 | return resultobj; | |
21284 | fail: | |
21285 | { | |
21286 | if (temp3) | |
21287 | delete arg3; | |
21288 | } | |
21289 | return NULL; | |
21290 | } | |
21291 | ||
21292 | ||
21293 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21294 | PyObject *resultobj; | |
21295 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21296 | long arg2 ; | |
21297 | int arg3 ; | |
21298 | long result; | |
21299 | PyObject * obj0 = 0 ; | |
21300 | PyObject * obj1 = 0 ; | |
21301 | PyObject * obj2 = 0 ; | |
21302 | char *kwnames[] = { | |
21303 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
21304 | }; | |
21305 | ||
21306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21308 | { | |
21309 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21310 | if (PyErr_Occurred()) SWIG_fail; | |
21311 | } | |
21312 | { | |
21313 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21314 | if (PyErr_Occurred()) SWIG_fail; | |
21315 | } | |
21316 | { | |
21317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21318 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
21319 | ||
21320 | wxPyEndAllowThreads(__tstate); | |
21321 | if (PyErr_Occurred()) SWIG_fail; | |
21322 | } | |
21323 | resultobj = SWIG_PyObj_FromLong((long)result); | |
21324 | return resultobj; | |
21325 | fail: | |
21326 | return NULL; | |
21327 | } | |
21328 | ||
21329 | ||
21330 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21331 | PyObject *resultobj; | |
21332 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21333 | long arg2 ; | |
21334 | wxString *arg3 = 0 ; | |
21335 | int arg4 ; | |
21336 | long result; | |
21337 | bool temp3 = False ; | |
21338 | PyObject * obj0 = 0 ; | |
21339 | PyObject * obj1 = 0 ; | |
21340 | PyObject * obj2 = 0 ; | |
21341 | PyObject * obj3 = 0 ; | |
21342 | char *kwnames[] = { | |
21343 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
21344 | }; | |
21345 | ||
21346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21348 | { | |
21349 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21350 | if (PyErr_Occurred()) SWIG_fail; | |
21351 | } | |
21352 | { | |
21353 | arg3 = wxString_in_helper(obj2); | |
21354 | if (arg3 == NULL) SWIG_fail; | |
21355 | temp3 = True; | |
21356 | } | |
21357 | { | |
21358 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21359 | if (PyErr_Occurred()) SWIG_fail; | |
21360 | } | |
21361 | { | |
21362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21363 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
21364 | ||
21365 | wxPyEndAllowThreads(__tstate); | |
21366 | if (PyErr_Occurred()) SWIG_fail; | |
21367 | } | |
21368 | resultobj = SWIG_PyObj_FromLong((long)result); | |
21369 | { | |
21370 | if (temp3) | |
21371 | delete arg3; | |
21372 | } | |
21373 | return resultobj; | |
21374 | fail: | |
21375 | { | |
21376 | if (temp3) | |
21377 | delete arg3; | |
21378 | } | |
21379 | return NULL; | |
21380 | } | |
21381 | ||
21382 | ||
21383 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21384 | PyObject *resultobj; | |
21385 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21386 | long arg2 ; | |
21387 | wxListItem *arg3 = 0 ; | |
21388 | long result; | |
21389 | PyObject * obj0 = 0 ; | |
21390 | PyObject * obj1 = 0 ; | |
21391 | PyObject * obj2 = 0 ; | |
21392 | char *kwnames[] = { | |
21393 | (char *) "self",(char *) "col",(char *) "info", NULL | |
21394 | }; | |
21395 | ||
21396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21398 | { | |
21399 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21400 | if (PyErr_Occurred()) SWIG_fail; | |
21401 | } | |
21402 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21403 | if (arg3 == NULL) { | |
21404 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21405 | } | |
21406 | { | |
21407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21408 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
21409 | ||
21410 | wxPyEndAllowThreads(__tstate); | |
21411 | if (PyErr_Occurred()) SWIG_fail; | |
21412 | } | |
21413 | resultobj = SWIG_PyObj_FromLong((long)result); | |
21414 | return resultobj; | |
21415 | fail: | |
21416 | return NULL; | |
21417 | } | |
21418 | ||
21419 | ||
21420 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21421 | PyObject *resultobj; | |
21422 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21423 | long arg2 ; | |
21424 | wxString *arg3 = 0 ; | |
21425 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
21426 | int arg5 = (int) -1 ; | |
21427 | long result; | |
21428 | bool temp3 = False ; | |
21429 | PyObject * obj0 = 0 ; | |
21430 | PyObject * obj1 = 0 ; | |
21431 | PyObject * obj2 = 0 ; | |
21432 | PyObject * obj3 = 0 ; | |
21433 | PyObject * obj4 = 0 ; | |
21434 | char *kwnames[] = { | |
21435 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
21436 | }; | |
21437 | ||
21438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21440 | { | |
21441 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21442 | if (PyErr_Occurred()) SWIG_fail; | |
21443 | } | |
21444 | { | |
21445 | arg3 = wxString_in_helper(obj2); | |
21446 | if (arg3 == NULL) SWIG_fail; | |
21447 | temp3 = True; | |
21448 | } | |
21449 | if (obj3) { | |
21450 | { | |
21451 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21452 | if (PyErr_Occurred()) SWIG_fail; | |
21453 | } | |
21454 | } | |
21455 | if (obj4) { | |
21456 | { | |
21457 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
21458 | if (PyErr_Occurred()) SWIG_fail; | |
21459 | } | |
21460 | } | |
21461 | { | |
21462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21463 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
21464 | ||
21465 | wxPyEndAllowThreads(__tstate); | |
21466 | if (PyErr_Occurred()) SWIG_fail; | |
21467 | } | |
21468 | resultobj = SWIG_PyObj_FromLong((long)result); | |
21469 | { | |
21470 | if (temp3) | |
21471 | delete arg3; | |
21472 | } | |
21473 | return resultobj; | |
21474 | fail: | |
21475 | { | |
21476 | if (temp3) | |
21477 | delete arg3; | |
21478 | } | |
21479 | return NULL; | |
21480 | } | |
21481 | ||
21482 | ||
21483 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21484 | PyObject *resultobj; | |
21485 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21486 | long arg2 ; | |
21487 | PyObject * obj0 = 0 ; | |
21488 | PyObject * obj1 = 0 ; | |
21489 | char *kwnames[] = { | |
21490 | (char *) "self",(char *) "count", NULL | |
21491 | }; | |
21492 | ||
21493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
21494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21495 | { | |
21496 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21497 | if (PyErr_Occurred()) SWIG_fail; | |
21498 | } | |
21499 | { | |
21500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21501 | (arg1)->SetItemCount(arg2); | |
21502 | ||
21503 | wxPyEndAllowThreads(__tstate); | |
21504 | if (PyErr_Occurred()) SWIG_fail; | |
21505 | } | |
21506 | Py_INCREF(Py_None); resultobj = Py_None; | |
21507 | return resultobj; | |
21508 | fail: | |
21509 | return NULL; | |
21510 | } | |
21511 | ||
21512 | ||
21513 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21514 | PyObject *resultobj; | |
21515 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21516 | int arg2 ; | |
21517 | int arg3 ; | |
21518 | bool result; | |
21519 | PyObject * obj0 = 0 ; | |
21520 | PyObject * obj1 = 0 ; | |
21521 | PyObject * obj2 = 0 ; | |
21522 | char *kwnames[] = { | |
21523 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
21524 | }; | |
21525 | ||
21526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21528 | { | |
21529 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21530 | if (PyErr_Occurred()) SWIG_fail; | |
21531 | } | |
21532 | { | |
21533 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21534 | if (PyErr_Occurred()) SWIG_fail; | |
21535 | } | |
21536 | { | |
21537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21538 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
21539 | ||
21540 | wxPyEndAllowThreads(__tstate); | |
21541 | if (PyErr_Occurred()) SWIG_fail; | |
21542 | } | |
21543 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21544 | return resultobj; | |
21545 | fail: | |
21546 | return NULL; | |
21547 | } | |
21548 | ||
21549 | ||
21550 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21551 | PyObject *resultobj; | |
21552 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21553 | long arg2 ; | |
21554 | wxColour *arg3 = 0 ; | |
21555 | wxColour temp3 ; | |
21556 | PyObject * obj0 = 0 ; | |
21557 | PyObject * obj1 = 0 ; | |
21558 | PyObject * obj2 = 0 ; | |
21559 | char *kwnames[] = { | |
21560 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21561 | }; | |
21562 | ||
21563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21565 | { | |
21566 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21567 | if (PyErr_Occurred()) SWIG_fail; | |
21568 | } | |
21569 | { | |
21570 | arg3 = &temp3; | |
21571 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21572 | } | |
21573 | { | |
21574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21575 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
21576 | ||
21577 | wxPyEndAllowThreads(__tstate); | |
21578 | if (PyErr_Occurred()) SWIG_fail; | |
21579 | } | |
21580 | Py_INCREF(Py_None); resultobj = Py_None; | |
21581 | return resultobj; | |
21582 | fail: | |
21583 | return NULL; | |
21584 | } | |
21585 | ||
21586 | ||
21587 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21588 | PyObject *resultobj; | |
21589 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21590 | long arg2 ; | |
21591 | wxColour result; | |
21592 | PyObject * obj0 = 0 ; | |
21593 | PyObject * obj1 = 0 ; | |
21594 | char *kwnames[] = { | |
21595 | (char *) "self",(char *) "item", NULL | |
21596 | }; | |
21597 | ||
21598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
21599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21600 | { | |
21601 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21602 | if (PyErr_Occurred()) SWIG_fail; | |
21603 | } | |
21604 | { | |
21605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21606 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
21607 | ||
21608 | wxPyEndAllowThreads(__tstate); | |
21609 | if (PyErr_Occurred()) SWIG_fail; | |
21610 | } | |
21611 | { | |
21612 | wxColour * resultptr; | |
21613 | resultptr = new wxColour((wxColour &) result); | |
21614 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21615 | } | |
21616 | return resultobj; | |
21617 | fail: | |
21618 | return NULL; | |
21619 | } | |
21620 | ||
21621 | ||
21622 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21623 | PyObject *resultobj; | |
21624 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21625 | long arg2 ; | |
21626 | wxColour *arg3 = 0 ; | |
21627 | wxColour temp3 ; | |
21628 | PyObject * obj0 = 0 ; | |
21629 | PyObject * obj1 = 0 ; | |
21630 | PyObject * obj2 = 0 ; | |
21631 | char *kwnames[] = { | |
21632 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21633 | }; | |
21634 | ||
21635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21637 | { | |
21638 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21639 | if (PyErr_Occurred()) SWIG_fail; | |
21640 | } | |
21641 | { | |
21642 | arg3 = &temp3; | |
21643 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21644 | } | |
21645 | { | |
21646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21647 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
21648 | ||
21649 | wxPyEndAllowThreads(__tstate); | |
21650 | if (PyErr_Occurred()) SWIG_fail; | |
21651 | } | |
21652 | Py_INCREF(Py_None); resultobj = Py_None; | |
21653 | return resultobj; | |
21654 | fail: | |
21655 | return NULL; | |
21656 | } | |
21657 | ||
21658 | ||
21659 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21660 | PyObject *resultobj; | |
21661 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21662 | long arg2 ; | |
21663 | wxColour result; | |
21664 | PyObject * obj0 = 0 ; | |
21665 | PyObject * obj1 = 0 ; | |
21666 | char *kwnames[] = { | |
21667 | (char *) "self",(char *) "item", NULL | |
21668 | }; | |
21669 | ||
21670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
21671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21672 | { | |
21673 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21674 | if (PyErr_Occurred()) SWIG_fail; | |
21675 | } | |
21676 | { | |
21677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21678 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
21679 | ||
21680 | wxPyEndAllowThreads(__tstate); | |
21681 | if (PyErr_Occurred()) SWIG_fail; | |
21682 | } | |
21683 | { | |
21684 | wxColour * resultptr; | |
21685 | resultptr = new wxColour((wxColour &) result); | |
21686 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21687 | } | |
21688 | return resultobj; | |
21689 | fail: | |
21690 | return NULL; | |
21691 | } | |
21692 | ||
21693 | ||
21694 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21695 | PyObject *resultobj; | |
21696 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21697 | PyObject *arg2 = (PyObject *) 0 ; | |
21698 | bool result; | |
21699 | PyObject * obj0 = 0 ; | |
21700 | PyObject * obj1 = 0 ; | |
21701 | char *kwnames[] = { | |
21702 | (char *) "self",(char *) "func", NULL | |
21703 | }; | |
21704 | ||
21705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
21706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21707 | arg2 = obj1; | |
21708 | { | |
21709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21710 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
21711 | ||
21712 | wxPyEndAllowThreads(__tstate); | |
21713 | if (PyErr_Occurred()) SWIG_fail; | |
21714 | } | |
21715 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21716 | return resultobj; | |
21717 | fail: | |
21718 | return NULL; | |
21719 | } | |
21720 | ||
21721 | ||
21722 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21723 | PyObject *resultobj; | |
21724 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21725 | wxWindow *result; | |
21726 | PyObject * obj0 = 0 ; | |
21727 | char *kwnames[] = { | |
21728 | (char *) "self", NULL | |
21729 | }; | |
21730 | ||
21731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
21732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21733 | { | |
21734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21735 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
21736 | ||
21737 | wxPyEndAllowThreads(__tstate); | |
21738 | if (PyErr_Occurred()) SWIG_fail; | |
21739 | } | |
21740 | { | |
21741 | resultobj = wxPyMake_wxObject(result); | |
21742 | } | |
21743 | return resultobj; | |
21744 | fail: | |
21745 | return NULL; | |
21746 | } | |
21747 | ||
21748 | ||
21749 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
21750 | PyObject *obj; | |
21751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21752 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
21753 | Py_INCREF(obj); | |
21754 | return Py_BuildValue((char *)""); | |
21755 | } | |
21756 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21757 | PyObject *resultobj; | |
21758 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21759 | int arg2 = (int) -1 ; | |
21760 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21761 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21762 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21763 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21764 | long arg5 = (long) wxLC_REPORT ; | |
21765 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
21766 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
21767 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
21768 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21769 | wxListView *result; | |
21770 | wxPoint temp3 ; | |
21771 | wxSize temp4 ; | |
21772 | bool temp7 = False ; | |
21773 | PyObject * obj0 = 0 ; | |
21774 | PyObject * obj1 = 0 ; | |
21775 | PyObject * obj2 = 0 ; | |
21776 | PyObject * obj3 = 0 ; | |
21777 | PyObject * obj4 = 0 ; | |
21778 | PyObject * obj5 = 0 ; | |
21779 | PyObject * obj6 = 0 ; | |
21780 | char *kwnames[] = { | |
21781 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21782 | }; | |
21783 | ||
21784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
21785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21786 | if (obj1) { | |
21787 | { | |
21788 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21789 | if (PyErr_Occurred()) SWIG_fail; | |
21790 | } | |
21791 | } | |
21792 | if (obj2) { | |
21793 | { | |
21794 | arg3 = &temp3; | |
21795 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21796 | } | |
21797 | } | |
21798 | if (obj3) { | |
21799 | { | |
21800 | arg4 = &temp4; | |
21801 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21802 | } | |
21803 | } | |
21804 | if (obj4) { | |
21805 | { | |
21806 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
21807 | if (PyErr_Occurred()) SWIG_fail; | |
21808 | } | |
21809 | } | |
21810 | if (obj5) { | |
21811 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21812 | if (arg6 == NULL) { | |
21813 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21814 | } | |
21815 | } | |
21816 | if (obj6) { | |
21817 | { | |
21818 | arg7 = wxString_in_helper(obj6); | |
21819 | if (arg7 == NULL) SWIG_fail; | |
21820 | temp7 = True; | |
21821 | } | |
21822 | } | |
21823 | { | |
21824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21825 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
21826 | ||
21827 | wxPyEndAllowThreads(__tstate); | |
21828 | if (PyErr_Occurred()) SWIG_fail; | |
21829 | } | |
21830 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
21831 | { | |
21832 | if (temp7) | |
21833 | delete arg7; | |
21834 | } | |
21835 | return resultobj; | |
21836 | fail: | |
21837 | { | |
21838 | if (temp7) | |
21839 | delete arg7; | |
21840 | } | |
21841 | return NULL; | |
21842 | } | |
21843 | ||
21844 | ||
21845 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21846 | PyObject *resultobj; | |
21847 | wxListView *result; | |
21848 | char *kwnames[] = { | |
21849 | NULL | |
21850 | }; | |
21851 | ||
21852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
21853 | { | |
21854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21855 | result = (wxListView *)new wxListView(); | |
21856 | ||
21857 | wxPyEndAllowThreads(__tstate); | |
21858 | if (PyErr_Occurred()) SWIG_fail; | |
21859 | } | |
21860 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
21861 | return resultobj; | |
21862 | fail: | |
21863 | return NULL; | |
21864 | } | |
21865 | ||
21866 | ||
21867 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21868 | PyObject *resultobj; | |
21869 | wxListView *arg1 = (wxListView *) 0 ; | |
21870 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21871 | int arg3 = (int) -1 ; | |
21872 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21873 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21874 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21875 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21876 | long arg6 = (long) wxLC_REPORT ; | |
21877 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
21878 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
21879 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
21880 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21881 | bool result; | |
21882 | wxPoint temp4 ; | |
21883 | wxSize temp5 ; | |
21884 | bool temp8 = False ; | |
21885 | PyObject * obj0 = 0 ; | |
21886 | PyObject * obj1 = 0 ; | |
21887 | PyObject * obj2 = 0 ; | |
21888 | PyObject * obj3 = 0 ; | |
21889 | PyObject * obj4 = 0 ; | |
21890 | PyObject * obj5 = 0 ; | |
21891 | PyObject * obj6 = 0 ; | |
21892 | PyObject * obj7 = 0 ; | |
21893 | char *kwnames[] = { | |
21894 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21895 | }; | |
21896 | ||
21897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
21898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21899 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21900 | if (obj2) { | |
21901 | { | |
21902 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21903 | if (PyErr_Occurred()) SWIG_fail; | |
21904 | } | |
21905 | } | |
21906 | if (obj3) { | |
21907 | { | |
21908 | arg4 = &temp4; | |
21909 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21910 | } | |
21911 | } | |
21912 | if (obj4) { | |
21913 | { | |
21914 | arg5 = &temp5; | |
21915 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21916 | } | |
21917 | } | |
21918 | if (obj5) { | |
21919 | { | |
21920 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
21921 | if (PyErr_Occurred()) SWIG_fail; | |
21922 | } | |
21923 | } | |
21924 | if (obj6) { | |
21925 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21926 | if (arg7 == NULL) { | |
21927 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21928 | } | |
21929 | } | |
21930 | if (obj7) { | |
21931 | { | |
21932 | arg8 = wxString_in_helper(obj7); | |
21933 | if (arg8 == NULL) SWIG_fail; | |
21934 | temp8 = True; | |
21935 | } | |
21936 | } | |
21937 | { | |
21938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21939 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
21940 | ||
21941 | wxPyEndAllowThreads(__tstate); | |
21942 | if (PyErr_Occurred()) SWIG_fail; | |
21943 | } | |
21944 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
21945 | { | |
21946 | if (temp8) | |
21947 | delete arg8; | |
21948 | } | |
21949 | return resultobj; | |
21950 | fail: | |
21951 | { | |
21952 | if (temp8) | |
21953 | delete arg8; | |
21954 | } | |
21955 | return NULL; | |
21956 | } | |
21957 | ||
21958 | ||
21959 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21960 | PyObject *resultobj; | |
21961 | wxListView *arg1 = (wxListView *) 0 ; | |
21962 | long arg2 ; | |
21963 | bool arg3 = (bool) True ; | |
21964 | PyObject * obj0 = 0 ; | |
21965 | PyObject * obj1 = 0 ; | |
21966 | PyObject * obj2 = 0 ; | |
21967 | char *kwnames[] = { | |
21968 | (char *) "self",(char *) "n",(char *) "on", NULL | |
21969 | }; | |
21970 | ||
21971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21973 | { | |
21974 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21975 | if (PyErr_Occurred()) SWIG_fail; | |
21976 | } | |
21977 | if (obj2) { | |
21978 | { | |
21979 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
21980 | if (PyErr_Occurred()) SWIG_fail; | |
21981 | } | |
21982 | } | |
21983 | { | |
21984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21985 | (arg1)->Select(arg2,arg3); | |
21986 | ||
21987 | wxPyEndAllowThreads(__tstate); | |
21988 | if (PyErr_Occurred()) SWIG_fail; | |
21989 | } | |
21990 | Py_INCREF(Py_None); resultobj = Py_None; | |
21991 | return resultobj; | |
21992 | fail: | |
21993 | return NULL; | |
21994 | } | |
21995 | ||
21996 | ||
21997 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21998 | PyObject *resultobj; | |
21999 | wxListView *arg1 = (wxListView *) 0 ; | |
22000 | long arg2 ; | |
22001 | PyObject * obj0 = 0 ; | |
22002 | PyObject * obj1 = 0 ; | |
22003 | char *kwnames[] = { | |
22004 | (char *) "self",(char *) "index", NULL | |
22005 | }; | |
22006 | ||
22007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; | |
22008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22009 | { | |
22010 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22011 | if (PyErr_Occurred()) SWIG_fail; | |
22012 | } | |
22013 | { | |
22014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22015 | (arg1)->Focus(arg2); | |
22016 | ||
22017 | wxPyEndAllowThreads(__tstate); | |
22018 | if (PyErr_Occurred()) SWIG_fail; | |
22019 | } | |
22020 | Py_INCREF(Py_None); resultobj = Py_None; | |
22021 | return resultobj; | |
22022 | fail: | |
22023 | return NULL; | |
22024 | } | |
22025 | ||
22026 | ||
22027 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22028 | PyObject *resultobj; | |
22029 | wxListView *arg1 = (wxListView *) 0 ; | |
22030 | long result; | |
22031 | PyObject * obj0 = 0 ; | |
22032 | char *kwnames[] = { | |
22033 | (char *) "self", NULL | |
22034 | }; | |
22035 | ||
22036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
22037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22038 | { | |
22039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22040 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
22041 | ||
22042 | wxPyEndAllowThreads(__tstate); | |
22043 | if (PyErr_Occurred()) SWIG_fail; | |
22044 | } | |
22045 | resultobj = SWIG_PyObj_FromLong((long)result); | |
22046 | return resultobj; | |
22047 | fail: | |
22048 | return NULL; | |
22049 | } | |
22050 | ||
22051 | ||
22052 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22053 | PyObject *resultobj; | |
22054 | wxListView *arg1 = (wxListView *) 0 ; | |
22055 | long arg2 ; | |
22056 | long result; | |
22057 | PyObject * obj0 = 0 ; | |
22058 | PyObject * obj1 = 0 ; | |
22059 | char *kwnames[] = { | |
22060 | (char *) "self",(char *) "item", NULL | |
22061 | }; | |
22062 | ||
22063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
22064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22065 | { | |
22066 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22067 | if (PyErr_Occurred()) SWIG_fail; | |
22068 | } | |
22069 | { | |
22070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22071 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
22072 | ||
22073 | wxPyEndAllowThreads(__tstate); | |
22074 | if (PyErr_Occurred()) SWIG_fail; | |
22075 | } | |
22076 | resultobj = SWIG_PyObj_FromLong((long)result); | |
22077 | return resultobj; | |
22078 | fail: | |
22079 | return NULL; | |
22080 | } | |
22081 | ||
22082 | ||
22083 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22084 | PyObject *resultobj; | |
22085 | wxListView *arg1 = (wxListView *) 0 ; | |
22086 | long result; | |
22087 | PyObject * obj0 = 0 ; | |
22088 | char *kwnames[] = { | |
22089 | (char *) "self", NULL | |
22090 | }; | |
22091 | ||
22092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
22093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22094 | { | |
22095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22096 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
22097 | ||
22098 | wxPyEndAllowThreads(__tstate); | |
22099 | if (PyErr_Occurred()) SWIG_fail; | |
22100 | } | |
22101 | resultobj = SWIG_PyObj_FromLong((long)result); | |
22102 | return resultobj; | |
22103 | fail: | |
22104 | return NULL; | |
22105 | } | |
22106 | ||
22107 | ||
22108 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22109 | PyObject *resultobj; | |
22110 | wxListView *arg1 = (wxListView *) 0 ; | |
22111 | long arg2 ; | |
22112 | bool result; | |
22113 | PyObject * obj0 = 0 ; | |
22114 | PyObject * obj1 = 0 ; | |
22115 | char *kwnames[] = { | |
22116 | (char *) "self",(char *) "index", NULL | |
22117 | }; | |
22118 | ||
22119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
22120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22121 | { | |
22122 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22123 | if (PyErr_Occurred()) SWIG_fail; | |
22124 | } | |
22125 | { | |
22126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22127 | result = (bool)(arg1)->IsSelected(arg2); | |
22128 | ||
22129 | wxPyEndAllowThreads(__tstate); | |
22130 | if (PyErr_Occurred()) SWIG_fail; | |
22131 | } | |
22132 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
22133 | return resultobj; | |
22134 | fail: | |
22135 | return NULL; | |
22136 | } | |
22137 | ||
22138 | ||
22139 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22140 | PyObject *resultobj; | |
22141 | wxListView *arg1 = (wxListView *) 0 ; | |
22142 | int arg2 ; | |
22143 | int arg3 ; | |
22144 | PyObject * obj0 = 0 ; | |
22145 | PyObject * obj1 = 0 ; | |
22146 | PyObject * obj2 = 0 ; | |
22147 | char *kwnames[] = { | |
22148 | (char *) "self",(char *) "col",(char *) "image", NULL | |
22149 | }; | |
22150 | ||
22151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22153 | { | |
22154 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22155 | if (PyErr_Occurred()) SWIG_fail; | |
22156 | } | |
22157 | { | |
22158 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22159 | if (PyErr_Occurred()) SWIG_fail; | |
22160 | } | |
22161 | { | |
22162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22163 | (arg1)->SetColumnImage(arg2,arg3); | |
22164 | ||
22165 | wxPyEndAllowThreads(__tstate); | |
22166 | if (PyErr_Occurred()) SWIG_fail; | |
22167 | } | |
22168 | Py_INCREF(Py_None); resultobj = Py_None; | |
22169 | return resultobj; | |
22170 | fail: | |
22171 | return NULL; | |
22172 | } | |
22173 | ||
22174 | ||
22175 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22176 | PyObject *resultobj; | |
22177 | wxListView *arg1 = (wxListView *) 0 ; | |
22178 | int arg2 ; | |
22179 | PyObject * obj0 = 0 ; | |
22180 | PyObject * obj1 = 0 ; | |
22181 | char *kwnames[] = { | |
22182 | (char *) "self",(char *) "col", NULL | |
22183 | }; | |
22184 | ||
22185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; | |
22186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22187 | { | |
22188 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22189 | if (PyErr_Occurred()) SWIG_fail; | |
22190 | } | |
22191 | { | |
22192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22193 | (arg1)->ClearColumnImage(arg2); | |
22194 | ||
22195 | wxPyEndAllowThreads(__tstate); | |
22196 | if (PyErr_Occurred()) SWIG_fail; | |
22197 | } | |
22198 | Py_INCREF(Py_None); resultobj = Py_None; | |
22199 | return resultobj; | |
22200 | fail: | |
22201 | return NULL; | |
22202 | } | |
22203 | ||
22204 | ||
22205 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
22206 | PyObject *obj; | |
22207 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22208 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
22209 | Py_INCREF(obj); | |
22210 | return Py_BuildValue((char *)""); | |
22211 | } | |
22212 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { | |
22213 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); | |
22214 | return 1; | |
22215 | } | |
22216 | ||
22217 | ||
22218 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
22219 | PyObject *pyobj; | |
22220 | ||
22221 | { | |
22222 | #if wxUSE_UNICODE | |
22223 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22224 | #else | |
22225 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
22226 | #endif | |
22227 | } | |
22228 | return pyobj; | |
22229 | } | |
22230 | ||
22231 | ||
22232 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22233 | PyObject *resultobj; | |
22234 | wxTreeItemId *result; | |
22235 | char *kwnames[] = { | |
22236 | NULL | |
22237 | }; | |
22238 | ||
22239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
22240 | { | |
22241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22242 | result = (wxTreeItemId *)new wxTreeItemId(); | |
22243 | ||
22244 | wxPyEndAllowThreads(__tstate); | |
22245 | if (PyErr_Occurred()) SWIG_fail; | |
22246 | } | |
22247 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 1); | |
22248 | return resultobj; | |
22249 | fail: | |
22250 | return NULL; | |
22251 | } | |
22252 | ||
22253 | ||
22254 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22255 | PyObject *resultobj; | |
22256 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22257 | PyObject * obj0 = 0 ; | |
22258 | char *kwnames[] = { | |
22259 | (char *) "self", NULL | |
22260 | }; | |
22261 | ||
22262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
22263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22264 | { | |
22265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22266 | delete arg1; | |
22267 | ||
22268 | wxPyEndAllowThreads(__tstate); | |
22269 | if (PyErr_Occurred()) SWIG_fail; | |
22270 | } | |
22271 | Py_INCREF(Py_None); resultobj = Py_None; | |
22272 | return resultobj; | |
22273 | fail: | |
22274 | return NULL; | |
22275 | } | |
22276 | ||
22277 | ||
22278 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22279 | PyObject *resultobj; | |
22280 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22281 | bool result; | |
22282 | PyObject * obj0 = 0 ; | |
22283 | char *kwnames[] = { | |
22284 | (char *) "self", NULL | |
22285 | }; | |
22286 | ||
22287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
22288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22289 | { | |
22290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22291 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
22292 | ||
22293 | wxPyEndAllowThreads(__tstate); | |
22294 | if (PyErr_Occurred()) SWIG_fail; | |
22295 | } | |
22296 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
22297 | return resultobj; | |
22298 | fail: | |
22299 | return NULL; | |
22300 | } | |
22301 | ||
22302 | ||
22303 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22304 | PyObject *resultobj; | |
22305 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22306 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
22307 | bool result; | |
22308 | PyObject * obj0 = 0 ; | |
22309 | PyObject * obj1 = 0 ; | |
22310 | char *kwnames[] = { | |
22311 | (char *) "self",(char *) "other", NULL | |
22312 | }; | |
22313 | ||
22314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22316 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22317 | { | |
22318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22319 | result = (bool)wxTreeItemId_operator_ee___(arg1,(wxTreeItemId const *)arg2); | |
22320 | ||
22321 | wxPyEndAllowThreads(__tstate); | |
22322 | if (PyErr_Occurred()) SWIG_fail; | |
22323 | } | |
22324 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
22325 | return resultobj; | |
22326 | fail: | |
22327 | return NULL; | |
22328 | } | |
22329 | ||
22330 | ||
22331 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22332 | PyObject *resultobj; | |
22333 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22334 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
22335 | bool result; | |
22336 | PyObject * obj0 = 0 ; | |
22337 | PyObject * obj1 = 0 ; | |
22338 | char *kwnames[] = { | |
22339 | (char *) "self",(char *) "other", NULL | |
22340 | }; | |
22341 | ||
22342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22344 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22345 | { | |
22346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22347 | result = (bool)wxTreeItemId_operator_Ne___(arg1,(wxTreeItemId const *)arg2); | |
22348 | ||
22349 | wxPyEndAllowThreads(__tstate); | |
22350 | if (PyErr_Occurred()) SWIG_fail; | |
22351 | } | |
22352 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
22353 | return resultobj; | |
22354 | fail: | |
22355 | return NULL; | |
22356 | } | |
22357 | ||
22358 | ||
22359 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22360 | PyObject *resultobj; | |
22361 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22362 | void *arg2 = (void *) 0 ; | |
22363 | PyObject * obj0 = 0 ; | |
22364 | PyObject * obj1 = 0 ; | |
22365 | char *kwnames[] = { | |
22366 | (char *) "self",(char *) "m_pItem", NULL | |
22367 | }; | |
22368 | ||
22369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
22370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22371 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
22372 | if (arg1) (arg1)->m_pItem = arg2; | |
22373 | ||
22374 | Py_INCREF(Py_None); resultobj = Py_None; | |
22375 | return resultobj; | |
22376 | fail: | |
22377 | return NULL; | |
22378 | } | |
22379 | ||
22380 | ||
22381 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22382 | PyObject *resultobj; | |
22383 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
22384 | void *result; | |
22385 | PyObject * obj0 = 0 ; | |
22386 | char *kwnames[] = { | |
22387 | (char *) "self", NULL | |
22388 | }; | |
22389 | ||
22390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
22391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22392 | result = (void *) ((arg1)->m_pItem); | |
22393 | ||
22394 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_void, 0); | |
22395 | return resultobj; | |
22396 | fail: | |
22397 | return NULL; | |
22398 | } | |
22399 | ||
22400 | ||
22401 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
22402 | PyObject *obj; | |
22403 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22404 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
22405 | Py_INCREF(obj); | |
22406 | return Py_BuildValue((char *)""); | |
22407 | } | |
22408 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22409 | PyObject *resultobj; | |
22410 | PyObject *arg1 = (PyObject *) NULL ; | |
22411 | wxPyTreeItemData *result; | |
22412 | PyObject * obj0 = 0 ; | |
22413 | char *kwnames[] = { | |
22414 | (char *) "obj", NULL | |
22415 | }; | |
22416 | ||
22417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
22418 | if (obj0) { | |
22419 | arg1 = obj0; | |
22420 | } | |
22421 | { | |
22422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22423 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
22424 | ||
22425 | wxPyEndAllowThreads(__tstate); | |
22426 | if (PyErr_Occurred()) SWIG_fail; | |
22427 | } | |
22428 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 1); | |
22429 | return resultobj; | |
22430 | fail: | |
22431 | return NULL; | |
22432 | } | |
22433 | ||
22434 | ||
22435 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22436 | PyObject *resultobj; | |
22437 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22438 | PyObject *result; | |
22439 | PyObject * obj0 = 0 ; | |
22440 | char *kwnames[] = { | |
22441 | (char *) "self", NULL | |
22442 | }; | |
22443 | ||
22444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
22445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22446 | { | |
22447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22448 | result = (PyObject *)(arg1)->GetData(); | |
22449 | ||
22450 | wxPyEndAllowThreads(__tstate); | |
22451 | if (PyErr_Occurred()) SWIG_fail; | |
22452 | } | |
22453 | resultobj = result; | |
22454 | return resultobj; | |
22455 | fail: | |
22456 | return NULL; | |
22457 | } | |
22458 | ||
22459 | ||
22460 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22461 | PyObject *resultobj; | |
22462 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22463 | PyObject *arg2 = (PyObject *) 0 ; | |
22464 | PyObject * obj0 = 0 ; | |
22465 | PyObject * obj1 = 0 ; | |
22466 | char *kwnames[] = { | |
22467 | (char *) "self",(char *) "obj", NULL | |
22468 | }; | |
22469 | ||
22470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
22471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22472 | arg2 = obj1; | |
22473 | { | |
22474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22475 | (arg1)->SetData(arg2); | |
22476 | ||
22477 | wxPyEndAllowThreads(__tstate); | |
22478 | if (PyErr_Occurred()) SWIG_fail; | |
22479 | } | |
22480 | Py_INCREF(Py_None); resultobj = Py_None; | |
22481 | return resultobj; | |
22482 | fail: | |
22483 | return NULL; | |
22484 | } | |
22485 | ||
22486 | ||
22487 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22488 | PyObject *resultobj; | |
22489 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22490 | wxTreeItemId *result; | |
22491 | PyObject * obj0 = 0 ; | |
22492 | char *kwnames[] = { | |
22493 | (char *) "self", NULL | |
22494 | }; | |
22495 | ||
22496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
22497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22498 | { | |
22499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22500 | { | |
22501 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
22502 | result = (wxTreeItemId *) &_result_ref; | |
22503 | } | |
22504 | ||
22505 | wxPyEndAllowThreads(__tstate); | |
22506 | if (PyErr_Occurred()) SWIG_fail; | |
22507 | } | |
22508 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 0); | |
22509 | return resultobj; | |
22510 | fail: | |
22511 | return NULL; | |
22512 | } | |
22513 | ||
22514 | ||
22515 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22516 | PyObject *resultobj; | |
22517 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22518 | wxTreeItemId *arg2 = 0 ; | |
22519 | PyObject * obj0 = 0 ; | |
22520 | PyObject * obj1 = 0 ; | |
22521 | char *kwnames[] = { | |
22522 | (char *) "self",(char *) "id", NULL | |
22523 | }; | |
22524 | ||
22525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
22526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22527 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22528 | if (arg2 == NULL) { | |
22529 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22530 | } | |
22531 | { | |
22532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22533 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
22534 | ||
22535 | wxPyEndAllowThreads(__tstate); | |
22536 | if (PyErr_Occurred()) SWIG_fail; | |
22537 | } | |
22538 | Py_INCREF(Py_None); resultobj = Py_None; | |
22539 | return resultobj; | |
22540 | fail: | |
22541 | return NULL; | |
22542 | } | |
22543 | ||
22544 | ||
22545 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22546 | PyObject *resultobj; | |
22547 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
22548 | PyObject * obj0 = 0 ; | |
22549 | char *kwnames[] = { | |
22550 | (char *) "self", NULL | |
22551 | }; | |
22552 | ||
22553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
22554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22555 | { | |
22556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22557 | wxPyTreeItemData_Destroy(arg1); | |
22558 | ||
22559 | wxPyEndAllowThreads(__tstate); | |
22560 | if (PyErr_Occurred()) SWIG_fail; | |
22561 | } | |
22562 | Py_INCREF(Py_None); resultobj = Py_None; | |
22563 | return resultobj; | |
22564 | fail: | |
22565 | return NULL; | |
22566 | } | |
22567 | ||
22568 | ||
22569 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
22570 | PyObject *obj; | |
22571 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22572 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
22573 | Py_INCREF(obj); | |
22574 | return Py_BuildValue((char *)""); | |
22575 | } | |
22576 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22577 | PyObject *resultobj; | |
22578 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22579 | int arg2 = (int) 0 ; | |
22580 | wxTreeEvent *result; | |
22581 | PyObject * obj0 = 0 ; | |
22582 | PyObject * obj1 = 0 ; | |
22583 | char *kwnames[] = { | |
22584 | (char *) "commandType",(char *) "id", NULL | |
22585 | }; | |
22586 | ||
22587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; | |
22588 | if (obj0) { | |
22589 | { | |
22590 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
22591 | if (PyErr_Occurred()) SWIG_fail; | |
22592 | } | |
22593 | } | |
22594 | if (obj1) { | |
22595 | { | |
22596 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22597 | if (PyErr_Occurred()) SWIG_fail; | |
22598 | } | |
22599 | } | |
22600 | { | |
22601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22602 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
22603 | ||
22604 | wxPyEndAllowThreads(__tstate); | |
22605 | if (PyErr_Occurred()) SWIG_fail; | |
22606 | } | |
22607 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeEvent, 1); | |
22608 | return resultobj; | |
22609 | fail: | |
22610 | return NULL; | |
22611 | } | |
22612 | ||
22613 | ||
22614 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22615 | PyObject *resultobj; | |
22616 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22617 | wxTreeItemId result; | |
22618 | PyObject * obj0 = 0 ; | |
22619 | char *kwnames[] = { | |
22620 | (char *) "self", NULL | |
22621 | }; | |
22622 | ||
22623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
22624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22625 | { | |
22626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22627 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
22628 | ||
22629 | wxPyEndAllowThreads(__tstate); | |
22630 | if (PyErr_Occurred()) SWIG_fail; | |
22631 | } | |
22632 | { | |
22633 | wxTreeItemId * resultptr; | |
22634 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22635 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22636 | } | |
22637 | return resultobj; | |
22638 | fail: | |
22639 | return NULL; | |
22640 | } | |
22641 | ||
22642 | ||
22643 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22644 | PyObject *resultobj; | |
22645 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22646 | wxTreeItemId *arg2 = 0 ; | |
22647 | PyObject * obj0 = 0 ; | |
22648 | PyObject * obj1 = 0 ; | |
22649 | char *kwnames[] = { | |
22650 | (char *) "self",(char *) "item", NULL | |
22651 | }; | |
22652 | ||
22653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
22654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22655 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22656 | if (arg2 == NULL) { | |
22657 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22658 | } | |
22659 | { | |
22660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22661 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
22662 | ||
22663 | wxPyEndAllowThreads(__tstate); | |
22664 | if (PyErr_Occurred()) SWIG_fail; | |
22665 | } | |
22666 | Py_INCREF(Py_None); resultobj = Py_None; | |
22667 | return resultobj; | |
22668 | fail: | |
22669 | return NULL; | |
22670 | } | |
22671 | ||
22672 | ||
22673 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22674 | PyObject *resultobj; | |
22675 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22676 | wxTreeItemId result; | |
22677 | PyObject * obj0 = 0 ; | |
22678 | char *kwnames[] = { | |
22679 | (char *) "self", NULL | |
22680 | }; | |
22681 | ||
22682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
22683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22684 | { | |
22685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22686 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
22687 | ||
22688 | wxPyEndAllowThreads(__tstate); | |
22689 | if (PyErr_Occurred()) SWIG_fail; | |
22690 | } | |
22691 | { | |
22692 | wxTreeItemId * resultptr; | |
22693 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22694 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22695 | } | |
22696 | return resultobj; | |
22697 | fail: | |
22698 | return NULL; | |
22699 | } | |
22700 | ||
22701 | ||
22702 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22703 | PyObject *resultobj; | |
22704 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22705 | wxTreeItemId *arg2 = 0 ; | |
22706 | PyObject * obj0 = 0 ; | |
22707 | PyObject * obj1 = 0 ; | |
22708 | char *kwnames[] = { | |
22709 | (char *) "self",(char *) "item", NULL | |
22710 | }; | |
22711 | ||
22712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
22713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22714 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22715 | if (arg2 == NULL) { | |
22716 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22717 | } | |
22718 | { | |
22719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22720 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
22721 | ||
22722 | wxPyEndAllowThreads(__tstate); | |
22723 | if (PyErr_Occurred()) SWIG_fail; | |
22724 | } | |
22725 | Py_INCREF(Py_None); resultobj = Py_None; | |
22726 | return resultobj; | |
22727 | fail: | |
22728 | return NULL; | |
22729 | } | |
22730 | ||
22731 | ||
22732 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22733 | PyObject *resultobj; | |
22734 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22735 | wxPoint result; | |
22736 | PyObject * obj0 = 0 ; | |
22737 | char *kwnames[] = { | |
22738 | (char *) "self", NULL | |
22739 | }; | |
22740 | ||
22741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
22742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22743 | { | |
22744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22745 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
22746 | ||
22747 | wxPyEndAllowThreads(__tstate); | |
22748 | if (PyErr_Occurred()) SWIG_fail; | |
22749 | } | |
22750 | { | |
22751 | wxPoint * resultptr; | |
22752 | resultptr = new wxPoint((wxPoint &) result); | |
22753 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
22754 | } | |
22755 | return resultobj; | |
22756 | fail: | |
22757 | return NULL; | |
22758 | } | |
22759 | ||
22760 | ||
22761 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22762 | PyObject *resultobj; | |
22763 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22764 | wxPoint *arg2 = 0 ; | |
22765 | wxPoint temp2 ; | |
22766 | PyObject * obj0 = 0 ; | |
22767 | PyObject * obj1 = 0 ; | |
22768 | char *kwnames[] = { | |
22769 | (char *) "self",(char *) "pt", NULL | |
22770 | }; | |
22771 | ||
22772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
22773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22774 | { | |
22775 | arg2 = &temp2; | |
22776 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22777 | } | |
22778 | { | |
22779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22780 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
22781 | ||
22782 | wxPyEndAllowThreads(__tstate); | |
22783 | if (PyErr_Occurred()) SWIG_fail; | |
22784 | } | |
22785 | Py_INCREF(Py_None); resultobj = Py_None; | |
22786 | return resultobj; | |
22787 | fail: | |
22788 | return NULL; | |
22789 | } | |
22790 | ||
22791 | ||
22792 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22793 | PyObject *resultobj; | |
22794 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22795 | wxKeyEvent *result; | |
22796 | PyObject * obj0 = 0 ; | |
22797 | char *kwnames[] = { | |
22798 | (char *) "self", NULL | |
22799 | }; | |
22800 | ||
22801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
22802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22803 | { | |
22804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22805 | { | |
22806 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
22807 | result = (wxKeyEvent *) &_result_ref; | |
22808 | } | |
22809 | ||
22810 | wxPyEndAllowThreads(__tstate); | |
22811 | if (PyErr_Occurred()) SWIG_fail; | |
22812 | } | |
22813 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 0); | |
22814 | return resultobj; | |
22815 | fail: | |
22816 | return NULL; | |
22817 | } | |
22818 | ||
22819 | ||
22820 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22821 | PyObject *resultobj; | |
22822 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22823 | int result; | |
22824 | PyObject * obj0 = 0 ; | |
22825 | char *kwnames[] = { | |
22826 | (char *) "self", NULL | |
22827 | }; | |
22828 | ||
22829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
22830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22831 | { | |
22832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22833 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
22834 | ||
22835 | wxPyEndAllowThreads(__tstate); | |
22836 | if (PyErr_Occurred()) SWIG_fail; | |
22837 | } | |
22838 | resultobj = SWIG_PyObj_FromInt((int)result); | |
22839 | return resultobj; | |
22840 | fail: | |
22841 | return NULL; | |
22842 | } | |
22843 | ||
22844 | ||
22845 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22846 | PyObject *resultobj; | |
22847 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22848 | wxKeyEvent *arg2 = 0 ; | |
22849 | PyObject * obj0 = 0 ; | |
22850 | PyObject * obj1 = 0 ; | |
22851 | char *kwnames[] = { | |
22852 | (char *) "self",(char *) "evt", NULL | |
22853 | }; | |
22854 | ||
22855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
22856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22857 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22858 | if (arg2 == NULL) { | |
22859 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22860 | } | |
22861 | { | |
22862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22863 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
22864 | ||
22865 | wxPyEndAllowThreads(__tstate); | |
22866 | if (PyErr_Occurred()) SWIG_fail; | |
22867 | } | |
22868 | Py_INCREF(Py_None); resultobj = Py_None; | |
22869 | return resultobj; | |
22870 | fail: | |
22871 | return NULL; | |
22872 | } | |
22873 | ||
22874 | ||
22875 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22876 | PyObject *resultobj; | |
22877 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22878 | wxString *result; | |
22879 | PyObject * obj0 = 0 ; | |
22880 | char *kwnames[] = { | |
22881 | (char *) "self", NULL | |
22882 | }; | |
22883 | ||
22884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
22885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22886 | { | |
22887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22888 | { | |
22889 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
22890 | result = (wxString *) &_result_ref; | |
22891 | } | |
22892 | ||
22893 | wxPyEndAllowThreads(__tstate); | |
22894 | if (PyErr_Occurred()) SWIG_fail; | |
22895 | } | |
22896 | { | |
22897 | #if wxUSE_UNICODE | |
22898 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
22899 | #else | |
22900 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
22901 | #endif | |
22902 | } | |
22903 | return resultobj; | |
22904 | fail: | |
22905 | return NULL; | |
22906 | } | |
22907 | ||
22908 | ||
22909 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22910 | PyObject *resultobj; | |
22911 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22912 | wxString *arg2 = 0 ; | |
22913 | bool temp2 = False ; | |
22914 | PyObject * obj0 = 0 ; | |
22915 | PyObject * obj1 = 0 ; | |
22916 | char *kwnames[] = { | |
22917 | (char *) "self",(char *) "label", NULL | |
22918 | }; | |
22919 | ||
22920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
22921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22922 | { | |
22923 | arg2 = wxString_in_helper(obj1); | |
22924 | if (arg2 == NULL) SWIG_fail; | |
22925 | temp2 = True; | |
22926 | } | |
22927 | { | |
22928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22929 | (arg1)->SetLabel((wxString const &)*arg2); | |
22930 | ||
22931 | wxPyEndAllowThreads(__tstate); | |
22932 | if (PyErr_Occurred()) SWIG_fail; | |
22933 | } | |
22934 | Py_INCREF(Py_None); resultobj = Py_None; | |
22935 | { | |
22936 | if (temp2) | |
22937 | delete arg2; | |
22938 | } | |
22939 | return resultobj; | |
22940 | fail: | |
22941 | { | |
22942 | if (temp2) | |
22943 | delete arg2; | |
22944 | } | |
22945 | return NULL; | |
22946 | } | |
22947 | ||
22948 | ||
22949 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22950 | PyObject *resultobj; | |
22951 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22952 | bool result; | |
22953 | PyObject * obj0 = 0 ; | |
22954 | char *kwnames[] = { | |
22955 | (char *) "self", NULL | |
22956 | }; | |
22957 | ||
22958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
22959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22960 | { | |
22961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22962 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
22963 | ||
22964 | wxPyEndAllowThreads(__tstate); | |
22965 | if (PyErr_Occurred()) SWIG_fail; | |
22966 | } | |
22967 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
22968 | return resultobj; | |
22969 | fail: | |
22970 | return NULL; | |
22971 | } | |
22972 | ||
22973 | ||
22974 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22975 | PyObject *resultobj; | |
22976 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
22977 | bool arg2 ; | |
22978 | PyObject * obj0 = 0 ; | |
22979 | PyObject * obj1 = 0 ; | |
22980 | char *kwnames[] = { | |
22981 | (char *) "self",(char *) "editCancelled", NULL | |
22982 | }; | |
22983 | ||
22984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
22985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22986 | { | |
22987 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
22988 | if (PyErr_Occurred()) SWIG_fail; | |
22989 | } | |
22990 | { | |
22991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22992 | (arg1)->SetEditCanceled(arg2); | |
22993 | ||
22994 | wxPyEndAllowThreads(__tstate); | |
22995 | if (PyErr_Occurred()) SWIG_fail; | |
22996 | } | |
22997 | Py_INCREF(Py_None); resultobj = Py_None; | |
22998 | return resultobj; | |
22999 | fail: | |
23000 | return NULL; | |
23001 | } | |
23002 | ||
23003 | ||
23004 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23005 | PyObject *resultobj; | |
23006 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23007 | wxString *arg2 = 0 ; | |
23008 | bool temp2 = False ; | |
23009 | PyObject * obj0 = 0 ; | |
23010 | PyObject * obj1 = 0 ; | |
23011 | char *kwnames[] = { | |
23012 | (char *) "self",(char *) "toolTip", NULL | |
23013 | }; | |
23014 | ||
23015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
23016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23017 | { | |
23018 | arg2 = wxString_in_helper(obj1); | |
23019 | if (arg2 == NULL) SWIG_fail; | |
23020 | temp2 = True; | |
23021 | } | |
23022 | { | |
23023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23024 | (arg1)->SetToolTip((wxString const &)*arg2); | |
23025 | ||
23026 | wxPyEndAllowThreads(__tstate); | |
23027 | if (PyErr_Occurred()) SWIG_fail; | |
23028 | } | |
23029 | Py_INCREF(Py_None); resultobj = Py_None; | |
23030 | { | |
23031 | if (temp2) | |
23032 | delete arg2; | |
23033 | } | |
23034 | return resultobj; | |
23035 | fail: | |
23036 | { | |
23037 | if (temp2) | |
23038 | delete arg2; | |
23039 | } | |
23040 | return NULL; | |
23041 | } | |
23042 | ||
23043 | ||
23044 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { | |
23045 | PyObject *obj; | |
23046 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23047 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
23048 | Py_INCREF(obj); | |
23049 | return Py_BuildValue((char *)""); | |
23050 | } | |
23051 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23052 | PyObject *resultobj; | |
23053 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23054 | int arg2 = (int) -1 ; | |
23055 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
23056 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23057 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23058 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23059 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
23060 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23061 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23062 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
23063 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23064 | wxPyTreeCtrl *result; | |
23065 | wxPoint temp3 ; | |
23066 | wxSize temp4 ; | |
23067 | bool temp7 = False ; | |
23068 | PyObject * obj0 = 0 ; | |
23069 | PyObject * obj1 = 0 ; | |
23070 | PyObject * obj2 = 0 ; | |
23071 | PyObject * obj3 = 0 ; | |
23072 | PyObject * obj4 = 0 ; | |
23073 | PyObject * obj5 = 0 ; | |
23074 | PyObject * obj6 = 0 ; | |
23075 | char *kwnames[] = { | |
23076 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23077 | }; | |
23078 | ||
23079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
23080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23081 | if (obj1) { | |
23082 | { | |
23083 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23084 | if (PyErr_Occurred()) SWIG_fail; | |
23085 | } | |
23086 | } | |
23087 | if (obj2) { | |
23088 | { | |
23089 | arg3 = &temp3; | |
23090 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23091 | } | |
23092 | } | |
23093 | if (obj3) { | |
23094 | { | |
23095 | arg4 = &temp4; | |
23096 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23097 | } | |
23098 | } | |
23099 | if (obj4) { | |
23100 | { | |
23101 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
23102 | if (PyErr_Occurred()) SWIG_fail; | |
23103 | } | |
23104 | } | |
23105 | if (obj5) { | |
23106 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23107 | if (arg6 == NULL) { | |
23108 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23109 | } | |
23110 | } | |
23111 | if (obj6) { | |
23112 | { | |
23113 | arg7 = wxString_in_helper(obj6); | |
23114 | if (arg7 == NULL) SWIG_fail; | |
23115 | temp7 = True; | |
23116 | } | |
23117 | } | |
23118 | { | |
23119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23120 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23121 | ||
23122 | wxPyEndAllowThreads(__tstate); | |
23123 | if (PyErr_Occurred()) SWIG_fail; | |
23124 | } | |
23125 | { | |
23126 | resultobj = wxPyMake_wxObject(result); | |
23127 | } | |
23128 | { | |
23129 | if (temp7) | |
23130 | delete arg7; | |
23131 | } | |
23132 | return resultobj; | |
23133 | fail: | |
23134 | { | |
23135 | if (temp7) | |
23136 | delete arg7; | |
23137 | } | |
23138 | return NULL; | |
23139 | } | |
23140 | ||
23141 | ||
23142 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23143 | PyObject *resultobj; | |
23144 | wxPyTreeCtrl *result; | |
23145 | char *kwnames[] = { | |
23146 | NULL | |
23147 | }; | |
23148 | ||
23149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
23150 | { | |
23151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23152 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
23153 | ||
23154 | wxPyEndAllowThreads(__tstate); | |
23155 | if (PyErr_Occurred()) SWIG_fail; | |
23156 | } | |
23157 | { | |
23158 | resultobj = wxPyMake_wxObject(result); | |
23159 | } | |
23160 | return resultobj; | |
23161 | fail: | |
23162 | return NULL; | |
23163 | } | |
23164 | ||
23165 | ||
23166 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23167 | PyObject *resultobj; | |
23168 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23169 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23170 | int arg3 = (int) -1 ; | |
23171 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23172 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23173 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23174 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23175 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
23176 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23177 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23178 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
23179 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23180 | bool result; | |
23181 | wxPoint temp4 ; | |
23182 | wxSize temp5 ; | |
23183 | bool temp8 = False ; | |
23184 | PyObject * obj0 = 0 ; | |
23185 | PyObject * obj1 = 0 ; | |
23186 | PyObject * obj2 = 0 ; | |
23187 | PyObject * obj3 = 0 ; | |
23188 | PyObject * obj4 = 0 ; | |
23189 | PyObject * obj5 = 0 ; | |
23190 | PyObject * obj6 = 0 ; | |
23191 | PyObject * obj7 = 0 ; | |
23192 | char *kwnames[] = { | |
23193 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23194 | }; | |
23195 | ||
23196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
23197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23198 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23199 | if (obj2) { | |
23200 | { | |
23201 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
23202 | if (PyErr_Occurred()) SWIG_fail; | |
23203 | } | |
23204 | } | |
23205 | if (obj3) { | |
23206 | { | |
23207 | arg4 = &temp4; | |
23208 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23209 | } | |
23210 | } | |
23211 | if (obj4) { | |
23212 | { | |
23213 | arg5 = &temp5; | |
23214 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23215 | } | |
23216 | } | |
23217 | if (obj5) { | |
23218 | { | |
23219 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
23220 | if (PyErr_Occurred()) SWIG_fail; | |
23221 | } | |
23222 | } | |
23223 | if (obj6) { | |
23224 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23225 | if (arg7 == NULL) { | |
23226 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23227 | } | |
23228 | } | |
23229 | if (obj7) { | |
23230 | { | |
23231 | arg8 = wxString_in_helper(obj7); | |
23232 | if (arg8 == NULL) SWIG_fail; | |
23233 | temp8 = True; | |
23234 | } | |
23235 | } | |
23236 | { | |
23237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23238 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23239 | ||
23240 | wxPyEndAllowThreads(__tstate); | |
23241 | if (PyErr_Occurred()) SWIG_fail; | |
23242 | } | |
23243 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
23244 | { | |
23245 | if (temp8) | |
23246 | delete arg8; | |
23247 | } | |
23248 | return resultobj; | |
23249 | fail: | |
23250 | { | |
23251 | if (temp8) | |
23252 | delete arg8; | |
23253 | } | |
23254 | return NULL; | |
23255 | } | |
23256 | ||
23257 | ||
23258 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23259 | PyObject *resultobj; | |
23260 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23261 | PyObject *arg2 = (PyObject *) 0 ; | |
23262 | PyObject *arg3 = (PyObject *) 0 ; | |
23263 | PyObject * obj0 = 0 ; | |
23264 | PyObject * obj1 = 0 ; | |
23265 | PyObject * obj2 = 0 ; | |
23266 | char *kwnames[] = { | |
23267 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23268 | }; | |
23269 | ||
23270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23272 | arg2 = obj1; | |
23273 | arg3 = obj2; | |
23274 | { | |
23275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23276 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23277 | ||
23278 | wxPyEndAllowThreads(__tstate); | |
23279 | if (PyErr_Occurred()) SWIG_fail; | |
23280 | } | |
23281 | Py_INCREF(Py_None); resultobj = Py_None; | |
23282 | return resultobj; | |
23283 | fail: | |
23284 | return NULL; | |
23285 | } | |
23286 | ||
23287 | ||
23288 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23289 | PyObject *resultobj; | |
23290 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23291 | size_t result; | |
23292 | PyObject * obj0 = 0 ; | |
23293 | char *kwnames[] = { | |
23294 | (char *) "self", NULL | |
23295 | }; | |
23296 | ||
23297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
23298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23299 | { | |
23300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23301 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
23302 | ||
23303 | wxPyEndAllowThreads(__tstate); | |
23304 | if (PyErr_Occurred()) SWIG_fail; | |
23305 | } | |
23306 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); | |
23307 | return resultobj; | |
23308 | fail: | |
23309 | return NULL; | |
23310 | } | |
23311 | ||
23312 | ||
23313 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23314 | PyObject *resultobj; | |
23315 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23316 | unsigned int result; | |
23317 | PyObject * obj0 = 0 ; | |
23318 | char *kwnames[] = { | |
23319 | (char *) "self", NULL | |
23320 | }; | |
23321 | ||
23322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
23323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23324 | { | |
23325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23326 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
23327 | ||
23328 | wxPyEndAllowThreads(__tstate); | |
23329 | if (PyErr_Occurred()) SWIG_fail; | |
23330 | } | |
23331 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); | |
23332 | return resultobj; | |
23333 | fail: | |
23334 | return NULL; | |
23335 | } | |
23336 | ||
23337 | ||
23338 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23339 | PyObject *resultobj; | |
23340 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23341 | unsigned int arg2 ; | |
23342 | PyObject * obj0 = 0 ; | |
23343 | PyObject * obj1 = 0 ; | |
23344 | char *kwnames[] = { | |
23345 | (char *) "self",(char *) "indent", NULL | |
23346 | }; | |
23347 | ||
23348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
23349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23350 | { | |
23351 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); | |
23352 | if (PyErr_Occurred()) SWIG_fail; | |
23353 | } | |
23354 | { | |
23355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23356 | (arg1)->SetIndent(arg2); | |
23357 | ||
23358 | wxPyEndAllowThreads(__tstate); | |
23359 | if (PyErr_Occurred()) SWIG_fail; | |
23360 | } | |
23361 | Py_INCREF(Py_None); resultobj = Py_None; | |
23362 | return resultobj; | |
23363 | fail: | |
23364 | return NULL; | |
23365 | } | |
23366 | ||
23367 | ||
23368 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23369 | PyObject *resultobj; | |
23370 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23371 | unsigned int result; | |
23372 | PyObject * obj0 = 0 ; | |
23373 | char *kwnames[] = { | |
23374 | (char *) "self", NULL | |
23375 | }; | |
23376 | ||
23377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
23378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23379 | { | |
23380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23381 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
23382 | ||
23383 | wxPyEndAllowThreads(__tstate); | |
23384 | if (PyErr_Occurred()) SWIG_fail; | |
23385 | } | |
23386 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); | |
23387 | return resultobj; | |
23388 | fail: | |
23389 | return NULL; | |
23390 | } | |
23391 | ||
23392 | ||
23393 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23394 | PyObject *resultobj; | |
23395 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23396 | unsigned int arg2 ; | |
23397 | PyObject * obj0 = 0 ; | |
23398 | PyObject * obj1 = 0 ; | |
23399 | char *kwnames[] = { | |
23400 | (char *) "self",(char *) "spacing", NULL | |
23401 | }; | |
23402 | ||
23403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
23404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23405 | { | |
23406 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); | |
23407 | if (PyErr_Occurred()) SWIG_fail; | |
23408 | } | |
23409 | { | |
23410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23411 | (arg1)->SetSpacing(arg2); | |
23412 | ||
23413 | wxPyEndAllowThreads(__tstate); | |
23414 | if (PyErr_Occurred()) SWIG_fail; | |
23415 | } | |
23416 | Py_INCREF(Py_None); resultobj = Py_None; | |
23417 | return resultobj; | |
23418 | fail: | |
23419 | return NULL; | |
23420 | } | |
23421 | ||
23422 | ||
23423 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23424 | PyObject *resultobj; | |
23425 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23426 | wxImageList *result; | |
23427 | PyObject * obj0 = 0 ; | |
23428 | char *kwnames[] = { | |
23429 | (char *) "self", NULL | |
23430 | }; | |
23431 | ||
23432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
23433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23434 | { | |
23435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23436 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
23437 | ||
23438 | wxPyEndAllowThreads(__tstate); | |
23439 | if (PyErr_Occurred()) SWIG_fail; | |
23440 | } | |
23441 | { | |
23442 | resultobj = wxPyMake_wxObject(result); | |
23443 | } | |
23444 | return resultobj; | |
23445 | fail: | |
23446 | return NULL; | |
23447 | } | |
23448 | ||
23449 | ||
23450 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23451 | PyObject *resultobj; | |
23452 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23453 | wxImageList *result; | |
23454 | PyObject * obj0 = 0 ; | |
23455 | char *kwnames[] = { | |
23456 | (char *) "self", NULL | |
23457 | }; | |
23458 | ||
23459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
23460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23461 | { | |
23462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23463 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
23464 | ||
23465 | wxPyEndAllowThreads(__tstate); | |
23466 | if (PyErr_Occurred()) SWIG_fail; | |
23467 | } | |
23468 | { | |
23469 | resultobj = wxPyMake_wxObject(result); | |
23470 | } | |
23471 | return resultobj; | |
23472 | fail: | |
23473 | return NULL; | |
23474 | } | |
23475 | ||
23476 | ||
23477 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23478 | PyObject *resultobj; | |
23479 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23480 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23481 | PyObject * obj0 = 0 ; | |
23482 | PyObject * obj1 = 0 ; | |
23483 | char *kwnames[] = { | |
23484 | (char *) "self",(char *) "imageList", NULL | |
23485 | }; | |
23486 | ||
23487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
23488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23489 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23490 | { | |
23491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23492 | (arg1)->SetImageList(arg2); | |
23493 | ||
23494 | wxPyEndAllowThreads(__tstate); | |
23495 | if (PyErr_Occurred()) SWIG_fail; | |
23496 | } | |
23497 | Py_INCREF(Py_None); resultobj = Py_None; | |
23498 | return resultobj; | |
23499 | fail: | |
23500 | return NULL; | |
23501 | } | |
23502 | ||
23503 | ||
23504 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23505 | PyObject *resultobj; | |
23506 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23507 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23508 | PyObject * obj0 = 0 ; | |
23509 | PyObject * obj1 = 0 ; | |
23510 | char *kwnames[] = { | |
23511 | (char *) "self",(char *) "imageList", NULL | |
23512 | }; | |
23513 | ||
23514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
23515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23516 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23517 | { | |
23518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23519 | (arg1)->SetStateImageList(arg2); | |
23520 | ||
23521 | wxPyEndAllowThreads(__tstate); | |
23522 | if (PyErr_Occurred()) SWIG_fail; | |
23523 | } | |
23524 | Py_INCREF(Py_None); resultobj = Py_None; | |
23525 | return resultobj; | |
23526 | fail: | |
23527 | return NULL; | |
23528 | } | |
23529 | ||
23530 | ||
23531 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23532 | PyObject *resultobj; | |
23533 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23534 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23535 | PyObject * obj0 = 0 ; | |
23536 | PyObject * obj1 = 0 ; | |
23537 | char *kwnames[] = { | |
23538 | (char *) "self",(char *) "imageList", NULL | |
23539 | }; | |
23540 | ||
23541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
23542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23543 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
23544 | { | |
23545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23546 | (arg1)->AssignImageList(arg2); | |
23547 | ||
23548 | wxPyEndAllowThreads(__tstate); | |
23549 | if (PyErr_Occurred()) SWIG_fail; | |
23550 | } | |
23551 | Py_INCREF(Py_None); resultobj = Py_None; | |
23552 | return resultobj; | |
23553 | fail: | |
23554 | return NULL; | |
23555 | } | |
23556 | ||
23557 | ||
23558 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23559 | PyObject *resultobj; | |
23560 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23561 | wxImageList *arg2 = (wxImageList *) 0 ; | |
23562 | PyObject * obj0 = 0 ; | |
23563 | PyObject * obj1 = 0 ; | |
23564 | char *kwnames[] = { | |
23565 | (char *) "self",(char *) "imageList", NULL | |
23566 | }; | |
23567 | ||
23568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
23569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23570 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
23571 | { | |
23572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23573 | (arg1)->AssignStateImageList(arg2); | |
23574 | ||
23575 | wxPyEndAllowThreads(__tstate); | |
23576 | if (PyErr_Occurred()) SWIG_fail; | |
23577 | } | |
23578 | Py_INCREF(Py_None); resultobj = Py_None; | |
23579 | return resultobj; | |
23580 | fail: | |
23581 | return NULL; | |
23582 | } | |
23583 | ||
23584 | ||
23585 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23586 | PyObject *resultobj; | |
23587 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23588 | wxTreeItemId *arg2 = 0 ; | |
23589 | wxString result; | |
23590 | PyObject * obj0 = 0 ; | |
23591 | PyObject * obj1 = 0 ; | |
23592 | char *kwnames[] = { | |
23593 | (char *) "self",(char *) "item", NULL | |
23594 | }; | |
23595 | ||
23596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
23597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23598 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23599 | if (arg2 == NULL) { | |
23600 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23601 | } | |
23602 | { | |
23603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23604 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
23605 | ||
23606 | wxPyEndAllowThreads(__tstate); | |
23607 | if (PyErr_Occurred()) SWIG_fail; | |
23608 | } | |
23609 | { | |
23610 | #if wxUSE_UNICODE | |
23611 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23612 | #else | |
23613 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23614 | #endif | |
23615 | } | |
23616 | return resultobj; | |
23617 | fail: | |
23618 | return NULL; | |
23619 | } | |
23620 | ||
23621 | ||
23622 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23623 | PyObject *resultobj; | |
23624 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23625 | wxTreeItemId *arg2 = 0 ; | |
23626 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
23627 | int result; | |
23628 | PyObject * obj0 = 0 ; | |
23629 | PyObject * obj1 = 0 ; | |
23630 | PyObject * obj2 = 0 ; | |
23631 | char *kwnames[] = { | |
23632 | (char *) "self",(char *) "item",(char *) "which", NULL | |
23633 | }; | |
23634 | ||
23635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23637 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23638 | if (arg2 == NULL) { | |
23639 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23640 | } | |
23641 | if (obj2) { | |
23642 | { | |
23643 | arg3 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj2); | |
23644 | if (PyErr_Occurred()) SWIG_fail; | |
23645 | } | |
23646 | } | |
23647 | { | |
23648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23649 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
23650 | ||
23651 | wxPyEndAllowThreads(__tstate); | |
23652 | if (PyErr_Occurred()) SWIG_fail; | |
23653 | } | |
23654 | resultobj = SWIG_PyObj_FromInt((int)result); | |
23655 | return resultobj; | |
23656 | fail: | |
23657 | return NULL; | |
23658 | } | |
23659 | ||
23660 | ||
23661 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23662 | PyObject *resultobj; | |
23663 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23664 | wxTreeItemId *arg2 = 0 ; | |
23665 | wxPyTreeItemData *result; | |
23666 | PyObject * obj0 = 0 ; | |
23667 | PyObject * obj1 = 0 ; | |
23668 | char *kwnames[] = { | |
23669 | (char *) "self",(char *) "item", NULL | |
23670 | }; | |
23671 | ||
23672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
23673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23674 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23675 | if (arg2 == NULL) { | |
23676 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23677 | } | |
23678 | { | |
23679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23680 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
23681 | ||
23682 | wxPyEndAllowThreads(__tstate); | |
23683 | if (PyErr_Occurred()) SWIG_fail; | |
23684 | } | |
23685 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 0); | |
23686 | return resultobj; | |
23687 | fail: | |
23688 | return NULL; | |
23689 | } | |
23690 | ||
23691 | ||
23692 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23693 | PyObject *resultobj; | |
23694 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23695 | wxTreeItemId *arg2 = 0 ; | |
23696 | PyObject *result; | |
23697 | PyObject * obj0 = 0 ; | |
23698 | PyObject * obj1 = 0 ; | |
23699 | char *kwnames[] = { | |
23700 | (char *) "self",(char *) "item", NULL | |
23701 | }; | |
23702 | ||
23703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
23704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23705 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23706 | if (arg2 == NULL) { | |
23707 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23708 | } | |
23709 | { | |
23710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23711 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
23712 | ||
23713 | wxPyEndAllowThreads(__tstate); | |
23714 | if (PyErr_Occurred()) SWIG_fail; | |
23715 | } | |
23716 | resultobj = result; | |
23717 | return resultobj; | |
23718 | fail: | |
23719 | return NULL; | |
23720 | } | |
23721 | ||
23722 | ||
23723 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23724 | PyObject *resultobj; | |
23725 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23726 | wxTreeItemId *arg2 = 0 ; | |
23727 | wxColour result; | |
23728 | PyObject * obj0 = 0 ; | |
23729 | PyObject * obj1 = 0 ; | |
23730 | char *kwnames[] = { | |
23731 | (char *) "self",(char *) "item", NULL | |
23732 | }; | |
23733 | ||
23734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
23735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23736 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23737 | if (arg2 == NULL) { | |
23738 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23739 | } | |
23740 | { | |
23741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23742 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
23743 | ||
23744 | wxPyEndAllowThreads(__tstate); | |
23745 | if (PyErr_Occurred()) SWIG_fail; | |
23746 | } | |
23747 | { | |
23748 | wxColour * resultptr; | |
23749 | resultptr = new wxColour((wxColour &) result); | |
23750 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
23751 | } | |
23752 | return resultobj; | |
23753 | fail: | |
23754 | return NULL; | |
23755 | } | |
23756 | ||
23757 | ||
23758 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23759 | PyObject *resultobj; | |
23760 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23761 | wxTreeItemId *arg2 = 0 ; | |
23762 | wxColour result; | |
23763 | PyObject * obj0 = 0 ; | |
23764 | PyObject * obj1 = 0 ; | |
23765 | char *kwnames[] = { | |
23766 | (char *) "self",(char *) "item", NULL | |
23767 | }; | |
23768 | ||
23769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
23770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23771 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23772 | if (arg2 == NULL) { | |
23773 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23774 | } | |
23775 | { | |
23776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23777 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
23778 | ||
23779 | wxPyEndAllowThreads(__tstate); | |
23780 | if (PyErr_Occurred()) SWIG_fail; | |
23781 | } | |
23782 | { | |
23783 | wxColour * resultptr; | |
23784 | resultptr = new wxColour((wxColour &) result); | |
23785 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
23786 | } | |
23787 | return resultobj; | |
23788 | fail: | |
23789 | return NULL; | |
23790 | } | |
23791 | ||
23792 | ||
23793 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23794 | PyObject *resultobj; | |
23795 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23796 | wxTreeItemId *arg2 = 0 ; | |
23797 | wxFont result; | |
23798 | PyObject * obj0 = 0 ; | |
23799 | PyObject * obj1 = 0 ; | |
23800 | char *kwnames[] = { | |
23801 | (char *) "self",(char *) "item", NULL | |
23802 | }; | |
23803 | ||
23804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
23805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23806 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23807 | if (arg2 == NULL) { | |
23808 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23809 | } | |
23810 | { | |
23811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23812 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
23813 | ||
23814 | wxPyEndAllowThreads(__tstate); | |
23815 | if (PyErr_Occurred()) SWIG_fail; | |
23816 | } | |
23817 | { | |
23818 | wxFont * resultptr; | |
23819 | resultptr = new wxFont((wxFont &) result); | |
23820 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
23821 | } | |
23822 | return resultobj; | |
23823 | fail: | |
23824 | return NULL; | |
23825 | } | |
23826 | ||
23827 | ||
23828 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23829 | PyObject *resultobj; | |
23830 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23831 | wxTreeItemId *arg2 = 0 ; | |
23832 | wxString *arg3 = 0 ; | |
23833 | bool temp3 = False ; | |
23834 | PyObject * obj0 = 0 ; | |
23835 | PyObject * obj1 = 0 ; | |
23836 | PyObject * obj2 = 0 ; | |
23837 | char *kwnames[] = { | |
23838 | (char *) "self",(char *) "item",(char *) "text", NULL | |
23839 | }; | |
23840 | ||
23841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23843 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23844 | if (arg2 == NULL) { | |
23845 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23846 | } | |
23847 | { | |
23848 | arg3 = wxString_in_helper(obj2); | |
23849 | if (arg3 == NULL) SWIG_fail; | |
23850 | temp3 = True; | |
23851 | } | |
23852 | { | |
23853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23854 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
23855 | ||
23856 | wxPyEndAllowThreads(__tstate); | |
23857 | if (PyErr_Occurred()) SWIG_fail; | |
23858 | } | |
23859 | Py_INCREF(Py_None); resultobj = Py_None; | |
23860 | { | |
23861 | if (temp3) | |
23862 | delete arg3; | |
23863 | } | |
23864 | return resultobj; | |
23865 | fail: | |
23866 | { | |
23867 | if (temp3) | |
23868 | delete arg3; | |
23869 | } | |
23870 | return NULL; | |
23871 | } | |
23872 | ||
23873 | ||
23874 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23875 | PyObject *resultobj; | |
23876 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23877 | wxTreeItemId *arg2 = 0 ; | |
23878 | int arg3 ; | |
23879 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
23880 | PyObject * obj0 = 0 ; | |
23881 | PyObject * obj1 = 0 ; | |
23882 | PyObject * obj2 = 0 ; | |
23883 | PyObject * obj3 = 0 ; | |
23884 | char *kwnames[] = { | |
23885 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
23886 | }; | |
23887 | ||
23888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23890 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23891 | if (arg2 == NULL) { | |
23892 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23893 | } | |
23894 | { | |
23895 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
23896 | if (PyErr_Occurred()) SWIG_fail; | |
23897 | } | |
23898 | if (obj3) { | |
23899 | { | |
23900 | arg4 = (wxTreeItemIcon) SWIG_PyObj_AsInt(obj3); | |
23901 | if (PyErr_Occurred()) SWIG_fail; | |
23902 | } | |
23903 | } | |
23904 | { | |
23905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23906 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
23907 | ||
23908 | wxPyEndAllowThreads(__tstate); | |
23909 | if (PyErr_Occurred()) SWIG_fail; | |
23910 | } | |
23911 | Py_INCREF(Py_None); resultobj = Py_None; | |
23912 | return resultobj; | |
23913 | fail: | |
23914 | return NULL; | |
23915 | } | |
23916 | ||
23917 | ||
23918 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23919 | PyObject *resultobj; | |
23920 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23921 | wxTreeItemId *arg2 = 0 ; | |
23922 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
23923 | PyObject * obj0 = 0 ; | |
23924 | PyObject * obj1 = 0 ; | |
23925 | PyObject * obj2 = 0 ; | |
23926 | char *kwnames[] = { | |
23927 | (char *) "self",(char *) "item",(char *) "data", NULL | |
23928 | }; | |
23929 | ||
23930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23932 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23933 | if (arg2 == NULL) { | |
23934 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23935 | } | |
23936 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23937 | { | |
23938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23939 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
23940 | ||
23941 | wxPyEndAllowThreads(__tstate); | |
23942 | if (PyErr_Occurred()) SWIG_fail; | |
23943 | } | |
23944 | Py_INCREF(Py_None); resultobj = Py_None; | |
23945 | return resultobj; | |
23946 | fail: | |
23947 | return NULL; | |
23948 | } | |
23949 | ||
23950 | ||
23951 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23952 | PyObject *resultobj; | |
23953 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23954 | wxTreeItemId *arg2 = 0 ; | |
23955 | PyObject *arg3 = (PyObject *) 0 ; | |
23956 | PyObject * obj0 = 0 ; | |
23957 | PyObject * obj1 = 0 ; | |
23958 | PyObject * obj2 = 0 ; | |
23959 | char *kwnames[] = { | |
23960 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
23961 | }; | |
23962 | ||
23963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23964 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23965 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23966 | if (arg2 == NULL) { | |
23967 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23968 | } | |
23969 | arg3 = obj2; | |
23970 | { | |
23971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23972 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
23973 | ||
23974 | wxPyEndAllowThreads(__tstate); | |
23975 | if (PyErr_Occurred()) SWIG_fail; | |
23976 | } | |
23977 | Py_INCREF(Py_None); resultobj = Py_None; | |
23978 | return resultobj; | |
23979 | fail: | |
23980 | return NULL; | |
23981 | } | |
23982 | ||
23983 | ||
23984 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23985 | PyObject *resultobj; | |
23986 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23987 | wxTreeItemId *arg2 = 0 ; | |
23988 | bool arg3 = (bool) True ; | |
23989 | PyObject * obj0 = 0 ; | |
23990 | PyObject * obj1 = 0 ; | |
23991 | PyObject * obj2 = 0 ; | |
23992 | char *kwnames[] = { | |
23993 | (char *) "self",(char *) "item",(char *) "has", NULL | |
23994 | }; | |
23995 | ||
23996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23998 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23999 | if (arg2 == NULL) { | |
24000 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24001 | } | |
24002 | if (obj2) { | |
24003 | { | |
24004 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
24005 | if (PyErr_Occurred()) SWIG_fail; | |
24006 | } | |
24007 | } | |
24008 | { | |
24009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24010 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
24011 | ||
24012 | wxPyEndAllowThreads(__tstate); | |
24013 | if (PyErr_Occurred()) SWIG_fail; | |
24014 | } | |
24015 | Py_INCREF(Py_None); resultobj = Py_None; | |
24016 | return resultobj; | |
24017 | fail: | |
24018 | return NULL; | |
24019 | } | |
24020 | ||
24021 | ||
24022 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24023 | PyObject *resultobj; | |
24024 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24025 | wxTreeItemId *arg2 = 0 ; | |
24026 | bool arg3 = (bool) True ; | |
24027 | PyObject * obj0 = 0 ; | |
24028 | PyObject * obj1 = 0 ; | |
24029 | PyObject * obj2 = 0 ; | |
24030 | char *kwnames[] = { | |
24031 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
24032 | }; | |
24033 | ||
24034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24036 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24037 | if (arg2 == NULL) { | |
24038 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24039 | } | |
24040 | if (obj2) { | |
24041 | { | |
24042 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
24043 | if (PyErr_Occurred()) SWIG_fail; | |
24044 | } | |
24045 | } | |
24046 | { | |
24047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24048 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
24049 | ||
24050 | wxPyEndAllowThreads(__tstate); | |
24051 | if (PyErr_Occurred()) SWIG_fail; | |
24052 | } | |
24053 | Py_INCREF(Py_None); resultobj = Py_None; | |
24054 | return resultobj; | |
24055 | fail: | |
24056 | return NULL; | |
24057 | } | |
24058 | ||
24059 | ||
24060 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24061 | PyObject *resultobj; | |
24062 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24063 | wxTreeItemId *arg2 = 0 ; | |
24064 | wxColour *arg3 = 0 ; | |
24065 | wxColour temp3 ; | |
24066 | PyObject * obj0 = 0 ; | |
24067 | PyObject * obj1 = 0 ; | |
24068 | PyObject * obj2 = 0 ; | |
24069 | char *kwnames[] = { | |
24070 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24071 | }; | |
24072 | ||
24073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24075 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24076 | if (arg2 == NULL) { | |
24077 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24078 | } | |
24079 | { | |
24080 | arg3 = &temp3; | |
24081 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24082 | } | |
24083 | { | |
24084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24085 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24086 | ||
24087 | wxPyEndAllowThreads(__tstate); | |
24088 | if (PyErr_Occurred()) SWIG_fail; | |
24089 | } | |
24090 | Py_INCREF(Py_None); resultobj = Py_None; | |
24091 | return resultobj; | |
24092 | fail: | |
24093 | return NULL; | |
24094 | } | |
24095 | ||
24096 | ||
24097 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24098 | PyObject *resultobj; | |
24099 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24100 | wxTreeItemId *arg2 = 0 ; | |
24101 | wxColour *arg3 = 0 ; | |
24102 | wxColour temp3 ; | |
24103 | PyObject * obj0 = 0 ; | |
24104 | PyObject * obj1 = 0 ; | |
24105 | PyObject * obj2 = 0 ; | |
24106 | char *kwnames[] = { | |
24107 | (char *) "self",(char *) "item",(char *) "col", NULL | |
24108 | }; | |
24109 | ||
24110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24112 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24113 | if (arg2 == NULL) { | |
24114 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24115 | } | |
24116 | { | |
24117 | arg3 = &temp3; | |
24118 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24119 | } | |
24120 | { | |
24121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24122 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
24123 | ||
24124 | wxPyEndAllowThreads(__tstate); | |
24125 | if (PyErr_Occurred()) SWIG_fail; | |
24126 | } | |
24127 | Py_INCREF(Py_None); resultobj = Py_None; | |
24128 | return resultobj; | |
24129 | fail: | |
24130 | return NULL; | |
24131 | } | |
24132 | ||
24133 | ||
24134 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24135 | PyObject *resultobj; | |
24136 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24137 | wxTreeItemId *arg2 = 0 ; | |
24138 | wxFont *arg3 = 0 ; | |
24139 | PyObject * obj0 = 0 ; | |
24140 | PyObject * obj1 = 0 ; | |
24141 | PyObject * obj2 = 0 ; | |
24142 | char *kwnames[] = { | |
24143 | (char *) "self",(char *) "item",(char *) "font", NULL | |
24144 | }; | |
24145 | ||
24146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24148 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24149 | if (arg2 == NULL) { | |
24150 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24151 | } | |
24152 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24153 | if (arg3 == NULL) { | |
24154 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24155 | } | |
24156 | { | |
24157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24158 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
24159 | ||
24160 | wxPyEndAllowThreads(__tstate); | |
24161 | if (PyErr_Occurred()) SWIG_fail; | |
24162 | } | |
24163 | Py_INCREF(Py_None); resultobj = Py_None; | |
24164 | return resultobj; | |
24165 | fail: | |
24166 | return NULL; | |
24167 | } | |
24168 | ||
24169 | ||
24170 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24171 | PyObject *resultobj; | |
24172 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24173 | wxTreeItemId *arg2 = 0 ; | |
24174 | bool result; | |
24175 | PyObject * obj0 = 0 ; | |
24176 | PyObject * obj1 = 0 ; | |
24177 | char *kwnames[] = { | |
24178 | (char *) "self",(char *) "item", NULL | |
24179 | }; | |
24180 | ||
24181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
24182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24183 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24184 | if (arg2 == NULL) { | |
24185 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24186 | } | |
24187 | { | |
24188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24189 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
24190 | ||
24191 | wxPyEndAllowThreads(__tstate); | |
24192 | if (PyErr_Occurred()) SWIG_fail; | |
24193 | } | |
24194 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
24195 | return resultobj; | |
24196 | fail: | |
24197 | return NULL; | |
24198 | } | |
24199 | ||
24200 | ||
24201 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24202 | PyObject *resultobj; | |
24203 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24204 | wxTreeItemId *arg2 = 0 ; | |
24205 | bool result; | |
24206 | PyObject * obj0 = 0 ; | |
24207 | PyObject * obj1 = 0 ; | |
24208 | char *kwnames[] = { | |
24209 | (char *) "self",(char *) "item", NULL | |
24210 | }; | |
24211 | ||
24212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
24213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24214 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24215 | if (arg2 == NULL) { | |
24216 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24217 | } | |
24218 | { | |
24219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24220 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
24221 | ||
24222 | wxPyEndAllowThreads(__tstate); | |
24223 | if (PyErr_Occurred()) SWIG_fail; | |
24224 | } | |
24225 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
24226 | return resultobj; | |
24227 | fail: | |
24228 | return NULL; | |
24229 | } | |
24230 | ||
24231 | ||
24232 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24233 | PyObject *resultobj; | |
24234 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24235 | wxTreeItemId *arg2 = 0 ; | |
24236 | bool result; | |
24237 | PyObject * obj0 = 0 ; | |
24238 | PyObject * obj1 = 0 ; | |
24239 | char *kwnames[] = { | |
24240 | (char *) "self",(char *) "item", NULL | |
24241 | }; | |
24242 | ||
24243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
24244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24245 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24246 | if (arg2 == NULL) { | |
24247 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24248 | } | |
24249 | { | |
24250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24251 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
24252 | ||
24253 | wxPyEndAllowThreads(__tstate); | |
24254 | if (PyErr_Occurred()) SWIG_fail; | |
24255 | } | |
24256 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
24257 | return resultobj; | |
24258 | fail: | |
24259 | return NULL; | |
24260 | } | |
24261 | ||
24262 | ||
24263 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24264 | PyObject *resultobj; | |
24265 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24266 | wxTreeItemId *arg2 = 0 ; | |
24267 | bool result; | |
24268 | PyObject * obj0 = 0 ; | |
24269 | PyObject * obj1 = 0 ; | |
24270 | char *kwnames[] = { | |
24271 | (char *) "self",(char *) "item", NULL | |
24272 | }; | |
24273 | ||
24274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
24275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24276 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24277 | if (arg2 == NULL) { | |
24278 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24279 | } | |
24280 | { | |
24281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24282 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
24283 | ||
24284 | wxPyEndAllowThreads(__tstate); | |
24285 | if (PyErr_Occurred()) SWIG_fail; | |
24286 | } | |
24287 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
24288 | return resultobj; | |
24289 | fail: | |
24290 | return NULL; | |
24291 | } | |
24292 | ||
24293 | ||
24294 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24295 | PyObject *resultobj; | |
24296 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24297 | wxTreeItemId *arg2 = 0 ; | |
24298 | bool result; | |
24299 | PyObject * obj0 = 0 ; | |
24300 | PyObject * obj1 = 0 ; | |
24301 | char *kwnames[] = { | |
24302 | (char *) "self",(char *) "item", NULL | |
24303 | }; | |
24304 | ||
24305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
24306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24307 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24308 | if (arg2 == NULL) { | |
24309 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24310 | } | |
24311 | { | |
24312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24313 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
24314 | ||
24315 | wxPyEndAllowThreads(__tstate); | |
24316 | if (PyErr_Occurred()) SWIG_fail; | |
24317 | } | |
24318 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
24319 | return resultobj; | |
24320 | fail: | |
24321 | return NULL; | |
24322 | } | |
24323 | ||
24324 | ||
24325 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24326 | PyObject *resultobj; | |
24327 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24328 | wxTreeItemId *arg2 = 0 ; | |
24329 | bool arg3 = (bool) True ; | |
24330 | size_t result; | |
24331 | PyObject * obj0 = 0 ; | |
24332 | PyObject * obj1 = 0 ; | |
24333 | PyObject * obj2 = 0 ; | |
24334 | char *kwnames[] = { | |
24335 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
24336 | }; | |
24337 | ||
24338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24340 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24341 | if (arg2 == NULL) { | |
24342 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24343 | } | |
24344 | if (obj2) { | |
24345 | { | |
24346 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
24347 | if (PyErr_Occurred()) SWIG_fail; | |
24348 | } | |
24349 | } | |
24350 | { | |
24351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24352 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
24353 | ||
24354 | wxPyEndAllowThreads(__tstate); | |
24355 | if (PyErr_Occurred()) SWIG_fail; | |
24356 | } | |
24357 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); | |
24358 | return resultobj; | |
24359 | fail: | |
24360 | return NULL; | |
24361 | } | |
24362 | ||
24363 | ||
24364 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24365 | PyObject *resultobj; | |
24366 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24367 | wxTreeItemId result; | |
24368 | PyObject * obj0 = 0 ; | |
24369 | char *kwnames[] = { | |
24370 | (char *) "self", NULL | |
24371 | }; | |
24372 | ||
24373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
24374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24375 | { | |
24376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24377 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
24378 | ||
24379 | wxPyEndAllowThreads(__tstate); | |
24380 | if (PyErr_Occurred()) SWIG_fail; | |
24381 | } | |
24382 | { | |
24383 | wxTreeItemId * resultptr; | |
24384 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24385 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24386 | } | |
24387 | return resultobj; | |
24388 | fail: | |
24389 | return NULL; | |
24390 | } | |
24391 | ||
24392 | ||
24393 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24394 | PyObject *resultobj; | |
24395 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24396 | wxTreeItemId result; | |
24397 | PyObject * obj0 = 0 ; | |
24398 | char *kwnames[] = { | |
24399 | (char *) "self", NULL | |
24400 | }; | |
24401 | ||
24402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
24403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24404 | { | |
24405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24406 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
24407 | ||
24408 | wxPyEndAllowThreads(__tstate); | |
24409 | if (PyErr_Occurred()) SWIG_fail; | |
24410 | } | |
24411 | { | |
24412 | wxTreeItemId * resultptr; | |
24413 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24414 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24415 | } | |
24416 | return resultobj; | |
24417 | fail: | |
24418 | return NULL; | |
24419 | } | |
24420 | ||
24421 | ||
24422 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24423 | PyObject *resultobj; | |
24424 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24425 | PyObject *result; | |
24426 | PyObject * obj0 = 0 ; | |
24427 | char *kwnames[] = { | |
24428 | (char *) "self", NULL | |
24429 | }; | |
24430 | ||
24431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
24432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24433 | { | |
24434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24435 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
24436 | ||
24437 | wxPyEndAllowThreads(__tstate); | |
24438 | if (PyErr_Occurred()) SWIG_fail; | |
24439 | } | |
24440 | resultobj = result; | |
24441 | return resultobj; | |
24442 | fail: | |
24443 | return NULL; | |
24444 | } | |
24445 | ||
24446 | ||
24447 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24448 | PyObject *resultobj; | |
24449 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24450 | wxTreeItemId *arg2 = 0 ; | |
24451 | wxTreeItemId result; | |
24452 | PyObject * obj0 = 0 ; | |
24453 | PyObject * obj1 = 0 ; | |
24454 | char *kwnames[] = { | |
24455 | (char *) "self",(char *) "item", NULL | |
24456 | }; | |
24457 | ||
24458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
24459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24460 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24461 | if (arg2 == NULL) { | |
24462 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24463 | } | |
24464 | { | |
24465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24466 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
24467 | ||
24468 | wxPyEndAllowThreads(__tstate); | |
24469 | if (PyErr_Occurred()) SWIG_fail; | |
24470 | } | |
24471 | { | |
24472 | wxTreeItemId * resultptr; | |
24473 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24474 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24475 | } | |
24476 | return resultobj; | |
24477 | fail: | |
24478 | return NULL; | |
24479 | } | |
24480 | ||
24481 | ||
24482 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24483 | PyObject *resultobj; | |
24484 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24485 | wxTreeItemId *arg2 = 0 ; | |
24486 | PyObject *result; | |
24487 | PyObject * obj0 = 0 ; | |
24488 | PyObject * obj1 = 0 ; | |
24489 | char *kwnames[] = { | |
24490 | (char *) "self",(char *) "item", NULL | |
24491 | }; | |
24492 | ||
24493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
24494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24495 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24496 | if (arg2 == NULL) { | |
24497 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24498 | } | |
24499 | { | |
24500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24501 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
24502 | ||
24503 | wxPyEndAllowThreads(__tstate); | |
24504 | if (PyErr_Occurred()) SWIG_fail; | |
24505 | } | |
24506 | resultobj = result; | |
24507 | return resultobj; | |
24508 | fail: | |
24509 | return NULL; | |
24510 | } | |
24511 | ||
24512 | ||
24513 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24514 | PyObject *resultobj; | |
24515 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24516 | wxTreeItemId *arg2 = 0 ; | |
24517 | void *arg3 = (void *) 0 ; | |
24518 | PyObject *result; | |
24519 | PyObject * obj0 = 0 ; | |
24520 | PyObject * obj1 = 0 ; | |
24521 | PyObject * obj2 = 0 ; | |
24522 | char *kwnames[] = { | |
24523 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
24524 | }; | |
24525 | ||
24526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24528 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24529 | if (arg2 == NULL) { | |
24530 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24531 | } | |
24532 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24533 | { | |
24534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24535 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24536 | ||
24537 | wxPyEndAllowThreads(__tstate); | |
24538 | if (PyErr_Occurred()) SWIG_fail; | |
24539 | } | |
24540 | resultobj = result; | |
24541 | return resultobj; | |
24542 | fail: | |
24543 | return NULL; | |
24544 | } | |
24545 | ||
24546 | ||
24547 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24548 | PyObject *resultobj; | |
24549 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24550 | wxTreeItemId *arg2 = 0 ; | |
24551 | wxTreeItemId result; | |
24552 | PyObject * obj0 = 0 ; | |
24553 | PyObject * obj1 = 0 ; | |
24554 | char *kwnames[] = { | |
24555 | (char *) "self",(char *) "item", NULL | |
24556 | }; | |
24557 | ||
24558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
24559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24560 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24561 | if (arg2 == NULL) { | |
24562 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24563 | } | |
24564 | { | |
24565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24566 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
24567 | ||
24568 | wxPyEndAllowThreads(__tstate); | |
24569 | if (PyErr_Occurred()) SWIG_fail; | |
24570 | } | |
24571 | { | |
24572 | wxTreeItemId * resultptr; | |
24573 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24574 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24575 | } | |
24576 | return resultobj; | |
24577 | fail: | |
24578 | return NULL; | |
24579 | } | |
24580 | ||
24581 | ||
24582 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24583 | PyObject *resultobj; | |
24584 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24585 | wxTreeItemId *arg2 = 0 ; | |
24586 | wxTreeItemId result; | |
24587 | PyObject * obj0 = 0 ; | |
24588 | PyObject * obj1 = 0 ; | |
24589 | char *kwnames[] = { | |
24590 | (char *) "self",(char *) "item", NULL | |
24591 | }; | |
24592 | ||
24593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
24594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24595 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24596 | if (arg2 == NULL) { | |
24597 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24598 | } | |
24599 | { | |
24600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24601 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
24602 | ||
24603 | wxPyEndAllowThreads(__tstate); | |
24604 | if (PyErr_Occurred()) SWIG_fail; | |
24605 | } | |
24606 | { | |
24607 | wxTreeItemId * resultptr; | |
24608 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24609 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24610 | } | |
24611 | return resultobj; | |
24612 | fail: | |
24613 | return NULL; | |
24614 | } | |
24615 | ||
24616 | ||
24617 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24618 | PyObject *resultobj; | |
24619 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24620 | wxTreeItemId *arg2 = 0 ; | |
24621 | wxTreeItemId result; | |
24622 | PyObject * obj0 = 0 ; | |
24623 | PyObject * obj1 = 0 ; | |
24624 | char *kwnames[] = { | |
24625 | (char *) "self",(char *) "item", NULL | |
24626 | }; | |
24627 | ||
24628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
24629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24630 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24631 | if (arg2 == NULL) { | |
24632 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24633 | } | |
24634 | { | |
24635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24636 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
24637 | ||
24638 | wxPyEndAllowThreads(__tstate); | |
24639 | if (PyErr_Occurred()) SWIG_fail; | |
24640 | } | |
24641 | { | |
24642 | wxTreeItemId * resultptr; | |
24643 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24644 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24645 | } | |
24646 | return resultobj; | |
24647 | fail: | |
24648 | return NULL; | |
24649 | } | |
24650 | ||
24651 | ||
24652 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24653 | PyObject *resultobj; | |
24654 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24655 | wxTreeItemId result; | |
24656 | PyObject * obj0 = 0 ; | |
24657 | char *kwnames[] = { | |
24658 | (char *) "self", NULL | |
24659 | }; | |
24660 | ||
24661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
24662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24663 | { | |
24664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24665 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
24666 | ||
24667 | wxPyEndAllowThreads(__tstate); | |
24668 | if (PyErr_Occurred()) SWIG_fail; | |
24669 | } | |
24670 | { | |
24671 | wxTreeItemId * resultptr; | |
24672 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24673 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24674 | } | |
24675 | return resultobj; | |
24676 | fail: | |
24677 | return NULL; | |
24678 | } | |
24679 | ||
24680 | ||
24681 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24682 | PyObject *resultobj; | |
24683 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24684 | wxTreeItemId *arg2 = 0 ; | |
24685 | wxTreeItemId result; | |
24686 | PyObject * obj0 = 0 ; | |
24687 | PyObject * obj1 = 0 ; | |
24688 | char *kwnames[] = { | |
24689 | (char *) "self",(char *) "item", NULL | |
24690 | }; | |
24691 | ||
24692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
24693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24694 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24695 | if (arg2 == NULL) { | |
24696 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24697 | } | |
24698 | { | |
24699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24700 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
24701 | ||
24702 | wxPyEndAllowThreads(__tstate); | |
24703 | if (PyErr_Occurred()) SWIG_fail; | |
24704 | } | |
24705 | { | |
24706 | wxTreeItemId * resultptr; | |
24707 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24708 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24709 | } | |
24710 | return resultobj; | |
24711 | fail: | |
24712 | return NULL; | |
24713 | } | |
24714 | ||
24715 | ||
24716 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24717 | PyObject *resultobj; | |
24718 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24719 | wxTreeItemId *arg2 = 0 ; | |
24720 | wxTreeItemId result; | |
24721 | PyObject * obj0 = 0 ; | |
24722 | PyObject * obj1 = 0 ; | |
24723 | char *kwnames[] = { | |
24724 | (char *) "self",(char *) "item", NULL | |
24725 | }; | |
24726 | ||
24727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
24728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24729 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24730 | if (arg2 == NULL) { | |
24731 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24732 | } | |
24733 | { | |
24734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24735 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
24736 | ||
24737 | wxPyEndAllowThreads(__tstate); | |
24738 | if (PyErr_Occurred()) SWIG_fail; | |
24739 | } | |
24740 | { | |
24741 | wxTreeItemId * resultptr; | |
24742 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24743 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24744 | } | |
24745 | return resultobj; | |
24746 | fail: | |
24747 | return NULL; | |
24748 | } | |
24749 | ||
24750 | ||
24751 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24752 | PyObject *resultobj; | |
24753 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24754 | wxString *arg2 = 0 ; | |
24755 | int arg3 = (int) -1 ; | |
24756 | int arg4 = (int) -1 ; | |
24757 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
24758 | wxTreeItemId result; | |
24759 | bool temp2 = False ; | |
24760 | PyObject * obj0 = 0 ; | |
24761 | PyObject * obj1 = 0 ; | |
24762 | PyObject * obj2 = 0 ; | |
24763 | PyObject * obj3 = 0 ; | |
24764 | PyObject * obj4 = 0 ; | |
24765 | char *kwnames[] = { | |
24766 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
24767 | }; | |
24768 | ||
24769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
24770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24771 | { | |
24772 | arg2 = wxString_in_helper(obj1); | |
24773 | if (arg2 == NULL) SWIG_fail; | |
24774 | temp2 = True; | |
24775 | } | |
24776 | if (obj2) { | |
24777 | { | |
24778 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24779 | if (PyErr_Occurred()) SWIG_fail; | |
24780 | } | |
24781 | } | |
24782 | if (obj3) { | |
24783 | { | |
24784 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
24785 | if (PyErr_Occurred()) SWIG_fail; | |
24786 | } | |
24787 | } | |
24788 | if (obj4) { | |
24789 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24790 | } | |
24791 | { | |
24792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24793 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
24794 | ||
24795 | wxPyEndAllowThreads(__tstate); | |
24796 | if (PyErr_Occurred()) SWIG_fail; | |
24797 | } | |
24798 | { | |
24799 | wxTreeItemId * resultptr; | |
24800 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24801 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24802 | } | |
24803 | { | |
24804 | if (temp2) | |
24805 | delete arg2; | |
24806 | } | |
24807 | return resultobj; | |
24808 | fail: | |
24809 | { | |
24810 | if (temp2) | |
24811 | delete arg2; | |
24812 | } | |
24813 | return NULL; | |
24814 | } | |
24815 | ||
24816 | ||
24817 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24818 | PyObject *resultobj; | |
24819 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24820 | wxTreeItemId *arg2 = 0 ; | |
24821 | wxString *arg3 = 0 ; | |
24822 | int arg4 = (int) -1 ; | |
24823 | int arg5 = (int) -1 ; | |
24824 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
24825 | wxTreeItemId result; | |
24826 | bool temp3 = False ; | |
24827 | PyObject * obj0 = 0 ; | |
24828 | PyObject * obj1 = 0 ; | |
24829 | PyObject * obj2 = 0 ; | |
24830 | PyObject * obj3 = 0 ; | |
24831 | PyObject * obj4 = 0 ; | |
24832 | PyObject * obj5 = 0 ; | |
24833 | char *kwnames[] = { | |
24834 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
24835 | }; | |
24836 | ||
24837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
24838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24839 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24840 | if (arg2 == NULL) { | |
24841 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24842 | } | |
24843 | { | |
24844 | arg3 = wxString_in_helper(obj2); | |
24845 | if (arg3 == NULL) SWIG_fail; | |
24846 | temp3 = True; | |
24847 | } | |
24848 | if (obj3) { | |
24849 | { | |
24850 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
24851 | if (PyErr_Occurred()) SWIG_fail; | |
24852 | } | |
24853 | } | |
24854 | if (obj4) { | |
24855 | { | |
24856 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
24857 | if (PyErr_Occurred()) SWIG_fail; | |
24858 | } | |
24859 | } | |
24860 | if (obj5) { | |
24861 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24862 | } | |
24863 | { | |
24864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24865 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
24866 | ||
24867 | wxPyEndAllowThreads(__tstate); | |
24868 | if (PyErr_Occurred()) SWIG_fail; | |
24869 | } | |
24870 | { | |
24871 | wxTreeItemId * resultptr; | |
24872 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24873 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24874 | } | |
24875 | { | |
24876 | if (temp3) | |
24877 | delete arg3; | |
24878 | } | |
24879 | return resultobj; | |
24880 | fail: | |
24881 | { | |
24882 | if (temp3) | |
24883 | delete arg3; | |
24884 | } | |
24885 | return NULL; | |
24886 | } | |
24887 | ||
24888 | ||
24889 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24890 | PyObject *resultobj; | |
24891 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24892 | wxTreeItemId *arg2 = 0 ; | |
24893 | wxTreeItemId *arg3 = 0 ; | |
24894 | wxString *arg4 = 0 ; | |
24895 | int arg5 = (int) -1 ; | |
24896 | int arg6 = (int) -1 ; | |
24897 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
24898 | wxTreeItemId result; | |
24899 | bool temp4 = False ; | |
24900 | PyObject * obj0 = 0 ; | |
24901 | PyObject * obj1 = 0 ; | |
24902 | PyObject * obj2 = 0 ; | |
24903 | PyObject * obj3 = 0 ; | |
24904 | PyObject * obj4 = 0 ; | |
24905 | PyObject * obj5 = 0 ; | |
24906 | PyObject * obj6 = 0 ; | |
24907 | char *kwnames[] = { | |
24908 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
24909 | }; | |
24910 | ||
24911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24913 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24914 | if (arg2 == NULL) { | |
24915 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24916 | } | |
24917 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24918 | if (arg3 == NULL) { | |
24919 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24920 | } | |
24921 | { | |
24922 | arg4 = wxString_in_helper(obj3); | |
24923 | if (arg4 == NULL) SWIG_fail; | |
24924 | temp4 = True; | |
24925 | } | |
24926 | if (obj4) { | |
24927 | { | |
24928 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
24929 | if (PyErr_Occurred()) SWIG_fail; | |
24930 | } | |
24931 | } | |
24932 | if (obj5) { | |
24933 | { | |
24934 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
24935 | if (PyErr_Occurred()) SWIG_fail; | |
24936 | } | |
24937 | } | |
24938 | if (obj6) { | |
24939 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24940 | } | |
24941 | { | |
24942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24943 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
24944 | ||
24945 | wxPyEndAllowThreads(__tstate); | |
24946 | if (PyErr_Occurred()) SWIG_fail; | |
24947 | } | |
24948 | { | |
24949 | wxTreeItemId * resultptr; | |
24950 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24951 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24952 | } | |
24953 | { | |
24954 | if (temp4) | |
24955 | delete arg4; | |
24956 | } | |
24957 | return resultobj; | |
24958 | fail: | |
24959 | { | |
24960 | if (temp4) | |
24961 | delete arg4; | |
24962 | } | |
24963 | return NULL; | |
24964 | } | |
24965 | ||
24966 | ||
24967 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24968 | PyObject *resultobj; | |
24969 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24970 | wxTreeItemId *arg2 = 0 ; | |
24971 | size_t arg3 ; | |
24972 | wxString *arg4 = 0 ; | |
24973 | int arg5 = (int) -1 ; | |
24974 | int arg6 = (int) -1 ; | |
24975 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
24976 | wxTreeItemId result; | |
24977 | bool temp4 = False ; | |
24978 | PyObject * obj0 = 0 ; | |
24979 | PyObject * obj1 = 0 ; | |
24980 | PyObject * obj2 = 0 ; | |
24981 | PyObject * obj3 = 0 ; | |
24982 | PyObject * obj4 = 0 ; | |
24983 | PyObject * obj5 = 0 ; | |
24984 | PyObject * obj6 = 0 ; | |
24985 | char *kwnames[] = { | |
24986 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
24987 | }; | |
24988 | ||
24989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24991 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24992 | if (arg2 == NULL) { | |
24993 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24994 | } | |
24995 | { | |
24996 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); | |
24997 | if (PyErr_Occurred()) SWIG_fail; | |
24998 | } | |
24999 | { | |
25000 | arg4 = wxString_in_helper(obj3); | |
25001 | if (arg4 == NULL) SWIG_fail; | |
25002 | temp4 = True; | |
25003 | } | |
25004 | if (obj4) { | |
25005 | { | |
25006 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25007 | if (PyErr_Occurred()) SWIG_fail; | |
25008 | } | |
25009 | } | |
25010 | if (obj5) { | |
25011 | { | |
25012 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
25013 | if (PyErr_Occurred()) SWIG_fail; | |
25014 | } | |
25015 | } | |
25016 | if (obj6) { | |
25017 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25018 | } | |
25019 | { | |
25020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25021 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
25022 | ||
25023 | wxPyEndAllowThreads(__tstate); | |
25024 | if (PyErr_Occurred()) SWIG_fail; | |
25025 | } | |
25026 | { | |
25027 | wxTreeItemId * resultptr; | |
25028 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25029 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25030 | } | |
25031 | { | |
25032 | if (temp4) | |
25033 | delete arg4; | |
25034 | } | |
25035 | return resultobj; | |
25036 | fail: | |
25037 | { | |
25038 | if (temp4) | |
25039 | delete arg4; | |
25040 | } | |
25041 | return NULL; | |
25042 | } | |
25043 | ||
25044 | ||
25045 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25046 | PyObject *resultobj; | |
25047 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25048 | wxTreeItemId *arg2 = 0 ; | |
25049 | wxString *arg3 = 0 ; | |
25050 | int arg4 = (int) -1 ; | |
25051 | int arg5 = (int) -1 ; | |
25052 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
25053 | wxTreeItemId result; | |
25054 | bool temp3 = False ; | |
25055 | PyObject * obj0 = 0 ; | |
25056 | PyObject * obj1 = 0 ; | |
25057 | PyObject * obj2 = 0 ; | |
25058 | PyObject * obj3 = 0 ; | |
25059 | PyObject * obj4 = 0 ; | |
25060 | PyObject * obj5 = 0 ; | |
25061 | char *kwnames[] = { | |
25062 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25063 | }; | |
25064 | ||
25065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
25066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25067 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25068 | if (arg2 == NULL) { | |
25069 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25070 | } | |
25071 | { | |
25072 | arg3 = wxString_in_helper(obj2); | |
25073 | if (arg3 == NULL) SWIG_fail; | |
25074 | temp3 = True; | |
25075 | } | |
25076 | if (obj3) { | |
25077 | { | |
25078 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25079 | if (PyErr_Occurred()) SWIG_fail; | |
25080 | } | |
25081 | } | |
25082 | if (obj4) { | |
25083 | { | |
25084 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25085 | if (PyErr_Occurred()) SWIG_fail; | |
25086 | } | |
25087 | } | |
25088 | if (obj5) { | |
25089 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25090 | } | |
25091 | { | |
25092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25093 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
25094 | ||
25095 | wxPyEndAllowThreads(__tstate); | |
25096 | if (PyErr_Occurred()) SWIG_fail; | |
25097 | } | |
25098 | { | |
25099 | wxTreeItemId * resultptr; | |
25100 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25101 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25102 | } | |
25103 | { | |
25104 | if (temp3) | |
25105 | delete arg3; | |
25106 | } | |
25107 | return resultobj; | |
25108 | fail: | |
25109 | { | |
25110 | if (temp3) | |
25111 | delete arg3; | |
25112 | } | |
25113 | return NULL; | |
25114 | } | |
25115 | ||
25116 | ||
25117 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25118 | PyObject *resultobj; | |
25119 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25120 | wxTreeItemId *arg2 = 0 ; | |
25121 | PyObject * obj0 = 0 ; | |
25122 | PyObject * obj1 = 0 ; | |
25123 | char *kwnames[] = { | |
25124 | (char *) "self",(char *) "item", NULL | |
25125 | }; | |
25126 | ||
25127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
25128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25129 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25130 | if (arg2 == NULL) { | |
25131 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25132 | } | |
25133 | { | |
25134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25135 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
25136 | ||
25137 | wxPyEndAllowThreads(__tstate); | |
25138 | if (PyErr_Occurred()) SWIG_fail; | |
25139 | } | |
25140 | Py_INCREF(Py_None); resultobj = Py_None; | |
25141 | return resultobj; | |
25142 | fail: | |
25143 | return NULL; | |
25144 | } | |
25145 | ||
25146 | ||
25147 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25148 | PyObject *resultobj; | |
25149 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25150 | wxTreeItemId *arg2 = 0 ; | |
25151 | PyObject * obj0 = 0 ; | |
25152 | PyObject * obj1 = 0 ; | |
25153 | char *kwnames[] = { | |
25154 | (char *) "self",(char *) "item", NULL | |
25155 | }; | |
25156 | ||
25157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
25158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25159 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25160 | if (arg2 == NULL) { | |
25161 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25162 | } | |
25163 | { | |
25164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25165 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
25166 | ||
25167 | wxPyEndAllowThreads(__tstate); | |
25168 | if (PyErr_Occurred()) SWIG_fail; | |
25169 | } | |
25170 | Py_INCREF(Py_None); resultobj = Py_None; | |
25171 | return resultobj; | |
25172 | fail: | |
25173 | return NULL; | |
25174 | } | |
25175 | ||
25176 | ||
25177 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25178 | PyObject *resultobj; | |
25179 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25180 | PyObject * obj0 = 0 ; | |
25181 | char *kwnames[] = { | |
25182 | (char *) "self", NULL | |
25183 | }; | |
25184 | ||
25185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
25186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25187 | { | |
25188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25189 | (arg1)->DeleteAllItems(); | |
25190 | ||
25191 | wxPyEndAllowThreads(__tstate); | |
25192 | if (PyErr_Occurred()) SWIG_fail; | |
25193 | } | |
25194 | Py_INCREF(Py_None); resultobj = Py_None; | |
25195 | return resultobj; | |
25196 | fail: | |
25197 | return NULL; | |
25198 | } | |
25199 | ||
25200 | ||
25201 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25202 | PyObject *resultobj; | |
25203 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25204 | wxTreeItemId *arg2 = 0 ; | |
25205 | PyObject * obj0 = 0 ; | |
25206 | PyObject * obj1 = 0 ; | |
25207 | char *kwnames[] = { | |
25208 | (char *) "self",(char *) "item", NULL | |
25209 | }; | |
25210 | ||
25211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
25212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25213 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25214 | if (arg2 == NULL) { | |
25215 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25216 | } | |
25217 | { | |
25218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25219 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
25220 | ||
25221 | wxPyEndAllowThreads(__tstate); | |
25222 | if (PyErr_Occurred()) SWIG_fail; | |
25223 | } | |
25224 | Py_INCREF(Py_None); resultobj = Py_None; | |
25225 | return resultobj; | |
25226 | fail: | |
25227 | return NULL; | |
25228 | } | |
25229 | ||
25230 | ||
25231 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25232 | PyObject *resultobj; | |
25233 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25234 | wxTreeItemId *arg2 = 0 ; | |
25235 | PyObject * obj0 = 0 ; | |
25236 | PyObject * obj1 = 0 ; | |
25237 | char *kwnames[] = { | |
25238 | (char *) "self",(char *) "item", NULL | |
25239 | }; | |
25240 | ||
25241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
25242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25243 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25244 | if (arg2 == NULL) { | |
25245 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25246 | } | |
25247 | { | |
25248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25249 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
25250 | ||
25251 | wxPyEndAllowThreads(__tstate); | |
25252 | if (PyErr_Occurred()) SWIG_fail; | |
25253 | } | |
25254 | Py_INCREF(Py_None); resultobj = Py_None; | |
25255 | return resultobj; | |
25256 | fail: | |
25257 | return NULL; | |
25258 | } | |
25259 | ||
25260 | ||
25261 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25262 | PyObject *resultobj; | |
25263 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25264 | wxTreeItemId *arg2 = 0 ; | |
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_CollapseAndReset",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 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
25280 | ||
25281 | wxPyEndAllowThreads(__tstate); | |
25282 | if (PyErr_Occurred()) SWIG_fail; | |
25283 | } | |
25284 | Py_INCREF(Py_None); resultobj = Py_None; | |
25285 | return resultobj; | |
25286 | fail: | |
25287 | return NULL; | |
25288 | } | |
25289 | ||
25290 | ||
25291 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25292 | PyObject *resultobj; | |
25293 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25294 | wxTreeItemId *arg2 = 0 ; | |
25295 | PyObject * obj0 = 0 ; | |
25296 | PyObject * obj1 = 0 ; | |
25297 | char *kwnames[] = { | |
25298 | (char *) "self",(char *) "item", NULL | |
25299 | }; | |
25300 | ||
25301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
25302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25303 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25304 | if (arg2 == NULL) { | |
25305 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25306 | } | |
25307 | { | |
25308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25309 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
25310 | ||
25311 | wxPyEndAllowThreads(__tstate); | |
25312 | if (PyErr_Occurred()) SWIG_fail; | |
25313 | } | |
25314 | Py_INCREF(Py_None); resultobj = Py_None; | |
25315 | return resultobj; | |
25316 | fail: | |
25317 | return NULL; | |
25318 | } | |
25319 | ||
25320 | ||
25321 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25322 | PyObject *resultobj; | |
25323 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25324 | PyObject * obj0 = 0 ; | |
25325 | char *kwnames[] = { | |
25326 | (char *) "self", NULL | |
25327 | }; | |
25328 | ||
25329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
25330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25331 | { | |
25332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25333 | (arg1)->Unselect(); | |
25334 | ||
25335 | wxPyEndAllowThreads(__tstate); | |
25336 | if (PyErr_Occurred()) SWIG_fail; | |
25337 | } | |
25338 | Py_INCREF(Py_None); resultobj = Py_None; | |
25339 | return resultobj; | |
25340 | fail: | |
25341 | return NULL; | |
25342 | } | |
25343 | ||
25344 | ||
25345 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25346 | PyObject *resultobj; | |
25347 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25348 | PyObject * obj0 = 0 ; | |
25349 | char *kwnames[] = { | |
25350 | (char *) "self", NULL | |
25351 | }; | |
25352 | ||
25353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
25354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25355 | { | |
25356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25357 | (arg1)->UnselectAll(); | |
25358 | ||
25359 | wxPyEndAllowThreads(__tstate); | |
25360 | if (PyErr_Occurred()) SWIG_fail; | |
25361 | } | |
25362 | Py_INCREF(Py_None); resultobj = Py_None; | |
25363 | return resultobj; | |
25364 | fail: | |
25365 | return NULL; | |
25366 | } | |
25367 | ||
25368 | ||
25369 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25370 | PyObject *resultobj; | |
25371 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25372 | wxTreeItemId *arg2 = 0 ; | |
25373 | PyObject * obj0 = 0 ; | |
25374 | PyObject * obj1 = 0 ; | |
25375 | char *kwnames[] = { | |
25376 | (char *) "self",(char *) "item", NULL | |
25377 | }; | |
25378 | ||
25379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SelectItem",kwnames,&obj0,&obj1)) goto fail; | |
25380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25381 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25382 | if (arg2 == NULL) { | |
25383 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25384 | } | |
25385 | { | |
25386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25387 | (arg1)->SelectItem((wxTreeItemId const &)*arg2); | |
25388 | ||
25389 | wxPyEndAllowThreads(__tstate); | |
25390 | if (PyErr_Occurred()) SWIG_fail; | |
25391 | } | |
25392 | Py_INCREF(Py_None); resultobj = Py_None; | |
25393 | return resultobj; | |
25394 | fail: | |
25395 | return NULL; | |
25396 | } | |
25397 | ||
25398 | ||
25399 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25400 | PyObject *resultobj; | |
25401 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25402 | wxTreeItemId *arg2 = 0 ; | |
25403 | PyObject * obj0 = 0 ; | |
25404 | PyObject * obj1 = 0 ; | |
25405 | char *kwnames[] = { | |
25406 | (char *) "self",(char *) "item", NULL | |
25407 | }; | |
25408 | ||
25409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
25410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25411 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25412 | if (arg2 == NULL) { | |
25413 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25414 | } | |
25415 | { | |
25416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25417 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
25418 | ||
25419 | wxPyEndAllowThreads(__tstate); | |
25420 | if (PyErr_Occurred()) SWIG_fail; | |
25421 | } | |
25422 | Py_INCREF(Py_None); resultobj = Py_None; | |
25423 | return resultobj; | |
25424 | fail: | |
25425 | return NULL; | |
25426 | } | |
25427 | ||
25428 | ||
25429 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25430 | PyObject *resultobj; | |
25431 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25432 | wxTreeItemId *arg2 = 0 ; | |
25433 | PyObject * obj0 = 0 ; | |
25434 | PyObject * obj1 = 0 ; | |
25435 | char *kwnames[] = { | |
25436 | (char *) "self",(char *) "item", NULL | |
25437 | }; | |
25438 | ||
25439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
25440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25441 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25442 | if (arg2 == NULL) { | |
25443 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25444 | } | |
25445 | { | |
25446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25447 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
25448 | ||
25449 | wxPyEndAllowThreads(__tstate); | |
25450 | if (PyErr_Occurred()) SWIG_fail; | |
25451 | } | |
25452 | Py_INCREF(Py_None); resultobj = Py_None; | |
25453 | return resultobj; | |
25454 | fail: | |
25455 | return NULL; | |
25456 | } | |
25457 | ||
25458 | ||
25459 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25460 | PyObject *resultobj; | |
25461 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25462 | wxTreeItemId *arg2 = 0 ; | |
25463 | PyObject * obj0 = 0 ; | |
25464 | PyObject * obj1 = 0 ; | |
25465 | char *kwnames[] = { | |
25466 | (char *) "self",(char *) "item", NULL | |
25467 | }; | |
25468 | ||
25469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
25470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25471 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25472 | if (arg2 == NULL) { | |
25473 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25474 | } | |
25475 | { | |
25476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25477 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
25478 | ||
25479 | wxPyEndAllowThreads(__tstate); | |
25480 | if (PyErr_Occurred()) SWIG_fail; | |
25481 | } | |
25482 | Py_INCREF(Py_None); resultobj = Py_None; | |
25483 | return resultobj; | |
25484 | fail: | |
25485 | return NULL; | |
25486 | } | |
25487 | ||
25488 | ||
25489 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25490 | PyObject *resultobj; | |
25491 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25492 | wxTextCtrl *result; | |
25493 | PyObject * obj0 = 0 ; | |
25494 | char *kwnames[] = { | |
25495 | (char *) "self", NULL | |
25496 | }; | |
25497 | ||
25498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
25499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25500 | { | |
25501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25502 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
25503 | ||
25504 | wxPyEndAllowThreads(__tstate); | |
25505 | if (PyErr_Occurred()) SWIG_fail; | |
25506 | } | |
25507 | { | |
25508 | resultobj = wxPyMake_wxObject(result); | |
25509 | } | |
25510 | return resultobj; | |
25511 | fail: | |
25512 | return NULL; | |
25513 | } | |
25514 | ||
25515 | ||
25516 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25517 | PyObject *resultobj; | |
25518 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25519 | wxTreeItemId *arg2 = 0 ; | |
25520 | PyObject * obj0 = 0 ; | |
25521 | PyObject * obj1 = 0 ; | |
25522 | char *kwnames[] = { | |
25523 | (char *) "self",(char *) "item", NULL | |
25524 | }; | |
25525 | ||
25526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
25527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25528 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25529 | if (arg2 == NULL) { | |
25530 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25531 | } | |
25532 | { | |
25533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25534 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
25535 | ||
25536 | wxPyEndAllowThreads(__tstate); | |
25537 | if (PyErr_Occurred()) SWIG_fail; | |
25538 | } | |
25539 | Py_INCREF(Py_None); resultobj = Py_None; | |
25540 | return resultobj; | |
25541 | fail: | |
25542 | return NULL; | |
25543 | } | |
25544 | ||
25545 | ||
25546 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25547 | PyObject *resultobj; | |
25548 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25549 | wxPoint *arg2 = 0 ; | |
25550 | int *arg3 = 0 ; | |
25551 | wxTreeItemId result; | |
25552 | wxPoint temp2 ; | |
25553 | int temp3 ; | |
25554 | PyObject * obj0 = 0 ; | |
25555 | PyObject * obj1 = 0 ; | |
25556 | char *kwnames[] = { | |
25557 | (char *) "self",(char *) "point", NULL | |
25558 | }; | |
25559 | ||
25560 | arg3 = &temp3; | |
25561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
25562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25563 | { | |
25564 | arg2 = &temp2; | |
25565 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25566 | } | |
25567 | { | |
25568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25569 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
25570 | ||
25571 | wxPyEndAllowThreads(__tstate); | |
25572 | if (PyErr_Occurred()) SWIG_fail; | |
25573 | } | |
25574 | { | |
25575 | wxTreeItemId * resultptr; | |
25576 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25577 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
25578 | } | |
25579 | { | |
25580 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25581 | resultobj = t_output_helper(resultobj,o); | |
25582 | } | |
25583 | return resultobj; | |
25584 | fail: | |
25585 | return NULL; | |
25586 | } | |
25587 | ||
25588 | ||
25589 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25590 | PyObject *resultobj; | |
25591 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25592 | wxTreeItemId *arg2 = 0 ; | |
25593 | bool arg3 = (bool) False ; | |
25594 | PyObject *result; | |
25595 | PyObject * obj0 = 0 ; | |
25596 | PyObject * obj1 = 0 ; | |
25597 | PyObject * obj2 = 0 ; | |
25598 | char *kwnames[] = { | |
25599 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
25600 | }; | |
25601 | ||
25602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25604 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25605 | if (arg2 == NULL) { | |
25606 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25607 | } | |
25608 | if (obj2) { | |
25609 | { | |
25610 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
25611 | if (PyErr_Occurred()) SWIG_fail; | |
25612 | } | |
25613 | } | |
25614 | { | |
25615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25616 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25617 | ||
25618 | wxPyEndAllowThreads(__tstate); | |
25619 | if (PyErr_Occurred()) SWIG_fail; | |
25620 | } | |
25621 | resultobj = result; | |
25622 | return resultobj; | |
25623 | fail: | |
25624 | return NULL; | |
25625 | } | |
25626 | ||
25627 | ||
25628 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
25629 | PyObject *obj; | |
25630 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25631 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
25632 | Py_INCREF(obj); | |
25633 | return Py_BuildValue((char *)""); | |
25634 | } | |
25635 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { | |
25636 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
25637 | return 1; | |
25638 | } | |
25639 | ||
25640 | ||
25641 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
25642 | PyObject *pyobj; | |
25643 | ||
25644 | { | |
25645 | #if wxUSE_UNICODE | |
25646 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
25647 | #else | |
25648 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
25649 | #endif | |
25650 | } | |
25651 | return pyobj; | |
25652 | } | |
25653 | ||
25654 | ||
25655 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25656 | PyObject *resultobj; | |
25657 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25658 | int arg2 = (int) (int)-1 ; | |
25659 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
25660 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
25661 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
25662 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25663 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25664 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25665 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
25666 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
25667 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
25668 | int arg8 = (int) 0 ; | |
25669 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
25670 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
25671 | wxGenericDirCtrl *result; | |
25672 | bool temp3 = False ; | |
25673 | wxPoint temp4 ; | |
25674 | wxSize temp5 ; | |
25675 | bool temp7 = False ; | |
25676 | bool temp9 = False ; | |
25677 | PyObject * obj0 = 0 ; | |
25678 | PyObject * obj1 = 0 ; | |
25679 | PyObject * obj2 = 0 ; | |
25680 | PyObject * obj3 = 0 ; | |
25681 | PyObject * obj4 = 0 ; | |
25682 | PyObject * obj5 = 0 ; | |
25683 | PyObject * obj6 = 0 ; | |
25684 | PyObject * obj7 = 0 ; | |
25685 | PyObject * obj8 = 0 ; | |
25686 | char *kwnames[] = { | |
25687 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
25688 | }; | |
25689 | ||
25690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
25691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25692 | if (obj1) { | |
25693 | { | |
25694 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
25695 | if (PyErr_Occurred()) SWIG_fail; | |
25696 | } | |
25697 | } | |
25698 | if (obj2) { | |
25699 | { | |
25700 | arg3 = wxString_in_helper(obj2); | |
25701 | if (arg3 == NULL) SWIG_fail; | |
25702 | temp3 = True; | |
25703 | } | |
25704 | } | |
25705 | if (obj3) { | |
25706 | { | |
25707 | arg4 = &temp4; | |
25708 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25709 | } | |
25710 | } | |
25711 | if (obj4) { | |
25712 | { | |
25713 | arg5 = &temp5; | |
25714 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25715 | } | |
25716 | } | |
25717 | if (obj5) { | |
25718 | { | |
25719 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
25720 | if (PyErr_Occurred()) SWIG_fail; | |
25721 | } | |
25722 | } | |
25723 | if (obj6) { | |
25724 | { | |
25725 | arg7 = wxString_in_helper(obj6); | |
25726 | if (arg7 == NULL) SWIG_fail; | |
25727 | temp7 = True; | |
25728 | } | |
25729 | } | |
25730 | if (obj7) { | |
25731 | { | |
25732 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
25733 | if (PyErr_Occurred()) SWIG_fail; | |
25734 | } | |
25735 | } | |
25736 | if (obj8) { | |
25737 | { | |
25738 | arg9 = wxString_in_helper(obj8); | |
25739 | if (arg9 == NULL) SWIG_fail; | |
25740 | temp9 = True; | |
25741 | } | |
25742 | } | |
25743 | { | |
25744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25745 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
25746 | ||
25747 | wxPyEndAllowThreads(__tstate); | |
25748 | if (PyErr_Occurred()) SWIG_fail; | |
25749 | } | |
25750 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
25751 | { | |
25752 | if (temp3) | |
25753 | delete arg3; | |
25754 | } | |
25755 | { | |
25756 | if (temp7) | |
25757 | delete arg7; | |
25758 | } | |
25759 | { | |
25760 | if (temp9) | |
25761 | delete arg9; | |
25762 | } | |
25763 | return resultobj; | |
25764 | fail: | |
25765 | { | |
25766 | if (temp3) | |
25767 | delete arg3; | |
25768 | } | |
25769 | { | |
25770 | if (temp7) | |
25771 | delete arg7; | |
25772 | } | |
25773 | { | |
25774 | if (temp9) | |
25775 | delete arg9; | |
25776 | } | |
25777 | return NULL; | |
25778 | } | |
25779 | ||
25780 | ||
25781 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25782 | PyObject *resultobj; | |
25783 | wxGenericDirCtrl *result; | |
25784 | char *kwnames[] = { | |
25785 | NULL | |
25786 | }; | |
25787 | ||
25788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
25789 | { | |
25790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25791 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
25792 | ||
25793 | wxPyEndAllowThreads(__tstate); | |
25794 | if (PyErr_Occurred()) SWIG_fail; | |
25795 | } | |
25796 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
25797 | return resultobj; | |
25798 | fail: | |
25799 | return NULL; | |
25800 | } | |
25801 | ||
25802 | ||
25803 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25804 | PyObject *resultobj; | |
25805 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
25806 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25807 | int arg3 = (int) (int)-1 ; | |
25808 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
25809 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25810 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
25811 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
25812 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
25813 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
25814 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
25815 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
25816 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
25817 | int arg9 = (int) 0 ; | |
25818 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
25819 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
25820 | bool result; | |
25821 | bool temp4 = False ; | |
25822 | wxPoint temp5 ; | |
25823 | wxSize temp6 ; | |
25824 | bool temp8 = False ; | |
25825 | bool temp10 = False ; | |
25826 | PyObject * obj0 = 0 ; | |
25827 | PyObject * obj1 = 0 ; | |
25828 | PyObject * obj2 = 0 ; | |
25829 | PyObject * obj3 = 0 ; | |
25830 | PyObject * obj4 = 0 ; | |
25831 | PyObject * obj5 = 0 ; | |
25832 | PyObject * obj6 = 0 ; | |
25833 | PyObject * obj7 = 0 ; | |
25834 | PyObject * obj8 = 0 ; | |
25835 | PyObject * obj9 = 0 ; | |
25836 | char *kwnames[] = { | |
25837 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
25838 | }; | |
25839 | ||
25840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
25841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25842 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25843 | if (obj2) { | |
25844 | { | |
25845 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
25846 | if (PyErr_Occurred()) SWIG_fail; | |
25847 | } | |
25848 | } | |
25849 | if (obj3) { | |
25850 | { | |
25851 | arg4 = wxString_in_helper(obj3); | |
25852 | if (arg4 == NULL) SWIG_fail; | |
25853 | temp4 = True; | |
25854 | } | |
25855 | } | |
25856 | if (obj4) { | |
25857 | { | |
25858 | arg5 = &temp5; | |
25859 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
25860 | } | |
25861 | } | |
25862 | if (obj5) { | |
25863 | { | |
25864 | arg6 = &temp6; | |
25865 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
25866 | } | |
25867 | } | |
25868 | if (obj6) { | |
25869 | { | |
25870 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
25871 | if (PyErr_Occurred()) SWIG_fail; | |
25872 | } | |
25873 | } | |
25874 | if (obj7) { | |
25875 | { | |
25876 | arg8 = wxString_in_helper(obj7); | |
25877 | if (arg8 == NULL) SWIG_fail; | |
25878 | temp8 = True; | |
25879 | } | |
25880 | } | |
25881 | if (obj8) { | |
25882 | { | |
25883 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
25884 | if (PyErr_Occurred()) SWIG_fail; | |
25885 | } | |
25886 | } | |
25887 | if (obj9) { | |
25888 | { | |
25889 | arg10 = wxString_in_helper(obj9); | |
25890 | if (arg10 == NULL) SWIG_fail; | |
25891 | temp10 = True; | |
25892 | } | |
25893 | } | |
25894 | { | |
25895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25896 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
25897 | ||
25898 | wxPyEndAllowThreads(__tstate); | |
25899 | if (PyErr_Occurred()) SWIG_fail; | |
25900 | } | |
25901 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
25902 | { | |
25903 | if (temp4) | |
25904 | delete arg4; | |
25905 | } | |
25906 | { | |
25907 | if (temp8) | |
25908 | delete arg8; | |
25909 | } | |
25910 | { | |
25911 | if (temp10) | |
25912 | delete arg10; | |
25913 | } | |
25914 | return resultobj; | |
25915 | fail: | |
25916 | { | |
25917 | if (temp4) | |
25918 | delete arg4; | |
25919 | } | |
25920 | { | |
25921 | if (temp8) | |
25922 | delete arg8; | |
25923 | } | |
25924 | { | |
25925 | if (temp10) | |
25926 | delete arg10; | |
25927 | } | |
25928 | return NULL; | |
25929 | } | |
25930 | ||
25931 | ||
25932 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25933 | PyObject *resultobj; | |
25934 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
25935 | wxString *arg2 = 0 ; | |
25936 | bool result; | |
25937 | bool temp2 = False ; | |
25938 | PyObject * obj0 = 0 ; | |
25939 | PyObject * obj1 = 0 ; | |
25940 | char *kwnames[] = { | |
25941 | (char *) "self",(char *) "path", NULL | |
25942 | }; | |
25943 | ||
25944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
25945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25946 | { | |
25947 | arg2 = wxString_in_helper(obj1); | |
25948 | if (arg2 == NULL) SWIG_fail; | |
25949 | temp2 = True; | |
25950 | } | |
25951 | { | |
25952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25953 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
25954 | ||
25955 | wxPyEndAllowThreads(__tstate); | |
25956 | if (PyErr_Occurred()) SWIG_fail; | |
25957 | } | |
25958 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
25959 | { | |
25960 | if (temp2) | |
25961 | delete arg2; | |
25962 | } | |
25963 | return resultobj; | |
25964 | fail: | |
25965 | { | |
25966 | if (temp2) | |
25967 | delete arg2; | |
25968 | } | |
25969 | return NULL; | |
25970 | } | |
25971 | ||
25972 | ||
25973 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25974 | PyObject *resultobj; | |
25975 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
25976 | wxString result; | |
25977 | PyObject * obj0 = 0 ; | |
25978 | char *kwnames[] = { | |
25979 | (char *) "self", NULL | |
25980 | }; | |
25981 | ||
25982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
25983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25984 | { | |
25985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25986 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
25987 | ||
25988 | wxPyEndAllowThreads(__tstate); | |
25989 | if (PyErr_Occurred()) SWIG_fail; | |
25990 | } | |
25991 | { | |
25992 | #if wxUSE_UNICODE | |
25993 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25994 | #else | |
25995 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25996 | #endif | |
25997 | } | |
25998 | return resultobj; | |
25999 | fail: | |
26000 | return NULL; | |
26001 | } | |
26002 | ||
26003 | ||
26004 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26005 | PyObject *resultobj; | |
26006 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26007 | wxString *arg2 = 0 ; | |
26008 | bool temp2 = False ; | |
26009 | PyObject * obj0 = 0 ; | |
26010 | PyObject * obj1 = 0 ; | |
26011 | char *kwnames[] = { | |
26012 | (char *) "self",(char *) "path", NULL | |
26013 | }; | |
26014 | ||
26015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
26016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26017 | { | |
26018 | arg2 = wxString_in_helper(obj1); | |
26019 | if (arg2 == NULL) SWIG_fail; | |
26020 | temp2 = True; | |
26021 | } | |
26022 | { | |
26023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26024 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
26025 | ||
26026 | wxPyEndAllowThreads(__tstate); | |
26027 | if (PyErr_Occurred()) SWIG_fail; | |
26028 | } | |
26029 | Py_INCREF(Py_None); resultobj = Py_None; | |
26030 | { | |
26031 | if (temp2) | |
26032 | delete arg2; | |
26033 | } | |
26034 | return resultobj; | |
26035 | fail: | |
26036 | { | |
26037 | if (temp2) | |
26038 | delete arg2; | |
26039 | } | |
26040 | return NULL; | |
26041 | } | |
26042 | ||
26043 | ||
26044 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26045 | PyObject *resultobj; | |
26046 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26047 | wxString result; | |
26048 | PyObject * obj0 = 0 ; | |
26049 | char *kwnames[] = { | |
26050 | (char *) "self", NULL | |
26051 | }; | |
26052 | ||
26053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
26054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26055 | { | |
26056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26057 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
26058 | ||
26059 | wxPyEndAllowThreads(__tstate); | |
26060 | if (PyErr_Occurred()) SWIG_fail; | |
26061 | } | |
26062 | { | |
26063 | #if wxUSE_UNICODE | |
26064 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26065 | #else | |
26066 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26067 | #endif | |
26068 | } | |
26069 | return resultobj; | |
26070 | fail: | |
26071 | return NULL; | |
26072 | } | |
26073 | ||
26074 | ||
26075 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26076 | PyObject *resultobj; | |
26077 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26078 | wxString result; | |
26079 | PyObject * obj0 = 0 ; | |
26080 | char *kwnames[] = { | |
26081 | (char *) "self", NULL | |
26082 | }; | |
26083 | ||
26084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
26085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26086 | { | |
26087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26088 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
26089 | ||
26090 | wxPyEndAllowThreads(__tstate); | |
26091 | if (PyErr_Occurred()) SWIG_fail; | |
26092 | } | |
26093 | { | |
26094 | #if wxUSE_UNICODE | |
26095 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26096 | #else | |
26097 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26098 | #endif | |
26099 | } | |
26100 | return resultobj; | |
26101 | fail: | |
26102 | return NULL; | |
26103 | } | |
26104 | ||
26105 | ||
26106 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26107 | PyObject *resultobj; | |
26108 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26109 | wxString *arg2 = 0 ; | |
26110 | bool temp2 = False ; | |
26111 | PyObject * obj0 = 0 ; | |
26112 | PyObject * obj1 = 0 ; | |
26113 | char *kwnames[] = { | |
26114 | (char *) "self",(char *) "path", NULL | |
26115 | }; | |
26116 | ||
26117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
26118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26119 | { | |
26120 | arg2 = wxString_in_helper(obj1); | |
26121 | if (arg2 == NULL) SWIG_fail; | |
26122 | temp2 = True; | |
26123 | } | |
26124 | { | |
26125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26126 | (arg1)->SetPath((wxString const &)*arg2); | |
26127 | ||
26128 | wxPyEndAllowThreads(__tstate); | |
26129 | if (PyErr_Occurred()) SWIG_fail; | |
26130 | } | |
26131 | Py_INCREF(Py_None); resultobj = Py_None; | |
26132 | { | |
26133 | if (temp2) | |
26134 | delete arg2; | |
26135 | } | |
26136 | return resultobj; | |
26137 | fail: | |
26138 | { | |
26139 | if (temp2) | |
26140 | delete arg2; | |
26141 | } | |
26142 | return NULL; | |
26143 | } | |
26144 | ||
26145 | ||
26146 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26147 | PyObject *resultobj; | |
26148 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26149 | bool arg2 ; | |
26150 | PyObject * obj0 = 0 ; | |
26151 | PyObject * obj1 = 0 ; | |
26152 | char *kwnames[] = { | |
26153 | (char *) "self",(char *) "show", NULL | |
26154 | }; | |
26155 | ||
26156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
26157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26158 | { | |
26159 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
26160 | if (PyErr_Occurred()) SWIG_fail; | |
26161 | } | |
26162 | { | |
26163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26164 | (arg1)->ShowHidden(arg2); | |
26165 | ||
26166 | wxPyEndAllowThreads(__tstate); | |
26167 | if (PyErr_Occurred()) SWIG_fail; | |
26168 | } | |
26169 | Py_INCREF(Py_None); resultobj = Py_None; | |
26170 | return resultobj; | |
26171 | fail: | |
26172 | return NULL; | |
26173 | } | |
26174 | ||
26175 | ||
26176 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26177 | PyObject *resultobj; | |
26178 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26179 | bool result; | |
26180 | PyObject * obj0 = 0 ; | |
26181 | char *kwnames[] = { | |
26182 | (char *) "self", NULL | |
26183 | }; | |
26184 | ||
26185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
26186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26187 | { | |
26188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26189 | result = (bool)(arg1)->GetShowHidden(); | |
26190 | ||
26191 | wxPyEndAllowThreads(__tstate); | |
26192 | if (PyErr_Occurred()) SWIG_fail; | |
26193 | } | |
26194 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
26195 | return resultobj; | |
26196 | fail: | |
26197 | return NULL; | |
26198 | } | |
26199 | ||
26200 | ||
26201 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26202 | PyObject *resultobj; | |
26203 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26204 | wxString result; | |
26205 | PyObject * obj0 = 0 ; | |
26206 | char *kwnames[] = { | |
26207 | (char *) "self", NULL | |
26208 | }; | |
26209 | ||
26210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
26211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26212 | { | |
26213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26214 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
26215 | ||
26216 | wxPyEndAllowThreads(__tstate); | |
26217 | if (PyErr_Occurred()) SWIG_fail; | |
26218 | } | |
26219 | { | |
26220 | #if wxUSE_UNICODE | |
26221 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26222 | #else | |
26223 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26224 | #endif | |
26225 | } | |
26226 | return resultobj; | |
26227 | fail: | |
26228 | return NULL; | |
26229 | } | |
26230 | ||
26231 | ||
26232 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26233 | PyObject *resultobj; | |
26234 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26235 | wxString *arg2 = 0 ; | |
26236 | bool temp2 = False ; | |
26237 | PyObject * obj0 = 0 ; | |
26238 | PyObject * obj1 = 0 ; | |
26239 | char *kwnames[] = { | |
26240 | (char *) "self",(char *) "filter", NULL | |
26241 | }; | |
26242 | ||
26243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
26244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26245 | { | |
26246 | arg2 = wxString_in_helper(obj1); | |
26247 | if (arg2 == NULL) SWIG_fail; | |
26248 | temp2 = True; | |
26249 | } | |
26250 | { | |
26251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26252 | (arg1)->SetFilter((wxString const &)*arg2); | |
26253 | ||
26254 | wxPyEndAllowThreads(__tstate); | |
26255 | if (PyErr_Occurred()) SWIG_fail; | |
26256 | } | |
26257 | Py_INCREF(Py_None); resultobj = Py_None; | |
26258 | { | |
26259 | if (temp2) | |
26260 | delete arg2; | |
26261 | } | |
26262 | return resultobj; | |
26263 | fail: | |
26264 | { | |
26265 | if (temp2) | |
26266 | delete arg2; | |
26267 | } | |
26268 | return NULL; | |
26269 | } | |
26270 | ||
26271 | ||
26272 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26273 | PyObject *resultobj; | |
26274 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26275 | int result; | |
26276 | PyObject * obj0 = 0 ; | |
26277 | char *kwnames[] = { | |
26278 | (char *) "self", NULL | |
26279 | }; | |
26280 | ||
26281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
26282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26283 | { | |
26284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26285 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
26286 | ||
26287 | wxPyEndAllowThreads(__tstate); | |
26288 | if (PyErr_Occurred()) SWIG_fail; | |
26289 | } | |
26290 | resultobj = SWIG_PyObj_FromInt((int)result); | |
26291 | return resultobj; | |
26292 | fail: | |
26293 | return NULL; | |
26294 | } | |
26295 | ||
26296 | ||
26297 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26298 | PyObject *resultobj; | |
26299 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26300 | int arg2 ; | |
26301 | PyObject * obj0 = 0 ; | |
26302 | PyObject * obj1 = 0 ; | |
26303 | char *kwnames[] = { | |
26304 | (char *) "self",(char *) "n", NULL | |
26305 | }; | |
26306 | ||
26307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
26308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26309 | { | |
26310 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26311 | if (PyErr_Occurred()) SWIG_fail; | |
26312 | } | |
26313 | { | |
26314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26315 | (arg1)->SetFilterIndex(arg2); | |
26316 | ||
26317 | wxPyEndAllowThreads(__tstate); | |
26318 | if (PyErr_Occurred()) SWIG_fail; | |
26319 | } | |
26320 | Py_INCREF(Py_None); resultobj = Py_None; | |
26321 | return resultobj; | |
26322 | fail: | |
26323 | return NULL; | |
26324 | } | |
26325 | ||
26326 | ||
26327 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26328 | PyObject *resultobj; | |
26329 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26330 | wxTreeItemId result; | |
26331 | PyObject * obj0 = 0 ; | |
26332 | char *kwnames[] = { | |
26333 | (char *) "self", NULL | |
26334 | }; | |
26335 | ||
26336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
26337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26338 | { | |
26339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26340 | result = (arg1)->GetRootId(); | |
26341 | ||
26342 | wxPyEndAllowThreads(__tstate); | |
26343 | if (PyErr_Occurred()) SWIG_fail; | |
26344 | } | |
26345 | { | |
26346 | wxTreeItemId * resultptr; | |
26347 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26348 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
26349 | } | |
26350 | return resultobj; | |
26351 | fail: | |
26352 | return NULL; | |
26353 | } | |
26354 | ||
26355 | ||
26356 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26357 | PyObject *resultobj; | |
26358 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26359 | wxPyTreeCtrl *result; | |
26360 | PyObject * obj0 = 0 ; | |
26361 | char *kwnames[] = { | |
26362 | (char *) "self", NULL | |
26363 | }; | |
26364 | ||
26365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
26366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26367 | { | |
26368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26369 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
26370 | ||
26371 | wxPyEndAllowThreads(__tstate); | |
26372 | if (PyErr_Occurred()) SWIG_fail; | |
26373 | } | |
26374 | { | |
26375 | resultobj = wxPyMake_wxObject(result); | |
26376 | } | |
26377 | return resultobj; | |
26378 | fail: | |
26379 | return NULL; | |
26380 | } | |
26381 | ||
26382 | ||
26383 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26384 | PyObject *resultobj; | |
26385 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26386 | wxDirFilterListCtrl *result; | |
26387 | PyObject * obj0 = 0 ; | |
26388 | char *kwnames[] = { | |
26389 | (char *) "self", NULL | |
26390 | }; | |
26391 | ||
26392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
26393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26394 | { | |
26395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26396 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
26397 | ||
26398 | wxPyEndAllowThreads(__tstate); | |
26399 | if (PyErr_Occurred()) SWIG_fail; | |
26400 | } | |
26401 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
26402 | return resultobj; | |
26403 | fail: | |
26404 | return NULL; | |
26405 | } | |
26406 | ||
26407 | ||
26408 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26409 | PyObject *resultobj; | |
26410 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26411 | wxTreeItemId arg2 ; | |
26412 | wxString *arg3 = 0 ; | |
26413 | bool *arg4 = 0 ; | |
26414 | wxTreeItemId result; | |
26415 | wxTreeItemId *argp2 ; | |
26416 | bool temp3 = False ; | |
26417 | bool temp4 ; | |
26418 | PyObject * obj0 = 0 ; | |
26419 | PyObject * obj1 = 0 ; | |
26420 | PyObject * obj2 = 0 ; | |
26421 | char *kwnames[] = { | |
26422 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
26423 | }; | |
26424 | ||
26425 | arg4 = &temp4; | |
26426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26428 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
26429 | arg2 = *argp2; | |
26430 | { | |
26431 | arg3 = wxString_in_helper(obj2); | |
26432 | if (arg3 == NULL) SWIG_fail; | |
26433 | temp3 = True; | |
26434 | } | |
26435 | { | |
26436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26437 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
26438 | ||
26439 | wxPyEndAllowThreads(__tstate); | |
26440 | if (PyErr_Occurred()) SWIG_fail; | |
26441 | } | |
26442 | { | |
26443 | wxTreeItemId * resultptr; | |
26444 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26445 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
26446 | } | |
26447 | { | |
26448 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26449 | resultobj = t_output_helper(resultobj,o); | |
26450 | } | |
26451 | { | |
26452 | if (temp3) | |
26453 | delete arg3; | |
26454 | } | |
26455 | return resultobj; | |
26456 | fail: | |
26457 | { | |
26458 | if (temp3) | |
26459 | delete arg3; | |
26460 | } | |
26461 | return NULL; | |
26462 | } | |
26463 | ||
26464 | ||
26465 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26466 | PyObject *resultobj; | |
26467 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26468 | PyObject * obj0 = 0 ; | |
26469 | char *kwnames[] = { | |
26470 | (char *) "self", NULL | |
26471 | }; | |
26472 | ||
26473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
26474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26475 | { | |
26476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26477 | (arg1)->DoResize(); | |
26478 | ||
26479 | wxPyEndAllowThreads(__tstate); | |
26480 | if (PyErr_Occurred()) SWIG_fail; | |
26481 | } | |
26482 | Py_INCREF(Py_None); resultobj = Py_None; | |
26483 | return resultobj; | |
26484 | fail: | |
26485 | return NULL; | |
26486 | } | |
26487 | ||
26488 | ||
26489 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26490 | PyObject *resultobj; | |
26491 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26492 | PyObject * obj0 = 0 ; | |
26493 | char *kwnames[] = { | |
26494 | (char *) "self", NULL | |
26495 | }; | |
26496 | ||
26497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
26498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26499 | { | |
26500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26501 | (arg1)->ReCreateTree(); | |
26502 | ||
26503 | wxPyEndAllowThreads(__tstate); | |
26504 | if (PyErr_Occurred()) SWIG_fail; | |
26505 | } | |
26506 | Py_INCREF(Py_None); resultobj = Py_None; | |
26507 | return resultobj; | |
26508 | fail: | |
26509 | return NULL; | |
26510 | } | |
26511 | ||
26512 | ||
26513 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
26514 | PyObject *obj; | |
26515 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26516 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
26517 | Py_INCREF(obj); | |
26518 | return Py_BuildValue((char *)""); | |
26519 | } | |
26520 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26521 | PyObject *resultobj; | |
26522 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
26523 | int arg2 = (int) (int)-1 ; | |
26524 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
26525 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
26526 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
26527 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
26528 | long arg5 = (long) 0 ; | |
26529 | wxDirFilterListCtrl *result; | |
26530 | wxPoint temp3 ; | |
26531 | wxSize temp4 ; | |
26532 | PyObject * obj0 = 0 ; | |
26533 | PyObject * obj1 = 0 ; | |
26534 | PyObject * obj2 = 0 ; | |
26535 | PyObject * obj3 = 0 ; | |
26536 | PyObject * obj4 = 0 ; | |
26537 | char *kwnames[] = { | |
26538 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
26539 | }; | |
26540 | ||
26541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26543 | if (obj1) { | |
26544 | { | |
26545 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
26546 | if (PyErr_Occurred()) SWIG_fail; | |
26547 | } | |
26548 | } | |
26549 | if (obj2) { | |
26550 | { | |
26551 | arg3 = &temp3; | |
26552 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26553 | } | |
26554 | } | |
26555 | if (obj3) { | |
26556 | { | |
26557 | arg4 = &temp4; | |
26558 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
26559 | } | |
26560 | } | |
26561 | if (obj4) { | |
26562 | { | |
26563 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
26564 | if (PyErr_Occurred()) SWIG_fail; | |
26565 | } | |
26566 | } | |
26567 | { | |
26568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26569 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
26570 | ||
26571 | wxPyEndAllowThreads(__tstate); | |
26572 | if (PyErr_Occurred()) SWIG_fail; | |
26573 | } | |
26574 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
26575 | return resultobj; | |
26576 | fail: | |
26577 | return NULL; | |
26578 | } | |
26579 | ||
26580 | ||
26581 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26582 | PyObject *resultobj; | |
26583 | wxDirFilterListCtrl *result; | |
26584 | char *kwnames[] = { | |
26585 | NULL | |
26586 | }; | |
26587 | ||
26588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
26589 | { | |
26590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26591 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
26592 | ||
26593 | wxPyEndAllowThreads(__tstate); | |
26594 | if (PyErr_Occurred()) SWIG_fail; | |
26595 | } | |
26596 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
26597 | return resultobj; | |
26598 | fail: | |
26599 | return NULL; | |
26600 | } | |
26601 | ||
26602 | ||
26603 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26604 | PyObject *resultobj; | |
26605 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
26606 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
26607 | int arg3 = (int) (int)-1 ; | |
26608 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
26609 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26610 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26611 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26612 | long arg6 = (long) 0 ; | |
26613 | bool result; | |
26614 | wxPoint temp4 ; | |
26615 | wxSize temp5 ; | |
26616 | PyObject * obj0 = 0 ; | |
26617 | PyObject * obj1 = 0 ; | |
26618 | PyObject * obj2 = 0 ; | |
26619 | PyObject * obj3 = 0 ; | |
26620 | PyObject * obj4 = 0 ; | |
26621 | PyObject * obj5 = 0 ; | |
26622 | char *kwnames[] = { | |
26623 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
26624 | }; | |
26625 | ||
26626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
26627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26628 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26629 | if (obj2) { | |
26630 | { | |
26631 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
26632 | if (PyErr_Occurred()) SWIG_fail; | |
26633 | } | |
26634 | } | |
26635 | if (obj3) { | |
26636 | { | |
26637 | arg4 = &temp4; | |
26638 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26639 | } | |
26640 | } | |
26641 | if (obj4) { | |
26642 | { | |
26643 | arg5 = &temp5; | |
26644 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26645 | } | |
26646 | } | |
26647 | if (obj5) { | |
26648 | { | |
26649 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
26650 | if (PyErr_Occurred()) SWIG_fail; | |
26651 | } | |
26652 | } | |
26653 | { | |
26654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26655 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
26656 | ||
26657 | wxPyEndAllowThreads(__tstate); | |
26658 | if (PyErr_Occurred()) SWIG_fail; | |
26659 | } | |
26660 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
26661 | return resultobj; | |
26662 | fail: | |
26663 | return NULL; | |
26664 | } | |
26665 | ||
26666 | ||
26667 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26668 | PyObject *resultobj; | |
26669 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
26670 | wxString *arg2 = 0 ; | |
26671 | int arg3 ; | |
26672 | bool temp2 = False ; | |
26673 | PyObject * obj0 = 0 ; | |
26674 | PyObject * obj1 = 0 ; | |
26675 | PyObject * obj2 = 0 ; | |
26676 | char *kwnames[] = { | |
26677 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
26678 | }; | |
26679 | ||
26680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26682 | { | |
26683 | arg2 = wxString_in_helper(obj1); | |
26684 | if (arg2 == NULL) SWIG_fail; | |
26685 | temp2 = True; | |
26686 | } | |
26687 | { | |
26688 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
26689 | if (PyErr_Occurred()) SWIG_fail; | |
26690 | } | |
26691 | { | |
26692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26693 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
26694 | ||
26695 | wxPyEndAllowThreads(__tstate); | |
26696 | if (PyErr_Occurred()) SWIG_fail; | |
26697 | } | |
26698 | Py_INCREF(Py_None); resultobj = Py_None; | |
26699 | { | |
26700 | if (temp2) | |
26701 | delete arg2; | |
26702 | } | |
26703 | return resultobj; | |
26704 | fail: | |
26705 | { | |
26706 | if (temp2) | |
26707 | delete arg2; | |
26708 | } | |
26709 | return NULL; | |
26710 | } | |
26711 | ||
26712 | ||
26713 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
26714 | PyObject *obj; | |
26715 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26716 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
26717 | Py_INCREF(obj); | |
26718 | return Py_BuildValue((char *)""); | |
26719 | } | |
26720 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26721 | PyObject *resultobj; | |
26722 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26723 | int arg2 ; | |
26724 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
26725 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
26726 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
26727 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
26728 | long arg5 = (long) 0 ; | |
26729 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
26730 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
26731 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
26732 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
26733 | wxPyControl *result; | |
26734 | wxPoint temp3 ; | |
26735 | wxSize temp4 ; | |
26736 | bool temp7 = False ; | |
26737 | PyObject * obj0 = 0 ; | |
26738 | PyObject * obj1 = 0 ; | |
26739 | PyObject * obj2 = 0 ; | |
26740 | PyObject * obj3 = 0 ; | |
26741 | PyObject * obj4 = 0 ; | |
26742 | PyObject * obj5 = 0 ; | |
26743 | PyObject * obj6 = 0 ; | |
26744 | char *kwnames[] = { | |
26745 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
26746 | }; | |
26747 | ||
26748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
26749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26750 | { | |
26751 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
26752 | if (PyErr_Occurred()) SWIG_fail; | |
26753 | } | |
26754 | if (obj2) { | |
26755 | { | |
26756 | arg3 = &temp3; | |
26757 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26758 | } | |
26759 | } | |
26760 | if (obj3) { | |
26761 | { | |
26762 | arg4 = &temp4; | |
26763 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
26764 | } | |
26765 | } | |
26766 | if (obj4) { | |
26767 | { | |
26768 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
26769 | if (PyErr_Occurred()) SWIG_fail; | |
26770 | } | |
26771 | } | |
26772 | if (obj5) { | |
26773 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26774 | if (arg6 == NULL) { | |
26775 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26776 | } | |
26777 | } | |
26778 | if (obj6) { | |
26779 | { | |
26780 | arg7 = wxString_in_helper(obj6); | |
26781 | if (arg7 == NULL) SWIG_fail; | |
26782 | temp7 = True; | |
26783 | } | |
26784 | } | |
26785 | { | |
26786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26787 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
26788 | ||
26789 | wxPyEndAllowThreads(__tstate); | |
26790 | if (PyErr_Occurred()) SWIG_fail; | |
26791 | } | |
26792 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControl, 1); | |
26793 | { | |
26794 | if (temp7) | |
26795 | delete arg7; | |
26796 | } | |
26797 | return resultobj; | |
26798 | fail: | |
26799 | { | |
26800 | if (temp7) | |
26801 | delete arg7; | |
26802 | } | |
26803 | return NULL; | |
26804 | } | |
26805 | ||
26806 | ||
26807 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26808 | PyObject *resultobj; | |
26809 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
26810 | PyObject *arg2 = (PyObject *) 0 ; | |
26811 | PyObject *arg3 = (PyObject *) 0 ; | |
26812 | PyObject * obj0 = 0 ; | |
26813 | PyObject * obj1 = 0 ; | |
26814 | PyObject * obj2 = 0 ; | |
26815 | char *kwnames[] = { | |
26816 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26817 | }; | |
26818 | ||
26819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26821 | arg2 = obj1; | |
26822 | arg3 = obj2; | |
26823 | { | |
26824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26825 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26826 | ||
26827 | wxPyEndAllowThreads(__tstate); | |
26828 | if (PyErr_Occurred()) SWIG_fail; | |
26829 | } | |
26830 | Py_INCREF(Py_None); resultobj = Py_None; | |
26831 | return resultobj; | |
26832 | fail: | |
26833 | return NULL; | |
26834 | } | |
26835 | ||
26836 | ||
26837 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26838 | PyObject *resultobj; | |
26839 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
26840 | int arg2 ; | |
26841 | int arg3 ; | |
26842 | int arg4 ; | |
26843 | int arg5 ; | |
26844 | PyObject * obj0 = 0 ; | |
26845 | PyObject * obj1 = 0 ; | |
26846 | PyObject * obj2 = 0 ; | |
26847 | PyObject * obj3 = 0 ; | |
26848 | PyObject * obj4 = 0 ; | |
26849 | char *kwnames[] = { | |
26850 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
26851 | }; | |
26852 | ||
26853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26855 | { | |
26856 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26857 | if (PyErr_Occurred()) SWIG_fail; | |
26858 | } | |
26859 | { | |
26860 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
26861 | if (PyErr_Occurred()) SWIG_fail; | |
26862 | } | |
26863 | { | |
26864 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
26865 | if (PyErr_Occurred()) SWIG_fail; | |
26866 | } | |
26867 | { | |
26868 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
26869 | if (PyErr_Occurred()) SWIG_fail; | |
26870 | } | |
26871 | { | |
26872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26873 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
26874 | ||
26875 | wxPyEndAllowThreads(__tstate); | |
26876 | if (PyErr_Occurred()) SWIG_fail; | |
26877 | } | |
26878 | Py_INCREF(Py_None); resultobj = Py_None; | |
26879 | return resultobj; | |
26880 | fail: | |
26881 | return NULL; | |
26882 | } | |
26883 | ||
26884 | ||
26885 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26886 | PyObject *resultobj; | |
26887 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
26888 | int arg2 ; | |
26889 | int arg3 ; | |
26890 | int arg4 ; | |
26891 | int arg5 ; | |
26892 | int arg6 = (int) wxSIZE_AUTO ; | |
26893 | PyObject * obj0 = 0 ; | |
26894 | PyObject * obj1 = 0 ; | |
26895 | PyObject * obj2 = 0 ; | |
26896 | PyObject * obj3 = 0 ; | |
26897 | PyObject * obj4 = 0 ; | |
26898 | PyObject * obj5 = 0 ; | |
26899 | char *kwnames[] = { | |
26900 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
26901 | }; | |
26902 | ||
26903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
26904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26905 | { | |
26906 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26907 | if (PyErr_Occurred()) SWIG_fail; | |
26908 | } | |
26909 | { | |
26910 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
26911 | if (PyErr_Occurred()) SWIG_fail; | |
26912 | } | |
26913 | { | |
26914 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
26915 | if (PyErr_Occurred()) SWIG_fail; | |
26916 | } | |
26917 | { | |
26918 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
26919 | if (PyErr_Occurred()) SWIG_fail; | |
26920 | } | |
26921 | if (obj5) { | |
26922 | { | |
26923 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
26924 | if (PyErr_Occurred()) SWIG_fail; | |
26925 | } | |
26926 | } | |
26927 | { | |
26928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26929 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
26930 | ||
26931 | wxPyEndAllowThreads(__tstate); | |
26932 | if (PyErr_Occurred()) SWIG_fail; | |
26933 | } | |
26934 | Py_INCREF(Py_None); resultobj = Py_None; | |
26935 | return resultobj; | |
26936 | fail: | |
26937 | return NULL; | |
26938 | } | |
26939 | ||
26940 | ||
26941 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26942 | PyObject *resultobj; | |
26943 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
26944 | int arg2 ; | |
26945 | int arg3 ; | |
26946 | PyObject * obj0 = 0 ; | |
26947 | PyObject * obj1 = 0 ; | |
26948 | PyObject * obj2 = 0 ; | |
26949 | char *kwnames[] = { | |
26950 | (char *) "self",(char *) "width",(char *) "height", NULL | |
26951 | }; | |
26952 | ||
26953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26955 | { | |
26956 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26957 | if (PyErr_Occurred()) SWIG_fail; | |
26958 | } | |
26959 | { | |
26960 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
26961 | if (PyErr_Occurred()) SWIG_fail; | |
26962 | } | |
26963 | { | |
26964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26965 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
26966 | ||
26967 | wxPyEndAllowThreads(__tstate); | |
26968 | if (PyErr_Occurred()) SWIG_fail; | |
26969 | } | |
26970 | Py_INCREF(Py_None); resultobj = Py_None; | |
26971 | return resultobj; | |
26972 | fail: | |
26973 | return NULL; | |
26974 | } | |
26975 | ||
26976 | ||
26977 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26978 | PyObject *resultobj; | |
26979 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
26980 | int arg2 ; | |
26981 | int arg3 ; | |
26982 | PyObject * obj0 = 0 ; | |
26983 | PyObject * obj1 = 0 ; | |
26984 | PyObject * obj2 = 0 ; | |
26985 | char *kwnames[] = { | |
26986 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26987 | }; | |
26988 | ||
26989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26991 | { | |
26992 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26993 | if (PyErr_Occurred()) SWIG_fail; | |
26994 | } | |
26995 | { | |
26996 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
26997 | if (PyErr_Occurred()) SWIG_fail; | |
26998 | } | |
26999 | { | |
27000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27001 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
27002 | ||
27003 | wxPyEndAllowThreads(__tstate); | |
27004 | if (PyErr_Occurred()) SWIG_fail; | |
27005 | } | |
27006 | Py_INCREF(Py_None); resultobj = Py_None; | |
27007 | return resultobj; | |
27008 | fail: | |
27009 | return NULL; | |
27010 | } | |
27011 | ||
27012 | ||
27013 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27014 | PyObject *resultobj; | |
27015 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27016 | int *arg2 = (int *) 0 ; | |
27017 | int *arg3 = (int *) 0 ; | |
27018 | int temp2 ; | |
27019 | int temp3 ; | |
27020 | PyObject * obj0 = 0 ; | |
27021 | char *kwnames[] = { | |
27022 | (char *) "self", NULL | |
27023 | }; | |
27024 | ||
27025 | arg2 = &temp2; | |
27026 | arg3 = &temp3; | |
27027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
27028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27029 | { | |
27030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27031 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
27032 | ||
27033 | wxPyEndAllowThreads(__tstate); | |
27034 | if (PyErr_Occurred()) SWIG_fail; | |
27035 | } | |
27036 | Py_INCREF(Py_None); resultobj = Py_None; | |
27037 | { | |
27038 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27039 | resultobj = t_output_helper(resultobj,o); | |
27040 | } | |
27041 | { | |
27042 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27043 | resultobj = t_output_helper(resultobj,o); | |
27044 | } | |
27045 | return resultobj; | |
27046 | fail: | |
27047 | return NULL; | |
27048 | } | |
27049 | ||
27050 | ||
27051 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27052 | PyObject *resultobj; | |
27053 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27054 | int *arg2 = (int *) 0 ; | |
27055 | int *arg3 = (int *) 0 ; | |
27056 | int temp2 ; | |
27057 | int temp3 ; | |
27058 | PyObject * obj0 = 0 ; | |
27059 | char *kwnames[] = { | |
27060 | (char *) "self", NULL | |
27061 | }; | |
27062 | ||
27063 | arg2 = &temp2; | |
27064 | arg3 = &temp3; | |
27065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
27066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27067 | { | |
27068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27069 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
27070 | ||
27071 | wxPyEndAllowThreads(__tstate); | |
27072 | if (PyErr_Occurred()) SWIG_fail; | |
27073 | } | |
27074 | Py_INCREF(Py_None); resultobj = Py_None; | |
27075 | { | |
27076 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27077 | resultobj = t_output_helper(resultobj,o); | |
27078 | } | |
27079 | { | |
27080 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27081 | resultobj = t_output_helper(resultobj,o); | |
27082 | } | |
27083 | return resultobj; | |
27084 | fail: | |
27085 | return NULL; | |
27086 | } | |
27087 | ||
27088 | ||
27089 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27090 | PyObject *resultobj; | |
27091 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27092 | int *arg2 = (int *) 0 ; | |
27093 | int *arg3 = (int *) 0 ; | |
27094 | int temp2 ; | |
27095 | int temp3 ; | |
27096 | PyObject * obj0 = 0 ; | |
27097 | char *kwnames[] = { | |
27098 | (char *) "self", NULL | |
27099 | }; | |
27100 | ||
27101 | arg2 = &temp2; | |
27102 | arg3 = &temp3; | |
27103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
27104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27105 | { | |
27106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27107 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
27108 | ||
27109 | wxPyEndAllowThreads(__tstate); | |
27110 | if (PyErr_Occurred()) SWIG_fail; | |
27111 | } | |
27112 | Py_INCREF(Py_None); resultobj = Py_None; | |
27113 | { | |
27114 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
27115 | resultobj = t_output_helper(resultobj,o); | |
27116 | } | |
27117 | { | |
27118 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27119 | resultobj = t_output_helper(resultobj,o); | |
27120 | } | |
27121 | return resultobj; | |
27122 | fail: | |
27123 | return NULL; | |
27124 | } | |
27125 | ||
27126 | ||
27127 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27128 | PyObject *resultobj; | |
27129 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27130 | wxSize result; | |
27131 | PyObject * obj0 = 0 ; | |
27132 | char *kwnames[] = { | |
27133 | (char *) "self", NULL | |
27134 | }; | |
27135 | ||
27136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
27137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27138 | { | |
27139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27140 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
27141 | ||
27142 | wxPyEndAllowThreads(__tstate); | |
27143 | if (PyErr_Occurred()) SWIG_fail; | |
27144 | } | |
27145 | { | |
27146 | wxSize * resultptr; | |
27147 | resultptr = new wxSize((wxSize &) result); | |
27148 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27149 | } | |
27150 | return resultobj; | |
27151 | fail: | |
27152 | return NULL; | |
27153 | } | |
27154 | ||
27155 | ||
27156 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27157 | PyObject *resultobj; | |
27158 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27159 | wxSize result; | |
27160 | PyObject * obj0 = 0 ; | |
27161 | char *kwnames[] = { | |
27162 | (char *) "self", NULL | |
27163 | }; | |
27164 | ||
27165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
27166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27167 | { | |
27168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27169 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
27170 | ||
27171 | wxPyEndAllowThreads(__tstate); | |
27172 | if (PyErr_Occurred()) SWIG_fail; | |
27173 | } | |
27174 | { | |
27175 | wxSize * resultptr; | |
27176 | resultptr = new wxSize((wxSize &) result); | |
27177 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27178 | } | |
27179 | return resultobj; | |
27180 | fail: | |
27181 | return NULL; | |
27182 | } | |
27183 | ||
27184 | ||
27185 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27186 | PyObject *resultobj; | |
27187 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27188 | PyObject * obj0 = 0 ; | |
27189 | char *kwnames[] = { | |
27190 | (char *) "self", NULL | |
27191 | }; | |
27192 | ||
27193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
27194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27195 | { | |
27196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27197 | (arg1)->base_InitDialog(); | |
27198 | ||
27199 | wxPyEndAllowThreads(__tstate); | |
27200 | if (PyErr_Occurred()) SWIG_fail; | |
27201 | } | |
27202 | Py_INCREF(Py_None); resultobj = Py_None; | |
27203 | return resultobj; | |
27204 | fail: | |
27205 | return NULL; | |
27206 | } | |
27207 | ||
27208 | ||
27209 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27210 | PyObject *resultobj; | |
27211 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27212 | bool result; | |
27213 | PyObject * obj0 = 0 ; | |
27214 | char *kwnames[] = { | |
27215 | (char *) "self", NULL | |
27216 | }; | |
27217 | ||
27218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
27219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27220 | { | |
27221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27222 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
27223 | ||
27224 | wxPyEndAllowThreads(__tstate); | |
27225 | if (PyErr_Occurred()) SWIG_fail; | |
27226 | } | |
27227 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
27228 | return resultobj; | |
27229 | fail: | |
27230 | return NULL; | |
27231 | } | |
27232 | ||
27233 | ||
27234 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27235 | PyObject *resultobj; | |
27236 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27237 | bool result; | |
27238 | PyObject * obj0 = 0 ; | |
27239 | char *kwnames[] = { | |
27240 | (char *) "self", NULL | |
27241 | }; | |
27242 | ||
27243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
27244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27245 | { | |
27246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27247 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
27248 | ||
27249 | wxPyEndAllowThreads(__tstate); | |
27250 | if (PyErr_Occurred()) SWIG_fail; | |
27251 | } | |
27252 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
27253 | return resultobj; | |
27254 | fail: | |
27255 | return NULL; | |
27256 | } | |
27257 | ||
27258 | ||
27259 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27260 | PyObject *resultobj; | |
27261 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27262 | bool result; | |
27263 | PyObject * obj0 = 0 ; | |
27264 | char *kwnames[] = { | |
27265 | (char *) "self", NULL | |
27266 | }; | |
27267 | ||
27268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
27269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27270 | { | |
27271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27272 | result = (bool)(arg1)->base_Validate(); | |
27273 | ||
27274 | wxPyEndAllowThreads(__tstate); | |
27275 | if (PyErr_Occurred()) SWIG_fail; | |
27276 | } | |
27277 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
27278 | return resultobj; | |
27279 | fail: | |
27280 | return NULL; | |
27281 | } | |
27282 | ||
27283 | ||
27284 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27285 | PyObject *resultobj; | |
27286 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27287 | bool result; | |
27288 | PyObject * obj0 = 0 ; | |
27289 | char *kwnames[] = { | |
27290 | (char *) "self", NULL | |
27291 | }; | |
27292 | ||
27293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
27294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27295 | { | |
27296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27297 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
27298 | ||
27299 | wxPyEndAllowThreads(__tstate); | |
27300 | if (PyErr_Occurred()) SWIG_fail; | |
27301 | } | |
27302 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
27303 | return resultobj; | |
27304 | fail: | |
27305 | return NULL; | |
27306 | } | |
27307 | ||
27308 | ||
27309 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27310 | PyObject *resultobj; | |
27311 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27312 | bool result; | |
27313 | PyObject * obj0 = 0 ; | |
27314 | char *kwnames[] = { | |
27315 | (char *) "self", NULL | |
27316 | }; | |
27317 | ||
27318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
27319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27320 | { | |
27321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27322 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
27323 | ||
27324 | wxPyEndAllowThreads(__tstate); | |
27325 | if (PyErr_Occurred()) SWIG_fail; | |
27326 | } | |
27327 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
27328 | return resultobj; | |
27329 | fail: | |
27330 | return NULL; | |
27331 | } | |
27332 | ||
27333 | ||
27334 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27335 | PyObject *resultobj; | |
27336 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27337 | wxSize result; | |
27338 | PyObject * obj0 = 0 ; | |
27339 | char *kwnames[] = { | |
27340 | (char *) "self", NULL | |
27341 | }; | |
27342 | ||
27343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
27344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27345 | { | |
27346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27347 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
27348 | ||
27349 | wxPyEndAllowThreads(__tstate); | |
27350 | if (PyErr_Occurred()) SWIG_fail; | |
27351 | } | |
27352 | { | |
27353 | wxSize * resultptr; | |
27354 | resultptr = new wxSize((wxSize &) result); | |
27355 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
27356 | } | |
27357 | return resultobj; | |
27358 | fail: | |
27359 | return NULL; | |
27360 | } | |
27361 | ||
27362 | ||
27363 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27364 | PyObject *resultobj; | |
27365 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27366 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27367 | PyObject * obj0 = 0 ; | |
27368 | PyObject * obj1 = 0 ; | |
27369 | char *kwnames[] = { | |
27370 | (char *) "self",(char *) "child", NULL | |
27371 | }; | |
27372 | ||
27373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
27374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27375 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27376 | { | |
27377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27378 | (arg1)->base_AddChild(arg2); | |
27379 | ||
27380 | wxPyEndAllowThreads(__tstate); | |
27381 | if (PyErr_Occurred()) SWIG_fail; | |
27382 | } | |
27383 | Py_INCREF(Py_None); resultobj = Py_None; | |
27384 | return resultobj; | |
27385 | fail: | |
27386 | return NULL; | |
27387 | } | |
27388 | ||
27389 | ||
27390 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27391 | PyObject *resultobj; | |
27392 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
27393 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27394 | PyObject * obj0 = 0 ; | |
27395 | PyObject * obj1 = 0 ; | |
27396 | char *kwnames[] = { | |
27397 | (char *) "self",(char *) "child", NULL | |
27398 | }; | |
27399 | ||
27400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
27401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27402 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27403 | { | |
27404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27405 | (arg1)->base_RemoveChild(arg2); | |
27406 | ||
27407 | wxPyEndAllowThreads(__tstate); | |
27408 | if (PyErr_Occurred()) SWIG_fail; | |
27409 | } | |
27410 | Py_INCREF(Py_None); resultobj = Py_None; | |
27411 | return resultobj; | |
27412 | fail: | |
27413 | return NULL; | |
27414 | } | |
27415 | ||
27416 | ||
27417 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
27418 | PyObject *obj; | |
27419 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27420 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
27421 | Py_INCREF(obj); | |
27422 | return Py_BuildValue((char *)""); | |
27423 | } | |
27424 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27425 | PyObject *resultobj; | |
27426 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
27427 | int arg2 = (int) 0 ; | |
27428 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
27429 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27430 | wxHelpEvent *result; | |
27431 | wxPoint temp3 ; | |
27432 | PyObject * obj0 = 0 ; | |
27433 | PyObject * obj1 = 0 ; | |
27434 | PyObject * obj2 = 0 ; | |
27435 | char *kwnames[] = { | |
27436 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
27437 | }; | |
27438 | ||
27439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27440 | if (obj0) { | |
27441 | { | |
27442 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
27443 | if (PyErr_Occurred()) SWIG_fail; | |
27444 | } | |
27445 | } | |
27446 | if (obj1) { | |
27447 | { | |
27448 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27449 | if (PyErr_Occurred()) SWIG_fail; | |
27450 | } | |
27451 | } | |
27452 | if (obj2) { | |
27453 | { | |
27454 | arg3 = &temp3; | |
27455 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27456 | } | |
27457 | } | |
27458 | { | |
27459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27460 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
27461 | ||
27462 | wxPyEndAllowThreads(__tstate); | |
27463 | if (PyErr_Occurred()) SWIG_fail; | |
27464 | } | |
27465 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpEvent, 1); | |
27466 | return resultobj; | |
27467 | fail: | |
27468 | return NULL; | |
27469 | } | |
27470 | ||
27471 | ||
27472 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27473 | PyObject *resultobj; | |
27474 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27475 | wxPoint *result; | |
27476 | PyObject * obj0 = 0 ; | |
27477 | char *kwnames[] = { | |
27478 | (char *) "self", NULL | |
27479 | }; | |
27480 | ||
27481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
27482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27483 | { | |
27484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27485 | { | |
27486 | wxPoint const &_result_ref = ((wxHelpEvent const *)arg1)->GetPosition(); | |
27487 | result = (wxPoint *) &_result_ref; | |
27488 | } | |
27489 | ||
27490 | wxPyEndAllowThreads(__tstate); | |
27491 | if (PyErr_Occurred()) SWIG_fail; | |
27492 | } | |
27493 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
27494 | return resultobj; | |
27495 | fail: | |
27496 | return NULL; | |
27497 | } | |
27498 | ||
27499 | ||
27500 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27501 | PyObject *resultobj; | |
27502 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27503 | wxPoint *arg2 = 0 ; | |
27504 | wxPoint temp2 ; | |
27505 | PyObject * obj0 = 0 ; | |
27506 | PyObject * obj1 = 0 ; | |
27507 | char *kwnames[] = { | |
27508 | (char *) "self",(char *) "pos", NULL | |
27509 | }; | |
27510 | ||
27511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
27512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27513 | { | |
27514 | arg2 = &temp2; | |
27515 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27516 | } | |
27517 | { | |
27518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27519 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
27520 | ||
27521 | wxPyEndAllowThreads(__tstate); | |
27522 | if (PyErr_Occurred()) SWIG_fail; | |
27523 | } | |
27524 | Py_INCREF(Py_None); resultobj = Py_None; | |
27525 | return resultobj; | |
27526 | fail: | |
27527 | return NULL; | |
27528 | } | |
27529 | ||
27530 | ||
27531 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27532 | PyObject *resultobj; | |
27533 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27534 | wxString *result; | |
27535 | PyObject * obj0 = 0 ; | |
27536 | char *kwnames[] = { | |
27537 | (char *) "self", NULL | |
27538 | }; | |
27539 | ||
27540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
27541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27542 | { | |
27543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27544 | { | |
27545 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
27546 | result = (wxString *) &_result_ref; | |
27547 | } | |
27548 | ||
27549 | wxPyEndAllowThreads(__tstate); | |
27550 | if (PyErr_Occurred()) SWIG_fail; | |
27551 | } | |
27552 | { | |
27553 | #if wxUSE_UNICODE | |
27554 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27555 | #else | |
27556 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27557 | #endif | |
27558 | } | |
27559 | return resultobj; | |
27560 | fail: | |
27561 | return NULL; | |
27562 | } | |
27563 | ||
27564 | ||
27565 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27566 | PyObject *resultobj; | |
27567 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27568 | wxString *arg2 = 0 ; | |
27569 | bool temp2 = False ; | |
27570 | PyObject * obj0 = 0 ; | |
27571 | PyObject * obj1 = 0 ; | |
27572 | char *kwnames[] = { | |
27573 | (char *) "self",(char *) "link", NULL | |
27574 | }; | |
27575 | ||
27576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
27577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27578 | { | |
27579 | arg2 = wxString_in_helper(obj1); | |
27580 | if (arg2 == NULL) SWIG_fail; | |
27581 | temp2 = True; | |
27582 | } | |
27583 | { | |
27584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27585 | (arg1)->SetLink((wxString const &)*arg2); | |
27586 | ||
27587 | wxPyEndAllowThreads(__tstate); | |
27588 | if (PyErr_Occurred()) SWIG_fail; | |
27589 | } | |
27590 | Py_INCREF(Py_None); resultobj = Py_None; | |
27591 | { | |
27592 | if (temp2) | |
27593 | delete arg2; | |
27594 | } | |
27595 | return resultobj; | |
27596 | fail: | |
27597 | { | |
27598 | if (temp2) | |
27599 | delete arg2; | |
27600 | } | |
27601 | return NULL; | |
27602 | } | |
27603 | ||
27604 | ||
27605 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27606 | PyObject *resultobj; | |
27607 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27608 | wxString *result; | |
27609 | PyObject * obj0 = 0 ; | |
27610 | char *kwnames[] = { | |
27611 | (char *) "self", NULL | |
27612 | }; | |
27613 | ||
27614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
27615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27616 | { | |
27617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27618 | { | |
27619 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
27620 | result = (wxString *) &_result_ref; | |
27621 | } | |
27622 | ||
27623 | wxPyEndAllowThreads(__tstate); | |
27624 | if (PyErr_Occurred()) SWIG_fail; | |
27625 | } | |
27626 | { | |
27627 | #if wxUSE_UNICODE | |
27628 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27629 | #else | |
27630 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27631 | #endif | |
27632 | } | |
27633 | return resultobj; | |
27634 | fail: | |
27635 | return NULL; | |
27636 | } | |
27637 | ||
27638 | ||
27639 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27640 | PyObject *resultobj; | |
27641 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
27642 | wxString *arg2 = 0 ; | |
27643 | bool temp2 = False ; | |
27644 | PyObject * obj0 = 0 ; | |
27645 | PyObject * obj1 = 0 ; | |
27646 | char *kwnames[] = { | |
27647 | (char *) "self",(char *) "target", NULL | |
27648 | }; | |
27649 | ||
27650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
27651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27652 | { | |
27653 | arg2 = wxString_in_helper(obj1); | |
27654 | if (arg2 == NULL) SWIG_fail; | |
27655 | temp2 = True; | |
27656 | } | |
27657 | { | |
27658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27659 | (arg1)->SetTarget((wxString const &)*arg2); | |
27660 | ||
27661 | wxPyEndAllowThreads(__tstate); | |
27662 | if (PyErr_Occurred()) SWIG_fail; | |
27663 | } | |
27664 | Py_INCREF(Py_None); resultobj = Py_None; | |
27665 | { | |
27666 | if (temp2) | |
27667 | delete arg2; | |
27668 | } | |
27669 | return resultobj; | |
27670 | fail: | |
27671 | { | |
27672 | if (temp2) | |
27673 | delete arg2; | |
27674 | } | |
27675 | return NULL; | |
27676 | } | |
27677 | ||
27678 | ||
27679 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
27680 | PyObject *obj; | |
27681 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27682 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
27683 | Py_INCREF(obj); | |
27684 | return Py_BuildValue((char *)""); | |
27685 | } | |
27686 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27687 | PyObject *resultobj; | |
27688 | wxWindow *arg1 = (wxWindow *) NULL ; | |
27689 | bool arg2 = (bool) True ; | |
27690 | wxContextHelp *result; | |
27691 | PyObject * obj0 = 0 ; | |
27692 | PyObject * obj1 = 0 ; | |
27693 | char *kwnames[] = { | |
27694 | (char *) "window",(char *) "doNow", NULL | |
27695 | }; | |
27696 | ||
27697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
27698 | if (obj0) { | |
27699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27700 | } | |
27701 | if (obj1) { | |
27702 | { | |
27703 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); | |
27704 | if (PyErr_Occurred()) SWIG_fail; | |
27705 | } | |
27706 | } | |
27707 | { | |
27708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27709 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
27710 | ||
27711 | wxPyEndAllowThreads(__tstate); | |
27712 | if (PyErr_Occurred()) SWIG_fail; | |
27713 | } | |
27714 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelp, 1); | |
27715 | return resultobj; | |
27716 | fail: | |
27717 | return NULL; | |
27718 | } | |
27719 | ||
27720 | ||
27721 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27722 | PyObject *resultobj; | |
27723 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
27724 | PyObject * obj0 = 0 ; | |
27725 | char *kwnames[] = { | |
27726 | (char *) "self", NULL | |
27727 | }; | |
27728 | ||
27729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
27730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27731 | { | |
27732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27733 | delete arg1; | |
27734 | ||
27735 | wxPyEndAllowThreads(__tstate); | |
27736 | if (PyErr_Occurred()) SWIG_fail; | |
27737 | } | |
27738 | Py_INCREF(Py_None); resultobj = Py_None; | |
27739 | return resultobj; | |
27740 | fail: | |
27741 | return NULL; | |
27742 | } | |
27743 | ||
27744 | ||
27745 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27746 | PyObject *resultobj; | |
27747 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
27748 | wxWindow *arg2 = (wxWindow *) NULL ; | |
27749 | bool result; | |
27750 | PyObject * obj0 = 0 ; | |
27751 | PyObject * obj1 = 0 ; | |
27752 | char *kwnames[] = { | |
27753 | (char *) "self",(char *) "window", NULL | |
27754 | }; | |
27755 | ||
27756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
27757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27758 | if (obj1) { | |
27759 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27760 | } | |
27761 | { | |
27762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27763 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
27764 | ||
27765 | wxPyEndAllowThreads(__tstate); | |
27766 | if (PyErr_Occurred()) SWIG_fail; | |
27767 | } | |
27768 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
27769 | return resultobj; | |
27770 | fail: | |
27771 | return NULL; | |
27772 | } | |
27773 | ||
27774 | ||
27775 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27776 | PyObject *resultobj; | |
27777 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
27778 | bool result; | |
27779 | PyObject * obj0 = 0 ; | |
27780 | char *kwnames[] = { | |
27781 | (char *) "self", NULL | |
27782 | }; | |
27783 | ||
27784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
27785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27786 | { | |
27787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27788 | result = (bool)(arg1)->EndContextHelp(); | |
27789 | ||
27790 | wxPyEndAllowThreads(__tstate); | |
27791 | if (PyErr_Occurred()) SWIG_fail; | |
27792 | } | |
27793 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
27794 | return resultobj; | |
27795 | fail: | |
27796 | return NULL; | |
27797 | } | |
27798 | ||
27799 | ||
27800 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
27801 | PyObject *obj; | |
27802 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27803 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
27804 | Py_INCREF(obj); | |
27805 | return Py_BuildValue((char *)""); | |
27806 | } | |
27807 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27808 | PyObject *resultobj; | |
27809 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27810 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
27811 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
27812 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27813 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27814 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27815 | long arg5 = (long) wxBU_AUTODRAW ; | |
27816 | wxContextHelpButton *result; | |
27817 | wxPoint temp3 ; | |
27818 | wxSize temp4 ; | |
27819 | PyObject * obj0 = 0 ; | |
27820 | PyObject * obj1 = 0 ; | |
27821 | PyObject * obj2 = 0 ; | |
27822 | PyObject * obj3 = 0 ; | |
27823 | PyObject * obj4 = 0 ; | |
27824 | char *kwnames[] = { | |
27825 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
27826 | }; | |
27827 | ||
27828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
27829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27830 | if (obj1) { | |
27831 | { | |
27832 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27833 | if (PyErr_Occurred()) SWIG_fail; | |
27834 | } | |
27835 | } | |
27836 | if (obj2) { | |
27837 | { | |
27838 | arg3 = &temp3; | |
27839 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27840 | } | |
27841 | } | |
27842 | if (obj3) { | |
27843 | { | |
27844 | arg4 = &temp4; | |
27845 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27846 | } | |
27847 | } | |
27848 | if (obj4) { | |
27849 | { | |
27850 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
27851 | if (PyErr_Occurred()) SWIG_fail; | |
27852 | } | |
27853 | } | |
27854 | { | |
27855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27856 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
27857 | ||
27858 | wxPyEndAllowThreads(__tstate); | |
27859 | if (PyErr_Occurred()) SWIG_fail; | |
27860 | } | |
27861 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelpButton, 1); | |
27862 | return resultobj; | |
27863 | fail: | |
27864 | return NULL; | |
27865 | } | |
27866 | ||
27867 | ||
27868 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
27869 | PyObject *obj; | |
27870 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27871 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
27872 | Py_INCREF(obj); | |
27873 | return Py_BuildValue((char *)""); | |
27874 | } | |
27875 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27876 | PyObject *resultobj; | |
27877 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
27878 | wxHelpProvider *result; | |
27879 | PyObject * obj0 = 0 ; | |
27880 | char *kwnames[] = { | |
27881 | (char *) "helpProvider", NULL | |
27882 | }; | |
27883 | ||
27884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
27885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27886 | { | |
27887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27888 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
27889 | ||
27890 | wxPyEndAllowThreads(__tstate); | |
27891 | if (PyErr_Occurred()) SWIG_fail; | |
27892 | } | |
27893 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
27894 | return resultobj; | |
27895 | fail: | |
27896 | return NULL; | |
27897 | } | |
27898 | ||
27899 | ||
27900 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27901 | PyObject *resultobj; | |
27902 | wxHelpProvider *result; | |
27903 | char *kwnames[] = { | |
27904 | NULL | |
27905 | }; | |
27906 | ||
27907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
27908 | { | |
27909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27910 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
27911 | ||
27912 | wxPyEndAllowThreads(__tstate); | |
27913 | if (PyErr_Occurred()) SWIG_fail; | |
27914 | } | |
27915 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
27916 | return resultobj; | |
27917 | fail: | |
27918 | return NULL; | |
27919 | } | |
27920 | ||
27921 | ||
27922 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27923 | PyObject *resultobj; | |
27924 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
27925 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27926 | wxString result; | |
27927 | PyObject * obj0 = 0 ; | |
27928 | PyObject * obj1 = 0 ; | |
27929 | char *kwnames[] = { | |
27930 | (char *) "self",(char *) "window", NULL | |
27931 | }; | |
27932 | ||
27933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
27934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27935 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27936 | { | |
27937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27938 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
27939 | ||
27940 | wxPyEndAllowThreads(__tstate); | |
27941 | if (PyErr_Occurred()) SWIG_fail; | |
27942 | } | |
27943 | { | |
27944 | #if wxUSE_UNICODE | |
27945 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27946 | #else | |
27947 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27948 | #endif | |
27949 | } | |
27950 | return resultobj; | |
27951 | fail: | |
27952 | return NULL; | |
27953 | } | |
27954 | ||
27955 | ||
27956 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27957 | PyObject *resultobj; | |
27958 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
27959 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27960 | bool result; | |
27961 | PyObject * obj0 = 0 ; | |
27962 | PyObject * obj1 = 0 ; | |
27963 | char *kwnames[] = { | |
27964 | (char *) "self",(char *) "window", NULL | |
27965 | }; | |
27966 | ||
27967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
27968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27969 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27970 | { | |
27971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27972 | result = (bool)(arg1)->ShowHelp(arg2); | |
27973 | ||
27974 | wxPyEndAllowThreads(__tstate); | |
27975 | if (PyErr_Occurred()) SWIG_fail; | |
27976 | } | |
27977 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
27978 | return resultobj; | |
27979 | fail: | |
27980 | return NULL; | |
27981 | } | |
27982 | ||
27983 | ||
27984 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27985 | PyObject *resultobj; | |
27986 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
27987 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27988 | wxString *arg3 = 0 ; | |
27989 | bool temp3 = False ; | |
27990 | PyObject * obj0 = 0 ; | |
27991 | PyObject * obj1 = 0 ; | |
27992 | PyObject * obj2 = 0 ; | |
27993 | char *kwnames[] = { | |
27994 | (char *) "self",(char *) "window",(char *) "text", NULL | |
27995 | }; | |
27996 | ||
27997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27999 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28000 | { | |
28001 | arg3 = wxString_in_helper(obj2); | |
28002 | if (arg3 == NULL) SWIG_fail; | |
28003 | temp3 = True; | |
28004 | } | |
28005 | { | |
28006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28007 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28008 | ||
28009 | wxPyEndAllowThreads(__tstate); | |
28010 | if (PyErr_Occurred()) SWIG_fail; | |
28011 | } | |
28012 | Py_INCREF(Py_None); resultobj = Py_None; | |
28013 | { | |
28014 | if (temp3) | |
28015 | delete arg3; | |
28016 | } | |
28017 | return resultobj; | |
28018 | fail: | |
28019 | { | |
28020 | if (temp3) | |
28021 | delete arg3; | |
28022 | } | |
28023 | return NULL; | |
28024 | } | |
28025 | ||
28026 | ||
28027 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28028 | PyObject *resultobj; | |
28029 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28030 | int arg2 ; | |
28031 | wxString *arg3 = 0 ; | |
28032 | bool temp3 = False ; | |
28033 | PyObject * obj0 = 0 ; | |
28034 | PyObject * obj1 = 0 ; | |
28035 | PyObject * obj2 = 0 ; | |
28036 | char *kwnames[] = { | |
28037 | (char *) "self",(char *) "id",(char *) "text", NULL | |
28038 | }; | |
28039 | ||
28040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28042 | { | |
28043 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28044 | if (PyErr_Occurred()) SWIG_fail; | |
28045 | } | |
28046 | { | |
28047 | arg3 = wxString_in_helper(obj2); | |
28048 | if (arg3 == NULL) SWIG_fail; | |
28049 | temp3 = True; | |
28050 | } | |
28051 | { | |
28052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28053 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
28054 | ||
28055 | wxPyEndAllowThreads(__tstate); | |
28056 | if (PyErr_Occurred()) SWIG_fail; | |
28057 | } | |
28058 | Py_INCREF(Py_None); resultobj = Py_None; | |
28059 | { | |
28060 | if (temp3) | |
28061 | delete arg3; | |
28062 | } | |
28063 | return resultobj; | |
28064 | fail: | |
28065 | { | |
28066 | if (temp3) | |
28067 | delete arg3; | |
28068 | } | |
28069 | return NULL; | |
28070 | } | |
28071 | ||
28072 | ||
28073 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28074 | PyObject *resultobj; | |
28075 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
28076 | PyObject * obj0 = 0 ; | |
28077 | char *kwnames[] = { | |
28078 | (char *) "self", NULL | |
28079 | }; | |
28080 | ||
28081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
28082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28083 | { | |
28084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28085 | wxHelpProvider_Destroy(arg1); | |
28086 | ||
28087 | wxPyEndAllowThreads(__tstate); | |
28088 | if (PyErr_Occurred()) SWIG_fail; | |
28089 | } | |
28090 | Py_INCREF(Py_None); resultobj = Py_None; | |
28091 | return resultobj; | |
28092 | fail: | |
28093 | return NULL; | |
28094 | } | |
28095 | ||
28096 | ||
28097 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
28098 | PyObject *obj; | |
28099 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28100 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
28101 | Py_INCREF(obj); | |
28102 | return Py_BuildValue((char *)""); | |
28103 | } | |
28104 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28105 | PyObject *resultobj; | |
28106 | wxSimpleHelpProvider *result; | |
28107 | char *kwnames[] = { | |
28108 | NULL | |
28109 | }; | |
28110 | ||
28111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
28112 | { | |
28113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28114 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
28115 | ||
28116 | wxPyEndAllowThreads(__tstate); | |
28117 | if (PyErr_Occurred()) SWIG_fail; | |
28118 | } | |
28119 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
28120 | return resultobj; | |
28121 | fail: | |
28122 | return NULL; | |
28123 | } | |
28124 | ||
28125 | ||
28126 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
28127 | PyObject *obj; | |
28128 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28129 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
28130 | Py_INCREF(obj); | |
28131 | return Py_BuildValue((char *)""); | |
28132 | } | |
28133 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28134 | PyObject *resultobj; | |
28135 | wxBitmap *arg1 = 0 ; | |
28136 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28137 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28138 | wxGenericDragImage *result; | |
28139 | PyObject * obj0 = 0 ; | |
28140 | PyObject * obj1 = 0 ; | |
28141 | char *kwnames[] = { | |
28142 | (char *) "image",(char *) "cursor", NULL | |
28143 | }; | |
28144 | ||
28145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
28146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28147 | if (arg1 == NULL) { | |
28148 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28149 | } | |
28150 | if (obj1) { | |
28151 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28152 | if (arg2 == NULL) { | |
28153 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28154 | } | |
28155 | } | |
28156 | { | |
28157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28158 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
28159 | ||
28160 | wxPyEndAllowThreads(__tstate); | |
28161 | if (PyErr_Occurred()) SWIG_fail; | |
28162 | } | |
28163 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28164 | return resultobj; | |
28165 | fail: | |
28166 | return NULL; | |
28167 | } | |
28168 | ||
28169 | ||
28170 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28171 | PyObject *resultobj; | |
28172 | wxIcon *arg1 = 0 ; | |
28173 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28174 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28175 | wxGenericDragImage *result; | |
28176 | PyObject * obj0 = 0 ; | |
28177 | PyObject * obj1 = 0 ; | |
28178 | char *kwnames[] = { | |
28179 | (char *) "image",(char *) "cursor", NULL | |
28180 | }; | |
28181 | ||
28182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
28183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28184 | if (arg1 == NULL) { | |
28185 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28186 | } | |
28187 | if (obj1) { | |
28188 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28189 | if (arg2 == NULL) { | |
28190 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28191 | } | |
28192 | } | |
28193 | { | |
28194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28195 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
28196 | ||
28197 | wxPyEndAllowThreads(__tstate); | |
28198 | if (PyErr_Occurred()) SWIG_fail; | |
28199 | } | |
28200 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28201 | return resultobj; | |
28202 | fail: | |
28203 | return NULL; | |
28204 | } | |
28205 | ||
28206 | ||
28207 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28208 | PyObject *resultobj; | |
28209 | wxString *arg1 = 0 ; | |
28210 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
28211 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
28212 | wxGenericDragImage *result; | |
28213 | bool temp1 = False ; | |
28214 | PyObject * obj0 = 0 ; | |
28215 | PyObject * obj1 = 0 ; | |
28216 | char *kwnames[] = { | |
28217 | (char *) "str",(char *) "cursor", NULL | |
28218 | }; | |
28219 | ||
28220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
28221 | { | |
28222 | arg1 = wxString_in_helper(obj0); | |
28223 | if (arg1 == NULL) SWIG_fail; | |
28224 | temp1 = True; | |
28225 | } | |
28226 | if (obj1) { | |
28227 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28228 | if (arg2 == NULL) { | |
28229 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28230 | } | |
28231 | } | |
28232 | { | |
28233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28234 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
28235 | ||
28236 | wxPyEndAllowThreads(__tstate); | |
28237 | if (PyErr_Occurred()) SWIG_fail; | |
28238 | } | |
28239 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28240 | { | |
28241 | if (temp1) | |
28242 | delete arg1; | |
28243 | } | |
28244 | return resultobj; | |
28245 | fail: | |
28246 | { | |
28247 | if (temp1) | |
28248 | delete arg1; | |
28249 | } | |
28250 | return NULL; | |
28251 | } | |
28252 | ||
28253 | ||
28254 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28255 | PyObject *resultobj; | |
28256 | wxPyTreeCtrl *arg1 = 0 ; | |
28257 | wxTreeItemId *arg2 = 0 ; | |
28258 | wxGenericDragImage *result; | |
28259 | PyObject * obj0 = 0 ; | |
28260 | PyObject * obj1 = 0 ; | |
28261 | char *kwnames[] = { | |
28262 | (char *) "treeCtrl",(char *) "id", NULL | |
28263 | }; | |
28264 | ||
28265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
28266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28267 | if (arg1 == NULL) { | |
28268 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28269 | } | |
28270 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28271 | if (arg2 == NULL) { | |
28272 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28273 | } | |
28274 | { | |
28275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28276 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
28277 | ||
28278 | wxPyEndAllowThreads(__tstate); | |
28279 | if (PyErr_Occurred()) SWIG_fail; | |
28280 | } | |
28281 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28282 | return resultobj; | |
28283 | fail: | |
28284 | return NULL; | |
28285 | } | |
28286 | ||
28287 | ||
28288 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28289 | PyObject *resultobj; | |
28290 | wxPyListCtrl *arg1 = 0 ; | |
28291 | long arg2 ; | |
28292 | wxGenericDragImage *result; | |
28293 | PyObject * obj0 = 0 ; | |
28294 | PyObject * obj1 = 0 ; | |
28295 | char *kwnames[] = { | |
28296 | (char *) "listCtrl",(char *) "id", NULL | |
28297 | }; | |
28298 | ||
28299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; | |
28300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28301 | if (arg1 == NULL) { | |
28302 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28303 | } | |
28304 | { | |
28305 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
28306 | if (PyErr_Occurred()) SWIG_fail; | |
28307 | } | |
28308 | { | |
28309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28310 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
28311 | ||
28312 | wxPyEndAllowThreads(__tstate); | |
28313 | if (PyErr_Occurred()) SWIG_fail; | |
28314 | } | |
28315 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
28316 | return resultobj; | |
28317 | fail: | |
28318 | return NULL; | |
28319 | } | |
28320 | ||
28321 | ||
28322 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28323 | PyObject *resultobj; | |
28324 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28325 | PyObject * obj0 = 0 ; | |
28326 | char *kwnames[] = { | |
28327 | (char *) "self", NULL | |
28328 | }; | |
28329 | ||
28330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
28331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28332 | { | |
28333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28334 | delete arg1; | |
28335 | ||
28336 | wxPyEndAllowThreads(__tstate); | |
28337 | if (PyErr_Occurred()) SWIG_fail; | |
28338 | } | |
28339 | Py_INCREF(Py_None); resultobj = Py_None; | |
28340 | return resultobj; | |
28341 | fail: | |
28342 | return NULL; | |
28343 | } | |
28344 | ||
28345 | ||
28346 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28347 | PyObject *resultobj; | |
28348 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28349 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
28350 | PyObject * obj0 = 0 ; | |
28351 | PyObject * obj1 = 0 ; | |
28352 | char *kwnames[] = { | |
28353 | (char *) "self",(char *) "bitmap", NULL | |
28354 | }; | |
28355 | ||
28356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
28357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28358 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28359 | { | |
28360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28361 | (arg1)->SetBackingBitmap(arg2); | |
28362 | ||
28363 | wxPyEndAllowThreads(__tstate); | |
28364 | if (PyErr_Occurred()) SWIG_fail; | |
28365 | } | |
28366 | Py_INCREF(Py_None); resultobj = Py_None; | |
28367 | return resultobj; | |
28368 | fail: | |
28369 | return NULL; | |
28370 | } | |
28371 | ||
28372 | ||
28373 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28374 | PyObject *resultobj; | |
28375 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28376 | wxPoint *arg2 = 0 ; | |
28377 | wxWindow *arg3 = (wxWindow *) 0 ; | |
28378 | bool arg4 = (bool) False ; | |
28379 | wxRect *arg5 = (wxRect *) NULL ; | |
28380 | bool result; | |
28381 | wxPoint temp2 ; | |
28382 | PyObject * obj0 = 0 ; | |
28383 | PyObject * obj1 = 0 ; | |
28384 | PyObject * obj2 = 0 ; | |
28385 | PyObject * obj3 = 0 ; | |
28386 | PyObject * obj4 = 0 ; | |
28387 | char *kwnames[] = { | |
28388 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
28389 | }; | |
28390 | ||
28391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28393 | { | |
28394 | arg2 = &temp2; | |
28395 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28396 | } | |
28397 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28398 | if (obj3) { | |
28399 | { | |
28400 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
28401 | if (PyErr_Occurred()) SWIG_fail; | |
28402 | } | |
28403 | } | |
28404 | if (obj4) { | |
28405 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28406 | } | |
28407 | { | |
28408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28409 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
28410 | ||
28411 | wxPyEndAllowThreads(__tstate); | |
28412 | if (PyErr_Occurred()) SWIG_fail; | |
28413 | } | |
28414 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
28415 | return resultobj; | |
28416 | fail: | |
28417 | return NULL; | |
28418 | } | |
28419 | ||
28420 | ||
28421 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28422 | PyObject *resultobj; | |
28423 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28424 | wxPoint *arg2 = 0 ; | |
28425 | wxWindow *arg3 = (wxWindow *) 0 ; | |
28426 | wxWindow *arg4 = (wxWindow *) 0 ; | |
28427 | bool result; | |
28428 | wxPoint temp2 ; | |
28429 | PyObject * obj0 = 0 ; | |
28430 | PyObject * obj1 = 0 ; | |
28431 | PyObject * obj2 = 0 ; | |
28432 | PyObject * obj3 = 0 ; | |
28433 | char *kwnames[] = { | |
28434 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
28435 | }; | |
28436 | ||
28437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28439 | { | |
28440 | arg2 = &temp2; | |
28441 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28442 | } | |
28443 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28444 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28445 | { | |
28446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28447 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
28448 | ||
28449 | wxPyEndAllowThreads(__tstate); | |
28450 | if (PyErr_Occurred()) SWIG_fail; | |
28451 | } | |
28452 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
28453 | return resultobj; | |
28454 | fail: | |
28455 | return NULL; | |
28456 | } | |
28457 | ||
28458 | ||
28459 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28460 | PyObject *resultobj; | |
28461 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28462 | bool result; | |
28463 | PyObject * obj0 = 0 ; | |
28464 | char *kwnames[] = { | |
28465 | (char *) "self", NULL | |
28466 | }; | |
28467 | ||
28468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
28469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28470 | { | |
28471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28472 | result = (bool)(arg1)->EndDrag(); | |
28473 | ||
28474 | wxPyEndAllowThreads(__tstate); | |
28475 | if (PyErr_Occurred()) SWIG_fail; | |
28476 | } | |
28477 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
28478 | return resultobj; | |
28479 | fail: | |
28480 | return NULL; | |
28481 | } | |
28482 | ||
28483 | ||
28484 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28485 | PyObject *resultobj; | |
28486 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28487 | wxPoint *arg2 = 0 ; | |
28488 | bool result; | |
28489 | wxPoint temp2 ; | |
28490 | PyObject * obj0 = 0 ; | |
28491 | PyObject * obj1 = 0 ; | |
28492 | char *kwnames[] = { | |
28493 | (char *) "self",(char *) "pt", NULL | |
28494 | }; | |
28495 | ||
28496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
28497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28498 | { | |
28499 | arg2 = &temp2; | |
28500 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28501 | } | |
28502 | { | |
28503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28504 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
28505 | ||
28506 | wxPyEndAllowThreads(__tstate); | |
28507 | if (PyErr_Occurred()) SWIG_fail; | |
28508 | } | |
28509 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
28510 | return resultobj; | |
28511 | fail: | |
28512 | return NULL; | |
28513 | } | |
28514 | ||
28515 | ||
28516 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28517 | PyObject *resultobj; | |
28518 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28519 | bool result; | |
28520 | PyObject * obj0 = 0 ; | |
28521 | char *kwnames[] = { | |
28522 | (char *) "self", NULL | |
28523 | }; | |
28524 | ||
28525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
28526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28527 | { | |
28528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28529 | result = (bool)(arg1)->Show(); | |
28530 | ||
28531 | wxPyEndAllowThreads(__tstate); | |
28532 | if (PyErr_Occurred()) SWIG_fail; | |
28533 | } | |
28534 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
28535 | return resultobj; | |
28536 | fail: | |
28537 | return NULL; | |
28538 | } | |
28539 | ||
28540 | ||
28541 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28542 | PyObject *resultobj; | |
28543 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28544 | bool result; | |
28545 | PyObject * obj0 = 0 ; | |
28546 | char *kwnames[] = { | |
28547 | (char *) "self", NULL | |
28548 | }; | |
28549 | ||
28550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
28551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28552 | { | |
28553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28554 | result = (bool)(arg1)->Hide(); | |
28555 | ||
28556 | wxPyEndAllowThreads(__tstate); | |
28557 | if (PyErr_Occurred()) SWIG_fail; | |
28558 | } | |
28559 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
28560 | return resultobj; | |
28561 | fail: | |
28562 | return NULL; | |
28563 | } | |
28564 | ||
28565 | ||
28566 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28567 | PyObject *resultobj; | |
28568 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28569 | wxPoint *arg2 = 0 ; | |
28570 | wxRect result; | |
28571 | wxPoint temp2 ; | |
28572 | PyObject * obj0 = 0 ; | |
28573 | PyObject * obj1 = 0 ; | |
28574 | char *kwnames[] = { | |
28575 | (char *) "self",(char *) "pos", NULL | |
28576 | }; | |
28577 | ||
28578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
28579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28580 | { | |
28581 | arg2 = &temp2; | |
28582 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28583 | } | |
28584 | { | |
28585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28586 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
28587 | ||
28588 | wxPyEndAllowThreads(__tstate); | |
28589 | if (PyErr_Occurred()) SWIG_fail; | |
28590 | } | |
28591 | { | |
28592 | wxRect * resultptr; | |
28593 | resultptr = new wxRect((wxRect &) result); | |
28594 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
28595 | } | |
28596 | return resultobj; | |
28597 | fail: | |
28598 | return NULL; | |
28599 | } | |
28600 | ||
28601 | ||
28602 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28603 | PyObject *resultobj; | |
28604 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28605 | wxDC *arg2 = 0 ; | |
28606 | wxPoint *arg3 = 0 ; | |
28607 | bool result; | |
28608 | wxPoint temp3 ; | |
28609 | PyObject * obj0 = 0 ; | |
28610 | PyObject * obj1 = 0 ; | |
28611 | PyObject * obj2 = 0 ; | |
28612 | char *kwnames[] = { | |
28613 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
28614 | }; | |
28615 | ||
28616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28618 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28619 | if (arg2 == NULL) { | |
28620 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28621 | } | |
28622 | { | |
28623 | arg3 = &temp3; | |
28624 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28625 | } | |
28626 | { | |
28627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28628 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
28629 | ||
28630 | wxPyEndAllowThreads(__tstate); | |
28631 | if (PyErr_Occurred()) SWIG_fail; | |
28632 | } | |
28633 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
28634 | return resultobj; | |
28635 | fail: | |
28636 | return NULL; | |
28637 | } | |
28638 | ||
28639 | ||
28640 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28641 | PyObject *resultobj; | |
28642 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28643 | wxDC *arg2 = 0 ; | |
28644 | wxMemoryDC *arg3 = 0 ; | |
28645 | wxRect *arg4 = 0 ; | |
28646 | wxRect *arg5 = 0 ; | |
28647 | bool result; | |
28648 | wxRect temp4 ; | |
28649 | wxRect temp5 ; | |
28650 | PyObject * obj0 = 0 ; | |
28651 | PyObject * obj1 = 0 ; | |
28652 | PyObject * obj2 = 0 ; | |
28653 | PyObject * obj3 = 0 ; | |
28654 | PyObject * obj4 = 0 ; | |
28655 | char *kwnames[] = { | |
28656 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
28657 | }; | |
28658 | ||
28659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28661 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28662 | if (arg2 == NULL) { | |
28663 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28664 | } | |
28665 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28666 | if (arg3 == NULL) { | |
28667 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28668 | } | |
28669 | { | |
28670 | arg4 = &temp4; | |
28671 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
28672 | } | |
28673 | { | |
28674 | arg5 = &temp5; | |
28675 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
28676 | } | |
28677 | { | |
28678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28679 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
28680 | ||
28681 | wxPyEndAllowThreads(__tstate); | |
28682 | if (PyErr_Occurred()) SWIG_fail; | |
28683 | } | |
28684 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
28685 | return resultobj; | |
28686 | fail: | |
28687 | return NULL; | |
28688 | } | |
28689 | ||
28690 | ||
28691 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28692 | PyObject *resultobj; | |
28693 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
28694 | wxPoint *arg2 = 0 ; | |
28695 | wxPoint *arg3 = 0 ; | |
28696 | bool arg4 ; | |
28697 | bool arg5 ; | |
28698 | bool result; | |
28699 | wxPoint temp2 ; | |
28700 | wxPoint temp3 ; | |
28701 | PyObject * obj0 = 0 ; | |
28702 | PyObject * obj1 = 0 ; | |
28703 | PyObject * obj2 = 0 ; | |
28704 | PyObject * obj3 = 0 ; | |
28705 | PyObject * obj4 = 0 ; | |
28706 | char *kwnames[] = { | |
28707 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
28708 | }; | |
28709 | ||
28710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28712 | { | |
28713 | arg2 = &temp2; | |
28714 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28715 | } | |
28716 | { | |
28717 | arg3 = &temp3; | |
28718 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28719 | } | |
28720 | { | |
28721 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); | |
28722 | if (PyErr_Occurred()) SWIG_fail; | |
28723 | } | |
28724 | { | |
28725 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); | |
28726 | if (PyErr_Occurred()) SWIG_fail; | |
28727 | } | |
28728 | { | |
28729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28730 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
28731 | ||
28732 | wxPyEndAllowThreads(__tstate); | |
28733 | if (PyErr_Occurred()) SWIG_fail; | |
28734 | } | |
28735 | resultobj = SWIG_PyObj_FromBool((bool)result); | |
28736 | return resultobj; | |
28737 | fail: | |
28738 | return NULL; | |
28739 | } | |
28740 | ||
28741 | ||
28742 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
28743 | PyObject *obj; | |
28744 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28745 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
28746 | Py_INCREF(obj); | |
28747 | return Py_BuildValue((char *)""); | |
28748 | } | |
28749 | static PyMethodDef SwigMethods[] = { | |
28750 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
28751 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
28752 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
28753 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
28754 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
28755 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
28756 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
28757 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
28758 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
28759 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
28760 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
28761 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
28762 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
28763 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
28764 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
28765 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
28766 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
28767 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
28768 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
28769 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
28770 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
28771 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
28772 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
28773 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
28774 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
28775 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
28776 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
28777 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
28778 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
28779 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
28780 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
28781 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
28782 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
28783 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
28784 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
28785 | { (char *)"Choice_GetColumns", (PyCFunction) _wrap_Choice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
28786 | { (char *)"Choice_SetColumns", (PyCFunction) _wrap_Choice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
28787 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
28788 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
28789 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
28790 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
28791 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
28792 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
28793 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
28794 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
28795 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
28796 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
28797 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
28798 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
28799 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
28800 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
28801 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
28802 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
28803 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
28804 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
28805 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
28806 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
28807 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
28808 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
28809 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
28810 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
28811 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
28812 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
28813 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
28814 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
28815 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
28816 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
28817 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
28818 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
28819 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
28820 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
28821 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
28822 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
28823 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
28824 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
28825 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
28826 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
28827 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
28828 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
28829 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
28830 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
28831 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
28832 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
28833 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
28834 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
28835 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
28836 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28837 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28838 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
28839 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28840 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28841 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28842 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
28843 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
28844 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
28845 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
28846 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
28847 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
28848 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
28849 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
28850 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
28851 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
28852 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
28853 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
28854 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
28855 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
28856 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
28857 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
28858 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
28859 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
28860 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
28861 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, | |
28862 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
28863 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
28864 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
28865 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
28866 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
28867 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
28868 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
28869 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
28870 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
28871 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, | |
28872 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, | |
28873 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
28874 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
28875 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
28876 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
28877 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
28878 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
28879 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
28880 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
28881 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
28882 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
28883 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
28884 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
28885 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
28886 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
28887 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
28888 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
28889 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
28890 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
28891 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
28892 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
28893 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
28894 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
28895 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
28896 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
28897 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
28898 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
28899 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
28900 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
28901 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
28902 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
28903 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
28904 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
28905 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
28906 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
28907 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
28908 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
28909 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
28910 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
28911 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
28912 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
28913 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
28914 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
28915 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
28916 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
28917 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
28918 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
28919 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
28920 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
28921 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
28922 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
28923 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
28924 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
28925 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
28926 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28927 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28928 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
28929 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
28930 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
28931 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
28932 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
28933 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
28934 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
28935 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
28936 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
28937 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
28938 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
28939 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
28940 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
28941 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
28942 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
28943 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
28944 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
28945 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
28946 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
28947 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
28948 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
28949 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
28950 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
28951 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
28952 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
28953 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
28954 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
28955 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
28956 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
28957 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
28958 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
28959 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
28960 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
28961 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
28962 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
28963 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
28964 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
28965 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
28966 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
28967 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
28968 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
28969 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
28970 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
28971 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
28972 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
28973 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
28974 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
28975 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
28976 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
28977 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
28978 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
28979 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
28980 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
28981 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
28982 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
28983 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
28984 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
28985 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
28986 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
28987 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
28988 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
28989 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
28990 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
28991 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
28992 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, | |
28993 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28994 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28995 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
28996 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, | |
28997 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
28998 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
28999 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29000 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29001 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29002 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
29003 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
29004 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
29005 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
29006 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
29007 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
29008 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
29009 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
29010 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29011 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
29012 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
29013 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29014 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
29015 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
29016 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29017 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29018 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
29019 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
29020 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
29021 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
29022 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
29023 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
29024 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
29025 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
29026 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
29027 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
29028 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
29029 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29030 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29031 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
29032 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29033 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29034 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
29035 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29036 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
29037 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
29038 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
29039 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
29040 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
29041 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
29042 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29043 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
29044 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29045 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
29046 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
29047 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
29048 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
29049 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29050 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29051 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
29052 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29053 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29054 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29055 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29056 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
29057 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
29058 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29059 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
29060 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
29061 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
29062 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
29063 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
29064 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29065 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
29066 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
29067 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
29068 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29069 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29070 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29071 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
29072 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
29073 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
29074 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29075 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29076 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
29077 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
29078 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
29079 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29080 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
29081 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
29082 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29083 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
29084 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
29085 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
29086 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
29087 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29088 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
29089 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
29090 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
29091 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
29092 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29093 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29094 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
29095 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
29096 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
29097 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
29098 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
29099 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
29100 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
29101 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29102 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
29103 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29104 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
29105 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
29106 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29107 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
29108 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
29109 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
29110 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
29111 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
29112 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29113 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29114 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29115 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29116 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29117 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29118 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
29119 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
29120 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
29121 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29122 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29123 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29124 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29125 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29126 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
29127 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
29128 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
29129 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
29130 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
29131 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
29132 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
29133 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, | |
29134 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
29135 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, | |
29136 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
29137 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
29138 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29139 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
29140 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
29141 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
29142 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
29143 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
29144 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
29145 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
29146 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
29147 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
29148 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
29149 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
29150 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
29151 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
29152 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
29153 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29154 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
29155 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29156 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
29157 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
29158 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29159 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
29160 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
29161 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
29162 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
29163 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
29164 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
29165 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
29166 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
29167 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
29168 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
29169 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
29170 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
29171 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
29172 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
29173 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, | |
29174 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
29175 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
29176 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29177 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
29178 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
29179 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
29180 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
29181 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
29182 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29183 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29184 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29185 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29186 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29187 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
29188 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29189 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29190 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29191 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
29192 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
29193 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
29194 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
29195 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
29196 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29197 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
29198 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
29199 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29200 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
29201 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
29202 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
29203 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
29204 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
29205 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
29206 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
29207 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29208 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29209 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
29210 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
29211 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29212 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29213 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
29214 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
29215 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
29216 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29217 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
29218 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
29219 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29220 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
29221 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29222 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29223 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
29224 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
29225 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
29226 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
29227 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
29228 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
29229 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
29230 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
29231 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
29232 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
29233 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
29234 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
29235 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
29236 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
29237 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
29238 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
29239 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
29240 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
29241 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
29242 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
29243 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
29244 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
29245 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
29246 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
29247 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
29248 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
29249 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
29250 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
29251 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
29252 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
29253 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
29254 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
29255 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
29256 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
29257 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
29258 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
29259 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29260 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
29261 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29262 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
29263 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
29264 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29265 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
29266 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
29267 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
29268 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
29269 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
29270 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
29271 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
29272 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29273 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29274 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29275 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29276 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29277 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29278 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29279 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
29280 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
29281 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
29282 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
29283 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
29284 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
29285 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
29286 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
29287 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
29288 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
29289 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
29290 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29291 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29292 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29293 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29294 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
29295 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
29296 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
29297 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
29298 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
29299 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29300 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29301 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
29302 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29303 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29304 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
29305 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
29306 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
29307 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
29308 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29309 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29310 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29311 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
29312 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
29313 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
29314 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
29315 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
29316 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
29317 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
29318 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
29319 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
29320 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
29321 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29322 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
29323 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
29324 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
29325 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29326 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
29327 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
29328 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
29329 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
29330 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
29331 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
29332 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
29333 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
29334 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29335 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29336 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29337 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29338 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
29339 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
29340 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
29341 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
29342 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
29343 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
29344 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
29345 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
29346 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
29347 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
29348 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
29349 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29350 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
29351 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
29352 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
29353 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
29354 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
29355 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
29356 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
29357 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
29358 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
29359 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
29360 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
29361 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
29362 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29363 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
29364 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29365 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
29366 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
29367 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
29368 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
29369 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
29370 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
29371 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
29372 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
29373 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
29374 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
29375 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
29376 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
29377 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
29378 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29379 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
29380 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
29381 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
29382 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
29383 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, | |
29384 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29385 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29386 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29387 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29388 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
29389 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
29390 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
29391 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29392 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
29393 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29394 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
29395 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
29396 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
29397 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
29398 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
29399 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29400 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
29401 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29402 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
29403 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29404 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29405 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
29406 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
29407 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
29408 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
29409 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
29410 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
29411 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
29412 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
29413 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
29414 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
29415 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
29416 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
29417 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
29418 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
29419 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
29420 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
29421 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
29422 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
29423 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
29424 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
29425 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
29426 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
29427 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
29428 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
29429 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
29430 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
29431 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
29432 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
29433 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
29434 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
29435 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
29436 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
29437 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
29438 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
29439 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
29440 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
29441 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
29442 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
29443 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
29444 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
29445 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
29446 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
29447 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
29448 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
29449 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
29450 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
29451 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
29452 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
29453 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
29454 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
29455 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
29456 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29457 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29458 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29459 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
29460 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
29461 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
29462 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
29463 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
29464 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
29465 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
29466 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
29467 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
29468 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
29469 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
29470 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
29471 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
29472 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29473 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29474 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
29475 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
29476 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
29477 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
29478 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29479 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
29480 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
29481 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
29482 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
29483 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
29484 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29485 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
29486 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
29487 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
29488 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
29489 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
29490 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
29491 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29492 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
29493 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
29494 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
29495 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
29496 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
29497 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
29498 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
29499 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
29500 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
29501 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
29502 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
29503 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
29504 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
29505 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29506 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
29507 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
29508 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
29509 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
29510 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
29511 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
29512 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29513 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29514 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29515 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
29516 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
29517 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
29518 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
29519 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
29520 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
29521 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
29522 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
29523 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
29524 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
29525 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
29526 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
29527 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
29528 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
29529 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
29530 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
29531 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
29532 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
29533 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
29534 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
29535 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29536 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
29537 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
29538 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
29539 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
29540 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
29541 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
29542 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
29543 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
29544 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
29545 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
29546 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
29547 | { NULL, NULL } | |
29548 | }; | |
29549 | ||
29550 | ||
29551 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
29552 | ||
29553 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
29554 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
29555 | } | |
29556 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
29557 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
29558 | } | |
29559 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
29560 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
29561 | } | |
29562 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
29563 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29564 | } | |
29565 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
29566 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29567 | } | |
29568 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
29569 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
29570 | } | |
29571 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
29572 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29573 | } | |
29574 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
29575 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
29576 | } | |
29577 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
29578 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
29579 | } | |
29580 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
29581 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
29582 | } | |
29583 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
29584 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29585 | } | |
29586 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
29587 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
29588 | } | |
29589 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
29590 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
29591 | } | |
29592 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
29593 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
29594 | } | |
29595 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
29596 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
29597 | } | |
29598 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
29599 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
29600 | } | |
29601 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
29602 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
29603 | } | |
29604 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
29605 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
29606 | } | |
29607 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
29608 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
29609 | } | |
29610 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
29611 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
29612 | } | |
29613 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
29614 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
29615 | } | |
29616 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
29617 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
29618 | } | |
29619 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
29620 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29621 | } | |
29622 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
29623 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
29624 | } | |
29625 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
29626 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
29627 | } | |
29628 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
29629 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
29630 | } | |
29631 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
29632 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
29633 | } | |
29634 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
29635 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
29636 | } | |
29637 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
29638 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29639 | } | |
29640 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
29641 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29642 | } | |
29643 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
29644 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
29645 | } | |
29646 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
29647 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
29648 | } | |
29649 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
29650 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
29651 | } | |
29652 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
29653 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
29654 | } | |
29655 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
29656 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
29657 | } | |
29658 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
29659 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
29660 | } | |
29661 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
29662 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
29663 | } | |
29664 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
29665 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29666 | } | |
29667 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
29668 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29669 | } | |
29670 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
29671 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29672 | } | |
29673 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
29674 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29675 | } | |
29676 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
29677 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29678 | } | |
29679 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
29680 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
29681 | } | |
29682 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
29683 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
29684 | } | |
29685 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
29686 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29687 | } | |
29688 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
29689 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
29690 | } | |
29691 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
29692 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
29693 | } | |
29694 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
29695 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29696 | } | |
29697 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
29698 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29699 | } | |
29700 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
29701 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29702 | } | |
29703 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
29704 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
29705 | } | |
29706 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
29707 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
29708 | } | |
29709 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
29710 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
29711 | } | |
29712 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
29713 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
29714 | } | |
29715 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
29716 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
29717 | } | |
29718 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
29719 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
29720 | } | |
29721 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
29722 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
29723 | } | |
29724 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
29725 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
29726 | } | |
29727 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
29728 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
29729 | } | |
29730 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
29731 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
29732 | } | |
29733 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
29734 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
29735 | } | |
29736 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
29737 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
29738 | } | |
29739 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
29740 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
29741 | } | |
29742 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
29743 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
29744 | } | |
29745 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
29746 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
29747 | } | |
29748 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
29749 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
29750 | } | |
29751 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
29752 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
29753 | } | |
29754 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
29755 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
29756 | } | |
29757 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
29758 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
29759 | } | |
29760 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
29761 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
29762 | } | |
29763 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
29764 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
29765 | } | |
29766 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
29767 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
29768 | } | |
29769 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
29770 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
29771 | } | |
29772 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
29773 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
29774 | } | |
29775 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
29776 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
29777 | } | |
29778 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
29779 | return (void *)((wxControl *) ((wxGauge *) x)); | |
29780 | } | |
29781 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
29782 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
29783 | } | |
29784 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
29785 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
29786 | } | |
29787 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
29788 | return (void *)((wxControl *) ((wxButton *) x)); | |
29789 | } | |
29790 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
29791 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
29792 | } | |
29793 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
29794 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
29795 | } | |
29796 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
29797 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
29798 | } | |
29799 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
29800 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
29801 | } | |
29802 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
29803 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
29804 | } | |
29805 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
29806 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
29807 | } | |
29808 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
29809 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
29810 | } | |
29811 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
29812 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
29813 | } | |
29814 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
29815 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
29816 | } | |
29817 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
29818 | return (void *)((wxControl *) ((wxSlider *) x)); | |
29819 | } | |
29820 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
29821 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
29822 | } | |
29823 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
29824 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
29825 | } | |
29826 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
29827 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
29828 | } | |
29829 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
29830 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
29831 | } | |
29832 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
29833 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
29834 | } | |
29835 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
29836 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
29837 | } | |
29838 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
29839 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
29840 | } | |
29841 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
29842 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
29843 | } | |
29844 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
29845 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
29846 | } | |
29847 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
29848 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
29849 | } | |
29850 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
29851 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
29852 | } | |
29853 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
29854 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
29855 | } | |
29856 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
29857 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
29858 | } | |
29859 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
29860 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
29861 | } | |
29862 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
29863 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
29864 | } | |
29865 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
29866 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
29867 | } | |
29868 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
29869 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
29870 | } | |
29871 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
29872 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
29873 | } | |
29874 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
29875 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
29876 | } | |
29877 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
29878 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
29879 | } | |
29880 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
29881 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
29882 | } | |
29883 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
29884 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
29885 | } | |
29886 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
29887 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
29888 | } | |
29889 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
29890 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
29891 | } | |
29892 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
29893 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
29894 | } | |
29895 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
29896 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
29897 | } | |
29898 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
29899 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
29900 | } | |
29901 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
29902 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
29903 | } | |
29904 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
29905 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
29906 | } | |
29907 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
29908 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
29909 | } | |
29910 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
29911 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29912 | } | |
29913 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
29914 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
29915 | } | |
29916 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
29917 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
29918 | } | |
29919 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
29920 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
29921 | } | |
29922 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
29923 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
29924 | } | |
29925 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
29926 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
29927 | } | |
29928 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
29929 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
29930 | } | |
29931 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
29932 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
29933 | } | |
29934 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
29935 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
29936 | } | |
29937 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
29938 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
29939 | } | |
29940 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
29941 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
29942 | } | |
29943 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
29944 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
29945 | } | |
29946 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
29947 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
29948 | } | |
29949 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
29950 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
29951 | } | |
29952 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
29953 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
29954 | } | |
29955 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
29956 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
29957 | } | |
29958 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
29959 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
29960 | } | |
29961 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
29962 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
29963 | } | |
29964 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
29965 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
29966 | } | |
29967 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
29968 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
29969 | } | |
29970 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
29971 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
29972 | } | |
29973 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
29974 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
29975 | } | |
29976 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
29977 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
29978 | } | |
29979 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
29980 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
29981 | } | |
29982 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
29983 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
29984 | } | |
29985 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
29986 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
29987 | } | |
29988 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
29989 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
29990 | } | |
29991 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
29992 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
29993 | } | |
29994 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
29995 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
29996 | } | |
29997 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
29998 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
29999 | } | |
30000 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
30001 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
30002 | } | |
30003 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
30004 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
30005 | } | |
30006 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
30007 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
30008 | } | |
30009 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
30010 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
30011 | } | |
30012 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
30013 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30014 | } | |
30015 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
30016 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30017 | } | |
30018 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
30019 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
30020 | } | |
30021 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
30022 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
30023 | } | |
30024 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
30025 | return (void *)((wxObject *) ((wxSizer *) x)); | |
30026 | } | |
30027 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
30028 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
30029 | } | |
30030 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
30031 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
30032 | } | |
30033 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
30034 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
30035 | } | |
30036 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
30037 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30038 | } | |
30039 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
30040 | return (void *)((wxObject *) ((wxEvent *) x)); | |
30041 | } | |
30042 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
30043 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30044 | } | |
30045 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
30046 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
30047 | } | |
30048 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
30049 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
30050 | } | |
30051 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
30052 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
30053 | } | |
30054 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
30055 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
30056 | } | |
30057 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
30058 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30059 | } | |
30060 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
30061 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
30062 | } | |
30063 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
30064 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
30065 | } | |
30066 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
30067 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30068 | } | |
30069 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
30070 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30071 | } | |
30072 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
30073 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30074 | } | |
30075 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
30076 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30077 | } | |
30078 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
30079 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
30080 | } | |
30081 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
30082 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
30083 | } | |
30084 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
30085 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
30086 | } | |
30087 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
30088 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
30089 | } | |
30090 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
30091 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
30092 | } | |
30093 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
30094 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
30095 | } | |
30096 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
30097 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
30098 | } | |
30099 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
30100 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
30101 | } | |
30102 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
30103 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30104 | } | |
30105 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
30106 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
30107 | } | |
30108 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
30109 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
30110 | } | |
30111 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
30112 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30113 | } | |
30114 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
30115 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
30116 | } | |
30117 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
30118 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30119 | } | |
30120 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
30121 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
30122 | } | |
30123 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
30124 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30125 | } | |
30126 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
30127 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30128 | } | |
30129 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
30130 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
30131 | } | |
30132 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
30133 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
30134 | } | |
30135 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
30136 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
30137 | } | |
30138 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
30139 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
30140 | } | |
30141 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
30142 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
30143 | } | |
30144 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
30145 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30146 | } | |
30147 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
30148 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30149 | } | |
30150 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
30151 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
30152 | } | |
30153 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
30154 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
30155 | } | |
30156 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
30157 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
30158 | } | |
30159 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
30160 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
30161 | } | |
30162 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
30163 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
30164 | } | |
30165 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
30166 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
30167 | } | |
30168 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
30169 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
30170 | } | |
30171 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
30172 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
30173 | } | |
30174 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
30175 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
30176 | } | |
30177 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
30178 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
30179 | } | |
30180 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
30181 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
30182 | } | |
30183 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
30184 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
30185 | } | |
30186 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
30187 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
30188 | } | |
30189 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
30190 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
30191 | } | |
30192 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
30193 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
30194 | } | |
30195 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
30196 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
30197 | } | |
30198 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
30199 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
30200 | } | |
30201 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
30202 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
30203 | } | |
30204 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
30205 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
30206 | } | |
30207 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
30208 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
30209 | } | |
30210 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
30211 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
30212 | } | |
30213 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
30214 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30215 | } | |
30216 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
30217 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30218 | } | |
30219 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
30220 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
30221 | } | |
30222 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
30223 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
30224 | } | |
30225 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
30226 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30227 | } | |
30228 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
30229 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
30230 | } | |
30231 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
30232 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30233 | } | |
30234 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
30235 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
30236 | } | |
30237 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { | |
30238 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
30239 | } | |
30240 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
30241 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
30242 | } | |
30243 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
30244 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
30245 | } | |
30246 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
30247 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
30248 | } | |
30249 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
30250 | return (void *)((wxObject *) ((wxListItem *) x)); | |
30251 | } | |
30252 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
30253 | return (void *)((wxObject *) ((wxImage *) x)); | |
30254 | } | |
30255 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
30256 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
30257 | } | |
30258 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
30259 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
30260 | } | |
30261 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
30262 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30263 | } | |
30264 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
30265 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
30266 | } | |
30267 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
30268 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
30269 | } | |
30270 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
30271 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30272 | } | |
30273 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
30274 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30275 | } | |
30276 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
30277 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30278 | } | |
30279 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
30280 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30281 | } | |
30282 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
30283 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
30284 | } | |
30285 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
30286 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
30287 | } | |
30288 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
30289 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
30290 | } | |
30291 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
30292 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
30293 | } | |
30294 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
30295 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
30296 | } | |
30297 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
30298 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30299 | } | |
30300 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
30301 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
30302 | } | |
30303 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
30304 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
30305 | } | |
30306 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
30307 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
30308 | } | |
30309 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
30310 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
30311 | } | |
30312 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
30313 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
30314 | } | |
30315 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
30316 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30317 | } | |
30318 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
30319 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30320 | } | |
30321 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
30322 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
30323 | } | |
30324 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
30325 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
30326 | } | |
30327 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
30328 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
30329 | } | |
30330 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
30331 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
30332 | } | |
30333 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
30334 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30335 | } | |
30336 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
30337 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30338 | } | |
30339 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
30340 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
30341 | } | |
30342 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
30343 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30344 | } | |
30345 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
30346 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
30347 | } | |
30348 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
30349 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
30350 | } | |
30351 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
30352 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
30353 | } | |
30354 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
30355 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
30356 | } | |
30357 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
30358 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
30359 | } | |
30360 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
30361 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
30362 | } | |
30363 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
30364 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
30365 | } | |
30366 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
30367 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
30368 | } | |
30369 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
30370 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
30371 | } | |
30372 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
30373 | return (void *)((wxWindow *) ((wxControl *) x)); | |
30374 | } | |
30375 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
30376 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
30377 | } | |
30378 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
30379 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30380 | } | |
30381 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
30382 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
30383 | } | |
30384 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
30385 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
30386 | } | |
30387 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
30388 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
30389 | } | |
30390 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
30391 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
30392 | } | |
30393 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
30394 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
30395 | } | |
30396 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
30397 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
30398 | } | |
30399 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
30400 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
30401 | } | |
30402 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
30403 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
30404 | } | |
30405 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
30406 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
30407 | } | |
30408 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
30409 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
30410 | } | |
30411 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
30412 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
30413 | } | |
30414 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
30415 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
30416 | } | |
30417 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
30418 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
30419 | } | |
30420 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
30421 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
30422 | } | |
30423 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
30424 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
30425 | } | |
30426 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
30427 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
30428 | } | |
30429 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
30430 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
30431 | } | |
30432 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
30433 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
30434 | } | |
30435 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
30436 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
30437 | } | |
30438 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
30439 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
30440 | } | |
30441 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
30442 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
30443 | } | |
30444 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
30445 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
30446 | } | |
30447 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
30448 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
30449 | } | |
30450 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
30451 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
30452 | } | |
30453 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
30454 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
30455 | } | |
30456 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
30457 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
30458 | } | |
30459 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
30460 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30461 | } | |
30462 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
30463 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
30464 | } | |
30465 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
30466 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
30467 | } | |
30468 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
30469 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
30470 | } | |
30471 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
30472 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30473 | } | |
30474 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
30475 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30476 | } | |
30477 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
30478 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30479 | } | |
30480 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
30481 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
30482 | } | |
30483 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
30484 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
30485 | } | |
30486 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
30487 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
30488 | } | |
30489 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
30490 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30491 | } | |
30492 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
30493 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
30494 | } | |
30495 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
30496 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
30497 | } | |
30498 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
30499 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
30500 | } | |
30501 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
30502 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30503 | } | |
30504 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
30505 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30506 | } | |
30507 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
30508 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
30509 | } | |
30510 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
30511 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
30512 | } | |
30513 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
30514 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
30515 | } | |
30516 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
30517 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
30518 | } | |
30519 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
30520 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
30521 | } | |
30522 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0},{"_p_wxTextUrlEvent"},{0}}; | |
30523 | 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}}; | |
30524 | 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}}; | |
30525 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0},{"_p_wxCheckBox"},{0}}; | |
30526 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0},{"_p_wxPyTreeCtrl"},{0}}; | |
30527 | 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}}; | |
30528 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0},{"_p_wxGenericDirCtrl"},{0}}; | |
30529 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}}; | |
30530 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0},{"_p_wxPyTreeItemData"},{0}}; | |
30531 | 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}}; | |
30532 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0},{"_p_wxDirFilterListCtrl"},{0}}; | |
30533 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0},{"_p_wxPyListCtrl"},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl},{0}}; | |
30534 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0},{"_p_wxStaticLine"},{0}}; | |
30535 | 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}}; | |
30536 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0},{"_p_wxPyControl"},{0}}; | |
30537 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0},{"_p_wxGauge"},{0}}; | |
30538 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0},{"_p_wxToolBarBase"},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase},{0}}; | |
30539 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
30540 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0},{"_p_wxToggleButton"},{0}}; | |
30541 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0},{"_p_wxRadioButton"},{0}}; | |
30542 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice},{"_p_wxChoice"},{0}}; | |
30543 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxMemoryDC"},{0}}; | |
30544 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0},{"_p_wxListItemAttr"},{0}}; | |
30545 | static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0},{"_p_void"},{0}}; | |
30546 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
30547 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
30548 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
30549 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0},{"_p_wxListView"},{0}}; | |
30550 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
30551 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
30552 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0},{"_p_wxNotebook"},{0}}; | |
30553 | 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}}; | |
30554 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
30555 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0},{"_p_wxListbook"},{0}}; | |
30556 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0},{"_p_wxStaticBitmap"},{0}}; | |
30557 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0},{"_p_wxSlider"},{0}}; | |
30558 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
30559 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}}; | |
30560 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0},{"_p_wxContextHelp"},{0}}; | |
30561 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
30562 | 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}}; | |
30563 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0},{"_p_wxListEvent"},{0}}; | |
30564 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0},{"_p_wxListBox"},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox},{0}}; | |
30565 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0},{"_p_wxCheckListBox"},{0}}; | |
30566 | 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}}; | |
30567 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0},{"_p_wxSpinButton"},{0}}; | |
30568 | 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}}; | |
30569 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0},{"_p_wxBitmapButton"},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton},{0}}; | |
30570 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
30571 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0},{"_p_wxContextHelpButton"},{0}}; | |
30572 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0},{"_p_wxRadioBox"},{0}}; | |
30573 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0},{"_p_wxScrollBar"},{0}}; | |
30574 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; | |
30575 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}}; | |
30576 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0},{"_p_wxComboBox"},{0}}; | |
30577 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0},{"_p_wxHelpEvent"},{0}}; | |
30578 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0},{"_p_wxListItem"},{0}}; | |
30579 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0},{"_p_wxNotebookSizer"},{0}}; | |
30580 | static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0},{"_p_wxSpinEvent"},{0}}; | |
30581 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}}; | |
30582 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0},{"_p_wxSpinCtrl"},{0}}; | |
30583 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
30584 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0},{"_p_wxHelpProvider"},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider},{0}}; | |
30585 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0},{"_p_wxTextAttr"},{0}}; | |
30586 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0},{"_p_wxSimpleHelpProvider"},{0}}; | |
30587 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
30588 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0},{"_p_wxListbookEvent"},{0}}; | |
30589 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0},{"_p_wxNotebookEvent"},{0}}; | |
30590 | 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}}; | |
30591 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
30592 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; | |
30593 | 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}}; | |
30594 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
30595 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
30596 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0},{"_p_wxTreeEvent"},{0}}; | |
30597 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
30598 | 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}}; | |
30599 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0},{"_p_wxStaticText"},{0}}; | |
30600 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems},{"_p_wxControlWithItems"},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems},{0}}; | |
30601 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0},{"_p_wxToolBarToolBase"},{0}}; | |
30602 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
30603 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}}; | |
30604 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0},{"_p_wxBookCtrlSizer"},{0}}; | |
30605 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
30606 | ||
30607 | static swig_type_info *swig_types_initial[] = { | |
30608 | _swigt__p_wxTextUrlEvent, | |
30609 | _swigt__p_wxBookCtrlEvent, | |
30610 | _swigt__p_wxSizer, | |
30611 | _swigt__p_wxCheckBox, | |
30612 | _swigt__p_wxPyTreeCtrl, | |
30613 | _swigt__p_wxEvent, | |
30614 | _swigt__p_wxGenericDirCtrl, | |
30615 | _swigt__p_bool, | |
30616 | _swigt__p_wxPyTreeItemData, | |
30617 | _swigt__p_wxItemContainer, | |
30618 | _swigt__p_wxDirFilterListCtrl, | |
30619 | _swigt__p_wxPyListCtrl, | |
30620 | _swigt__p_wxStaticLine, | |
30621 | _swigt__p_wxControl, | |
30622 | _swigt__p_wxPyControl, | |
30623 | _swigt__p_wxGauge, | |
30624 | _swigt__p_wxToolBarBase, | |
30625 | _swigt__p_wxFont, | |
30626 | _swigt__p_wxToggleButton, | |
30627 | _swigt__p_wxRadioButton, | |
30628 | _swigt__p_wxChoice, | |
30629 | _swigt__p_wxMemoryDC, | |
30630 | _swigt__p_wxListItemAttr, | |
30631 | _swigt__p_void, | |
30632 | _swigt__p_int, | |
30633 | _swigt__p_wxSize, | |
30634 | _swigt__p_wxDC, | |
30635 | _swigt__p_wxListView, | |
30636 | _swigt__p_wxIcon, | |
30637 | _swigt__p_wxTextCtrl, | |
30638 | _swigt__p_wxNotebook, | |
30639 | _swigt__p_wxNotifyEvent, | |
30640 | _swigt__p_wxArrayString, | |
30641 | _swigt__p_wxListbook, | |
30642 | _swigt__p_wxStaticBitmap, | |
30643 | _swigt__p_wxSlider, | |
30644 | _swigt__p_wxStaticBox, | |
30645 | _swigt__p_wxArrayInt, | |
30646 | _swigt__p_wxContextHelp, | |
30647 | _swigt__p_long, | |
30648 | _swigt__p_wxEvtHandler, | |
30649 | _swigt__p_wxListEvent, | |
30650 | _swigt__p_wxListBox, | |
30651 | _swigt__p_wxCheckListBox, | |
30652 | _swigt__p_wxBookCtrl, | |
30653 | _swigt__p_wxSpinButton, | |
30654 | _swigt__p_wxButton, | |
30655 | _swigt__p_wxBitmapButton, | |
30656 | _swigt__p_wxRect, | |
30657 | _swigt__p_wxContextHelpButton, | |
30658 | _swigt__p_wxRadioBox, | |
30659 | _swigt__p_wxScrollBar, | |
30660 | _swigt__p_char, | |
30661 | _swigt__p_wxTreeItemId, | |
30662 | _swigt__p_wxComboBox, | |
30663 | _swigt__p_wxHelpEvent, | |
30664 | _swigt__p_wxListItem, | |
30665 | _swigt__p_wxNotebookSizer, | |
30666 | _swigt__p_wxSpinEvent, | |
30667 | _swigt__p_wxGenericDragImage, | |
30668 | _swigt__p_wxSpinCtrl, | |
30669 | _swigt__p_wxImageList, | |
30670 | _swigt__p_wxHelpProvider, | |
30671 | _swigt__p_wxTextAttr, | |
30672 | _swigt__p_wxSimpleHelpProvider, | |
30673 | _swigt__p_wxPoint, | |
30674 | _swigt__p_wxListbookEvent, | |
30675 | _swigt__p_wxNotebookEvent, | |
30676 | _swigt__p_wxObject, | |
30677 | _swigt__p_wxCursor, | |
30678 | _swigt__p_wxKeyEvent, | |
30679 | _swigt__p_wxWindow, | |
30680 | _swigt__p_wxString, | |
30681 | _swigt__p_wxBitmap, | |
30682 | _swigt__p_wxTreeEvent, | |
30683 | _swigt__p_wxMouseEvent, | |
30684 | _swigt__p_wxCommandEvent, | |
30685 | _swigt__p_wxStaticText, | |
30686 | _swigt__p_wxControlWithItems, | |
30687 | _swigt__p_wxToolBarToolBase, | |
30688 | _swigt__p_wxColour, | |
30689 | _swigt__p_wxToolBar, | |
30690 | _swigt__p_wxBookCtrlSizer, | |
30691 | _swigt__p_wxValidator, | |
30692 | 0 | |
30693 | }; | |
30694 | ||
30695 | ||
30696 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
30697 | ||
30698 | static swig_const_info swig_const_table[] = { | |
30699 | {0}}; | |
30700 | ||
30701 | #ifdef __cplusplus | |
30702 | } | |
30703 | #endif | |
30704 | ||
30705 | #ifdef __cplusplus | |
30706 | extern "C" | |
30707 | #endif | |
30708 | SWIGEXPORT(void) SWIG_init(void) { | |
30709 | static PyObject *SWIG_globals = 0; | |
30710 | static int typeinit = 0; | |
30711 | PyObject *m, *d; | |
30712 | int i; | |
30713 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
30714 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
30715 | d = PyModule_GetDict(m); | |
30716 | ||
30717 | if (!typeinit) { | |
30718 | for (i = 0; swig_types_initial[i]; i++) { | |
30719 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
30720 | } | |
30721 | typeinit = 1; | |
30722 | } | |
30723 | SWIG_InstallConstants(d,swig_const_table); | |
30724 | ||
30725 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
30726 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
30727 | PyDict_SetItemString(d,"BU_LEFT", SWIG_PyObj_FromInt((int)wxBU_LEFT)); | |
30728 | PyDict_SetItemString(d,"BU_TOP", SWIG_PyObj_FromInt((int)wxBU_TOP)); | |
30729 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_PyObj_FromInt((int)wxBU_RIGHT)); | |
30730 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_PyObj_FromInt((int)wxBU_BOTTOM)); | |
30731 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_PyObj_FromInt((int)wxBU_EXACTFIT)); | |
30732 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_PyObj_FromInt((int)wxBU_AUTODRAW)); | |
30733 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); | |
30734 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_PyObj_FromInt((int)wxCHK_2STATE)); | |
30735 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_PyObj_FromInt((int)wxCHK_3STATE)); | |
30736 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_PyObj_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
30737 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_PyObj_FromInt((int)wxCHK_UNCHECKED)); | |
30738 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_PyObj_FromInt((int)wxCHK_CHECKED)); | |
30739 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_PyObj_FromInt((int)wxCHK_UNDETERMINED)); | |
30740 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); | |
30741 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
30742 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
30743 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_PyObj_FromInt((int)wxGA_HORIZONTAL)); | |
30744 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_PyObj_FromInt((int)wxGA_VERTICAL)); | |
30745 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_PyObj_FromInt((int)wxGA_SMOOTH)); | |
30746 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_PyObj_FromInt((int)wxGA_PROGRESSBAR)); | |
30747 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); | |
30748 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
30749 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
30750 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
30751 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
30752 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_PyObj_FromInt((int)wxTE_NO_VSCROLL)); | |
30753 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_PyObj_FromInt((int)wxTE_AUTO_SCROLL)); | |
30754 | PyDict_SetItemString(d,"TE_READONLY", SWIG_PyObj_FromInt((int)wxTE_READONLY)); | |
30755 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_PyObj_FromInt((int)wxTE_MULTILINE)); | |
30756 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_PyObj_FromInt((int)wxTE_PROCESS_TAB)); | |
30757 | PyDict_SetItemString(d,"TE_LEFT", SWIG_PyObj_FromInt((int)wxTE_LEFT)); | |
30758 | PyDict_SetItemString(d,"TE_CENTER", SWIG_PyObj_FromInt((int)wxTE_CENTER)); | |
30759 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_PyObj_FromInt((int)wxTE_RIGHT)); | |
30760 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_PyObj_FromInt((int)wxTE_CENTRE)); | |
30761 | PyDict_SetItemString(d,"TE_RICH", SWIG_PyObj_FromInt((int)wxTE_RICH)); | |
30762 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_PyObj_FromInt((int)wxTE_PROCESS_ENTER)); | |
30763 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_PyObj_FromInt((int)wxTE_PASSWORD)); | |
30764 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_PyObj_FromInt((int)wxTE_AUTO_URL)); | |
30765 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_PyObj_FromInt((int)wxTE_NOHIDESEL)); | |
30766 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_PyObj_FromInt((int)wxTE_DONTWRAP)); | |
30767 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_PyObj_FromInt((int)wxTE_LINEWRAP)); | |
30768 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_PyObj_FromInt((int)wxTE_WORDWRAP)); | |
30769 | PyDict_SetItemString(d,"TE_RICH2", SWIG_PyObj_FromInt((int)wxTE_RICH2)); | |
30770 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
30771 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
30772 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
30773 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
30774 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
30775 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_PyObj_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
30776 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
30777 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
30778 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
30779 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
30780 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
30781 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
30782 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
30783 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_FONT)); | |
30784 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
30785 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
30786 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
30787 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_PyObj_FromInt((int)wxTEXT_ATTR_TABS)); | |
30788 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); | |
30789 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
30790 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
30791 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
30792 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); | |
30793 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
30794 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
30795 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSP_HORIZONTAL)); | |
30796 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_PyObj_FromInt((int)wxSP_VERTICAL)); | |
30797 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_PyObj_FromInt((int)wxSP_ARROW_KEYS)); | |
30798 | PyDict_SetItemString(d,"SP_WRAP", SWIG_PyObj_FromInt((int)wxSP_WRAP)); | |
30799 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); | |
30800 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); | |
30801 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
30802 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
30803 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
30804 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
30805 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); | |
30806 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_PyObj_FromInt((int)wxNB_FIXEDWIDTH)); | |
30807 | PyDict_SetItemString(d,"NB_TOP", SWIG_PyObj_FromInt((int)wxNB_TOP)); | |
30808 | PyDict_SetItemString(d,"NB_LEFT", SWIG_PyObj_FromInt((int)wxNB_LEFT)); | |
30809 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_PyObj_FromInt((int)wxNB_RIGHT)); | |
30810 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_PyObj_FromInt((int)wxNB_BOTTOM)); | |
30811 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_PyObj_FromInt((int)wxNB_MULTILINE)); | |
30812 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
30813 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONICON)); | |
30814 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
30815 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxNB_HITTEST_ONITEM)); | |
30816 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); | |
30817 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
30818 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_PyObj_FromInt((int)wxLB_DEFAULT)); | |
30819 | PyDict_SetItemString(d,"LB_TOP", SWIG_PyObj_FromInt((int)wxLB_TOP)); | |
30820 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_PyObj_FromInt((int)wxLB_BOTTOM)); | |
30821 | PyDict_SetItemString(d,"LB_LEFT", SWIG_PyObj_FromInt((int)wxLB_LEFT)); | |
30822 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_PyObj_FromInt((int)wxLB_RIGHT)); | |
30823 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_PyObj_FromInt((int)wxLB_ALIGN_MASK)); | |
30824 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
30825 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
30826 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_BUTTON)); | |
30827 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
30828 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_PyObj_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
30829 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_PyObj_FromInt((int)wxTB_HORIZONTAL)); | |
30830 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_PyObj_FromInt((int)wxTB_VERTICAL)); | |
30831 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_PyObj_FromInt((int)wxTB_3DBUTTONS)); | |
30832 | PyDict_SetItemString(d,"TB_FLAT", SWIG_PyObj_FromInt((int)wxTB_FLAT)); | |
30833 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_PyObj_FromInt((int)wxTB_DOCKABLE)); | |
30834 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_PyObj_FromInt((int)wxTB_NOICONS)); | |
30835 | PyDict_SetItemString(d,"TB_TEXT", SWIG_PyObj_FromInt((int)wxTB_TEXT)); | |
30836 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_PyObj_FromInt((int)wxTB_NODIVIDER)); | |
30837 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_PyObj_FromInt((int)wxTB_NOALIGN)); | |
30838 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_PyObj_FromInt((int)wxTB_HORZ_LAYOUT)); | |
30839 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_PyObj_FromInt((int)wxTB_HORZ_TEXT)); | |
30840 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); | |
30841 | PyDict_SetItemString(d,"LC_VRULES", SWIG_PyObj_FromInt((int)wxLC_VRULES)); | |
30842 | PyDict_SetItemString(d,"LC_HRULES", SWIG_PyObj_FromInt((int)wxLC_HRULES)); | |
30843 | PyDict_SetItemString(d,"LC_ICON", SWIG_PyObj_FromInt((int)wxLC_ICON)); | |
30844 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_PyObj_FromInt((int)wxLC_SMALL_ICON)); | |
30845 | PyDict_SetItemString(d,"LC_LIST", SWIG_PyObj_FromInt((int)wxLC_LIST)); | |
30846 | PyDict_SetItemString(d,"LC_REPORT", SWIG_PyObj_FromInt((int)wxLC_REPORT)); | |
30847 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLC_ALIGN_TOP)); | |
30848 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLC_ALIGN_LEFT)); | |
30849 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_PyObj_FromInt((int)wxLC_AUTOARRANGE)); | |
30850 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_PyObj_FromInt((int)wxLC_VIRTUAL)); | |
30851 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxLC_EDIT_LABELS)); | |
30852 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_HEADER)); | |
30853 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_PyObj_FromInt((int)wxLC_NO_SORT_HEADER)); | |
30854 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_PyObj_FromInt((int)wxLC_SINGLE_SEL)); | |
30855 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_ASCENDING)); | |
30856 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_PyObj_FromInt((int)wxLC_SORT_DESCENDING)); | |
30857 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_PyObj_FromInt((int)wxLC_MASK_TYPE)); | |
30858 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_PyObj_FromInt((int)wxLC_MASK_ALIGN)); | |
30859 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_PyObj_FromInt((int)wxLC_MASK_SORT)); | |
30860 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_PyObj_FromInt((int)wxLIST_MASK_STATE)); | |
30861 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_PyObj_FromInt((int)wxLIST_MASK_TEXT)); | |
30862 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_PyObj_FromInt((int)wxLIST_MASK_IMAGE)); | |
30863 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_PyObj_FromInt((int)wxLIST_MASK_DATA)); | |
30864 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_PyObj_FromInt((int)wxLIST_SET_ITEM)); | |
30865 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_PyObj_FromInt((int)wxLIST_MASK_WIDTH)); | |
30866 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_PyObj_FromInt((int)wxLIST_MASK_FORMAT)); | |
30867 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_PyObj_FromInt((int)wxLIST_STATE_DONTCARE)); | |
30868 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
30869 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FOCUSED)); | |
30870 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_PyObj_FromInt((int)wxLIST_STATE_SELECTED)); | |
30871 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_PyObj_FromInt((int)wxLIST_STATE_CUT)); | |
30872 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_PyObj_FromInt((int)wxLIST_STATE_DISABLED)); | |
30873 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_PyObj_FromInt((int)wxLIST_STATE_FILTERED)); | |
30874 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_PyObj_FromInt((int)wxLIST_STATE_INUSE)); | |
30875 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_PyObj_FromInt((int)wxLIST_STATE_PICKED)); | |
30876 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_PyObj_FromInt((int)wxLIST_STATE_SOURCE)); | |
30877 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
30878 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_BELOW)); | |
30879 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
30880 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
30881 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
30882 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
30883 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
30884 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
30885 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
30886 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
30887 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ABOVE)); | |
30888 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_PyObj_FromInt((int)wxLIST_NEXT_ALL)); | |
30889 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_PyObj_FromInt((int)wxLIST_NEXT_BELOW)); | |
30890 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_LEFT)); | |
30891 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_NEXT_RIGHT)); | |
30892 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
30893 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_LEFT)); | |
30894 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_TOP)); | |
30895 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_PyObj_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
30896 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_LEFT)); | |
30897 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
30898 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
30899 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_PyObj_FromInt((int)wxLIST_FORMAT_CENTER)); | |
30900 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE)); | |
30901 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_PyObj_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
30902 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_PyObj_FromInt((int)wxLIST_RECT_BOUNDS)); | |
30903 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_PyObj_FromInt((int)wxLIST_RECT_ICON)); | |
30904 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_PyObj_FromInt((int)wxLIST_RECT_LABEL)); | |
30905 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_PyObj_FromInt((int)wxLIST_FIND_UP)); | |
30906 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_PyObj_FromInt((int)wxLIST_FIND_DOWN)); | |
30907 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_PyObj_FromInt((int)wxLIST_FIND_LEFT)); | |
30908 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_PyObj_FromInt((int)wxLIST_FIND_RIGHT)); | |
30909 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
30910 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
30911 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
30912 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
30913 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
30914 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
30915 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
30916 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
30917 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
30918 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
30919 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
30920 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
30921 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
30922 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
30923 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
30924 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
30925 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
30926 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
30927 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
30928 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
30929 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
30930 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
30931 | ||
30932 | // Map renamed classes back to their common name for OOR | |
30933 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
30934 | ||
30935 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); | |
30936 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_NO_BUTTONS)); | |
30937 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_HAS_BUTTONS)); | |
30938 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_PyObj_FromInt((int)wxTR_NO_LINES)); | |
30939 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_PyObj_FromInt((int)wxTR_LINES_AT_ROOT)); | |
30940 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_PyObj_FromInt((int)wxTR_SINGLE)); | |
30941 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_PyObj_FromInt((int)wxTR_MULTIPLE)); | |
30942 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_PyObj_FromInt((int)wxTR_EXTENDED)); | |
30943 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_PyObj_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
30944 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxTR_EDIT_LABELS)); | |
30945 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_PyObj_FromInt((int)wxTR_HIDE_ROOT)); | |
30946 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_PyObj_FromInt((int)wxTR_ROW_LINES)); | |
30947 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_PyObj_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
30948 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_PyObj_FromInt((int)wxTR_DEFAULT_STYLE)); | |
30949 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_TWIST_BUTTONS)); | |
30950 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_MAC_BUTTONS)); | |
30951 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_PyObj_FromInt((int)wxTR_AQUA_BUTTONS)); | |
30952 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Normal)); | |
30953 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Selected)); | |
30954 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Expanded)); | |
30955 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_PyObj_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
30956 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_PyObj_FromInt((int)wxTreeItemIcon_Max)); | |
30957 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
30958 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_BELOW)); | |
30959 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
30960 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
30961 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
30962 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
30963 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
30964 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
30965 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
30966 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
30967 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
30968 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
30969 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
30970 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_PyObj_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
30971 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
30972 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
30973 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
30974 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
30975 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
30976 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
30977 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
30978 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
30979 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
30980 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
30981 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
30982 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
30983 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
30984 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
30985 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
30986 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
30987 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
30988 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
30989 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
30990 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
30991 | ||
30992 | // Map renamed classes back to their common name for OOR | |
30993 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
30994 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
30995 | ||
30996 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); | |
30997 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_PyObj_FromInt((int)wxDIRCTRL_DIR_ONLY)); | |
30998 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_PyObj_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
30999 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_PyObj_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
31000 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_PyObj_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
31001 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_PyObj_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
31002 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
31003 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_PyObj_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
31004 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); | |
31005 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
31006 | ||
31007 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
31008 | ||
31009 | } | |
31010 |